From 6e1dac78d8d0d9c17c602b5af6c7531d89f7368a Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Fri, 13 Dec 2024 14:27:39 +0000 Subject: [PATCH 1/2] make tfgen --- .pulumi-java-gen.version | 2 +- examples/go.mod | 14 +++++++------- examples/go.sum | 28 ++++++++++++++-------------- provider/go.mod | 20 ++++++++++---------- provider/go.sum | 36 ++++++++++++++++++------------------ sdk/go.mod | 12 ++++++------ sdk/go.sum | 24 ++++++++++++------------ 7 files changed, 68 insertions(+), 68 deletions(-) diff --git a/.pulumi-java-gen.version b/.pulumi-java-gen.version index 47d04a5288..a881cf79f2 100644 --- a/.pulumi-java-gen.version +++ b/.pulumi-java-gen.version @@ -1 +1 @@ -0.18.0 \ No newline at end of file +0.20.0 \ No newline at end of file diff --git a/examples/go.mod b/examples/go.mod index a168ff95ce..fbfa4c0c66 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -2,7 +2,7 @@ module github.com/pulumi/pulumi-alicloud/examples/v3 go 1.21 -require github.com/pulumi/pulumi/pkg/v3 v3.142.0 +require github.com/pulumi/pulumi/pkg/v3 v3.143.0 require ( cloud.google.com/go v0.112.1 // indirect @@ -123,7 +123,7 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.10.0 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.142.0 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.143.0 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect @@ -153,15 +153,15 @@ require ( go.uber.org/atomic v1.9.0 // indirect gocloud.dev v0.37.0 // indirect gocloud.dev/secrets/hashivault v0.37.0 // indirect - golang.org/x/crypto v0.26.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/mod v0.18.0 // indirect golang.org/x/net v0.28.0 // indirect golang.org/x/oauth2 v0.22.0 // indirect - golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.24.0 // indirect - golang.org/x/term v0.23.0 // indirect - golang.org/x/text v0.17.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect golang.org/x/time v0.5.0 // indirect golang.org/x/tools v0.22.0 // indirect golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect diff --git a/examples/go.sum b/examples/go.sum index 304740d736..bb2014fca2 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -339,10 +339,10 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.10.0 h1:jzBKzkLVW0mePeanDRfqSQoCJ5yrkux0jIwAkUxpRKE= github.com/pulumi/esc v0.10.0/go.mod h1:2Bfa+FWj/xl8CKqRTWbWgDX0SOD4opdQgvYSURTGK2c= -github.com/pulumi/pulumi/pkg/v3 v3.142.0 h1:UE8TFyXrlxvPrATpd3Kl3En34KrFIFWOxxNAodywPNU= -github.com/pulumi/pulumi/pkg/v3 v3.142.0/go.mod h1:3k6WwRIT7veiDnk3Yo2NtqEYX+4dgLCrMIFvEOnjQqI= -github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= -github.com/pulumi/pulumi/sdk/v3 v3.142.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi/pkg/v3 v3.143.0 h1:diAlaNVZSRc59ePqbMuvuf/AwecpZyjhh1pGvmLEUwg= +github.com/pulumi/pulumi/pkg/v3 v3.143.0/go.mod h1:XzjN1uQI2HWXYolT2L4RIXzvLEnWTSOzFgFFIUfFEa8= +github.com/pulumi/pulumi/sdk/v3 v3.143.0 h1:z1m8Fc6l723eU2J/bP7UHE5t6WbBu4iIDAl1WaalQk4= +github.com/pulumi/pulumi/sdk/v3 v3.143.0/go.mod h1:OFpZabILGxrFqzcABFpMCksrHGVp4ymRM2BkKjlazDY= 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= @@ -434,8 +434,8 @@ golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= -golang.org/x/crypto v0.26.0 h1:RrRspgV4mU+YwB4FYnuBoKsUapNIL5cohGAmSH3azsw= -golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn54= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 h1:LoYXNGAShUG3m/ehNk4iFctuhGX/+R1ZpfJ4/ia80JM= golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI= @@ -485,8 +485,8 @@ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 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= @@ -513,8 +513,8 @@ golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg= -golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= @@ -524,8 +524,8 @@ golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU= golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= -golang.org/x/term v0.23.0 h1:F6D4vR+EHoL9/sWAWgAR1H2DcHr4PareCbAaCo1RpuU= -golang.org/x/term v0.23.0/go.mod h1:DgV24QBUrK6jhZXl+20l6UWznPlwAHm1Q1mGHtydmSk= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= @@ -536,8 +536,8 @@ golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= -golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/provider/go.mod b/provider/go.mod index 8eeb0c6692..fe8ba0b09a 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -1,6 +1,6 @@ module github.com/pulumi/pulumi-alicloud/provider/v3 -go 1.22.0 +go 1.22.3 toolchain go1.22.7 @@ -26,8 +26,8 @@ replace github.com/hashicorp/terraform-exec => github.com/hashicorp/terraform-ex require ( github.com/aliyun/terraform-provider-alicloud v1.237.0 github.com/hashicorp/terraform-plugin-sdk v1.17.2 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.97.1 - github.com/pulumi/pulumi/sdk/v3 v3.142.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.97.2-0.20241213141026-5b45441dc774 + github.com/pulumi/pulumi/sdk/v3 v3.143.0 ) require ( @@ -217,9 +217,9 @@ require ( github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.10.0 // indirect github.com/pulumi/inflector v0.1.1 // indirect - github.com/pulumi/pulumi-java/pkg v0.18.0 // indirect + github.com/pulumi/pulumi-java/pkg v0.19.0 // indirect github.com/pulumi/pulumi-yaml v1.12.0 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.142.0 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.143.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 @@ -266,15 +266,15 @@ require ( go.uber.org/atomic v1.11.0 // indirect go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.27.0 // indirect - golang.org/x/crypto v0.26.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/mod v0.18.0 // indirect golang.org/x/net v0.28.0 // indirect golang.org/x/oauth2 v0.22.0 // indirect - golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.24.0 // indirect - golang.org/x/term v0.23.0 // indirect - golang.org/x/text v0.17.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect golang.org/x/time v0.5.0 // indirect golang.org/x/tools v0.22.0 // indirect google.golang.org/api v0.171.0 // indirect diff --git a/provider/go.sum b/provider/go.sum index f529239c4d..a687ac2692 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -2281,16 +2281,16 @@ github.com/pulumi/inflector v0.1.1 h1:dvlxlWtXwOJTUUtcYDvwnl6Mpg33prhK+7mzeF+Sob github.com/pulumi/inflector v0.1.1/go.mod h1:HUFCjcPTz96YtTuUlwG3i3EZG4WlniBvR9bd+iJxCUY= github.com/pulumi/providertest v0.1.3 h1:GpNKRy/haNjRHiUA9bi4diU4Op2zf3axYXbga5AepHg= github.com/pulumi/providertest v0.1.3/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0= -github.com/pulumi/pulumi-java/pkg v0.18.0 h1:3PApc5YegH69n6oubB63mqI97pF+oQywWr7ii4082Mw= -github.com/pulumi/pulumi-java/pkg v0.18.0/go.mod h1:YKYYFEb3Jvzf/dDJo0xOeEkIfBAMkkkdhXulauvEjmc= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.97.1 h1:+KTtmSk6jqcqKvgNgtGVUWEimkpEZdLZs0xEYwFw288= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.97.1/go.mod h1:B/Auryr+yVUkLOMzgpFe7HLwKAtXc6YJwpAXfNGyLPk= +github.com/pulumi/pulumi-java/pkg v0.19.0 h1:T9kkGUQJV7UTxenw08m3txsgQkNVnZZxvn1zCcNjaE8= +github.com/pulumi/pulumi-java/pkg v0.19.0/go.mod h1:YKYYFEb3Jvzf/dDJo0xOeEkIfBAMkkkdhXulauvEjmc= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.97.2-0.20241213141026-5b45441dc774 h1:AtiLdBGvB9AJ2ptFywvcMUflZArvBlx4P/c+h5dIb+M= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.97.2-0.20241213141026-5b45441dc774/go.mod h1:q0QIquTDad7QvzdLmT31bzISahN1XrnGF/w/vIsxlX0= github.com/pulumi/pulumi-yaml v1.12.0 h1:ThJP+EBqeJyCnS6w6/PwcEFOT5o112qv0lObhefmFCk= github.com/pulumi/pulumi-yaml v1.12.0/go.mod h1:EhZd1XDfuLa15O51qVVE16U6r8ldK9mLIBclqWCX27Y= -github.com/pulumi/pulumi/pkg/v3 v3.142.0 h1:UE8TFyXrlxvPrATpd3Kl3En34KrFIFWOxxNAodywPNU= -github.com/pulumi/pulumi/pkg/v3 v3.142.0/go.mod h1:3k6WwRIT7veiDnk3Yo2NtqEYX+4dgLCrMIFvEOnjQqI= -github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= -github.com/pulumi/pulumi/sdk/v3 v3.142.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi/pkg/v3 v3.143.0 h1:diAlaNVZSRc59ePqbMuvuf/AwecpZyjhh1pGvmLEUwg= +github.com/pulumi/pulumi/pkg/v3 v3.143.0/go.mod h1:XzjN1uQI2HWXYolT2L4RIXzvLEnWTSOzFgFFIUfFEa8= +github.com/pulumi/pulumi/sdk/v3 v3.143.0 h1:z1m8Fc6l723eU2J/bP7UHE5t6WbBu4iIDAl1WaalQk4= +github.com/pulumi/pulumi/sdk/v3 v3.143.0/go.mod h1:OFpZabILGxrFqzcABFpMCksrHGVp4ymRM2BkKjlazDY= 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= @@ -2578,8 +2578,8 @@ golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= -golang.org/x/crypto v0.26.0 h1:RrRspgV4mU+YwB4FYnuBoKsUapNIL5cohGAmSH3azsw= -golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn54= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -2796,8 +2796,8 @@ golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sync v0.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= 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= @@ -2920,8 +2920,8 @@ golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg= -golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.0.0-20220722155259-a9ba230a4035/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -2943,8 +2943,8 @@ golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58= -golang.org/x/term v0.23.0 h1:F6D4vR+EHoL9/sWAWgAR1H2DcHr4PareCbAaCo1RpuU= -golang.org/x/term v0.23.0/go.mod h1:DgV24QBUrK6jhZXl+20l6UWznPlwAHm1Q1mGHtydmSk= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -2966,8 +2966,8 @@ golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= -golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= diff --git a/sdk/go.mod b/sdk/go.mod index 9e71010ff9..33b234c5bf 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.142.0 + github.com/pulumi/pulumi/sdk/v3 v3.143.0 ) require ( @@ -74,14 +74,14 @@ require ( github.com/xanzy/ssh-agent v0.3.3 // indirect github.com/zclconf/go-cty v1.13.2 // indirect go.uber.org/atomic v1.9.0 // indirect - golang.org/x/crypto v0.24.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/mod v0.18.0 // indirect golang.org/x/net v0.26.0 // indirect - golang.org/x/sync v0.7.0 // indirect - golang.org/x/sys v0.21.0 // indirect - golang.org/x/term v0.21.0 // indirect - golang.org/x/text v0.16.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect golang.org/x/tools v0.22.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect google.golang.org/grpc v1.63.2 // indirect diff --git a/sdk/go.sum b/sdk/go.sum index 54cd0acde3..8fc058c094 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -150,8 +150,8 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= -github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= -github.com/pulumi/pulumi/sdk/v3 v3.142.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi/sdk/v3 v3.143.0 h1:z1m8Fc6l723eU2J/bP7UHE5t6WbBu4iIDAl1WaalQk4= +github.com/pulumi/pulumi/sdk/v3 v3.143.0/go.mod h1:OFpZabILGxrFqzcABFpMCksrHGVp4ymRM2BkKjlazDY= 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= @@ -209,8 +209,8 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= -golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= -golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 h1:LoYXNGAShUG3m/ehNk4iFctuhGX/+R1ZpfJ4/ia80JM= golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= @@ -239,8 +239,8 @@ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJ 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/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= -golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= 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= @@ -261,15 +261,15 @@ golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= -golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= -golang.org/x/term v0.21.0 h1:WVXCp+/EBEHOj53Rvu+7KiT/iElMrO8ACK16SMZ3jaA= -golang.org/x/term v0.21.0/go.mod h1:ooXLefLobQVslOqselCNF4SxFAaoS6KujMbsGzSDmX0= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= @@ -277,8 +277,8 @@ golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= From 77b66570d154f37e9b5e53e346665b87960b57d4 Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Fri, 13 Dec 2024 14:36:06 +0000 Subject: [PATCH 2/2] make build_sdks --- sdk/dotnet/ActionTrail/GetConsumerGroups.cs | 32 + .../GetGlobalEventsStorageRegion.cs | 29 + .../ActionTrail/GetHistoryDeliveryJobs.cs | 45 + sdk/dotnet/ActionTrail/GetInstances.cs | 61 + sdk/dotnet/ActionTrail/GetSaslAcls.cs | 34 + sdk/dotnet/ActionTrail/GetSaslUsers.cs | 32 + sdk/dotnet/ActionTrail/GetTopics.cs | 32 + sdk/dotnet/ActionTrail/GetTrails.cs | 30 + sdk/dotnet/ActionTrail/GetTrailsDeprecated.cs | 8 + sdk/dotnet/Adb/GetClusters.cs | 34 + sdk/dotnet/Adb/GetDBClusterLakeVersions.cs | 35 + sdk/dotnet/Adb/GetDBClusters.cs | 32 + sdk/dotnet/Adb/GetResourceGroups.cs | 31 + sdk/dotnet/Adb/GetZones.cs | 24 + sdk/dotnet/Alb/GetAcls.cs | 35 + sdk/dotnet/Alb/GetAscripts.cs | 36 + sdk/dotnet/Alb/GetHealthCheckTemplates.cs | 41 + sdk/dotnet/Alb/GetListeners.cs | 35 + sdk/dotnet/Alb/GetLoadBalancers.cs | 35 + sdk/dotnet/Alb/GetRules.cs | 8 + sdk/dotnet/Alb/GetSecurityPolicies.cs | 35 + sdk/dotnet/Alb/GetServerGroups.cs | 35 + sdk/dotnet/Alb/GetSystemSecurityPolicies.cs | 35 + sdk/dotnet/Alb/GetZones.cs | 29 + sdk/dotnet/Amqp/GetBindings.cs | 29 + sdk/dotnet/Amqp/GetExchanges.cs | 46 + sdk/dotnet/Amqp/GetInstances.cs | 42 + sdk/dotnet/Amqp/GetQueues.cs | 46 + sdk/dotnet/Amqp/GetStaticAccounts.cs | 30 + sdk/dotnet/Amqp/GetVirtualHosts.cs | 44 + sdk/dotnet/ApiGateway/GetApis.cs | 79 + sdk/dotnet/ApiGateway/GetApps.cs | 28 + sdk/dotnet/ApiGateway/GetBackends.cs | 29 + sdk/dotnet/ApiGateway/GetGroups.cs | 28 + sdk/dotnet/ApiGateway/GetLogConfigs.cs | 41 + sdk/dotnet/ApiGateway/GetModels.cs | 42 + sdk/dotnet/ApiGateway/GetPlugins.cs | 35 + sdk/dotnet/ApiGateway/GetService.cs | 28 + sdk/dotnet/Arms/GetAlertContactGroups.cs | 32 + sdk/dotnet/Arms/GetAlertContacts.cs | 35 + sdk/dotnet/Arms/GetAlertRobots.cs | 39 + sdk/dotnet/Arms/GetDispatchRules.cs | 112 + sdk/dotnet/Arms/GetIntegrationExporters.cs | 37 + sdk/dotnet/Arms/GetPrometheis.cs | 69 + sdk/dotnet/Arms/GetPrometheus.cs | 67 + sdk/dotnet/Arms/GetPrometheusAlertRules.cs | 44 + sdk/dotnet/Arms/GetPrometheusMonitorings.cs | 43 + sdk/dotnet/Arms/GetRemoteWrites.cs | 45 + sdk/dotnet/BastionHost/GetHostAccounts.cs | 46 + sdk/dotnet/BastionHost/GetHostGroups.cs | 44 + sdk/dotnet/BastionHost/GetHostShareKeys.cs | 44 + sdk/dotnet/BastionHost/GetHosts.cs | 44 + sdk/dotnet/BastionHost/GetInstances.cs | 32 + sdk/dotnet/BastionHost/GetUserGroups.cs | 44 + sdk/dotnet/BastionHost/GetUsers.cs | 44 + sdk/dotnet/Bp/GetStudioApplications.cs | 41 + sdk/dotnet/Brain/GetIndustrialPidLoops.cs | 39 + .../Brain/GetIndustrialPidOrganizations.cs | 38 + sdk/dotnet/Brain/GetIndustrialPidProjects.cs | 38 + sdk/dotnet/Brain/GetIndustrialSerice.cs | 30 + sdk/dotnet/Bss/GetOpenApiPricingModules.cs | 33 + sdk/dotnet/Bss/GetOpenApiProducts.cs | 8 + sdk/dotnet/CR/GetChains.cs | 46 + sdk/dotnet/CR/GetChartNamespaces.cs | 8 + sdk/dotnet/CR/GetChartRepositories.cs | 37 + sdk/dotnet/CR/GetEndpointAclPolicies.cs | 38 + sdk/dotnet/CR/GetEndpointAclService.cs | 33 + sdk/dotnet/CR/GetNamespaces.cs | 32 + sdk/dotnet/CR/GetRepos.cs | 32 + sdk/dotnet/CR/GetService.cs | 29 + sdk/dotnet/CR/GetVpcEndpointLinkedVpcs.cs | 37 + sdk/dotnet/CS/GetAckService.cs | 29 + sdk/dotnet/CS/GetClusterCredential.cs | 10 + sdk/dotnet/CS/GetEdgeKubernetesClusters.cs | 32 + sdk/dotnet/CS/GetKubernetesAddonMetadata.cs | 8 + sdk/dotnet/CS/GetKubernetesAddons.cs | 9 + sdk/dotnet/CS/GetKubernetesClusters.cs | 35 + sdk/dotnet/CS/GetKubernetesPermission.cs | 34 + sdk/dotnet/CS/GetKubernetesVersion.cs | 102 + sdk/dotnet/CS/GetManagedKubernetesClusters.cs | 35 + .../CS/GetRegistryEnterpriseInstances.cs | 32 + .../CS/GetRegistryEnterpriseNamespaces.cs | 33 + sdk/dotnet/CS/GetRegistryEnterpriseRepos.cs | 33 + .../CS/GetRegistryEnterpriseSyncRules.cs | 35 + .../CS/GetServerlessKubernetesClusters.cs | 35 + sdk/dotnet/Cas/GetCertificates.cs | 8 + sdk/dotnet/Cas/GetServiceCertificates.cs | 93 + sdk/dotnet/Cassandra/GetBackupPlans.cs | 34 + sdk/dotnet/Cassandra/GetClusters.cs | 29 + sdk/dotnet/Cassandra/GetDataCenters.cs | 30 + sdk/dotnet/Cassandra/GetZones.cs | 32 + sdk/dotnet/Cddc/GetDedicatedHostAccounts.cs | 29 + sdk/dotnet/Cddc/GetDedicatedHostGroups.cs | 32 + sdk/dotnet/Cddc/GetDedicatedHosts.cs | 85 + sdk/dotnet/Cddc/GetHostEcsLevelInfos.cs | 8 + sdk/dotnet/Cddc/GetZones.cs | 29 + sdk/dotnet/Cdn/GetBlockedRegions.cs | 28 + sdk/dotnet/Cdn/GetIpInfo.cs | 28 + sdk/dotnet/Cdn/GetRealTimeLogDeliveries.cs | 32 + sdk/dotnet/Cdn/GetService.cs | 29 + sdk/dotnet/Cen/GetBandwidthLimits.cs | 31 + sdk/dotnet/Cen/GetBandwidthPackages.cs | 29 + ...GetChildInstanceRouteEntryToAttachments.cs | 31 + sdk/dotnet/Cen/GetFlowlogs.cs | 83 + sdk/dotnet/Cen/GetInstanceAttachments.cs | 30 + sdk/dotnet/Cen/GetInstances.cs | 32 + .../Cen/GetInterRegionTrafficQosPolicies.cs | 45 + .../Cen/GetInterRegionTrafficQosQueues.cs | 35 + sdk/dotnet/Cen/GetPrivateZones.cs | 35 + sdk/dotnet/Cen/GetRegionRouteEntries.cs | 29 + sdk/dotnet/Cen/GetRouteEntries.cs | 29 + sdk/dotnet/Cen/GetRouteMaps.cs | 38 + sdk/dotnet/Cen/GetRouteServices.cs | 32 + sdk/dotnet/Cen/GetTrafficMarkingPolicies.cs | 44 + .../Cen/GetTransitRouteTableAggregations.cs | 43 + .../Cen/GetTransitRouterAvailableResources.cs | 30 + sdk/dotnet/Cen/GetTransitRouterCidrs.cs | 43 + ...ransitRouterMulticastDomainAssociations.cs | 36 + .../GetTransitRouterMulticastDomainMembers.cs | 32 + ...TransitRouterMulticastDomainPeerMembers.cs | 32 + .../GetTransitRouterMulticastDomainSources.cs | 30 + .../Cen/GetTransitRouterMulticastDomains.cs | 43 + .../Cen/GetTransitRouterPeerAttachments.cs | 8 + .../GetTransitRouterPrefixListAssociations.cs | 33 + .../Cen/GetTransitRouterRouteEntries.cs | 8 + .../GetTransitRouterRouteTableAssociations.cs | 30 + .../GetTransitRouterRouteTablePropagations.cs | 30 + sdk/dotnet/Cen/GetTransitRouterRouteTables.cs | 51 + sdk/dotnet/Cen/GetTransitRouterService.cs | 28 + .../Cen/GetTransitRouterVbrAttachments.cs | 8 + .../Cen/GetTransitRouterVpcAttachments.cs | 90 + .../Cen/GetTransitRouterVpnAttachments.cs | 32 + sdk/dotnet/Cen/GetTransitRouters.cs | 30 + sdk/dotnet/Cen/GetVbrHealthChecks.cs | 8 + sdk/dotnet/Cfg/GetAggregateCompliancePacks.cs | 37 + sdk/dotnet/Cfg/GetAggregateConfigRules.cs | 37 + sdk/dotnet/Cfg/GetAggregateDeliveries.cs | 37 + sdk/dotnet/Cfg/GetAggregators.cs | 36 + sdk/dotnet/Cfg/GetCompliancePacks.cs | 36 + sdk/dotnet/Cfg/GetConfigurationRecorders.cs | 29 + sdk/dotnet/Cfg/GetDeliveries.cs | 35 + sdk/dotnet/Cfg/GetDeliveryChannels.cs | 39 + sdk/dotnet/Cfg/GetRules.cs | 36 + sdk/dotnet/Chatbot/GetAgents.cs | 30 + sdk/dotnet/ClickHouse/GetAccounts.cs | 83 + sdk/dotnet/ClickHouse/GetBackupPolicies.cs | 32 + sdk/dotnet/ClickHouse/GetDbClusters.cs | 48 + sdk/dotnet/ClickHouse/GetRegions.cs | 33 + sdk/dotnet/CloudAuth/GetFaceConfigs.cs | 42 + sdk/dotnet/CloudConnect/GetNetworks.cs | 40 + sdk/dotnet/CloudFirewall/GetAddressBooks.cs | 50 + .../CloudFirewall/GetControlPolicies.cs | 28 + .../CloudFirewall/GetInstanceMembers.cs | 33 + sdk/dotnet/CloudFirewall/GetInstances.cs | 29 + .../CloudFirewall/GetVpcFirewallCens.cs | 37 + .../GetVpcFirewallControlPolicies.cs | 37 + sdk/dotnet/CloudFirewall/GetVpcFirewalls.cs | 36 + .../GetServiceHybridDoubleWrites.cs | 55 + sdk/dotnet/CloudSso/GetAccessAssignments.cs | 39 + .../CloudSso/GetAccessConfigurations.cs | 46 + sdk/dotnet/CloudSso/GetDirectories.cs | 43 + sdk/dotnet/CloudSso/GetGroups.cs | 46 + .../CloudSso/GetScimServerCredentials.cs | 40 + sdk/dotnet/CloudSso/GetService.cs | 32 + sdk/dotnet/CloudSso/GetUsers.cs | 68 + .../CloudStorageGateway/GetExpressSyncs.cs | 35 + .../GetGatewayBlockVolumes.cs | 44 + .../GetGatewayCacheDisks.cs | 49 + .../GetGatewayFileShares.cs | 44 + .../CloudStorageGateway/GetGatewaySmbUsers.cs | 72 + sdk/dotnet/CloudStorageGateway/GetGateways.cs | 38 + sdk/dotnet/CloudStorageGateway/GetService.cs | 28 + sdk/dotnet/CloudStorageGateway/GetStocks.cs | 32 + .../CloudStorageGateway/GetStorageBundles.cs | 3 + sdk/dotnet/Cms/GetAlarmContactGroups.cs | 28 + sdk/dotnet/Cms/GetAlarmContacts.cs | 35 + sdk/dotnet/Cms/GetDynamicTagGroups.cs | 61 + sdk/dotnet/Cms/GetEventRules.cs | 41 + sdk/dotnet/Cms/GetGroupMetricRules.cs | 36 + sdk/dotnet/Cms/GetHybridMonitorDatas.cs | 35 + sdk/dotnet/Cms/GetHybridMonitorFcTasks.cs | 35 + sdk/dotnet/Cms/GetHybridMonitorSlsTasks.cs | 35 + sdk/dotnet/Cms/GetMetricRuleBlackLists.cs | 35 + sdk/dotnet/Cms/GetMetricRuleTemplates.cs | 53 + sdk/dotnet/Cms/GetMonitorGroupInstances.cs | 3 + sdk/dotnet/Cms/GetMonitorGroups.cs | 36 + sdk/dotnet/Cms/GetNamespaces.cs | 35 + sdk/dotnet/Cms/GetService.cs | 30 + sdk/dotnet/Cms/GetSiteMonitors.cs | 75 + sdk/dotnet/Cms/GetSlsGroups.cs | 41 + sdk/dotnet/Compute/GetNestServiceInstances.cs | 41 + sdk/dotnet/DBS/GetBackupPlans.cs | 35 + sdk/dotnet/DataWorks/GetFolders.cs | 43 + sdk/dotnet/DataWorks/GetService.cs | 28 + .../GetAutoSnapShotPolicies.cs | 33 + sdk/dotnet/DatabaseFilesystem/GetInstances.cs | 41 + sdk/dotnet/DatabaseFilesystem/GetSnapshots.cs | 47 + sdk/dotnet/DatabaseGateway/GetGateways.cs | 41 + sdk/dotnet/Datahub/GetService.cs | 30 + sdk/dotnet/Dcdn/GetDomains.cs | 33 + sdk/dotnet/Dcdn/GetIpaDomains.cs | 43 + sdk/dotnet/Dcdn/GetKvAccount.cs | 26 + sdk/dotnet/Dcdn/GetService.cs | 28 + sdk/dotnet/Dcdn/GetWafDomains.cs | 29 + sdk/dotnet/Dcdn/GetWafPolicies.cs | 29 + sdk/dotnet/Dcdn/GetWafRules.cs | 33 + sdk/dotnet/Ddos/GetDdosBgpInstances.cs | 46 + sdk/dotnet/Ddos/GetDdosBgpIps.cs | 37 + sdk/dotnet/Ddos/GetDdosCooDomainResources.cs | 35 + sdk/dotnet/Ddos/GetDdosCooInstances.cs | 32 + sdk/dotnet/Ddos/GetDdosCooPorts.cs | 36 + sdk/dotnet/Dds/GetMongoInstances.cs | 3 + sdk/dotnet/Dfs/GetAccessGroups.cs | 41 + sdk/dotnet/Dfs/GetAccessRules.cs | 37 + sdk/dotnet/Dfs/GetFileSystems.cs | 41 + sdk/dotnet/Dfs/GetMountPoints.cs | 37 + sdk/dotnet/Dfs/GetZones.cs | 25 + sdk/dotnet/DirectMail/GetDomains.cs | 42 + sdk/dotnet/DirectMail/GetMailAddresses.cs | 35 + sdk/dotnet/DirectMail/GetReceivers.cs | 36 + sdk/dotnet/DirectMail/GetTags.cs | 41 + sdk/dotnet/Dms/GetEnterpriseDatabases.cs | 33 + sdk/dotnet/Dms/GetEnterpriseInstances.cs | 35 + sdk/dotnet/Dms/GetEnterpriseLogicDatabases.cs | 8 + sdk/dotnet/Dms/GetEnterpriseProxies.cs | 29 + sdk/dotnet/Dms/GetEnterpriseProxyAccesses.cs | 42 + sdk/dotnet/Dms/GetEnterpriseUsers.cs | 36 + sdk/dotnet/Dms/GetUserTenants.cs | 31 + sdk/dotnet/Dns/GetAccessStrategies.cs | 39 + sdk/dotnet/Dns/GetAddressPools.cs | 44 + sdk/dotnet/Dns/GetAlidnsDomainGroups.cs | 33 + sdk/dotnet/Dns/GetAlidnsDomains.cs | 31 + sdk/dotnet/Dns/GetAlidnsInstances.cs | 33 + sdk/dotnet/Dns/GetAlidnsRecords.cs | 36 + sdk/dotnet/Dns/GetCustomLines.cs | 33 + sdk/dotnet/Dns/GetDomainGroups.cs | 6 + sdk/dotnet/Dns/GetDomainRecords.cs | 6 + sdk/dotnet/Dns/GetDomainTxtGuid.cs | 32 + sdk/dotnet/Dns/GetDomains.cs | 31 + sdk/dotnet/Dns/GetGroups.cs | 29 + sdk/dotnet/Dns/GetGtmInstances.cs | 29 + sdk/dotnet/Dns/GetInstances.cs | 35 + sdk/dotnet/Dns/GetRecords.cs | 34 + sdk/dotnet/Dns/GetResolutionLines.cs | 34 + sdk/dotnet/Drds/GetInstances.cs | 35 + sdk/dotnet/Dts/GetConsumerChannels.cs | 29 + sdk/dotnet/Dts/GetInstances.cs | 34 + sdk/dotnet/Dts/GetMigrationJobs.cs | 35 + sdk/dotnet/Dts/GetSubscriptionJobs.cs | 29 + sdk/dotnet/Dts/GetSynchronizationJobs.cs | 29 + sdk/dotnet/Eais/GetInstances.cs | 8 + .../Ebs/GetDedicatedBlockStorageClusters.cs | 34 + sdk/dotnet/Ebs/GetDiskReplicaGroups.cs | 35 + sdk/dotnet/Ebs/GetDiskReplicaPairs.cs | 33 + sdk/dotnet/Ebs/GetRegions.cs | 32 + sdk/dotnet/Eci/GetContainerGroups.cs | 35 + sdk/dotnet/Eci/GetImageCaches.cs | 33 + sdk/dotnet/Eci/GetVirtualNodes.cs | 42 + sdk/dotnet/Eci/GetZones.cs | 29 + sdk/dotnet/Ecp/GetInstanceTypes.cs | 29 + sdk/dotnet/Ecp/GetInstances.cs | 85 + sdk/dotnet/Ecp/GetKeyPairs.cs | 35 + sdk/dotnet/Ecp/GetZones.cs | 29 + sdk/dotnet/Ecs/GetActivations.cs | 29 + sdk/dotnet/Ecs/GetAutoSnapshotPolicies.cs | 36 + sdk/dotnet/Ecs/GetCapacityReservations.cs | 36 + sdk/dotnet/Ecs/GetCommands.cs | 36 + sdk/dotnet/Ecs/GetDedicatedHosts.cs | 33 + sdk/dotnet/Ecs/GetDisks.cs | 30 + sdk/dotnet/Ecs/GetEcsDedicatedHostClusters.cs | 62 + sdk/dotnet/Ecs/GetEcsDeploymentSets.cs | 41 + sdk/dotnet/Ecs/GetEcsDisks.cs | 36 + sdk/dotnet/Ecs/GetEcsImageComponents.cs | 41 + sdk/dotnet/Ecs/GetEcsImagePipeline.cs | 41 + sdk/dotnet/Ecs/GetEcsInvocations.cs | 35 + sdk/dotnet/Ecs/GetEcsKeyPairs.cs | 36 + sdk/dotnet/Ecs/GetEcsLaunchTemplates.cs | 145 + .../Ecs/GetEcsNetworkInterfacePermissions.cs | 36 + sdk/dotnet/Ecs/GetEcsNetworkInterfaces.cs | 32 + sdk/dotnet/Ecs/GetEcsPrefixLists.cs | 36 + sdk/dotnet/Ecs/GetEcsSnapshotGroups.cs | 53 + sdk/dotnet/Ecs/GetEcsSnapshots.cs | 36 + sdk/dotnet/Ecs/GetEcsStorageCapacityUnits.cs | 35 + sdk/dotnet/Ecs/GetEipAddresses.cs | 36 + sdk/dotnet/Ecs/GetEips.cs | 27 + sdk/dotnet/Ecs/GetElasticityAssurances.cs | 33 + sdk/dotnet/Ecs/GetHpcClusters.cs | 36 + sdk/dotnet/Ecs/GetImages.cs | 30 + sdk/dotnet/Ecs/GetInstanceKeywords.cs | 31 + sdk/dotnet/Ecs/GetInstanceTypeFamilies.cs | 31 + sdk/dotnet/Ecs/GetInstanceTypes.cs | 97 + sdk/dotnet/Ecs/GetInstances.cs | 30 + sdk/dotnet/Ecs/GetKeyPairs.cs | 32 + sdk/dotnet/Ecs/GetNetworkInterfaces.cs | 127 + sdk/dotnet/Ecs/GetSecurityGroupRules.cs | 47 + sdk/dotnet/Ecs/GetSecurityGroups.cs | 38 + sdk/dotnet/Ecs/GetSnapshots.cs | 63 + sdk/dotnet/Edas/GetApplications.cs | 34 + sdk/dotnet/Edas/GetClusters.cs | 35 + sdk/dotnet/Edas/GetDeployGroups.cs | 8 + sdk/dotnet/Edas/GetNamespaces.cs | 41 + sdk/dotnet/Edas/GetService.cs | 30 + sdk/dotnet/Eds/GetAdConnectorDirectories.cs | 35 + sdk/dotnet/Eds/GetAdConnectorOfficeSites.cs | 35 + sdk/dotnet/Eds/GetBundles.cs | 28 + sdk/dotnet/Eds/GetCommands.cs | 85 + sdk/dotnet/Eds/GetCustomProperties.cs | 35 + sdk/dotnet/Eds/GetDesktopTypes.cs | 32 + sdk/dotnet/Eds/GetDesktops.cs | 101 + sdk/dotnet/Eds/GetImages.cs | 96 + sdk/dotnet/Eds/GetNasFileSystems.cs | 50 + sdk/dotnet/Eds/GetNetworkPackages.cs | 48 + sdk/dotnet/Eds/GetPolicyGroups.cs | 62 + sdk/dotnet/Eds/GetRamDirectories.cs | 41 + sdk/dotnet/Eds/GetSimpleOfficeSites.cs | 36 + sdk/dotnet/Eds/GetSnapshots.cs | 29 + sdk/dotnet/Eds/GetUsers.cs | 37 + sdk/dotnet/Eds/GetZones.cs | 29 + sdk/dotnet/Eflo/GetSubnets.cs | 33 + sdk/dotnet/Eflo/GetVpds.cs | 35 + sdk/dotnet/Ehpc/GetClusters.cs | 41 + sdk/dotnet/Ehpc/GetJobTemplates.cs | 41 + .../EipAnycast/GetAnycastEipAddresses.cs | 36 + sdk/dotnet/ElasticSearch/GetInstances.cs | 3 + sdk/dotnet/ElasticSearch/GetZones.cs | 24 + sdk/dotnet/Emr/GetClusters.cs | 208 ++ sdk/dotnet/Emr/GetDiskTypes.cs | 35 + sdk/dotnet/Emr/GetInstanceTypes.cs | 40 + sdk/dotnet/Emr/GetMainVersions.cs | 37 + sdk/dotnet/Emrv2/GetClusters.cs | 8 + sdk/dotnet/Ens/GetKeyPairs.cs | 33 + sdk/dotnet/Ess/GetAlarms.cs | 8 + sdk/dotnet/Ess/GetLifecycleHooks.cs | 31 + sdk/dotnet/Ess/GetNotifications.cs | 30 + sdk/dotnet/Ess/GetScalingConfigurations.cs | 34 + sdk/dotnet/Ess/GetScalingGroups.cs | 33 + sdk/dotnet/Ess/GetScalingRules.cs | 34 + sdk/dotnet/Ess/GetScheduledTasks.cs | 31 + sdk/dotnet/EventBridge/GetEventBuses.cs | 35 + sdk/dotnet/EventBridge/GetEventSources.cs | 36 + sdk/dotnet/EventBridge/GetRules.cs | 37 + sdk/dotnet/EventBridge/GetService.cs | 30 + sdk/dotnet/ExpressConnect/GetAccessPoints.cs | 41 + .../ExpressConnect/GetGrantRuleToCens.cs | 36 + .../GetPhysicalConnectionService.cs | 28 + .../ExpressConnect/GetPhysicalConnections.cs | 41 + .../ExpressConnect/GetRouterInterfaces.cs | 34 + .../ExpressConnect/GetVbrPconnAssociations.cs | 34 + .../ExpressConnect/GetVirtualBorderRouters.cs | 60 + .../GetVirtualPhysicalConnections.cs | 8 + sdk/dotnet/FC/GetCustomDomains.cs | 30 + sdk/dotnet/FC/GetFunctions.cs | 29 + sdk/dotnet/FC/GetService.cs | 28 + sdk/dotnet/FC/GetServices.cs | 28 + sdk/dotnet/FC/GetTriggers.cs | 30 + sdk/dotnet/FC/GetZones.cs | 24 + sdk/dotnet/FNF/GetExecutions.cs | 37 + sdk/dotnet/FNF/GetFlows.cs | 36 + sdk/dotnet/FNF/GetSchedules.cs | 37 + sdk/dotnet/FNF/GetService.cs | 28 + .../Ga/GetAcceleratorSpareIpAttachments.cs | 37 + sdk/dotnet/Ga/GetAccelerators.cs | 32 + sdk/dotnet/Ga/GetAcls.cs | 35 + sdk/dotnet/Ga/GetAdditionalCertificates.cs | 38 + sdk/dotnet/Ga/GetBandwidthPackages.cs | 36 + .../GetBasicAccelerateIpEndpointRelations.cs | 36 + sdk/dotnet/Ga/GetBasicAccelerateIps.cs | 36 + sdk/dotnet/Ga/GetBasicAccelerators.cs | 41 + sdk/dotnet/Ga/GetBasicEndpoints.cs | 43 + ...tCustomRoutingEndpointGroupDestinations.cs | 36 + .../Ga/GetCustomRoutingEndpointGroups.cs | 43 + ...GetCustomRoutingEndpointTrafficPolicies.cs | 36 + sdk/dotnet/Ga/GetCustomRoutingEndpoints.cs | 36 + sdk/dotnet/Ga/GetCustomRoutingPortMappings.cs | 32 + sdk/dotnet/Ga/GetDomains.cs | 50 + .../Ga/GetEndpointGroupIpAddressCidrBlocks.cs | 32 + sdk/dotnet/Ga/GetEndpointGroups.cs | 115 + sdk/dotnet/Ga/GetForwardingRules.cs | 37 + sdk/dotnet/Ga/GetIpSets.cs | 36 + sdk/dotnet/Ga/GetListeners.cs | 37 + sdk/dotnet/GetAccount.cs | 25 + sdk/dotnet/GetCallerIdentity.cs | 27 + sdk/dotnet/GetFileCrc64Checksum.cs | 30 + .../GetMscSubContactVerificationMessage.cs | 35 + sdk/dotnet/GetMscSubContacts.cs | 35 + sdk/dotnet/GetMscSubSubscriptions.cs | 29 + sdk/dotnet/GetMscSubWebhooks.cs | 41 + sdk/dotnet/GetRegions.cs | 28 + sdk/dotnet/GetZones.cs | 29 + sdk/dotnet/Governance/GetBaselines.cs | 73 + sdk/dotnet/Gpdb/GetAccounts.cs | 44 + sdk/dotnet/Gpdb/GetDataBackups.cs | 35 + sdk/dotnet/Gpdb/GetDbInstancePlans.cs | 43 + sdk/dotnet/Gpdb/GetInstances.cs | 29 + sdk/dotnet/Gpdb/GetLogBackups.cs | 41 + sdk/dotnet/Gpdb/GetZones.cs | 8 + sdk/dotnet/GraphDatabase/GetDbInstances.cs | 55 + sdk/dotnet/Gwlb/GetZones.cs | 27 + sdk/dotnet/Hbase/GetInstanceTypes.cs | 8 + sdk/dotnet/Hbase/GetInstances.cs | 28 + sdk/dotnet/Hbase/GetZones.cs | 28 + sdk/dotnet/Hbr/GetBackupJobs.cs | 105 + sdk/dotnet/Hbr/GetEcsBackupClients.cs | 45 + sdk/dotnet/Hbr/GetEcsBackupPlans.cs | 32 + sdk/dotnet/Hbr/GetHanaBackupClients.cs | 36 + sdk/dotnet/Hbr/GetHanaBackupPlans.cs | 37 + sdk/dotnet/Hbr/GetHanaInstances.cs | 35 + sdk/dotnet/Hbr/GetNasBackupPlans.cs | 32 + sdk/dotnet/Hbr/GetOssBackupPlans.cs | 32 + sdk/dotnet/Hbr/GetOtsBackupPlans.cs | 32 + sdk/dotnet/Hbr/GetOtsSnapshots.cs | 25 + sdk/dotnet/Hbr/GetReplicationVaultRegions.cs | 29 + sdk/dotnet/Hbr/GetRestoreJobs.cs | 41 + sdk/dotnet/Hbr/GetServerBackupPlans.cs | 48 + sdk/dotnet/Hbr/GetService.cs | 30 + sdk/dotnet/Hbr/GetSnapshots.cs | 68 + sdk/dotnet/Hbr/GetVaults.cs | 32 + sdk/dotnet/Imm/GetProjects.cs | 35 + sdk/dotnet/Imp/GetAppTemplates.cs | 35 + sdk/dotnet/Iot/GetDeviceGroups.cs | 29 + sdk/dotnet/Iot/GetService.cs | 28 + sdk/dotnet/KVStore/GetAccounts.cs | 32 + sdk/dotnet/KVStore/GetConnections.cs | 31 + sdk/dotnet/KVStore/GetInstanceClasses.cs | 39 + sdk/dotnet/KVStore/GetInstanceEngines.cs | 39 + sdk/dotnet/KVStore/GetInstances.cs | 30 + sdk/dotnet/KVStore/GetPermission.cs | 30 + sdk/dotnet/KVStore/GetZones.cs | 27 + sdk/dotnet/Kms/GetAliases.cs | 35 + sdk/dotnet/Kms/GetCiphertext.cs | 31 + sdk/dotnet/Kms/GetKeyVersions.cs | 35 + sdk/dotnet/Kms/GetKeys.cs | 30 + sdk/dotnet/Kms/GetPlaintext.cs | 40 + sdk/dotnet/Kms/GetSecretVersions.cs | 32 + sdk/dotnet/Kms/GetSecrets.cs | 37 + sdk/dotnet/Kms/GetService.cs | 28 + sdk/dotnet/Lindorm/GetInstances.cs | 35 + sdk/dotnet/Log/GetAlertResource.cs | 31 + sdk/dotnet/Log/GetProjects.cs | 8 + sdk/dotnet/Log/GetService.cs | 28 + sdk/dotnet/Log/GetStores.cs | 36 + sdk/dotnet/MarketPlace/GetProduct.cs | 32 + sdk/dotnet/MarketPlace/GetProducts.cs | 8 + sdk/dotnet/MaxCompute/GetProjects.cs | 40 + sdk/dotnet/MaxCompute/GetService.cs | 32 + sdk/dotnet/Message/GetServiceQueues.cs | 39 + sdk/dotnet/Message/GetServiceSubscriptions.cs | 40 + sdk/dotnet/Message/GetServiceTopics.cs | 39 + sdk/dotnet/Mhub/GetApps.cs | 45 + sdk/dotnet/Mhub/GetProducts.cs | 42 + sdk/dotnet/Mns/GetQueues.cs | 30 + sdk/dotnet/Mns/GetService.cs | 30 + sdk/dotnet/Mns/GetTopicSubscriptions.cs | 31 + sdk/dotnet/Mns/GetTopics.cs | 30 + sdk/dotnet/MongoDB/GetAccounts.cs | 33 + sdk/dotnet/MongoDB/GetAuditPolicies.cs | 32 + sdk/dotnet/MongoDB/GetInstances.cs | 28 + sdk/dotnet/MongoDB/GetServerlessInstances.cs | 48 + .../GetShardingNetworkPrivateAddresses.cs | 8 + .../GetShardingNetworkPublicAddresses.cs | 34 + sdk/dotnet/MongoDB/GetZones.cs | 30 + sdk/dotnet/Mse/GetClusters.cs | 72 + sdk/dotnet/Mse/GetEngineNamespaces.cs | 76 + sdk/dotnet/Mse/GetGateways.cs | 47 + sdk/dotnet/Mse/GetNacosConfigs.cs | 83 + sdk/dotnet/Mse/GetZnodes.cs | 46 + sdk/dotnet/Nas/GetAccessGroups.cs | 32 + sdk/dotnet/Nas/GetAccessRules.cs | 8 + sdk/dotnet/Nas/GetAutoSnapshotPolicies.cs | 33 + sdk/dotnet/Nas/GetDataFlows.cs | 44 + sdk/dotnet/Nas/GetFileSystems.cs | 31 + sdk/dotnet/Nas/GetFilesets.cs | 37 + sdk/dotnet/Nas/GetLifecyclePolicies.cs | 44 + sdk/dotnet/Nas/GetMountTargets.cs | 31 + sdk/dotnet/Nas/GetProtocols.cs | 32 + sdk/dotnet/Nas/GetService.cs | 28 + sdk/dotnet/Nas/GetSnapshots.cs | 35 + sdk/dotnet/Nas/GetZones.cs | 27 + sdk/dotnet/Nlb/GetListeners.cs | 35 + sdk/dotnet/Nlb/GetLoadBalancers.cs | 41 + sdk/dotnet/Nlb/GetSecurityPolicies.cs | 35 + .../Nlb/GetServerGroupServerAttachments.cs | 35 + sdk/dotnet/Nlb/GetServerGroups.cs | 35 + sdk/dotnet/Nlb/GetZones.cs | 29 + sdk/dotnet/Ocean/GetBaseInstances.cs | 35 + sdk/dotnet/Oos/GetApplicationGroups.cs | 44 + sdk/dotnet/Oos/GetApplications.cs | 35 + sdk/dotnet/Oos/GetExecutions.cs | 36 + sdk/dotnet/Oos/GetParameters.cs | 65 + sdk/dotnet/Oos/GetPatchBaselines.cs | 8 + sdk/dotnet/Oos/GetSecretParameters.cs | 59 + sdk/dotnet/Oos/GetStateConfigurations.cs | 29 + sdk/dotnet/Oos/GetTemplates.cs | 38 + sdk/dotnet/OpenSearch/GetAppGroups.cs | 50 + sdk/dotnet/Oss/GetBucketObjects.cs | 29 + sdk/dotnet/Oss/GetBuckets.cs | 28 + sdk/dotnet/Oss/GetInstanceAttachments.cs | 30 + sdk/dotnet/Oss/GetInstances.cs | 30 + sdk/dotnet/Oss/GetService.cs | 28 + sdk/dotnet/Oss/GetTables.cs | 22 + sdk/dotnet/Ots/GetInstanceAttachments.cs | 30 + sdk/dotnet/Ots/GetInstances.cs | 30 + sdk/dotnet/Ots/GetSearchIndexes.cs | 10 + sdk/dotnet/Ots/GetSecondaryIndexes.cs | 25 + sdk/dotnet/Ots/GetService.cs | 28 + sdk/dotnet/Ots/GetTables.cs | 22 + sdk/dotnet/Ots/GetTunnels.cs | 35 + sdk/dotnet/PolarDB/GetAccounts.cs | 79 + sdk/dotnet/PolarDB/GetClusters.cs | 64 + sdk/dotnet/PolarDB/GetDatabases.cs | 77 + sdk/dotnet/PolarDB/GetEndpoints.cs | 69 + .../PolarDB/GetGlobalDatabaseNetworks.cs | 79 + sdk/dotnet/PolarDB/GetNodeClasses.cs | 33 + sdk/dotnet/PolarDB/GetParameterGroups.cs | 47 + sdk/dotnet/PolarDB/GetZones.cs | 24 + sdk/dotnet/PrivateLink/GetService.cs | 28 + .../PrivateLink/GetVpcEndpointConnections.cs | 33 + .../GetVpcEndpointServiceResources.cs | 32 + .../PrivateLink/GetVpcEndpointServiceUsers.cs | 32 + .../PrivateLink/GetVpcEndpointServices.cs | 42 + sdk/dotnet/PrivateLink/GetVpcEndpointZones.cs | 32 + sdk/dotnet/PrivateLink/GetVpcEndpoints.cs | 36 + sdk/dotnet/Pvtz/GetEndpoints.cs | 41 + sdk/dotnet/Pvtz/GetResolverZones.cs | 32 + sdk/dotnet/Pvtz/GetRules.cs | 35 + sdk/dotnet/Pvtz/GetService.cs | 28 + sdk/dotnet/Pvtz/GetZoneRecords.cs | 29 + sdk/dotnet/Pvtz/GetZones.cs | 28 + sdk/dotnet/QuickBI/GetUsers.cs | 35 + sdk/dotnet/Quotas/GetApplicationInfos.cs | 3 + sdk/dotnet/Quotas/GetQuotaAlarms.cs | 36 + sdk/dotnet/Quotas/GetQuotaApplications.cs | 48 + sdk/dotnet/Quotas/GetQuotas.cs | 33 + sdk/dotnet/Quotas/GetTemplateApplications.cs | 74 + sdk/dotnet/Ram/GetAccountAlias.cs | 30 + sdk/dotnet/Ram/GetAccountAliases.cs | 3 + sdk/dotnet/Ram/GetGroups.cs | 32 + sdk/dotnet/Ram/GetPolicies.cs | 33 + sdk/dotnet/Ram/GetPolicyDocument.cs | 417 +++ sdk/dotnet/Ram/GetRoles.cs | 33 + sdk/dotnet/Ram/GetSamlProviders.cs | 36 + sdk/dotnet/Ram/GetUsers.cs | 90 + sdk/dotnet/Rdc/GetOrganizations.cs | 49 + sdk/dotnet/Rds/GetAccounts.cs | 33 + sdk/dotnet/Rds/GetCharacterSetNames.cs | 31 + sdk/dotnet/Rds/GetClassDetails.cs | 31 + sdk/dotnet/Rds/GetCollationTimeZones.cs | 32 + sdk/dotnet/Rds/GetCrossRegionBackups.cs | 34 + sdk/dotnet/Rds/GetCrossRegions.cs | 28 + sdk/dotnet/Rds/GetInstanceClassInfos.cs | 32 + sdk/dotnet/Rds/GetInstanceClasses.cs | 33 + sdk/dotnet/Rds/GetInstanceEngines.cs | 33 + sdk/dotnet/Rds/GetInstances.cs | 37 + sdk/dotnet/Rds/GetModifyParameterLogs.cs | 30 + sdk/dotnet/Rds/GetRdsBackups.cs | 32 + sdk/dotnet/Rds/GetRdsParameterGroups.cs | 3 + sdk/dotnet/Rds/GetSlots.cs | 32 + sdk/dotnet/Rds/GetZones.cs | 30 + .../GetAccountDeletionCheckTask.cs | 36 + sdk/dotnet/ResourceManager/GetAccounts.cs | 27 + .../ResourceManager/GetControlPolicies.cs | 36 + .../GetControlPolicyAttachments.cs | 32 + .../GetDelegatedAdministrators.cs | 35 + sdk/dotnet/ResourceManager/GetFolders.cs | 42 + sdk/dotnet/ResourceManager/GetHandshakes.cs | 27 + sdk/dotnet/ResourceManager/GetPolicies.cs | 8 + .../ResourceManager/GetPolicyAttachments.cs | 27 + .../ResourceManager/GetPolicyVersions.cs | 31 + .../ResourceManager/GetResourceDirectories.cs | 27 + .../ResourceManager/GetResourceGroups.cs | 32 + .../ResourceManager/GetResourceShares.cs | 37 + sdk/dotnet/ResourceManager/GetRoles.cs | 30 + .../ResourceManager/GetSharedResources.cs | 8 + .../ResourceManager/GetSharedTargets.cs | 56 + sdk/dotnet/RocketMQ/GetGroups.cs | 41 + sdk/dotnet/RocketMQ/GetInstances.cs | 43 + sdk/dotnet/RocketMQ/GetService.cs | 28 + sdk/dotnet/RocketMQ/GetTopics.cs | 49 + sdk/dotnet/Ros/GetChangeSets.cs | 37 + sdk/dotnet/Ros/GetRegions.cs | 29 + sdk/dotnet/Ros/GetStackGroups.cs | 36 + sdk/dotnet/Ros/GetStackInstances.cs | 62 + sdk/dotnet/Ros/GetStacks.cs | 36 + sdk/dotnet/Ros/GetTemplateScratches.cs | 47 + sdk/dotnet/Ros/GetTemplates.cs | 36 + sdk/dotnet/Sae/GetApplicationScalingRules.cs | 37 + sdk/dotnet/Sae/GetApplications.cs | 77 + sdk/dotnet/Sae/GetConfigMaps.cs | 54 + sdk/dotnet/Sae/GetGreyTagRoutes.cs | 33 + sdk/dotnet/Sae/GetIngresses.cs | 8 + sdk/dotnet/Sae/GetInstanceSpecifications.cs | 29 + sdk/dotnet/Sae/GetNamespaces.cs | 32 + sdk/dotnet/Sae/GetService.cs | 30 + sdk/dotnet/Sag/GetAcls.cs | 39 + sdk/dotnet/Sag/GetSmartagFlowLogs.cs | 41 + sdk/dotnet/Scdn/GetDomains.cs | 32 + sdk/dotnet/SchedulerX/GetNamespaces.cs | 35 + sdk/dotnet/Sddp/GetConfigs.cs | 42 + sdk/dotnet/Sddp/GetDataLimits.cs | 29 + sdk/dotnet/Sddp/GetInstances.cs | 29 + sdk/dotnet/Sddp/GetRules.cs | 44 + sdk/dotnet/SecurityCenter/GetGroups.cs | 32 + sdk/dotnet/SelectDB/GetDbClusters.cs | 73 + sdk/dotnet/SelectDB/GetDbInstances.cs | 64 + .../ServiceCatalog/GetEndUserProducts.cs | 30 + sdk/dotnet/ServiceCatalog/GetLaunchOptions.cs | 37 + sdk/dotnet/ServiceCatalog/GetPortfolios.cs | 34 + .../ServiceCatalog/GetProductAsEndUsers.cs | 33 + .../ServiceCatalog/GetProductVersions.cs | 31 + .../ServiceCatalog/GetProvisionedProducts.cs | 36 + .../ServiceMesh/GetExtensionProviders.cs | 45 + sdk/dotnet/ServiceMesh/GetServiceMeshes.cs | 8 + sdk/dotnet/ServiceMesh/GetVersions.cs | 32 + .../SimpleApplicationServer/GetImages.cs | 8 + .../SimpleApplicationServer/GetInstances.cs | 41 + .../GetServerCustomImages.cs | 41 + .../SimpleApplicationServer/GetServerDisks.cs | 59 + .../GetServerFirewallRules.cs | 37 + .../SimpleApplicationServer/GetServerPlans.cs | 36 + .../GetServerSnapshots.cs | 61 + sdk/dotnet/Slb/GetAcls.cs | 41 + sdk/dotnet/Slb/GetApplicationLoadBalancers.cs | 35 + sdk/dotnet/Slb/GetAttachments.cs | 28 + sdk/dotnet/Slb/GetBackendServers.cs | 30 + sdk/dotnet/Slb/GetCaCertificates.cs | 25 + sdk/dotnet/Slb/GetDomainExtensions.cs | 31 + sdk/dotnet/Slb/GetListeners.cs | 52 + sdk/dotnet/Slb/GetLoadBalancers.cs | 35 + sdk/dotnet/Slb/GetMasterSlaveServerGroups.cs | 8 + sdk/dotnet/Slb/GetRules.cs | 82 + sdk/dotnet/Slb/GetServerCertificates.cs | 25 + sdk/dotnet/Slb/GetServerGroups.cs | 61 + sdk/dotnet/Slb/GetTlsCipherPolicies.cs | 42 + sdk/dotnet/Slb/GetZones.cs | 27 + sdk/dotnet/Tag/GetMetaTags.cs | 32 + .../ThreatDetection/GetAntiBruteForceRules.cs | 48 + sdk/dotnet/ThreatDetection/GetAssets.cs | 27 + .../ThreatDetection/GetBackupPolicies.cs | 41 + .../ThreatDetection/GetBaselineStrategies.cs | 46 + sdk/dotnet/ThreatDetection/GetHoneyPots.cs | 37 + .../ThreatDetection/GetHoneypotImages.cs | 34 + .../ThreatDetection/GetHoneypotNodes.cs | 33 + .../ThreatDetection/GetHoneypotPresets.cs | 36 + .../ThreatDetection/GetHoneypotProbes.cs | 63 + sdk/dotnet/ThreatDetection/GetInstances.cs | 33 + sdk/dotnet/ThreatDetection/GetLogShipper.cs | 30 + .../ThreatDetection/GetVulWhitelists.cs | 35 + .../ThreatDetection/GetWebLockConfigs.cs | 33 + sdk/dotnet/Tsdb/GetInstances.cs | 35 + sdk/dotnet/Tsdb/GetZones.cs | 29 + sdk/dotnet/Utilities.cs | 7 + sdk/dotnet/VideoSurveillance/GetService.cs | 30 + .../VideoSurveillance/GetSystemGroups.cs | 44 + sdk/dotnet/Vod/GetDomains.cs | 60 + sdk/dotnet/Vpc/GetBgpGroups.cs | 41 + sdk/dotnet/Vpc/GetBgpNetworks.cs | 47 + sdk/dotnet/Vpc/GetBgpPeers.cs | 54 + sdk/dotnet/Vpc/GetCommonBandwidthPackages.cs | 45 + sdk/dotnet/Vpc/GetDhcpOptionsSets.cs | 67 + .../Vpc/GetEnhancedNatAvailableZones.cs | 3 + sdk/dotnet/Vpc/GetFlowLogService.cs | 30 + sdk/dotnet/Vpc/GetForwardEntries.cs | 77 + sdk/dotnet/Vpc/GetHavips.cs | 36 + sdk/dotnet/Vpc/GetIpsecServers.cs | 41 + sdk/dotnet/Vpc/GetIpv4Gateways.cs | 35 + sdk/dotnet/Vpc/GetIpv6Addresses.cs | 50 + sdk/dotnet/Vpc/GetIpv6EgressRules.cs | 58 + sdk/dotnet/Vpc/GetIpv6Gateways.cs | 61 + sdk/dotnet/Vpc/GetIpv6InternetBandwidths.cs | 53 + sdk/dotnet/Vpc/GetNatGateways.cs | 8 + sdk/dotnet/Vpc/GetNatIpCidrs.cs | 75 + sdk/dotnet/Vpc/GetNatIps.cs | 91 + sdk/dotnet/Vpc/GetNetworkAcls.cs | 36 + sdk/dotnet/Vpc/GetNetworks.cs | 30 + sdk/dotnet/Vpc/GetPbrRouteEntries.cs | 34 + sdk/dotnet/Vpc/GetPeerConnections.cs | 35 + sdk/dotnet/Vpc/GetPrefixLists.cs | 35 + .../Vpc/GetPublicIpAddressPoolCidrBlocks.cs | 45 + sdk/dotnet/Vpc/GetPublicIpAddressPools.cs | 41 + sdk/dotnet/Vpc/GetRouteEntries.cs | 105 + sdk/dotnet/Vpc/GetRouteTables.cs | 49 + sdk/dotnet/Vpc/GetRouterInterfaces.cs | 32 + sdk/dotnet/Vpc/GetSnatEntries.cs | 72 + sdk/dotnet/Vpc/GetSslVpnClientCerts.cs | 30 + sdk/dotnet/Vpc/GetSslVpnServers.cs | 30 + sdk/dotnet/Vpc/GetSwitches.cs | 42 + .../Vpc/GetTrafficMirrorFilterEgressRules.cs | 47 + .../Vpc/GetTrafficMirrorFilterIngressRules.cs | 47 + sdk/dotnet/Vpc/GetTrafficMirrorFilters.cs | 53 + sdk/dotnet/Vpc/GetTrafficMirrorService.cs | 30 + sdk/dotnet/Vpc/GetTrafficMirrorSessions.cs | 111 + sdk/dotnet/Vpc/GetVpcFlowLogs.cs | 36 + sdk/dotnet/Vpn/GetConnections.cs | 32 + sdk/dotnet/Vpn/GetCustomerGateways.cs | 30 + sdk/dotnet/Vpn/GetGatewayVcoRoutes.cs | 126 + sdk/dotnet/Vpn/GetGatewayVpnAttachments.cs | 37 + sdk/dotnet/Vpn/GetGatewayZones.cs | 26 + sdk/dotnet/Vpn/GetGateways.cs | 8 + sdk/dotnet/Waf/GetCertificates.cs | 37 + sdk/dotnet/Waf/GetDomains.cs | 28 + sdk/dotnet/Waf/GetInstances.cs | 38 + sdk/dotnet/Wafv3/GetDomains.cs | 45 + sdk/dotnet/Wafv3/GetInstances.cs | 27 + sdk/dotnet/Yundun/GetBastionHostInstances.cs | 3 + sdk/dotnet/Yundun/GetDBAuditInstance.cs | 3 + .../alicloud/actiontrail/getConsumerGroups.go | 16 +- .../getGlobalEventsStorageRegion.go | 14 +- .../actiontrail/getHistoryDeliveryJobs.go | 16 +- sdk/go/alicloud/actiontrail/getInstances.go | 16 +- sdk/go/alicloud/actiontrail/getSaslAcls.go | 16 +- sdk/go/alicloud/actiontrail/getSaslUsers.go | 16 +- sdk/go/alicloud/actiontrail/getTopics.go | 16 +- sdk/go/alicloud/actiontrail/getTrails.go | 16 +- .../actiontrail/getTrailsDeprecated.go | 16 +- sdk/go/alicloud/adb/getClusters.go | 16 +- .../alicloud/adb/getDBClusterLakeVersions.go | 16 +- sdk/go/alicloud/adb/getDBClusters.go | 16 +- sdk/go/alicloud/adb/getResourceGroups.go | 16 +- sdk/go/alicloud/adb/getZones.go | 16 +- sdk/go/alicloud/alb/getAcls.go | 16 +- sdk/go/alicloud/alb/getAscripts.go | 16 +- .../alicloud/alb/getHealthCheckTemplates.go | 16 +- sdk/go/alicloud/alb/getListeners.go | 16 +- sdk/go/alicloud/alb/getLoadBalancers.go | 16 +- sdk/go/alicloud/alb/getRules.go | 16 +- sdk/go/alicloud/alb/getSecurityPolicies.go | 16 +- sdk/go/alicloud/alb/getServerGroups.go | 16 +- .../alicloud/alb/getSystemSecurityPolicies.go | 16 +- sdk/go/alicloud/alb/getZones.go | 16 +- sdk/go/alicloud/amqp/getBindings.go | 16 +- sdk/go/alicloud/amqp/getExchanges.go | 16 +- sdk/go/alicloud/amqp/getInstances.go | 16 +- sdk/go/alicloud/amqp/getQueues.go | 16 +- sdk/go/alicloud/amqp/getStaticAccounts.go | 16 +- sdk/go/alicloud/amqp/getVirtualHosts.go | 16 +- sdk/go/alicloud/apigateway/getApis.go | 16 +- sdk/go/alicloud/apigateway/getApps.go | 16 +- sdk/go/alicloud/apigateway/getBackends.go | 16 +- sdk/go/alicloud/apigateway/getGroups.go | 16 +- sdk/go/alicloud/apigateway/getLogConfigs.go | 16 +- sdk/go/alicloud/apigateway/getModels.go | 16 +- sdk/go/alicloud/apigateway/getPlugins.go | 16 +- sdk/go/alicloud/apigateway/getService.go | 16 +- sdk/go/alicloud/arms/getAlertContactGroups.go | 16 +- sdk/go/alicloud/arms/getAlertContacts.go | 16 +- sdk/go/alicloud/arms/getAlertRobots.go | 16 +- sdk/go/alicloud/arms/getDispatchRules.go | 16 +- .../alicloud/arms/getIntegrationExporters.go | 16 +- sdk/go/alicloud/arms/getPrometheis.go | 16 +- sdk/go/alicloud/arms/getPrometheus.go | 16 +- .../alicloud/arms/getPrometheusAlertRules.go | 16 +- .../alicloud/arms/getPrometheusMonitorings.go | 16 +- sdk/go/alicloud/arms/getRemoteWrites.go | 16 +- .../alicloud/bastionhost/getHostAccounts.go | 16 +- sdk/go/alicloud/bastionhost/getHostGroups.go | 16 +- .../alicloud/bastionhost/getHostShareKeys.go | 16 +- sdk/go/alicloud/bastionhost/getHosts.go | 16 +- sdk/go/alicloud/bastionhost/getInstances.go | 16 +- sdk/go/alicloud/bastionhost/getUserGroups.go | 16 +- sdk/go/alicloud/bastionhost/getUsers.go | 16 +- sdk/go/alicloud/bp/getStudioApplications.go | 16 +- .../alicloud/brain/getIndustrialPidLoops.go | 16 +- .../brain/getIndustrialPidOrganizations.go | 16 +- .../brain/getIndustrialPidProjects.go | 16 +- sdk/go/alicloud/brain/getIndustrialSerice.go | 16 +- .../alicloud/bss/getOpenApiPricingModules.go | 16 +- sdk/go/alicloud/bss/getOpenApiProducts.go | 16 +- sdk/go/alicloud/cas/getCertificates.go | 16 +- sdk/go/alicloud/cas/getServiceCertificates.go | 16 +- sdk/go/alicloud/cassandra/getBackupPlans.go | 16 +- sdk/go/alicloud/cassandra/getClusters.go | 16 +- sdk/go/alicloud/cassandra/getDataCenters.go | 16 +- sdk/go/alicloud/cassandra/getZones.go | 16 +- .../alicloud/cddc/getDedicatedHostAccounts.go | 16 +- .../alicloud/cddc/getDedicatedHostGroups.go | 16 +- sdk/go/alicloud/cddc/getDedicatedHosts.go | 16 +- sdk/go/alicloud/cddc/getHostEcsLevelInfos.go | 16 +- sdk/go/alicloud/cddc/getZones.go | 16 +- sdk/go/alicloud/cdn/getBlockedRegions.go | 16 +- sdk/go/alicloud/cdn/getIpInfo.go | 16 +- .../alicloud/cdn/getRealTimeLogDeliveries.go | 16 +- sdk/go/alicloud/cdn/getService.go | 16 +- sdk/go/alicloud/cen/getBandwidthLimits.go | 16 +- sdk/go/alicloud/cen/getBandwidthPackages.go | 16 +- ...getChildInstanceRouteEntryToAttachments.go | 16 +- sdk/go/alicloud/cen/getFlowlogs.go | 16 +- sdk/go/alicloud/cen/getInstanceAttachments.go | 16 +- sdk/go/alicloud/cen/getInstances.go | 16 +- .../cen/getInterRegionTrafficQosPolicies.go | 16 +- .../cen/getInterRegionTrafficQosQueues.go | 16 +- sdk/go/alicloud/cen/getPrivateZones.go | 16 +- sdk/go/alicloud/cen/getRegionRouteEntries.go | 16 +- sdk/go/alicloud/cen/getRouteEntries.go | 16 +- sdk/go/alicloud/cen/getRouteMaps.go | 16 +- sdk/go/alicloud/cen/getRouteServices.go | 16 +- .../alicloud/cen/getTrafficMarkingPolicies.go | 16 +- .../cen/getTransitRouteTableAggregations.go | 16 +- .../cen/getTransitRouterAvailableResources.go | 16 +- sdk/go/alicloud/cen/getTransitRouterCidrs.go | 16 +- ...ransitRouterMulticastDomainAssociations.go | 16 +- .../getTransitRouterMulticastDomainMembers.go | 16 +- ...TransitRouterMulticastDomainPeerMembers.go | 16 +- .../getTransitRouterMulticastDomainSources.go | 16 +- .../cen/getTransitRouterMulticastDomains.go | 16 +- .../cen/getTransitRouterPeerAttachments.go | 16 +- .../getTransitRouterPrefixListAssociations.go | 16 +- .../cen/getTransitRouterRouteEntries.go | 16 +- .../getTransitRouterRouteTableAssociations.go | 16 +- .../getTransitRouterRouteTablePropagations.go | 16 +- .../cen/getTransitRouterRouteTables.go | 16 +- .../alicloud/cen/getTransitRouterService.go | 16 +- .../cen/getTransitRouterVbrAttachments.go | 16 +- .../cen/getTransitRouterVpcAttachments.go | 16 +- .../cen/getTransitRouterVpnAttachments.go | 16 +- sdk/go/alicloud/cen/getTransitRouters.go | 16 +- sdk/go/alicloud/cen/getVbrHealthChecks.go | 16 +- .../cfg/getAggregateCompliancePacks.go | 16 +- .../alicloud/cfg/getAggregateConfigRules.go | 16 +- sdk/go/alicloud/cfg/getAggregateDeliveries.go | 16 +- sdk/go/alicloud/cfg/getAggregators.go | 16 +- sdk/go/alicloud/cfg/getCompliancePacks.go | 16 +- .../alicloud/cfg/getConfigurationRecorders.go | 16 +- sdk/go/alicloud/cfg/getDeliveries.go | 16 +- sdk/go/alicloud/cfg/getDeliveryChannels.go | 16 +- sdk/go/alicloud/cfg/getRules.go | 16 +- sdk/go/alicloud/chatbot/getAgents.go | 16 +- sdk/go/alicloud/clickhouse/getAccounts.go | 16 +- .../alicloud/clickhouse/getBackupPolicies.go | 16 +- sdk/go/alicloud/clickhouse/getDbClusters.go | 16 +- sdk/go/alicloud/clickhouse/getRegions.go | 16 +- sdk/go/alicloud/cloudauth/getFaceConfigs.go | 16 +- sdk/go/alicloud/cloudconnect/getNetworks.go | 16 +- .../alicloud/cloudfirewall/getAddressBooks.go | 16 +- .../cloudfirewall/getControlPolicies.go | 16 +- .../cloudfirewall/getInstanceMembers.go | 16 +- sdk/go/alicloud/cloudfirewall/getInstances.go | 16 +- .../cloudfirewall/getVpcFirewallCens.go | 16 +- .../getVpcFirewallControlPolicies.go | 16 +- .../alicloud/cloudfirewall/getVpcFirewalls.go | 16 +- .../getServiceHybridDoubleWrites.go | 16 +- .../alicloud/cloudsso/getAccessAssignments.go | 16 +- .../cloudsso/getAccessConfigurations.go | 16 +- sdk/go/alicloud/cloudsso/getDirectories.go | 16 +- sdk/go/alicloud/cloudsso/getGroups.go | 16 +- .../cloudsso/getScimServerCredentials.go | 16 +- sdk/go/alicloud/cloudsso/getService.go | 16 +- sdk/go/alicloud/cloudsso/getUsers.go | 16 +- .../cloudstoragegateway/getExpressSyncs.go | 16 +- .../getGatewayBlockVolumes.go | 16 +- .../getGatewayCacheDisks.go | 16 +- .../getGatewayFileShares.go | 16 +- .../cloudstoragegateway/getGatewaySmbUsers.go | 16 +- .../cloudstoragegateway/getGateways.go | 16 +- .../cloudstoragegateway/getService.go | 16 +- .../alicloud/cloudstoragegateway/getStocks.go | 16 +- .../cloudstoragegateway/getStorageBundles.go | 16 +- sdk/go/alicloud/cms/getAlarmContactGroups.go | 16 +- sdk/go/alicloud/cms/getAlarmContacts.go | 16 +- sdk/go/alicloud/cms/getDynamicTagGroups.go | 16 +- sdk/go/alicloud/cms/getEventRules.go | 16 +- sdk/go/alicloud/cms/getGroupMetricRules.go | 16 +- sdk/go/alicloud/cms/getHybridMonitorDatas.go | 16 +- .../alicloud/cms/getHybridMonitorFcTasks.go | 16 +- .../alicloud/cms/getHybridMonitorSlsTasks.go | 16 +- .../alicloud/cms/getMetricRuleBlackLists.go | 16 +- sdk/go/alicloud/cms/getMetricRuleTemplates.go | 16 +- .../alicloud/cms/getMonitorGroupInstances.go | 16 +- sdk/go/alicloud/cms/getMonitorGroups.go | 16 +- sdk/go/alicloud/cms/getNamespaces.go | 16 +- sdk/go/alicloud/cms/getService.go | 16 +- sdk/go/alicloud/cms/getSiteMonitors.go | 16 +- sdk/go/alicloud/cms/getSlsGroups.go | 16 +- .../compute/getNestServiceInstances.go | 16 +- sdk/go/alicloud/cr/getChains.go | 16 +- sdk/go/alicloud/cr/getChartNamespaces.go | 16 +- sdk/go/alicloud/cr/getChartRepositories.go | 16 +- sdk/go/alicloud/cr/getEndpointAclPolicies.go | 16 +- sdk/go/alicloud/cr/getEndpointAclService.go | 16 +- sdk/go/alicloud/cr/getNamespaces.go | 16 +- sdk/go/alicloud/cr/getRepos.go | 16 +- sdk/go/alicloud/cr/getService.go | 16 +- .../alicloud/cr/getVpcEndpointLinkedVpcs.go | 16 +- sdk/go/alicloud/cs/getAckService.go | 16 +- sdk/go/alicloud/cs/getClusterCredential.go | 16 +- .../alicloud/cs/getEdgeKubernetesClusters.go | 16 +- .../alicloud/cs/getKubernetesAddonMetadata.go | 16 +- sdk/go/alicloud/cs/getKubernetesAddons.go | 16 +- sdk/go/alicloud/cs/getKubernetesClusters.go | 16 +- sdk/go/alicloud/cs/getKubernetesPermission.go | 16 +- sdk/go/alicloud/cs/getKubernetesVersion.go | 16 +- .../cs/getManagedKubernetesClusters.go | 16 +- .../cs/getRegistryEnterpriseInstances.go | 16 +- .../cs/getRegistryEnterpriseNamespaces.go | 16 +- .../alicloud/cs/getRegistryEnterpriseRepos.go | 16 +- .../cs/getRegistryEnterpriseSyncRules.go | 16 +- .../cs/getServerlessKubernetesClusters.go | 16 +- .../getAutoSnapShotPolicies.go | 16 +- .../databasefilesystem/getInstances.go | 16 +- .../databasefilesystem/getSnapshots.go | 16 +- .../alicloud/databasegateway/getGateways.go | 16 +- sdk/go/alicloud/datahub/getService.go | 16 +- sdk/go/alicloud/dataworks/getFolders.go | 16 +- sdk/go/alicloud/dataworks/getService.go | 16 +- sdk/go/alicloud/dbs/getBackupPlans.go | 16 +- sdk/go/alicloud/dcdn/getDomains.go | 16 +- sdk/go/alicloud/dcdn/getIpaDomains.go | 16 +- sdk/go/alicloud/dcdn/getKvAccount.go | 16 +- sdk/go/alicloud/dcdn/getService.go | 16 +- sdk/go/alicloud/dcdn/getWafDomains.go | 16 +- sdk/go/alicloud/dcdn/getWafPolicies.go | 16 +- sdk/go/alicloud/dcdn/getWafRules.go | 16 +- sdk/go/alicloud/ddos/getDdosBgpInstances.go | 16 +- sdk/go/alicloud/ddos/getDdosBgpIps.go | 16 +- .../ddos/getDdosCooDomainResources.go | 16 +- sdk/go/alicloud/ddos/getDdosCooInstances.go | 16 +- sdk/go/alicloud/ddos/getDdosCooPorts.go | 16 +- sdk/go/alicloud/dds/getMongoInstances.go | 16 +- sdk/go/alicloud/dfs/getAccessGroups.go | 16 +- sdk/go/alicloud/dfs/getAccessRules.go | 16 +- sdk/go/alicloud/dfs/getFileSystems.go | 16 +- sdk/go/alicloud/dfs/getMountPoints.go | 16 +- sdk/go/alicloud/dfs/getZones.go | 16 +- sdk/go/alicloud/directmail/getDomains.go | 16 +- .../alicloud/directmail/getMailAddresses.go | 16 +- sdk/go/alicloud/directmail/getReceivers.go | 16 +- sdk/go/alicloud/directmail/getTags.go | 16 +- sdk/go/alicloud/dms/getEnterpriseDatabases.go | 16 +- sdk/go/alicloud/dms/getEnterpriseInstances.go | 16 +- .../dms/getEnterpriseLogicDatabases.go | 16 +- sdk/go/alicloud/dms/getEnterpriseProxies.go | 16 +- .../dms/getEnterpriseProxyAccesses.go | 16 +- sdk/go/alicloud/dms/getEnterpriseUsers.go | 16 +- sdk/go/alicloud/dms/getUserTenants.go | 16 +- sdk/go/alicloud/dns/getAccessStrategies.go | 16 +- sdk/go/alicloud/dns/getAddressPools.go | 16 +- sdk/go/alicloud/dns/getAlidnsDomainGroups.go | 16 +- sdk/go/alicloud/dns/getAlidnsDomains.go | 16 +- sdk/go/alicloud/dns/getAlidnsInstances.go | 16 +- sdk/go/alicloud/dns/getAlidnsRecords.go | 16 +- sdk/go/alicloud/dns/getCustomLines.go | 16 +- sdk/go/alicloud/dns/getDomainGroups.go | 16 +- sdk/go/alicloud/dns/getDomainRecords.go | 16 +- sdk/go/alicloud/dns/getDomainTxtGuid.go | 16 +- sdk/go/alicloud/dns/getDomains.go | 16 +- sdk/go/alicloud/dns/getGroups.go | 16 +- sdk/go/alicloud/dns/getGtmInstances.go | 16 +- sdk/go/alicloud/dns/getInstances.go | 16 +- sdk/go/alicloud/dns/getRecords.go | 16 +- sdk/go/alicloud/dns/getResolutionLines.go | 16 +- sdk/go/alicloud/drds/getInstances.go | 16 +- sdk/go/alicloud/dts/getConsumerChannels.go | 16 +- sdk/go/alicloud/dts/getInstances.go | 16 +- sdk/go/alicloud/dts/getMigrationJobs.go | 16 +- sdk/go/alicloud/dts/getSubscriptionJobs.go | 16 +- sdk/go/alicloud/dts/getSynchronizationJobs.go | 16 +- sdk/go/alicloud/eais/getInstances.go | 16 +- .../ebs/getDedicatedBlockStorageClusters.go | 16 +- sdk/go/alicloud/ebs/getDiskReplicaGroups.go | 16 +- sdk/go/alicloud/ebs/getDiskReplicaPairs.go | 16 +- sdk/go/alicloud/ebs/getRegions.go | 16 +- sdk/go/alicloud/eci/getContainerGroups.go | 16 +- sdk/go/alicloud/eci/getImageCaches.go | 16 +- sdk/go/alicloud/eci/getVirtualNodes.go | 16 +- sdk/go/alicloud/eci/getZones.go | 16 +- sdk/go/alicloud/ecp/getInstanceTypes.go | 16 +- sdk/go/alicloud/ecp/getInstances.go | 16 +- sdk/go/alicloud/ecp/getKeyPairs.go | 16 +- sdk/go/alicloud/ecp/getZones.go | 16 +- sdk/go/alicloud/ecs/getActivations.go | 16 +- .../alicloud/ecs/getAutoSnapshotPolicies.go | 16 +- .../alicloud/ecs/getCapacityReservations.go | 16 +- sdk/go/alicloud/ecs/getCommands.go | 16 +- sdk/go/alicloud/ecs/getDedicatedHosts.go | 16 +- sdk/go/alicloud/ecs/getDisks.go | 16 +- .../ecs/getEcsDedicatedHostClusters.go | 16 +- sdk/go/alicloud/ecs/getEcsDeploymentSets.go | 16 +- sdk/go/alicloud/ecs/getEcsDisks.go | 16 +- sdk/go/alicloud/ecs/getEcsImageComponents.go | 16 +- sdk/go/alicloud/ecs/getEcsImagePipeline.go | 16 +- sdk/go/alicloud/ecs/getEcsInvocations.go | 16 +- sdk/go/alicloud/ecs/getEcsKeyPairs.go | 16 +- sdk/go/alicloud/ecs/getEcsLaunchTemplates.go | 16 +- .../ecs/getEcsNetworkInterfacePermissions.go | 16 +- .../alicloud/ecs/getEcsNetworkInterfaces.go | 16 +- sdk/go/alicloud/ecs/getEcsPrefixLists.go | 16 +- sdk/go/alicloud/ecs/getEcsSnapshotGroups.go | 16 +- sdk/go/alicloud/ecs/getEcsSnapshots.go | 16 +- .../ecs/getEcsStorageCapacityUnits.go | 16 +- sdk/go/alicloud/ecs/getEipAddresses.go | 16 +- sdk/go/alicloud/ecs/getEips.go | 16 +- .../alicloud/ecs/getElasticityAssurances.go | 16 +- sdk/go/alicloud/ecs/getHpcClusters.go | 16 +- sdk/go/alicloud/ecs/getImages.go | 16 +- sdk/go/alicloud/ecs/getInstanceKeywords.go | 16 +- .../alicloud/ecs/getInstanceTypeFamilies.go | 16 +- sdk/go/alicloud/ecs/getInstanceTypes.go | 16 +- sdk/go/alicloud/ecs/getInstances.go | 16 +- sdk/go/alicloud/ecs/getKeyPairs.go | 16 +- sdk/go/alicloud/ecs/getNetworkInterfaces.go | 16 +- sdk/go/alicloud/ecs/getSecurityGroupRules.go | 16 +- sdk/go/alicloud/ecs/getSecurityGroups.go | 16 +- sdk/go/alicloud/ecs/getSnapshots.go | 16 +- sdk/go/alicloud/edas/getApplications.go | 16 +- sdk/go/alicloud/edas/getClusters.go | 16 +- sdk/go/alicloud/edas/getDeployGroups.go | 16 +- sdk/go/alicloud/edas/getNamespaces.go | 16 +- sdk/go/alicloud/edas/getService.go | 16 +- .../alicloud/eds/getAdConnectorDirectories.go | 16 +- .../alicloud/eds/getAdConnectorOfficeSites.go | 16 +- sdk/go/alicloud/eds/getBundles.go | 16 +- sdk/go/alicloud/eds/getCommands.go | 16 +- sdk/go/alicloud/eds/getCustomProperties.go | 16 +- sdk/go/alicloud/eds/getDesktopTypes.go | 16 +- sdk/go/alicloud/eds/getDesktops.go | 16 +- sdk/go/alicloud/eds/getImages.go | 16 +- sdk/go/alicloud/eds/getNasFileSystems.go | 16 +- sdk/go/alicloud/eds/getNetworkPackages.go | 16 +- sdk/go/alicloud/eds/getPolicyGroups.go | 16 +- sdk/go/alicloud/eds/getRamDirectories.go | 16 +- sdk/go/alicloud/eds/getSimpleOfficeSites.go | 16 +- sdk/go/alicloud/eds/getSnapshots.go | 16 +- sdk/go/alicloud/eds/getUsers.go | 16 +- sdk/go/alicloud/eds/getZones.go | 16 +- sdk/go/alicloud/eflo/getSubnets.go | 16 +- sdk/go/alicloud/eflo/getVpds.go | 16 +- sdk/go/alicloud/ehpc/getClusters.go | 16 +- sdk/go/alicloud/ehpc/getJobTemplates.go | 16 +- .../eipanycast/getAnycastEipAddresses.go | 16 +- sdk/go/alicloud/elasticsearch/getInstances.go | 16 +- sdk/go/alicloud/elasticsearch/getZones.go | 16 +- sdk/go/alicloud/emr/getClusters.go | 16 +- sdk/go/alicloud/emr/getDiskTypes.go | 16 +- sdk/go/alicloud/emr/getInstanceTypes.go | 16 +- sdk/go/alicloud/emr/getMainVersions.go | 16 +- sdk/go/alicloud/emrv2/getClusters.go | 16 +- sdk/go/alicloud/ens/getKeyPairs.go | 16 +- sdk/go/alicloud/ess/getAlarms.go | 16 +- sdk/go/alicloud/ess/getLifecycleHooks.go | 16 +- sdk/go/alicloud/ess/getNotifications.go | 16 +- .../alicloud/ess/getScalingConfigurations.go | 16 +- sdk/go/alicloud/ess/getScalingGroups.go | 16 +- sdk/go/alicloud/ess/getScalingRules.go | 16 +- sdk/go/alicloud/ess/getScheduledTasks.go | 16 +- sdk/go/alicloud/eventbridge/getEventBuses.go | 16 +- .../alicloud/eventbridge/getEventSources.go | 16 +- sdk/go/alicloud/eventbridge/getRules.go | 16 +- sdk/go/alicloud/eventbridge/getService.go | 16 +- .../expressconnect/getAccessPoints.go | 16 +- .../expressconnect/getGrantRuleToCens.go | 16 +- .../getPhysicalConnectionService.go | 16 +- .../expressconnect/getPhysicalConnections.go | 16 +- .../expressconnect/getRouterInterfaces.go | 16 +- .../expressconnect/getVbrPconnAssociations.go | 16 +- .../expressconnect/getVirtualBorderRouters.go | 16 +- .../getVirtualPhysicalConnections.go | 16 +- sdk/go/alicloud/fc/getCustomDomains.go | 16 +- sdk/go/alicloud/fc/getFunctions.go | 16 +- sdk/go/alicloud/fc/getService.go | 16 +- sdk/go/alicloud/fc/getServices.go | 16 +- sdk/go/alicloud/fc/getTriggers.go | 16 +- sdk/go/alicloud/fc/getZones.go | 16 +- sdk/go/alicloud/fnf/getExecutions.go | 16 +- sdk/go/alicloud/fnf/getFlows.go | 16 +- sdk/go/alicloud/fnf/getSchedules.go | 16 +- sdk/go/alicloud/fnf/getService.go | 16 +- .../ga/getAcceleratorSpareIpAttachments.go | 16 +- sdk/go/alicloud/ga/getAccelerators.go | 16 +- sdk/go/alicloud/ga/getAcls.go | 16 +- .../alicloud/ga/getAdditionalCertificates.go | 16 +- sdk/go/alicloud/ga/getBandwidthPackages.go | 16 +- .../getBasicAccelerateIpEndpointRelations.go | 16 +- sdk/go/alicloud/ga/getBasicAccelerateIps.go | 16 +- sdk/go/alicloud/ga/getBasicAccelerators.go | 16 +- sdk/go/alicloud/ga/getBasicEndpoints.go | 16 +- ...tCustomRoutingEndpointGroupDestinations.go | 16 +- .../ga/getCustomRoutingEndpointGroups.go | 16 +- ...getCustomRoutingEndpointTrafficPolicies.go | 16 +- .../alicloud/ga/getCustomRoutingEndpoints.go | 16 +- .../ga/getCustomRoutingPortMappings.go | 16 +- sdk/go/alicloud/ga/getDomains.go | 16 +- .../ga/getEndpointGroupIpAddressCidrBlocks.go | 16 +- sdk/go/alicloud/ga/getEndpointGroups.go | 16 +- sdk/go/alicloud/ga/getForwardingRules.go | 16 +- sdk/go/alicloud/ga/getIpSets.go | 16 +- sdk/go/alicloud/ga/getListeners.go | 16 +- sdk/go/alicloud/getAccount.go | 14 +- sdk/go/alicloud/getCallerIdentity.go | 14 +- sdk/go/alicloud/getFileCrc64Checksum.go | 16 +- .../getMscSubContactVerificationMessage.go | 16 +- sdk/go/alicloud/getMscSubContacts.go | 16 +- sdk/go/alicloud/getMscSubSubscriptions.go | 16 +- sdk/go/alicloud/getMscSubWebhooks.go | 16 +- sdk/go/alicloud/getRegions.go | 16 +- sdk/go/alicloud/getZones.go | 16 +- sdk/go/alicloud/governance/getBaselines.go | 16 +- sdk/go/alicloud/gpdb/getAccounts.go | 16 +- sdk/go/alicloud/gpdb/getDataBackups.go | 16 +- sdk/go/alicloud/gpdb/getDbInstancePlans.go | 16 +- sdk/go/alicloud/gpdb/getInstances.go | 16 +- sdk/go/alicloud/gpdb/getLogBackups.go | 16 +- sdk/go/alicloud/gpdb/getZones.go | 16 +- .../alicloud/graphdatabase/getDbInstances.go | 16 +- sdk/go/alicloud/gwlb/getZones.go | 16 +- sdk/go/alicloud/hbase/getInstanceTypes.go | 16 +- sdk/go/alicloud/hbase/getInstances.go | 16 +- sdk/go/alicloud/hbase/getZones.go | 16 +- sdk/go/alicloud/hbr/getBackupJobs.go | 16 +- sdk/go/alicloud/hbr/getEcsBackupClients.go | 16 +- sdk/go/alicloud/hbr/getEcsBackupPlans.go | 16 +- sdk/go/alicloud/hbr/getHanaBackupClients.go | 16 +- sdk/go/alicloud/hbr/getHanaBackupPlans.go | 16 +- sdk/go/alicloud/hbr/getHanaInstances.go | 16 +- sdk/go/alicloud/hbr/getNasBackupPlans.go | 16 +- sdk/go/alicloud/hbr/getOssBackupPlans.go | 16 +- sdk/go/alicloud/hbr/getOtsBackupPlans.go | 16 +- sdk/go/alicloud/hbr/getOtsSnapshots.go | 16 +- .../hbr/getReplicationVaultRegions.go | 16 +- sdk/go/alicloud/hbr/getRestoreJobs.go | 16 +- sdk/go/alicloud/hbr/getServerBackupPlans.go | 16 +- sdk/go/alicloud/hbr/getService.go | 16 +- sdk/go/alicloud/hbr/getSnapshots.go | 16 +- sdk/go/alicloud/hbr/getVaults.go | 16 +- sdk/go/alicloud/imm/getProjects.go | 16 +- sdk/go/alicloud/imp/getAppTemplates.go | 16 +- sdk/go/alicloud/iot/getDeviceGroups.go | 16 +- sdk/go/alicloud/iot/getService.go | 16 +- sdk/go/alicloud/kms/getAliases.go | 16 +- sdk/go/alicloud/kms/getCiphertext.go | 16 +- sdk/go/alicloud/kms/getKeyVersions.go | 16 +- sdk/go/alicloud/kms/getKeys.go | 16 +- sdk/go/alicloud/kms/getPlaintext.go | 16 +- sdk/go/alicloud/kms/getSecretVersions.go | 16 +- sdk/go/alicloud/kms/getSecrets.go | 16 +- sdk/go/alicloud/kms/getService.go | 16 +- sdk/go/alicloud/kvstore/getAccounts.go | 16 +- sdk/go/alicloud/kvstore/getConnections.go | 16 +- sdk/go/alicloud/kvstore/getInstanceClasses.go | 16 +- sdk/go/alicloud/kvstore/getInstanceEngines.go | 16 +- sdk/go/alicloud/kvstore/getInstances.go | 16 +- sdk/go/alicloud/kvstore/getPermission.go | 16 +- sdk/go/alicloud/kvstore/getZones.go | 16 +- sdk/go/alicloud/lindorm/getInstances.go | 16 +- sdk/go/alicloud/log/getAlertResource.go | 16 +- sdk/go/alicloud/log/getProjects.go | 16 +- sdk/go/alicloud/log/getService.go | 16 +- sdk/go/alicloud/log/getStores.go | 16 +- sdk/go/alicloud/marketplace/getProduct.go | 16 +- sdk/go/alicloud/marketplace/getProducts.go | 16 +- sdk/go/alicloud/maxcompute/getProjects.go | 16 +- sdk/go/alicloud/maxcompute/getService.go | 16 +- sdk/go/alicloud/message/getServiceQueues.go | 16 +- .../message/getServiceSubscriptions.go | 16 +- sdk/go/alicloud/message/getServiceTopics.go | 16 +- sdk/go/alicloud/mhub/getApps.go | 16 +- sdk/go/alicloud/mhub/getProducts.go | 16 +- sdk/go/alicloud/mns/getQueues.go | 16 +- sdk/go/alicloud/mns/getService.go | 16 +- sdk/go/alicloud/mns/getTopicSubscriptions.go | 16 +- sdk/go/alicloud/mns/getTopics.go | 16 +- sdk/go/alicloud/mongodb/getAccounts.go | 16 +- sdk/go/alicloud/mongodb/getAuditPolicies.go | 16 +- sdk/go/alicloud/mongodb/getInstances.go | 16 +- .../mongodb/getServerlessInstances.go | 16 +- .../getShardingNetworkPrivateAddresses.go | 16 +- .../getShardingNetworkPublicAddresses.go | 16 +- sdk/go/alicloud/mongodb/getZones.go | 16 +- sdk/go/alicloud/mse/getClusters.go | 16 +- sdk/go/alicloud/mse/getEngineNamespaces.go | 16 +- sdk/go/alicloud/mse/getGateways.go | 16 +- sdk/go/alicloud/mse/getNacosConfigs.go | 16 +- sdk/go/alicloud/mse/getZnodes.go | 16 +- sdk/go/alicloud/nas/getAccessGroups.go | 16 +- sdk/go/alicloud/nas/getAccessRules.go | 16 +- .../alicloud/nas/getAutoSnapshotPolicies.go | 16 +- sdk/go/alicloud/nas/getDataFlows.go | 16 +- sdk/go/alicloud/nas/getFileSystems.go | 16 +- sdk/go/alicloud/nas/getFilesets.go | 16 +- sdk/go/alicloud/nas/getLifecyclePolicies.go | 16 +- sdk/go/alicloud/nas/getMountTargets.go | 16 +- sdk/go/alicloud/nas/getProtocols.go | 16 +- sdk/go/alicloud/nas/getService.go | 16 +- sdk/go/alicloud/nas/getSnapshots.go | 16 +- sdk/go/alicloud/nas/getZones.go | 16 +- sdk/go/alicloud/nlb/getListeners.go | 16 +- sdk/go/alicloud/nlb/getLoadBalancers.go | 16 +- sdk/go/alicloud/nlb/getSecurityPolicies.go | 16 +- .../nlb/getServerGroupServerAttachments.go | 16 +- sdk/go/alicloud/nlb/getServerGroups.go | 16 +- sdk/go/alicloud/nlb/getZones.go | 16 +- sdk/go/alicloud/ocean/getBaseInstances.go | 16 +- sdk/go/alicloud/oos/getApplicationGroups.go | 16 +- sdk/go/alicloud/oos/getApplications.go | 16 +- sdk/go/alicloud/oos/getExecutions.go | 16 +- sdk/go/alicloud/oos/getParameters.go | 16 +- sdk/go/alicloud/oos/getPatchBaselines.go | 16 +- sdk/go/alicloud/oos/getSecretParameters.go | 16 +- sdk/go/alicloud/oos/getStateConfigurations.go | 16 +- sdk/go/alicloud/oos/getTemplates.go | 16 +- sdk/go/alicloud/opensearch/getAppGroups.go | 16 +- sdk/go/alicloud/oss/getBucketObjects.go | 16 +- sdk/go/alicloud/oss/getBuckets.go | 16 +- sdk/go/alicloud/oss/getInstanceAttachments.go | 16 +- sdk/go/alicloud/oss/getInstances.go | 16 +- sdk/go/alicloud/oss/getService.go | 16 +- sdk/go/alicloud/oss/getTables.go | 16 +- sdk/go/alicloud/ots/getInstanceAttachments.go | 16 +- sdk/go/alicloud/ots/getInstances.go | 16 +- sdk/go/alicloud/ots/getSearchIndexes.go | 16 +- sdk/go/alicloud/ots/getSecondaryIndexes.go | 16 +- sdk/go/alicloud/ots/getService.go | 16 +- sdk/go/alicloud/ots/getTables.go | 16 +- sdk/go/alicloud/ots/getTunnels.go | 16 +- sdk/go/alicloud/polardb/getAccounts.go | 16 +- sdk/go/alicloud/polardb/getClusters.go | 16 +- sdk/go/alicloud/polardb/getDatabases.go | 16 +- sdk/go/alicloud/polardb/getEndpoints.go | 16 +- .../polardb/getGlobalDatabaseNetworks.go | 16 +- sdk/go/alicloud/polardb/getNodeClasses.go | 16 +- sdk/go/alicloud/polardb/getParameterGroups.go | 16 +- sdk/go/alicloud/polardb/getZones.go | 16 +- sdk/go/alicloud/privatelink/getService.go | 16 +- .../privatelink/getVpcEndpointConnections.go | 16 +- .../getVpcEndpointServiceResources.go | 16 +- .../privatelink/getVpcEndpointServiceUsers.go | 16 +- .../privatelink/getVpcEndpointServices.go | 16 +- .../privatelink/getVpcEndpointZones.go | 16 +- .../alicloud/privatelink/getVpcEndpoints.go | 16 +- sdk/go/alicloud/pvtz/getEndpoints.go | 16 +- sdk/go/alicloud/pvtz/getResolverZones.go | 16 +- sdk/go/alicloud/pvtz/getRules.go | 16 +- sdk/go/alicloud/pvtz/getService.go | 16 +- sdk/go/alicloud/pvtz/getZoneRecords.go | 16 +- sdk/go/alicloud/pvtz/getZones.go | 16 +- sdk/go/alicloud/quickbi/getUsers.go | 16 +- sdk/go/alicloud/quotas/getApplicationInfos.go | 16 +- sdk/go/alicloud/quotas/getQuotaAlarms.go | 16 +- .../alicloud/quotas/getQuotaApplications.go | 16 +- sdk/go/alicloud/quotas/getQuotas.go | 16 +- .../quotas/getTemplateApplications.go | 16 +- sdk/go/alicloud/ram/getAccountAlias.go | 16 +- sdk/go/alicloud/ram/getAccountAliases.go | 16 +- sdk/go/alicloud/ram/getGroups.go | 16 +- sdk/go/alicloud/ram/getPolicies.go | 16 +- sdk/go/alicloud/ram/getPolicyDocument.go | 16 +- sdk/go/alicloud/ram/getRoles.go | 16 +- sdk/go/alicloud/ram/getSamlProviders.go | 16 +- sdk/go/alicloud/ram/getUsers.go | 16 +- sdk/go/alicloud/rdc/getOrganizations.go | 16 +- sdk/go/alicloud/rds/getAccounts.go | 16 +- sdk/go/alicloud/rds/getCharacterSetNames.go | 16 +- sdk/go/alicloud/rds/getClassDetails.go | 16 +- sdk/go/alicloud/rds/getCollationTimeZones.go | 16 +- sdk/go/alicloud/rds/getCrossRegionBackups.go | 16 +- sdk/go/alicloud/rds/getCrossRegions.go | 16 +- sdk/go/alicloud/rds/getInstanceClassInfos.go | 16 +- sdk/go/alicloud/rds/getInstanceClasses.go | 16 +- sdk/go/alicloud/rds/getInstanceEngines.go | 16 +- sdk/go/alicloud/rds/getInstances.go | 16 +- sdk/go/alicloud/rds/getModifyParameterLogs.go | 16 +- sdk/go/alicloud/rds/getRdsBackups.go | 16 +- sdk/go/alicloud/rds/getRdsParameterGroups.go | 16 +- sdk/go/alicloud/rds/getSlots.go | 16 +- sdk/go/alicloud/rds/getZones.go | 16 +- .../getAccountDeletionCheckTask.go | 16 +- .../alicloud/resourcemanager/getAccounts.go | 16 +- .../resourcemanager/getControlPolicies.go | 16 +- .../getControlPolicyAttachments.go | 16 +- .../getDelegatedAdministrators.go | 16 +- sdk/go/alicloud/resourcemanager/getFolders.go | 16 +- .../alicloud/resourcemanager/getHandshakes.go | 16 +- .../alicloud/resourcemanager/getPolicies.go | 16 +- .../resourcemanager/getPolicyAttachments.go | 16 +- .../resourcemanager/getPolicyVersions.go | 16 +- .../resourcemanager/getResourceDirectories.go | 16 +- .../resourcemanager/getResourceGroups.go | 16 +- .../resourcemanager/getResourceShares.go | 16 +- sdk/go/alicloud/resourcemanager/getRoles.go | 16 +- .../resourcemanager/getSharedResources.go | 16 +- .../resourcemanager/getSharedTargets.go | 16 +- sdk/go/alicloud/rocketmq/getGroups.go | 16 +- sdk/go/alicloud/rocketmq/getInstances.go | 16 +- sdk/go/alicloud/rocketmq/getService.go | 16 +- sdk/go/alicloud/rocketmq/getTopics.go | 16 +- sdk/go/alicloud/ros/getChangeSets.go | 16 +- sdk/go/alicloud/ros/getRegions.go | 16 +- sdk/go/alicloud/ros/getStackGroups.go | 16 +- sdk/go/alicloud/ros/getStackInstances.go | 16 +- sdk/go/alicloud/ros/getStacks.go | 16 +- sdk/go/alicloud/ros/getTemplateScratches.go | 16 +- sdk/go/alicloud/ros/getTemplates.go | 16 +- .../sae/getApplicationScalingRules.go | 16 +- sdk/go/alicloud/sae/getApplications.go | 16 +- sdk/go/alicloud/sae/getConfigMaps.go | 16 +- sdk/go/alicloud/sae/getGreyTagRoutes.go | 16 +- sdk/go/alicloud/sae/getIngresses.go | 16 +- .../alicloud/sae/getInstanceSpecifications.go | 16 +- sdk/go/alicloud/sae/getNamespaces.go | 16 +- sdk/go/alicloud/sae/getService.go | 16 +- sdk/go/alicloud/sag/getAcls.go | 16 +- sdk/go/alicloud/sag/getSmartagFlowLogs.go | 16 +- sdk/go/alicloud/scdn/getDomains.go | 16 +- sdk/go/alicloud/schedulerx/getNamespaces.go | 16 +- sdk/go/alicloud/sddp/getConfigs.go | 16 +- sdk/go/alicloud/sddp/getDataLimits.go | 16 +- sdk/go/alicloud/sddp/getInstances.go | 16 +- sdk/go/alicloud/sddp/getRules.go | 16 +- sdk/go/alicloud/securitycenter/getGroups.go | 16 +- sdk/go/alicloud/selectdb/getDbClusters.go | 16 +- sdk/go/alicloud/selectdb/getDbInstances.go | 16 +- .../servicecatalog/getEndUserProducts.go | 16 +- .../servicecatalog/getLaunchOptions.go | 16 +- .../alicloud/servicecatalog/getPortfolios.go | 16 +- .../servicecatalog/getProductAsEndUsers.go | 16 +- .../servicecatalog/getProductVersions.go | 16 +- .../servicecatalog/getProvisionedProducts.go | 16 +- .../servicemesh/getExtensionProviders.go | 16 +- .../alicloud/servicemesh/getServiceMeshes.go | 16 +- sdk/go/alicloud/servicemesh/getVersions.go | 16 +- .../simpleapplicationserver/getImages.go | 16 +- .../simpleapplicationserver/getInstances.go | 16 +- .../getServerCustomImages.go | 16 +- .../simpleapplicationserver/getServerDisks.go | 16 +- .../getServerFirewallRules.go | 16 +- .../simpleapplicationserver/getServerPlans.go | 16 +- .../getServerSnapshots.go | 16 +- sdk/go/alicloud/slb/getAcls.go | 16 +- .../slb/getApplicationLoadBalancers.go | 16 +- sdk/go/alicloud/slb/getAttachments.go | 16 +- sdk/go/alicloud/slb/getBackendServers.go | 16 +- sdk/go/alicloud/slb/getCaCertificates.go | 16 +- sdk/go/alicloud/slb/getDomainExtensions.go | 16 +- sdk/go/alicloud/slb/getListeners.go | 16 +- sdk/go/alicloud/slb/getLoadBalancers.go | 16 +- .../slb/getMasterSlaveServerGroups.go | 16 +- sdk/go/alicloud/slb/getRules.go | 16 +- sdk/go/alicloud/slb/getServerCertificates.go | 16 +- sdk/go/alicloud/slb/getServerGroups.go | 16 +- sdk/go/alicloud/slb/getTlsCipherPolicies.go | 16 +- sdk/go/alicloud/slb/getZones.go | 16 +- sdk/go/alicloud/tag/getMetaTags.go | 16 +- .../threatdetection/getAntiBruteForceRules.go | 16 +- sdk/go/alicloud/threatdetection/getAssets.go | 16 +- .../threatdetection/getBackupPolicies.go | 16 +- .../threatdetection/getBaselineStrategies.go | 16 +- .../alicloud/threatdetection/getHoneyPots.go | 16 +- .../threatdetection/getHoneypotImages.go | 16 +- .../threatdetection/getHoneypotNodes.go | 16 +- .../threatdetection/getHoneypotPresets.go | 16 +- .../threatdetection/getHoneypotProbes.go | 16 +- .../alicloud/threatdetection/getInstances.go | 16 +- .../alicloud/threatdetection/getLogShipper.go | 16 +- .../threatdetection/getVulWhitelists.go | 16 +- .../threatdetection/getWebLockConfigs.go | 16 +- sdk/go/alicloud/tsdb/getInstances.go | 16 +- sdk/go/alicloud/tsdb/getZones.go | 16 +- .../alicloud/videosurveillance/getService.go | 16 +- .../videosurveillance/getSystemGroups.go | 16 +- sdk/go/alicloud/vod/getDomains.go | 16 +- sdk/go/alicloud/vpc/getBgpGroups.go | 16 +- sdk/go/alicloud/vpc/getBgpNetworks.go | 16 +- sdk/go/alicloud/vpc/getBgpPeers.go | 16 +- .../vpc/getCommonBandwidthPackages.go | 16 +- sdk/go/alicloud/vpc/getDhcpOptionsSets.go | 16 +- .../vpc/getEnhancedNatAvailableZones.go | 16 +- sdk/go/alicloud/vpc/getFlowLogService.go | 16 +- sdk/go/alicloud/vpc/getForwardEntries.go | 16 +- sdk/go/alicloud/vpc/getHavips.go | 16 +- sdk/go/alicloud/vpc/getIpsecServers.go | 16 +- sdk/go/alicloud/vpc/getIpv4Gateways.go | 16 +- sdk/go/alicloud/vpc/getIpv6Addresses.go | 16 +- sdk/go/alicloud/vpc/getIpv6EgressRules.go | 16 +- sdk/go/alicloud/vpc/getIpv6Gateways.go | 16 +- .../alicloud/vpc/getIpv6InternetBandwidths.go | 16 +- sdk/go/alicloud/vpc/getNatGateways.go | 16 +- sdk/go/alicloud/vpc/getNatIpCidrs.go | 16 +- sdk/go/alicloud/vpc/getNatIps.go | 16 +- sdk/go/alicloud/vpc/getNetworkAcls.go | 16 +- sdk/go/alicloud/vpc/getNetworks.go | 16 +- sdk/go/alicloud/vpc/getPbrRouteEntries.go | 16 +- sdk/go/alicloud/vpc/getPeerConnections.go | 16 +- sdk/go/alicloud/vpc/getPrefixLists.go | 16 +- .../vpc/getPublicIpAddressPoolCidrBlocks.go | 16 +- .../alicloud/vpc/getPublicIpAddressPools.go | 16 +- sdk/go/alicloud/vpc/getRouteEntries.go | 16 +- sdk/go/alicloud/vpc/getRouteTables.go | 16 +- sdk/go/alicloud/vpc/getRouterInterfaces.go | 16 +- sdk/go/alicloud/vpc/getSnatEntries.go | 16 +- sdk/go/alicloud/vpc/getSslVpnClientCerts.go | 16 +- sdk/go/alicloud/vpc/getSslVpnServers.go | 16 +- sdk/go/alicloud/vpc/getSwitches.go | 16 +- .../vpc/getTrafficMirrorFilterEgressRules.go | 16 +- .../vpc/getTrafficMirrorFilterIngressRules.go | 16 +- .../alicloud/vpc/getTrafficMirrorFilters.go | 16 +- .../alicloud/vpc/getTrafficMirrorService.go | 16 +- .../alicloud/vpc/getTrafficMirrorSessions.go | 16 +- sdk/go/alicloud/vpc/getVpcFlowLogs.go | 16 +- sdk/go/alicloud/vpn/getConnections.go | 16 +- sdk/go/alicloud/vpn/getCustomerGateways.go | 16 +- sdk/go/alicloud/vpn/getGatewayVcoRoutes.go | 16 +- .../alicloud/vpn/getGatewayVpnAttachments.go | 16 +- sdk/go/alicloud/vpn/getGatewayZones.go | 16 +- sdk/go/alicloud/vpn/getGateways.go | 16 +- sdk/go/alicloud/waf/getCertificates.go | 16 +- sdk/go/alicloud/waf/getDomains.go | 16 +- sdk/go/alicloud/waf/getInstances.go | 16 +- sdk/go/alicloud/wafv3/getDomains.go | 16 +- sdk/go/alicloud/wafv3/getInstances.go | 16 +- .../yundun/getBastionHostInstances.go | 16 +- sdk/go/alicloud/yundun/getDBAuditInstance.go | 16 +- sdk/java/build.gradle | 2 +- .../pulumi/alicloud/AlicloudFunctions.java | 418 +++ .../java/com/pulumi/alicloud/Utilities.java | 31 +- .../actiontrail/ActiontrailFunctions.java | 426 +++ .../com/pulumi/alicloud/adb/AdbFunctions.java | 233 ++ .../com/pulumi/alicloud/alb/AlbFunctions.java | 449 +++ .../pulumi/alicloud/amqp/AmqpFunctions.java | 319 +++ .../apigateway/ApigatewayFunctions.java | 423 +++ .../pulumi/alicloud/arms/ArmsFunctions.java | 724 ++++- .../bastionhost/BastionhostFunctions.java | 386 +++ .../com/pulumi/alicloud/bp/BpFunctions.java | 53 + .../pulumi/alicloud/brain/BrainFunctions.java | 200 ++ .../com/pulumi/alicloud/bss/BssFunctions.java | 58 + .../com/pulumi/alicloud/cas/CasFunctions.java | 122 + .../cassandra/CassandraFunctions.java | 197 ++ .../pulumi/alicloud/cddc/CddcFunctions.java | 233 ++ .../com/pulumi/alicloud/cdn/CdnFunctions.java | 187 ++ .../com/pulumi/alicloud/cen/CenFunctions.java | 1730 ++++++++++- .../com/pulumi/alicloud/cfg/CfgFunctions.java | 436 +++ .../alicloud/chatbot/ChatbotFunctions.java | 46 + .../clickhouse/ClickhouseFunctions.java | 258 ++ .../cloudauth/CloudauthFunctions.java | 56 + .../cloudconnect/CloudconnectFunctions.java | 57 + .../cloudfirewall/CloudfirewallFunctions.java | 345 +++ .../cloudmonitor/CloudmonitorFunctions.java | 70 + .../alicloud/cloudsso/CloudssoFunctions.java | 397 +++ .../CloudstoragegatewayFunctions.java | 460 +++ .../com/pulumi/alicloud/cms/CmsFunctions.java | 872 +++++- .../alicloud/compute/ComputeFunctions.java | 53 + .../com/pulumi/alicloud/cr/CrFunctions.java | 410 +++ .../com/pulumi/alicloud/cs/CsFunctions.java | 732 ++++- .../DatabasefilesystemFunctions.java | 155 + .../DatabasegatewayFunctions.java | 53 + .../alicloud/datahub/DatahubFunctions.java | 49 + .../dataworks/DataworksFunctions.java | 103 + .../com/pulumi/alicloud/dbs/DbsFunctions.java | 51 + .../pulumi/alicloud/dcdn/DcdnFunctions.java | 326 +++ .../pulumi/alicloud/ddos/DdosFunctions.java | 252 ++ .../com/pulumi/alicloud/dds/DdsFunctions.java | 4 + .../com/pulumi/alicloud/dfs/DfsFunctions.java | 249 ++ .../directmail/DirectmailFunctions.java | 203 ++ .../com/pulumi/alicloud/dms/DmsFunctions.java | 346 +++ .../com/pulumi/alicloud/dns/DnsFunctions.java | 711 ++++- .../pulumi/alicloud/drds/DrdsFunctions.java | 48 + .../com/pulumi/alicloud/dts/DtsFunctions.java | 229 ++ .../pulumi/alicloud/eais/EaisFunctions.java | 53 + .../com/pulumi/alicloud/ebs/EbsFunctions.java | 186 ++ .../com/pulumi/alicloud/eci/EciFunctions.java | 192 ++ .../com/pulumi/alicloud/ecp/EcpFunctions.java | 235 ++ .../com/pulumi/alicloud/ecs/EcsFunctions.java | 2220 +++++++++++++- .../pulumi/alicloud/edas/EdasFunctions.java | 241 ++ .../com/pulumi/alicloud/eds/EdsFunctions.java | 1092 ++++++- .../pulumi/alicloud/eflo/EfloFunctions.java | 96 + .../pulumi/alicloud/ehpc/EhpcFunctions.java | 107 + .../eipanycast/EipanycastFunctions.java | 49 + .../elasticsearch/ElasticsearchFunctions.java | 47 + .../com/pulumi/alicloud/emr/EmrFunctions.java | 346 +++ .../pulumi/alicloud/emrv2/Emrv2Functions.java | 10 + .../com/pulumi/alicloud/ens/EnsFunctions.java | 49 + .../com/pulumi/alicloud/ess/EssFunctions.java | 287 ++ .../eventbridge/EventbridgeFunctions.java | 196 ++ .../ExpressconnectFunctions.java | 405 +++ .../com/pulumi/alicloud/fc/FcFunctions.java | 267 ++ .../com/pulumi/alicloud/fnf/FnfFunctions.java | 194 ++ .../com/pulumi/alicloud/ga/GaFunctions.java | 1294 ++++++++- .../governance/GovernanceFunctions.java | 84 + .../pulumi/alicloud/gpdb/GpdbFunctions.java | 273 ++ .../graphdatabase/GraphdatabaseFunctions.java | 60 + .../pulumi/alicloud/gwlb/GwlbFunctions.java | 44 + .../pulumi/alicloud/hbase/HbaseFunctions.java | 104 + .../com/pulumi/alicloud/hbr/HbrFunctions.java | 956 ++++++- .../com/pulumi/alicloud/imm/ImmFunctions.java | 48 + .../com/pulumi/alicloud/imp/ImpFunctions.java | 51 + .../com/pulumi/alicloud/iot/IotFunctions.java | 92 + .../com/pulumi/alicloud/kms/KmsFunctions.java | 391 +++ .../alicloud/kvstore/KvstoreFunctions.java | 342 +++ .../alicloud/lindorm/LindormFunctions.java | 51 + .../com/pulumi/alicloud/log/LogFunctions.java | 153 + .../marketplace/MarketplaceFunctions.java | 57 + .../maxcompute/MaxcomputeFunctions.java | 107 + .../alicloud/message/MessageFunctions.java | 152 + .../pulumi/alicloud/mhub/MhubFunctions.java | 120 + .../com/pulumi/alicloud/mns/MnsFunctions.java | 185 ++ .../alicloud/mongodb/MongodbFunctions.java | 309 ++ .../com/pulumi/alicloud/mse/MseFunctions.java | 407 +++ .../com/pulumi/alicloud/nas/NasFunctions.java | 566 +++- .../com/pulumi/alicloud/nlb/NlbFunctions.java | 292 ++ .../pulumi/alicloud/ocean/OceanFunctions.java | 51 + .../com/pulumi/alicloud/oos/OosFunctions.java | 400 +++ .../opensearch/OpensearchFunctions.java | 64 + .../com/pulumi/alicloud/oss/OssFunctions.java | 247 ++ .../com/pulumi/alicloud/ots/OtsFunctions.java | 222 ++ .../alicloud/polardb/PolardbFunctions.java | 730 ++++- .../privatelink/PrivatelinkFunctions.java | 339 +++ .../pulumi/alicloud/pvtz/PvtzFunctions.java | 283 ++ .../alicloud/quickbi/QuickbiFunctions.java | 48 + .../alicloud/quotas/QuotasFunctions.java | 245 ++ .../com/pulumi/alicloud/ram/RamFunctions.java | 692 ++++- .../com/pulumi/alicloud/rdc/RdcFunctions.java | 62 + .../com/pulumi/alicloud/rds/RdsFunctions.java | 689 ++++- .../ResourcemanagerFunctions.java | 780 ++++- .../alicloud/rocketmq/RocketmqFunctions.java | 180 ++ .../com/pulumi/alicloud/ros/RosFunctions.java | 368 +++ .../com/pulumi/alicloud/sae/SaeFunctions.java | 413 +++ .../com/pulumi/alicloud/sag/SagFunctions.java | 108 + .../pulumi/alicloud/scdn/ScdnFunctions.java | 48 + .../schedulerx/SchedulerxFunctions.java | 51 + .../pulumi/alicloud/sddp/SddpFunctions.java | 203 ++ .../SecuritycenterFunctions.java | 48 + .../alicloud/selectdb/SelectdbFunctions.java | 169 ++ .../ServicecatalogFunctions.java | 286 ++ .../servicemesh/ServicemeshFunctions.java | 113 + .../SimpleapplicationserverFunctions.java | 392 +++ .../com/pulumi/alicloud/slb/SlbFunctions.java | 766 ++++- .../com/pulumi/alicloud/tag/TagFunctions.java | 48 + .../ThreatdetectionFunctions.java | 709 ++++- .../pulumi/alicloud/tsdb/TsdbFunctions.java | 93 + .../VideosurveillanceFunctions.java | 106 + .../com/pulumi/alicloud/vod/VodFunctions.java | 69 + .../com/pulumi/alicloud/vpc/VpcFunctions.java | 2540 ++++++++++++++++- .../com/pulumi/alicloud/vpn/VpnFunctions.java | 345 +++ .../com/pulumi/alicloud/waf/WafFunctions.java | 146 + .../pulumi/alicloud/wafv3/Wafv3Functions.java | 101 + .../alicloud/yundun/YundunFunctions.java | 7 + sdk/nodejs/package.json | 2 +- sdk/python/pyproject.toml | 4 +- 1535 files changed, 65746 insertions(+), 9999 deletions(-) diff --git a/sdk/dotnet/ActionTrail/GetConsumerGroups.cs b/sdk/dotnet/ActionTrail/GetConsumerGroups.cs index f34caaa4ea..e59b1f95de 100644 --- a/sdk/dotnet/ActionTrail/GetConsumerGroups.cs +++ b/sdk/dotnet/ActionTrail/GetConsumerGroups.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetConsumerGroupsArgs ar /// public static Output Invoke(GetConsumerGroupsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:actiontrail/getConsumerGroups:getConsumerGroups", args ?? new GetConsumerGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of ALIKAFKA Consumer Groups in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in 1.56.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var consumerGroupsDs = AliCloud.ActionTrail.GetConsumerGroups.Invoke(new() + /// { + /// InstanceId = "xxx", + /// ConsumerIdRegex = "CID-alikafkaGroupDatasourceName", + /// OutputFile = "consumerGroups.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstGroupName"] = consumerGroupsDs.Apply(getConsumerGroupsResult => getConsumerGroupsResult.ConsumerIds[0]), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetConsumerGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:actiontrail/getConsumerGroups:getConsumerGroups", args ?? new GetConsumerGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ActionTrail/GetGlobalEventsStorageRegion.cs b/sdk/dotnet/ActionTrail/GetGlobalEventsStorageRegion.cs index b9f400b517..b7b79336ee 100644 --- a/sdk/dotnet/ActionTrail/GetGlobalEventsStorageRegion.cs +++ b/sdk/dotnet/ActionTrail/GetGlobalEventsStorageRegion.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(InvokeOptions /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:actiontrail/getGlobalEventsStorageRegion:getGlobalEventsStorageRegion", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// This data source provides the Actiontrail Global Events Storage Region of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.201.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ActionTrail.GetGlobalEventsStorageRegion.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudActiontrailGlobalEventsStorageRegion1"] = @default.Apply(@default => @default.Apply(getGlobalEventsStorageRegionResult => getGlobalEventsStorageRegionResult.StorageRegion)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:actiontrail/getGlobalEventsStorageRegion:getGlobalEventsStorageRegion", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/ActionTrail/GetHistoryDeliveryJobs.cs b/sdk/dotnet/ActionTrail/GetHistoryDeliveryJobs.cs index 597d7f40b9..34fda6ee07 100644 --- a/sdk/dotnet/ActionTrail/GetHistoryDeliveryJobs.cs +++ b/sdk/dotnet/ActionTrail/GetHistoryDeliveryJobs.cs @@ -100,6 +100,51 @@ public static Task InvokeAsync(GetHistoryDeliveryJ /// public static Output Invoke(GetHistoryDeliveryJobsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:actiontrail/getHistoryDeliveryJobs:getHistoryDeliveryJobs", args ?? new GetHistoryDeliveryJobsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Actiontrail History Delivery Jobs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.139.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.ActionTrail.GetHistoryDeliveryJobs.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var status = AliCloud.ActionTrail.GetHistoryDeliveryJobs.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// Status = 2, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["actiontrailHistoryDeliveryJobId1"] = ids.Apply(getHistoryDeliveryJobsResult => getHistoryDeliveryJobsResult.Jobs[0]?.Id), + /// ["actiontrailHistoryDeliveryJobId2"] = status.Apply(getHistoryDeliveryJobsResult => getHistoryDeliveryJobsResult.Jobs[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetHistoryDeliveryJobsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:actiontrail/getHistoryDeliveryJobs:getHistoryDeliveryJobs", args ?? new GetHistoryDeliveryJobsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ActionTrail/GetInstances.cs b/sdk/dotnet/ActionTrail/GetInstances.cs index 7b520c0317..34e7a116f0 100644 --- a/sdk/dotnet/ActionTrail/GetInstances.cs +++ b/sdk/dotnet/ActionTrail/GetInstances.cs @@ -132,6 +132,67 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:actiontrail/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of ALIKAFKA Instances in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in 1.59.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var instanceName = config.Get("instanceName") ?? "alikafkaInstanceName"; + /// var @default = AliCloud.GetZones.Invoke(new() + /// { + /// AvailableResourceCreation = "VSwitch", + /// }); + /// + /// var defaultNetwork = new AliCloud.Vpc.Network("default", new() + /// { + /// CidrBlock = "172.16.0.0/12", + /// }); + /// + /// var defaultSwitch = new AliCloud.Vpc.Switch("default", new() + /// { + /// VpcId = defaultNetwork.Id, + /// CidrBlock = "172.16.0.0/24", + /// ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)), + /// }); + /// + /// var defaultInstance = new AliCloud.AliKafka.Instance("default", new() + /// { + /// Name = instanceName, + /// PartitionNum = 50, + /// DiskType = 1, + /// DiskSize = 500, + /// DeployType = 4, + /// IoMax = 20, + /// VswitchId = defaultSwitch.Id, + /// }); + /// + /// var instancesDs = AliCloud.ActionTrail.GetInstances.Invoke(new() + /// { + /// NameRegex = "alikafkaInstanceName", + /// OutputFile = "instances.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstInstanceName"] = instancesDs.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Name), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:actiontrail/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ActionTrail/GetSaslAcls.cs b/sdk/dotnet/ActionTrail/GetSaslAcls.cs index 8798024d47..c7122fcb0d 100644 --- a/sdk/dotnet/ActionTrail/GetSaslAcls.cs +++ b/sdk/dotnet/ActionTrail/GetSaslAcls.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetSaslAclsArgs args, InvokeOp /// public static Output Invoke(GetSaslAclsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:actiontrail/getSaslAcls:getSaslAcls", args ?? new GetSaslAclsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of ALIKAFKA Sasl acls in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in 1.66.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var saslAclsDs = AliCloud.ActionTrail.GetSaslAcls.Invoke(new() + /// { + /// InstanceId = "xxx", + /// Username = "username", + /// AclResourceType = "Topic", + /// AclResourceName = "testTopic", + /// OutputFile = "saslAcls.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstSaslAclUsername"] = saslAclsDs.Apply(getSaslAclsResult => getSaslAclsResult.Acls[0]?.Username), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSaslAclsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:actiontrail/getSaslAcls:getSaslAcls", args ?? new GetSaslAclsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ActionTrail/GetSaslUsers.cs b/sdk/dotnet/ActionTrail/GetSaslUsers.cs index fea2351a82..012759b316 100644 --- a/sdk/dotnet/ActionTrail/GetSaslUsers.cs +++ b/sdk/dotnet/ActionTrail/GetSaslUsers.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetSaslUsersArgs args, Invoke /// public static Output Invoke(GetSaslUsersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:actiontrail/getSaslUsers:getSaslUsers", args ?? new GetSaslUsersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of ALIKAFKA Sasl users in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in 1.66.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var saslUsersDs = AliCloud.ActionTrail.GetSaslUsers.Invoke(new() + /// { + /// InstanceId = "xxx", + /// NameRegex = "username", + /// OutputFile = "saslUsers.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstSaslUsername"] = saslUsersDs.Apply(getSaslUsersResult => getSaslUsersResult.Users[0]?.Username), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSaslUsersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:actiontrail/getSaslUsers:getSaslUsers", args ?? new GetSaslUsersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ActionTrail/GetTopics.cs b/sdk/dotnet/ActionTrail/GetTopics.cs index 9973581b58..c03712d948 100644 --- a/sdk/dotnet/ActionTrail/GetTopics.cs +++ b/sdk/dotnet/ActionTrail/GetTopics.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetTopicsArgs args, InvokeOption /// public static Output Invoke(GetTopicsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:actiontrail/getTopics:getTopics", args ?? new GetTopicsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of ALIKAFKA Topics in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in 1.56.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var topicsDs = AliCloud.ActionTrail.GetTopics.Invoke(new() + /// { + /// InstanceId = "xxx", + /// NameRegex = "alikafkaTopicName", + /// OutputFile = "topics.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstTopicName"] = topicsDs.Apply(getTopicsResult => getTopicsResult.Topics[0]?.Topic), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTopicsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:actiontrail/getTopics:getTopics", args ?? new GetTopicsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ActionTrail/GetTrails.cs b/sdk/dotnet/ActionTrail/GetTrails.cs index 6b791e12b4..5f03528caa 100644 --- a/sdk/dotnet/ActionTrail/GetTrails.cs +++ b/sdk/dotnet/ActionTrail/GetTrails.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetTrailsArgs? args = null, Invo /// public static Output Invoke(GetTrailsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:actiontrail/getTrails:getTrails", args ?? new GetTrailsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of ActionTrail Trails in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in 1.95.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ActionTrail.GetTrails.Invoke(new() + /// { + /// NameRegex = "tf-testacc-actiontrail", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["trailName"] = @default.Apply(@default => @default.Apply(getTrailsResult => getTrailsResult.Trails[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTrailsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:actiontrail/getTrails:getTrails", args ?? new GetTrailsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ActionTrail/GetTrailsDeprecated.cs b/sdk/dotnet/ActionTrail/GetTrailsDeprecated.cs index 524ab47eba..132c26004a 100644 --- a/sdk/dotnet/ActionTrail/GetTrailsDeprecated.cs +++ b/sdk/dotnet/ActionTrail/GetTrailsDeprecated.cs @@ -27,6 +27,14 @@ public static Task InvokeAsync(GetTrailsDeprecatedArg /// public static Output Invoke(GetTrailsDeprecatedInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:actiontrail/getTrailsDeprecated:getTrailsDeprecated", args ?? new GetTrailsDeprecatedInvokeArgs(), options.WithDefaults()); + + /// + /// > **DEPRECATED:** This datasource has been renamed to alicloud.actiontrail.getTrails from version 1.95.0. + /// + /// This data source provides a list of action trail of the current Alibaba Cloud user. + /// + public static Output Invoke(GetTrailsDeprecatedInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:actiontrail/getTrailsDeprecated:getTrailsDeprecated", args ?? new GetTrailsDeprecatedInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Adb/GetClusters.cs b/sdk/dotnet/Adb/GetClusters.cs index 6db536a04f..846e4b9736 100644 --- a/sdk/dotnet/Adb/GetClusters.cs +++ b/sdk/dotnet/Adb/GetClusters.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetClustersArgs? args = null, /// public static Output Invoke(GetClustersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:adb/getClusters:getClusters", args ?? new GetClustersInvokeArgs(), options.WithDefaults()); + + /// + /// The `alicloud.adb.getClusters` data source provides a collection of ADB clusters available in Alibaba Cloud account. + /// Filters support regular expression for the cluster description, searches by tags, and other filters which are listed below. + /// + /// > **DEPRECATED:** This resource has been deprecated from version `1.121.0`. Please use new datasource alicloud_adb_db_clusters. + /// + /// > **NOTE:** Available in v1.71.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var adbClustersDs = AliCloud.Adb.GetClusters.Invoke(new() + /// { + /// DescriptionRegex = "am-\\w+", + /// Status = "Running", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstAdbClusterId"] = adbClustersDs.Apply(getClustersResult => getClustersResult.Clusters[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetClustersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:adb/getClusters:getClusters", args ?? new GetClustersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Adb/GetDBClusterLakeVersions.cs b/sdk/dotnet/Adb/GetDBClusterLakeVersions.cs index 90ce94ce14..468cda86cc 100644 --- a/sdk/dotnet/Adb/GetDBClusterLakeVersions.cs +++ b/sdk/dotnet/Adb/GetDBClusterLakeVersions.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetDBClusterLakeV /// public static Output Invoke(GetDBClusterLakeVersionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:adb/getDBClusterLakeVersions:getDBClusterLakeVersions", args ?? new GetDBClusterLakeVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Adb DBCluster Lake Versions of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.190.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Adb.GetDBClusterLakeVersions.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["adbDbClusterLakeVersionId1"] = ids.Apply(getDBClusterLakeVersionsResult => getDBClusterLakeVersionsResult.Versions[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDBClusterLakeVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:adb/getDBClusterLakeVersions:getDBClusterLakeVersions", args ?? new GetDBClusterLakeVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Adb/GetDBClusters.cs b/sdk/dotnet/Adb/GetDBClusters.cs index 9e6d67b54d..4662e4410c 100644 --- a/sdk/dotnet/Adb/GetDBClusters.cs +++ b/sdk/dotnet/Adb/GetDBClusters.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetDBClustersArgs? args = nu /// public static Output Invoke(GetDBClustersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:adb/getDBClusters:getDBClusters", args ?? new GetDBClustersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Adb DBClusters of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.121.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Adb.GetDBClusters.Invoke(new() + /// { + /// DescriptionRegex = "example", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstAdbDbClusterId"] = example.Apply(getDBClustersResult => getDBClustersResult.Clusters[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDBClustersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:adb/getDBClusters:getDBClusters", args ?? new GetDBClustersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Adb/GetResourceGroups.cs b/sdk/dotnet/Adb/GetResourceGroups.cs index 447de9f1d2..593ab94fde 100644 --- a/sdk/dotnet/Adb/GetResourceGroups.cs +++ b/sdk/dotnet/Adb/GetResourceGroups.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetResourceGroupsArgs ar /// public static Output Invoke(GetResourceGroupsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:adb/getResourceGroups:getResourceGroups", args ?? new GetResourceGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Adb Resource Group available to the user.[What is Resource Group](https://www.alibabacloud.com/help/en/analyticdb-for-mysql/developer-reference/api-adb-2019-03-15-describedbresourcegroup) + /// + /// > **NOTE:** Available since v1.195.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Adb.GetResourceGroups.Invoke(new() + /// { + /// DbClusterId = "am-bp1a16357gty69185", + /// GroupName = "TESTOPENAPI", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudAdbResourceGroupExampleId"] = @default.Apply(@default => @default.Apply(getResourceGroupsResult => getResourceGroupsResult.Groups[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetResourceGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:adb/getResourceGroups:getResourceGroups", args ?? new GetResourceGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Adb/GetZones.cs b/sdk/dotnet/Adb/GetZones.cs index bdaabf2256..2ca83d0fc0 100644 --- a/sdk/dotnet/Adb/GetZones.cs +++ b/sdk/dotnet/Adb/GetZones.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:adb/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides availability zones for ADB that can be accessed by an Alibaba Cloud account within the region configured in the provider. + /// + /// > **NOTE:** Available in v1.73.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var zonesIds = AliCloud.Adb.GetZones.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:adb/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Alb/GetAcls.cs b/sdk/dotnet/Alb/GetAcls.cs index 6c8b1913d3..3226ba0bb8 100644 --- a/sdk/dotnet/Alb/GetAcls.cs +++ b/sdk/dotnet/Alb/GetAcls.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetAclsArgs? args = null, InvokeOp /// public static Output Invoke(GetAclsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:alb/getAcls:getAcls", args ?? new GetAclsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Application Load Balancer (ALB) Acls of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.133.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Alb.GetAcls.Invoke(); + /// + /// var nameRegex = AliCloud.Alb.GetAcls.Invoke(new() + /// { + /// NameRegex = "^my-Acl", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["albAclId1"] = ids.Apply(getAclsResult => getAclsResult.Acls[0]?.Id), + /// ["albAclId2"] = nameRegex.Apply(getAclsResult => getAclsResult.Acls[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAclsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:alb/getAcls:getAcls", args ?? new GetAclsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Alb/GetAscripts.cs b/sdk/dotnet/Alb/GetAscripts.cs index 805557a2c6..ef8d5b4b5b 100644 --- a/sdk/dotnet/Alb/GetAscripts.cs +++ b/sdk/dotnet/Alb/GetAscripts.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetAscriptsArgs? args = null, /// public static Output Invoke(GetAscriptsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:alb/getAscripts:getAscripts", args ?? new GetAscriptsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Alb Ascript available to the user. + /// + /// > **NOTE:** Available in 1.195.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Alb.GetAscripts.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAlicloudAlbAscript.Id, + /// }, + /// NameRegex = defaultAlicloudAlbAscript.Name, + /// AscriptName = "test", + /// ListenerId = listenerId, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudAlbAscriptExampleId"] = @default.Apply(@default => @default.Apply(getAscriptsResult => getAscriptsResult.Ascripts[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAscriptsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:alb/getAscripts:getAscripts", args ?? new GetAscriptsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Alb/GetHealthCheckTemplates.cs b/sdk/dotnet/Alb/GetHealthCheckTemplates.cs index 64fb436bb1..bca4a034f0 100644 --- a/sdk/dotnet/Alb/GetHealthCheckTemplates.cs +++ b/sdk/dotnet/Alb/GetHealthCheckTemplates.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetHealthCheckTemp /// public static Output Invoke(GetHealthCheckTemplatesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:alb/getHealthCheckTemplates:getHealthCheckTemplates", args ?? new GetHealthCheckTemplatesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Alb Health Check Templates of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.134.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Alb.GetHealthCheckTemplates.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Alb.GetHealthCheckTemplates.Invoke(new() + /// { + /// NameRegex = "^my-HealthCheckTemplate", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["albHealthCheckTemplateId1"] = ids.Apply(getHealthCheckTemplatesResult => getHealthCheckTemplatesResult.Templates[0]?.Id), + /// ["albHealthCheckTemplateId2"] = nameRegex.Apply(getHealthCheckTemplatesResult => getHealthCheckTemplatesResult.Templates[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetHealthCheckTemplatesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:alb/getHealthCheckTemplates:getHealthCheckTemplates", args ?? new GetHealthCheckTemplatesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Alb/GetListeners.cs b/sdk/dotnet/Alb/GetListeners.cs index c78cfc4635..f3b36e4b2b 100644 --- a/sdk/dotnet/Alb/GetListeners.cs +++ b/sdk/dotnet/Alb/GetListeners.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetListenersArgs? args = null /// public static Output Invoke(GetListenersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:alb/getListeners:getListeners", args ?? new GetListenersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Application Load Balancer (ALB) Listeners of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.133.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Alb.GetListeners.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["albListenerId1"] = ids.Apply(getListenersResult => getListenersResult.Listeners[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetListenersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:alb/getListeners:getListeners", args ?? new GetListenersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Alb/GetLoadBalancers.cs b/sdk/dotnet/Alb/GetLoadBalancers.cs index 15c257ca3b..ba5a9c7a6e 100644 --- a/sdk/dotnet/Alb/GetLoadBalancers.cs +++ b/sdk/dotnet/Alb/GetLoadBalancers.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetLoadBalancersArgs? arg /// public static Output Invoke(GetLoadBalancersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:alb/getLoadBalancers:getLoadBalancers", args ?? new GetLoadBalancersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Alb Load Balancers of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.132.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Alb.GetLoadBalancers.Invoke(); + /// + /// var nameRegex = AliCloud.Alb.GetLoadBalancers.Invoke(new() + /// { + /// NameRegex = "^my-LoadBalancer", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["albLoadBalancerId1"] = ids.Apply(getLoadBalancersResult => getLoadBalancersResult.Balancers[0]?.Id), + /// ["albLoadBalancerId2"] = nameRegex.Apply(getLoadBalancersResult => getLoadBalancersResult.Balancers[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetLoadBalancersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:alb/getLoadBalancers:getLoadBalancers", args ?? new GetLoadBalancersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Alb/GetRules.cs b/sdk/dotnet/Alb/GetRules.cs index ca1e530ca6..0b9c14c669 100644 --- a/sdk/dotnet/Alb/GetRules.cs +++ b/sdk/dotnet/Alb/GetRules.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetRulesArgs? args = null, Invoke /// public static Output Invoke(GetRulesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:alb/getRules:getRules", args ?? new GetRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Alb Rules of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.133.0. + /// + public static Output Invoke(GetRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:alb/getRules:getRules", args ?? new GetRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Alb/GetSecurityPolicies.cs b/sdk/dotnet/Alb/GetSecurityPolicies.cs index 1761992f8a..c10c15c869 100644 --- a/sdk/dotnet/Alb/GetSecurityPolicies.cs +++ b/sdk/dotnet/Alb/GetSecurityPolicies.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetSecurityPoliciesArg /// public static Output Invoke(GetSecurityPoliciesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:alb/getSecurityPolicies:getSecurityPolicies", args ?? new GetSecurityPoliciesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Alb Security Policies of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.130.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Alb.GetSecurityPolicies.Invoke(); + /// + /// var nameRegex = AliCloud.Alb.GetSecurityPolicies.Invoke(new() + /// { + /// NameRegex = "^my-SecurityPolicy", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["albSecurityPolicyId1"] = ids.Apply(getSecurityPoliciesResult => getSecurityPoliciesResult.Policies[0]?.Id), + /// ["albSecurityPolicyId2"] = nameRegex.Apply(getSecurityPoliciesResult => getSecurityPoliciesResult.Policies[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSecurityPoliciesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:alb/getSecurityPolicies:getSecurityPolicies", args ?? new GetSecurityPoliciesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Alb/GetServerGroups.cs b/sdk/dotnet/Alb/GetServerGroups.cs index 9a0fef914f..9ba50ddb45 100644 --- a/sdk/dotnet/Alb/GetServerGroups.cs +++ b/sdk/dotnet/Alb/GetServerGroups.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetServerGroupsArgs? args /// public static Output Invoke(GetServerGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:alb/getServerGroups:getServerGroups", args ?? new GetServerGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Alb Server Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.131.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Alb.GetServerGroups.Invoke(); + /// + /// var nameRegex = AliCloud.Alb.GetServerGroups.Invoke(new() + /// { + /// NameRegex = "^my-ServerGroup", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["albServerGroupId1"] = ids.Apply(getServerGroupsResult => getServerGroupsResult.Groups[0]?.Id), + /// ["albServerGroupId2"] = nameRegex.Apply(getServerGroupsResult => getServerGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetServerGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:alb/getServerGroups:getServerGroups", args ?? new GetServerGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Alb/GetSystemSecurityPolicies.cs b/sdk/dotnet/Alb/GetSystemSecurityPolicies.cs index 193a1d12eb..52e30f21fa 100644 --- a/sdk/dotnet/Alb/GetSystemSecurityPolicies.cs +++ b/sdk/dotnet/Alb/GetSystemSecurityPolicies.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetSystemSecurit /// public static Output Invoke(GetSystemSecurityPoliciesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:alb/getSystemSecurityPolicies:getSystemSecurityPolicies", args ?? new GetSystemSecurityPoliciesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the ALB System Security Policies of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.183.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var defaults = AliCloud.Alb.GetSystemSecurityPolicies.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "tls_cipher_policy_1_0", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["albSystemSecurityPolicyId1"] = defaults.Apply(getSystemSecurityPoliciesResult => getSystemSecurityPoliciesResult.Policies[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSystemSecurityPoliciesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:alb/getSystemSecurityPolicies:getSystemSecurityPolicies", args ?? new GetSystemSecurityPoliciesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Alb/GetZones.cs b/sdk/dotnet/Alb/GetZones.cs index 3e45f3533f..b89aa9be55 100644 --- a/sdk/dotnet/Alb/GetZones.cs +++ b/sdk/dotnet/Alb/GetZones.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:alb/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the available zones with the Application Load Balancer (ALB) Instance of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.132.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Alb.GetZones.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstAlbZonesId"] = example.Apply(getZonesResult => getZonesResult.Zones[0]?.ZoneId), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:alb/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Amqp/GetBindings.cs b/sdk/dotnet/Amqp/GetBindings.cs index 66a84e1f80..3d91375f0d 100644 --- a/sdk/dotnet/Amqp/GetBindings.cs +++ b/sdk/dotnet/Amqp/GetBindings.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetBindingsArgs args, InvokeOp /// public static Output Invoke(GetBindingsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:amqp/getBindings:getBindings", args ?? new GetBindingsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Amqp Bindings of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.135.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var examples = AliCloud.Amqp.GetBindings.Invoke(new() + /// { + /// InstanceId = "amqp-cn-xxxxx", + /// VirtualHostName = "my-vh", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBindingsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:amqp/getBindings:getBindings", args ?? new GetBindingsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Amqp/GetExchanges.cs b/sdk/dotnet/Amqp/GetExchanges.cs index 6a92a066ad..37652437b3 100644 --- a/sdk/dotnet/Amqp/GetExchanges.cs +++ b/sdk/dotnet/Amqp/GetExchanges.cs @@ -102,6 +102,52 @@ public static Task InvokeAsync(GetExchangesArgs args, Invoke /// public static Output Invoke(GetExchangesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:amqp/getExchanges:getExchanges", args ?? new GetExchangesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Amqp Exchanges of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.128.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Amqp.GetExchanges.Invoke(new() + /// { + /// InstanceId = "amqp-abc12345", + /// VirtualHostName = "my-VirtualHost", + /// Ids = new[] + /// { + /// "my-Exchange-1", + /// "my-Exchange-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Amqp.GetExchanges.Invoke(new() + /// { + /// InstanceId = "amqp-abc12345", + /// VirtualHostName = "my-VirtualHost", + /// NameRegex = "^my-Exchange", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["amqpExchangeId1"] = ids.Apply(getExchangesResult => getExchangesResult.Exchanges[0]?.Id), + /// ["amqpExchangeId2"] = nameRegex.Apply(getExchangesResult => getExchangesResult.Exchanges[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetExchangesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:amqp/getExchanges:getExchanges", args ?? new GetExchangesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Amqp/GetInstances.cs b/sdk/dotnet/Amqp/GetInstances.cs index 1355a6b0b3..b1114507a0 100644 --- a/sdk/dotnet/Amqp/GetInstances.cs +++ b/sdk/dotnet/Amqp/GetInstances.cs @@ -94,6 +94,48 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:amqp/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Amqp Instances of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.128.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Amqp.GetInstances.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "amqp-abc12345", + /// "amqp-abc34567", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Amqp.GetInstances.Invoke(new() + /// { + /// NameRegex = "^my-Instance", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["amqpInstanceId1"] = ids.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id), + /// ["amqpInstanceId2"] = nameRegex.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:amqp/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Amqp/GetQueues.cs b/sdk/dotnet/Amqp/GetQueues.cs index cc4dd69268..eb9056e258 100644 --- a/sdk/dotnet/Amqp/GetQueues.cs +++ b/sdk/dotnet/Amqp/GetQueues.cs @@ -102,6 +102,52 @@ public static Task InvokeAsync(GetQueuesArgs args, InvokeOption /// public static Output Invoke(GetQueuesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:amqp/getQueues:getQueues", args ?? new GetQueuesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Amqp Queues of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.127.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Amqp.GetQueues.Invoke(new() + /// { + /// InstanceId = "amqp-abc12345", + /// VirtualHostName = "my-VirtualHost", + /// Ids = new[] + /// { + /// "my-Queue-1", + /// "my-Queue-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Amqp.GetQueues.Invoke(new() + /// { + /// InstanceId = "amqp-abc12345", + /// VirtualHostName = "my-VirtualHost", + /// NameRegex = "^my-Queue", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["amqpQueueId1"] = ids.Apply(getQueuesResult => getQueuesResult.Queues[0]?.Id), + /// ["amqpQueueId2"] = nameRegex.Apply(getQueuesResult => getQueuesResult.Queues[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetQueuesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:amqp/getQueues:getQueues", args ?? new GetQueuesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Amqp/GetStaticAccounts.cs b/sdk/dotnet/Amqp/GetStaticAccounts.cs index c499639905..4afe157584 100644 --- a/sdk/dotnet/Amqp/GetStaticAccounts.cs +++ b/sdk/dotnet/Amqp/GetStaticAccounts.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetStaticAccountsArgs? a /// public static Output Invoke(GetStaticAccountsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:amqp/getStaticAccounts:getStaticAccounts", args ?? new GetStaticAccountsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Amqp Static Account available to the user.[What is Static Account](https://help.aliyun.com/document_detail/184399.html) + /// + /// > **NOTE:** Available in 1.195.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Amqp.GetStaticAccounts.Invoke(new() + /// { + /// InstanceId = "amqp-cn-0ju2y01zs001", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudAmqpStaticAccountExampleId"] = @default.Apply(@default => @default.Apply(getStaticAccountsResult => getStaticAccountsResult.Accounts[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetStaticAccountsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:amqp/getStaticAccounts:getStaticAccounts", args ?? new GetStaticAccountsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Amqp/GetVirtualHosts.cs b/sdk/dotnet/Amqp/GetVirtualHosts.cs index ceb1702269..204cb513e8 100644 --- a/sdk/dotnet/Amqp/GetVirtualHosts.cs +++ b/sdk/dotnet/Amqp/GetVirtualHosts.cs @@ -98,6 +98,50 @@ public static Task InvokeAsync(GetVirtualHostsArgs args, /// public static Output Invoke(GetVirtualHostsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:amqp/getVirtualHosts:getVirtualHosts", args ?? new GetVirtualHostsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Amqp Virtual Hosts of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.126.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Amqp.GetVirtualHosts.Invoke(new() + /// { + /// InstanceId = "amqp-abc12345", + /// Ids = new[] + /// { + /// "my-VirtualHost-1", + /// "my-VirtualHost-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Amqp.GetVirtualHosts.Invoke(new() + /// { + /// InstanceId = "amqp-abc12345", + /// NameRegex = "^my-VirtualHost", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["amqpVirtualHostId1"] = ids.Apply(getVirtualHostsResult => getVirtualHostsResult.Hosts[0]?.Id), + /// ["amqpVirtualHostId2"] = nameRegex.Apply(getVirtualHostsResult => getVirtualHostsResult.Hosts[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetVirtualHostsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:amqp/getVirtualHosts:getVirtualHosts", args ?? new GetVirtualHostsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ApiGateway/GetApis.cs b/sdk/dotnet/ApiGateway/GetApis.cs index 0e7084fc0c..02fc7745cc 100644 --- a/sdk/dotnet/ApiGateway/GetApis.cs +++ b/sdk/dotnet/ApiGateway/GetApis.cs @@ -168,6 +168,85 @@ public static Task InvokeAsync(GetApisArgs? args = null, InvokeOp /// public static Output Invoke(GetApisInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:apigateway/getApis:getApis", args ?? new GetApisInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Api Gateway APIs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.22.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "terraform-example"; + /// var @default = new AliCloud.ApiGateway.Group("default", new() + /// { + /// Name = name, + /// Description = name, + /// }); + /// + /// var defaultApi = new AliCloud.ApiGateway.Api("default", new() + /// { + /// GroupId = @default.Id, + /// Name = name, + /// Description = name, + /// AuthType = "APP", + /// ServiceType = "HTTP", + /// RequestConfig = new AliCloud.ApiGateway.Inputs.ApiRequestConfigArgs + /// { + /// Protocol = "HTTP", + /// Method = "GET", + /// Path = "/test/path", + /// Mode = "MAPPING", + /// }, + /// HttpServiceConfig = new AliCloud.ApiGateway.Inputs.ApiHttpServiceConfigArgs + /// { + /// Address = "http://apigateway-backend.alicloudapi.com:8080", + /// Method = "GET", + /// Path = "/web/cloudapi", + /// Timeout = 20, + /// AoneName = "cloudapi-openapi", + /// }, + /// RequestParameters = new[] + /// { + /// new AliCloud.ApiGateway.Inputs.ApiRequestParameterArgs + /// { + /// Name = name, + /// Type = "STRING", + /// Required = "OPTIONAL", + /// In = "QUERY", + /// InService = "QUERY", + /// NameService = name, + /// }, + /// }, + /// }); + /// + /// var ids = AliCloud.ApiGateway.GetApis.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultApi.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["apiGatewayApisId0"] = ids.Apply(getApisResult => getApisResult.Apis[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetApisInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:apigateway/getApis:getApis", args ?? new GetApisInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ApiGateway/GetApps.cs b/sdk/dotnet/ApiGateway/GetApps.cs index 6b288d5077..4689bae662 100644 --- a/sdk/dotnet/ApiGateway/GetApps.cs +++ b/sdk/dotnet/ApiGateway/GetApps.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetAppsArgs? args = null, InvokeOp /// public static Output Invoke(GetAppsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:apigateway/getApps:getApps", args ?? new GetAppsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the apps of the current Alibaba Cloud user. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var dataApigatway = AliCloud.ApiGateway.GetApps.Invoke(new() + /// { + /// OutputFile = "outapps", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstAppId"] = dataApigatway.Apply(getAppsResult => getAppsResult.Apps[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAppsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:apigateway/getApps:getApps", args ?? new GetAppsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ApiGateway/GetBackends.cs b/sdk/dotnet/ApiGateway/GetBackends.cs index e46f47503f..9661a6f09f 100644 --- a/sdk/dotnet/ApiGateway/GetBackends.cs +++ b/sdk/dotnet/ApiGateway/GetBackends.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetBackendsArgs? args = null, /// public static Output Invoke(GetBackendsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:apigateway/getBackends:getBackends", args ?? new GetBackendsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Api Gateway Backends of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.181.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.ApiGateway.GetBackends.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["apiGatewayBackendId1"] = ids.Apply(getBackendsResult => getBackendsResult.Backends[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBackendsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:apigateway/getBackends:getBackends", args ?? new GetBackendsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ApiGateway/GetGroups.cs b/sdk/dotnet/ApiGateway/GetGroups.cs index 700ab61888..d8ba3b034a 100644 --- a/sdk/dotnet/ApiGateway/GetGroups.cs +++ b/sdk/dotnet/ApiGateway/GetGroups.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetGroupsArgs? args = null, Invo /// public static Output Invoke(GetGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:apigateway/getGroups:getGroups", args ?? new GetGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the api groups of the current Alibaba Cloud user. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var dataApigatway = AliCloud.ApiGateway.GetGroups.Invoke(new() + /// { + /// OutputFile = "outgroups", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstGroupId"] = dataApigatway.Apply(getGroupsResult => getGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:apigateway/getGroups:getGroups", args ?? new GetGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ApiGateway/GetLogConfigs.cs b/sdk/dotnet/ApiGateway/GetLogConfigs.cs index 4d93557857..a06af91e07 100644 --- a/sdk/dotnet/ApiGateway/GetLogConfigs.cs +++ b/sdk/dotnet/ApiGateway/GetLogConfigs.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetLogConfigsArgs? args = nu /// public static Output Invoke(GetLogConfigsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:apigateway/getLogConfigs:getLogConfigs", args ?? new GetLogConfigsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Api Gateway Log Configs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.185.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.ApiGateway.GetLogConfigs.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var logType = AliCloud.ApiGateway.GetLogConfigs.Invoke(new() + /// { + /// LogType = "PROVIDER", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["apiGatewayLogConfigId1"] = ids.Apply(getLogConfigsResult => getLogConfigsResult.Configs[0]?.Id), + /// ["apiGatewayLogConfigId2"] = logType.Apply(getLogConfigsResult => getLogConfigsResult.Configs[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetLogConfigsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:apigateway/getLogConfigs:getLogConfigs", args ?? new GetLogConfigsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ApiGateway/GetModels.cs b/sdk/dotnet/ApiGateway/GetModels.cs index 4cad747b44..a932a26a92 100644 --- a/sdk/dotnet/ApiGateway/GetModels.cs +++ b/sdk/dotnet/ApiGateway/GetModels.cs @@ -94,6 +94,48 @@ public static Task InvokeAsync(GetModelsArgs args, InvokeOption /// public static Output Invoke(GetModelsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:apigateway/getModels:getModels", args ?? new GetModelsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Api Gateway Models of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.187.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.ApiGateway.GetModels.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// GroupId = "example_group_id", + /// }); + /// + /// var groupId = AliCloud.ApiGateway.GetModels.Invoke(new() + /// { + /// GroupId = "example_group_id", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["apiGatewayModelId1"] = ids.Apply(getModelsResult => getModelsResult.Models[0]?.Id), + /// ["apiGatewayModelId2"] = groupId.Apply(getModelsResult => getModelsResult.Models[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetModelsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:apigateway/getModels:getModels", args ?? new GetModelsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ApiGateway/GetPlugins.cs b/sdk/dotnet/ApiGateway/GetPlugins.cs index de7f561da6..14ceb02d45 100644 --- a/sdk/dotnet/ApiGateway/GetPlugins.cs +++ b/sdk/dotnet/ApiGateway/GetPlugins.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetPluginsArgs? args = null, In /// public static Output Invoke(GetPluginsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:apigateway/getPlugins:getPlugins", args ?? new GetPluginsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Api Gateway Plugins of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.187.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.ApiGateway.GetPlugins.Invoke(); + /// + /// var nameRegex = AliCloud.ApiGateway.GetPlugins.Invoke(new() + /// { + /// NameRegex = "^my-Plugin", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["apiGatewayPluginId1"] = ids.Apply(getPluginsResult => getPluginsResult.Plugins[0]?.Id), + /// ["apiGatewayPluginId2"] = nameRegex.Apply(getPluginsResult => getPluginsResult.Plugins[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetPluginsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:apigateway/getPlugins:getPlugins", args ?? new GetPluginsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ApiGateway/GetService.cs b/sdk/dotnet/ApiGateway/GetService.cs index 6d640bed7b..d405e5c26f 100644 --- a/sdk/dotnet/ApiGateway/GetService.cs +++ b/sdk/dotnet/ApiGateway/GetService.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:apigateway/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can enable API gateway service automatically. If the service has been enabled, it will return `Opened`. + /// + /// For information about API Gateway and how to use it, see [What is API Gateway](https://www.alibabacloud.com/help/product/29462.htm). + /// + /// > **NOTE:** Available in v1.96.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.ApiGateway.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:apigateway/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Arms/GetAlertContactGroups.cs b/sdk/dotnet/Arms/GetAlertContactGroups.cs index 741e849dca..6078bb297d 100644 --- a/sdk/dotnet/Arms/GetAlertContactGroups.cs +++ b/sdk/dotnet/Arms/GetAlertContactGroups.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetAlertContactGroup /// public static Output Invoke(GetAlertContactGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:arms/getAlertContactGroups:getAlertContactGroups", args ?? new GetAlertContactGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Arms Alert Contact Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.131.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var nameRegex = AliCloud.Arms.GetAlertContactGroups.Invoke(new() + /// { + /// NameRegex = "^my-AlertContactGroup", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["armsAlertContactGroupId"] = nameRegex.Apply(getAlertContactGroupsResult => getAlertContactGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAlertContactGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:arms/getAlertContactGroups:getAlertContactGroups", args ?? new GetAlertContactGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Arms/GetAlertContacts.cs b/sdk/dotnet/Arms/GetAlertContacts.cs index 51f77dc0ee..36f5ce7975 100644 --- a/sdk/dotnet/Arms/GetAlertContacts.cs +++ b/sdk/dotnet/Arms/GetAlertContacts.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetAlertContactsArgs? arg /// public static Output Invoke(GetAlertContactsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:arms/getAlertContacts:getAlertContacts", args ?? new GetAlertContactsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Arms Alert Contacts of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.129.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Arms.GetAlertContacts.Invoke(); + /// + /// var nameRegex = AliCloud.Arms.GetAlertContacts.Invoke(new() + /// { + /// NameRegex = "^my-AlertContact", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["armsAlertContactId1"] = ids.Apply(getAlertContactsResult => getAlertContactsResult.Contacts[0]?.Id), + /// ["armsAlertContactId2"] = nameRegex.Apply(getAlertContactsResult => getAlertContactsResult.Contacts[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAlertContactsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:arms/getAlertContacts:getAlertContacts", args ?? new GetAlertContactsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Arms/GetAlertRobots.cs b/sdk/dotnet/Arms/GetAlertRobots.cs index e53d4a6e16..3c34a13cab 100644 --- a/sdk/dotnet/Arms/GetAlertRobots.cs +++ b/sdk/dotnet/Arms/GetAlertRobots.cs @@ -88,6 +88,45 @@ public static Task InvokeAsync(GetAlertRobotsArgs? args = /// public static Output Invoke(GetAlertRobotsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:arms/getAlertRobots:getAlertRobots", args ?? new GetAlertRobotsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Arms Alert Robots of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.237.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = new AliCloud.Arms.AlertRobot("default", new() + /// { + /// AlertRobotName = "my-AlertRobot", + /// RobotType = "wechat", + /// RobotAddr = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=1c704e23", + /// }); + /// + /// var nameRegex = AliCloud.Arms.GetAlertRobots.Invoke(new() + /// { + /// AlertRobotName = @default.AlertRobotName, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["armsAlertRobotId"] = nameRegex.Apply(getAlertRobotsResult => getAlertRobotsResult.Robots[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAlertRobotsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:arms/getAlertRobots:getAlertRobots", args ?? new GetAlertRobotsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Arms/GetDispatchRules.cs b/sdk/dotnet/Arms/GetDispatchRules.cs index 32ec81ff6e..318e93d0f9 100644 --- a/sdk/dotnet/Arms/GetDispatchRules.cs +++ b/sdk/dotnet/Arms/GetDispatchRules.cs @@ -234,6 +234,118 @@ public static Task InvokeAsync(GetDispatchRulesArgs? arg /// public static Output Invoke(GetDispatchRulesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:arms/getDispatchRules:getDispatchRules", args ?? new GetDispatchRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Arms Dispatch Rules of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.136.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = new AliCloud.Arms.AlertContact("default", new() + /// { + /// AlertContactName = "example_value", + /// Email = "example_value@aaa.com", + /// }); + /// + /// var defaultAlertContactGroup = new AliCloud.Arms.AlertContactGroup("default", new() + /// { + /// AlertContactGroupName = "example_value", + /// ContactIds = new[] + /// { + /// @default.Id, + /// }, + /// }); + /// + /// var defaultDispatchRule = new AliCloud.Arms.DispatchRule("default", new() + /// { + /// DispatchRuleName = "example_value", + /// DispatchType = "CREATE_ALERT", + /// GroupRules = new[] + /// { + /// new AliCloud.Arms.Inputs.DispatchRuleGroupRuleArgs + /// { + /// GroupWaitTime = 5, + /// GroupInterval = 15, + /// RepeatInterval = 100, + /// GroupingFields = new[] + /// { + /// "alertname", + /// }, + /// }, + /// }, + /// LabelMatchExpressionGrids = new[] + /// { + /// new AliCloud.Arms.Inputs.DispatchRuleLabelMatchExpressionGridArgs + /// { + /// LabelMatchExpressionGroups = new[] + /// { + /// new AliCloud.Arms.Inputs.DispatchRuleLabelMatchExpressionGridLabelMatchExpressionGroupArgs + /// { + /// LabelMatchExpressions = new[] + /// { + /// new AliCloud.Arms.Inputs.DispatchRuleLabelMatchExpressionGridLabelMatchExpressionGroupLabelMatchExpressionArgs + /// { + /// Key = "_aliyun_arms_involvedObject_kind", + /// Value = "app", + /// Operator = "eq", + /// }, + /// }, + /// }, + /// }, + /// }, + /// }, + /// NotifyRules = new[] + /// { + /// new AliCloud.Arms.Inputs.DispatchRuleNotifyRuleArgs + /// { + /// NotifyObjects = new[] + /// { + /// new AliCloud.Arms.Inputs.DispatchRuleNotifyRuleNotifyObjectArgs + /// { + /// NotifyObjectId = @default.Id, + /// NotifyType = "ARMS_CONTACT", + /// Name = "example_value", + /// }, + /// new AliCloud.Arms.Inputs.DispatchRuleNotifyRuleNotifyObjectArgs + /// { + /// NotifyObjectId = defaultAlertContactGroup.Id, + /// NotifyType = "ARMS_CONTACT_GROUP", + /// Name = "example_value", + /// }, + /// }, + /// NotifyChannels = new[] + /// { + /// "dingTalk", + /// "wechat", + /// }, + /// NotifyStartTime = "10:00", + /// NotifyEndTime = "23:00", + /// }, + /// }, + /// }); + /// + /// var ids = AliCloud.Arms.GetDispatchRules.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["armsDispatchRuleId1"] = ids.Apply(getDispatchRulesResult => getDispatchRulesResult.Rules[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDispatchRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:arms/getDispatchRules:getDispatchRules", args ?? new GetDispatchRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Arms/GetIntegrationExporters.cs b/sdk/dotnet/Arms/GetIntegrationExporters.cs index aa1c28cfdf..a5b4ace138 100644 --- a/sdk/dotnet/Arms/GetIntegrationExporters.cs +++ b/sdk/dotnet/Arms/GetIntegrationExporters.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetIntegrationExpo /// public static Output Invoke(GetIntegrationExportersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:arms/getIntegrationExporters:getIntegrationExporters", args ?? new GetIntegrationExportersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Arms Integration Exporters of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.203.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Arms.GetIntegrationExporters.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// ClusterId = "your_cluster_id", + /// IntegrationType = "kafka", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["armsIntegrationExportersId1"] = ids.Apply(getIntegrationExportersResult => getIntegrationExportersResult.IntegrationExporters[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetIntegrationExportersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:arms/getIntegrationExporters:getIntegrationExporters", args ?? new GetIntegrationExportersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Arms/GetPrometheis.cs b/sdk/dotnet/Arms/GetPrometheis.cs index 8e834b3699..f803e6fe6c 100644 --- a/sdk/dotnet/Arms/GetPrometheis.cs +++ b/sdk/dotnet/Arms/GetPrometheis.cs @@ -148,6 +148,75 @@ public static Task InvokeAsync(GetPrometheisArgs? args = nu /// public static Output Invoke(GetPrometheisInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:arms/getPrometheis:getPrometheis", args ?? new GetPrometheisInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Arms Prometheis of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.203.0. + /// + /// > **DEPRECATED:** This resource has been renamed to alicloud.ecs.EcsDisk from version 1.214.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "tf-example"; + /// var @default = AliCloud.Vpc.GetNetworks.Invoke(new() + /// { + /// NameRegex = "default-NODELETING", + /// }); + /// + /// var defaultGetSwitches = AliCloud.Vpc.GetSwitches.Invoke(new() + /// { + /// VpcId = @default.Apply(getNetworksResult => getNetworksResult.Ids[0]), + /// }); + /// + /// var defaultGetResourceGroups = AliCloud.ResourceManager.GetResourceGroups.Invoke(); + /// + /// var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new() + /// { + /// VpcId = @default.Apply(@default => @default.Apply(getNetworksResult => getNetworksResult.Ids[0])), + /// }); + /// + /// var defaultPrometheus = new AliCloud.Arms.Prometheus("default", new() + /// { + /// ClusterType = "ecs", + /// GrafanaInstanceId = "free", + /// VpcId = @default.Apply(@default => @default.Apply(getNetworksResult => getNetworksResult.Ids[0])), + /// VswitchId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]), + /// SecurityGroupId = defaultSecurityGroup.Id, + /// ClusterName = @default.Apply(@default => $"{name}-{@default.Apply(getNetworksResult => getNetworksResult.Ids[0])}"), + /// ResourceGroupId = defaultGetResourceGroups.Apply(getResourceGroupsResult => getResourceGroupsResult.Groups[1]?.Id), + /// Tags = + /// { + /// { "Created", "TF" }, + /// { "For", "Prometheus" }, + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Arms.GetPrometheis.Invoke(new() + /// { + /// NameRegex = defaultPrometheus.ClusterName, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["armsPrometheisId"] = nameRegex.Apply(getPrometheisResult => getPrometheisResult.Prometheis[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetPrometheisInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:arms/getPrometheis:getPrometheis", args ?? new GetPrometheisInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Arms/GetPrometheus.cs b/sdk/dotnet/Arms/GetPrometheus.cs index f973d16d1a..fc622ef829 100644 --- a/sdk/dotnet/Arms/GetPrometheus.cs +++ b/sdk/dotnet/Arms/GetPrometheus.cs @@ -144,6 +144,73 @@ public static Task InvokeAsync(GetPrometheusArgs? args = nu /// public static Output Invoke(GetPrometheusInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:arms/getPrometheus:getPrometheus", args ?? new GetPrometheusInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Arms Prometheus of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.214.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "tf-example"; + /// var @default = AliCloud.Vpc.GetNetworks.Invoke(new() + /// { + /// NameRegex = "default-NODELETING", + /// }); + /// + /// var defaultGetSwitches = AliCloud.Vpc.GetSwitches.Invoke(new() + /// { + /// VpcId = @default.Apply(getNetworksResult => getNetworksResult.Ids[0]), + /// }); + /// + /// var defaultGetResourceGroups = AliCloud.ResourceManager.GetResourceGroups.Invoke(); + /// + /// var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new() + /// { + /// VpcId = @default.Apply(@default => @default.Apply(getNetworksResult => getNetworksResult.Ids[0])), + /// }); + /// + /// var defaultPrometheus = new AliCloud.Arms.Prometheus("default", new() + /// { + /// ClusterType = "ecs", + /// GrafanaInstanceId = "free", + /// VpcId = @default.Apply(@default => @default.Apply(getNetworksResult => getNetworksResult.Ids[0])), + /// VswitchId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]), + /// SecurityGroupId = defaultSecurityGroup.Id, + /// ClusterName = @default.Apply(@default => $"{name}-{@default.Apply(getNetworksResult => getNetworksResult.Ids[0])}"), + /// ResourceGroupId = defaultGetResourceGroups.Apply(getResourceGroupsResult => getResourceGroupsResult.Groups[1]?.Id), + /// Tags = + /// { + /// { "Created", "TF" }, + /// { "For", "Prometheus" }, + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Arms.GetPrometheus.Invoke(new() + /// { + /// NameRegex = defaultPrometheus.ClusterName, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["armsPrometheusId"] = nameRegex.Apply(getPrometheusResult => getPrometheusResult.Prometheis[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetPrometheusInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:arms/getPrometheus:getPrometheus", args ?? new GetPrometheusInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Arms/GetPrometheusAlertRules.cs b/sdk/dotnet/Arms/GetPrometheusAlertRules.cs index 3f7e5788d4..4d44fb76a7 100644 --- a/sdk/dotnet/Arms/GetPrometheusAlertRules.cs +++ b/sdk/dotnet/Arms/GetPrometheusAlertRules.cs @@ -98,6 +98,50 @@ public static Task InvokeAsync(GetPrometheusAlert /// public static Output Invoke(GetPrometheusAlertRulesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:arms/getPrometheusAlertRules:getPrometheusAlertRules", args ?? new GetPrometheusAlertRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Arms Prometheus Alert Rules of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.136.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Arms.GetPrometheusAlertRules.Invoke(new() + /// { + /// ClusterId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Arms.GetPrometheusAlertRules.Invoke(new() + /// { + /// ClusterId = "example_value", + /// NameRegex = "^my-PrometheusAlertRule", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["armsPrometheusAlertRuleId1"] = ids.Apply(getPrometheusAlertRulesResult => getPrometheusAlertRulesResult.Rules[0]?.Id), + /// ["armsPrometheusAlertRuleId2"] = nameRegex.Apply(getPrometheusAlertRulesResult => getPrometheusAlertRulesResult.Rules[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetPrometheusAlertRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:arms/getPrometheusAlertRules:getPrometheusAlertRules", args ?? new GetPrometheusAlertRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Arms/GetPrometheusMonitorings.cs b/sdk/dotnet/Arms/GetPrometheusMonitorings.cs index 83a235a614..cb1c508058 100644 --- a/sdk/dotnet/Arms/GetPrometheusMonitorings.cs +++ b/sdk/dotnet/Arms/GetPrometheusMonitorings.cs @@ -96,6 +96,49 @@ public static Task InvokeAsync(GetPrometheusMoni /// public static Output Invoke(GetPrometheusMonitoringsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:arms/getPrometheusMonitorings:getPrometheusMonitorings", args ?? new GetPrometheusMonitoringsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Arms Prometheus Monitorings of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.210.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Arms.GetPrometheusMonitorings.Invoke(new() + /// { + /// ClusterId = "your_cluster_id", + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Arms.GetPrometheusMonitorings.Invoke(new() + /// { + /// ClusterId = "your_cluster_id", + /// NameRegex = "tf-example", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["armsPrometheusMonitoringsId1"] = ids.Apply(getPrometheusMonitoringsResult => getPrometheusMonitoringsResult.PrometheusMonitorings[0]?.Id), + /// ["armsPrometheusMonitoringsId2"] = nameRegex.Apply(getPrometheusMonitoringsResult => getPrometheusMonitoringsResult.PrometheusMonitorings[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetPrometheusMonitoringsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:arms/getPrometheusMonitorings:getPrometheusMonitorings", args ?? new GetPrometheusMonitoringsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Arms/GetRemoteWrites.cs b/sdk/dotnet/Arms/GetRemoteWrites.cs index 8b18b096df..1481eb8b0d 100644 --- a/sdk/dotnet/Arms/GetRemoteWrites.cs +++ b/sdk/dotnet/Arms/GetRemoteWrites.cs @@ -100,6 +100,51 @@ public static Task InvokeAsync(GetRemoteWritesArgs args, /// public static Output Invoke(GetRemoteWritesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:arms/getRemoteWrites:getRemoteWrites", args ?? new GetRemoteWritesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Arms Remote Writes of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.204.0. + /// + /// > **DEPRECATED:** This resource has been deprecated since v1.228.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Arms.GetRemoteWrites.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// ClusterId = "your_cluster_id", + /// }); + /// + /// var nameRegex = AliCloud.Arms.GetRemoteWrites.Invoke(new() + /// { + /// NameRegex = "tf-example", + /// ClusterId = "your_cluster_id", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["armsRemoteWritesId1"] = ids.Apply(getRemoteWritesResult => getRemoteWritesResult.RemoteWrites[0]?.Id), + /// ["armsRemoteWritesId2"] = nameRegex.Apply(getRemoteWritesResult => getRemoteWritesResult.RemoteWrites[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRemoteWritesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:arms/getRemoteWrites:getRemoteWrites", args ?? new GetRemoteWritesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BastionHost/GetHostAccounts.cs b/sdk/dotnet/BastionHost/GetHostAccounts.cs index d0c3f7678b..d43e31a48c 100644 --- a/sdk/dotnet/BastionHost/GetHostAccounts.cs +++ b/sdk/dotnet/BastionHost/GetHostAccounts.cs @@ -102,6 +102,52 @@ public static Task InvokeAsync(GetHostAccountsArgs args, /// public static Output Invoke(GetHostAccountsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:bastionhost/getHostAccounts:getHostAccounts", args ?? new GetHostAccountsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Bastionhost Host Accounts of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.135.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.BastionHost.GetHostAccounts.Invoke(new() + /// { + /// HostId = "15", + /// InstanceId = "example_value", + /// Ids = new[] + /// { + /// "1", + /// "2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.BastionHost.GetHostAccounts.Invoke(new() + /// { + /// HostId = "15", + /// InstanceId = "example_value", + /// NameRegex = "^my-HostAccount", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["bastionhostHostAccountId1"] = ids.Apply(getHostAccountsResult => getHostAccountsResult.Accounts[0]?.Id), + /// ["bastionhostHostAccountId2"] = nameRegex.Apply(getHostAccountsResult => getHostAccountsResult.Accounts[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetHostAccountsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:bastionhost/getHostAccounts:getHostAccounts", args ?? new GetHostAccountsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BastionHost/GetHostGroups.cs b/sdk/dotnet/BastionHost/GetHostGroups.cs index eed69e2e17..8b40511335 100644 --- a/sdk/dotnet/BastionHost/GetHostGroups.cs +++ b/sdk/dotnet/BastionHost/GetHostGroups.cs @@ -98,6 +98,50 @@ public static Task InvokeAsync(GetHostGroupsArgs args, Invo /// public static Output Invoke(GetHostGroupsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:bastionhost/getHostGroups:getHostGroups", args ?? new GetHostGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Bastionhost Host Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.134.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.BastionHost.GetHostGroups.Invoke(new() + /// { + /// InstanceId = "bastionhost-cn-tl3xxxxxxx", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.BastionHost.GetHostGroups.Invoke(new() + /// { + /// InstanceId = "bastionhost-cn-tl3xxxxxxx", + /// NameRegex = "^my-HostGroup", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["bastionhostHostGroupId1"] = ids.Apply(getHostGroupsResult => getHostGroupsResult.Groups[0]?.Id), + /// ["bastionhostHostGroupId2"] = nameRegex.Apply(getHostGroupsResult => getHostGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetHostGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:bastionhost/getHostGroups:getHostGroups", args ?? new GetHostGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BastionHost/GetHostShareKeys.cs b/sdk/dotnet/BastionHost/GetHostShareKeys.cs index 84de045f6f..7f7d5c48e7 100644 --- a/sdk/dotnet/BastionHost/GetHostShareKeys.cs +++ b/sdk/dotnet/BastionHost/GetHostShareKeys.cs @@ -98,6 +98,50 @@ public static Task InvokeAsync(GetHostShareKeysArgs args /// public static Output Invoke(GetHostShareKeysInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:bastionhost/getHostShareKeys:getHostShareKeys", args ?? new GetHostShareKeysInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Bastionhost Host Share Keys of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.165.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.BastionHost.GetHostShareKeys.Invoke(new() + /// { + /// InstanceId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.BastionHost.GetHostShareKeys.Invoke(new() + /// { + /// InstanceId = "example_value", + /// NameRegex = "^my-HostShareKey", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["bastionhostHostShareKeyId1"] = ids.Apply(getHostShareKeysResult => getHostShareKeysResult.Keys[0]?.Id), + /// ["bastionhostHostShareKeyId2"] = nameRegex.Apply(getHostShareKeysResult => getHostShareKeysResult.Keys[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetHostShareKeysInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:bastionhost/getHostShareKeys:getHostShareKeys", args ?? new GetHostShareKeysInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BastionHost/GetHosts.cs b/sdk/dotnet/BastionHost/GetHosts.cs index 0b0d6c0a55..eb10c1f2de 100644 --- a/sdk/dotnet/BastionHost/GetHosts.cs +++ b/sdk/dotnet/BastionHost/GetHosts.cs @@ -98,6 +98,50 @@ public static Task InvokeAsync(GetHostsArgs args, InvokeOptions? /// public static Output Invoke(GetHostsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:bastionhost/getHosts:getHosts", args ?? new GetHostsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Bastionhost Hosts of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.135.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.BastionHost.GetHosts.Invoke(new() + /// { + /// InstanceId = "example_value", + /// Ids = new[] + /// { + /// "1", + /// "2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.BastionHost.GetHosts.Invoke(new() + /// { + /// InstanceId = "example_value", + /// NameRegex = "^my-Host", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["bastionhostHostId1"] = ids.Apply(getHostsResult => getHostsResult.Hosts[0]?.Id), + /// ["bastionhostHostId2"] = nameRegex.Apply(getHostsResult => getHostsResult.Hosts[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetHostsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:bastionhost/getHosts:getHosts", args ?? new GetHostsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BastionHost/GetInstances.cs b/sdk/dotnet/BastionHost/GetInstances.cs index d42e2f311d..9ee89f473a 100644 --- a/sdk/dotnet/BastionHost/GetInstances.cs +++ b/sdk/dotnet/BastionHost/GetInstances.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:bastionhost/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// > **NOTE:** From the version 1.132.0, the data source has been renamed to `alicloud.bastionhost.getInstances`. + /// + /// This data source provides a list of cloud Bastionhost instances in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in 1.63.0+ . + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var instance = AliCloud.BastionHost.GetInstances.Invoke(new() + /// { + /// DescriptionRegex = "^bastionhost", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["instance"] = instanceAlicloudBastionhostInstances.Select(__item => __item.Id).ToList(), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:bastionhost/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BastionHost/GetUserGroups.cs b/sdk/dotnet/BastionHost/GetUserGroups.cs index 9089d68f6e..08723897d4 100644 --- a/sdk/dotnet/BastionHost/GetUserGroups.cs +++ b/sdk/dotnet/BastionHost/GetUserGroups.cs @@ -98,6 +98,50 @@ public static Task InvokeAsync(GetUserGroupsArgs args, Invo /// public static Output Invoke(GetUserGroupsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:bastionhost/getUserGroups:getUserGroups", args ?? new GetUserGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Bastionhost User Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.132.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.BastionHost.GetUserGroups.Invoke(new() + /// { + /// InstanceId = "bastionhost-cn-xxxx", + /// Ids = new[] + /// { + /// "1", + /// "2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.BastionHost.GetUserGroups.Invoke(new() + /// { + /// InstanceId = "bastionhost-cn-xxxx", + /// NameRegex = "^my-UserGroup", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["bastionhostUserGroupId1"] = ids.Apply(getUserGroupsResult => getUserGroupsResult.Groups[0]?.Id), + /// ["bastionhostUserGroupId2"] = nameRegex.Apply(getUserGroupsResult => getUserGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetUserGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:bastionhost/getUserGroups:getUserGroups", args ?? new GetUserGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BastionHost/GetUsers.cs b/sdk/dotnet/BastionHost/GetUsers.cs index 2d56daa4c8..41e16d0ae9 100644 --- a/sdk/dotnet/BastionHost/GetUsers.cs +++ b/sdk/dotnet/BastionHost/GetUsers.cs @@ -98,6 +98,50 @@ public static Task InvokeAsync(GetUsersArgs args, InvokeOptions? /// public static Output Invoke(GetUsersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:bastionhost/getUsers:getUsers", args ?? new GetUsersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Bastionhost Users of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.133.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.BastionHost.GetUsers.Invoke(new() + /// { + /// InstanceId = "example_value", + /// Ids = new[] + /// { + /// "1", + /// "10", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.BastionHost.GetUsers.Invoke(new() + /// { + /// InstanceId = "example_value", + /// NameRegex = "^my-User", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["bastionhostUserId1"] = ids.Apply(getUsersResult => getUsersResult.Users[0]?.Id), + /// ["bastionhostUserId2"] = nameRegex.Apply(getUsersResult => getUsersResult.Users[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetUsersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:bastionhost/getUsers:getUsers", args ?? new GetUsersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Bp/GetStudioApplications.cs b/sdk/dotnet/Bp/GetStudioApplications.cs index 80fe1b5f34..b44c96b613 100644 --- a/sdk/dotnet/Bp/GetStudioApplications.cs +++ b/sdk/dotnet/Bp/GetStudioApplications.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetStudioApplication /// public static Output Invoke(GetStudioApplicationsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:bp/getStudioApplications:getStudioApplications", args ?? new GetStudioApplicationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cloud Architect Design Tools (BPStudio) Applications of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.192.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Bp.GetStudioApplications.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Bp.GetStudioApplications.Invoke(new() + /// { + /// NameRegex = "^my-Application", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["bpStudioApplicationId1"] = ids.Apply(getStudioApplicationsResult => getStudioApplicationsResult.Applications[0]?.Id), + /// ["bpStudioApplicationId2"] = nameRegex.Apply(getStudioApplicationsResult => getStudioApplicationsResult.Applications[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetStudioApplicationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:bp/getStudioApplications:getStudioApplications", args ?? new GetStudioApplicationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Brain/GetIndustrialPidLoops.cs b/sdk/dotnet/Brain/GetIndustrialPidLoops.cs index 76355e9287..7343e6736a 100644 --- a/sdk/dotnet/Brain/GetIndustrialPidLoops.cs +++ b/sdk/dotnet/Brain/GetIndustrialPidLoops.cs @@ -88,6 +88,45 @@ public static Task InvokeAsync(GetIndustrialPidLoop /// public static Output Invoke(GetIndustrialPidLoopsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:brain/getIndustrialPidLoops:getIndustrialPidLoops", args ?? new GetIndustrialPidLoopsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Brain Industrial Pid Loops of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.117.0. + /// + /// > **DEPRECATED:** This data source has been deprecated from version `1.229.1`. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Brain.GetIndustrialPidLoops.Invoke(new() + /// { + /// PidProjectId = "856c6b8f-ca63-40a4-xxxx-xxxx", + /// Ids = new[] + /// { + /// "742a3d4e-d8b0-47c8-xxxx-xxxx", + /// }, + /// NameRegex = "tf-testACC", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstBrainIndustrialPidLoopId"] = example.Apply(getIndustrialPidLoopsResult => getIndustrialPidLoopsResult.Loops[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetIndustrialPidLoopsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:brain/getIndustrialPidLoops:getIndustrialPidLoops", args ?? new GetIndustrialPidLoopsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Brain/GetIndustrialPidOrganizations.cs b/sdk/dotnet/Brain/GetIndustrialPidOrganizations.cs index 19c4b7cb0e..c9875c9050 100644 --- a/sdk/dotnet/Brain/GetIndustrialPidOrganizations.cs +++ b/sdk/dotnet/Brain/GetIndustrialPidOrganizations.cs @@ -86,6 +86,44 @@ public static Task InvokeAsync(GetIndustria /// public static Output Invoke(GetIndustrialPidOrganizationsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:brain/getIndustrialPidOrganizations:getIndustrialPidOrganizations", args ?? new GetIndustrialPidOrganizationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Brain Industrial Pid Organizations of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.113.0. + /// + /// > **DEPRECATED:** This data source has been deprecated from version `1.229.1`. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Brain.GetIndustrialPidOrganizations.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "3e74e684-cbb5-xxxx", + /// }, + /// NameRegex = "tf-testAcc", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstBrainIndustrialPidOrganizationId"] = example.Apply(getIndustrialPidOrganizationsResult => getIndustrialPidOrganizationsResult.Organizations[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetIndustrialPidOrganizationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:brain/getIndustrialPidOrganizations:getIndustrialPidOrganizations", args ?? new GetIndustrialPidOrganizationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Brain/GetIndustrialPidProjects.cs b/sdk/dotnet/Brain/GetIndustrialPidProjects.cs index a2573452f3..e4ec045381 100644 --- a/sdk/dotnet/Brain/GetIndustrialPidProjects.cs +++ b/sdk/dotnet/Brain/GetIndustrialPidProjects.cs @@ -86,6 +86,44 @@ public static Task InvokeAsync(GetIndustrialPidP /// public static Output Invoke(GetIndustrialPidProjectsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:brain/getIndustrialPidProjects:getIndustrialPidProjects", args ?? new GetIndustrialPidProjectsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Brain Industrial Pid Projects of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.113.0. + /// + /// > **DEPRECATED:** This data source has been deprecated from version `1.229.1`. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Brain.GetIndustrialPidProjects.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "3e74e684-cbb5-xxxx", + /// }, + /// NameRegex = "tf-testAcc", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstBrainIndustrialPidProjectId"] = example.Apply(getIndustrialPidProjectsResult => getIndustrialPidProjectsResult.Projects[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetIndustrialPidProjectsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:brain/getIndustrialPidProjects:getIndustrialPidProjects", args ?? new GetIndustrialPidProjectsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Brain/GetIndustrialSerice.cs b/sdk/dotnet/Brain/GetIndustrialSerice.cs index f19cb98c0f..6b384bc8d2 100644 --- a/sdk/dotnet/Brain/GetIndustrialSerice.cs +++ b/sdk/dotnet/Brain/GetIndustrialSerice.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetIndustrialSericeArg /// public static Output Invoke(GetIndustrialSericeInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:brain/getIndustrialSerice:getIndustrialSerice", args ?? new GetIndustrialSericeInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open Brain Industrial service automatically. If the service has been opened, it will return opened. + /// + /// > **NOTE:** Available since v1.115.0. + /// + /// > **NOTE:** The Brain Industrial service is not support in the international site. + /// + /// > **DEPRECATED:** This data source has been deprecated from version `1.229.1`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.Brain.GetIndustrialSerice.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetIndustrialSericeInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:brain/getIndustrialSerice:getIndustrialSerice", args ?? new GetIndustrialSericeInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Bss/GetOpenApiPricingModules.cs b/sdk/dotnet/Bss/GetOpenApiPricingModules.cs index 534087f5dc..fa354cb94f 100644 --- a/sdk/dotnet/Bss/GetOpenApiPricingModules.cs +++ b/sdk/dotnet/Bss/GetOpenApiPricingModules.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetOpenApiPricing /// public static Output Invoke(GetOpenApiPricingModulesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:bss/getOpenApiPricingModules:getOpenApiPricingModules", args ?? new GetOpenApiPricingModulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Bss Open Api Pricing Module available to the user.[What is Pricing Module](https://www.alibabacloud.com/help/en/boa/latest/api-bssopenapi-2017-12-14-describepricingmodule) + /// + /// > **NOTE:** Available since v1.195.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Bss.GetOpenApiPricingModules.Invoke(new() + /// { + /// NameRegex = "国内月均日峰值带宽", + /// ProductCode = "cdn", + /// ProductType = "CDN", + /// SubscriptionType = "PayAsYouGo", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudBssOpenapiPricingModuleExampleId"] = @default.Apply(@default => @default.Apply(getOpenApiPricingModulesResult => getOpenApiPricingModulesResult.Modules[0]?.Code)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetOpenApiPricingModulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:bss/getOpenApiPricingModules:getOpenApiPricingModules", args ?? new GetOpenApiPricingModulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Bss/GetOpenApiProducts.cs b/sdk/dotnet/Bss/GetOpenApiProducts.cs index 4cd7a41b55..4a037f2bbc 100644 --- a/sdk/dotnet/Bss/GetOpenApiProducts.cs +++ b/sdk/dotnet/Bss/GetOpenApiProducts.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetOpenApiProductsArgs? /// public static Output Invoke(GetOpenApiProductsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:bss/getOpenApiProducts:getOpenApiProducts", args ?? new GetOpenApiProductsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Bss Open Api Product available to the user.[What is Product](https://www.alibabacloud.com/help/en/boa/latest/api-bssopenapi-2017-12-14-queryproductlist) + /// + /// > **NOTE:** Available since v1.195.0. + /// + public static Output Invoke(GetOpenApiProductsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:bss/getOpenApiProducts:getOpenApiProducts", args ?? new GetOpenApiProductsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CR/GetChains.cs b/sdk/dotnet/CR/GetChains.cs index f2b77905a1..92ff14445f 100644 --- a/sdk/dotnet/CR/GetChains.cs +++ b/sdk/dotnet/CR/GetChains.cs @@ -102,6 +102,52 @@ public static Task InvokeAsync(GetChainsArgs args, InvokeOption /// public static Output Invoke(GetChainsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cr/getChains:getChains", args ?? new GetChainsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cr Chains of the current Alibaba Cloud user. + /// + /// For information about CR Chains and how to use it, see [What is Chain](https://www.alibabacloud.com/help/en/doc-detail/357821.html). + /// + /// > **NOTE:** Available in v1.161.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.CR.GetChains.Invoke(new() + /// { + /// InstanceId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.CR.GetChains.Invoke(new() + /// { + /// InstanceId = "example_value", + /// NameRegex = "^my-Chain", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["crChainId1"] = ids.Apply(getChainsResult => getChainsResult.Chains[0]?.Id), + /// ["crChainId2"] = nameRegex.Apply(getChainsResult => getChainsResult.Chains[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetChainsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cr/getChains:getChains", args ?? new GetChainsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CR/GetChartNamespaces.cs b/sdk/dotnet/CR/GetChartNamespaces.cs index 2b102fda1a..551628e6d2 100644 --- a/sdk/dotnet/CR/GetChartNamespaces.cs +++ b/sdk/dotnet/CR/GetChartNamespaces.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetChartNamespacesArgs /// public static Output Invoke(GetChartNamespacesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cr/getChartNamespaces:getChartNamespaces", args ?? new GetChartNamespacesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cr Chart Namespaces of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.149.0+. + /// + public static Output Invoke(GetChartNamespacesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cr/getChartNamespaces:getChartNamespaces", args ?? new GetChartNamespacesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CR/GetChartRepositories.cs b/sdk/dotnet/CR/GetChartRepositories.cs index e67d8f893a..3185969620 100644 --- a/sdk/dotnet/CR/GetChartRepositories.cs +++ b/sdk/dotnet/CR/GetChartRepositories.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetChartRepositoriesA /// public static Output Invoke(GetChartRepositoriesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cr/getChartRepositories:getChartRepositories", args ?? new GetChartRepositoriesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cr Chart Repositories of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.149.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.CR.GetChartRepositories.Invoke(new() + /// { + /// InstanceId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["crChartRepositoryId1"] = @default.Ids[0], + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetChartRepositoriesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cr/getChartRepositories:getChartRepositories", args ?? new GetChartRepositoriesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CR/GetEndpointAclPolicies.cs b/sdk/dotnet/CR/GetEndpointAclPolicies.cs index 70a4879577..6300ce1c4b 100644 --- a/sdk/dotnet/CR/GetEndpointAclPolicies.cs +++ b/sdk/dotnet/CR/GetEndpointAclPolicies.cs @@ -86,6 +86,44 @@ public static Task InvokeAsync(GetEndpointAclPolic /// public static Output Invoke(GetEndpointAclPoliciesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cr/getEndpointAclPolicies:getEndpointAclPolicies", args ?? new GetEndpointAclPoliciesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cr Endpoint Acl Policies of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.139.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.CR.GetEndpointAclPolicies.Invoke(new() + /// { + /// InstanceId = "example_value", + /// EndpointType = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["crEndpointAclPolicyId1"] = ids.Apply(getEndpointAclPoliciesResult => getEndpointAclPoliciesResult.Policies[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEndpointAclPoliciesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cr/getEndpointAclPolicies:getEndpointAclPolicies", args ?? new GetEndpointAclPoliciesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CR/GetEndpointAclService.cs b/sdk/dotnet/CR/GetEndpointAclService.cs index 1fa4058a1c..e6036fc8bd 100644 --- a/sdk/dotnet/CR/GetEndpointAclService.cs +++ b/sdk/dotnet/CR/GetEndpointAclService.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetEndpointAclServic /// public static Output Invoke(GetEndpointAclServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cr/getEndpointAclService:getEndpointAclService", args ?? new GetEndpointAclServiceInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the CR Endpoint Acl Service of the current Alibaba Cloud user. + /// + /// For information about Event Bridge and how to use it, see [What is CR Endpoint Acl](https://www.alibabacloud.com/help/en/doc-detail/142246.htm). + /// + /// > **NOTE:** Available in v1.139.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.CR.GetEndpointAclService.Invoke(new() + /// { + /// EndpointType = "internet", + /// Enable = true, + /// InstanceId = "example_id", + /// ModuleName = "Registry", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetEndpointAclServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cr/getEndpointAclService:getEndpointAclService", args ?? new GetEndpointAclServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CR/GetNamespaces.cs b/sdk/dotnet/CR/GetNamespaces.cs index 959b6ce1e6..36b88dfaee 100644 --- a/sdk/dotnet/CR/GetNamespaces.cs +++ b/sdk/dotnet/CR/GetNamespaces.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetNamespacesArgs? args = nu /// public static Output Invoke(GetNamespacesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cr/getNamespaces:getNamespaces", args ?? new GetNamespacesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list Container Registry namespaces on Alibaba Cloud. + /// + /// > **NOTE:** Available in v1.35.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var myNamespaces = AliCloud.CR.GetNamespaces.Invoke(new() + /// { + /// NameRegex = "my-namespace", + /// OutputFile = "my-namespace-json", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["output"] = myNamespaces.Apply(getNamespacesResult => getNamespacesResult.Namespaces), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetNamespacesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cr/getNamespaces:getNamespaces", args ?? new GetNamespacesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CR/GetRepos.cs b/sdk/dotnet/CR/GetRepos.cs index ab5a065ede..48f78d4c34 100644 --- a/sdk/dotnet/CR/GetRepos.cs +++ b/sdk/dotnet/CR/GetRepos.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetReposArgs? args = null, Invoke /// public static Output Invoke(GetReposInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cr/getRepos:getRepos", args ?? new GetReposInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list Container Registry repositories on Alibaba Cloud. + /// + /// > **NOTE:** Available in v1.35.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var myRepos = AliCloud.CR.GetRepos.Invoke(new() + /// { + /// NameRegex = "my-repos", + /// OutputFile = "my-repo-json", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["output"] = myRepos.Apply(getReposResult => getReposResult.Repos), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetReposInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cr/getRepos:getRepos", args ?? new GetReposInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CR/GetService.cs b/sdk/dotnet/CR/GetService.cs index ab49bf94e4..9ef138847a 100644 --- a/sdk/dotnet/CR/GetService.cs +++ b/sdk/dotnet/CR/GetService.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetServiceArgs args, InvokeOpti /// public static Output Invoke(GetServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cr/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open Container Registry (CR) service automatically. If the service has been opened, it will return opened. + /// + /// For information about Container Registry (CR) and how to use it, see [What is Container Registry (CR)](https://www.alibabacloud.com/help/en/doc-detail/142759.htm). + /// + /// > **NOTE:** Available in v1.116.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.CR.GetService.Invoke(new() + /// { + /// Enable = "On", + /// Password = "1111aaaa", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cr/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CR/GetVpcEndpointLinkedVpcs.cs b/sdk/dotnet/CR/GetVpcEndpointLinkedVpcs.cs index d27a4f7a5e..06e0b7d630 100644 --- a/sdk/dotnet/CR/GetVpcEndpointLinkedVpcs.cs +++ b/sdk/dotnet/CR/GetVpcEndpointLinkedVpcs.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetVpcEndpointLin /// public static Output Invoke(GetVpcEndpointLinkedVpcsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cr/getVpcEndpointLinkedVpcs:getVpcEndpointLinkedVpcs", args ?? new GetVpcEndpointLinkedVpcsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the CR Vpc Endpoint Linked Vpcs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.199.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.CR.GetVpcEndpointLinkedVpcs.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// InstanceId = "your_cr_instance_id", + /// ModuleName = "Registry", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudCrVpcEndpointLinkedVpcsId1"] = ids.Apply(getVpcEndpointLinkedVpcsResult => getVpcEndpointLinkedVpcsResult.VpcEndpointLinkedVpcs[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetVpcEndpointLinkedVpcsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cr/getVpcEndpointLinkedVpcs:getVpcEndpointLinkedVpcs", args ?? new GetVpcEndpointLinkedVpcsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CS/GetAckService.cs b/sdk/dotnet/CS/GetAckService.cs index cce45e5404..a5a3eebc2c 100644 --- a/sdk/dotnet/CS/GetAckService.cs +++ b/sdk/dotnet/CS/GetAckService.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetAckServiceArgs args, Invo /// public static Output Invoke(GetAckServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getAckService:getAckService", args ?? new GetAckServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open Container Service (CS) service automatically. If the service has been opened, it will return opened. + /// + /// For information about Container Service (CS) and how to use it, see [What is Container Service (CS)](https://www.alibabacloud.com/help/en/product/85222.htm). + /// + /// > **NOTE:** Available in v1.113.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.CS.GetAckService.Invoke(new() + /// { + /// Enable = "On", + /// Type = "propayasgo", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAckServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getAckService:getAckService", args ?? new GetAckServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CS/GetClusterCredential.cs b/sdk/dotnet/CS/GetClusterCredential.cs index dbcff84f0e..a800274356 100644 --- a/sdk/dotnet/CS/GetClusterCredential.cs +++ b/sdk/dotnet/CS/GetClusterCredential.cs @@ -30,6 +30,16 @@ public static Task InvokeAsync(GetClusterCredentialA /// public static Output Invoke(GetClusterCredentialInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getClusterCredential:getClusterCredential", args ?? new GetClusterCredentialInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Container Service cluster credential on Alibaba Cloud. + /// + /// > **NOTE:** Available since v1.187.0 + /// + /// > **NOTE:** This datasource can be used on all kinds of ACK clusters, including managed clusters, imported kubernetes clusters, serverless clusters and edge clusters. Please make sure that the target cluster is not in the failed state before using this datasource, since the api server of clusters in the failed state cannot be accessed. + /// + public static Output Invoke(GetClusterCredentialInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getClusterCredential:getClusterCredential", args ?? new GetClusterCredentialInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CS/GetEdgeKubernetesClusters.cs b/sdk/dotnet/CS/GetEdgeKubernetesClusters.cs index 52437da723..a46a46dff1 100644 --- a/sdk/dotnet/CS/GetEdgeKubernetesClusters.cs +++ b/sdk/dotnet/CS/GetEdgeKubernetesClusters.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetEdgeKubernete /// public static Output Invoke(GetEdgeKubernetesClustersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getEdgeKubernetesClusters:getEdgeKubernetesClusters", args ?? new GetEdgeKubernetesClustersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list Container Service Edge Kubernetes Clusters on Alibaba Cloud. + /// + /// > **NOTE:** Available in v1.103.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var k8sClusters = AliCloud.CS.GetEdgeKubernetesClusters.Invoke(new() + /// { + /// NameRegex = "my-first-k8s", + /// OutputFile = "my-first-k8s-json", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["output"] = k8sClusters.Apply(getEdgeKubernetesClustersResult => getEdgeKubernetesClustersResult.Clusters), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEdgeKubernetesClustersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getEdgeKubernetesClusters:getEdgeKubernetesClusters", args ?? new GetEdgeKubernetesClustersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CS/GetKubernetesAddonMetadata.cs b/sdk/dotnet/CS/GetKubernetesAddonMetadata.cs index 70076e10df..f2698c16e8 100644 --- a/sdk/dotnet/CS/GetKubernetesAddonMetadata.cs +++ b/sdk/dotnet/CS/GetKubernetesAddonMetadata.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetKubernetesAd /// public static Output Invoke(GetKubernetesAddonMetadataInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getKubernetesAddonMetadata:getKubernetesAddonMetadata", args ?? new GetKubernetesAddonMetadataInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides metadata of kubernetes cluster addons. + /// + /// > **NOTE:** Available in 1.166.0+. + /// + public static Output Invoke(GetKubernetesAddonMetadataInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getKubernetesAddonMetadata:getKubernetesAddonMetadata", args ?? new GetKubernetesAddonMetadataInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CS/GetKubernetesAddons.cs b/sdk/dotnet/CS/GetKubernetesAddons.cs index 22a660c2bf..08eec8a1b3 100644 --- a/sdk/dotnet/CS/GetKubernetesAddons.cs +++ b/sdk/dotnet/CS/GetKubernetesAddons.cs @@ -28,6 +28,15 @@ public static Task InvokeAsync(GetKubernetesAddonsArg /// public static Output Invoke(GetKubernetesAddonsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getKubernetesAddons:getKubernetesAddons", args ?? new GetKubernetesAddonsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of available addons that the cluster can install. + /// + /// > **NOTE:** Available since v1.150.0. + /// > **NOTE:** From version v1.166.0, support for returning custom configuration of kubernetes cluster addon. + /// + public static Output Invoke(GetKubernetesAddonsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getKubernetesAddons:getKubernetesAddons", args ?? new GetKubernetesAddonsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CS/GetKubernetesClusters.cs b/sdk/dotnet/CS/GetKubernetesClusters.cs index 8e0a72a12e..1b690ef65c 100644 --- a/sdk/dotnet/CS/GetKubernetesClusters.cs +++ b/sdk/dotnet/CS/GetKubernetesClusters.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetKubernetesCluster /// public static Output Invoke(GetKubernetesClustersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getKubernetesClusters:getKubernetesClusters", args ?? new GetKubernetesClustersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list Container Service Kubernetes Clusters on Alibaba Cloud. + /// + /// > **NOTE:** Available since v1.34.0+. + /// + /// > **NOTE:** From version 1.177.0+, We supported batch export of clusters' kube config information by `kube_config_file_prefix`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var k8sClusters = AliCloud.CS.GetKubernetesClusters.Invoke(new() + /// { + /// NameRegex = "my-first-k8s", + /// OutputFile = "my-first-k8s-json", + /// KubeConfigFilePrefix = "~/.kube/k8s", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["output"] = k8sClusters.Apply(getKubernetesClustersResult => getKubernetesClustersResult.Clusters), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetKubernetesClustersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getKubernetesClusters:getKubernetesClusters", args ?? new GetKubernetesClustersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CS/GetKubernetesPermission.cs b/sdk/dotnet/CS/GetKubernetesPermission.cs index 14a35bd3ed..0c6c9cc4aa 100644 --- a/sdk/dotnet/CS/GetKubernetesPermission.cs +++ b/sdk/dotnet/CS/GetKubernetesPermission.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetKubernetesPermi /// public static Output Invoke(GetKubernetesPermissionInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getKubernetesPermission:getKubernetesPermission", args ?? new GetKubernetesPermissionInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of Ram user permissions. + /// + /// > **NOTE:** Available since v1.122.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var @default = AliCloud.Ram.GetUsers.Invoke(); + /// + /// // permissions + /// var defaultGetKubernetesPermission = AliCloud.CS.GetKubernetesPermission.Invoke(new() + /// { + /// Uid = @default.Apply(getUsersResult => getUsersResult.Users[0]?.Id), + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["permissions"] = defaultGetKubernetesPermission.Apply(getKubernetesPermissionResult => getKubernetesPermissionResult.Permissions), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetKubernetesPermissionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getKubernetesPermission:getKubernetesPermission", args ?? new GetKubernetesPermissionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CS/GetKubernetesVersion.cs b/sdk/dotnet/CS/GetKubernetesVersion.cs index 69917a5f26..0741bdf869 100644 --- a/sdk/dotnet/CS/GetKubernetesVersion.cs +++ b/sdk/dotnet/CS/GetKubernetesVersion.cs @@ -214,6 +214,108 @@ public static Task InvokeAsync(GetKubernetesVersionA /// public static Output Invoke(GetKubernetesVersionInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getKubernetesVersion:getKubernetesVersion", args ?? new GetKubernetesVersionInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the details of the Kubernetes version supported by ACK. + /// + /// > **NOTE:** Available in 1.170.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Query the managed kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client. + /// var @default = AliCloud.CS.GetKubernetesVersion.Invoke(new() + /// { + /// ClusterType = "ManagedKubernetes", + /// KubernetesVersion = "1.22.3-aliyun.1", + /// Profile = "Default", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["metadata"] = @default.Apply(@default => @default.Apply(getKubernetesVersionResult => getKubernetesVersionResult.Metadatas)), + /// }; + /// }); + /// ``` + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Query the kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client. + /// var @default = AliCloud.CS.GetKubernetesVersion.Invoke(new() + /// { + /// ClusterType = "Kubernetes", + /// KubernetesVersion = "1.22.3-aliyun.1", + /// Profile = "Default", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["metadata"] = @default.Apply(@default => @default.Apply(getKubernetesVersionResult => getKubernetesVersionResult.Metadatas)), + /// }; + /// }); + /// ``` + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Query the serverless kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client. + /// var @default = AliCloud.CS.GetKubernetesVersion.Invoke(new() + /// { + /// ClusterType = "ManagedKubernetes", + /// KubernetesVersion = "1.22.3-aliyun.1", + /// Profile = "Serverless", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["metadata"] = @default.Apply(@default => @default.Apply(getKubernetesVersionResult => getKubernetesVersionResult.Metadatas)), + /// }; + /// }); + /// ``` + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Query the edge kubernetes cluster metadata of version 1.20.11-aliyunedge.1 in the region specified by the client. + /// var @default = AliCloud.CS.GetKubernetesVersion.Invoke(new() + /// { + /// ClusterType = "ManagedKubernetes", + /// KubernetesVersion = "1.20.11-aliyunedge.1", + /// Profile = "Edge", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["metadata"] = @default.Apply(@default => @default.Apply(getKubernetesVersionResult => getKubernetesVersionResult.Metadatas)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetKubernetesVersionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getKubernetesVersion:getKubernetesVersion", args ?? new GetKubernetesVersionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CS/GetManagedKubernetesClusters.cs b/sdk/dotnet/CS/GetManagedKubernetesClusters.cs index 0e1c72ecb6..749b70da12 100644 --- a/sdk/dotnet/CS/GetManagedKubernetesClusters.cs +++ b/sdk/dotnet/CS/GetManagedKubernetesClusters.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetManagedKub /// public static Output Invoke(GetManagedKubernetesClustersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getManagedKubernetesClusters:getManagedKubernetesClusters", args ?? new GetManagedKubernetesClustersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list Container Service Managed Kubernetes Clusters on Alibaba Cloud. + /// + /// > **NOTE:** Available in v1.35.0+ + /// + /// > **NOTE:** From version 1.177.0+, We supported batch export of clusters' kube config information by `kube_config_file_prefix`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var k8sClusters = AliCloud.CS.GetManagedKubernetesClusters.Invoke(new() + /// { + /// NameRegex = "my-first-k8s", + /// OutputFile = "my-first-k8s-json", + /// KubeConfigFilePrefix = "~/.kube/managed", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["output"] = k8sClusters.Apply(getManagedKubernetesClustersResult => getManagedKubernetesClustersResult.Clusters), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetManagedKubernetesClustersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getManagedKubernetesClusters:getManagedKubernetesClusters", args ?? new GetManagedKubernetesClustersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CS/GetRegistryEnterpriseInstances.cs b/sdk/dotnet/CS/GetRegistryEnterpriseInstances.cs index 1d9fda6a5e..30b5f40dda 100644 --- a/sdk/dotnet/CS/GetRegistryEnterpriseInstances.cs +++ b/sdk/dotnet/CS/GetRegistryEnterpriseInstances.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetRegistry /// public static Output Invoke(GetRegistryEnterpriseInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getRegistryEnterpriseInstances:getRegistryEnterpriseInstances", args ?? new GetRegistryEnterpriseInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list Container Registry Enterprise Edition instances on Alibaba Cloud. + /// + /// > **NOTE:** Available in v1.86.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var myInstances = AliCloud.CS.GetRegistryEnterpriseInstances.Invoke(new() + /// { + /// NameRegex = "my-instances", + /// OutputFile = "my-instances-json", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["output"] = myInstances.Apply(getRegistryEnterpriseInstancesResult => getRegistryEnterpriseInstancesResult.Instances), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRegistryEnterpriseInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getRegistryEnterpriseInstances:getRegistryEnterpriseInstances", args ?? new GetRegistryEnterpriseInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CS/GetRegistryEnterpriseNamespaces.cs b/sdk/dotnet/CS/GetRegistryEnterpriseNamespaces.cs index 4479485285..6ee0c096c0 100644 --- a/sdk/dotnet/CS/GetRegistryEnterpriseNamespaces.cs +++ b/sdk/dotnet/CS/GetRegistryEnterpriseNamespaces.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetRegistr /// public static Output Invoke(GetRegistryEnterpriseNamespacesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getRegistryEnterpriseNamespaces:getRegistryEnterpriseNamespaces", args ?? new GetRegistryEnterpriseNamespacesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list Container Registry Enterprise Edition namespaces on Alibaba Cloud. + /// + /// > **NOTE:** Available in v1.86.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var myNamespaces = AliCloud.CS.GetRegistryEnterpriseNamespaces.Invoke(new() + /// { + /// InstanceId = "cri-xxx", + /// NameRegex = "my-namespace", + /// OutputFile = "my-namespace-json", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["output"] = myNamespaces.Apply(getRegistryEnterpriseNamespacesResult => getRegistryEnterpriseNamespacesResult.Namespaces), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRegistryEnterpriseNamespacesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getRegistryEnterpriseNamespaces:getRegistryEnterpriseNamespaces", args ?? new GetRegistryEnterpriseNamespacesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CS/GetRegistryEnterpriseRepos.cs b/sdk/dotnet/CS/GetRegistryEnterpriseRepos.cs index 3021227f85..9bde627fdd 100644 --- a/sdk/dotnet/CS/GetRegistryEnterpriseRepos.cs +++ b/sdk/dotnet/CS/GetRegistryEnterpriseRepos.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetRegistryEnte /// public static Output Invoke(GetRegistryEnterpriseReposInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getRegistryEnterpriseRepos:getRegistryEnterpriseRepos", args ?? new GetRegistryEnterpriseReposInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list Container Registry Enterprise Edition repositories on Alibaba Cloud. + /// + /// > **NOTE:** Available in v1.87.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var myRepos = AliCloud.CS.GetRegistryEnterpriseRepos.Invoke(new() + /// { + /// InstanceId = "cri-xx", + /// NameRegex = "my-repos", + /// OutputFile = "my-repo-json", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["output"] = myRepos.Apply(getRegistryEnterpriseReposResult => getRegistryEnterpriseReposResult.Repos), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRegistryEnterpriseReposInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getRegistryEnterpriseRepos:getRegistryEnterpriseRepos", args ?? new GetRegistryEnterpriseReposInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CS/GetRegistryEnterpriseSyncRules.cs b/sdk/dotnet/CS/GetRegistryEnterpriseSyncRules.cs index 2bb18e6a52..7322a8b38d 100644 --- a/sdk/dotnet/CS/GetRegistryEnterpriseSyncRules.cs +++ b/sdk/dotnet/CS/GetRegistryEnterpriseSyncRules.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetRegistry /// public static Output Invoke(GetRegistryEnterpriseSyncRulesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getRegistryEnterpriseSyncRules:getRegistryEnterpriseSyncRules", args ?? new GetRegistryEnterpriseSyncRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list Container Registry Enterprise Edition sync rules on Alibaba Cloud. + /// + /// > **NOTE:** Available in v1.90.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var mySyncRules = AliCloud.CS.GetRegistryEnterpriseSyncRules.Invoke(new() + /// { + /// InstanceId = "cri-xxx", + /// NamespaceName = "test-namespace", + /// RepoName = "test-repo", + /// TargetInstanceId = "cri-yyy", + /// NameRegex = "test-rule", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["output"] = mySyncRules.Apply(getRegistryEnterpriseSyncRulesResult => getRegistryEnterpriseSyncRulesResult.Rules).Select(__item => __item.Id).ToList(), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRegistryEnterpriseSyncRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getRegistryEnterpriseSyncRules:getRegistryEnterpriseSyncRules", args ?? new GetRegistryEnterpriseSyncRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CS/GetServerlessKubernetesClusters.cs b/sdk/dotnet/CS/GetServerlessKubernetesClusters.cs index 1a632c2bbe..6f547a278d 100644 --- a/sdk/dotnet/CS/GetServerlessKubernetesClusters.cs +++ b/sdk/dotnet/CS/GetServerlessKubernetesClusters.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetServerl /// public static Output Invoke(GetServerlessKubernetesClustersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getServerlessKubernetesClusters:getServerlessKubernetesClusters", args ?? new GetServerlessKubernetesClustersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list Container Service Serverless Kubernetes Clusters on Alibaba Cloud. + /// + /// > **NOTE:** Available in 1.58.0+ + /// + /// > **NOTE:** From version 1.177.0+, We supported batch export of clusters' kube config information by `kube_config_file_prefix`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var k8sClusters = AliCloud.CS.GetServerlessKubernetesClusters.Invoke(new() + /// { + /// NameRegex = "my-first-k8s", + /// OutputFile = "my-first-k8s-json", + /// KubeConfigFilePrefix = "~/.kube/serverless", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["output"] = k8sClusters.Apply(getServerlessKubernetesClustersResult => getServerlessKubernetesClustersResult.Clusters), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetServerlessKubernetesClustersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cs/getServerlessKubernetesClusters:getServerlessKubernetesClusters", args ?? new GetServerlessKubernetesClustersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cas/GetCertificates.cs b/sdk/dotnet/Cas/GetCertificates.cs index 6ba704104f..45cafebbd5 100644 --- a/sdk/dotnet/Cas/GetCertificates.cs +++ b/sdk/dotnet/Cas/GetCertificates.cs @@ -27,6 +27,14 @@ public static Task InvokeAsync(GetCertificatesArgs? args /// public static Output Invoke(GetCertificatesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cas/getCertificates:getCertificates", args ?? new GetCertificatesInvokeArgs(), options.WithDefaults()); + + /// + /// > **DEPRECATED:** This datasource has been deprecated from version `1.129.0`. Please use new datasource alicloud_ssl_certificates_service_certificates. + /// + /// This data source provides a list of CAS Certificates in an Alibaba Cloud account according to the specified filters. + /// + public static Output Invoke(GetCertificatesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cas/getCertificates:getCertificates", args ?? new GetCertificatesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cas/GetServiceCertificates.cs b/sdk/dotnet/Cas/GetServiceCertificates.cs index 632ff23ea5..2a2a834c97 100644 --- a/sdk/dotnet/Cas/GetServiceCertificates.cs +++ b/sdk/dotnet/Cas/GetServiceCertificates.cs @@ -196,6 +196,99 @@ public static Task InvokeAsync(GetServiceCertifica /// public static Output Invoke(GetServiceCertificatesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cas/getServiceCertificates:getServiceCertificates", args ?? new GetServiceCertificatesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ssl Certificates Service Certificates of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.129.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "terraform-example"; + /// var @default = new AliCloud.Cas.ServiceCertificate("default", new() + /// { + /// CertificateName = name, + /// Cert = @"-----BEGIN CERTIFICATE----- + /// MIIDeDCCAmCgAwIBAgIEN3ZT6zANBgkqhkiG9w0BAQsFADBVMQswCQYDVQQGEwJD + /// TjEVMBMGA1UEAwwMKi50ZnRlc3QudG9wMRAwDgYDVQQIDAdCZWlKaW5nMRAwDgYD + /// VQQHDAdCZWlKaW5nMQswCQYDVQQKDAJBQTAeFw0yMzA4MjgwNjQ5NDNaFw0yNTA4 + /// MjcwNjQ5NDNaMFUxCzAJBgNVBAYTAkNOMRUwEwYDVQQDDAwqLnRmdGVzdC50b3Ax + /// EDAOBgNVBAgMB0JlaUppbmcxEDAOBgNVBAcMB0JlaUppbmcxCzAJBgNVBAoMAkFB + /// MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzkk9NJUH7PLSQK4RRrGQ + /// Y5dVsftkhnKh9HhI6yrnlowWIDPS1PZHOU/5gQ7xPUPGdKQV5S7x8wROnAaXEimx + /// N4GdQw25pGhRJvlwme9fzJJiSe6lG49NCxmuBiEdJAzPKaTPpK1cG1f1TqdgCfHR + /// HAL6Jxb3ylHG2LlTNFLXikubUi5RT6/9C8psr713Zm4HveCI/cx0WdgZ+fmsc9ft + /// rkIB1DdyV1kQ51m8r2rLi3J7aC5ggGOiex/VlGSd4e6SOQLpdQEdDbodtOJ4LgVk + /// +arFNCMinUWIOPGFzXhdm6lssPbh4MOBrz8c/M9TcF4hoMn5/o/9johZIZ/DOvXt + /// ZQIDAQABo1AwTjAdBgNVHQ4EFgQUOnWiddgeZj17IeysatqhE361o5YwHwYDVR0j + /// BBgwFoAUOnWiddgeZj17IeysatqhE361o5YwDAYDVR0TBAUwAwEB/zANBgkqhkiG + /// 9w0BAQsFAAOCAQEAfh3cnOszHM/5wXjY7BIkmgDOReksS+87ibhBz7T2ddZj+yCF + /// 9GdIBzXCiHpQFXpW8a3kc3I7l3nGfMTkmF6ld3ot/6SXP17QKJwxtvUA4ib8QkWD + /// S7FT+UcHCUHv42Sh1e5uAlQ5pMSul7iKcR7jwlwZGZ0905HOqrmdyUGJ+Ud2uZWD + /// AC0dJF6Bv9VhNtci8Imp05PaPH09deXLZu8LRrKRZFy9qLW5R6Swv7nzxckOAqDk + /// TTc40xwvQROekWUyxeJL7xaHuylUHE0bxsiIfx5bZsBizRjprIwGlj85CSPuTZyP + /// DPfaiZAN/61h5HNAnxLltOZfqabKYYw7l9LBDg== + /// -----END CERTIFICATE----- + /// ", + /// Key = @"-----BEGIN PRIVATE KEY----- + /// MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDOST00lQfs8tJA + /// rhFGsZBjl1Wx+2SGcqH0eEjrKueWjBYgM9LU9kc5T/mBDvE9Q8Z0pBXlLvHzBE6c + /// BpcSKbE3gZ1DDbmkaFEm+XCZ71/MkmJJ7qUbj00LGa4GIR0kDM8ppM+krVwbV/VO + /// p2AJ8dEcAvonFvfKUcbYuVM0UteKS5tSLlFPr/0LymyvvXdmbge94Ij9zHRZ2Bn5 + /// +axz1+2uQgHUN3JXWRDnWbyvasuLcntoLmCAY6J7H9WUZJ3h7pI5Aul1AR0Nuh20 + /// 4nguBWT5qsU0IyKdRYg48YXNeF2bqWyw9uHgw4GvPxz8z1NwXiGgyfn+j/2OiFkh + /// n8M69e1lAgMBAAECggEAevPgTTT+0lYwx2h416ACJboP09O5KQGuUl5XaAPcoTjB + /// /1OkOFbKQPjQCAJ1+0QoR2F9w2plv6kziX/MD4FWJXVV3J+TpNCgfhBy8u1gNjiR + /// 6Osa8gBJtXIK7ZBTJCeWWoXnVYoWuh2FEupkLck6D+4eV6oy6x4u3QIo+6jc24n9 + /// dIXQG6/v/Iao34kB0LUdp/4WNaUDvfI6NDhEwchpKE95dtWIDlIN/YhfiYAdjrnl + /// YmH2VDbAGgsdEiHP4wLZfjgsGPPDGS0+qBHoSiJGH0E6wWEZdAE4TsYGRFsO86n3 + /// LfjEPFGfPlcnZe2cTTe3kmyKq/DTjxtu2rh3I8o2CQKBgQD/5Xe7cenaOBefzPlx + /// GOEsB+qv49UmzEPOXDNZe9hmAawuuuxPUM+xlE++P+mEgQm1LPT4WWgtFLPVuwmx + /// ncxt4CJNZh+ZGFyAZ4dm4M4ZhIBXNonyIP+yGyAJUUVF9Iy3TYcJNiGzv2Rx9JRQ + /// XWJMQnTDILmZbmU+ltTea7/zqwKBgQDOXqCqb17MuLt7OcKWSgthm79OlaOdzZvl + /// i9qU6VzZKG7Axc5gA9yq6tHp3vWPI4bNdvwqIIa/nzVILjGA5fcYFbRN+7gHwo8s + /// rNAgi5PAoKWqQRovyJRY9Eq/sn6l1jbJZAOUAMZMWDm8z89OqK7PNQSIAtfFSneo + /// 2QxJkGeTLwKBgGJkafBB8af9b1/7YWISLepPNPbihH/BhMThAMGEdAVs2TaymtA4 + /// g1OFck/1pSVUtFXcbmjbf8ntruQcYbLQuNz6lFXsUXP9QPwCUrbE85ouL2bZSps2 + /// AvsJoPzUKe2nBUAp6CUrkjPaAJYsc6ae8X/fAaRRfeu33ef9+OV4yrq3AoGAYFZo + /// ZmfrN2Kdkt7Z6dLTEVPlsMfGQ6pyNmxdM9rkzzNC0JcGymfDIb7RE35T3+hTy6La + /// AMiCXv3xn6qAzY2NFh87tpPlyymWMOLTnf3Kkcfszlfp45idOBGCu46V9NDVbppT + /// 2UmrSIR/H5dbTXsNcAlt/hhlpeInjhkU1VqmH10CgYEA7Kk+QhWq705SczpWjm5J + /// 9kHqfFzJLwAWNBduiia0WypgPhLe/4wT1rYQkBtKMVKrgFo7Cvi4YKlrtlDnXyeU + /// CIFqfEL5NriQelqrFsvgHsmD+MpvDoSWm5C8IrTubtlNyWUzXSVT4OIwzPobzPqG + /// LILJ+e7bLw8RrM0HfgFnl8c= + /// -----END PRIVATE KEY----- + /// ", + /// }); + /// + /// var ids = AliCloud.Cas.GetServiceCertificates.Invoke(new() + /// { + /// Ids = new[] + /// { + /// @default.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["sslCertificatesServiceCertificatesId0"] = ids.Apply(getServiceCertificatesResult => getServiceCertificatesResult.Certificates[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetServiceCertificatesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cas/getServiceCertificates:getServiceCertificates", args ?? new GetServiceCertificatesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cassandra/GetBackupPlans.cs b/sdk/dotnet/Cassandra/GetBackupPlans.cs index 818a1e9af7..24b909fc07 100644 --- a/sdk/dotnet/Cassandra/GetBackupPlans.cs +++ b/sdk/dotnet/Cassandra/GetBackupPlans.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetBackupPlansArgs args, In /// public static Output Invoke(GetBackupPlansInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cassandra/getBackupPlans:getBackupPlans", args ?? new GetBackupPlansInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cassandra Backup Plans of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.128.0+. + /// + /// > **DEPRECATED:** This data source has been [deprecated](https://www.alibabacloud.com/help/en/apsaradb-for-cassandra/latest/cassandra-delisting-notice) from version `1.220.0`. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Cassandra.GetBackupPlans.Invoke(new() + /// { + /// ClusterId = "example_value", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstCassandraBackupPlanId"] = example.Apply(getBackupPlansResult => getBackupPlansResult.Plans[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBackupPlansInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cassandra/getBackupPlans:getBackupPlans", args ?? new GetBackupPlansInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cassandra/GetClusters.cs b/sdk/dotnet/Cassandra/GetClusters.cs index e34ed7c103..4b7bfb9ef6 100644 --- a/sdk/dotnet/Cassandra/GetClusters.cs +++ b/sdk/dotnet/Cassandra/GetClusters.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetClustersArgs? args = null, /// public static Output Invoke(GetClustersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cassandra/getClusters:getClusters", args ?? new GetClustersInvokeArgs(), options.WithDefaults()); + + /// + /// The `alicloud.cassandra.getClusters` data source provides a collection of Cassandra clusters available in Alicloud account. + /// Filters support regular expression for the cluster name, ids or tags. + /// + /// > **NOTE:** Available in 1.88.0+. + /// + /// > **DEPRECATED:** This data source has been [deprecated](https://www.alibabacloud.com/help/en/apsaradb-for-cassandra/latest/cassandra-delisting-notice) from version `1.220.0`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var cassandra = AliCloud.Cassandra.GetClusters.Invoke(new() + /// { + /// NameRegex = "tf_testAccCassandra", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetClustersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cassandra/getClusters:getClusters", args ?? new GetClustersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cassandra/GetDataCenters.cs b/sdk/dotnet/Cassandra/GetDataCenters.cs index 560a94652a..c55c8874dc 100644 --- a/sdk/dotnet/Cassandra/GetDataCenters.cs +++ b/sdk/dotnet/Cassandra/GetDataCenters.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetDataCentersArgs args, In /// public static Output Invoke(GetDataCentersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cassandra/getDataCenters:getDataCenters", args ?? new GetDataCentersInvokeArgs(), options.WithDefaults()); + + /// + /// The `alicloud.cassandra.getDataCenters` data source provides a collection of Cassandra Data Centers available in Alicloud account. + /// Filters support regular expression for the cluster name or ids. + /// + /// > **NOTE:** Available in 1.88.0+. + /// + /// > **DEPRECATED:** This data source has been [deprecated](https://www.alibabacloud.com/help/en/apsaradb-for-cassandra/latest/cassandra-delisting-notice) from version `1.220.0`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var cassandra = AliCloud.Cassandra.GetDataCenters.Invoke(new() + /// { + /// NameRegex = "tf_testAccCassandra_dc", + /// ClusterId = "cds-xxxxx", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDataCentersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cassandra/getDataCenters:getDataCenters", args ?? new GetDataCentersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cassandra/GetZones.cs b/sdk/dotnet/Cassandra/GetZones.cs index a84d10b131..d34b020a66 100644 --- a/sdk/dotnet/Cassandra/GetZones.cs +++ b/sdk/dotnet/Cassandra/GetZones.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cassandra/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides availability zones for Cassandra that can be accessed by an Alibaba Cloud account within the region configured in the provider. + /// + /// > **NOTE:** Available in v1.88.0+. + /// + /// > **DEPRECATED:** This data source has been [deprecated](https://www.alibabacloud.com/help/en/apsaradb-for-cassandra/latest/cassandra-delisting-notice) from version `1.220.0`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var zonesIds = AliCloud.Cassandra.GetZones.Invoke(); + /// + /// // Create an Cassandra cluster with the first matched zone + /// var cassandra = new AliCloud.Cassandra.Cluster("cassandra", new() + /// { + /// ZoneId = zonesIds.Apply(getZonesResult => getZonesResult.Zones[0]?.Id), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cassandra/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cddc/GetDedicatedHostAccounts.cs b/sdk/dotnet/Cddc/GetDedicatedHostAccounts.cs index 7ca0f1a538..2dd70b0dff 100644 --- a/sdk/dotnet/Cddc/GetDedicatedHostAccounts.cs +++ b/sdk/dotnet/Cddc/GetDedicatedHostAccounts.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetDedicatedHostA /// public static Output Invoke(GetDedicatedHostAccountsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cddc/getDedicatedHostAccounts:getDedicatedHostAccounts", args ?? new GetDedicatedHostAccountsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cddc Dedicated Host Accounts of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.148.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Cddc.GetDedicatedHostAccounts.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cddcDedicatedHostAccountId1"] = ids.Apply(getDedicatedHostAccountsResult => getDedicatedHostAccountsResult.Accounts[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDedicatedHostAccountsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cddc/getDedicatedHostAccounts:getDedicatedHostAccounts", args ?? new GetDedicatedHostAccountsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cddc/GetDedicatedHostGroups.cs b/sdk/dotnet/Cddc/GetDedicatedHostGroups.cs index 2af52510dd..8128e6da65 100644 --- a/sdk/dotnet/Cddc/GetDedicatedHostGroups.cs +++ b/sdk/dotnet/Cddc/GetDedicatedHostGroups.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetDedicatedHostGro /// public static Output Invoke(GetDedicatedHostGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cddc/getDedicatedHostGroups:getDedicatedHostGroups", args ?? new GetDedicatedHostGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cddc Dedicated Host Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.132.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Cddc.GetDedicatedHostGroups.Invoke(new() + /// { + /// Engine = "MongoDB", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cddcDedicatedHostGroupId"] = @default.Apply(@default => @default.Apply(getDedicatedHostGroupsResult => getDedicatedHostGroupsResult.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDedicatedHostGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cddc/getDedicatedHostGroups:getDedicatedHostGroups", args ?? new GetDedicatedHostGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cddc/GetDedicatedHosts.cs b/sdk/dotnet/Cddc/GetDedicatedHosts.cs index e660b25a4a..d8d06d614f 100644 --- a/sdk/dotnet/Cddc/GetDedicatedHosts.cs +++ b/sdk/dotnet/Cddc/GetDedicatedHosts.cs @@ -180,6 +180,91 @@ public static Task InvokeAsync(GetDedicatedHostsArgs ar /// public static Output Invoke(GetDedicatedHostsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cddc/getDedicatedHosts:getDedicatedHosts", args ?? new GetDedicatedHostsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cddc Dedicated Hosts of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.147.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Cddc.GetDedicatedHosts.Invoke(new() + /// { + /// DedicatedHostGroupId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// var status = AliCloud.Cddc.GetDedicatedHosts.Invoke(new() + /// { + /// DedicatedHostGroupId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// Status = "1", + /// }); + /// + /// var zoneId = AliCloud.Cddc.GetDedicatedHosts.Invoke(new() + /// { + /// DedicatedHostGroupId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// ZoneId = "example_value", + /// }); + /// + /// var allocationStatus = AliCloud.Cddc.GetDedicatedHosts.Invoke(new() + /// { + /// DedicatedHostGroupId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// AllocationStatus = "Allocatable", + /// }); + /// + /// var hostType = AliCloud.Cddc.GetDedicatedHosts.Invoke(new() + /// { + /// DedicatedHostGroupId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// HostType = "dhg_cloud_ssd", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cddcDedicatedHostId1"] = ids.Apply(getDedicatedHostsResult => getDedicatedHostsResult.Hosts[0]?.Id), + /// ["cddcDedicatedHostId2"] = status.Apply(getDedicatedHostsResult => getDedicatedHostsResult.Hosts[0]?.Id), + /// ["cddcDedicatedHostId3"] = zoneId.Apply(getDedicatedHostsResult => getDedicatedHostsResult.Hosts[0]?.Id), + /// ["cddcDedicatedHostId4"] = allocationStatus.Apply(getDedicatedHostsResult => getDedicatedHostsResult.Hosts[0]?.Id), + /// ["cddcDedicatedHostId5"] = hostType.Apply(getDedicatedHostsResult => getDedicatedHostsResult.Hosts[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDedicatedHostsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cddc/getDedicatedHosts:getDedicatedHosts", args ?? new GetDedicatedHostsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cddc/GetHostEcsLevelInfos.cs b/sdk/dotnet/Cddc/GetHostEcsLevelInfos.cs index a9b6c4310b..4127b4cd75 100644 --- a/sdk/dotnet/Cddc/GetHostEcsLevelInfos.cs +++ b/sdk/dotnet/Cddc/GetHostEcsLevelInfos.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetHostEcsLevelInfosA /// public static Output Invoke(GetHostEcsLevelInfosInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cddc/getHostEcsLevelInfos:getHostEcsLevelInfos", args ?? new GetHostEcsLevelInfosInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cddc Host Ecs Level Infos of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.147.0+. + /// + public static Output Invoke(GetHostEcsLevelInfosInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cddc/getHostEcsLevelInfos:getHostEcsLevelInfos", args ?? new GetHostEcsLevelInfosInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cddc/GetZones.cs b/sdk/dotnet/Cddc/GetZones.cs index ac107d85b0..ef5ca5cee9 100644 --- a/sdk/dotnet/Cddc/GetZones.cs +++ b/sdk/dotnet/Cddc/GetZones.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cddc/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cddc Zones of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.147.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Cddc.GetZones.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cddcZonesId1"] = example.Apply(getZonesResult => getZonesResult.Zones[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cddc/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cdn/GetBlockedRegions.cs b/sdk/dotnet/Cdn/GetBlockedRegions.cs index 5903a465e9..5d1eecb553 100644 --- a/sdk/dotnet/Cdn/GetBlockedRegions.cs +++ b/sdk/dotnet/Cdn/GetBlockedRegions.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetBlockedRegionsArgs ar /// public static Output Invoke(GetBlockedRegionsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cdn/getBlockedRegions:getBlockedRegions", args ?? new GetBlockedRegionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cdn blocked regions. + /// + /// > **NOTE:** Available in v1.173.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Cdn.GetBlockedRegions.Invoke(new() + /// { + /// Language = "zh", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBlockedRegionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cdn/getBlockedRegions:getBlockedRegions", args ?? new GetBlockedRegionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cdn/GetIpInfo.cs b/sdk/dotnet/Cdn/GetIpInfo.cs index 455b229cfe..261e800a7c 100644 --- a/sdk/dotnet/Cdn/GetIpInfo.cs +++ b/sdk/dotnet/Cdn/GetIpInfo.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetIpInfoArgs args, InvokeOption /// public static Output Invoke(GetIpInfoInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cdn/getIpInfo:getIpInfo", args ?? new GetIpInfoInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the function of verifying whether an IP is a CDN node. + /// + /// > **NOTE:** Available in v1.153.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ipTest = AliCloud.Cdn.GetIpInfo.Invoke(new() + /// { + /// Ip = "114.114.114.114", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetIpInfoInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cdn/getIpInfo:getIpInfo", args ?? new GetIpInfoInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cdn/GetRealTimeLogDeliveries.cs b/sdk/dotnet/Cdn/GetRealTimeLogDeliveries.cs index 680133a22a..a4d4475b2f 100644 --- a/sdk/dotnet/Cdn/GetRealTimeLogDeliveries.cs +++ b/sdk/dotnet/Cdn/GetRealTimeLogDeliveries.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetRealTimeLogDel /// public static Output Invoke(GetRealTimeLogDeliveriesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cdn/getRealTimeLogDeliveries:getRealTimeLogDeliveries", args ?? new GetRealTimeLogDeliveriesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cdn Real Time Log Deliveries of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.134.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Cdn.GetRealTimeLogDeliveries.Invoke(new() + /// { + /// Domain = "example_value", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cdnRealTimeLogDelivery1"] = example.Apply(getRealTimeLogDeliveriesResult => getRealTimeLogDeliveriesResult.Deliveries[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRealTimeLogDeliveriesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cdn/getRealTimeLogDeliveries:getRealTimeLogDeliveries", args ?? new GetRealTimeLogDeliveriesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cdn/GetService.cs b/sdk/dotnet/Cdn/GetService.cs index be5e528436..8966cb5e86 100644 --- a/sdk/dotnet/Cdn/GetService.cs +++ b/sdk/dotnet/Cdn/GetService.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cdn/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can enable CDN service automatically. If the service has been enabled, it will return `Opened`. + /// + /// For information about CDN and how to use it, see [What is CDN](https://www.alibabacloud.com/help/product/27099.htm). + /// + /// > **NOTE:** Available since v1.98.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.Cdn.GetService.Invoke(new() + /// { + /// Enable = "On", + /// InternetChargeType = "PayByTraffic", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cdn/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetBandwidthLimits.cs b/sdk/dotnet/Cen/GetBandwidthLimits.cs index 366b8b5504..b43f2ca78c 100644 --- a/sdk/dotnet/Cen/GetBandwidthLimits.cs +++ b/sdk/dotnet/Cen/GetBandwidthLimits.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetBandwidthLimitsArgs? /// public static Output Invoke(GetBandwidthLimitsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getBandwidthLimits:getBandwidthLimits", args ?? new GetBandwidthLimitsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides CEN Bandwidth Limits available to the user. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var bwl = AliCloud.Cen.GetBandwidthLimits.Invoke(new() + /// { + /// InstanceIds = new[] + /// { + /// "cen-id1", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstCenBandwidthLimitsLocalRegionId"] = bwl.Apply(getBandwidthLimitsResult => getBandwidthLimitsResult.Limits[0]?.LocalRegionId), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBandwidthLimitsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getBandwidthLimits:getBandwidthLimits", args ?? new GetBandwidthLimitsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetBandwidthPackages.cs b/sdk/dotnet/Cen/GetBandwidthPackages.cs index 7d96c293c1..39c41c6a73 100644 --- a/sdk/dotnet/Cen/GetBandwidthPackages.cs +++ b/sdk/dotnet/Cen/GetBandwidthPackages.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetBandwidthPackagesA /// public static Output Invoke(GetBandwidthPackagesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getBandwidthPackages:getBandwidthPackages", args ?? new GetBandwidthPackagesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides CEN Bandwidth Packages available to the user. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Cen.GetBandwidthPackages.Invoke(new() + /// { + /// InstanceId = "cen-id1", + /// NameRegex = "^foo", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstCenBandwidthPackageId"] = example.Apply(getBandwidthPackagesResult => getBandwidthPackagesResult.Packages[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBandwidthPackagesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getBandwidthPackages:getBandwidthPackages", args ?? new GetBandwidthPackagesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetChildInstanceRouteEntryToAttachments.cs b/sdk/dotnet/Cen/GetChildInstanceRouteEntryToAttachments.cs index 5e8b8e9223..851c5377f4 100644 --- a/sdk/dotnet/Cen/GetChildInstanceRouteEntryToAttachments.cs +++ b/sdk/dotnet/Cen/GetChildInstanceRouteEntryToAttachments.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(Ge /// public static Output Invoke(GetChildInstanceRouteEntryToAttachmentsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getChildInstanceRouteEntryToAttachments:getChildInstanceRouteEntryToAttachments", args ?? new GetChildInstanceRouteEntryToAttachmentsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Cen Child Instance Route Entry To Attachment available to the user.[What is Child Instance Route Entry To Attachment](https://www.alibabacloud.com/help/en/cen/developer-reference/api-cbn-2017-09-12-createcenchildinstancerouteentrytoattachment) + /// + /// > **NOTE:** Available in 1.195.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Cen.GetChildInstanceRouteEntryToAttachments.Invoke(new() + /// { + /// ChildInstanceRouteTableId = "vtb-t4nt0z5xxbti85c78nkzy", + /// TransitRouterAttachmentId = "tr-attach-f1fd1y50rql00emvej", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudCenChildInstanceRouteEntryToAttachmentExampleId"] = @default.Apply(@default => @default.Apply(getChildInstanceRouteEntryToAttachmentsResult => getChildInstanceRouteEntryToAttachmentsResult.Attachments[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetChildInstanceRouteEntryToAttachmentsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getChildInstanceRouteEntryToAttachments:getChildInstanceRouteEntryToAttachments", args ?? new GetChildInstanceRouteEntryToAttachmentsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetFlowlogs.cs b/sdk/dotnet/Cen/GetFlowlogs.cs index 2c25f3919b..9d64b51dc2 100644 --- a/sdk/dotnet/Cen/GetFlowlogs.cs +++ b/sdk/dotnet/Cen/GetFlowlogs.cs @@ -176,6 +176,89 @@ public static Task InvokeAsync(GetFlowlogsArgs? args = null, /// public static Output Invoke(GetFlowlogsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getFlowlogs:getFlowlogs", args ?? new GetFlowlogsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides CEN flow logs available to the user. + /// + /// > **NOTE:** Available since v1.78.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// using Random = Pulumi.Random; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "tf-example"; + /// var defaultInteger = new Random.Index.Integer("default", new() + /// { + /// Min = 10000, + /// Max = 99999, + /// }); + /// + /// var defaultc5kxyC = new AliCloud.Cen.Instance("defaultc5kxyC", new() + /// { + /// CenInstanceName = name, + /// }); + /// + /// var defaultVw2U9u = new AliCloud.Cen.TransitRouter("defaultVw2U9u", new() + /// { + /// CenId = defaultc5kxyC.Id, + /// }); + /// + /// var defaultProject = new AliCloud.Log.Project("default", new() + /// { + /// ProjectName = $"{name}-{defaultInteger.Result}", + /// Description = "terraform-example", + /// }); + /// + /// var defaultStore = new AliCloud.Log.Store("default", new() + /// { + /// ProjectName = defaultProject.ProjectName, + /// LogstoreName = $"{name}-{defaultInteger.Result}", + /// ShardCount = 3, + /// AutoSplit = true, + /// MaxSplitShardCount = 60, + /// AppendMeta = true, + /// }); + /// + /// var defaultFlowLog = new AliCloud.Cen.FlowLog("default", new() + /// { + /// ProjectName = defaultStore.ProjectName, + /// FlowLogName = $"{name}-{defaultInteger.Result}", + /// LogFormatString = "${srcaddr}${dstaddr}${bytes}", + /// CenId = defaultc5kxyC.Id, + /// LogStoreName = defaultStore.LogstoreName, + /// Interval = 600, + /// Status = "Active", + /// TransitRouterId = defaultVw2U9u.TransitRouterId, + /// Description = "flowlog-resource-example-1", + /// }); + /// + /// var @default = AliCloud.Cen.GetFlowlogs.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultFlowLog.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstCenFlowlogId"] = @default.Apply(@default => @default.Apply(getFlowlogsResult => getFlowlogsResult.Flowlogs[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetFlowlogsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getFlowlogs:getFlowlogs", args ?? new GetFlowlogsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetInstanceAttachments.cs b/sdk/dotnet/Cen/GetInstanceAttachments.cs index 99d9f2fc6b..dc83f2331b 100644 --- a/sdk/dotnet/Cen/GetInstanceAttachments.cs +++ b/sdk/dotnet/Cen/GetInstanceAttachments.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetInstanceAttachme /// public static Output Invoke(GetInstanceAttachmentsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getInstanceAttachments:getInstanceAttachments", args ?? new GetInstanceAttachmentsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Cen Instance Attachments of the current Alibaba Cloud User. + /// + /// > **NOTE:** Available in v1.97.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Cen.GetInstanceAttachments.Invoke(new() + /// { + /// InstanceId = "cen-o40h17ll9w********", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["theFirstAttachmentedInstanceId"] = example.Apply(getInstanceAttachmentsResult => getInstanceAttachmentsResult.Attachments[0]?.ChildInstanceId), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceAttachmentsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getInstanceAttachments:getInstanceAttachments", args ?? new GetInstanceAttachmentsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetInstances.cs b/sdk/dotnet/Cen/GetInstances.cs index 80da0511a8..38ca307dd5 100644 --- a/sdk/dotnet/Cen/GetInstances.cs +++ b/sdk/dotnet/Cen/GetInstances.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides CEN instances available to the user. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var cenInstancesDs = AliCloud.Cen.GetInstances.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "cen-id1", + /// }, + /// NameRegex = "^foo", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstCenInstanceId"] = cenInstancesDs.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetInterRegionTrafficQosPolicies.cs b/sdk/dotnet/Cen/GetInterRegionTrafficQosPolicies.cs index 46cd5e1827..ebd80cdcdf 100644 --- a/sdk/dotnet/Cen/GetInterRegionTrafficQosPolicies.cs +++ b/sdk/dotnet/Cen/GetInterRegionTrafficQosPolicies.cs @@ -100,6 +100,51 @@ public static Task InvokeAsync(GetInterR /// public static Output Invoke(GetInterRegionTrafficQosPoliciesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getInterRegionTrafficQosPolicies:getInterRegionTrafficQosPolicies", args ?? new GetInterRegionTrafficQosPoliciesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cen Inter Region Traffic Qos Policies of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.195.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Cen.GetInterRegionTrafficQosPolicies.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// TransitRouterId = "your_transit_router_id", + /// TransitRouterAttachmentId = "your_transit_router_attachment_id", + /// }); + /// + /// var nameRegex = AliCloud.Cen.GetInterRegionTrafficQosPolicies.Invoke(new() + /// { + /// NameRegex = "^my-name", + /// TransitRouterId = "your_transit_router_id", + /// TransitRouterAttachmentId = "your_transit_router_attachment_id", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cenInterRegionTrafficQosPolicyId0"] = ids.Apply(getInterRegionTrafficQosPoliciesResult => getInterRegionTrafficQosPoliciesResult.Policies[0]?.Id), + /// ["cenInterRegionTrafficQosPolicyId1"] = nameRegex.Apply(getInterRegionTrafficQosPoliciesResult => getInterRegionTrafficQosPoliciesResult.Policies[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInterRegionTrafficQosPoliciesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getInterRegionTrafficQosPolicies:getInterRegionTrafficQosPolicies", args ?? new GetInterRegionTrafficQosPoliciesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetInterRegionTrafficQosQueues.cs b/sdk/dotnet/Cen/GetInterRegionTrafficQosQueues.cs index a0e60d87de..85a48f7825 100644 --- a/sdk/dotnet/Cen/GetInterRegionTrafficQosQueues.cs +++ b/sdk/dotnet/Cen/GetInterRegionTrafficQosQueues.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetInterReg /// public static Output Invoke(GetInterRegionTrafficQosQueuesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getInterRegionTrafficQosQueues:getInterRegionTrafficQosQueues", args ?? new GetInterRegionTrafficQosQueuesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Cen Inter Region Traffic Qos Queue available to the user. + /// + /// > **NOTE:** Available in 1.195.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Cen.GetInterRegionTrafficQosQueues.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAlicloudCenInterRegionTrafficQosQueue.Id, + /// }, + /// NameRegex = defaultAlicloudCenInterRegionTrafficQosQueue.Name, + /// TrafficQosPolicyId = "qos-xxxxxxx", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudCenInterRegionTrafficQosQueueExampleId"] = @default.Apply(@default => @default.Apply(getInterRegionTrafficQosQueuesResult => getInterRegionTrafficQosQueuesResult.Queues[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInterRegionTrafficQosQueuesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getInterRegionTrafficQosQueues:getInterRegionTrafficQosQueues", args ?? new GetInterRegionTrafficQosQueuesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetPrivateZones.cs b/sdk/dotnet/Cen/GetPrivateZones.cs index 6e24a1bb0d..d414d93a87 100644 --- a/sdk/dotnet/Cen/GetPrivateZones.cs +++ b/sdk/dotnet/Cen/GetPrivateZones.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetPrivateZonesArgs args, /// public static Output Invoke(GetPrivateZonesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getPrivateZones:getPrivateZones", args ?? new GetPrivateZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides CEN Private Zones available to the user. + /// + /// > **NOTE:** Available in v1.88.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @this = AliCloud.Cen.GetPrivateZones.Invoke(new() + /// { + /// CenId = "cen-o40h17ll9w********", + /// Ids = new[] + /// { + /// "cn-hangzhou", + /// }, + /// Status = "Active", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstCenPrivateZonesId"] = @this.Apply(@this => @this.Apply(getPrivateZonesResult => getPrivateZonesResult.Zones[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetPrivateZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getPrivateZones:getPrivateZones", args ?? new GetPrivateZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetRegionRouteEntries.cs b/sdk/dotnet/Cen/GetRegionRouteEntries.cs index ea1a547f48..2b9b411bc7 100644 --- a/sdk/dotnet/Cen/GetRegionRouteEntries.cs +++ b/sdk/dotnet/Cen/GetRegionRouteEntries.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetRegionRouteEntrie /// public static Output Invoke(GetRegionRouteEntriesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getRegionRouteEntries:getRegionRouteEntries", args ?? new GetRegionRouteEntriesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides CEN Regional Route Entries available to the user. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var entry = AliCloud.Cen.GetRegionRouteEntries.Invoke(new() + /// { + /// InstanceId = "cen-id1", + /// RegionId = "cn-beijing", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstRegionRouteEntriesRouteEntryCidrBlock"] = entry.Apply(getRegionRouteEntriesResult => getRegionRouteEntriesResult.Entries[0]?.CidrBlock), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRegionRouteEntriesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getRegionRouteEntries:getRegionRouteEntries", args ?? new GetRegionRouteEntriesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetRouteEntries.cs b/sdk/dotnet/Cen/GetRouteEntries.cs index ba517e01e8..b967c58594 100644 --- a/sdk/dotnet/Cen/GetRouteEntries.cs +++ b/sdk/dotnet/Cen/GetRouteEntries.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetRouteEntriesArgs args, /// public static Output Invoke(GetRouteEntriesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getRouteEntries:getRouteEntries", args ?? new GetRouteEntriesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides CEN Route Entries available to the user. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var entry = AliCloud.Cen.GetRouteEntries.Invoke(new() + /// { + /// InstanceId = "cen-id1", + /// RouteTableId = "vtb-id1", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstRouteEntriesRouteEntryCidrBlock"] = entry.Apply(getRouteEntriesResult => getRouteEntriesResult.Entries[0]?.CidrBlock), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRouteEntriesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getRouteEntries:getRouteEntries", args ?? new GetRouteEntriesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetRouteMaps.cs b/sdk/dotnet/Cen/GetRouteMaps.cs index 41e6b69315..dfca44564c 100644 --- a/sdk/dotnet/Cen/GetRouteMaps.cs +++ b/sdk/dotnet/Cen/GetRouteMaps.cs @@ -86,6 +86,44 @@ public static Task InvokeAsync(GetRouteMapsArgs args, Invoke /// public static Output Invoke(GetRouteMapsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getRouteMaps:getRouteMaps", args ?? new GetRouteMapsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides CEN Route Maps available to the user. + /// + /// > **NOTE:** Available in v1.87.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @this = AliCloud.Cen.GetRouteMaps.Invoke(new() + /// { + /// CenId = "cen-ihdlgo87ai********", + /// Ids = new[] + /// { + /// "cen-ihdlgo87ai:cenrmap-bnh97kb3mn********", + /// }, + /// DescriptionRegex = "datasource_test", + /// CenRegionId = "cn-hangzhou", + /// TransmitDirection = "RegionIn", + /// Status = "Active", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstCenRouteMapId"] = @this.Apply(@this => @this.Apply(getRouteMapsResult => getRouteMapsResult.Maps[0]?.RouteMapId)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRouteMapsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getRouteMaps:getRouteMaps", args ?? new GetRouteMapsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetRouteServices.cs b/sdk/dotnet/Cen/GetRouteServices.cs index 50b9a339be..d3622e8d13 100644 --- a/sdk/dotnet/Cen/GetRouteServices.cs +++ b/sdk/dotnet/Cen/GetRouteServices.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetRouteServicesArgs args /// public static Output Invoke(GetRouteServicesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getRouteServices:getRouteServices", args ?? new GetRouteServicesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides CEN Route Service available to the user. + /// + /// > **NOTE:** Available in v1.102.0+ + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Cen.GetRouteServices.Invoke(new() + /// { + /// CenId = "cen-7qthudw0ll6jmc****", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstCenRouteServiceId"] = example.Apply(getRouteServicesResult => getRouteServicesResult.Services[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRouteServicesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getRouteServices:getRouteServices", args ?? new GetRouteServicesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetTrafficMarkingPolicies.cs b/sdk/dotnet/Cen/GetTrafficMarkingPolicies.cs index ab01ce7e0b..c101616553 100644 --- a/sdk/dotnet/Cen/GetTrafficMarkingPolicies.cs +++ b/sdk/dotnet/Cen/GetTrafficMarkingPolicies.cs @@ -98,6 +98,50 @@ public static Task InvokeAsync(GetTrafficMarkin /// public static Output Invoke(GetTrafficMarkingPoliciesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTrafficMarkingPolicies:getTrafficMarkingPolicies", args ?? new GetTrafficMarkingPoliciesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cen Traffic Marking Policies of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.173.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Cen.GetTrafficMarkingPolicies.Invoke(new() + /// { + /// TransitRouterId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Cen.GetTrafficMarkingPolicies.Invoke(new() + /// { + /// TransitRouterId = "example_value", + /// NameRegex = "^my-TrafficMarkingPolicy", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cenTrafficMarkingPolicyId1"] = ids.Apply(getTrafficMarkingPoliciesResult => getTrafficMarkingPoliciesResult.Policies[0]?.Id), + /// ["cenTrafficMarkingPolicyId2"] = nameRegex.Apply(getTrafficMarkingPoliciesResult => getTrafficMarkingPoliciesResult.Policies[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTrafficMarkingPoliciesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTrafficMarkingPolicies:getTrafficMarkingPolicies", args ?? new GetTrafficMarkingPoliciesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetTransitRouteTableAggregations.cs b/sdk/dotnet/Cen/GetTransitRouteTableAggregations.cs index eacb86bdd9..c13658d411 100644 --- a/sdk/dotnet/Cen/GetTransitRouteTableAggregations.cs +++ b/sdk/dotnet/Cen/GetTransitRouteTableAggregations.cs @@ -96,6 +96,49 @@ public static Task InvokeAsync(GetTransi /// public static Output Invoke(GetTransitRouteTableAggregationsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouteTableAggregations:getTransitRouteTableAggregations", args ?? new GetTransitRouteTableAggregationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cen Transit Route Table Aggregations of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.202.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Cen.GetTransitRouteTableAggregations.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// TransitRouteTableId = "your_transit_route_table_id", + /// }); + /// + /// var nameRegex = AliCloud.Cen.GetTransitRouteTableAggregations.Invoke(new() + /// { + /// NameRegex = "^my-name", + /// TransitRouteTableId = "your_transit_route_table_id", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cenTransitRouterMulticastDomainId0"] = ids.Apply(getTransitRouteTableAggregationsResult => getTransitRouteTableAggregationsResult.TransitRouteTableAggregations[0]?.Id), + /// ["cenTransitRouterMulticastDomainId1"] = nameRegex.Apply(getTransitRouteTableAggregationsResult => getTransitRouteTableAggregationsResult.TransitRouteTableAggregations[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTransitRouteTableAggregationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouteTableAggregations:getTransitRouteTableAggregations", args ?? new GetTransitRouteTableAggregationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetTransitRouterAvailableResources.cs b/sdk/dotnet/Cen/GetTransitRouterAvailableResources.cs index a2ddbc9224..e1a2284a34 100644 --- a/sdk/dotnet/Cen/GetTransitRouterAvailableResources.cs +++ b/sdk/dotnet/Cen/GetTransitRouterAvailableResources.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetTran /// public static Output Invoke(GetTransitRouterAvailableResourcesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterAvailableResources:getTransitRouterAvailableResources", args ?? new GetTransitRouterAvailableResourcesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the CEN Transit Router Available Resources of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.163.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Cen.GetTransitRouterAvailableResources.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["masterId"] = ids.Apply(getTransitRouterAvailableResourcesResult => getTransitRouterAvailableResourcesResult.Resources[0]?.MasterZones[0]), + /// ["slaveId"] = ids.Apply(getTransitRouterAvailableResourcesResult => getTransitRouterAvailableResourcesResult.Resources[0]?.SlaveZones[0]), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTransitRouterAvailableResourcesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterAvailableResources:getTransitRouterAvailableResources", args ?? new GetTransitRouterAvailableResourcesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetTransitRouterCidrs.cs b/sdk/dotnet/Cen/GetTransitRouterCidrs.cs index 9704438ab4..afb3fbedd3 100644 --- a/sdk/dotnet/Cen/GetTransitRouterCidrs.cs +++ b/sdk/dotnet/Cen/GetTransitRouterCidrs.cs @@ -96,6 +96,49 @@ public static Task InvokeAsync(GetTransitRouterCidr /// public static Output Invoke(GetTransitRouterCidrsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterCidrs:getTransitRouterCidrs", args ?? new GetTransitRouterCidrsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cen Transit Router Cidrs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.193.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Cen.GetTransitRouterCidrs.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// TransitRouterId = "tr-6ehx7q2jze8ch5ji0****", + /// }); + /// + /// var nameRegex = AliCloud.Cen.GetTransitRouterCidrs.Invoke(new() + /// { + /// NameRegex = "^my-name", + /// TransitRouterId = "tr-6ehx7q2jze8ch5ji0****", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cenTransitRouterCidrId0"] = ids.Apply(getTransitRouterCidrsResult => getTransitRouterCidrsResult.Cidrs[0]?.Id), + /// ["cenTransitRouterCidrId1"] = nameRegex.Apply(getTransitRouterCidrsResult => getTransitRouterCidrsResult.Cidrs[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTransitRouterCidrsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterCidrs:getTransitRouterCidrs", args ?? new GetTransitRouterCidrsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetTransitRouterMulticastDomainAssociations.cs b/sdk/dotnet/Cen/GetTransitRouterMulticastDomainAssociations.cs index 57b071b0e2..eb7e96fe41 100644 --- a/sdk/dotnet/Cen/GetTransitRouterMulticastDomainAssociations.cs +++ b/sdk/dotnet/Cen/GetTransitRouterMulticastDomainAssociations.cs @@ -82,6 +82,42 @@ public static Task InvokeAsyn /// public static Output Invoke(GetTransitRouterMulticastDomainAssociationsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterMulticastDomainAssociations:getTransitRouterMulticastDomainAssociations", args ?? new GetTransitRouterMulticastDomainAssociationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cen Transit Router Multicast Domain Associations of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.195.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Cen.GetTransitRouterMulticastDomainAssociations.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// TransitRouterMulticastDomainId = "your_transit_router_multicast_domain_id", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cenTransitRouterMulticastDomainId0"] = ids.Apply(getTransitRouterMulticastDomainAssociationsResult => getTransitRouterMulticastDomainAssociationsResult.Associations[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTransitRouterMulticastDomainAssociationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterMulticastDomainAssociations:getTransitRouterMulticastDomainAssociations", args ?? new GetTransitRouterMulticastDomainAssociationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetTransitRouterMulticastDomainMembers.cs b/sdk/dotnet/Cen/GetTransitRouterMulticastDomainMembers.cs index f8618e6100..114babe3f2 100644 --- a/sdk/dotnet/Cen/GetTransitRouterMulticastDomainMembers.cs +++ b/sdk/dotnet/Cen/GetTransitRouterMulticastDomainMembers.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(Get /// public static Output Invoke(GetTransitRouterMulticastDomainMembersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterMulticastDomainMembers:getTransitRouterMulticastDomainMembers", args ?? new GetTransitRouterMulticastDomainMembersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Cen Transit Router Multicast Domain Member available to the user. [What is Transit Router Multicast Domain Member](https://www.alibabacloud.com/help/en/cen/developer-reference/api-cbn-2017-09-12-registertransitroutermulticastgroupmembers) + /// + /// > **NOTE:** Available since v1.195.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Cen.GetTransitRouterMulticastDomainMembers.Invoke(new() + /// { + /// TransitRouterMulticastDomainId = "tr-mcast-domain-2d9oq455uk533zfr29", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudCenTransitRouterMulticastDomainMemberExampleId"] = @default.Apply(@default => @default.Apply(getTransitRouterMulticastDomainMembersResult => getTransitRouterMulticastDomainMembersResult.Members[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTransitRouterMulticastDomainMembersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterMulticastDomainMembers:getTransitRouterMulticastDomainMembers", args ?? new GetTransitRouterMulticastDomainMembersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetTransitRouterMulticastDomainPeerMembers.cs b/sdk/dotnet/Cen/GetTransitRouterMulticastDomainPeerMembers.cs index b6bc3e427d..35441f17ab 100644 --- a/sdk/dotnet/Cen/GetTransitRouterMulticastDomainPeerMembers.cs +++ b/sdk/dotnet/Cen/GetTransitRouterMulticastDomainPeerMembers.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync /// public static Output Invoke(GetTransitRouterMulticastDomainPeerMembersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterMulticastDomainPeerMembers:getTransitRouterMulticastDomainPeerMembers", args ?? new GetTransitRouterMulticastDomainPeerMembersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Cen Transit Router Multicast Domain Peer Member available to the user. [What is Transit Router Multicast Domain Peer Member](https://www.alibabacloud.com/help/en/cen/developer-reference/api-cbn-2017-09-12-registertransitroutermulticastgroupmembers) + /// + /// > **NOTE:** Available since v1.195.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Cen.GetTransitRouterMulticastDomainPeerMembers.Invoke(new() + /// { + /// TransitRouterMulticastDomainId = "tr-mcast-domain-2d9oq455uk533zfrxx", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudCenTransitRouterMulticastDomainPeerMemberExampleId"] = @default.Apply(@default => @default.Apply(getTransitRouterMulticastDomainPeerMembersResult => getTransitRouterMulticastDomainPeerMembersResult.Members[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTransitRouterMulticastDomainPeerMembersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterMulticastDomainPeerMembers:getTransitRouterMulticastDomainPeerMembers", args ?? new GetTransitRouterMulticastDomainPeerMembersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetTransitRouterMulticastDomainSources.cs b/sdk/dotnet/Cen/GetTransitRouterMulticastDomainSources.cs index 832435dd36..2f4b4517c4 100644 --- a/sdk/dotnet/Cen/GetTransitRouterMulticastDomainSources.cs +++ b/sdk/dotnet/Cen/GetTransitRouterMulticastDomainSources.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(Get /// public static Output Invoke(GetTransitRouterMulticastDomainSourcesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterMulticastDomainSources:getTransitRouterMulticastDomainSources", args ?? new GetTransitRouterMulticastDomainSourcesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Cen Transit Router Multicast Domain Source available to the user.[What is Transit Router Multicast Domain Source](https://www.alibabacloud.com/help/en/cen/developer-reference/api-cbn-2017-09-12-registertransitroutermulticastgroupsources) + /// + /// > **NOTE:** Available since v1.195.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Cen.GetTransitRouterMulticastDomainSources.Invoke(new() + /// { + /// TransitRouterMulticastDomainId = "tr-mcast-domain-xxxxxx", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudCenTransitRouterMulticastDomainSourceExampleId"] = @default.Apply(@default => @default.Apply(getTransitRouterMulticastDomainSourcesResult => getTransitRouterMulticastDomainSourcesResult.Sources[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTransitRouterMulticastDomainSourcesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterMulticastDomainSources:getTransitRouterMulticastDomainSources", args ?? new GetTransitRouterMulticastDomainSourcesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetTransitRouterMulticastDomains.cs b/sdk/dotnet/Cen/GetTransitRouterMulticastDomains.cs index 1fab7a89c4..2ad9525693 100644 --- a/sdk/dotnet/Cen/GetTransitRouterMulticastDomains.cs +++ b/sdk/dotnet/Cen/GetTransitRouterMulticastDomains.cs @@ -96,6 +96,49 @@ public static Task InvokeAsync(GetTransi /// public static Output Invoke(GetTransitRouterMulticastDomainsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterMulticastDomains:getTransitRouterMulticastDomains", args ?? new GetTransitRouterMulticastDomainsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cen Transit Router Multicast Domains of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.195.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Cen.GetTransitRouterMulticastDomains.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// TransitRouterId = "your_transit_router_id", + /// }); + /// + /// var nameRegex = AliCloud.Cen.GetTransitRouterMulticastDomains.Invoke(new() + /// { + /// NameRegex = "^my-name", + /// TransitRouterId = "your_transit_router_id", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cenTransitRouterMulticastDomainId0"] = ids.Apply(getTransitRouterMulticastDomainsResult => getTransitRouterMulticastDomainsResult.Domains[0]?.Id), + /// ["cenTransitRouterMulticastDomainId1"] = nameRegex.Apply(getTransitRouterMulticastDomainsResult => getTransitRouterMulticastDomainsResult.Domains[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTransitRouterMulticastDomainsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterMulticastDomains:getTransitRouterMulticastDomains", args ?? new GetTransitRouterMulticastDomainsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetTransitRouterPeerAttachments.cs b/sdk/dotnet/Cen/GetTransitRouterPeerAttachments.cs index 44d2642960..6d456b5ef3 100644 --- a/sdk/dotnet/Cen/GetTransitRouterPeerAttachments.cs +++ b/sdk/dotnet/Cen/GetTransitRouterPeerAttachments.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetTransit /// public static Output Invoke(GetTransitRouterPeerAttachmentsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterPeerAttachments:getTransitRouterPeerAttachments", args ?? new GetTransitRouterPeerAttachmentsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides CEN Transit Router peer attachments available to the user. + /// + /// > **NOTE:** Available in 1.128.0+ + /// + public static Output Invoke(GetTransitRouterPeerAttachmentsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterPeerAttachments:getTransitRouterPeerAttachments", args ?? new GetTransitRouterPeerAttachmentsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetTransitRouterPrefixListAssociations.cs b/sdk/dotnet/Cen/GetTransitRouterPrefixListAssociations.cs index e38ea7e113..3bfa00ed31 100644 --- a/sdk/dotnet/Cen/GetTransitRouterPrefixListAssociations.cs +++ b/sdk/dotnet/Cen/GetTransitRouterPrefixListAssociations.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(Get /// public static Output Invoke(GetTransitRouterPrefixListAssociationsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterPrefixListAssociations:getTransitRouterPrefixListAssociations", args ?? new GetTransitRouterPrefixListAssociationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cen Transit Router Prefix List Associations of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.188.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Cen.GetTransitRouterPrefixListAssociations.Invoke(new() + /// { + /// TransitRouterId = "tr-6ehx7q2jze8ch5ji0****", + /// TransitRouterTableId = "vtb-6ehgc262hr170qgyc****", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cenTransitRouterPrefixListAssociationId"] = @default.Apply(@default => @default.Apply(getTransitRouterPrefixListAssociationsResult => getTransitRouterPrefixListAssociationsResult.Associations[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTransitRouterPrefixListAssociationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterPrefixListAssociations:getTransitRouterPrefixListAssociations", args ?? new GetTransitRouterPrefixListAssociationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetTransitRouterRouteEntries.cs b/sdk/dotnet/Cen/GetTransitRouterRouteEntries.cs index 79a3fc00cd..668ed3c0b3 100644 --- a/sdk/dotnet/Cen/GetTransitRouterRouteEntries.cs +++ b/sdk/dotnet/Cen/GetTransitRouterRouteEntries.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetTransitRou /// public static Output Invoke(GetTransitRouterRouteEntriesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterRouteEntries:getTransitRouterRouteEntries", args ?? new GetTransitRouterRouteEntriesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides CEN Transit Router Route Entries available to the user.[What is Cen Transit Router Route Entries](https://help.aliyun.com/document_detail/260941.html) + /// + /// > **NOTE:** Available in 1.126.0+ + /// + public static Output Invoke(GetTransitRouterRouteEntriesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterRouteEntries:getTransitRouterRouteEntries", args ?? new GetTransitRouterRouteEntriesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetTransitRouterRouteTableAssociations.cs b/sdk/dotnet/Cen/GetTransitRouterRouteTableAssociations.cs index f19123fa45..03ca7c3955 100644 --- a/sdk/dotnet/Cen/GetTransitRouterRouteTableAssociations.cs +++ b/sdk/dotnet/Cen/GetTransitRouterRouteTableAssociations.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(Get /// public static Output Invoke(GetTransitRouterRouteTableAssociationsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterRouteTableAssociations:getTransitRouterRouteTableAssociations", args ?? new GetTransitRouterRouteTableAssociationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides CEN Transit Router Route Table Associations available to the user.[What is Cen Transit Router Route Table Associations](https://help.aliyun.com/document_detail/261243.html) + /// + /// > **NOTE:** Available in 1.126.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Cen.GetTransitRouterRouteTableAssociations.Invoke(new() + /// { + /// TransitRouterRouteTableId = "rtb-id1", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstTransitRouterPeerAttachmentsTransitRouterAttachmentResourceType"] = @default.Apply(@default => @default.Apply(getTransitRouterRouteTableAssociationsResult => getTransitRouterRouteTableAssociationsResult.Associations[0]?.ResourceType)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTransitRouterRouteTableAssociationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterRouteTableAssociations:getTransitRouterRouteTableAssociations", args ?? new GetTransitRouterRouteTableAssociationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetTransitRouterRouteTablePropagations.cs b/sdk/dotnet/Cen/GetTransitRouterRouteTablePropagations.cs index f3470e74a2..e151c45c96 100644 --- a/sdk/dotnet/Cen/GetTransitRouterRouteTablePropagations.cs +++ b/sdk/dotnet/Cen/GetTransitRouterRouteTablePropagations.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(Get /// public static Output Invoke(GetTransitRouterRouteTablePropagationsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterRouteTablePropagations:getTransitRouterRouteTablePropagations", args ?? new GetTransitRouterRouteTablePropagationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides CEN Transit Router Route Table Propagations available to the user.[What is Cen Transit Router Route Table Propagations](https://help.aliyun.com/document_detail/261245.html) + /// + /// > **NOTE:** Available in 1.126.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Cen.GetTransitRouterRouteTablePropagations.Invoke(new() + /// { + /// TransitRouterRouteTableId = "rtb-id1", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstTransitRouterPeerAttachmentsTransitRouterAttachmentResourceType"] = @default.Apply(@default => @default.Apply(getTransitRouterRouteTablePropagationsResult => getTransitRouterRouteTablePropagationsResult.Propagations[0]?.ResourceType)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTransitRouterRouteTablePropagationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterRouteTablePropagations:getTransitRouterRouteTablePropagations", args ?? new GetTransitRouterRouteTablePropagationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetTransitRouterRouteTables.cs b/sdk/dotnet/Cen/GetTransitRouterRouteTables.cs index ed1da7f060..c1fabfe1f5 100644 --- a/sdk/dotnet/Cen/GetTransitRouterRouteTables.cs +++ b/sdk/dotnet/Cen/GetTransitRouterRouteTables.cs @@ -112,6 +112,57 @@ public static Task InvokeAsync(GetTransitRout /// public static Output Invoke(GetTransitRouterRouteTablesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterRouteTables:getTransitRouterRouteTables", args ?? new GetTransitRouterRouteTablesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides CEN Transit Router Route Tables available to the user.[What is Cen Transit Router Route Tables](https://www.alibabacloud.com/help/en/cen/developer-reference/api-cbn-2017-09-12-listtransitrouterroutetables) + /// + /// > **NOTE:** Available since v1.126.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "tf-example"; + /// var defaultInstance = new AliCloud.Cen.Instance("default", new() + /// { + /// CenInstanceName = name, + /// ProtectionLevel = "REDUCED", + /// }); + /// + /// var defaultTransitRouter = new AliCloud.Cen.TransitRouter("default", new() + /// { + /// CenId = defaultInstance.Id, + /// TransitRouterName = name, + /// }); + /// + /// var defaultTransitRouterRouteTable = new AliCloud.Cen.TransitRouterRouteTable("default", new() + /// { + /// TransitRouterId = defaultTransitRouter.TransitRouterId, + /// TransitRouterRouteTableDescription = "desp", + /// TransitRouterRouteTableName = name, + /// }); + /// + /// var @default = AliCloud.Cen.GetTransitRouterRouteTables.Invoke(new() + /// { + /// TransitRouterId = defaultTransitRouter.TransitRouterId, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstTransitRouterRouteTableType"] = @default.Apply(@default => @default.Apply(getTransitRouterRouteTablesResult => getTransitRouterRouteTablesResult.Tables[0]?.TransitRouterRouteTableType)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTransitRouterRouteTablesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterRouteTables:getTransitRouterRouteTables", args ?? new GetTransitRouterRouteTablesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetTransitRouterService.cs b/sdk/dotnet/Cen/GetTransitRouterService.cs index 89764c2b13..9e29bcf812 100644 --- a/sdk/dotnet/Cen/GetTransitRouterService.cs +++ b/sdk/dotnet/Cen/GetTransitRouterService.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetTransitRouterSe /// public static Output Invoke(GetTransitRouterServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterService:getTransitRouterService", args ?? new GetTransitRouterServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open CEN Transit Router Service automatically. If the service has been opened, it will return opened. + /// + /// For information about CEN and how to use it, see [What is CEN](https://www.alibabacloud.com/help/en/doc-detail/59870.htm). + /// + /// > **NOTE:** Available since v1.139.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.Cen.GetTransitRouterService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTransitRouterServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterService:getTransitRouterService", args ?? new GetTransitRouterServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetTransitRouterVbrAttachments.cs b/sdk/dotnet/Cen/GetTransitRouterVbrAttachments.cs index 97ae9c9653..6ee408e991 100644 --- a/sdk/dotnet/Cen/GetTransitRouterVbrAttachments.cs +++ b/sdk/dotnet/Cen/GetTransitRouterVbrAttachments.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetTransitR /// public static Output Invoke(GetTransitRouterVbrAttachmentsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterVbrAttachments:getTransitRouterVbrAttachments", args ?? new GetTransitRouterVbrAttachmentsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides CEN Transit Router VBR Attachments available to the user.[What is Cen Transit Router VBR Attachments](https://help.aliyun.com/document_detail/261226.html) + /// + /// > **NOTE:** Available in 1.126.0+ + /// + public static Output Invoke(GetTransitRouterVbrAttachmentsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterVbrAttachments:getTransitRouterVbrAttachments", args ?? new GetTransitRouterVbrAttachmentsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetTransitRouterVpcAttachments.cs b/sdk/dotnet/Cen/GetTransitRouterVpcAttachments.cs index d006820d98..cc19b398fc 100644 --- a/sdk/dotnet/Cen/GetTransitRouterVpcAttachments.cs +++ b/sdk/dotnet/Cen/GetTransitRouterVpcAttachments.cs @@ -190,6 +190,96 @@ public static Task InvokeAsync(GetTransitR /// public static Output Invoke(GetTransitRouterVpcAttachmentsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterVpcAttachments:getTransitRouterVpcAttachments", args ?? new GetTransitRouterVpcAttachmentsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the CEN Transit Router VPC Attachments of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.126.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "terraform-example"; + /// var @default = AliCloud.GetZones.Invoke(); + /// + /// var defaultGetNetworks = AliCloud.Vpc.GetNetworks.Invoke(new() + /// { + /// NameRegex = "^default-NODELETING$", + /// }); + /// + /// var defaultGetSwitches = AliCloud.Vpc.GetSwitches.Invoke(new() + /// { + /// VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]), + /// ZoneId = @default.Apply(getZonesResult => getZonesResult.Ids[0]), + /// }); + /// + /// var defaultMaster = AliCloud.Vpc.GetSwitches.Invoke(new() + /// { + /// VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]), + /// ZoneId = @default.Apply(getZonesResult => getZonesResult.Ids[1]), + /// }); + /// + /// var defaultInstance = new AliCloud.Cen.Instance("default", new() + /// { + /// CenInstanceName = name, + /// ProtectionLevel = "REDUCED", + /// }); + /// + /// var defaultTransitRouter = new AliCloud.Cen.TransitRouter("default", new() + /// { + /// CenId = defaultInstance.Id, + /// }); + /// + /// var defaultTransitRouterVpcAttachment = new AliCloud.Cen.TransitRouterVpcAttachment("default", new() + /// { + /// CenId = defaultInstance.Id, + /// VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]), + /// TransitRouterId = defaultTransitRouter.TransitRouterId, + /// TransitRouterAttachmentName = name, + /// TransitRouterAttachmentDescription = name, + /// ZoneMappings = new[] + /// { + /// new AliCloud.Cen.Inputs.TransitRouterVpcAttachmentZoneMappingArgs + /// { + /// VswitchId = defaultMaster.Apply(getSwitchesResult => getSwitchesResult.Vswitches[0]?.Id), + /// ZoneId = defaultMaster.Apply(getSwitchesResult => getSwitchesResult.Vswitches[0]?.ZoneId), + /// }, + /// new AliCloud.Cen.Inputs.TransitRouterVpcAttachmentZoneMappingArgs + /// { + /// VswitchId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Vswitches[0]?.Id), + /// ZoneId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Vswitches[0]?.ZoneId), + /// }, + /// }, + /// }); + /// + /// var ids = AliCloud.Cen.GetTransitRouterVpcAttachments.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultTransitRouterVpcAttachment.Id, + /// }, + /// CenId = defaultInstance.Id, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cenTransitRouterVpcAttachmentsId0"] = ids.Apply(getTransitRouterVpcAttachmentsResult => getTransitRouterVpcAttachmentsResult.Attachments[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTransitRouterVpcAttachmentsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterVpcAttachments:getTransitRouterVpcAttachments", args ?? new GetTransitRouterVpcAttachmentsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetTransitRouterVpnAttachments.cs b/sdk/dotnet/Cen/GetTransitRouterVpnAttachments.cs index 576250959f..4bb6b61443 100644 --- a/sdk/dotnet/Cen/GetTransitRouterVpnAttachments.cs +++ b/sdk/dotnet/Cen/GetTransitRouterVpnAttachments.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetTransitR /// public static Output Invoke(GetTransitRouterVpnAttachmentsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterVpnAttachments:getTransitRouterVpnAttachments", args ?? new GetTransitRouterVpnAttachmentsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cen Transit Router Vpn Attachments of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.183.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Cen.GetTransitRouterVpnAttachments.Invoke(new() + /// { + /// CenId = "example_value", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cenTransitRouterVpnAttachmentId1"] = ids.Apply(getTransitRouterVpnAttachmentsResult => getTransitRouterVpnAttachmentsResult.Attachments[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTransitRouterVpnAttachmentsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouterVpnAttachments:getTransitRouterVpnAttachments", args ?? new GetTransitRouterVpnAttachmentsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetTransitRouters.cs b/sdk/dotnet/Cen/GetTransitRouters.cs index 00c4de13b8..1b956a8dee 100644 --- a/sdk/dotnet/Cen/GetTransitRouters.cs +++ b/sdk/dotnet/Cen/GetTransitRouters.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetTransitRoutersArgs ar /// public static Output Invoke(GetTransitRoutersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouters:getTransitRouters", args ?? new GetTransitRoutersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides CEN Transit Routers available to the user.[What is Cen Transit Routers](https://help.aliyun.com/document_detail/261219.html) + /// + /// > **NOTE:** Available in 1.126.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Cen.GetTransitRouters.Invoke(new() + /// { + /// CenId = "cen-id1", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstTransitRoutersType"] = @default.Apply(@default => @default.Apply(getTransitRoutersResult => getTransitRoutersResult.TransitRouters[0]?.Type)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTransitRoutersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getTransitRouters:getTransitRouters", args ?? new GetTransitRoutersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cen/GetVbrHealthChecks.cs b/sdk/dotnet/Cen/GetVbrHealthChecks.cs index d564b8a02b..35e8f5246e 100644 --- a/sdk/dotnet/Cen/GetVbrHealthChecks.cs +++ b/sdk/dotnet/Cen/GetVbrHealthChecks.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetVbrHealthChecksArgs /// public static Output Invoke(GetVbrHealthChecksInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getVbrHealthChecks:getVbrHealthChecks", args ?? new GetVbrHealthChecksInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides CEN VBR Health Checks available to the user. + /// + /// > **NOTE:** Available in 1.98.0+ + /// + public static Output Invoke(GetVbrHealthChecksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cen/getVbrHealthChecks:getVbrHealthChecks", args ?? new GetVbrHealthChecksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cfg/GetAggregateCompliancePacks.cs b/sdk/dotnet/Cfg/GetAggregateCompliancePacks.cs index fe3913564d..bc3f0fe8da 100644 --- a/sdk/dotnet/Cfg/GetAggregateCompliancePacks.cs +++ b/sdk/dotnet/Cfg/GetAggregateCompliancePacks.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetAggregateCo /// public static Output Invoke(GetAggregateCompliancePacksInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cfg/getAggregateCompliancePacks:getAggregateCompliancePacks", args ?? new GetAggregateCompliancePacksInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Config Aggregate Compliance Packs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.124.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Cfg.GetAggregateCompliancePacks.Invoke(new() + /// { + /// AggregatorId = "ca-3a9b626622af001d****", + /// Ids = new[] + /// { + /// "cp-152a626622af00bc****", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstConfigAggregateCompliancePackId"] = example.Apply(getAggregateCompliancePacksResult => getAggregateCompliancePacksResult.Packs[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAggregateCompliancePacksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cfg/getAggregateCompliancePacks:getAggregateCompliancePacks", args ?? new GetAggregateCompliancePacksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cfg/GetAggregateConfigRules.cs b/sdk/dotnet/Cfg/GetAggregateConfigRules.cs index 89877d3ed7..7180a5b670 100644 --- a/sdk/dotnet/Cfg/GetAggregateConfigRules.cs +++ b/sdk/dotnet/Cfg/GetAggregateConfigRules.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetAggregateConfig /// public static Output Invoke(GetAggregateConfigRulesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cfg/getAggregateConfigRules:getAggregateConfigRules", args ?? new GetAggregateConfigRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Config Aggregate Config Rules of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.124.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Cfg.GetAggregateConfigRules.Invoke(new() + /// { + /// AggregatorId = "ca-3a9b626622af001d****", + /// Ids = new[] + /// { + /// "cr-5154626622af0034****", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstConfigAggregateConfigRuleId"] = example.Apply(getAggregateConfigRulesResult => getAggregateConfigRulesResult.Rules[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAggregateConfigRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cfg/getAggregateConfigRules:getAggregateConfigRules", args ?? new GetAggregateConfigRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cfg/GetAggregateDeliveries.cs b/sdk/dotnet/Cfg/GetAggregateDeliveries.cs index 7789bd4af2..613cef9f14 100644 --- a/sdk/dotnet/Cfg/GetAggregateDeliveries.cs +++ b/sdk/dotnet/Cfg/GetAggregateDeliveries.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetAggregateDeliver /// public static Output Invoke(GetAggregateDeliveriesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cfg/getAggregateDeliveries:getAggregateDeliveries", args ?? new GetAggregateDeliveriesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Config Aggregate Deliveries of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.172.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Cfg.GetAggregateDeliveries.Invoke(new() + /// { + /// AggregatorId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["configAggregateDeliveryId1"] = ids.Apply(getAggregateDeliveriesResult => getAggregateDeliveriesResult.Deliveries[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAggregateDeliveriesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cfg/getAggregateDeliveries:getAggregateDeliveries", args ?? new GetAggregateDeliveriesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cfg/GetAggregators.cs b/sdk/dotnet/Cfg/GetAggregators.cs index 0b36fcade2..5bb98a336b 100644 --- a/sdk/dotnet/Cfg/GetAggregators.cs +++ b/sdk/dotnet/Cfg/GetAggregators.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetAggregatorsArgs? args = /// public static Output Invoke(GetAggregatorsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cfg/getAggregators:getAggregators", args ?? new GetAggregatorsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Config Aggregators of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.124.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Cfg.GetAggregators.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "ca-3ce2626622af0005****", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstConfigAggregatorId"] = example.Apply(getAggregatorsResult => getAggregatorsResult.Aggregators[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAggregatorsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cfg/getAggregators:getAggregators", args ?? new GetAggregatorsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cfg/GetCompliancePacks.cs b/sdk/dotnet/Cfg/GetCompliancePacks.cs index d0537e3508..6cf6ad3411 100644 --- a/sdk/dotnet/Cfg/GetCompliancePacks.cs +++ b/sdk/dotnet/Cfg/GetCompliancePacks.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetCompliancePacksArgs? /// public static Output Invoke(GetCompliancePacksInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cfg/getCompliancePacks:getCompliancePacks", args ?? new GetCompliancePacksInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Config Compliance Packs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.124.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Cfg.GetCompliancePacks.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "cp-152a626622af00bc****", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstConfigCompliancePackId"] = example.Apply(getCompliancePacksResult => getCompliancePacksResult.Packs[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetCompliancePacksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cfg/getCompliancePacks:getCompliancePacks", args ?? new GetCompliancePacksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cfg/GetConfigurationRecorders.cs b/sdk/dotnet/Cfg/GetConfigurationRecorders.cs index 7307ab03a2..210d9a67c4 100644 --- a/sdk/dotnet/Cfg/GetConfigurationRecorders.cs +++ b/sdk/dotnet/Cfg/GetConfigurationRecorders.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetConfiguration /// public static Output Invoke(GetConfigurationRecordersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cfg/getConfigurationRecorders:getConfigurationRecorders", args ?? new GetConfigurationRecordersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Config Configuration Recorders of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in 1.99.0+. + /// + /// > **NOTE:** The Cloud Config region only support `cn-shanghai` and `ap-southeast-1`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Cfg.GetConfigurationRecorders.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["listOfResourceTypes"] = @this.Recorders[0].ResourceTypes, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetConfigurationRecordersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cfg/getConfigurationRecorders:getConfigurationRecorders", args ?? new GetConfigurationRecordersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cfg/GetDeliveries.cs b/sdk/dotnet/Cfg/GetDeliveries.cs index 7e951166c5..5343064de5 100644 --- a/sdk/dotnet/Cfg/GetDeliveries.cs +++ b/sdk/dotnet/Cfg/GetDeliveries.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetDeliveriesArgs? args = nu /// public static Output Invoke(GetDeliveriesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cfg/getDeliveries:getDeliveries", args ?? new GetDeliveriesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Config Deliveries of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.171.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Cfg.GetDeliveries.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["configDeliveryId1"] = ids.Apply(getDeliveriesResult => getDeliveriesResult.Deliveries[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDeliveriesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cfg/getDeliveries:getDeliveries", args ?? new GetDeliveriesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cfg/GetDeliveryChannels.cs b/sdk/dotnet/Cfg/GetDeliveryChannels.cs index 733a75a14d..0411053798 100644 --- a/sdk/dotnet/Cfg/GetDeliveryChannels.cs +++ b/sdk/dotnet/Cfg/GetDeliveryChannels.cs @@ -88,6 +88,45 @@ public static Task InvokeAsync(GetDeliveryChannelsArg /// public static Output Invoke(GetDeliveryChannelsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cfg/getDeliveryChannels:getDeliveryChannels", args ?? new GetDeliveryChannelsInvokeArgs(), options.WithDefaults()); + + /// + /// > **DEPRECATED:** This resource is based on Config's old version OpenAPI, and it has been deprecated from version `1.173.0`. + /// Please use new datasource alicloud.cfg.getDeliveries instead. + /// + /// This data source provides the Config Delivery Channels of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in 1.99.0+. + /// + /// > **NOTE:** The Cloud Config region only support `cn-shanghai` and `ap-southeast-1`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Cfg.GetDeliveryChannels.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "cdc-49a2ad756057********", + /// }, + /// NameRegex = "tftest", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstConfigDeliveryChannelId"] = example.Apply(getDeliveryChannelsResult => getDeliveryChannelsResult.Channels[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDeliveryChannelsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cfg/getDeliveryChannels:getDeliveryChannels", args ?? new GetDeliveryChannelsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cfg/GetRules.cs b/sdk/dotnet/Cfg/GetRules.cs index 75764ac753..5a5631d646 100644 --- a/sdk/dotnet/Cfg/GetRules.cs +++ b/sdk/dotnet/Cfg/GetRules.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetRulesArgs? args = null, Invoke /// public static Output Invoke(GetRulesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cfg/getRules:getRules", args ?? new GetRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Config Rules of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in 1.99.0+. + /// + /// > **NOTE:** The Cloud Config region only support `cn-shanghai` and `ap-southeast-1`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Cfg.GetRules.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "cr-ed4bad756057********", + /// }, + /// NameRegex = "tftest", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstConfigRuleId"] = example.Apply(getRulesResult => getRulesResult.Rules[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cfg/getRules:getRules", args ?? new GetRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Chatbot/GetAgents.cs b/sdk/dotnet/Chatbot/GetAgents.cs index 1709786b8f..9de9ba01f2 100644 --- a/sdk/dotnet/Chatbot/GetAgents.cs +++ b/sdk/dotnet/Chatbot/GetAgents.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetAgentsArgs? args = null, Invo /// public static Output Invoke(GetAgentsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:chatbot/getAgents:getAgents", args ?? new GetAgentsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Chatbot Agents of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.203.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var nameRegex = AliCloud.Chatbot.GetAgents.Invoke(new() + /// { + /// NameRegex = "^my-Agent", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudChatbotAgentsId1"] = nameRegex.Apply(getAgentsResult => getAgentsResult.Agents[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAgentsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:chatbot/getAgents:getAgents", args ?? new GetAgentsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ClickHouse/GetAccounts.cs b/sdk/dotnet/ClickHouse/GetAccounts.cs index 9ee31618fa..e10545ac24 100644 --- a/sdk/dotnet/ClickHouse/GetAccounts.cs +++ b/sdk/dotnet/ClickHouse/GetAccounts.cs @@ -176,6 +176,89 @@ public static Task InvokeAsync(GetAccountsArgs args, InvokeOp /// public static Output Invoke(GetAccountsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:clickhouse/getAccounts:getAccounts", args ?? new GetAccountsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Click House Accounts of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.134.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "oneaccountname"; + /// var pwd = config.Get("pwd") ?? "Tf-onepwd"; + /// var type = config.Get("type") ?? "Normal"; + /// var @default = AliCloud.ClickHouse.GetRegions.Invoke(new() + /// { + /// Current = true, + /// }); + /// + /// var defaultNetwork = new AliCloud.Vpc.Network("default", new() + /// { + /// VpcName = name, + /// CidrBlock = "10.4.0.0/16", + /// }); + /// + /// var defaultSwitch = new AliCloud.Vpc.Switch("default", new() + /// { + /// VswitchName = name, + /// CidrBlock = "10.4.0.0/24", + /// VpcId = defaultNetwork.Id, + /// ZoneId = @default.Apply(@default => @default.Apply(getRegionsResult => getRegionsResult.Regions[0]?.ZoneIds[0]?.ZoneId)), + /// }); + /// + /// var defaultDbCluster = new AliCloud.ClickHouse.DbCluster("default", new() + /// { + /// DbClusterVersion = "22.8.5.29", + /// Category = "Basic", + /// DbClusterClass = "S8", + /// DbClusterNetworkType = "vpc", + /// DbClusterDescription = name, + /// DbNodeGroupCount = 1, + /// PaymentType = "PayAsYouGo", + /// DbNodeStorage = "500", + /// StorageType = "cloud_essd", + /// VswitchId = defaultSwitch.Id, + /// VpcId = defaultNetwork.Id, + /// }); + /// + /// var defaultAccount = new AliCloud.ClickHouse.Account("default", new() + /// { + /// DbClusterId = defaultDbCluster.Id, + /// AccountDescription = "your_description", + /// AccountName = name, + /// AccountPassword = pwd, + /// Type = type, + /// }); + /// + /// var defaultGetAccounts = AliCloud.ClickHouse.GetAccounts.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAccount.Id, + /// }, + /// DbClusterId = defaultDbCluster.Id, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["accountId"] = defaultGetAccounts.Apply(getAccountsResult => getAccountsResult.Ids[0]), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAccountsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:clickhouse/getAccounts:getAccounts", args ?? new GetAccountsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ClickHouse/GetBackupPolicies.cs b/sdk/dotnet/ClickHouse/GetBackupPolicies.cs index 132b7599b0..0b3a40f734 100644 --- a/sdk/dotnet/ClickHouse/GetBackupPolicies.cs +++ b/sdk/dotnet/ClickHouse/GetBackupPolicies.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetBackupPoliciesArgs ar /// public static Output Invoke(GetBackupPoliciesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:clickhouse/getBackupPolicies:getBackupPolicies", args ?? new GetBackupPoliciesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Click House Backup Policies of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.147.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.ClickHouse.GetBackupPolicies.Invoke(new() + /// { + /// DbClusterId = "example_value", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["clickHouseBackupPolicyId1"] = example.Apply(getBackupPoliciesResult => getBackupPoliciesResult.Policies[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBackupPoliciesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:clickhouse/getBackupPolicies:getBackupPolicies", args ?? new GetBackupPoliciesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ClickHouse/GetDbClusters.cs b/sdk/dotnet/ClickHouse/GetDbClusters.cs index ba3df71bc5..aca23d56fe 100644 --- a/sdk/dotnet/ClickHouse/GetDbClusters.cs +++ b/sdk/dotnet/ClickHouse/GetDbClusters.cs @@ -106,6 +106,54 @@ public static Task InvokeAsync(GetDbClustersArgs? args = nu /// public static Output Invoke(GetDbClustersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:clickhouse/getDbClusters:getDbClusters", args ?? new GetDbClustersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Click House DBCluster of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.134.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var defaultDbCluster = new AliCloud.ClickHouse.DbCluster("default", new() + /// { + /// DbClusterVersion = "20.3.10.75", + /// Category = "Basic", + /// DbClusterClass = "S8", + /// DbClusterNetworkType = "vpc", + /// DbNodeGroupCount = 1, + /// PaymentType = "PayAsYouGo", + /// DbNodeStorage = "500", + /// StorageType = "cloud_essd", + /// VswitchId = "your_vswitch_id", + /// }); + /// + /// var @default = AliCloud.ClickHouse.GetDbClusters.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultDbCluster.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["dbCluster"] = @default.Apply(@default => @default.Apply(getDbClustersResult => getDbClustersResult.Ids[0])), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDbClustersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:clickhouse/getDbClusters:getDbClusters", args ?? new GetDbClustersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ClickHouse/GetRegions.cs b/sdk/dotnet/ClickHouse/GetRegions.cs index 8f26ac56ab..c32bec0a96 100644 --- a/sdk/dotnet/ClickHouse/GetRegions.cs +++ b/sdk/dotnet/ClickHouse/GetRegions.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetRegionsArgs? args = null, In /// public static Output Invoke(GetRegionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:clickhouse/getRegions:getRegions", args ?? new GetRegionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Click House Regions of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.138.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var default1 = AliCloud.ClickHouse.GetRegions.Invoke(new() + /// { + /// Current = true, + /// }); + /// + /// var default2 = AliCloud.ClickHouse.GetRegions.Invoke(new() + /// { + /// RegionId = "cn-hangzhou", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRegionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:clickhouse/getRegions:getRegions", args ?? new GetRegionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudAuth/GetFaceConfigs.cs b/sdk/dotnet/CloudAuth/GetFaceConfigs.cs index eb18b9db0b..63cebe3ea3 100644 --- a/sdk/dotnet/CloudAuth/GetFaceConfigs.cs +++ b/sdk/dotnet/CloudAuth/GetFaceConfigs.cs @@ -94,6 +94,48 @@ public static Task InvokeAsync(GetFaceConfigsArgs? args = /// public static Output Invoke(GetFaceConfigsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudauth/getFaceConfigs:getFaceConfigs", args ?? new GetFaceConfigsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cloudauth Face Configs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.137.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var defaultFaceConfig = new AliCloud.CloudAuth.FaceConfig("default", new() + /// { + /// BizName = "example-value", + /// BizType = "example-value", + /// }); + /// + /// var @default = AliCloud.CloudAuth.GetFaceConfigs.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultFaceConfig.Id, + /// }, + /// NameRegex = defaultFaceConfig.BizName, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["faceConfig"] = @default.Apply(@default => @default.Apply(getFaceConfigsResult => getFaceConfigsResult.Configs[0])), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetFaceConfigsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudauth/getFaceConfigs:getFaceConfigs", args ?? new GetFaceConfigsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudConnect/GetNetworks.cs b/sdk/dotnet/CloudConnect/GetNetworks.cs index c885cd5594..804fd0af50 100644 --- a/sdk/dotnet/CloudConnect/GetNetworks.cs +++ b/sdk/dotnet/CloudConnect/GetNetworks.cs @@ -90,6 +90,46 @@ public static Task InvokeAsync(GetNetworksArgs? args = null, /// public static Output Invoke(GetNetworksInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudconnect/getNetworks:getNetworks", args ?? new GetNetworksInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Cloud Connect Networks available to the user. + /// + /// > **NOTE:** Available in 1.59.0+ + /// + /// > **NOTE:** Only the following regions support create Cloud Connect Network. [`cn-shanghai`, `cn-shanghai-finance-1`, `cn-hongkong`, `ap-southeast-1`, `ap-southeast-3`, `ap-southeast-5`, `ap-northeast-1`, `eu-central-1`] + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.CloudConnect.GetNetworks.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAlicloudCloudConnectNetworks.Id, + /// }, + /// NameRegex = "^tf-testAcc.*", + /// }); + /// + /// var defaultNetwork = new AliCloud.CloudConnect.Network("default", new() + /// { + /// Name = "tf-testAccCloudConnectNetworkName", + /// Description = "tf-testAccCloudConnectNetworkDescription", + /// CidrBlock = "192.168.0.0/24", + /// IsDefault = true, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNetworksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudconnect/getNetworks:getNetworks", args ?? new GetNetworksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudFirewall/GetAddressBooks.cs b/sdk/dotnet/CloudFirewall/GetAddressBooks.cs index d6f4f3a63d..3edcef5638 100644 --- a/sdk/dotnet/CloudFirewall/GetAddressBooks.cs +++ b/sdk/dotnet/CloudFirewall/GetAddressBooks.cs @@ -110,6 +110,56 @@ public static Task InvokeAsync(GetAddressBooksArgs? args /// public static Output Invoke(GetAddressBooksInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudfirewall/getAddressBooks:getAddressBooks", args ?? new GetAddressBooksInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cloud Firewall Address Books of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.178.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "tf-example"; + /// var @default = new AliCloud.CloudFirewall.AddressBook("default", new() + /// { + /// GroupName = name, + /// GroupType = "ip", + /// Description = "tf-description", + /// AutoAddTagEcs = 0, + /// AddressLists = new[] + /// { + /// "10.21.0.0/16", + /// "10.168.0.0/16", + /// }, + /// }); + /// + /// var ids = AliCloud.CloudFirewall.GetAddressBooks.Invoke(new() + /// { + /// Ids = new[] + /// { + /// @default.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cloudFirewallAddressBookId1"] = ids.Apply(getAddressBooksResult => getAddressBooksResult.Books[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAddressBooksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudfirewall/getAddressBooks:getAddressBooks", args ?? new GetAddressBooksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudFirewall/GetControlPolicies.cs b/sdk/dotnet/CloudFirewall/GetControlPolicies.cs index a880889208..b928ef4307 100644 --- a/sdk/dotnet/CloudFirewall/GetControlPolicies.cs +++ b/sdk/dotnet/CloudFirewall/GetControlPolicies.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetControlPoliciesArgs /// public static Output Invoke(GetControlPoliciesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudfirewall/getControlPolicies:getControlPolicies", args ?? new GetControlPoliciesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cloud Firewall Control Policies of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.129.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.CloudFirewall.GetControlPolicies.Invoke(new() + /// { + /// Direction = "in", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetControlPoliciesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudfirewall/getControlPolicies:getControlPolicies", args ?? new GetControlPoliciesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudFirewall/GetInstanceMembers.cs b/sdk/dotnet/CloudFirewall/GetInstanceMembers.cs index 782238c2ac..f58190828f 100644 --- a/sdk/dotnet/CloudFirewall/GetInstanceMembers.cs +++ b/sdk/dotnet/CloudFirewall/GetInstanceMembers.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetInstanceMembersArgs? /// public static Output Invoke(GetInstanceMembersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudfirewall/getInstanceMembers:getInstanceMembers", args ?? new GetInstanceMembersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Cloud Firewall Instance Member available to the user.[What is Instance Member](https://help.aliyun.com/document_detail/261237.html) + /// + /// > **NOTE:** Available in 1.194.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.CloudFirewall.GetInstanceMembers.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAlicloudCloudFirewallInstanceMember.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudCloudFirewallInstanceMemberExampleId"] = @default.Apply(@default => @default.Apply(getInstanceMembersResult => getInstanceMembersResult.Members[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceMembersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudfirewall/getInstanceMembers:getInstanceMembers", args ?? new GetInstanceMembersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudFirewall/GetInstances.cs b/sdk/dotnet/CloudFirewall/GetInstances.cs index fcc108207d..304df26d14 100644 --- a/sdk/dotnet/CloudFirewall/GetInstances.cs +++ b/sdk/dotnet/CloudFirewall/GetInstances.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudfirewall/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cloud Firewall Instances of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.139.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.CloudFirewall.GetInstances.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cloudFirewallInstanceId1"] = ids.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudfirewall/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudFirewall/GetVpcFirewallCens.cs b/sdk/dotnet/CloudFirewall/GetVpcFirewallCens.cs index 6d674828ee..67a9470951 100644 --- a/sdk/dotnet/CloudFirewall/GetVpcFirewallCens.cs +++ b/sdk/dotnet/CloudFirewall/GetVpcFirewallCens.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetVpcFirewallCensArgs? /// public static Output Invoke(GetVpcFirewallCensInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudfirewall/getVpcFirewallCens:getVpcFirewallCens", args ?? new GetVpcFirewallCensInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Cloud Firewall Vpc Firewall Cen available to the user.[What is Vpc Firewall Cen](https://www.alibabacloud.com/help/en/cloud-firewall/latest/describevpcfirewallcenlist) + /// + /// > **NOTE:** Available in 1.194.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.CloudFirewall.GetVpcFirewallCens.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAlicloudCloudFirewallVpcFirewallCen.Id, + /// }, + /// CenId = "cen-cjok7uyb5w2b27573v", + /// MemberUid = "1415189284827022", + /// Status = "closed", + /// VpcFirewallName = "tf-test", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudCloudFirewallVpcFirewallCenExampleId"] = @default.Apply(@default => @default.Apply(getVpcFirewallCensResult => getVpcFirewallCensResult.Cens[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetVpcFirewallCensInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudfirewall/getVpcFirewallCens:getVpcFirewallCens", args ?? new GetVpcFirewallCensInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudFirewall/GetVpcFirewallControlPolicies.cs b/sdk/dotnet/CloudFirewall/GetVpcFirewallControlPolicies.cs index a63bc1caf9..0acb8a2aed 100644 --- a/sdk/dotnet/CloudFirewall/GetVpcFirewallControlPolicies.cs +++ b/sdk/dotnet/CloudFirewall/GetVpcFirewallControlPolicies.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetVpcFirewa /// public static Output Invoke(GetVpcFirewallControlPoliciesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudfirewall/getVpcFirewallControlPolicies:getVpcFirewallControlPolicies", args ?? new GetVpcFirewallControlPoliciesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cloud Firewall Vpc Firewall Control Policies of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.194.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.CloudFirewall.GetVpcFirewallControlPolicies.Invoke(new() + /// { + /// VpcFirewallId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudCloudFirewallVpcFirewallControlPoliciesId1"] = ids.Apply(getVpcFirewallControlPoliciesResult => getVpcFirewallControlPoliciesResult.Policies[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetVpcFirewallControlPoliciesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudfirewall/getVpcFirewallControlPolicies:getVpcFirewallControlPolicies", args ?? new GetVpcFirewallControlPoliciesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudFirewall/GetVpcFirewalls.cs b/sdk/dotnet/CloudFirewall/GetVpcFirewalls.cs index a456942c62..374d75a1fc 100644 --- a/sdk/dotnet/CloudFirewall/GetVpcFirewalls.cs +++ b/sdk/dotnet/CloudFirewall/GetVpcFirewalls.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetVpcFirewallsArgs? args /// public static Output Invoke(GetVpcFirewallsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudfirewall/getVpcFirewalls:getVpcFirewalls", args ?? new GetVpcFirewallsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Cloud Firewall Vpc Firewall available to the user.[What is Vpc Firewall](https://help.aliyun.com/document_detail/342932.html) + /// + /// > **NOTE:** Available in 1.194.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.CloudFirewall.GetVpcFirewalls.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "id-example", + /// }, + /// MemberUid = "1415189284827022", + /// Status = "closed", + /// VpcFirewallName = "tf-test", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudCfwVpcFirewallExampleId"] = @default.Apply(@default => @default.Apply(getVpcFirewallsResult => getVpcFirewallsResult.Firewalls[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetVpcFirewallsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudfirewall/getVpcFirewalls:getVpcFirewalls", args ?? new GetVpcFirewallsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudMonitor/GetServiceHybridDoubleWrites.cs b/sdk/dotnet/CloudMonitor/GetServiceHybridDoubleWrites.cs index 9e686193eb..67dddff217 100644 --- a/sdk/dotnet/CloudMonitor/GetServiceHybridDoubleWrites.cs +++ b/sdk/dotnet/CloudMonitor/GetServiceHybridDoubleWrites.cs @@ -120,6 +120,61 @@ public static Task InvokeAsync(GetServiceHyb /// public static Output Invoke(GetServiceHybridDoubleWritesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudmonitor/getServiceHybridDoubleWrites:getServiceHybridDoubleWrites", args ?? new GetServiceHybridDoubleWritesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cloud Monitor Service Hybrid Double Writes of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.220.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.GetAccount.Invoke(); + /// + /// var source = new AliCloud.Cms.Namespace("source", new() + /// { + /// NamespaceName = "your-source-namespace", + /// }); + /// + /// var defaultNamespace = new AliCloud.Cms.Namespace("default", new() + /// { + /// NamespaceName = "your-namespace", + /// }); + /// + /// var defaultServiceHybridDoubleWrite = new AliCloud.CloudMonitor.ServiceHybridDoubleWrite("default", new() + /// { + /// SourceNamespace = source.Id, + /// SourceUserId = @default.Apply(@default => @default.Apply(getAccountResult => getAccountResult.Id)), + /// Namespace = defaultNamespace.Id, + /// UserId = @default.Apply(@default => @default.Apply(getAccountResult => getAccountResult.Id)), + /// }); + /// + /// var ids = AliCloud.CloudMonitor.GetServiceHybridDoubleWrites.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultServiceHybridDoubleWrite.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cloudMonitorServiceHybridDoubleWritesId1"] = ids.Apply(getServiceHybridDoubleWritesResult => getServiceHybridDoubleWritesResult.HybridDoubleWrites[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetServiceHybridDoubleWritesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudmonitor/getServiceHybridDoubleWrites:getServiceHybridDoubleWrites", args ?? new GetServiceHybridDoubleWritesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudSso/GetAccessAssignments.cs b/sdk/dotnet/CloudSso/GetAccessAssignments.cs index cc34218161..e4c4e0ec08 100644 --- a/sdk/dotnet/CloudSso/GetAccessAssignments.cs +++ b/sdk/dotnet/CloudSso/GetAccessAssignments.cs @@ -88,6 +88,45 @@ public static Task InvokeAsync(GetAccessAssignmentsA /// public static Output Invoke(GetAccessAssignmentsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudsso/getAccessAssignments:getAccessAssignments", args ?? new GetAccessAssignmentsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cloud Sso Access Assignments of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.193.0+. + /// + /// > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.CloudSso.GetAccessAssignments.Invoke(new() + /// { + /// DirectoryId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cloudSsoAccessAssignmentId1"] = ids.Apply(getAccessAssignmentsResult => getAccessAssignmentsResult.Assignments[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAccessAssignmentsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudsso/getAccessAssignments:getAccessAssignments", args ?? new GetAccessAssignmentsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudSso/GetAccessConfigurations.cs b/sdk/dotnet/CloudSso/GetAccessConfigurations.cs index d32e02ac59..39fc7cfabd 100644 --- a/sdk/dotnet/CloudSso/GetAccessConfigurations.cs +++ b/sdk/dotnet/CloudSso/GetAccessConfigurations.cs @@ -102,6 +102,52 @@ public static Task InvokeAsync(GetAccessConfigura /// public static Output Invoke(GetAccessConfigurationsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudsso/getAccessConfigurations:getAccessConfigurations", args ?? new GetAccessConfigurationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cloud Sso Access Configurations of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.140.0+. + /// + /// > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.CloudSso.GetAccessConfigurations.Invoke(new() + /// { + /// DirectoryId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.CloudSso.GetAccessConfigurations.Invoke(new() + /// { + /// DirectoryId = "example_value", + /// NameRegex = "^my-AccessConfiguration", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cloudSsoAccessConfigurationId1"] = ids.Apply(getAccessConfigurationsResult => getAccessConfigurationsResult.Configurations[0]?.Id), + /// ["cloudSsoAccessConfigurationId2"] = nameRegex.Apply(getAccessConfigurationsResult => getAccessConfigurationsResult.Configurations[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAccessConfigurationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudsso/getAccessConfigurations:getAccessConfigurations", args ?? new GetAccessConfigurationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudSso/GetDirectories.cs b/sdk/dotnet/CloudSso/GetDirectories.cs index 64545e61e6..e8cefed9be 100644 --- a/sdk/dotnet/CloudSso/GetDirectories.cs +++ b/sdk/dotnet/CloudSso/GetDirectories.cs @@ -96,6 +96,49 @@ public static Task InvokeAsync(GetDirectoriesArgs? args = /// public static Output Invoke(GetDirectoriesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudsso/getDirectories:getDirectories", args ?? new GetDirectoriesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cloud Sso Directories of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.135.0+. + /// + /// > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.CloudSso.GetDirectories.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.CloudSso.GetDirectories.Invoke(new() + /// { + /// NameRegex = "^my-Directory", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cloudSsoDirectoryId1"] = ids.Apply(getDirectoriesResult => getDirectoriesResult.Directories[0]?.Id), + /// ["cloudSsoDirectoryId2"] = nameRegex.Apply(getDirectoriesResult => getDirectoriesResult.Directories[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDirectoriesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudsso/getDirectories:getDirectories", args ?? new GetDirectoriesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudSso/GetGroups.cs b/sdk/dotnet/CloudSso/GetGroups.cs index bece33ac41..8ce91904a1 100644 --- a/sdk/dotnet/CloudSso/GetGroups.cs +++ b/sdk/dotnet/CloudSso/GetGroups.cs @@ -102,6 +102,52 @@ public static Task InvokeAsync(GetGroupsArgs args, InvokeOption /// public static Output Invoke(GetGroupsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudsso/getGroups:getGroups", args ?? new GetGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cloud Sso Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.138.0+. + /// + /// > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.CloudSso.GetGroups.Invoke(new() + /// { + /// DirectoryId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.CloudSso.GetGroups.Invoke(new() + /// { + /// DirectoryId = "example_value", + /// NameRegex = "^my-Group", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cloudSsoGroupId1"] = ids.Apply(getGroupsResult => getGroupsResult.Groups[0]?.Id), + /// ["cloudSsoGroupId2"] = nameRegex.Apply(getGroupsResult => getGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudsso/getGroups:getGroups", args ?? new GetGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudSso/GetScimServerCredentials.cs b/sdk/dotnet/CloudSso/GetScimServerCredentials.cs index c05a76e3e1..c54d21fe09 100644 --- a/sdk/dotnet/CloudSso/GetScimServerCredentials.cs +++ b/sdk/dotnet/CloudSso/GetScimServerCredentials.cs @@ -90,6 +90,46 @@ public static Task InvokeAsync(GetScimServerCred /// public static Output Invoke(GetScimServerCredentialsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudsso/getScimServerCredentials:getScimServerCredentials", args ?? new GetScimServerCredentialsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cloud Sso Scim Server Credentials of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.138.0+. + /// + /// > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region + /// + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.CloudSso.GetScimServerCredentials.Invoke(new() + /// { + /// DirectoryId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cloudSsoScimServerCredentialId1"] = ids.Apply(getScimServerCredentialsResult => getScimServerCredentialsResult.Credentials[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetScimServerCredentialsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudsso/getScimServerCredentials:getScimServerCredentials", args ?? new GetScimServerCredentialsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudSso/GetService.cs b/sdk/dotnet/CloudSso/GetService.cs index 17fed182db..bb86c0bc9f 100644 --- a/sdk/dotnet/CloudSso/GetService.cs +++ b/sdk/dotnet/CloudSso/GetService.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetServiceArgs args, InvokeOpti /// public static Output Invoke(GetServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudsso/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open Cloud Sso Service automatically. + /// + /// For information about Cloud SSO and how to use it, see [What is Cloud SSO](https://www.alibabacloud.com/help/en/doc-detail/262819.html). + /// + /// > **NOTE:** Available in v1.148.0+. + /// + /// > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.CloudSso.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudsso/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudSso/GetUsers.cs b/sdk/dotnet/CloudSso/GetUsers.cs index 42218b79ae..5ecfc283d3 100644 --- a/sdk/dotnet/CloudSso/GetUsers.cs +++ b/sdk/dotnet/CloudSso/GetUsers.cs @@ -146,6 +146,74 @@ public static Task InvokeAsync(GetUsersArgs args, InvokeOptions? /// public static Output Invoke(GetUsersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudsso/getUsers:getUsers", args ?? new GetUsersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cloud Sso Users of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.140.0+. + /// + /// > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.CloudSso.GetUsers.Invoke(new() + /// { + /// DirectoryId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.CloudSso.GetUsers.Invoke(new() + /// { + /// DirectoryId = "example_value", + /// NameRegex = "^my-User", + /// }); + /// + /// var provisionType = AliCloud.CloudSso.GetUsers.Invoke(new() + /// { + /// DirectoryId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// }, + /// ProvisionType = "Manual", + /// }); + /// + /// var status = AliCloud.CloudSso.GetUsers.Invoke(new() + /// { + /// DirectoryId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// }, + /// Status = "Enabled", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cloudSsoUserId1"] = ids.Apply(getUsersResult => getUsersResult.Users[0]?.Id), + /// ["cloudSsoUserId2"] = nameRegex.Apply(getUsersResult => getUsersResult.Users[0]?.Id), + /// ["cloudSsoUserId3"] = provisionType.Apply(getUsersResult => getUsersResult.Users[0]?.Id), + /// ["cloudSsoUserId4"] = status.Apply(getUsersResult => getUsersResult.Users[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetUsersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudsso/getUsers:getUsers", args ?? new GetUsersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudStorageGateway/GetExpressSyncs.cs b/sdk/dotnet/CloudStorageGateway/GetExpressSyncs.cs index 0429a3a328..617fbf9f77 100644 --- a/sdk/dotnet/CloudStorageGateway/GetExpressSyncs.cs +++ b/sdk/dotnet/CloudStorageGateway/GetExpressSyncs.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetExpressSyncsArgs? args /// public static Output Invoke(GetExpressSyncsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudstoragegateway/getExpressSyncs:getExpressSyncs", args ?? new GetExpressSyncsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cloud Storage Gateway Express Syncs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.144.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.CloudStorageGateway.GetExpressSyncs.Invoke(); + /// + /// var nameRegex = AliCloud.CloudStorageGateway.GetExpressSyncs.Invoke(new() + /// { + /// NameRegex = "^my-ExpressSync", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cloudStorageGatewayExpressSyncId1"] = ids.Apply(getExpressSyncsResult => getExpressSyncsResult.Syncs[0]?.Id), + /// ["cloudStorageGatewayExpressSyncId2"] = nameRegex.Apply(getExpressSyncsResult => getExpressSyncsResult.Syncs[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetExpressSyncsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudstoragegateway/getExpressSyncs:getExpressSyncs", args ?? new GetExpressSyncsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudStorageGateway/GetGatewayBlockVolumes.cs b/sdk/dotnet/CloudStorageGateway/GetGatewayBlockVolumes.cs index c3a24a9807..ce6e01b5a2 100644 --- a/sdk/dotnet/CloudStorageGateway/GetGatewayBlockVolumes.cs +++ b/sdk/dotnet/CloudStorageGateway/GetGatewayBlockVolumes.cs @@ -98,6 +98,50 @@ public static Task InvokeAsync(GetGatewayBlockVolu /// public static Output Invoke(GetGatewayBlockVolumesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudstoragegateway/getGatewayBlockVolumes:getGatewayBlockVolumes", args ?? new GetGatewayBlockVolumesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cloud Storage Gateway Gateway Block Volumes of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.144.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.CloudStorageGateway.GetGatewayBlockVolumes.Invoke(new() + /// { + /// GatewayId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.CloudStorageGateway.GetGatewayBlockVolumes.Invoke(new() + /// { + /// GatewayId = "example_value", + /// NameRegex = "^my-GatewayBlockVolume", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cloudStorageGatewayGatewayBlockVolumeId1"] = ids.Apply(getGatewayBlockVolumesResult => getGatewayBlockVolumesResult.Volumes[0]?.Id), + /// ["cloudStorageGatewayGatewayBlockVolumeId2"] = nameRegex.Apply(getGatewayBlockVolumesResult => getGatewayBlockVolumesResult.Volumes[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetGatewayBlockVolumesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudstoragegateway/getGatewayBlockVolumes:getGatewayBlockVolumes", args ?? new GetGatewayBlockVolumesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudStorageGateway/GetGatewayCacheDisks.cs b/sdk/dotnet/CloudStorageGateway/GetGatewayCacheDisks.cs index 94e3b5bb5f..6e23c8c895 100644 --- a/sdk/dotnet/CloudStorageGateway/GetGatewayCacheDisks.cs +++ b/sdk/dotnet/CloudStorageGateway/GetGatewayCacheDisks.cs @@ -108,6 +108,55 @@ public static Task InvokeAsync(GetGatewayCacheDisksA /// public static Output Invoke(GetGatewayCacheDisksInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudstoragegateway/getGatewayCacheDisks:getGatewayCacheDisks", args ?? new GetGatewayCacheDisksInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cloud Storage Gateway Gateway Cache Disks of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.144.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.CloudStorageGateway.GetGatewayCacheDisks.Invoke(new() + /// { + /// GatewayId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// var status = AliCloud.CloudStorageGateway.GetGatewayCacheDisks.Invoke(new() + /// { + /// GatewayId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// Status = 0, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cloudStorageGatewayGatewayCacheDiskId1"] = ids.Apply(getGatewayCacheDisksResult => getGatewayCacheDisksResult.Disks[0]?.Id), + /// ["cloudStorageGatewayGatewayCacheDiskId2"] = status.Apply(getGatewayCacheDisksResult => getGatewayCacheDisksResult.Disks[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetGatewayCacheDisksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudstoragegateway/getGatewayCacheDisks:getGatewayCacheDisks", args ?? new GetGatewayCacheDisksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudStorageGateway/GetGatewayFileShares.cs b/sdk/dotnet/CloudStorageGateway/GetGatewayFileShares.cs index 78f0fa82fa..6ae0979778 100644 --- a/sdk/dotnet/CloudStorageGateway/GetGatewayFileShares.cs +++ b/sdk/dotnet/CloudStorageGateway/GetGatewayFileShares.cs @@ -98,6 +98,50 @@ public static Task InvokeAsync(GetGatewayFileSharesA /// public static Output Invoke(GetGatewayFileSharesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudstoragegateway/getGatewayFileShares:getGatewayFileShares", args ?? new GetGatewayFileSharesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cloud Storage Gateway Gateway File Shares of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.144.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.CloudStorageGateway.GetGatewayFileShares.Invoke(new() + /// { + /// GatewayId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.CloudStorageGateway.GetGatewayFileShares.Invoke(new() + /// { + /// GatewayId = "example_value", + /// NameRegex = "^my-GatewayFileShare", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cloudStorageGatewayGatewayFileShareId1"] = ids.Apply(getGatewayFileSharesResult => getGatewayFileSharesResult.Shares[0]?.Id), + /// ["cloudStorageGatewayGatewayFileShareId2"] = nameRegex.Apply(getGatewayFileSharesResult => getGatewayFileSharesResult.Shares[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetGatewayFileSharesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudstoragegateway/getGatewayFileShares:getGatewayFileShares", args ?? new GetGatewayFileSharesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudStorageGateway/GetGatewaySmbUsers.cs b/sdk/dotnet/CloudStorageGateway/GetGatewaySmbUsers.cs index fcb6377def..8dbd64ee9b 100644 --- a/sdk/dotnet/CloudStorageGateway/GetGatewaySmbUsers.cs +++ b/sdk/dotnet/CloudStorageGateway/GetGatewaySmbUsers.cs @@ -154,6 +154,78 @@ public static Task InvokeAsync(GetGatewaySmbUsersArgs /// public static Output Invoke(GetGatewaySmbUsersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudstoragegateway/getGatewaySmbUsers:getGatewaySmbUsers", args ?? new GetGatewaySmbUsersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cloud Storage Gateway Gateway SMB Users of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.142.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Vpc.GetNetworks.Invoke(new() + /// { + /// NameRegex = "default-NODELETING", + /// }); + /// + /// var defaultGetSwitches = AliCloud.Vpc.GetSwitches.Invoke(new() + /// { + /// VpcId = @default.Apply(getNetworksResult => getNetworksResult.Ids[0]), + /// }); + /// + /// var example = new AliCloud.CloudStorageGateway.StorageBundle("example", new() + /// { + /// StorageBundleName = "example_value", + /// }); + /// + /// var defaultGateway = new AliCloud.CloudStorageGateway.Gateway("default", new() + /// { + /// Description = "tf-acctestDesalone", + /// GatewayClass = "Standard", + /// Type = "File", + /// PaymentType = "PayAsYouGo", + /// VswitchId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]), + /// ReleaseAfterExpiration = false, + /// PublicNetworkBandwidth = 40, + /// StorageBundleId = example.Id, + /// Location = "Cloud", + /// GatewayName = "example_value", + /// }); + /// + /// var defaultGatewaySmbUser = new AliCloud.CloudStorageGateway.GatewaySmbUser("default", new() + /// { + /// Username = "your_username", + /// Password = "password", + /// GatewayId = defaultGateway.Id, + /// }); + /// + /// var ids = AliCloud.CloudStorageGateway.GetGatewaySmbUsers.Invoke(new() + /// { + /// GatewayId = defaultGateway.Id, + /// Ids = new[] + /// { + /// defaultGatewaySmbUser.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cloudStorageGatewayGatewaySmbUserId1"] = ids.Apply(getGatewaySmbUsersResult => getGatewaySmbUsersResult.Users[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetGatewaySmbUsersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudstoragegateway/getGatewaySmbUsers:getGatewaySmbUsers", args ?? new GetGatewaySmbUsersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudStorageGateway/GetGateways.cs b/sdk/dotnet/CloudStorageGateway/GetGateways.cs index e6d270fc5e..8a966a3d0f 100644 --- a/sdk/dotnet/CloudStorageGateway/GetGateways.cs +++ b/sdk/dotnet/CloudStorageGateway/GetGateways.cs @@ -86,6 +86,44 @@ public static Task InvokeAsync(GetGatewaysArgs args, InvokeOp /// public static Output Invoke(GetGatewaysInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudstoragegateway/getGateways:getGateways", args ?? new GetGatewaysInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cloud Storage Gateway Gateways of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.132.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = new AliCloud.CloudStorageGateway.StorageBundle("example", new() + /// { + /// StorageBundleName = "example_value", + /// }); + /// + /// var nameRegex = AliCloud.CloudStorageGateway.GetGateways.Invoke(new() + /// { + /// StorageBundleId = example.Id, + /// NameRegex = "^my-Gateway", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cloudStorageGatewayGatewayId"] = nameRegex.Apply(getGatewaysResult => getGatewaysResult.Gateways[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetGatewaysInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudstoragegateway/getGateways:getGateways", args ?? new GetGatewaysInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudStorageGateway/GetService.cs b/sdk/dotnet/CloudStorageGateway/GetService.cs index e7f14ba7be..201db785f4 100644 --- a/sdk/dotnet/CloudStorageGateway/GetService.cs +++ b/sdk/dotnet/CloudStorageGateway/GetService.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudstoragegateway/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open Cloud Storage Gateway service automatically. If the service has been opened, it will return opened. + /// + /// For information about Cloud Storage Gateway and how to use it, see [What is Cloud Storage Gateway](https://www.alibabacloud.com/help/en/product/53923.htm). + /// + /// > **NOTE:** Available in v1.117.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.CloudStorageGateway.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudstoragegateway/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudStorageGateway/GetStocks.cs b/sdk/dotnet/CloudStorageGateway/GetStocks.cs index 86512ab848..3f1c81ca73 100644 --- a/sdk/dotnet/CloudStorageGateway/GetStocks.cs +++ b/sdk/dotnet/CloudStorageGateway/GetStocks.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetStocksArgs? args = null, Invo /// public static Output Invoke(GetStocksInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudstoragegateway/getStocks:getStocks", args ?? new GetStocksInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cloud Storage Gateway Stocks of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.144.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.CloudStorageGateway.GetStocks.Invoke(new() + /// { + /// GatewayClass = "Advanced", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["zoneId"] = @default.Apply(@default => @default.Apply(getStocksResult => getStocksResult.Stocks[0]?.ZoneId)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetStocksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudstoragegateway/getStocks:getStocks", args ?? new GetStocksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudStorageGateway/GetStorageBundles.cs b/sdk/dotnet/CloudStorageGateway/GetStorageBundles.cs index 28bb9fa14c..dbfeba94ed 100644 --- a/sdk/dotnet/CloudStorageGateway/GetStorageBundles.cs +++ b/sdk/dotnet/CloudStorageGateway/GetStorageBundles.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetStorageBundlesArgs ar public static Output Invoke(GetStorageBundlesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudstoragegateway/getStorageBundles:getStorageBundles", args ?? new GetStorageBundlesInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetStorageBundlesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cloudstoragegateway/getStorageBundles:getStorageBundles", args ?? new GetStorageBundlesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cms/GetAlarmContactGroups.cs b/sdk/dotnet/Cms/GetAlarmContactGroups.cs index b30e591bf4..5ce0b224e6 100644 --- a/sdk/dotnet/Cms/GetAlarmContactGroups.cs +++ b/sdk/dotnet/Cms/GetAlarmContactGroups.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetAlarmContactGroup /// public static Output Invoke(GetAlarmContactGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getAlarmContactGroups:getAlarmContactGroups", args ?? new GetAlarmContactGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the CMS Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.101.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Cms.GetAlarmContactGroups.Invoke(new() + /// { + /// NameRegex = "tf-testacc", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAlarmContactGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getAlarmContactGroups:getAlarmContactGroups", args ?? new GetAlarmContactGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cms/GetAlarmContacts.cs b/sdk/dotnet/Cms/GetAlarmContacts.cs index fc4bff3185..f7a685c437 100644 --- a/sdk/dotnet/Cms/GetAlarmContacts.cs +++ b/sdk/dotnet/Cms/GetAlarmContacts.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetAlarmContactsArgs? arg /// public static Output Invoke(GetAlarmContactsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getAlarmContacts:getAlarmContacts", args ?? new GetAlarmContactsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides a list of alarm contact owned by an Alibaba Cloud account. + /// + /// > **NOTE:** Available in v1.99.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Cms.GetAlarmContacts.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "tf-testAccCmsAlarmContact", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["first-contact"] = @this.Contacts, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAlarmContactsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getAlarmContacts:getAlarmContacts", args ?? new GetAlarmContactsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cms/GetDynamicTagGroups.cs b/sdk/dotnet/Cms/GetDynamicTagGroups.cs index 346bac0572..51557ea19c 100644 --- a/sdk/dotnet/Cms/GetDynamicTagGroups.cs +++ b/sdk/dotnet/Cms/GetDynamicTagGroups.cs @@ -132,6 +132,67 @@ public static Task InvokeAsync(GetDynamicTagGroupsArg /// public static Output Invoke(GetDynamicTagGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getDynamicTagGroups:getDynamicTagGroups", args ?? new GetDynamicTagGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cms Dynamic Tag Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.142.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "example_value"; + /// var @default = new AliCloud.Cms.AlarmContactGroup("default", new() + /// { + /// AlarmContactGroupName = name, + /// Describe = "example_value", + /// EnableSubscribed = true, + /// }); + /// + /// var defaultDynamicTagGroup = new AliCloud.Cms.DynamicTagGroup("default", new() + /// { + /// ContactGroupLists = new[] + /// { + /// @default.Id, + /// }, + /// TagKey = "your_tag_key", + /// MatchExpresses = new[] + /// { + /// new AliCloud.Cms.Inputs.DynamicTagGroupMatchExpressArgs + /// { + /// TagValue = "your_tag_value", + /// TagValueMatchFunction = "all", + /// }, + /// }, + /// }); + /// + /// var ids = AliCloud.Cms.GetDynamicTagGroups.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultDynamicTagGroup.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cmsDynamicTagGroupId1"] = ids.Apply(getDynamicTagGroupsResult => getDynamicTagGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDynamicTagGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getDynamicTagGroups:getDynamicTagGroups", args ?? new GetDynamicTagGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cms/GetEventRules.cs b/sdk/dotnet/Cms/GetEventRules.cs index 193e6e1b89..c380937064 100644 --- a/sdk/dotnet/Cms/GetEventRules.cs +++ b/sdk/dotnet/Cms/GetEventRules.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetEventRulesArgs? args = nu /// public static Output Invoke(GetEventRulesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getEventRules:getEventRules", args ?? new GetEventRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cms Event Rules of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.182.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Cms.GetEventRules.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Cms.GetEventRules.Invoke(new() + /// { + /// NameRegex = "^my-EventRule", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cmsEventRuleId1"] = ids.Apply(getEventRulesResult => getEventRulesResult.Rules[0]?.Id), + /// ["cmsEventRuleId2"] = nameRegex.Apply(getEventRulesResult => getEventRulesResult.Rules[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEventRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getEventRules:getEventRules", args ?? new GetEventRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cms/GetGroupMetricRules.cs b/sdk/dotnet/Cms/GetGroupMetricRules.cs index 111bc0e308..061b5fa942 100644 --- a/sdk/dotnet/Cms/GetGroupMetricRules.cs +++ b/sdk/dotnet/Cms/GetGroupMetricRules.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetGroupMetricRulesArg /// public static Output Invoke(GetGroupMetricRulesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getGroupMetricRules:getGroupMetricRules", args ?? new GetGroupMetricRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cms Group Metric Rules of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.104.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Cms.GetGroupMetricRules.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "4a9a8978-a9cc-55ca-aa7c-530ccd91ae57", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstCmsGroupMetricRuleId"] = example.Apply(getGroupMetricRulesResult => getGroupMetricRulesResult.Rules[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetGroupMetricRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getGroupMetricRules:getGroupMetricRules", args ?? new GetGroupMetricRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cms/GetHybridMonitorDatas.cs b/sdk/dotnet/Cms/GetHybridMonitorDatas.cs index e26a3278d2..bc490598e3 100644 --- a/sdk/dotnet/Cms/GetHybridMonitorDatas.cs +++ b/sdk/dotnet/Cms/GetHybridMonitorDatas.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetHybridMonitorData /// public static Output Invoke(GetHybridMonitorDatasInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getHybridMonitorDatas:getHybridMonitorDatas", args ?? new GetHybridMonitorDatasInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cms Hybrid Monitor Datas of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.177.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Cms.GetHybridMonitorDatas.Invoke(new() + /// { + /// Namespace = "example_value", + /// PromSql = "AliyunEcs_cpu_total", + /// Start = "1657505665", + /// End = "1657520065", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cmsMetricRuleTemplateId1"] = @default.Apply(@default => @default.Apply(getHybridMonitorDatasResult => getHybridMonitorDatasResult.Datas[0])), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetHybridMonitorDatasInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getHybridMonitorDatas:getHybridMonitorDatas", args ?? new GetHybridMonitorDatasInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cms/GetHybridMonitorFcTasks.cs b/sdk/dotnet/Cms/GetHybridMonitorFcTasks.cs index 3c9cdff8a9..fd12b76d7d 100644 --- a/sdk/dotnet/Cms/GetHybridMonitorFcTasks.cs +++ b/sdk/dotnet/Cms/GetHybridMonitorFcTasks.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetHybridMonitorFc /// public static Output Invoke(GetHybridMonitorFcTasksInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getHybridMonitorFcTasks:getHybridMonitorFcTasks", args ?? new GetHybridMonitorFcTasksInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cms Hybrid Monitor Fc Tasks of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.179.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Cms.GetHybridMonitorFcTasks.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cmsHybridMonitorFcTaskId1"] = ids.Apply(getHybridMonitorFcTasksResult => getHybridMonitorFcTasksResult.Tasks[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetHybridMonitorFcTasksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getHybridMonitorFcTasks:getHybridMonitorFcTasks", args ?? new GetHybridMonitorFcTasksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cms/GetHybridMonitorSlsTasks.cs b/sdk/dotnet/Cms/GetHybridMonitorSlsTasks.cs index d4a7ed6bc0..13e73b3df2 100644 --- a/sdk/dotnet/Cms/GetHybridMonitorSlsTasks.cs +++ b/sdk/dotnet/Cms/GetHybridMonitorSlsTasks.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetHybridMonitorS /// public static Output Invoke(GetHybridMonitorSlsTasksInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getHybridMonitorSlsTasks:getHybridMonitorSlsTasks", args ?? new GetHybridMonitorSlsTasksInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cms Hybrid Monitor Sls Tasks of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.179.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Cms.GetHybridMonitorSlsTasks.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cmsHybridMonitorSlsTaskId1"] = ids.Apply(getHybridMonitorSlsTasksResult => getHybridMonitorSlsTasksResult.Tasks[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetHybridMonitorSlsTasksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getHybridMonitorSlsTasks:getHybridMonitorSlsTasks", args ?? new GetHybridMonitorSlsTasksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cms/GetMetricRuleBlackLists.cs b/sdk/dotnet/Cms/GetMetricRuleBlackLists.cs index 984104f809..dfa766fd3b 100644 --- a/sdk/dotnet/Cms/GetMetricRuleBlackLists.cs +++ b/sdk/dotnet/Cms/GetMetricRuleBlackLists.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetMetricRuleBlack /// public static Output Invoke(GetMetricRuleBlackListsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getMetricRuleBlackLists:getMetricRuleBlackLists", args ?? new GetMetricRuleBlackListsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Cloud Monitor Service Metric Rule Black List available to the user.[What is Metric Rule Black List](https://www.alibabacloud.com/help/en/cloudmonitor/latest/describemetricruleblacklist) + /// + /// > **NOTE:** Available in 1.194.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Cms.GetMetricRuleBlackLists.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAlicloudCmsMetricRuleBlackLists.Id, + /// }, + /// Category = "ecs", + /// Namespace = "acs_ecs_dashboard", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudCmsRuleBlackListExampleId"] = lists[0].Id, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetMetricRuleBlackListsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getMetricRuleBlackLists:getMetricRuleBlackLists", args ?? new GetMetricRuleBlackListsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cms/GetMetricRuleTemplates.cs b/sdk/dotnet/Cms/GetMetricRuleTemplates.cs index 99604797a6..797822170e 100644 --- a/sdk/dotnet/Cms/GetMetricRuleTemplates.cs +++ b/sdk/dotnet/Cms/GetMetricRuleTemplates.cs @@ -116,6 +116,59 @@ public static Task InvokeAsync(GetMetricRuleTempla /// public static Output Invoke(GetMetricRuleTemplatesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getMetricRuleTemplates:getMetricRuleTemplates", args ?? new GetMetricRuleTemplatesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cms Metric Rule Templates of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.134.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Cms.GetMetricRuleTemplates.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Cms.GetMetricRuleTemplates.Invoke(new() + /// { + /// NameRegex = "^my-MetricRuleTemplate", + /// }); + /// + /// var keyword = AliCloud.Cms.GetMetricRuleTemplates.Invoke(new() + /// { + /// Keyword = "^my-MetricRuleTemplate", + /// }); + /// + /// var templateId = AliCloud.Cms.GetMetricRuleTemplates.Invoke(new() + /// { + /// TemplateId = "example_value", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cmsMetricRuleTemplateId1"] = ids.Apply(getMetricRuleTemplatesResult => getMetricRuleTemplatesResult.Templates[0]?.Id), + /// ["cmsMetricRuleTemplateId2"] = nameRegex.Apply(getMetricRuleTemplatesResult => getMetricRuleTemplatesResult.Templates[0]?.Id), + /// ["cmsMetricRuleTemplateId3"] = nameRegex.Apply(getMetricRuleTemplatesResult => getMetricRuleTemplatesResult.Templates[0]?.Id), + /// ["cmsMetricRuleTemplateId4"] = nameRegex.Apply(getMetricRuleTemplatesResult => getMetricRuleTemplatesResult.Templates[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetMetricRuleTemplatesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getMetricRuleTemplates:getMetricRuleTemplates", args ?? new GetMetricRuleTemplatesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cms/GetMonitorGroupInstances.cs b/sdk/dotnet/Cms/GetMonitorGroupInstances.cs index f83c342539..4a56ca4931 100644 --- a/sdk/dotnet/Cms/GetMonitorGroupInstances.cs +++ b/sdk/dotnet/Cms/GetMonitorGroupInstances.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetMonitorGroupIn public static Output Invoke(GetMonitorGroupInstancesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getMonitorGroupInstances:getMonitorGroupInstances", args ?? new GetMonitorGroupInstancesInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetMonitorGroupInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getMonitorGroupInstances:getMonitorGroupInstances", args ?? new GetMonitorGroupInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cms/GetMonitorGroups.cs b/sdk/dotnet/Cms/GetMonitorGroups.cs index f2c7fe545f..018ec28413 100644 --- a/sdk/dotnet/Cms/GetMonitorGroups.cs +++ b/sdk/dotnet/Cms/GetMonitorGroups.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetMonitorGroupsArgs? arg /// public static Output Invoke(GetMonitorGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getMonitorGroups:getMonitorGroups", args ?? new GetMonitorGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cms Monitor Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.113.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Cms.GetMonitorGroups.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstCmsMonitorGroupId"] = example.Apply(getMonitorGroupsResult => getMonitorGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetMonitorGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getMonitorGroups:getMonitorGroups", args ?? new GetMonitorGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cms/GetNamespaces.cs b/sdk/dotnet/Cms/GetNamespaces.cs index 41d144edf1..47c8c71edb 100644 --- a/sdk/dotnet/Cms/GetNamespaces.cs +++ b/sdk/dotnet/Cms/GetNamespaces.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetNamespacesArgs? args = nu /// public static Output Invoke(GetNamespacesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getNamespaces:getNamespaces", args ?? new GetNamespacesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cms Namespaces of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.171.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Cms.GetNamespaces.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cmsNamespaceId1"] = ids.Apply(getNamespacesResult => getNamespacesResult.Namespaces[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetNamespacesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getNamespaces:getNamespaces", args ?? new GetNamespacesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cms/GetService.cs b/sdk/dotnet/Cms/GetService.cs index bf2c60bcf3..547ac30c21 100644 --- a/sdk/dotnet/Cms/GetService.cs +++ b/sdk/dotnet/Cms/GetService.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open CMS service automatically. If the service has been opened, it will return opened. + /// + /// For information about CMS and how to use it, see [What is CMS](https://help.aliyun.com/product/28572.html). + /// + /// > **NOTE:** Available in v1.111.0+ + /// + /// > **DEPRECATED:** This data source has been deprecated from version `1.219.0`. The Cloud Monitor Service is no longer needed to open in the product dimension and the OpenAPI has been taken [offline](https://api.alibabacloud.com/api/Cms/2019-01-01/OpenCmsService). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.Cms.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cms/GetSiteMonitors.cs b/sdk/dotnet/Cms/GetSiteMonitors.cs index 0b6d0f5260..fd9e22318a 100644 --- a/sdk/dotnet/Cms/GetSiteMonitors.cs +++ b/sdk/dotnet/Cms/GetSiteMonitors.cs @@ -160,6 +160,81 @@ public static Task InvokeAsync(GetSiteMonitorsArgs? args /// public static Output Invoke(GetSiteMonitorsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getSiteMonitors:getSiteMonitors", args ?? new GetSiteMonitorsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Cloud Monitor Service Site Monitor available to the user.[What is Site Monitor](https://www.alibabacloud.com/help/en/) + /// + /// > **NOTE:** Available since v1.224.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// using Random = Pulumi.Random; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "tf_example"; + /// var defaultInteger = new Random.Index.Integer("default", new() + /// { + /// Min = 10000, + /// Max = 99999, + /// }); + /// + /// var defaultSiteMonitor = new AliCloud.Cms.SiteMonitor("default", new() + /// { + /// Address = "http://www.alibabacloud.com", + /// TaskName = $"terraform-example-{defaultInteger.Result}", + /// TaskType = "HTTP", + /// Interval = 5, + /// IspCities = new[] + /// { + /// new AliCloud.Cms.Inputs.SiteMonitorIspCityArgs + /// { + /// City = "546", + /// Isp = "465", + /// }, + /// }, + /// OptionsJson = @"{ + /// ""http_method"": ""get"", + /// ""waitTime_after_completion"": null, + /// ""ipv6_task"": false, + /// ""diagnosis_ping"": false, + /// ""diagnosis_mtr"": false, + /// ""assertions"": [ + /// { + /// ""operator"": ""lessThan"", + /// ""type"": ""response_time"", + /// ""target"": 1000 + /// } + /// ], + /// ""time_out"": 30000 + /// } + /// ", + /// }); + /// + /// var @default = AliCloud.Cms.GetSiteMonitors.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultSiteMonitor.Id, + /// }, + /// TaskType = "HTTP", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudCmsSiteMonitorExampleId"] = @default.Apply(@default => @default.Apply(getSiteMonitorsResult => getSiteMonitorsResult.Monitors[0]?.TaskId)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSiteMonitorsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getSiteMonitors:getSiteMonitors", args ?? new GetSiteMonitorsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Cms/GetSlsGroups.cs b/sdk/dotnet/Cms/GetSlsGroups.cs index ef46dc5870..a553e9327f 100644 --- a/sdk/dotnet/Cms/GetSlsGroups.cs +++ b/sdk/dotnet/Cms/GetSlsGroups.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetSlsGroupsArgs? args = null /// public static Output Invoke(GetSlsGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getSlsGroups:getSlsGroups", args ?? new GetSlsGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Cms Sls Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.171.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Cms.GetSlsGroups.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Cms.GetSlsGroups.Invoke(new() + /// { + /// NameRegex = "^my-SlsGroup", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cmsSlsGroupId1"] = ids.Apply(getSlsGroupsResult => getSlsGroupsResult.Groups[0]?.Id), + /// ["cmsSlsGroupId2"] = nameRegex.Apply(getSlsGroupsResult => getSlsGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSlsGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:cms/getSlsGroups:getSlsGroups", args ?? new GetSlsGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetNestServiceInstances.cs b/sdk/dotnet/Compute/GetNestServiceInstances.cs index 18c32a1dda..f57d1a6312 100644 --- a/sdk/dotnet/Compute/GetNestServiceInstances.cs +++ b/sdk/dotnet/Compute/GetNestServiceInstances.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetNestServiceInst /// public static Output Invoke(GetNestServiceInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:compute/getNestServiceInstances:getNestServiceInstances", args ?? new GetNestServiceInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Compute Nest Service Instances of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.205.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Compute.GetNestServiceInstances.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Compute.GetNestServiceInstances.Invoke(new() + /// { + /// NameRegex = "tf-example", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["armsPrometheisId1"] = ids.Apply(getNestServiceInstancesResult => getNestServiceInstancesResult.ServiceInstances[0]?.Id), + /// ["armsPrometheisId2"] = nameRegex.Apply(getNestServiceInstancesResult => getNestServiceInstancesResult.ServiceInstances[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetNestServiceInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:compute/getNestServiceInstances:getNestServiceInstances", args ?? new GetNestServiceInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DBS/GetBackupPlans.cs b/sdk/dotnet/DBS/GetBackupPlans.cs index 06d8c15b51..826ebd5c0d 100644 --- a/sdk/dotnet/DBS/GetBackupPlans.cs +++ b/sdk/dotnet/DBS/GetBackupPlans.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetBackupPlansArgs? args = /// public static Output Invoke(GetBackupPlansInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dbs/getBackupPlans:getBackupPlans", args ?? new GetBackupPlansInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Dbs Backup Plans of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.185.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.DBS.GetBackupPlans.Invoke(); + /// + /// var nameRegex = AliCloud.DBS.GetBackupPlans.Invoke(new() + /// { + /// NameRegex = "^my-BackupPlan", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["dbsBackupPlanId1"] = ids.Apply(getBackupPlansResult => getBackupPlansResult.Plans[0]?.Id), + /// ["dbsBackupPlanId2"] = nameRegex.Apply(getBackupPlansResult => getBackupPlansResult.Plans[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBackupPlansInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dbs/getBackupPlans:getBackupPlans", args ?? new GetBackupPlansInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataWorks/GetFolders.cs b/sdk/dotnet/DataWorks/GetFolders.cs index b5da1c3843..3466f16c5e 100644 --- a/sdk/dotnet/DataWorks/GetFolders.cs +++ b/sdk/dotnet/DataWorks/GetFolders.cs @@ -96,6 +96,49 @@ public static Task InvokeAsync(GetFoldersArgs args, InvokeOpti /// public static Output Invoke(GetFoldersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dataworks/getFolders:getFolders", args ?? new GetFoldersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Data Works Folders of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.131.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = new AliCloud.DataWorks.Folder("default", new() + /// { + /// ProjectId = "xxxx", + /// FolderPath = "Business Flow/tfTestAcc/folderDi", + /// }); + /// + /// var ids = AliCloud.DataWorks.GetFolders.Invoke(new() + /// { + /// Ids = new[] + /// { + /// @default.FolderId, + /// }, + /// ProjectId = @default.ProjectId, + /// ParentFolderPath = "Business Flow/tfTestAcc/folderDi", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["dataWorksFolderId1"] = ids.Apply(getFoldersResult => getFoldersResult.Folders[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetFoldersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dataworks/getFolders:getFolders", args ?? new GetFoldersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataWorks/GetService.cs b/sdk/dotnet/DataWorks/GetService.cs index 46ef511d89..0e6125105e 100644 --- a/sdk/dotnet/DataWorks/GetService.cs +++ b/sdk/dotnet/DataWorks/GetService.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dataworks/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open DataWorks service automatically. If the service has been opened, it will return opened. + /// + /// For information about DataWorks and how to use it, see [What is DataWorks](https://www.alibabacloud.com/help/en/product/72772.htm). + /// + /// > **NOTE:** Available in v1.118.0+. After the version 1.141.0, the data source is renamed as `alicloud.dataworks.getService`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.DataWorks.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dataworks/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DatabaseFilesystem/GetAutoSnapShotPolicies.cs b/sdk/dotnet/DatabaseFilesystem/GetAutoSnapShotPolicies.cs index 679cff3032..77367bb8f2 100644 --- a/sdk/dotnet/DatabaseFilesystem/GetAutoSnapShotPolicies.cs +++ b/sdk/dotnet/DatabaseFilesystem/GetAutoSnapShotPolicies.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetAutoSnapShotPol /// public static Output Invoke(GetAutoSnapShotPoliciesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:databasefilesystem/getAutoSnapShotPolicies:getAutoSnapShotPolicies", args ?? new GetAutoSnapShotPoliciesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Dbfs Auto Snap Shot Policy available to the user.[What is Auto Snap Shot Policy](https://help.aliyun.com/document_detail/469597.html) + /// + /// > **NOTE:** Available in 1.202.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.DatabaseFilesystem.GetAutoSnapShotPolicies.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAlicloudDbfsAutoSnapShotPolicy.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudDbfsAutoSnapShotPolicyExampleId"] = @default.Apply(@default => @default.Apply(getAutoSnapShotPoliciesResult => getAutoSnapShotPoliciesResult.AutoSnapShotPolicies[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAutoSnapShotPoliciesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:databasefilesystem/getAutoSnapShotPolicies:getAutoSnapShotPolicies", args ?? new GetAutoSnapShotPoliciesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DatabaseFilesystem/GetInstances.cs b/sdk/dotnet/DatabaseFilesystem/GetInstances.cs index 92ff54dcc9..8faf6002ad 100644 --- a/sdk/dotnet/DatabaseFilesystem/GetInstances.cs +++ b/sdk/dotnet/DatabaseFilesystem/GetInstances.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:databasefilesystem/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the DBFS Instances of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.136.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.DatabaseFilesystem.GetInstances.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.DatabaseFilesystem.GetInstances.Invoke(new() + /// { + /// NameRegex = "^my-Instance", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["dbfsInstanceId1"] = ids.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id), + /// ["dbfsInstanceId2"] = nameRegex.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:databasefilesystem/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DatabaseFilesystem/GetSnapshots.cs b/sdk/dotnet/DatabaseFilesystem/GetSnapshots.cs index 7ef0bb5360..00dddea32f 100644 --- a/sdk/dotnet/DatabaseFilesystem/GetSnapshots.cs +++ b/sdk/dotnet/DatabaseFilesystem/GetSnapshots.cs @@ -104,6 +104,53 @@ public static Task InvokeAsync(GetSnapshotsArgs? args = null /// public static Output Invoke(GetSnapshotsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:databasefilesystem/getSnapshots:getSnapshots", args ?? new GetSnapshotsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Dbfs Snapshots of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.156.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.DatabaseFilesystem.GetSnapshots.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.DatabaseFilesystem.GetSnapshots.Invoke(new() + /// { + /// NameRegex = "^my-Snapshot", + /// }); + /// + /// var status = AliCloud.DatabaseFilesystem.GetSnapshots.Invoke(new() + /// { + /// Status = "accomplished", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["dbfsSnapshotId1"] = ids.Apply(getSnapshotsResult => getSnapshotsResult.Snapshots[0]?.Id), + /// ["dbfsSnapshotId2"] = nameRegex.Apply(getSnapshotsResult => getSnapshotsResult.Snapshots[0]?.Id), + /// ["dbfsSnapshotId3"] = status.Apply(getSnapshotsResult => getSnapshotsResult.Snapshots[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSnapshotsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:databasefilesystem/getSnapshots:getSnapshots", args ?? new GetSnapshotsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DatabaseGateway/GetGateways.cs b/sdk/dotnet/DatabaseGateway/GetGateways.cs index d0d545a9c9..746e5cb2ea 100644 --- a/sdk/dotnet/DatabaseGateway/GetGateways.cs +++ b/sdk/dotnet/DatabaseGateway/GetGateways.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetGatewaysArgs? args = null, /// public static Output Invoke(GetGatewaysInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:databasegateway/getGateways:getGateways", args ?? new GetGatewaysInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Database Gateway Gateways of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.135.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.DatabaseGateway.GetGateways.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.DatabaseGateway.GetGateways.Invoke(new() + /// { + /// NameRegex = "^my-Gateway", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["databaseGatewayGatewayId1"] = ids.Apply(getGatewaysResult => getGatewaysResult.Gateways[0]?.Id), + /// ["databaseGatewayGatewayId2"] = nameRegex.Apply(getGatewaysResult => getGatewaysResult.Gateways[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetGatewaysInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:databasegateway/getGateways:getGateways", args ?? new GetGatewaysInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Datahub/GetService.cs b/sdk/dotnet/Datahub/GetService.cs index 32b54f5da3..f3c078dd05 100644 --- a/sdk/dotnet/Datahub/GetService.cs +++ b/sdk/dotnet/Datahub/GetService.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:datahub/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open DataHub service automatically. If the service has been opened, it will return opened. + /// + /// For information about DataHub and how to use it, see [What is DataHub](https://help.aliyun.com/product/53345.html). + /// + /// > **NOTE:** Available in v1.111.0+ + /// + /// > **NOTE:** The DataHub service is not support in the international site. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.Datahub.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:datahub/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dcdn/GetDomains.cs b/sdk/dotnet/Dcdn/GetDomains.cs index 30ba6175a5..0a0be3c0b2 100644 --- a/sdk/dotnet/Dcdn/GetDomains.cs +++ b/sdk/dotnet/Dcdn/GetDomains.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetDomainsArgs? args = null, In /// public static Output Invoke(GetDomainsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dcdn/getDomains:getDomains", args ?? new GetDomainsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides a collection of DCDN Domains to the specified filters. + /// + /// > **NOTE:** Available in 1.94.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Dcdn.GetDomains.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example.com", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["domainId"] = example.Apply(getDomainsResult => getDomainsResult.Domains[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDomainsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dcdn/getDomains:getDomains", args ?? new GetDomainsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dcdn/GetIpaDomains.cs b/sdk/dotnet/Dcdn/GetIpaDomains.cs index cf2df6976a..8540182596 100644 --- a/sdk/dotnet/Dcdn/GetIpaDomains.cs +++ b/sdk/dotnet/Dcdn/GetIpaDomains.cs @@ -96,6 +96,49 @@ public static Task InvokeAsync(GetIpaDomainsArgs? args = nu /// public static Output Invoke(GetIpaDomainsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dcdn/getIpaDomains:getIpaDomains", args ?? new GetIpaDomainsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Dcdn Ipa Domains of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.158.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Dcdn.GetIpaDomains.Invoke(new() + /// { + /// DomainName = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// var status = AliCloud.Dcdn.GetIpaDomains.Invoke(new() + /// { + /// Status = "online", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["dcdnIpaDomainId1"] = ids.Apply(getIpaDomainsResult => getIpaDomainsResult.Domains[0]?.Id), + /// ["dcdnIpaDomainId2"] = status.Apply(getIpaDomainsResult => getIpaDomainsResult.Domains[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetIpaDomainsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dcdn/getIpaDomains:getIpaDomains", args ?? new GetIpaDomainsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dcdn/GetKvAccount.cs b/sdk/dotnet/Dcdn/GetKvAccount.cs index eb2316fa04..2c2e5b0ae7 100644 --- a/sdk/dotnet/Dcdn/GetKvAccount.cs +++ b/sdk/dotnet/Dcdn/GetKvAccount.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetKvAccountArgs? args = null /// public static Output Invoke(GetKvAccountInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dcdn/getKvAccount:getKvAccount", args ?? new GetKvAccountInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides DCDN kv account available to the user.[What is DCDN Kv Account](https://www.alibabacloud.com/help/en/dcdn/developer-reference/api-dcdn-2018-01-15-describedcdnkvaccount) + /// + /// > **NOTE:** Available since v1.198.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var status = AliCloud.Dcdn.GetKvAccount.Invoke(new() + /// { + /// Status = "online", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetKvAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dcdn/getKvAccount:getKvAccount", args ?? new GetKvAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dcdn/GetService.cs b/sdk/dotnet/Dcdn/GetService.cs index 36aa1235e1..1ade886ce2 100644 --- a/sdk/dotnet/Dcdn/GetService.cs +++ b/sdk/dotnet/Dcdn/GetService.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dcdn/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open DCDN service automatically. If the service has been opened, it will return opened. + /// + /// For information about DCDN and how to use it, see [What is DCDN](https://help.aliyun.com/document_detail/197288.html). + /// + /// > **NOTE:** Available in v1.111.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.Dcdn.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dcdn/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dcdn/GetWafDomains.cs b/sdk/dotnet/Dcdn/GetWafDomains.cs index 0ad30a981e..39a470732f 100644 --- a/sdk/dotnet/Dcdn/GetWafDomains.cs +++ b/sdk/dotnet/Dcdn/GetWafDomains.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetWafDomainsArgs? args = nu /// public static Output Invoke(GetWafDomainsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dcdn/getWafDomains:getWafDomains", args ?? new GetWafDomainsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Dcdn Waf Domains of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.185.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Dcdn.GetWafDomains.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["dcdnWafDomainId1"] = ids.Apply(getWafDomainsResult => getWafDomainsResult.Domains[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetWafDomainsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dcdn/getWafDomains:getWafDomains", args ?? new GetWafDomainsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dcdn/GetWafPolicies.cs b/sdk/dotnet/Dcdn/GetWafPolicies.cs index 10a8182606..564c15ebb0 100644 --- a/sdk/dotnet/Dcdn/GetWafPolicies.cs +++ b/sdk/dotnet/Dcdn/GetWafPolicies.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetWafPoliciesArgs? args = /// public static Output Invoke(GetWafPoliciesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dcdn/getWafPolicies:getWafPolicies", args ?? new GetWafPoliciesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Dcdn Waf Policies of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.184.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Dcdn.GetWafPolicies.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["dcdnWafPolicyId1"] = ids.Apply(getWafPoliciesResult => getWafPoliciesResult.Policies[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetWafPoliciesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dcdn/getWafPolicies:getWafPolicies", args ?? new GetWafPoliciesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dcdn/GetWafRules.cs b/sdk/dotnet/Dcdn/GetWafRules.cs index 69192d0647..dbfb5ac521 100644 --- a/sdk/dotnet/Dcdn/GetWafRules.cs +++ b/sdk/dotnet/Dcdn/GetWafRules.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetWafRulesArgs? args = null, /// public static Output Invoke(GetWafRulesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dcdn/getWafRules:getWafRules", args ?? new GetWafRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Dcdn Waf Rule available to the user.[What is Waf Rule](https://www.alibabacloud.com/help/en/dcdn/developer-reference/api-dcdn-2018-01-15-batchcreatedcdnwafrules) + /// + /// > **NOTE:** Available since v1.201.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Dcdn.GetWafRules.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAlicloudDcdnWafRule.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudDcdnWafRuleExampleId"] = @default.Apply(@default => @default.Apply(getWafRulesResult => getWafRulesResult.WafRules[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetWafRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dcdn/getWafRules:getWafRules", args ?? new GetWafRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ddos/GetDdosBgpInstances.cs b/sdk/dotnet/Ddos/GetDdosBgpInstances.cs index 050617d0bd..bc1b438bd3 100644 --- a/sdk/dotnet/Ddos/GetDdosBgpInstances.cs +++ b/sdk/dotnet/Ddos/GetDdosBgpInstances.cs @@ -102,6 +102,52 @@ public static Task InvokeAsync(GetDdosBgpInstancesArg /// public static Output Invoke(GetDdosBgpInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ddos/getDdosBgpInstances:getDdosBgpInstances", args ?? new GetDdosBgpInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of Anti-DDoS Advanced instances in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in v1.183.0+ . + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "tf-example"; + /// var instanceDdosBgpInstance = new AliCloud.Ddos.DdosBgpInstance("instance", new() + /// { + /// Name = name, + /// BaseBandwidth = 20, + /// Bandwidth = -1, + /// IpCount = 100, + /// IpType = "IPv4", + /// NormalBandwidth = 100, + /// Type = "Enterprise", + /// }); + /// + /// var instance = AliCloud.Ddos.GetDdosBgpInstances.Invoke(new() + /// { + /// NameRegex = "ddosbgp", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["instance"] = new[] + /// { + /// instance, + /// }.Select(__item => __item.Id).ToList(), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDdosBgpInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ddos/getDdosBgpInstances:getDdosBgpInstances", args ?? new GetDdosBgpInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ddos/GetDdosBgpIps.cs b/sdk/dotnet/Ddos/GetDdosBgpIps.cs index a5ff557c1e..5ac812b825 100644 --- a/sdk/dotnet/Ddos/GetDdosBgpIps.cs +++ b/sdk/dotnet/Ddos/GetDdosBgpIps.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetDdosBgpIpsArgs args, Invo /// public static Output Invoke(GetDdosBgpIpsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ddos/getDdosBgpIps:getDdosBgpIps", args ?? new GetDdosBgpIpsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ddos Bgp Ips of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.180.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ddos.GetDdosBgpIps.Invoke(new() + /// { + /// InstanceId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ddosbgpIpId1"] = ids.Apply(getDdosBgpIpsResult => getDdosBgpIpsResult.Ips[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDdosBgpIpsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ddos/getDdosBgpIps:getDdosBgpIps", args ?? new GetDdosBgpIpsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ddos/GetDdosCooDomainResources.cs b/sdk/dotnet/Ddos/GetDdosCooDomainResources.cs index 9e56a224e9..f9cceb6dad 100644 --- a/sdk/dotnet/Ddos/GetDdosCooDomainResources.cs +++ b/sdk/dotnet/Ddos/GetDdosCooDomainResources.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetDdosCooDomain /// public static Output Invoke(GetDdosCooDomainResourcesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ddos/getDdosCooDomainResources:getDdosCooDomainResources", args ?? new GetDdosCooDomainResourcesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ddoscoo Domain Resources of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.123.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Ddos.GetDdosCooDomainResources.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "tftestacc1234.abc", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstDdoscooDomainResourceId"] = example.Apply(getDdosCooDomainResourcesResult => getDdosCooDomainResourcesResult.Resources[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDdosCooDomainResourcesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ddos/getDdosCooDomainResources:getDdosCooDomainResources", args ?? new GetDdosCooDomainResourcesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ddos/GetDdosCooInstances.cs b/sdk/dotnet/Ddos/GetDdosCooInstances.cs index f3245faa92..e40e2e7689 100644 --- a/sdk/dotnet/Ddos/GetDdosCooInstances.cs +++ b/sdk/dotnet/Ddos/GetDdosCooInstances.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetDdosCooInstancesArg /// public static Output Invoke(GetDdosCooInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ddos/getDdosCooInstances:getDdosCooInstances", args ?? new GetDdosCooInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the BGP-Line Anti-DDoS Pro(DdosCoo) instances of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.39.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Ddos.GetDdosCooInstances.Invoke(new() + /// { + /// NameRegex = "tf", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["instance"] = @default.Apply(@default => @default.Apply(getDdosCooInstancesResult => getDdosCooInstancesResult.Instances).Select(__item => __item.Id).ToList()), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDdosCooInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ddos/getDdosCooInstances:getDdosCooInstances", args ?? new GetDdosCooInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ddos/GetDdosCooPorts.cs b/sdk/dotnet/Ddos/GetDdosCooPorts.cs index 368aca48f3..8d763b1ae5 100644 --- a/sdk/dotnet/Ddos/GetDdosCooPorts.cs +++ b/sdk/dotnet/Ddos/GetDdosCooPorts.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetDdosCooPortsArgs args, /// public static Output Invoke(GetDdosCooPortsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ddos/getDdosCooPorts:getDdosCooPorts", args ?? new GetDdosCooPortsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ddoscoo Ports of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.123.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Ddos.GetDdosCooPorts.Invoke(new() + /// { + /// InstanceId = "ddoscoo-cn-6ja1rl4j****", + /// Ids = new[] + /// { + /// "ddoscoo-cn-6ja1rl4j****:7001:tcp", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstDdoscooPortId"] = example.Apply(getDdosCooPortsResult => getDdosCooPortsResult.Ports[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDdosCooPortsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ddos/getDdosCooPorts:getDdosCooPorts", args ?? new GetDdosCooPortsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dds/GetMongoInstances.cs b/sdk/dotnet/Dds/GetMongoInstances.cs index a723d809fb..bb421bd103 100644 --- a/sdk/dotnet/Dds/GetMongoInstances.cs +++ b/sdk/dotnet/Dds/GetMongoInstances.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetMongoInstancesArgs? a public static Output Invoke(GetMongoInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dds/getMongoInstances:getMongoInstances", args ?? new GetMongoInstancesInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetMongoInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dds/getMongoInstances:getMongoInstances", args ?? new GetMongoInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dfs/GetAccessGroups.cs b/sdk/dotnet/Dfs/GetAccessGroups.cs index b3d1d9e414..33cda063c9 100644 --- a/sdk/dotnet/Dfs/GetAccessGroups.cs +++ b/sdk/dotnet/Dfs/GetAccessGroups.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetAccessGroupsArgs? args /// public static Output Invoke(GetAccessGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dfs/getAccessGroups:getAccessGroups", args ?? new GetAccessGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Apsara File Storage for HDFS Access Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.133.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Dfs.GetAccessGroups.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Dfs.GetAccessGroups.Invoke(new() + /// { + /// NameRegex = "^my-AccessGroup", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["dfsAccessGroupId1"] = ids.Apply(getAccessGroupsResult => getAccessGroupsResult.Groups[0]?.Id), + /// ["dfsAccessGroupId2"] = nameRegex.Apply(getAccessGroupsResult => getAccessGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAccessGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dfs/getAccessGroups:getAccessGroups", args ?? new GetAccessGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dfs/GetAccessRules.cs b/sdk/dotnet/Dfs/GetAccessRules.cs index 744572d3a3..ff9941fab5 100644 --- a/sdk/dotnet/Dfs/GetAccessRules.cs +++ b/sdk/dotnet/Dfs/GetAccessRules.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetAccessRulesArgs args, In /// public static Output Invoke(GetAccessRulesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dfs/getAccessRules:getAccessRules", args ?? new GetAccessRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Dfs Access Rules of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.140.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Dfs.GetAccessRules.Invoke(new() + /// { + /// AccessGroupId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["dfsAccessRuleId1"] = ids.Apply(getAccessRulesResult => getAccessRulesResult.Rules[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAccessRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dfs/getAccessRules:getAccessRules", args ?? new GetAccessRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dfs/GetFileSystems.cs b/sdk/dotnet/Dfs/GetFileSystems.cs index 1596800d64..e15e53eaed 100644 --- a/sdk/dotnet/Dfs/GetFileSystems.cs +++ b/sdk/dotnet/Dfs/GetFileSystems.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetFileSystemsArgs? args = /// public static Output Invoke(GetFileSystemsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dfs/getFileSystems:getFileSystems", args ?? new GetFileSystemsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Dfs File Systems of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.140.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Dfs.GetFileSystems.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Dfs.GetFileSystems.Invoke(new() + /// { + /// NameRegex = "^my-FileSystem", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["dfsFileSystemId1"] = ids.Apply(getFileSystemsResult => getFileSystemsResult.Systems[0]?.Id), + /// ["dfsFileSystemId2"] = nameRegex.Apply(getFileSystemsResult => getFileSystemsResult.Systems[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetFileSystemsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dfs/getFileSystems:getFileSystems", args ?? new GetFileSystemsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dfs/GetMountPoints.cs b/sdk/dotnet/Dfs/GetMountPoints.cs index a16fb7afce..76e2a1abda 100644 --- a/sdk/dotnet/Dfs/GetMountPoints.cs +++ b/sdk/dotnet/Dfs/GetMountPoints.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetMountPointsArgs args, In /// public static Output Invoke(GetMountPointsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dfs/getMountPoints:getMountPoints", args ?? new GetMountPointsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Dfs Mount Points of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.140.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Dfs.GetMountPoints.Invoke(new() + /// { + /// FileSystemId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["dfsMountPointId1"] = ids.Apply(getMountPointsResult => getMountPointsResult.Points[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetMountPointsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dfs/getMountPoints:getMountPoints", args ?? new GetMountPointsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dfs/GetZones.cs b/sdk/dotnet/Dfs/GetZones.cs index 41e13897e8..17d6005093 100644 --- a/sdk/dotnet/Dfs/GetZones.cs +++ b/sdk/dotnet/Dfs/GetZones.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dfs/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the DFS Zones And Configurations of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.140.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Dfs.GetZones.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dfs/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DirectMail/GetDomains.cs b/sdk/dotnet/DirectMail/GetDomains.cs index 637435c0ae..6816acec85 100644 --- a/sdk/dotnet/DirectMail/GetDomains.cs +++ b/sdk/dotnet/DirectMail/GetDomains.cs @@ -94,6 +94,48 @@ public static Task InvokeAsync(GetDomainsArgs? args = null, In /// public static Output Invoke(GetDomainsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:directmail/getDomains:getDomains", args ?? new GetDomainsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Direct Mail Domains of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.134.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "terraform-example.pop.com"; + /// var @default = new AliCloud.DirectMail.Domain("default", new() + /// { + /// DomainName = name, + /// }); + /// + /// var ids = AliCloud.DirectMail.GetDomains.Invoke(new() + /// { + /// Ids = new[] + /// { + /// @default.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["directMailDomainsId0"] = ids.Apply(getDomainsResult => getDomainsResult.Domains[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDomainsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:directmail/getDomains:getDomains", args ?? new GetDomainsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DirectMail/GetMailAddresses.cs b/sdk/dotnet/DirectMail/GetMailAddresses.cs index 2bbecaa32b..85e83034ac 100644 --- a/sdk/dotnet/DirectMail/GetMailAddresses.cs +++ b/sdk/dotnet/DirectMail/GetMailAddresses.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetMailAddressesArgs? arg /// public static Output Invoke(GetMailAddressesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:directmail/getMailAddresses:getMailAddresses", args ?? new GetMailAddressesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Direct Mail Mail Addresses of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.134.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.DirectMail.GetMailAddresses.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["directMailMailAddressId1"] = ids.Apply(getMailAddressesResult => getMailAddressesResult.Addresses[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetMailAddressesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:directmail/getMailAddresses:getMailAddresses", args ?? new GetMailAddressesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DirectMail/GetReceivers.cs b/sdk/dotnet/DirectMail/GetReceivers.cs index 0c41f73538..8975e0f229 100644 --- a/sdk/dotnet/DirectMail/GetReceivers.cs +++ b/sdk/dotnet/DirectMail/GetReceivers.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetReceiversArgs? args = null /// public static Output Invoke(GetReceiversInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:directmail/getReceivers:getReceivers", args ?? new GetReceiversInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Direct Mail Receiverses of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.125.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.DirectMail.GetReceivers.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "ca73b1e4fb0df7c935a5097a****", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstDirectMailReceiversId"] = example.Apply(getReceiversResult => getReceiversResult.Receiverses[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetReceiversInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:directmail/getReceivers:getReceivers", args ?? new GetReceiversInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DirectMail/GetTags.cs b/sdk/dotnet/DirectMail/GetTags.cs index f5c3c39bb7..53f683b580 100644 --- a/sdk/dotnet/DirectMail/GetTags.cs +++ b/sdk/dotnet/DirectMail/GetTags.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetTagsArgs? args = null, InvokeOp /// public static Output Invoke(GetTagsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:directmail/getTags:getTags", args ?? new GetTagsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Direct Mail Tags of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.144.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.DirectMail.GetTags.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.DirectMail.GetTags.Invoke(new() + /// { + /// NameRegex = "^my-Tag", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["directMailTagId1"] = ids.Apply(getTagsResult => getTagsResult.Tags[0]?.Id), + /// ["directMailTagId2"] = nameRegex.Apply(getTagsResult => getTagsResult.Tags[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTagsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:directmail/getTags:getTags", args ?? new GetTagsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dms/GetEnterpriseDatabases.cs b/sdk/dotnet/Dms/GetEnterpriseDatabases.cs index 4aa183ddf8..2ec4156859 100644 --- a/sdk/dotnet/Dms/GetEnterpriseDatabases.cs +++ b/sdk/dotnet/Dms/GetEnterpriseDatabases.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetEnterpriseDataba /// public static Output Invoke(GetEnterpriseDatabasesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dms/getEnterpriseDatabases:getEnterpriseDatabases", args ?? new GetEnterpriseDatabasesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides DMS Enterprise Database available to the user. [What is Database](https://www.alibabacloud.com/help/en/dms/developer-reference/api-dms-enterprise-2018-11-01-listdatabases). + /// + /// > **NOTE:** Available since v1.195.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Dms.GetEnterpriseDatabases.Invoke(new() + /// { + /// NameRegex = "test2", + /// InstanceId = "2195118", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudDmsEnterpriseDatabaseExampleId"] = @default.Apply(@default => @default.Apply(getEnterpriseDatabasesResult => getEnterpriseDatabasesResult.Databases[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEnterpriseDatabasesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dms/getEnterpriseDatabases:getEnterpriseDatabases", args ?? new GetEnterpriseDatabasesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dms/GetEnterpriseInstances.cs b/sdk/dotnet/Dms/GetEnterpriseInstances.cs index f0d94e8591..87f8885a76 100644 --- a/sdk/dotnet/Dms/GetEnterpriseInstances.cs +++ b/sdk/dotnet/Dms/GetEnterpriseInstances.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetEnterpriseInstan /// public static Output Invoke(GetEnterpriseInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dms/getEnterpriseInstances:getEnterpriseInstances", args ?? new GetEnterpriseInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of DMS Enterprise Instances in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in 1.88.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var dmsEnterpriseInstancesDs = AliCloud.Dms.GetEnterpriseInstances.Invoke(new() + /// { + /// NetType = "CLASSIC", + /// InstanceType = "mysql", + /// EnvType = "test", + /// NameRegex = "tf_testAcc", + /// OutputFile = "dms_enterprise_instances.json", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstDatabaseInstanceId"] = dmsEnterpriseInstancesDs.Apply(getEnterpriseInstancesResult => getEnterpriseInstancesResult.Instances[0]?.InstanceId), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEnterpriseInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dms/getEnterpriseInstances:getEnterpriseInstances", args ?? new GetEnterpriseInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dms/GetEnterpriseLogicDatabases.cs b/sdk/dotnet/Dms/GetEnterpriseLogicDatabases.cs index 5757bf763e..050a0cfdd7 100644 --- a/sdk/dotnet/Dms/GetEnterpriseLogicDatabases.cs +++ b/sdk/dotnet/Dms/GetEnterpriseLogicDatabases.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetEnterpriseL /// public static Output Invoke(GetEnterpriseLogicDatabasesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dms/getEnterpriseLogicDatabases:getEnterpriseLogicDatabases", args ?? new GetEnterpriseLogicDatabasesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides DMS Enterprise Logic Database available to the user. [What is Logic Database](https://www.alibabacloud.com/help/en/dms/developer-reference/api-dms-enterprise-2018-11-01-createlogicdatabase). + /// + /// > **NOTE:** Available since v1.195.0. + /// + public static Output Invoke(GetEnterpriseLogicDatabasesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dms/getEnterpriseLogicDatabases:getEnterpriseLogicDatabases", args ?? new GetEnterpriseLogicDatabasesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dms/GetEnterpriseProxies.cs b/sdk/dotnet/Dms/GetEnterpriseProxies.cs index 994b624441..73a7b29193 100644 --- a/sdk/dotnet/Dms/GetEnterpriseProxies.cs +++ b/sdk/dotnet/Dms/GetEnterpriseProxies.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetEnterpriseProxiesA /// public static Output Invoke(GetEnterpriseProxiesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dms/getEnterpriseProxies:getEnterpriseProxies", args ?? new GetEnterpriseProxiesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Dms Enterprise Proxies of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.188.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Dms.GetEnterpriseProxies.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["dmsEnterpriseProxyId1"] = ids.Apply(getEnterpriseProxiesResult => getEnterpriseProxiesResult.Proxies[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEnterpriseProxiesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dms/getEnterpriseProxies:getEnterpriseProxies", args ?? new GetEnterpriseProxiesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dms/GetEnterpriseProxyAccesses.cs b/sdk/dotnet/Dms/GetEnterpriseProxyAccesses.cs index e0ab2ad62b..ecac5eb586 100644 --- a/sdk/dotnet/Dms/GetEnterpriseProxyAccesses.cs +++ b/sdk/dotnet/Dms/GetEnterpriseProxyAccesses.cs @@ -94,6 +94,48 @@ public static Task InvokeAsync(GetEnterprisePr /// public static Output Invoke(GetEnterpriseProxyAccessesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dms/getEnterpriseProxyAccesses:getEnterpriseProxyAccesses", args ?? new GetEnterpriseProxyAccessesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides DMS Enterprise Proxy Access available to the user.[What is Proxy Access](https://next.api.alibabacloud.com/document/dms-enterprise/2018-11-01/CreateProxyAccess) + /// + /// > **NOTE:** Available since v1.195.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var defaultEnterpriseProxyAccess = new AliCloud.Dms.EnterpriseProxyAccess("default", new() + /// { + /// IndepPassword = "PASSWORD-DEMO", + /// ProxyId = "1881", + /// IndepAccount = "dmstest", + /// UserId = "104442", + /// }); + /// + /// var @default = AliCloud.Dms.GetEnterpriseProxyAccesses.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultEnterpriseProxyAccess.Id, + /// }, + /// ProxyId = "1881", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudDmsProxyAccesesExampleId"] = @default.Apply(@default => @default.Apply(getEnterpriseProxyAccessesResult => getEnterpriseProxyAccessesResult.Accesses[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEnterpriseProxyAccessesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dms/getEnterpriseProxyAccesses:getEnterpriseProxyAccesses", args ?? new GetEnterpriseProxyAccessesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dms/GetEnterpriseUsers.cs b/sdk/dotnet/Dms/GetEnterpriseUsers.cs index da05bb0b01..5054013568 100644 --- a/sdk/dotnet/Dms/GetEnterpriseUsers.cs +++ b/sdk/dotnet/Dms/GetEnterpriseUsers.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetEnterpriseUsersArgs? /// public static Output Invoke(GetEnterpriseUsersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dms/getEnterpriseUsers:getEnterpriseUsers", args ?? new GetEnterpriseUsersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of DMS Enterprise Users in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in 1.90.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var dmsEnterpriseUsersDs = AliCloud.Dms.GetEnterpriseUsers.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "uid", + /// }, + /// Role = "USER", + /// Status = "NORMAL", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstUserId"] = dmsEnterpriseUsersDs.Apply(getEnterpriseUsersResult => getEnterpriseUsersResult.Users[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEnterpriseUsersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dms/getEnterpriseUsers:getEnterpriseUsers", args ?? new GetEnterpriseUsersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dms/GetUserTenants.cs b/sdk/dotnet/Dms/GetUserTenants.cs index ebe0f058cb..0f65df60ce 100644 --- a/sdk/dotnet/Dms/GetUserTenants.cs +++ b/sdk/dotnet/Dms/GetUserTenants.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetUserTenantsArgs? args = /// public static Output Invoke(GetUserTenantsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dms/getUserTenants:getUserTenants", args ?? new GetUserTenantsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of DMS User Tenants in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in 1.161.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var @default = AliCloud.Dms.GetUserTenants.Invoke(new() + /// { + /// Status = "ACTIVE", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["tid"] = @default.Apply(@default => @default.Apply(getUserTenantsResult => getUserTenantsResult.Ids[0])), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetUserTenantsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dms/getUserTenants:getUserTenants", args ?? new GetUserTenantsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetAccessStrategies.cs b/sdk/dotnet/Dns/GetAccessStrategies.cs index b55c3c247f..b68f7dc7da 100644 --- a/sdk/dotnet/Dns/GetAccessStrategies.cs +++ b/sdk/dotnet/Dns/GetAccessStrategies.cs @@ -88,6 +88,45 @@ public static Task InvokeAsync(GetAccessStrategiesArg /// public static Output Invoke(GetAccessStrategiesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getAccessStrategies:getAccessStrategies", args ?? new GetAccessStrategiesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Alidns Access Strategies of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.152.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Dns.GetAccessStrategies.Invoke(new() + /// { + /// InstanceId = "example_value", + /// StrategyMode = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alidnsAccessStrategyId1"] = ids.Apply(getAccessStrategiesResult => getAccessStrategiesResult.Strategies[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAccessStrategiesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getAccessStrategies:getAccessStrategies", args ?? new GetAccessStrategiesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetAddressPools.cs b/sdk/dotnet/Dns/GetAddressPools.cs index 478123ff3f..ed296d5462 100644 --- a/sdk/dotnet/Dns/GetAddressPools.cs +++ b/sdk/dotnet/Dns/GetAddressPools.cs @@ -98,6 +98,50 @@ public static Task InvokeAsync(GetAddressPoolsArgs args, /// public static Output Invoke(GetAddressPoolsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getAddressPools:getAddressPools", args ?? new GetAddressPoolsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Alidns Address Pools of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.152.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Dns.GetAddressPools.Invoke(new() + /// { + /// InstanceId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Dns.GetAddressPools.Invoke(new() + /// { + /// InstanceId = "example_value", + /// NameRegex = "^my-AddressPool", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alidnsAddressPoolId1"] = ids.Apply(getAddressPoolsResult => getAddressPoolsResult.Pools[0]?.Id), + /// ["alidnsAddressPoolId2"] = nameRegex.Apply(getAddressPoolsResult => getAddressPoolsResult.Pools[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAddressPoolsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getAddressPools:getAddressPools", args ?? new GetAddressPoolsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetAlidnsDomainGroups.cs b/sdk/dotnet/Dns/GetAlidnsDomainGroups.cs index 3bfd761f6a..4becc8990f 100644 --- a/sdk/dotnet/Dns/GetAlidnsDomainGroups.cs +++ b/sdk/dotnet/Dns/GetAlidnsDomainGroups.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetAlidnsDomainGroup /// public static Output Invoke(GetAlidnsDomainGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getAlidnsDomainGroups:getAlidnsDomainGroups", args ?? new GetAlidnsDomainGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of Alidns Domain Groups in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in 1.85.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Dns.GetAlidnsDomainGroups.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "c5ef2bc43064445787adf182af2****", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstDomainGroupId"] = example.Apply(getAlidnsDomainGroupsResult => getAlidnsDomainGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAlidnsDomainGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getAlidnsDomainGroups:getAlidnsDomainGroups", args ?? new GetAlidnsDomainGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetAlidnsDomains.cs b/sdk/dotnet/Dns/GetAlidnsDomains.cs index 7b21476cd6..83b1c2d422 100644 --- a/sdk/dotnet/Dns/GetAlidnsDomains.cs +++ b/sdk/dotnet/Dns/GetAlidnsDomains.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetAlidnsDomainsArgs? arg /// public static Output Invoke(GetAlidnsDomainsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getAlidnsDomains:getAlidnsDomains", args ?? new GetAlidnsDomainsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of Alidns Domains in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in 1.95.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var domainsDs = AliCloud.Dns.GetAlidnsDomains.Invoke(new() + /// { + /// DomainNameRegex = "^hegu", + /// OutputFile = "domains.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstDomainId"] = domainsDs.Apply(getAlidnsDomainsResult => getAlidnsDomainsResult.Domains[0]?.DomainId), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAlidnsDomainsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getAlidnsDomains:getAlidnsDomains", args ?? new GetAlidnsDomainsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetAlidnsInstances.cs b/sdk/dotnet/Dns/GetAlidnsInstances.cs index 8ea7056d7d..0b74eefe4e 100644 --- a/sdk/dotnet/Dns/GetAlidnsInstances.cs +++ b/sdk/dotnet/Dns/GetAlidnsInstances.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetAlidnsInstancesArgs? /// public static Output Invoke(GetAlidnsInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getAlidnsInstances:getAlidnsInstances", args ?? new GetAlidnsInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of Alidns instances in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in 1.95.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Dns.GetAlidnsInstances.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "dns-cn-oew1npk****", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstInstanceId"] = example.Apply(getAlidnsInstancesResult => getAlidnsInstancesResult.Instances[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAlidnsInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getAlidnsInstances:getAlidnsInstances", args ?? new GetAlidnsInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetAlidnsRecords.cs b/sdk/dotnet/Dns/GetAlidnsRecords.cs index f5fdaf73b9..559ec81928 100644 --- a/sdk/dotnet/Dns/GetAlidnsRecords.cs +++ b/sdk/dotnet/Dns/GetAlidnsRecords.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetAlidnsRecordsArgs args /// public static Output Invoke(GetAlidnsRecordsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getAlidnsRecords:getAlidnsRecords", args ?? new GetAlidnsRecordsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of Alidns Domain Records in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available since v1.86.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var recordsDs = AliCloud.Dns.GetAlidnsRecords.Invoke(new() + /// { + /// DomainName = "xiaozhu.top", + /// Ids = new[] + /// { + /// "1978593525779****", + /// }, + /// Type = "A", + /// OutputFile = "records.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstRecordId"] = recordsDs.Apply(getAlidnsRecordsResult => getAlidnsRecordsResult.Records[0]?.RecordId), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAlidnsRecordsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getAlidnsRecords:getAlidnsRecords", args ?? new GetAlidnsRecordsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetCustomLines.cs b/sdk/dotnet/Dns/GetCustomLines.cs index 64cb032443..9f4d7e80dd 100644 --- a/sdk/dotnet/Dns/GetCustomLines.cs +++ b/sdk/dotnet/Dns/GetCustomLines.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetCustomLinesArgs args, In /// public static Output Invoke(GetCustomLinesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getCustomLines:getCustomLines", args ?? new GetCustomLinesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Alidns Custom Lines of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.151.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Dns.GetCustomLines.Invoke(new() + /// { + /// EnableDetails = true, + /// DomainName = "your_domain_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alidnsCustomLineId1"] = ids.Apply(getCustomLinesResult => getCustomLinesResult.Lines[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetCustomLinesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getCustomLines:getCustomLines", args ?? new GetCustomLinesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetDomainGroups.cs b/sdk/dotnet/Dns/GetDomainGroups.cs index 453b4b0f17..b1177b506c 100644 --- a/sdk/dotnet/Dns/GetDomainGroups.cs +++ b/sdk/dotnet/Dns/GetDomainGroups.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(GetDomainGroupsArgs? args /// public static Output Invoke(GetDomainGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getDomainGroups:getDomainGroups", args ?? new GetDomainGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// > **NOTE:** This datasource has been deprecated from v1.3.2. Please use the datasource `alicloud.dns.getGroups` instead. + /// + public static Output Invoke(GetDomainGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getDomainGroups:getDomainGroups", args ?? new GetDomainGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetDomainRecords.cs b/sdk/dotnet/Dns/GetDomainRecords.cs index 321c73a5ed..95c2d8729d 100644 --- a/sdk/dotnet/Dns/GetDomainRecords.cs +++ b/sdk/dotnet/Dns/GetDomainRecords.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(GetDomainRecordsArgs args /// public static Output Invoke(GetDomainRecordsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getDomainRecords:getDomainRecords", args ?? new GetDomainRecordsInvokeArgs(), options.WithDefaults()); + + /// + /// > **NOTE:** This resource has been deprecated from v1.3.2. Please use the datasource `alicloud.dns.getRecords` instead. + /// + public static Output Invoke(GetDomainRecordsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getDomainRecords:getDomainRecords", args ?? new GetDomainRecordsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetDomainTxtGuid.cs b/sdk/dotnet/Dns/GetDomainTxtGuid.cs index 8aa06dad0c..7edb0b3999 100644 --- a/sdk/dotnet/Dns/GetDomainTxtGuid.cs +++ b/sdk/dotnet/Dns/GetDomainTxtGuid.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetDomainTxtGuidArgs args /// public static Output Invoke(GetDomainTxtGuidInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getDomainTxtGuid:getDomainTxtGuid", args ?? new GetDomainTxtGuidInvokeArgs(), options.WithDefaults()); + + /// + /// Provides the generation of txt records to realize the retrieval and verification of domain names. + /// + /// > **NOTE:** Available in v1.80.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @this = AliCloud.Dns.GetDomainTxtGuid.Invoke(new() + /// { + /// DomainName = "test111.abc", + /// Type = "ADD_SUB_DOMAIN", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["rr"] = @this.Apply(@this => @this.Apply(getDomainTxtGuidResult => getDomainTxtGuidResult.Rr)), + /// ["value"] = @this.Apply(@this => @this.Apply(getDomainTxtGuidResult => getDomainTxtGuidResult.Value)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDomainTxtGuidInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getDomainTxtGuid:getDomainTxtGuid", args ?? new GetDomainTxtGuidInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetDomains.cs b/sdk/dotnet/Dns/GetDomains.cs index a3cc89ba7f..5343f214f3 100644 --- a/sdk/dotnet/Dns/GetDomains.cs +++ b/sdk/dotnet/Dns/GetDomains.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetDomainsArgs? args = null, In /// public static Output Invoke(GetDomainsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getDomains:getDomains", args ?? new GetDomainsInvokeArgs(), options.WithDefaults()); + + /// + /// > **DEPRECATED:** This resource has been renamed to alicloud.dns.getAlidnsDomains from version 1.95.0. + /// + /// This data source provides a list of DNS Domains in an Alibaba Cloud account according to the specified filters. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var domainsDs = AliCloud.Dns.GetDomains.Invoke(new() + /// { + /// DomainNameRegex = "^hegu", + /// OutputFile = "domains.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstDomainId"] = domainsDs.Apply(getDomainsResult => getDomainsResult.Domains[0]?.DomainId), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDomainsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getDomains:getDomains", args ?? new GetDomainsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetGroups.cs b/sdk/dotnet/Dns/GetGroups.cs index 60e9937e7a..0f47377701 100644 --- a/sdk/dotnet/Dns/GetGroups.cs +++ b/sdk/dotnet/Dns/GetGroups.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetGroupsArgs? args = null, Invo /// public static Output Invoke(GetGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getGroups:getGroups", args ?? new GetGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of DNS Domain Groups in an Alibaba Cloud account according to the specified filters. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var groupsDs = AliCloud.Dns.GetGroups.Invoke(new() + /// { + /// NameRegex = "^y[A-Za-z]+", + /// OutputFile = "groups.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstGroupName"] = groupsDs.Apply(getGroupsResult => getGroupsResult.Groups[0]?.GroupName), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getGroups:getGroups", args ?? new GetGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetGtmInstances.cs b/sdk/dotnet/Dns/GetGtmInstances.cs index 8e27aeb389..c9c402ce92 100644 --- a/sdk/dotnet/Dns/GetGtmInstances.cs +++ b/sdk/dotnet/Dns/GetGtmInstances.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetGtmInstancesArgs? args /// public static Output Invoke(GetGtmInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getGtmInstances:getGtmInstances", args ?? new GetGtmInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Alidns Gtm Instances of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.151.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Dns.GetGtmInstances.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alidnsGtmInstanceId1"] = ids.Apply(getGtmInstancesResult => getGtmInstancesResult.Instances[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetGtmInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getGtmInstances:getGtmInstances", args ?? new GetGtmInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetInstances.cs b/sdk/dotnet/Dns/GetInstances.cs index aad44c6834..a57e785baa 100644 --- a/sdk/dotnet/Dns/GetInstances.cs +++ b/sdk/dotnet/Dns/GetInstances.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// > **DEPRECATED:** This resource has been renamed to alicloud.dns.getAlidnsInstances from version 1.95.0. + /// + /// This data source provides a list of DNS instances in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in 1.84.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Dns.GetInstances.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "dns-cn-oew1npk****", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstInstanceId"] = example.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetRecords.cs b/sdk/dotnet/Dns/GetRecords.cs index 952c8a7da4..51cb38775b 100644 --- a/sdk/dotnet/Dns/GetRecords.cs +++ b/sdk/dotnet/Dns/GetRecords.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetRecordsArgs args, InvokeOpti /// public static Output Invoke(GetRecordsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getRecords:getRecords", args ?? new GetRecordsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of DNS Domain Records in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available since v1.0.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var recordsDs = AliCloud.Dns.GetRecords.Invoke(new() + /// { + /// DomainName = "xiaozhu.top", + /// IsLocked = false, + /// Type = "A", + /// HostRecordRegex = "^@", + /// OutputFile = "records.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstRecordId"] = recordsDs.Apply(getRecordsResult => getRecordsResult.Records[0]?.RecordId), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRecordsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getRecords:getRecords", args ?? new GetRecordsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetResolutionLines.cs b/sdk/dotnet/Dns/GetResolutionLines.cs index de978a7ae2..9859a58a4e 100644 --- a/sdk/dotnet/Dns/GetResolutionLines.cs +++ b/sdk/dotnet/Dns/GetResolutionLines.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetResolutionLinesArgs? /// public static Output Invoke(GetResolutionLinesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getResolutionLines:getResolutionLines", args ?? new GetResolutionLinesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of DNS Resolution Lines in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in 1.60.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var resolutionLinesDs = AliCloud.Dns.GetResolutionLines.Invoke(new() + /// { + /// LineCodes = new[] + /// { + /// "cn_unicom_shanxi", + /// }, + /// OutputFile = "support_lines.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstLineCode"] = resolutionLinesDs.Apply(getResolutionLinesResult => getResolutionLinesResult.Lines[0]?.LineCode), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetResolutionLinesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dns/getResolutionLines:getResolutionLines", args ?? new GetResolutionLinesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Drds/GetInstances.cs b/sdk/dotnet/Drds/GetInstances.cs index 286a72e04a..df733f38d8 100644 --- a/sdk/dotnet/Drds/GetInstances.cs +++ b/sdk/dotnet/Drds/GetInstances.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:drds/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// The `alicloud.drds.Instance` data source provides a collection of DRDS instances available in Alibaba Cloud account. + /// Filters support regular expression for the instance name, searches by tags, and other filters which are listed below. + /// + /// > **NOTE:** Available in 1.35.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var drdsInstancesDs = AliCloud.Drds.GetInstances.Invoke(new() + /// { + /// NameRegex = "drds-\\d+", + /// Ids = new[] + /// { + /// "drdsabc123456", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstDbInstanceId"] = drdsInstancesDs.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:drds/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dts/GetConsumerChannels.cs b/sdk/dotnet/Dts/GetConsumerChannels.cs index 240361cc39..afa80ddd5c 100644 --- a/sdk/dotnet/Dts/GetConsumerChannels.cs +++ b/sdk/dotnet/Dts/GetConsumerChannels.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetConsumerChannelsArg /// public static Output Invoke(GetConsumerChannelsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dts/getConsumerChannels:getConsumerChannels", args ?? new GetConsumerChannelsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Dts Consumer Channels of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.146.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Dts.GetConsumerChannels.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["dtsConsumerChannelId1"] = ids.Apply(getConsumerChannelsResult => getConsumerChannelsResult.Channels[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetConsumerChannelsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dts/getConsumerChannels:getConsumerChannels", args ?? new GetConsumerChannelsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dts/GetInstances.cs b/sdk/dotnet/Dts/GetInstances.cs index d82f100139..1353c4a2ff 100644 --- a/sdk/dotnet/Dts/GetInstances.cs +++ b/sdk/dotnet/Dts/GetInstances.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dts/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Dts Instance available to the user.[What is Instance](https://www.alibabacloud.com/help/en/data-transmission-service/latest/createdtsinstance) + /// + /// > **NOTE:** Available in 1.198.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Dts.GetInstances.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAlicloudDtsInstance.Id, + /// }, + /// ResourceGroupId = "example_value", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudDtsInstanceExampleId"] = @default.Apply(@default => @default.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dts/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dts/GetMigrationJobs.cs b/sdk/dotnet/Dts/GetMigrationJobs.cs index e9eaf952b0..0b7135a73d 100644 --- a/sdk/dotnet/Dts/GetMigrationJobs.cs +++ b/sdk/dotnet/Dts/GetMigrationJobs.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetMigrationJobsArgs? arg /// public static Output Invoke(GetMigrationJobsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dts/getMigrationJobs:getMigrationJobs", args ?? new GetMigrationJobsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Dts Migration Jobs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.157.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Dts.GetMigrationJobs.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "dts_job_id", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["dtsMigrationJobId1"] = ids.Apply(getMigrationJobsResult => getMigrationJobsResult.Jobs[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetMigrationJobsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dts/getMigrationJobs:getMigrationJobs", args ?? new GetMigrationJobsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dts/GetSubscriptionJobs.cs b/sdk/dotnet/Dts/GetSubscriptionJobs.cs index 23a3f10861..d30164deb7 100644 --- a/sdk/dotnet/Dts/GetSubscriptionJobs.cs +++ b/sdk/dotnet/Dts/GetSubscriptionJobs.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetSubscriptionJobsArg /// public static Output Invoke(GetSubscriptionJobsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dts/getSubscriptionJobs:getSubscriptionJobs", args ?? new GetSubscriptionJobsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Dts Subscription Jobs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.138.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Dts.GetSubscriptionJobs.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["dtsSubscriptionJobId1"] = ids.Apply(getSubscriptionJobsResult => getSubscriptionJobsResult.Jobs[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSubscriptionJobsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dts/getSubscriptionJobs:getSubscriptionJobs", args ?? new GetSubscriptionJobsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dts/GetSynchronizationJobs.cs b/sdk/dotnet/Dts/GetSynchronizationJobs.cs index a5d6a6207b..53b297c738 100644 --- a/sdk/dotnet/Dts/GetSynchronizationJobs.cs +++ b/sdk/dotnet/Dts/GetSynchronizationJobs.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetSynchronizationJ /// public static Output Invoke(GetSynchronizationJobsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:dts/getSynchronizationJobs:getSynchronizationJobs", args ?? new GetSynchronizationJobsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Dts Synchronization Jobs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.138.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Dts.GetSynchronizationJobs.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["dtsSynchronizationJobId1"] = ids.Apply(getSynchronizationJobsResult => getSynchronizationJobsResult.Jobs[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSynchronizationJobsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:dts/getSynchronizationJobs:getSynchronizationJobs", args ?? new GetSynchronizationJobsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eais/GetInstances.cs b/sdk/dotnet/Eais/GetInstances.cs index 585346a9ec..3ce6fa6b27 100644 --- a/sdk/dotnet/Eais/GetInstances.cs +++ b/sdk/dotnet/Eais/GetInstances.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eais/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Eais Instances of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.137.0+. + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eais/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ebs/GetDedicatedBlockStorageClusters.cs b/sdk/dotnet/Ebs/GetDedicatedBlockStorageClusters.cs index abac0f7da2..9169d19b4f 100644 --- a/sdk/dotnet/Ebs/GetDedicatedBlockStorageClusters.cs +++ b/sdk/dotnet/Ebs/GetDedicatedBlockStorageClusters.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetDedica /// public static Output Invoke(GetDedicatedBlockStorageClustersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ebs/getDedicatedBlockStorageClusters:getDedicatedBlockStorageClusters", args ?? new GetDedicatedBlockStorageClustersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Ebs Dedicated Block Storage Cluster available to the user. + /// + /// > **NOTE:** Available in 1.196.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Ebs.GetDedicatedBlockStorageClusters.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// NameRegex = defaultAlicloudEbsDedicatedBlockStorageCluster.Name, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudEbsDedicatedBlockStorageClusterExampleId"] = @default.Apply(@default => @default.Apply(getDedicatedBlockStorageClustersResult => getDedicatedBlockStorageClustersResult.Clusters[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDedicatedBlockStorageClustersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ebs/getDedicatedBlockStorageClusters:getDedicatedBlockStorageClusters", args ?? new GetDedicatedBlockStorageClustersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ebs/GetDiskReplicaGroups.cs b/sdk/dotnet/Ebs/GetDiskReplicaGroups.cs index 0d4a278ff8..f9d1677883 100644 --- a/sdk/dotnet/Ebs/GetDiskReplicaGroups.cs +++ b/sdk/dotnet/Ebs/GetDiskReplicaGroups.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetDiskReplicaGroupsA /// public static Output Invoke(GetDiskReplicaGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ebs/getDiskReplicaGroups:getDiskReplicaGroups", args ?? new GetDiskReplicaGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ebs Disk Replica Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.187.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ebs.GetDiskReplicaGroups.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ebsDiskReplicaGroupId1"] = ids.Apply(getDiskReplicaGroupsResult => getDiskReplicaGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDiskReplicaGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ebs/getDiskReplicaGroups:getDiskReplicaGroups", args ?? new GetDiskReplicaGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ebs/GetDiskReplicaPairs.cs b/sdk/dotnet/Ebs/GetDiskReplicaPairs.cs index 70f536a8ad..1f0283aa43 100644 --- a/sdk/dotnet/Ebs/GetDiskReplicaPairs.cs +++ b/sdk/dotnet/Ebs/GetDiskReplicaPairs.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetDiskReplicaPairsArg /// public static Output Invoke(GetDiskReplicaPairsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ebs/getDiskReplicaPairs:getDiskReplicaPairs", args ?? new GetDiskReplicaPairsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Ebs Disk Replica Pair available to the user. + /// + /// > **NOTE:** Available in 1.196.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Ebs.GetDiskReplicaPairs.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAlicloudEbsDiskReplicaPair.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudEbsDiskReplicaPairExampleId"] = @default.Apply(@default => @default.Apply(getDiskReplicaPairsResult => getDiskReplicaPairsResult.Pairs[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDiskReplicaPairsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ebs/getDiskReplicaPairs:getDiskReplicaPairs", args ?? new GetDiskReplicaPairsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ebs/GetRegions.cs b/sdk/dotnet/Ebs/GetRegions.cs index 05e6c1bce5..d58daf274d 100644 --- a/sdk/dotnet/Ebs/GetRegions.cs +++ b/sdk/dotnet/Ebs/GetRegions.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetRegionsArgs? args = null, In /// public static Output Invoke(GetRegionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ebs/getRegions:getRegions", args ?? new GetRegionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ebs Regions of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.187.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Ebs.GetRegions.Invoke(new() + /// { + /// RegionId = "cn-hangzhou", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["regions"] = @default.Apply(@default => @default.Apply(getRegionsResult => getRegionsResult.Regions)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRegionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ebs/getRegions:getRegions", args ?? new GetRegionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eci/GetContainerGroups.cs b/sdk/dotnet/Eci/GetContainerGroups.cs index 101b746d40..c600f91a37 100644 --- a/sdk/dotnet/Eci/GetContainerGroups.cs +++ b/sdk/dotnet/Eci/GetContainerGroups.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetContainerGroupsArgs? /// public static Output Invoke(GetContainerGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eci/getContainerGroups:getContainerGroups", args ?? new GetContainerGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Eci Container Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.111.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Eci.GetContainerGroups.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstEciContainerGroupId"] = example.Apply(getContainerGroupsResult => getContainerGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetContainerGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eci/getContainerGroups:getContainerGroups", args ?? new GetContainerGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eci/GetImageCaches.cs b/sdk/dotnet/Eci/GetImageCaches.cs index 6e979e7fb5..c0c19556f4 100644 --- a/sdk/dotnet/Eci/GetImageCaches.cs +++ b/sdk/dotnet/Eci/GetImageCaches.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetImageCachesArgs? args = /// public static Output Invoke(GetImageCachesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eci/getImageCaches:getImageCaches", args ?? new GetImageCachesInvokeArgs(), options.WithDefaults()); + + /// + /// Provides a collection of ECI Image Cache to the specified filters. + /// + /// > **NOTE:** Available in 1.90.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Eci.GetImageCaches.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "imc-bp1ef0dyp7ldhb1d****", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["imageCache"] = example.Apply(getImageCachesResult => getImageCachesResult.Caches[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetImageCachesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eci/getImageCaches:getImageCaches", args ?? new GetImageCachesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eci/GetVirtualNodes.cs b/sdk/dotnet/Eci/GetVirtualNodes.cs index 81023a90a3..170bc500fe 100644 --- a/sdk/dotnet/Eci/GetVirtualNodes.cs +++ b/sdk/dotnet/Eci/GetVirtualNodes.cs @@ -94,6 +94,48 @@ public static Task InvokeAsync(GetVirtualNodesArgs? args /// public static Output Invoke(GetVirtualNodesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eci/getVirtualNodes:getVirtualNodes", args ?? new GetVirtualNodesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Eci Virtual Nodes of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.145.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Eci.GetVirtualNodes.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Eci.GetVirtualNodes.Invoke(new() + /// { + /// NameRegex = "^my-VirtualNode", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["eciVirtualNodeId1"] = ids.Apply(getVirtualNodesResult => getVirtualNodesResult.Nodes[0]?.Id), + /// ["eciVirtualNodeId2"] = nameRegex.Apply(getVirtualNodesResult => getVirtualNodesResult.Nodes[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetVirtualNodesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eci/getVirtualNodes:getVirtualNodes", args ?? new GetVirtualNodesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eci/GetZones.cs b/sdk/dotnet/Eci/GetZones.cs index b51f26bedc..09b4b99e74 100644 --- a/sdk/dotnet/Eci/GetZones.cs +++ b/sdk/dotnet/Eci/GetZones.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eci/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the available zones with the Application Load Balancer (ALB) Instance of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.145.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Eci.GetZones.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstEciZonesId"] = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.ZoneIds[0])), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eci/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecp/GetInstanceTypes.cs b/sdk/dotnet/Ecp/GetInstanceTypes.cs index 6162c2ad3b..bbd9999f7d 100644 --- a/sdk/dotnet/Ecp/GetInstanceTypes.cs +++ b/sdk/dotnet/Ecp/GetInstanceTypes.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetInstanceTypesArgs? arg /// public static Output Invoke(GetInstanceTypesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecp/getInstanceTypes:getInstanceTypes", args ?? new GetInstanceTypesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the available instance types with the Cloud Phone (ECP) Instance of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.158.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Ecp.GetInstanceTypes.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstEcpInstanceTypesInstanceType"] = @default.Apply(@default => @default.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.InstanceType)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceTypesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecp/getInstanceTypes:getInstanceTypes", args ?? new GetInstanceTypesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecp/GetInstances.cs b/sdk/dotnet/Ecp/GetInstances.cs index 145ab58a9a..1988c314fa 100644 --- a/sdk/dotnet/Ecp/GetInstances.cs +++ b/sdk/dotnet/Ecp/GetInstances.cs @@ -180,6 +180,91 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecp/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecp Instances of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.158.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Ecp.GetZones.Invoke(); + /// + /// var defaultGetInstanceTypes = AliCloud.Ecp.GetInstanceTypes.Invoke(); + /// + /// var countSize = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones)).Length; + /// + /// var zoneId = Output.Tuple(@default, countSize).Apply(values => + /// { + /// var @default = values.Item1; + /// var countSize = values.Item2; + /// return @default.Apply(getZonesResult => getZonesResult.Zones)[countSize - 1].ZoneId; + /// }); + /// + /// var instanceTypeCountSize = defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes).Length; + /// + /// var instanceType = Output.Tuple(defaultGetInstanceTypes, instanceTypeCountSize).Apply(values => + /// { + /// var defaultGetInstanceTypes = values.Item1; + /// var instanceTypeCountSize = values.Item2; + /// return defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes)[instanceTypeCountSize - 1].InstanceType; + /// }); + /// + /// var defaultGetNetworks = AliCloud.Vpc.GetNetworks.Invoke(new() + /// { + /// NameRegex = "default-NODELETING", + /// }); + /// + /// var defaultGetSwitches = AliCloud.Vpc.GetSwitches.Invoke(new() + /// { + /// VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]), + /// ZoneId = zoneId, + /// }); + /// + /// var @group = new AliCloud.Ecs.SecurityGroup("group", new() + /// { + /// Name = name, + /// VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]), + /// }); + /// + /// var defaultKeyPair = new AliCloud.Ecp.KeyPair("default", new() + /// { + /// KeyPairName = name, + /// PublicKeyBody = "ssh-rsa AAAAB3Nza12345678qwertyuudsfsg", + /// }); + /// + /// var defaultInstance = new AliCloud.Ecp.Instance("default", new() + /// { + /// InstanceName = name, + /// Description = name, + /// Force = true, + /// KeyPairName = defaultKeyPair.KeyPairName, + /// VswitchId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]), + /// ImageId = "android_9_0_0_release_2851157_20211201.vhd", + /// InstanceType = Output.Tuple(defaultGetInstanceTypes, instanceTypeCountSize).Apply(values => + /// { + /// var defaultGetInstanceTypes = values.Item1; + /// var instanceTypeCountSize = values.Item2; + /// return defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes)[instanceTypeCountSize - 1].InstanceType; + /// }), + /// PaymentType = "PayAsYouGo", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecp/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecp/GetKeyPairs.cs b/sdk/dotnet/Ecp/GetKeyPairs.cs index e20c8ebe56..f96646ee45 100644 --- a/sdk/dotnet/Ecp/GetKeyPairs.cs +++ b/sdk/dotnet/Ecp/GetKeyPairs.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetKeyPairsArgs? args = null, /// public static Output Invoke(GetKeyPairsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecp/getKeyPairs:getKeyPairs", args ?? new GetKeyPairsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecp Key Pairs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.130.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ecp.GetKeyPairs.Invoke(); + /// + /// var nameRegex = AliCloud.Ecp.GetKeyPairs.Invoke(new() + /// { + /// NameRegex = "^my-KeyPair", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecpKeyPairId1"] = ids.Apply(getKeyPairsResult => getKeyPairsResult.Pairs[0]?.Id), + /// ["ecpKeyPairId2"] = nameRegex.Apply(getKeyPairsResult => getKeyPairsResult.Pairs[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetKeyPairsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecp/getKeyPairs:getKeyPairs", args ?? new GetKeyPairsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecp/GetZones.cs b/sdk/dotnet/Ecp/GetZones.cs index 590f77a0c4..6b3cde1fc3 100644 --- a/sdk/dotnet/Ecp/GetZones.cs +++ b/sdk/dotnet/Ecp/GetZones.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecp/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the available zones with the Cloud Phone (ECP) Instance of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.158.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Ecp.GetZones.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudNasZonesId"] = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.ZoneId)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecp/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetActivations.cs b/sdk/dotnet/Ecs/GetActivations.cs index b276a8d250..f067048225 100644 --- a/sdk/dotnet/Ecs/GetActivations.cs +++ b/sdk/dotnet/Ecs/GetActivations.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetActivationsArgs? args = /// public static Output Invoke(GetActivationsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getActivations:getActivations", args ?? new GetActivationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecs Activations of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.177.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ecs.GetActivations.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecsActivationId1"] = ids.Apply(getActivationsResult => getActivationsResult.Activations[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetActivationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getActivations:getActivations", args ?? new GetActivationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetAutoSnapshotPolicies.cs b/sdk/dotnet/Ecs/GetAutoSnapshotPolicies.cs index b8ce8c9388..cde4ee9539 100644 --- a/sdk/dotnet/Ecs/GetAutoSnapshotPolicies.cs +++ b/sdk/dotnet/Ecs/GetAutoSnapshotPolicies.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetAutoSnapshotPol /// public static Output Invoke(GetAutoSnapshotPoliciesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getAutoSnapshotPolicies:getAutoSnapshotPolicies", args ?? new GetAutoSnapshotPoliciesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecs Auto Snapshot Policies of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.117.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Ecs.GetAutoSnapshotPolicies.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "sp-bp14e66xxxxxxxx", + /// }, + /// NameRegex = "tf-testAcc", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstEcsAutoSnapshotPolicyId"] = example.Apply(getAutoSnapshotPoliciesResult => getAutoSnapshotPoliciesResult.Policies[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAutoSnapshotPoliciesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getAutoSnapshotPolicies:getAutoSnapshotPolicies", args ?? new GetAutoSnapshotPoliciesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetCapacityReservations.cs b/sdk/dotnet/Ecs/GetCapacityReservations.cs index 1af160e32d..0f254cbb9b 100644 --- a/sdk/dotnet/Ecs/GetCapacityReservations.cs +++ b/sdk/dotnet/Ecs/GetCapacityReservations.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetCapacityReserva /// public static Output Invoke(GetCapacityReservationsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getCapacityReservations:getCapacityReservations", args ?? new GetCapacityReservationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Ecs Capacity Reservation available to the user. + /// + /// > **NOTE:** Available in 1.195.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Ecs.GetCapacityReservations.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAlicloudEcsCapacityReservation.Id, + /// }, + /// NameRegex = defaultAlicloudEcsCapacityReservation.Name, + /// InstanceType = "ecs.c6.large", + /// Platform = "linux", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudEcsCapacityReservationExampleId"] = @default.Apply(@default => @default.Apply(getCapacityReservationsResult => getCapacityReservationsResult.Reservations[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetCapacityReservationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getCapacityReservations:getCapacityReservations", args ?? new GetCapacityReservationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetCommands.cs b/sdk/dotnet/Ecs/GetCommands.cs index 777a08b6d1..929e329fa0 100644 --- a/sdk/dotnet/Ecs/GetCommands.cs +++ b/sdk/dotnet/Ecs/GetCommands.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetCommandsArgs? args = null, /// public static Output Invoke(GetCommandsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getCommands:getCommands", args ?? new GetCommandsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecs Commands of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.116.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Ecs.GetCommands.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "E2RY53-xxxx", + /// }, + /// NameRegex = "tf-testAcc", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstEcsCommandId"] = example.Apply(getCommandsResult => getCommandsResult.Commands[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetCommandsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getCommands:getCommands", args ?? new GetCommandsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetDedicatedHosts.cs b/sdk/dotnet/Ecs/GetDedicatedHosts.cs index f8532ebc7f..dd6ab68ad2 100644 --- a/sdk/dotnet/Ecs/GetDedicatedHosts.cs +++ b/sdk/dotnet/Ecs/GetDedicatedHosts.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetDedicatedHostsArgs? a /// public static Output Invoke(GetDedicatedHostsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getDedicatedHosts:getDedicatedHosts", args ?? new GetDedicatedHostsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of ECS Dedicated Hosts in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in v1.91.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var dedicatedHostsDs = AliCloud.Ecs.GetDedicatedHosts.Invoke(new() + /// { + /// NameRegex = "tf-testAcc", + /// DedicatedHostType = "ddh.g5", + /// Status = "Available", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstDedicatedHostsId"] = dedicatedHostsDs.Apply(getDedicatedHostsResult => getDedicatedHostsResult.Hosts[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDedicatedHostsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getDedicatedHosts:getDedicatedHosts", args ?? new GetDedicatedHostsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetDisks.cs b/sdk/dotnet/Ecs/GetDisks.cs index 0106e383f8..c23886529f 100644 --- a/sdk/dotnet/Ecs/GetDisks.cs +++ b/sdk/dotnet/Ecs/GetDisks.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetDisksArgs? args = null, Invoke /// public static Output Invoke(GetDisksInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getDisks:getDisks", args ?? new GetDisksInvokeArgs(), options.WithDefaults()); + + /// + /// > **DEPRECATED:** This datasource has been renamed to alicloud.ecs.getEcsDisks from version 1.122.0. + /// + /// This data source provides the disks of the current Alibaba Cloud user. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var disksDs = AliCloud.Ecs.GetDisks.Invoke(new() + /// { + /// NameRegex = "sample_disk", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstDiskId"] = disksDs.Apply(getDisksResult => getDisksResult.Disks[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDisksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getDisks:getDisks", args ?? new GetDisksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetEcsDedicatedHostClusters.cs b/sdk/dotnet/Ecs/GetEcsDedicatedHostClusters.cs index 9c74df4eab..5d99d62561 100644 --- a/sdk/dotnet/Ecs/GetEcsDedicatedHostClusters.cs +++ b/sdk/dotnet/Ecs/GetEcsDedicatedHostClusters.cs @@ -134,6 +134,68 @@ public static Task InvokeAsync(GetEcsDedicate /// public static Output Invoke(GetEcsDedicatedHostClustersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsDedicatedHostClusters:getEcsDedicatedHostClusters", args ?? new GetEcsDedicatedHostClustersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecs Dedicated Host Clusters of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.146.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ecs.GetEcsDedicatedHostClusters.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Ecs.GetEcsDedicatedHostClusters.Invoke(new() + /// { + /// NameRegex = "^my-DedicatedHostCluster", + /// }); + /// + /// var zoneId = AliCloud.Ecs.GetEcsDedicatedHostClusters.Invoke(new() + /// { + /// ZoneId = "example_value", + /// }); + /// + /// var clusterName = AliCloud.Ecs.GetEcsDedicatedHostClusters.Invoke(new() + /// { + /// DedicatedHostClusterName = "example_value", + /// }); + /// + /// var clusterIds = AliCloud.Ecs.GetEcsDedicatedHostClusters.Invoke(new() + /// { + /// DedicatedHostClusterIds = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecsDedicatedHostClusterId1"] = ids.Apply(getEcsDedicatedHostClustersResult => getEcsDedicatedHostClustersResult.Clusters[0]?.Id), + /// ["ecsDedicatedHostClusterId2"] = nameRegex.Apply(getEcsDedicatedHostClustersResult => getEcsDedicatedHostClustersResult.Clusters[0]?.Id), + /// ["ecsDedicatedHostClusterId3"] = zoneId.Apply(getEcsDedicatedHostClustersResult => getEcsDedicatedHostClustersResult.Clusters[0]?.Id), + /// ["ecsDedicatedHostClusterId4"] = clusterName.Apply(getEcsDedicatedHostClustersResult => getEcsDedicatedHostClustersResult.Clusters[0]?.Id), + /// ["ecsDedicatedHostClusterId5"] = clusterIds.Apply(getEcsDedicatedHostClustersResult => getEcsDedicatedHostClustersResult.Clusters[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEcsDedicatedHostClustersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsDedicatedHostClusters:getEcsDedicatedHostClusters", args ?? new GetEcsDedicatedHostClustersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetEcsDeploymentSets.cs b/sdk/dotnet/Ecs/GetEcsDeploymentSets.cs index adb5bea66a..c3f9d25f76 100644 --- a/sdk/dotnet/Ecs/GetEcsDeploymentSets.cs +++ b/sdk/dotnet/Ecs/GetEcsDeploymentSets.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetEcsDeploymentSetsA /// public static Output Invoke(GetEcsDeploymentSetsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsDeploymentSets:getEcsDeploymentSets", args ?? new GetEcsDeploymentSetsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecs Deployment Sets of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.140.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ecs.GetEcsDeploymentSets.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Ecs.GetEcsDeploymentSets.Invoke(new() + /// { + /// NameRegex = "^my-DeploymentSet", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecsDeploymentSetId1"] = ids.Apply(getEcsDeploymentSetsResult => getEcsDeploymentSetsResult.Sets[0]?.Id), + /// ["ecsDeploymentSetId2"] = nameRegex.Apply(getEcsDeploymentSetsResult => getEcsDeploymentSetsResult.Sets[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEcsDeploymentSetsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsDeploymentSets:getEcsDeploymentSets", args ?? new GetEcsDeploymentSetsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetEcsDisks.cs b/sdk/dotnet/Ecs/GetEcsDisks.cs index 3fbc5fa06a..19d433b45b 100644 --- a/sdk/dotnet/Ecs/GetEcsDisks.cs +++ b/sdk/dotnet/Ecs/GetEcsDisks.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetEcsDisksArgs? args = null, /// public static Output Invoke(GetEcsDisksInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsDisks:getEcsDisks", args ?? new GetEcsDisksInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecs Disks of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.122.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Ecs.GetEcsDisks.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "d-artgdsvdvxxxx", + /// }, + /// NameRegex = "tf-test", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstEcsDiskId"] = example.Apply(getEcsDisksResult => getEcsDisksResult.Disks[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEcsDisksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsDisks:getEcsDisks", args ?? new GetEcsDisksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetEcsImageComponents.cs b/sdk/dotnet/Ecs/GetEcsImageComponents.cs index c9b3718fd0..dd32773aa7 100644 --- a/sdk/dotnet/Ecs/GetEcsImageComponents.cs +++ b/sdk/dotnet/Ecs/GetEcsImageComponents.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetEcsImageComponent /// public static Output Invoke(GetEcsImageComponentsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsImageComponents:getEcsImageComponents", args ?? new GetEcsImageComponentsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecs Image Components of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.159.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ecs.GetEcsImageComponents.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Ecs.GetEcsImageComponents.Invoke(new() + /// { + /// NameRegex = "^my-ImageComponent", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecsImageComponentId1"] = ids.Apply(getEcsImageComponentsResult => getEcsImageComponentsResult.Components[0]?.Id), + /// ["ecsImageComponentId2"] = nameRegex.Apply(getEcsImageComponentsResult => getEcsImageComponentsResult.Components[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEcsImageComponentsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsImageComponents:getEcsImageComponents", args ?? new GetEcsImageComponentsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetEcsImagePipeline.cs b/sdk/dotnet/Ecs/GetEcsImagePipeline.cs index 65887a30b5..0cf3ac0d04 100644 --- a/sdk/dotnet/Ecs/GetEcsImagePipeline.cs +++ b/sdk/dotnet/Ecs/GetEcsImagePipeline.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetEcsImagePipelineArg /// public static Output Invoke(GetEcsImagePipelineInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsImagePipeline:getEcsImagePipeline", args ?? new GetEcsImagePipelineInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecs Image Pipelines of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.163.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ecs.GetEcsImagePipeline.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Ecs.GetEcsImagePipeline.Invoke(new() + /// { + /// NameRegex = "^my-ImagePipeline", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecsImagePipelineId1"] = ids.Apply(getEcsImagePipelineResult => getEcsImagePipelineResult.Pipelines[0]?.Id), + /// ["ecsImagePipelineId2"] = nameRegex.Apply(getEcsImagePipelineResult => getEcsImagePipelineResult.Pipelines[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEcsImagePipelineInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsImagePipeline:getEcsImagePipeline", args ?? new GetEcsImagePipelineInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetEcsInvocations.cs b/sdk/dotnet/Ecs/GetEcsInvocations.cs index 178c2279f1..af56c84049 100644 --- a/sdk/dotnet/Ecs/GetEcsInvocations.cs +++ b/sdk/dotnet/Ecs/GetEcsInvocations.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetEcsInvocationsArgs? a /// public static Output Invoke(GetEcsInvocationsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsInvocations:getEcsInvocations", args ?? new GetEcsInvocationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecs Invocations of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.168.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ecs.GetEcsInvocations.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example-id", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecsInvocationId1"] = ids.Apply(getEcsInvocationsResult => getEcsInvocationsResult.Invocations[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEcsInvocationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsInvocations:getEcsInvocations", args ?? new GetEcsInvocationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetEcsKeyPairs.cs b/sdk/dotnet/Ecs/GetEcsKeyPairs.cs index 8925f3de15..d3afb7ddb9 100644 --- a/sdk/dotnet/Ecs/GetEcsKeyPairs.cs +++ b/sdk/dotnet/Ecs/GetEcsKeyPairs.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetEcsKeyPairsArgs? args = /// public static Output Invoke(GetEcsKeyPairsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsKeyPairs:getEcsKeyPairs", args ?? new GetEcsKeyPairsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecs Key Pairs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.121.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Ecs.GetEcsKeyPairs.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "key_pair_name", + /// }, + /// NameRegex = "key_pair_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstEcsKeyPairId"] = example.Apply(getEcsKeyPairsResult => getEcsKeyPairsResult.Pairs[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEcsKeyPairsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsKeyPairs:getEcsKeyPairs", args ?? new GetEcsKeyPairsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetEcsLaunchTemplates.cs b/sdk/dotnet/Ecs/GetEcsLaunchTemplates.cs index 213b3470ea..0c542512be 100644 --- a/sdk/dotnet/Ecs/GetEcsLaunchTemplates.cs +++ b/sdk/dotnet/Ecs/GetEcsLaunchTemplates.cs @@ -300,6 +300,151 @@ public static Task InvokeAsync(GetEcsLaunchTemplate /// public static Output Invoke(GetEcsLaunchTemplatesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsLaunchTemplates:getEcsLaunchTemplates", args ?? new GetEcsLaunchTemplatesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecs Launch Templates of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.120.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.GetZones.Invoke(new() + /// { + /// AvailableDiskCategory = "cloud_efficiency", + /// AvailableResourceCreation = "VSwitch", + /// }); + /// + /// var defaultGetInstanceTypes = AliCloud.Ecs.GetInstanceTypes.Invoke(new() + /// { + /// AvailabilityZone = @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id), + /// }); + /// + /// var defaultGetImages = AliCloud.Ecs.GetImages.Invoke(new() + /// { + /// NameRegex = "^ubuntu_18.*64", + /// Owners = "system", + /// }); + /// + /// var defaultNetwork = new AliCloud.Vpc.Network("default", new() + /// { + /// VpcName = "terraform-example", + /// CidrBlock = "172.17.3.0/24", + /// }); + /// + /// var defaultSwitch = new AliCloud.Vpc.Switch("default", new() + /// { + /// VswitchName = "terraform-example", + /// CidrBlock = "172.17.3.0/24", + /// VpcId = defaultNetwork.Id, + /// ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)), + /// }); + /// + /// var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new() + /// { + /// Name = "terraform-example", + /// VpcId = defaultNetwork.Id, + /// }); + /// + /// var defaultEcsLaunchTemplate = new AliCloud.Ecs.EcsLaunchTemplate("default", new() + /// { + /// LaunchTemplateName = "terraform-example", + /// Description = "terraform-example", + /// ImageId = defaultGetImages.Apply(getImagesResult => getImagesResult.Images[0]?.Id), + /// HostName = "terraform-example", + /// InstanceChargeType = "PrePaid", + /// InstanceName = "terraform-example", + /// InstanceType = defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.Id), + /// InternetChargeType = "PayByBandwidth", + /// InternetMaxBandwidthIn = 5, + /// InternetMaxBandwidthOut = 5, + /// IoOptimized = "optimized", + /// KeyPairName = "key_pair_name", + /// RamRoleName = "ram_role_name", + /// NetworkType = "vpc", + /// SecurityEnhancementStrategy = "Active", + /// SpotPriceLimit = 5, + /// SpotStrategy = "SpotWithPriceLimit", + /// SecurityGroupIds = new[] + /// { + /// defaultSecurityGroup.Id, + /// }, + /// SystemDisk = new AliCloud.Ecs.Inputs.EcsLaunchTemplateSystemDiskArgs + /// { + /// Category = "cloud_ssd", + /// Description = "Test For Terraform", + /// Name = "terraform-example", + /// Size = 40, + /// DeleteWithInstance = false, + /// }, + /// UserData = "xxxxxxx", + /// VswitchId = defaultSwitch.Id, + /// VpcId = defaultNetwork.Id, + /// ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)), + /// TemplateTags = + /// { + /// { "Create", "Terraform" }, + /// { "For", "example" }, + /// }, + /// NetworkInterfaces = new AliCloud.Ecs.Inputs.EcsLaunchTemplateNetworkInterfacesArgs + /// { + /// Name = "eth0", + /// Description = "hello1", + /// PrimaryIp = "10.0.0.2", + /// SecurityGroupId = defaultSecurityGroup.Id, + /// VswitchId = defaultSwitch.Id, + /// }, + /// DataDisks = new[] + /// { + /// new AliCloud.Ecs.Inputs.EcsLaunchTemplateDataDiskArgs + /// { + /// Name = "disk1", + /// Description = "description", + /// DeleteWithInstance = true, + /// Category = "cloud", + /// Encrypted = false, + /// PerformanceLevel = "PL0", + /// Size = 20, + /// }, + /// new AliCloud.Ecs.Inputs.EcsLaunchTemplateDataDiskArgs + /// { + /// Name = "disk2", + /// Description = "description2", + /// DeleteWithInstance = true, + /// Category = "cloud", + /// Encrypted = false, + /// PerformanceLevel = "PL0", + /// Size = 20, + /// }, + /// }, + /// }); + /// + /// var example = AliCloud.Ecs.GetEcsLaunchTemplates.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultEcsLaunchTemplate.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstEcsLaunchTemplateId"] = example.Apply(getEcsLaunchTemplatesResult => getEcsLaunchTemplatesResult.Templates[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEcsLaunchTemplatesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsLaunchTemplates:getEcsLaunchTemplates", args ?? new GetEcsLaunchTemplatesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetEcsNetworkInterfacePermissions.cs b/sdk/dotnet/Ecs/GetEcsNetworkInterfacePermissions.cs index 96994a5bf6..86b3a70af7 100644 --- a/sdk/dotnet/Ecs/GetEcsNetworkInterfacePermissions.cs +++ b/sdk/dotnet/Ecs/GetEcsNetworkInterfacePermissions.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetEcsNe /// public static Output Invoke(GetEcsNetworkInterfacePermissionsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsNetworkInterfacePermissions:getEcsNetworkInterfacePermissions", args ?? new GetEcsNetworkInterfacePermissionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecs Network Interface Permissions of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.166.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ecs.GetEcsNetworkInterfacePermissions.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// NetworkInterfaceId = "example_value", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecsNetworkInterfacePermissionId1"] = ids.Apply(getEcsNetworkInterfacePermissionsResult => getEcsNetworkInterfacePermissionsResult.Permissions[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEcsNetworkInterfacePermissionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsNetworkInterfacePermissions:getEcsNetworkInterfacePermissions", args ?? new GetEcsNetworkInterfacePermissionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetEcsNetworkInterfaces.cs b/sdk/dotnet/Ecs/GetEcsNetworkInterfaces.cs index 7791cd8158..fa18686c58 100644 --- a/sdk/dotnet/Ecs/GetEcsNetworkInterfaces.cs +++ b/sdk/dotnet/Ecs/GetEcsNetworkInterfaces.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetEcsNetworkInter /// public static Output Invoke(GetEcsNetworkInterfacesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsNetworkInterfaces:getEcsNetworkInterfaces", args ?? new GetEcsNetworkInterfacesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecs Network Interfaces of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.123.1. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Ecs.GetEcsNetworkInterfaces.Invoke(new() + /// { + /// NameRegex = "eni-ipv6", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstEcsNetworkInterfaceId"] = example.Apply(getEcsNetworkInterfacesResult => getEcsNetworkInterfacesResult.Interfaces[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEcsNetworkInterfacesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsNetworkInterfaces:getEcsNetworkInterfaces", args ?? new GetEcsNetworkInterfacesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetEcsPrefixLists.cs b/sdk/dotnet/Ecs/GetEcsPrefixLists.cs index b7d2fedd61..dc5f9bd09e 100644 --- a/sdk/dotnet/Ecs/GetEcsPrefixLists.cs +++ b/sdk/dotnet/Ecs/GetEcsPrefixLists.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetEcsPrefixListsArgs? a /// public static Output Invoke(GetEcsPrefixListsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsPrefixLists:getEcsPrefixLists", args ?? new GetEcsPrefixListsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecs Prefix Lists of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.152.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Ecs.GetEcsPrefixLists.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "E2RY53-xxxx", + /// }, + /// NameRegex = "tf-testAcc", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["outputId"] = example.Apply(getEcsPrefixListsResult => getEcsPrefixListsResult.Lists[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEcsPrefixListsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsPrefixLists:getEcsPrefixLists", args ?? new GetEcsPrefixListsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetEcsSnapshotGroups.cs b/sdk/dotnet/Ecs/GetEcsSnapshotGroups.cs index 2a882d4fff..9f679dd19a 100644 --- a/sdk/dotnet/Ecs/GetEcsSnapshotGroups.cs +++ b/sdk/dotnet/Ecs/GetEcsSnapshotGroups.cs @@ -116,6 +116,59 @@ public static Task InvokeAsync(GetEcsSnapshotGroupsA /// public static Output Invoke(GetEcsSnapshotGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsSnapshotGroups:getEcsSnapshotGroups", args ?? new GetEcsSnapshotGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecs Snapshot Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.160.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ecs.GetEcsSnapshotGroups.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example-id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Ecs.GetEcsSnapshotGroups.Invoke(new() + /// { + /// NameRegex = "^my-SnapshotGroup", + /// }); + /// + /// var status = AliCloud.Ecs.GetEcsSnapshotGroups.Invoke(new() + /// { + /// Status = "accomplished", + /// }); + /// + /// var instanceId = AliCloud.Ecs.GetEcsSnapshotGroups.Invoke(new() + /// { + /// InstanceId = "example-instance_id", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecsSnapshotGroupId1"] = ids.Apply(getEcsSnapshotGroupsResult => getEcsSnapshotGroupsResult.Groups[0]?.Id), + /// ["ecsSnapshotGroupId2"] = nameRegex.Apply(getEcsSnapshotGroupsResult => getEcsSnapshotGroupsResult.Groups[0]?.Id), + /// ["ecsSnapshotGroupId3"] = status.Apply(getEcsSnapshotGroupsResult => getEcsSnapshotGroupsResult.Groups[0]?.Id), + /// ["ecsSnapshotGroupId4"] = instanceId.Apply(getEcsSnapshotGroupsResult => getEcsSnapshotGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEcsSnapshotGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsSnapshotGroups:getEcsSnapshotGroups", args ?? new GetEcsSnapshotGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetEcsSnapshots.cs b/sdk/dotnet/Ecs/GetEcsSnapshots.cs index 1d5a99f510..628efa809a 100644 --- a/sdk/dotnet/Ecs/GetEcsSnapshots.cs +++ b/sdk/dotnet/Ecs/GetEcsSnapshots.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetEcsSnapshotsArgs? args /// public static Output Invoke(GetEcsSnapshotsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsSnapshots:getEcsSnapshots", args ?? new GetEcsSnapshotsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecs Snapshots of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.120.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Ecs.GetEcsSnapshots.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "s-bp1fvuxxxxxxxx", + /// }, + /// NameRegex = "tf-test", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstEcsSnapshotId"] = example.Apply(getEcsSnapshotsResult => getEcsSnapshotsResult.Snapshots[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEcsSnapshotsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsSnapshots:getEcsSnapshots", args ?? new GetEcsSnapshotsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetEcsStorageCapacityUnits.cs b/sdk/dotnet/Ecs/GetEcsStorageCapacityUnits.cs index 7dd6031001..c635b5967c 100644 --- a/sdk/dotnet/Ecs/GetEcsStorageCapacityUnits.cs +++ b/sdk/dotnet/Ecs/GetEcsStorageCapacityUnits.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetEcsStorageCa /// public static Output Invoke(GetEcsStorageCapacityUnitsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsStorageCapacityUnits:getEcsStorageCapacityUnits", args ?? new GetEcsStorageCapacityUnitsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecs Storage Capacity Units of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.155.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ecs.GetEcsStorageCapacityUnits.Invoke(); + /// + /// var nameRegex = AliCloud.Ecs.GetEcsStorageCapacityUnits.Invoke(new() + /// { + /// NameRegex = "^my-StorageCapacityUnit", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecsStorageCapacityUnitId1"] = ids.Apply(getEcsStorageCapacityUnitsResult => getEcsStorageCapacityUnitsResult.Units[0]?.Id), + /// ["ecsStorageCapacityUnitId2"] = nameRegex.Apply(getEcsStorageCapacityUnitsResult => getEcsStorageCapacityUnitsResult.Units[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEcsStorageCapacityUnitsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEcsStorageCapacityUnits:getEcsStorageCapacityUnits", args ?? new GetEcsStorageCapacityUnitsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetEipAddresses.cs b/sdk/dotnet/Ecs/GetEipAddresses.cs index 41b96986d3..c760b5ee85 100644 --- a/sdk/dotnet/Ecs/GetEipAddresses.cs +++ b/sdk/dotnet/Ecs/GetEipAddresses.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetEipAddressesArgs? args /// public static Output Invoke(GetEipAddressesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEipAddresses:getEipAddresses", args ?? new GetEipAddressesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Eip Addresses of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.126.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Ecs.GetEipAddresses.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "eip-bp1jvx5ki6c********", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstEipAddressId"] = example.Apply(getEipAddressesResult => getEipAddressesResult.Addresses[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEipAddressesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEipAddresses:getEipAddresses", args ?? new GetEipAddressesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetEips.cs b/sdk/dotnet/Ecs/GetEips.cs index 127187f2ab..550fd94ca5 100644 --- a/sdk/dotnet/Ecs/GetEips.cs +++ b/sdk/dotnet/Ecs/GetEips.cs @@ -65,6 +65,33 @@ public static Task InvokeAsync(GetEipsArgs? args = null, InvokeOp /// public static Output Invoke(GetEipsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEips:getEips", args ?? new GetEipsInvokeArgs(), options.WithDefaults()); + + /// + /// > **DEPRECATED:** This datasource has been deprecated from version `1.126.0`. Please use new datasource alicloud_eip_addresses. + /// + /// This data source provides a list of EIPs (Elastic IP address) owned by an Alibaba Cloud account. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var eipsDs = AliCloud.Ecs.GetEips.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstEipId"] = eipsDs.Apply(getEipsResult => getEipsResult.Eips[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEipsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getEips:getEips", args ?? new GetEipsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetElasticityAssurances.cs b/sdk/dotnet/Ecs/GetElasticityAssurances.cs index 9e0ecce264..37ad40ef6e 100644 --- a/sdk/dotnet/Ecs/GetElasticityAssurances.cs +++ b/sdk/dotnet/Ecs/GetElasticityAssurances.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetElasticityAssur /// public static Output Invoke(GetElasticityAssurancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getElasticityAssurances:getElasticityAssurances", args ?? new GetElasticityAssurancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Ecs Elasticity Assurance available to the user. + /// + /// > **NOTE:** Available in 1.196.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Ecs.GetElasticityAssurances.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAlicloudEcsElasticityAssurance.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudEcsElasticityAssuranceExampleId"] = @default.Apply(@default => @default.Apply(getElasticityAssurancesResult => getElasticityAssurancesResult.Assurances[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetElasticityAssurancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getElasticityAssurances:getElasticityAssurances", args ?? new GetElasticityAssurancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetHpcClusters.cs b/sdk/dotnet/Ecs/GetHpcClusters.cs index 326a8084e5..a955f7e3c0 100644 --- a/sdk/dotnet/Ecs/GetHpcClusters.cs +++ b/sdk/dotnet/Ecs/GetHpcClusters.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetHpcClustersArgs? args = /// public static Output Invoke(GetHpcClustersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getHpcClusters:getHpcClusters", args ?? new GetHpcClustersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecs Hpc Clusters of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.116.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Ecs.GetHpcClusters.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "hpc-bp1i09xxxxxxxx", + /// }, + /// NameRegex = "tf-testAcc", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstEcsHpcClusterId"] = example.Apply(getHpcClustersResult => getHpcClustersResult.Clusters[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetHpcClustersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getHpcClusters:getHpcClusters", args ?? new GetHpcClustersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetImages.cs b/sdk/dotnet/Ecs/GetImages.cs index 69421cc15f..9aafdf1620 100644 --- a/sdk/dotnet/Ecs/GetImages.cs +++ b/sdk/dotnet/Ecs/GetImages.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetImagesArgs? args = null, Invo /// public static Output Invoke(GetImagesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getImages:getImages", args ?? new GetImagesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides available image resources. It contains user's private images, system images provided by Alibaba Cloud, + /// other public images and the ones available on the image market. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var imagesDs = AliCloud.Ecs.GetImages.Invoke(new() + /// { + /// Owners = "system", + /// NameRegex = "^centos_6", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstImageId"] = imagesDs.Apply(getImagesResult => getImagesResult.Images[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetImagesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getImages:getImages", args ?? new GetImagesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetInstanceKeywords.cs b/sdk/dotnet/Ecs/GetInstanceKeywords.cs index 4219d98d21..0700712248 100644 --- a/sdk/dotnet/Ecs/GetInstanceKeywords.cs +++ b/sdk/dotnet/Ecs/GetInstanceKeywords.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetInstanceKeywordsArg /// public static Output Invoke(GetInstanceKeywordsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getInstanceKeywords:getInstanceKeywords", args ?? new GetInstanceKeywordsInvokeArgs(), options.WithDefaults()); + + /// + /// Operation to query the reserved keywords of an ApsaraDB RDS instance. The reserved keywords cannot be used for the usernames of accounts or the names of databases. + /// + /// > **NOTE:** Available in v1.196.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var resources = AliCloud.Ecs.GetInstanceKeywords.Invoke(new() + /// { + /// Key = "account", + /// OutputFile = "./classes.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["accountKeywords"] = resources.Apply(getInstanceKeywordsResult => getInstanceKeywordsResult.Keywords[0]), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceKeywordsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getInstanceKeywords:getInstanceKeywords", args ?? new GetInstanceKeywordsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetInstanceTypeFamilies.cs b/sdk/dotnet/Ecs/GetInstanceTypeFamilies.cs index c4ff5ad7de..480bbf9862 100644 --- a/sdk/dotnet/Ecs/GetInstanceTypeFamilies.cs +++ b/sdk/dotnet/Ecs/GetInstanceTypeFamilies.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetInstanceTypeFam /// public static Output Invoke(GetInstanceTypeFamiliesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getInstanceTypeFamilies:getInstanceTypeFamilies", args ?? new GetInstanceTypeFamiliesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the ECS instance type families of Alibaba Cloud. + /// + /// > **NOTE:** Available in 1.54.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Ecs.GetInstanceTypeFamilies.Invoke(new() + /// { + /// InstanceChargeType = "PrePaid", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstInstanceTypeFamilyId"] = @default.Apply(@default => @default.Apply(getInstanceTypeFamiliesResult => getInstanceTypeFamiliesResult.Families[0]?.Id)), + /// ["instanceIds"] = @default.Apply(@default => @default.Apply(getInstanceTypeFamiliesResult => getInstanceTypeFamiliesResult.Ids)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceTypeFamiliesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getInstanceTypeFamilies:getInstanceTypeFamilies", args ?? new GetInstanceTypeFamiliesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetInstanceTypes.cs b/sdk/dotnet/Ecs/GetInstanceTypes.cs index 6005ac42b6..86744c7862 100644 --- a/sdk/dotnet/Ecs/GetInstanceTypes.cs +++ b/sdk/dotnet/Ecs/GetInstanceTypes.cs @@ -204,6 +204,103 @@ public static Task InvokeAsync(GetInstanceTypesArgs? arg /// public static Output Invoke(GetInstanceTypesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getInstanceTypes:getInstanceTypes", args ?? new GetInstanceTypesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the ECS instance types of Alibaba Cloud. + /// + /// > **NOTE:** By default, only the upgraded instance types are returned. If you want to get outdated instance types, you must set `is_outdated` to true. + /// + /// > **NOTE:** If one instance type is sold out, it will not be exported. + /// + /// > **NOTE:** Available since v1.0.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "terraform-example"; + /// var @default = AliCloud.GetZones.Invoke(new() + /// { + /// AvailableResourceCreation = "VSwitch", + /// }); + /// + /// // Declare the data source + /// var defaultGetInstanceTypes = AliCloud.Ecs.GetInstanceTypes.Invoke(new() + /// { + /// AvailabilityZone = @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id), + /// InstanceTypeFamily = "ecs.sn1ne", + /// }); + /// + /// var defaultGetImages = AliCloud.Ecs.GetImages.Invoke(new() + /// { + /// NameRegex = "^ubuntu_[0-9]+_[0-9]+_x64*", + /// MostRecent = true, + /// Owners = "system", + /// }); + /// + /// var defaultNetwork = new AliCloud.Vpc.Network("default", new() + /// { + /// VpcName = name, + /// CidrBlock = "192.168.0.0/16", + /// }); + /// + /// var defaultSwitch = new AliCloud.Vpc.Switch("default", new() + /// { + /// VswitchName = name, + /// VpcId = defaultNetwork.Id, + /// CidrBlock = "192.168.192.0/24", + /// ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)), + /// }); + /// + /// var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new() + /// { + /// Name = name, + /// VpcId = defaultNetwork.Id, + /// }); + /// + /// var defaultEcsNetworkInterface = new AliCloud.Ecs.EcsNetworkInterface("default", new() + /// { + /// NetworkInterfaceName = name, + /// VswitchId = defaultSwitch.Id, + /// SecurityGroupIds = new[] + /// { + /// defaultSecurityGroup.Id, + /// }, + /// }); + /// + /// var defaultInstance = new List<AliCloud.Ecs.Instance>(); + /// for (var rangeIndex = 0; rangeIndex < 14; rangeIndex++) + /// { + /// var range = new { Value = rangeIndex }; + /// defaultInstance.Add(new AliCloud.Ecs.Instance($"default-{range.Value}", new() + /// { + /// ImageId = defaultGetImages.Apply(getImagesResult => getImagesResult.Images[0]?.Id), + /// InstanceType = defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.Id), + /// InstanceName = name, + /// SecurityGroups = new[] + /// { + /// defaultSecurityGroup, + /// }.Select(__item => __item.Id).ToList(), + /// InternetChargeType = "PayByTraffic", + /// InternetMaxBandwidthOut = 10, + /// AvailabilityZone = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)), + /// InstanceChargeType = "PostPaid", + /// SystemDiskCategory = "cloud_efficiency", + /// VswitchId = defaultSwitch.Id, + /// })); + /// } + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceTypesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getInstanceTypes:getInstanceTypes", args ?? new GetInstanceTypesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetInstances.cs b/sdk/dotnet/Ecs/GetInstances.cs index f365edd9fd..9ba7a38c8c 100644 --- a/sdk/dotnet/Ecs/GetInstances.cs +++ b/sdk/dotnet/Ecs/GetInstances.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// The Instances data source list ECS instance resources according to their ID, name regex, image id, status and other fields. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var instancesDs = AliCloud.Ecs.GetInstances.Invoke(new() + /// { + /// NameRegex = "web_server", + /// Status = "Running", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstInstanceId"] = instancesDs.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id), + /// ["instanceIds"] = instancesDs.Apply(getInstancesResult => getInstancesResult.Ids), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetKeyPairs.cs b/sdk/dotnet/Ecs/GetKeyPairs.cs index 20aca5e0e6..8e729b5c46 100644 --- a/sdk/dotnet/Ecs/GetKeyPairs.cs +++ b/sdk/dotnet/Ecs/GetKeyPairs.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetKeyPairsArgs? args = null, /// public static Output Invoke(GetKeyPairsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getKeyPairs:getKeyPairs", args ?? new GetKeyPairsInvokeArgs(), options.WithDefaults()); + + /// + /// > **DEPRECATED:** This datasource has been renamed to alicloud.ecs.getEcsKeyPairs from version 1.121.0. + /// + /// This data source provides a list of key pairs in an Alibaba Cloud account according to the specified filters. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var defaultKeyPair = new AliCloud.Ecs.KeyPair("default", new() + /// { + /// KeyName = "keyPairDatasource", + /// }); + /// + /// var @default = AliCloud.Ecs.GetKeyPairs.Invoke(new() + /// { + /// NameRegex = defaultKeyPair.KeyName, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetKeyPairsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getKeyPairs:getKeyPairs", args ?? new GetKeyPairsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetNetworkInterfaces.cs b/sdk/dotnet/Ecs/GetNetworkInterfaces.cs index 1fb24988ca..e97624de59 100644 --- a/sdk/dotnet/Ecs/GetNetworkInterfaces.cs +++ b/sdk/dotnet/Ecs/GetNetworkInterfaces.cs @@ -264,6 +264,133 @@ public static Task InvokeAsync(GetNetworkInterfacesA /// public static Output Invoke(GetNetworkInterfacesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getNetworkInterfaces:getNetworkInterfaces", args ?? new GetNetworkInterfacesInvokeArgs(), options.WithDefaults()); + + /// + /// > **DEPRECATED:** This datasource has been renamed to alicloud.ecs.getEcsNetworkInterfaces from version 1.123.1. + /// + /// Use this data source to get a list of elastic network interfaces according to the specified filters in an Alibaba Cloud account. + /// + /// For information about elastic network interface and how to use it, see [Elastic Network Interface](https://www.alibabacloud.com/help/doc-detail/58496.html) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "networkInterfacesName"; + /// var vpc = new AliCloud.Vpc.Network("vpc", new() + /// { + /// VpcName = name, + /// CidrBlock = "192.168.0.0/24", + /// }); + /// + /// var @default = AliCloud.GetZones.Invoke(new() + /// { + /// AvailableResourceCreation = "VSwitch", + /// }); + /// + /// var vswitch = new AliCloud.Vpc.Switch("vswitch", new() + /// { + /// VswitchName = name, + /// CidrBlock = "192.168.0.0/24", + /// AvailabilityZone = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)), + /// VpcId = vpc.Id, + /// }); + /// + /// var @group = new AliCloud.Ecs.SecurityGroup("group", new() + /// { + /// Name = name, + /// VpcId = vpc.Id, + /// }); + /// + /// var @interface = new AliCloud.Vpc.NetworkInterface("interface", new() + /// { + /// Name = $"{name}%d", + /// VswitchId = vswitch.Id, + /// SecurityGroups = new[] + /// { + /// @group.Id, + /// }, + /// Description = "Basic test", + /// PrivateIp = "192.168.0.2", + /// Tags = + /// { + /// { "TF-VER", "0.11.3" }, + /// }, + /// }); + /// + /// var instance = new AliCloud.Ecs.Instance("instance", new() + /// { + /// AvailabilityZone = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)), + /// SecurityGroups = new[] + /// { + /// @group.Id, + /// }, + /// InstanceType = "ecs.e3.xlarge", + /// SystemDiskCategory = "cloud_efficiency", + /// ImageId = "centos_7_04_64_20G_alibase_201701015.vhd", + /// InstanceName = name, + /// VswitchId = vswitch.Id, + /// InternetMaxBandwidthOut = 10, + /// }); + /// + /// var attachment = new AliCloud.Vpc.NetworkInterfaceAttachment("attachment", new() + /// { + /// InstanceId = instance.Id, + /// NetworkInterfaceId = @interface.Id, + /// }); + /// + /// var defaultGetNetworkInterfaces = AliCloud.Ecs.GetNetworkInterfaces.Invoke(new() + /// { + /// Ids = new[] + /// { + /// attachment.NetworkInterfaceId, + /// }, + /// NameRegex = name, + /// Tags = + /// { + /// { "TF-VER", "0.11.3" }, + /// }, + /// VpcId = vpc.Id, + /// VswitchId = vswitch.Id, + /// PrivateIp = "192.168.0.2", + /// SecurityGroupId = @group.Id, + /// Type = "Secondary", + /// InstanceId = instance.Id, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["eni0Name"] = defaultGetNetworkInterfaces.Apply(getNetworkInterfacesResult => getNetworkInterfacesResult.Interfaces[0]?.Name), + /// }; + /// }); + /// ``` + /// + /// ## Argument Reference + /// + /// The following arguments are supported: + /// + /// * `ids` - (Optional) A list of ENI IDs. + /// * `name_regex` - (Optional) A regex string to filter results by ENI name. + /// * `vpc_id` - (Optional) The VPC ID linked to ENIs. + /// * `vswitch_id` - (Optional) The vSwitch ID linked to ENIs. + /// * `private_ip` - (Optional) The primary private IP address of the ENI. + /// * `security_group_id` - (Optional) The security group ID linked to ENIs. + /// * `name` - (Optional) The name of the ENIs. + /// * `type` - (Optional) The type of ENIs, Only support for "Primary" or "Secondary". + /// * `instance_id` - (Optional) The ECS instance ID that the ENI is attached to. + /// * `tags` - (Optional) A map of tags assigned to ENIs. + /// * `output_file` - (Optional) The name of output file that saves the filter results. + /// * `resource_group_id` - (Optional, ForceNew, Available in 1.57.0+) The Id of resource group which the network interface belongs. + /// + public static Output Invoke(GetNetworkInterfacesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getNetworkInterfaces:getNetworkInterfaces", args ?? new GetNetworkInterfacesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetSecurityGroupRules.cs b/sdk/dotnet/Ecs/GetSecurityGroupRules.cs index 8bfcf3501e..67cf0a5b71 100644 --- a/sdk/dotnet/Ecs/GetSecurityGroupRules.cs +++ b/sdk/dotnet/Ecs/GetSecurityGroupRules.cs @@ -104,6 +104,53 @@ public static Task InvokeAsync(GetSecurityGroupRule /// public static Output Invoke(GetSecurityGroupRulesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getSecurityGroupRules:getSecurityGroupRules", args ?? new GetSecurityGroupRulesInvokeArgs(), options.WithDefaults()); + + /// + /// The `alicloud.ecs.getSecurityGroupRules` data source provides a collection of security permissions of a specific security group. + /// Each collection item represents a single `ingress` or `egress` permission rule. + /// The ID of the security group can be provided via a variable or the result from the other data source `alicloud.ecs.getSecurityGroups`. + /// + /// ## Example Usage + /// + /// The following example shows how to obtain details about a security group rule and how to pass its data to an instance at launch time. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var securityGroupId = config.RequireObject<dynamic>("securityGroupId"); + /// // Or get it from the alicloud_security_groups data source. + /// // Please note that the data source arguments must be enough to filter results to one security group. + /// var groupsDs = AliCloud.Ecs.GetSecurityGroups.Invoke(new() + /// { + /// NameRegex = "api", + /// }); + /// + /// // Filter the security group rule by group + /// var ingressRulesDs = AliCloud.Ecs.GetSecurityGroupRules.Invoke(new() + /// { + /// GroupId = groupsDs.Apply(getSecurityGroupsResult => getSecurityGroupsResult.Groups[0]?.Id), + /// NicType = "internet", + /// Direction = "ingress", + /// IpProtocol = "tcp", + /// }); + /// + /// // Pass port_range to the backend service + /// var backend = new AliCloud.Ecs.Instance("backend", new() + /// { + /// UserData = $"config_service.sh --portrange={ingressRulesDs.Apply(getSecurityGroupRulesResult => getSecurityGroupRulesResult.Rules[0]?.PortRange)}", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSecurityGroupRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getSecurityGroupRules:getSecurityGroupRules", args ?? new GetSecurityGroupRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetSecurityGroups.cs b/sdk/dotnet/Ecs/GetSecurityGroups.cs index 4301216a89..ea91f48cdf 100644 --- a/sdk/dotnet/Ecs/GetSecurityGroups.cs +++ b/sdk/dotnet/Ecs/GetSecurityGroups.cs @@ -86,6 +86,44 @@ public static Task InvokeAsync(GetSecurityGroupsArgs? a /// public static Output Invoke(GetSecurityGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getSecurityGroups:getSecurityGroups", args ?? new GetSecurityGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of Security Groups in an Alibaba Cloud account according to the specified filters. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Filter security groups and print the results into a file + /// var secGroupsDs = AliCloud.Ecs.GetSecurityGroups.Invoke(new() + /// { + /// NameRegex = "^web-", + /// OutputFile = "web_access.json", + /// }); + /// + /// // In conjunction with a VPC + /// var primaryVpcDs = new AliCloud.Vpc.Network("primary_vpc_ds"); + /// + /// var primarySecGroupsDs = AliCloud.Ecs.GetSecurityGroups.Invoke(new() + /// { + /// VpcId = primaryVpcDs.Id, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstGroupId"] = primarySecGroupsDs.Apply(getSecurityGroupsResult => getSecurityGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSecurityGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getSecurityGroups:getSecurityGroups", args ?? new GetSecurityGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ecs/GetSnapshots.cs b/sdk/dotnet/Ecs/GetSnapshots.cs index c3b8a7755d..03b70376c6 100644 --- a/sdk/dotnet/Ecs/GetSnapshots.cs +++ b/sdk/dotnet/Ecs/GetSnapshots.cs @@ -136,6 +136,69 @@ public static Task InvokeAsync(GetSnapshotsArgs? args = null /// public static Output Invoke(GetSnapshotsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getSnapshots:getSnapshots", args ?? new GetSnapshotsInvokeArgs(), options.WithDefaults()); + + /// + /// > **DEPRECATED:** This datasource has been renamed to alicloud.ecs.getEcsSnapshots from version 1.120.0. + /// + /// Use this data source to get a list of snapshot according to the specified filters in an Alibaba Cloud account. + /// + /// For information about snapshot and how to use it, see [Snapshot](https://www.alibabacloud.com/help/doc-detail/25460.html). + /// + /// > **NOTE:** Available in 1.40.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var snapshots = AliCloud.Ecs.GetSnapshots.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "s-123456890abcdef", + /// }, + /// NameRegex = "tf-testAcc-snapshot", + /// }); + /// + /// }); + /// ``` + /// + /// ## Argument Reference + /// + /// The following arguments are supported: + /// + /// * `instance_id` - (Optional) The specified instance ID. + /// * `disk_id` - (Optional) The specified disk ID. + /// * `encrypted` - (Optional) Queries the encrypted snapshots. Optional values: `true`: Encrypted snapshots. `false`: No encryption attribute limit. Default value: `false`. + /// * `ids` - (Optional) A list of snapshot IDs. + /// * `name_regex` - (Optional) A regex string to filter results by snapshot name. + /// * `status` - (Optional) The specified snapshot status. Default value: `all`. Optional values: + /// * progressing: The snapshots are being created. + /// * accomplished: The snapshots are ready to use. + /// * failed: The snapshot creation failed. + /// * all: All status. + /// * `type` - (Optional) The snapshot category. Default value: `all`. Optional values: + /// * auto: Auto snapshots. + /// * user: Manual snapshots. + /// * all: Auto and manual snapshots. + /// * `source_disk_type` - (Optional) The type of source disk: + /// * System: The snapshots are created for system disks. + /// * Data: The snapshots are created for data disks. + /// * `usage` - (Optional) The usage of the snapshot: + /// * image: The snapshots are used to create custom images. + /// * disk: The snapshots are used to CreateDisk. + /// * mage_disk: The snapshots are used to create custom images and data disks. + /// * none: The snapshots are not used yet. + /// * `tags` - (Optional) A map of tags assigned to snapshots. + /// * `output_file` - (Optional) The name of output file that saves the filter results. + /// + public static Output Invoke(GetSnapshotsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ecs/getSnapshots:getSnapshots", args ?? new GetSnapshotsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Edas/GetApplications.cs b/sdk/dotnet/Edas/GetApplications.cs index 3409728099..174f0f32e5 100644 --- a/sdk/dotnet/Edas/GetApplications.cs +++ b/sdk/dotnet/Edas/GetApplications.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetApplicationsArgs? args /// public static Output Invoke(GetApplicationsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:edas/getApplications:getApplications", args ?? new GetApplicationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of EDAS application in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in 1.82.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var applications = AliCloud.Edas.GetApplications.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "xxx", + /// }, + /// OutputFile = "application.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstApplicationName"] = applications.Apply(getApplicationsResult => getApplicationsResult.Applications[0]?.AppName), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetApplicationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:edas/getApplications:getApplications", args ?? new GetApplicationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Edas/GetClusters.cs b/sdk/dotnet/Edas/GetClusters.cs index 62f60a1d8f..aa696c0bcb 100644 --- a/sdk/dotnet/Edas/GetClusters.cs +++ b/sdk/dotnet/Edas/GetClusters.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetClustersArgs args, InvokeOp /// public static Output Invoke(GetClustersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:edas/getClusters:getClusters", args ?? new GetClustersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of EDAS clusters in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in 1.82.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var clusters = AliCloud.Edas.GetClusters.Invoke(new() + /// { + /// LogicalRegionId = "cn-shenzhen:xxx", + /// Ids = new[] + /// { + /// "addfs-dfsasd", + /// }, + /// OutputFile = "clusters.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstClusterName"] = clustersAlicloudAlikafkaConsumerGroups.Clusters[0].ClusterName, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetClustersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:edas/getClusters:getClusters", args ?? new GetClustersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Edas/GetDeployGroups.cs b/sdk/dotnet/Edas/GetDeployGroups.cs index 097ea7984e..a04e422282 100644 --- a/sdk/dotnet/Edas/GetDeployGroups.cs +++ b/sdk/dotnet/Edas/GetDeployGroups.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetDeployGroupsArgs args, /// public static Output Invoke(GetDeployGroupsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:edas/getDeployGroups:getDeployGroups", args ?? new GetDeployGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of EDAS deploy groups in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in 1.82.0+ + /// + public static Output Invoke(GetDeployGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:edas/getDeployGroups:getDeployGroups", args ?? new GetDeployGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Edas/GetNamespaces.cs b/sdk/dotnet/Edas/GetNamespaces.cs index 7e72441d4a..dc873fceba 100644 --- a/sdk/dotnet/Edas/GetNamespaces.cs +++ b/sdk/dotnet/Edas/GetNamespaces.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetNamespacesArgs? args = nu /// public static Output Invoke(GetNamespacesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:edas/getNamespaces:getNamespaces", args ?? new GetNamespacesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Edas Namespaces of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.173.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Edas.GetNamespaces.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Edas.GetNamespaces.Invoke(new() + /// { + /// NameRegex = "^my-Namespace", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["edasNamespaceId1"] = ids.Apply(getNamespacesResult => getNamespacesResult.Namespaces[0]?.Id), + /// ["edasNamespaceId2"] = nameRegex.Apply(getNamespacesResult => getNamespacesResult.Namespaces[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetNamespacesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:edas/getNamespaces:getNamespaces", args ?? new GetNamespacesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Edas/GetService.cs b/sdk/dotnet/Edas/GetService.cs index 730c5151e6..28d3bd9356 100644 --- a/sdk/dotnet/Edas/GetService.cs +++ b/sdk/dotnet/Edas/GetService.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:edas/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open EDAS service automatically. If the service has been opened, it will return opened. + /// + /// For information about EDAS and how to use it, see [What is EDAS](https://www.alibabacloud.com/help/product/29500.htm). + /// + /// > **NOTE:** Available in v1.98.0+ + /// + /// > **NOTE:** The EDAS service is not support to be open automatically in the international site. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.Edas.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:edas/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eds/GetAdConnectorDirectories.cs b/sdk/dotnet/Eds/GetAdConnectorDirectories.cs index 017d23455d..0e0f11b53e 100644 --- a/sdk/dotnet/Eds/GetAdConnectorDirectories.cs +++ b/sdk/dotnet/Eds/GetAdConnectorDirectories.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetAdConnectorDi /// public static Output Invoke(GetAdConnectorDirectoriesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getAdConnectorDirectories:getAdConnectorDirectories", args ?? new GetAdConnectorDirectoriesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecd Ad Connector Directories of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.174.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Eds.GetAdConnectorDirectories.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecdAdConnectorDirectoryId1"] = ids.Apply(getAdConnectorDirectoriesResult => getAdConnectorDirectoriesResult.Directories[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAdConnectorDirectoriesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getAdConnectorDirectories:getAdConnectorDirectories", args ?? new GetAdConnectorDirectoriesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eds/GetAdConnectorOfficeSites.cs b/sdk/dotnet/Eds/GetAdConnectorOfficeSites.cs index 9764f946da..5744dc8c97 100644 --- a/sdk/dotnet/Eds/GetAdConnectorOfficeSites.cs +++ b/sdk/dotnet/Eds/GetAdConnectorOfficeSites.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetAdConnectorOf /// public static Output Invoke(GetAdConnectorOfficeSitesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getAdConnectorOfficeSites:getAdConnectorOfficeSites", args ?? new GetAdConnectorOfficeSitesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecd Ad Connector Office Sites of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.176.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Eds.GetAdConnectorOfficeSites.Invoke(); + /// + /// var nameRegex = AliCloud.Eds.GetAdConnectorOfficeSites.Invoke(new() + /// { + /// NameRegex = "^my-AdConnectorOfficeSite", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecdAdConnectorOfficeSiteId1"] = ids.Apply(getAdConnectorOfficeSitesResult => getAdConnectorOfficeSitesResult.Sites[0]?.Id), + /// ["ecdAdConnectorOfficeSiteId2"] = nameRegex.Apply(getAdConnectorOfficeSitesResult => getAdConnectorOfficeSitesResult.Sites[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAdConnectorOfficeSitesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getAdConnectorOfficeSites:getAdConnectorOfficeSites", args ?? new GetAdConnectorOfficeSitesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eds/GetBundles.cs b/sdk/dotnet/Eds/GetBundles.cs index 8d10fd95eb..5071e685f8 100644 --- a/sdk/dotnet/Eds/GetBundles.cs +++ b/sdk/dotnet/Eds/GetBundles.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetBundlesArgs? args = null, In /// public static Output Invoke(GetBundlesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getBundles:getBundles", args ?? new GetBundlesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecd bundles of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.143.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Eds.GetBundles.Invoke(new() + /// { + /// BundleType = "SYSTEM", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBundlesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getBundles:getBundles", args ?? new GetBundlesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eds/GetCommands.cs b/sdk/dotnet/Eds/GetCommands.cs index d10e37035c..250569f0d5 100644 --- a/sdk/dotnet/Eds/GetCommands.cs +++ b/sdk/dotnet/Eds/GetCommands.cs @@ -180,6 +180,91 @@ public static Task InvokeAsync(GetCommandsArgs? args = null, /// public static Output Invoke(GetCommandsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getCommands:getCommands", args ?? new GetCommandsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecd Commands of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.146.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var defaultSimpleOfficeSite = new AliCloud.Eds.SimpleOfficeSite("default", new() + /// { + /// CidrBlock = "172.16.0.0/12", + /// DesktopAccessType = "Internet", + /// OfficeSiteName = "your_office_site_name", + /// }); + /// + /// var @default = AliCloud.Eds.GetBundles.Invoke(new() + /// { + /// BundleType = "SYSTEM", + /// NameRegex = "windows", + /// }); + /// + /// var defaultEcdPolicyGroup = new AliCloud.Eds.EcdPolicyGroup("default", new() + /// { + /// PolicyGroupName = "your_policy_group_name", + /// Clipboard = "readwrite", + /// LocalDrive = "read", + /// AuthorizeAccessPolicyRules = new[] + /// { + /// new AliCloud.Eds.Inputs.EcdPolicyGroupAuthorizeAccessPolicyRuleArgs + /// { + /// Description = "example_value", + /// CidrIp = "1.2.3.4/24", + /// }, + /// }, + /// AuthorizeSecurityPolicyRules = new[] + /// { + /// new AliCloud.Eds.Inputs.EcdPolicyGroupAuthorizeSecurityPolicyRuleArgs + /// { + /// Type = "inflow", + /// Policy = "accept", + /// Description = "example_value", + /// PortRange = "80/80", + /// IpProtocol = "TCP", + /// Priority = "1", + /// CidrIp = "0.0.0.0/0", + /// }, + /// }, + /// }); + /// + /// var defaultDesktop = new AliCloud.Eds.Desktop("default", new() + /// { + /// OfficeSiteId = defaultSimpleOfficeSite.Id, + /// PolicyGroupId = defaultEcdPolicyGroup.Id, + /// BundleId = @default.Apply(@default => @default.Apply(getBundlesResult => getBundlesResult.Bundles[0]?.Id)), + /// DesktopName = name, + /// }); + /// + /// var defaultCommand = new AliCloud.Eds.Command("default", new() + /// { + /// CommandContent = "ipconfig", + /// CommandType = "RunPowerShellScript", + /// DesktopId = defaultDesktop.Id, + /// }); + /// + /// var ids = AliCloud.Eds.GetCommands.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecdCommandId1"] = ids.Apply(getCommandsResult => getCommandsResult.Commands[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetCommandsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getCommands:getCommands", args ?? new GetCommandsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eds/GetCustomProperties.cs b/sdk/dotnet/Eds/GetCustomProperties.cs index 5200d5b0f2..7b452695a5 100644 --- a/sdk/dotnet/Eds/GetCustomProperties.cs +++ b/sdk/dotnet/Eds/GetCustomProperties.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetCustomPropertiesArg /// public static Output Invoke(GetCustomPropertiesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getCustomProperties:getCustomProperties", args ?? new GetCustomPropertiesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecd Custom Properties of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.176.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Eds.GetCustomProperties.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecdCustomPropertyId1"] = ids.Apply(getCustomPropertiesResult => getCustomPropertiesResult.Properties[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetCustomPropertiesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getCustomProperties:getCustomProperties", args ?? new GetCustomPropertiesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eds/GetDesktopTypes.cs b/sdk/dotnet/Eds/GetDesktopTypes.cs index 018ab29b1e..a429277eb8 100644 --- a/sdk/dotnet/Eds/GetDesktopTypes.cs +++ b/sdk/dotnet/Eds/GetDesktopTypes.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetDesktopTypesArgs? args /// public static Output Invoke(GetDesktopTypesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getDesktopTypes:getDesktopTypes", args ?? new GetDesktopTypesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecd Desktop Types of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.170.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Eds.GetDesktopTypes.Invoke(new() + /// { + /// InstanceTypeFamily = "eds.hf", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecdDesktopTypeId1"] = ids.Apply(getDesktopTypesResult => getDesktopTypesResult.Types[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDesktopTypesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getDesktopTypes:getDesktopTypes", args ?? new GetDesktopTypesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eds/GetDesktops.cs b/sdk/dotnet/Eds/GetDesktops.cs index dc3ea377cc..a18cc6866a 100644 --- a/sdk/dotnet/Eds/GetDesktops.cs +++ b/sdk/dotnet/Eds/GetDesktops.cs @@ -212,6 +212,107 @@ public static Task InvokeAsync(GetDesktopsArgs? args = null, /// public static Output Invoke(GetDesktopsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getDesktops:getDesktops", args ?? new GetDesktopsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecd Desktops of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.144.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var defaultSimpleOfficeSite = new AliCloud.Eds.SimpleOfficeSite("default", new() + /// { + /// CidrBlock = "172.16.0.0/12", + /// DesktopAccessType = "Internet", + /// OfficeSiteName = "your_office_site_name", + /// }); + /// + /// var @default = AliCloud.Eds.GetBundles.Invoke(new() + /// { + /// BundleType = "SYSTEM", + /// }); + /// + /// var defaultEcdPolicyGroup = new AliCloud.Eds.EcdPolicyGroup("default", new() + /// { + /// PolicyGroupName = "your_policy_group_name", + /// Clipboard = "readwrite", + /// LocalDrive = "read", + /// AuthorizeAccessPolicyRules = new[] + /// { + /// new AliCloud.Eds.Inputs.EcdPolicyGroupAuthorizeAccessPolicyRuleArgs + /// { + /// Description = "example_value", + /// CidrIp = "1.2.3.4/24", + /// }, + /// }, + /// AuthorizeSecurityPolicyRules = new[] + /// { + /// new AliCloud.Eds.Inputs.EcdPolicyGroupAuthorizeSecurityPolicyRuleArgs + /// { + /// Type = "inflow", + /// Policy = "accept", + /// Description = "example_value", + /// PortRange = "80/80", + /// IpProtocol = "TCP", + /// Priority = "1", + /// CidrIp = "0.0.0.0/0", + /// }, + /// }, + /// }); + /// + /// var defaultUser = new AliCloud.Eds.User("default", new() + /// { + /// EndUserId = "your_end_user_id", + /// Email = "your_email", + /// Phone = "your_phone", + /// Password = "your_password", + /// }); + /// + /// var defaultDesktop = new AliCloud.Eds.Desktop("default", new() + /// { + /// OfficeSiteId = defaultSimpleOfficeSite.Id, + /// PolicyGroupId = defaultEcdPolicyGroup.Id, + /// BundleId = @default.Apply(@default => @default.Apply(getBundlesResult => getBundlesResult.Bundles[0]?.Id)), + /// DesktopName = "your_desktop_name", + /// EndUserIds = new[] + /// { + /// defaultUser.Id, + /// }, + /// }); + /// + /// var ids = AliCloud.Eds.GetDesktops.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultDesktop.Id, + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Eds.GetDesktops.Invoke(new() + /// { + /// NameRegex = defaultDesktop.DesktopName, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecdDesktopId1"] = ids.Apply(getDesktopsResult => getDesktopsResult.Desktops[0]?.Id), + /// ["ecdDesktopId2"] = nameRegex.Apply(getDesktopsResult => getDesktopsResult.Desktops[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDesktopsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getDesktops:getDesktops", args ?? new GetDesktopsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eds/GetImages.cs b/sdk/dotnet/Eds/GetImages.cs index 43fdc34ef1..071512fb23 100644 --- a/sdk/dotnet/Eds/GetImages.cs +++ b/sdk/dotnet/Eds/GetImages.cs @@ -202,6 +202,102 @@ public static Task InvokeAsync(GetImagesArgs? args = null, Invo /// public static Output Invoke(GetImagesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getImages:getImages", args ?? new GetImagesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecd Images of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.146.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var defaultSimpleOfficeSite = new AliCloud.Eds.SimpleOfficeSite("default", new() + /// { + /// CidrBlock = "172.16.0.0/12", + /// DesktopAccessType = "Internet", + /// OfficeSiteName = "your_simple_office_site_name", + /// }); + /// + /// var @default = AliCloud.Eds.GetBundles.Invoke(new() + /// { + /// BundleType = "SYSTEM", + /// }); + /// + /// var defaultEcdPolicyGroup = new AliCloud.Eds.EcdPolicyGroup("default", new() + /// { + /// PolicyGroupName = "your_policy_group_name", + /// Clipboard = "readwrite", + /// LocalDrive = "read", + /// AuthorizeAccessPolicyRules = new[] + /// { + /// new AliCloud.Eds.Inputs.EcdPolicyGroupAuthorizeAccessPolicyRuleArgs + /// { + /// Description = "example_value", + /// CidrIp = "1.2.3.4/24", + /// }, + /// }, + /// AuthorizeSecurityPolicyRules = new[] + /// { + /// new AliCloud.Eds.Inputs.EcdPolicyGroupAuthorizeSecurityPolicyRuleArgs + /// { + /// Type = "inflow", + /// Policy = "accept", + /// Description = "example_value", + /// PortRange = "80/80", + /// IpProtocol = "TCP", + /// Priority = "1", + /// CidrIp = "0.0.0.0/0", + /// }, + /// }, + /// }); + /// + /// var defaultDesktop = new AliCloud.Eds.Desktop("default", new() + /// { + /// OfficeSiteId = defaultSimpleOfficeSite.Id, + /// PolicyGroupId = defaultEcdPolicyGroup.Id, + /// BundleId = @default.Apply(@default => @default.Apply(getBundlesResult => getBundlesResult.Bundles[1]?.Id)), + /// DesktopName = "your_desktop_name", + /// }); + /// + /// var defaultImage = new AliCloud.Eds.Image("default", new() + /// { + /// ImageName = "your_image_name", + /// DesktopId = defaultDesktop.Id, + /// Description = "example_value", + /// }); + /// + /// var ids = AliCloud.Eds.GetImages.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultImage.Id, + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Eds.GetImages.Invoke(new() + /// { + /// NameRegex = defaultImage.ImageName, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecdImageId1"] = ids.Apply(getImagesResult => getImagesResult.Images[0]?.Id), + /// ["ecdImageId2"] = nameRegex.Apply(getImagesResult => getImagesResult.Images[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetImagesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getImages:getImages", args ?? new GetImagesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eds/GetNasFileSystems.cs b/sdk/dotnet/Eds/GetNasFileSystems.cs index cfd35397bf..a3ea910de3 100644 --- a/sdk/dotnet/Eds/GetNasFileSystems.cs +++ b/sdk/dotnet/Eds/GetNasFileSystems.cs @@ -110,6 +110,56 @@ public static Task InvokeAsync(GetNasFileSystemsArgs? a /// public static Output Invoke(GetNasFileSystemsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getNasFileSystems:getNasFileSystems", args ?? new GetNasFileSystemsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecd Nas File Systems of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.141.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = new AliCloud.Eds.SimpleOfficeSite("default", new() + /// { + /// CidrBlock = "172.16.0.0/12", + /// DesktopAccessType = "Internet", + /// OfficeSiteName = "your_office_site_name", + /// EnableInternetAccess = false, + /// }); + /// + /// var defaultNasFileSystem = new AliCloud.Eds.NasFileSystem("default", new() + /// { + /// Description = "your_description", + /// OfficeSiteId = @default.Id, + /// NasFileSystemName = "your_nas_file_system_name", + /// }); + /// + /// var ids = AliCloud.Eds.GetNasFileSystems.Invoke(); + /// + /// var nameRegex = AliCloud.Eds.GetNasFileSystems.Invoke(new() + /// { + /// NameRegex = defaultNasFileSystem.NasFileSystemName, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecdNasFileSystemId1"] = ids.Apply(getNasFileSystemsResult => getNasFileSystemsResult.Systems[0]?.Id), + /// ["ecdNasFileSystemId2"] = nameRegex.Apply(getNasFileSystemsResult => getNasFileSystemsResult.Systems[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetNasFileSystemsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getNasFileSystems:getNasFileSystems", args ?? new GetNasFileSystemsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eds/GetNetworkPackages.cs b/sdk/dotnet/Eds/GetNetworkPackages.cs index c343956f14..582aadc05c 100644 --- a/sdk/dotnet/Eds/GetNetworkPackages.cs +++ b/sdk/dotnet/Eds/GetNetworkPackages.cs @@ -106,6 +106,54 @@ public static Task InvokeAsync(GetNetworkPackagesArgs? /// public static Output Invoke(GetNetworkPackagesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getNetworkPackages:getNetworkPackages", args ?? new GetNetworkPackagesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecd Network Packages of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.142.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var defaultSimpleOfficeSite = new AliCloud.Eds.SimpleOfficeSite("default", new() + /// { + /// CidrBlock = "172.16.0.0/12", + /// DesktopAccessType = "Internet", + /// OfficeSiteName = "example_value", + /// }); + /// + /// var defaultNetworkPackage = new AliCloud.Eds.NetworkPackage("default", new() + /// { + /// Bandwidth = 10, + /// OfficeSiteId = defaultSimpleOfficeSite.Id, + /// }); + /// + /// var @default = AliCloud.Eds.GetNetworkPackages.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultNetworkPackage.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecdNetworkPackageId1"] = @default.Apply(@default => @default.Apply(getNetworkPackagesResult => getNetworkPackagesResult.Packages[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetNetworkPackagesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getNetworkPackages:getNetworkPackages", args ?? new GetNetworkPackagesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eds/GetPolicyGroups.cs b/sdk/dotnet/Eds/GetPolicyGroups.cs index 111bf04861..c1fff6b843 100644 --- a/sdk/dotnet/Eds/GetPolicyGroups.cs +++ b/sdk/dotnet/Eds/GetPolicyGroups.cs @@ -134,6 +134,68 @@ public static Task InvokeAsync(GetPolicyGroupsArgs? args /// public static Output Invoke(GetPolicyGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getPolicyGroups:getPolicyGroups", args ?? new GetPolicyGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecd Policy Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.130.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = new AliCloud.Eds.EcdPolicyGroup("default", new() + /// { + /// PolicyGroupName = "my-policy-group", + /// Clipboard = "read", + /// LocalDrive = "read", + /// UsbRedirect = "off", + /// Watermark = "off", + /// AuthorizeAccessPolicyRules = new[] + /// { + /// new AliCloud.Eds.Inputs.EcdPolicyGroupAuthorizeAccessPolicyRuleArgs + /// { + /// Description = "my-description1", + /// CidrIp = "1.2.3.45/24", + /// }, + /// }, + /// AuthorizeSecurityPolicyRules = new[] + /// { + /// new AliCloud.Eds.Inputs.EcdPolicyGroupAuthorizeSecurityPolicyRuleArgs + /// { + /// Type = "inflow", + /// Policy = "accept", + /// Description = "my-description", + /// PortRange = "80/80", + /// IpProtocol = "TCP", + /// Priority = "1", + /// CidrIp = "1.2.3.4/24", + /// }, + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Eds.GetPolicyGroups.Invoke(new() + /// { + /// NameRegex = "^my-policy", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecdPolicyGroupId"] = nameRegex.Apply(getPolicyGroupsResult => getPolicyGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetPolicyGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getPolicyGroups:getPolicyGroups", args ?? new GetPolicyGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eds/GetRamDirectories.cs b/sdk/dotnet/Eds/GetRamDirectories.cs index 3cf82008e7..5b2cc0f705 100644 --- a/sdk/dotnet/Eds/GetRamDirectories.cs +++ b/sdk/dotnet/Eds/GetRamDirectories.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetRamDirectoriesArgs? a /// public static Output Invoke(GetRamDirectoriesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getRamDirectories:getRamDirectories", args ?? new GetRamDirectoriesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecd Ram Directories of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.174.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Eds.GetRamDirectories.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Eds.GetRamDirectories.Invoke(new() + /// { + /// NameRegex = "^my-RamDirectory", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecdRamDirectoryId1"] = ids.Apply(getRamDirectoriesResult => getRamDirectoriesResult.Directories[0]?.Id), + /// ["ecdRamDirectoryId2"] = nameRegex.Apply(getRamDirectoriesResult => getRamDirectoriesResult.Directories[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRamDirectoriesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getRamDirectories:getRamDirectories", args ?? new GetRamDirectoriesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eds/GetSimpleOfficeSites.cs b/sdk/dotnet/Eds/GetSimpleOfficeSites.cs index c06a8477af..7abc74a79f 100644 --- a/sdk/dotnet/Eds/GetSimpleOfficeSites.cs +++ b/sdk/dotnet/Eds/GetSimpleOfficeSites.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetSimpleOfficeSitesA /// public static Output Invoke(GetSimpleOfficeSitesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getSimpleOfficeSites:getSimpleOfficeSites", args ?? new GetSimpleOfficeSitesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecd Simple Office Sites of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.140.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Eds.GetSimpleOfficeSites.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// Status = "REGISTERED", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["desktopAccessType"] = @default.Apply(@default => @default.Apply(getSimpleOfficeSitesResult => getSimpleOfficeSitesResult.Sites[0]?.DesktopAccessType)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSimpleOfficeSitesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getSimpleOfficeSites:getSimpleOfficeSites", args ?? new GetSimpleOfficeSitesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eds/GetSnapshots.cs b/sdk/dotnet/Eds/GetSnapshots.cs index 987a2f90bb..024ca31374 100644 --- a/sdk/dotnet/Eds/GetSnapshots.cs +++ b/sdk/dotnet/Eds/GetSnapshots.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetSnapshotsArgs? args = null /// public static Output Invoke(GetSnapshotsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getSnapshots:getSnapshots", args ?? new GetSnapshotsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ecd Snapshots of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.169.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Eds.GetSnapshots.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecdSnapshotId1"] = ids.Apply(getSnapshotsResult => getSnapshotsResult.Snapshots[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSnapshotsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getSnapshots:getSnapshots", args ?? new GetSnapshotsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eds/GetUsers.cs b/sdk/dotnet/Eds/GetUsers.cs index 9b35305e08..9f332e3a01 100644 --- a/sdk/dotnet/Eds/GetUsers.cs +++ b/sdk/dotnet/Eds/GetUsers.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetUsersArgs? args = null, Invoke /// public static Output Invoke(GetUsersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getUsers:getUsers", args ?? new GetUsersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Elastic Desktop Service (ECD) Users of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.142.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = new AliCloud.Eds.User("default", new() + /// { + /// EndUserId = "example_value", + /// Email = "your_email", + /// Phone = "your_phone", + /// Password = "your_password", + /// }); + /// + /// var ids = AliCloud.Eds.GetUsers.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ecdUserId1"] = ids.Apply(getUsersResult => getUsersResult.Users[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetUsersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getUsers:getUsers", args ?? new GetUsersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eds/GetZones.cs b/sdk/dotnet/Eds/GetZones.cs index cfb240ac04..afc6c6fd01 100644 --- a/sdk/dotnet/Eds/GetZones.cs +++ b/sdk/dotnet/Eds/GetZones.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the available zones with the Elastic Desktop Service (ECD) of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.174.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Eds.GetZones.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudEcdZones"] = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.ZoneId)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eds/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eflo/GetSubnets.cs b/sdk/dotnet/Eflo/GetSubnets.cs index b2c3408a0d..93345da937 100644 --- a/sdk/dotnet/Eflo/GetSubnets.cs +++ b/sdk/dotnet/Eflo/GetSubnets.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetSubnetsArgs? args = null, In /// public static Output Invoke(GetSubnetsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eflo/getSubnets:getSubnets", args ?? new GetSubnetsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Eflo Subnet available to the user.[What is Subnet](https://help.aliyun.com/document_detail/604977.html) + /// + /// > **NOTE:** Available in 1.204.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Eflo.GetSubnets.Invoke(new() + /// { + /// NameRegex = defaultAlicloudEfloSubnet.Name, + /// SubnetName = "SubnetTestForTerraform", + /// VpdId = vpdId, + /// ZoneId = zoneId, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudEfloSubnetExampleId"] = @default.Apply(@default => @default.Apply(getSubnetsResult => getSubnetsResult.Subnets[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSubnetsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eflo/getSubnets:getSubnets", args ?? new GetSubnetsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Eflo/GetVpds.cs b/sdk/dotnet/Eflo/GetVpds.cs index c628cb65fb..0766260ad1 100644 --- a/sdk/dotnet/Eflo/GetVpds.cs +++ b/sdk/dotnet/Eflo/GetVpds.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetVpdsArgs? args = null, InvokeOp /// public static Output Invoke(GetVpdsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eflo/getVpds:getVpds", args ?? new GetVpdsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Eflo Vpd available to the user.[What is Vpd](https://help.aliyun.com/document_detail/604976.html) + /// + /// > **NOTE:** Available in 1.201.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Eflo.GetVpds.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAlicloudEfloVpd.Id, + /// }, + /// NameRegex = defaultAlicloudEfloVpd.Name, + /// VpdName = "RMC-Terraform-Test", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudEfloVpdExampleId"] = @default.Apply(@default => @default.Apply(getVpdsResult => getVpdsResult.Vpds[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetVpdsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eflo/getVpds:getVpds", args ?? new GetVpdsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ehpc/GetClusters.cs b/sdk/dotnet/Ehpc/GetClusters.cs index 60f52f411b..118cb426e9 100644 --- a/sdk/dotnet/Ehpc/GetClusters.cs +++ b/sdk/dotnet/Ehpc/GetClusters.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetClustersArgs? args = null, /// public static Output Invoke(GetClustersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ehpc/getClusters:getClusters", args ?? new GetClustersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ehpc Clusters of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.173.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ehpc.GetClusters.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Ehpc.GetClusters.Invoke(new() + /// { + /// NameRegex = "^my-Cluster", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ehpcClusterId1"] = ids.Apply(getClustersResult => getClustersResult.Clusters[0]?.Id), + /// ["ehpcClusterId2"] = nameRegex.Apply(getClustersResult => getClustersResult.Clusters[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetClustersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ehpc/getClusters:getClusters", args ?? new GetClustersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ehpc/GetJobTemplates.cs b/sdk/dotnet/Ehpc/GetJobTemplates.cs index fe3fd8532c..c5e2ec82f0 100644 --- a/sdk/dotnet/Ehpc/GetJobTemplates.cs +++ b/sdk/dotnet/Ehpc/GetJobTemplates.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetJobTemplatesArgs? args /// public static Output Invoke(GetJobTemplatesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ehpc/getJobTemplates:getJobTemplates", args ?? new GetJobTemplatesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ehpc Job Templates of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.133.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = new AliCloud.Ehpc.JobTemplate("default", new() + /// { + /// JobTemplateName = "example_value", + /// CommandLine = "./LammpsTest/lammps.pbs", + /// }); + /// + /// var ids = AliCloud.Ehpc.GetJobTemplates.Invoke(new() + /// { + /// Ids = new[] + /// { + /// @default.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ehpcJobTemplateId1"] = ids.Apply(getJobTemplatesResult => getJobTemplatesResult.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetJobTemplatesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ehpc/getJobTemplates:getJobTemplates", args ?? new GetJobTemplatesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/EipAnycast/GetAnycastEipAddresses.cs b/sdk/dotnet/EipAnycast/GetAnycastEipAddresses.cs index 5a2553323d..188a8c5048 100644 --- a/sdk/dotnet/EipAnycast/GetAnycastEipAddresses.cs +++ b/sdk/dotnet/EipAnycast/GetAnycastEipAddresses.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetAnycastEipAddres /// public static Output Invoke(GetAnycastEipAddressesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eipanycast/getAnycastEipAddresses:getAnycastEipAddresses", args ?? new GetAnycastEipAddressesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Eipanycast Anycast Eip Addresses of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.113.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.EipAnycast.GetAnycastEipAddresses.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstEipanycastAnycastEipAddressId"] = example.Apply(getAnycastEipAddressesResult => getAnycastEipAddressesResult.Addresses[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAnycastEipAddressesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eipanycast/getAnycastEipAddresses:getAnycastEipAddresses", args ?? new GetAnycastEipAddressesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ElasticSearch/GetInstances.cs b/sdk/dotnet/ElasticSearch/GetInstances.cs index e4a8f857aa..40021720e8 100644 --- a/sdk/dotnet/ElasticSearch/GetInstances.cs +++ b/sdk/dotnet/ElasticSearch/GetInstances.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetInstancesArgs? args = null public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:elasticsearch/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:elasticsearch/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ElasticSearch/GetZones.cs b/sdk/dotnet/ElasticSearch/GetZones.cs index 1ea4af9286..148e8de63c 100644 --- a/sdk/dotnet/ElasticSearch/GetZones.cs +++ b/sdk/dotnet/ElasticSearch/GetZones.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:elasticsearch/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides availability zones for Elasticsearch that can be accessed by an Alibaba Cloud account within the region configured in the provider. + /// + /// > **NOTE:** Available in v1.73.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var zonesIds = AliCloud.ElasticSearch.GetZones.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:elasticsearch/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Emr/GetClusters.cs b/sdk/dotnet/Emr/GetClusters.cs index 8ee8f74c01..406c557aa4 100644 --- a/sdk/dotnet/Emr/GetClusters.cs +++ b/sdk/dotnet/Emr/GetClusters.cs @@ -426,6 +426,214 @@ public static Task InvokeAsync(GetClustersArgs? args = null, /// public static Output Invoke(GetClustersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:emr/getClusters:getClusters", args ?? new GetClustersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Emr Clusters of the current Alibaba Cloud user. + /// + /// > **DEPRECATED:** This datasource has been deprecated from version `1.204.0`. Please use new datasource emrv2_clusters. + /// + /// > **NOTE:** Available in v1.146.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "tf-testAccClusters"; + /// var @default = AliCloud.ResourceManager.GetResourceGroups.Invoke(new() + /// { + /// Status = "OK", + /// }); + /// + /// var defaultGetMainVersions = AliCloud.Emr.GetMainVersions.Invoke(); + /// + /// var defaultGetInstanceTypes = AliCloud.Emr.GetInstanceTypes.Invoke(new() + /// { + /// DestinationResource = "InstanceType", + /// ClusterType = defaultGetMainVersions.Apply(getMainVersionsResult => getMainVersionsResult.MainVersions[0]?.ClusterTypes[0]), + /// SupportLocalStorage = false, + /// InstanceChargeType = "PostPaid", + /// SupportNodeTypes = new[] + /// { + /// "MASTER", + /// "CORE", + /// "TASK", + /// }, + /// }); + /// + /// var dataDisk = AliCloud.Emr.GetDiskTypes.Invoke(new() + /// { + /// DestinationResource = "DataDisk", + /// ClusterType = defaultGetMainVersions.Apply(getMainVersionsResult => getMainVersionsResult.MainVersions[0]?.ClusterTypes[0]), + /// InstanceChargeType = "PostPaid", + /// InstanceType = defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.Types[0]?.Id), + /// ZoneId = defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.Types[0]?.ZoneId), + /// }); + /// + /// var systemDisk = AliCloud.Emr.GetDiskTypes.Invoke(new() + /// { + /// DestinationResource = "SystemDisk", + /// ClusterType = defaultGetMainVersions.Apply(getMainVersionsResult => getMainVersionsResult.MainVersions[0]?.ClusterTypes[0]), + /// InstanceChargeType = "PostPaid", + /// InstanceType = defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.Types[0]?.Id), + /// ZoneId = defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.Types[0]?.ZoneId), + /// }); + /// + /// var defaultGetNetworks = AliCloud.Vpc.GetNetworks.Invoke(new() + /// { + /// NameRegex = "default-NODELETING", + /// }); + /// + /// var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new() + /// { + /// Name = name, + /// VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]), + /// }); + /// + /// var defaultGetSwitches = AliCloud.Vpc.GetSwitches.Invoke(new() + /// { + /// VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]), + /// ZoneId = defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.Types[0]?.ZoneId), + /// }); + /// + /// var defaultRole = new AliCloud.Ram.Role("default", new() + /// { + /// Name = name, + /// Document = @" { + /// ""Statement"": [ + /// { + /// ""Action"": ""sts:AssumeRole"", + /// ""Effect"": ""Allow"", + /// ""Principal"": { + /// ""Service"": [ + /// ""emr.aliyuncs.com"", + /// ""ecs.aliyuncs.com"" + /// ] + /// } + /// } + /// ], + /// ""Version"": ""1"" + /// } + /// ", + /// Description = "this is a role test.", + /// Force = true, + /// }); + /// + /// var defaultCluster = new AliCloud.Emr.Cluster("default", new() + /// { + /// Name = name, + /// EmrVer = defaultGetMainVersions.Apply(getMainVersionsResult => getMainVersionsResult.MainVersions[0]?.EmrVersion), + /// ClusterType = defaultGetMainVersions.Apply(getMainVersionsResult => getMainVersionsResult.MainVersions[0]?.ClusterTypes[0]), + /// HostGroups = new[] + /// { + /// new AliCloud.Emr.Inputs.ClusterHostGroupArgs + /// { + /// HostGroupName = "master_group", + /// HostGroupType = "MASTER", + /// NodeCount = "2", + /// InstanceType = defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.Types[0]?.Id), + /// DiskType = dataDisk.Apply(getDiskTypesResult => getDiskTypesResult.Types[0]?.Value), + /// DiskCapacity = Output.Tuple(dataDisk, dataDisk).Apply(values => + /// { + /// var dataDisk = values.Item1; + /// var dataDisk1 = values.Item2; + /// return dataDisk.Apply(getDiskTypesResult => getDiskTypesResult.Types[0]?.Min) > 160 ? dataDisk1.Types[0]?.Min : 160; + /// }), + /// DiskCount = "1", + /// SysDiskType = systemDisk.Apply(getDiskTypesResult => getDiskTypesResult.Types[0]?.Value), + /// SysDiskCapacity = Output.Tuple(systemDisk, systemDisk).Apply(values => + /// { + /// var systemDisk = values.Item1; + /// var systemDisk1 = values.Item2; + /// return systemDisk.Apply(getDiskTypesResult => getDiskTypesResult.Types[0]?.Min) > 160 ? systemDisk1.Types[0]?.Min : 160; + /// }), + /// }, + /// new AliCloud.Emr.Inputs.ClusterHostGroupArgs + /// { + /// HostGroupName = "core_group", + /// HostGroupType = "CORE", + /// NodeCount = "3", + /// InstanceType = defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.Types[0]?.Id), + /// DiskType = dataDisk.Apply(getDiskTypesResult => getDiskTypesResult.Types[0]?.Value), + /// DiskCapacity = Output.Tuple(dataDisk, dataDisk).Apply(values => + /// { + /// var dataDisk = values.Item1; + /// var dataDisk1 = values.Item2; + /// return dataDisk.Apply(getDiskTypesResult => getDiskTypesResult.Types[0]?.Min) > 160 ? dataDisk1.Types[0]?.Min : 160; + /// }), + /// DiskCount = "4", + /// SysDiskType = systemDisk.Apply(getDiskTypesResult => getDiskTypesResult.Types[0]?.Value), + /// SysDiskCapacity = Output.Tuple(systemDisk, systemDisk).Apply(values => + /// { + /// var systemDisk = values.Item1; + /// var systemDisk1 = values.Item2; + /// return systemDisk.Apply(getDiskTypesResult => getDiskTypesResult.Types[0]?.Min) > 160 ? systemDisk1.Types[0]?.Min : 160; + /// }), + /// }, + /// new AliCloud.Emr.Inputs.ClusterHostGroupArgs + /// { + /// HostGroupName = "task_group", + /// HostGroupType = "TASK", + /// NodeCount = "2", + /// InstanceType = defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.Types[0]?.Id), + /// DiskType = dataDisk.Apply(getDiskTypesResult => getDiskTypesResult.Types[0]?.Value), + /// DiskCapacity = Output.Tuple(dataDisk, dataDisk).Apply(values => + /// { + /// var dataDisk = values.Item1; + /// var dataDisk1 = values.Item2; + /// return dataDisk.Apply(getDiskTypesResult => getDiskTypesResult.Types[0]?.Min) > 160 ? dataDisk1.Types[0]?.Min : 160; + /// }), + /// DiskCount = "4", + /// SysDiskType = systemDisk.Apply(getDiskTypesResult => getDiskTypesResult.Types[0]?.Value), + /// SysDiskCapacity = Output.Tuple(systemDisk, systemDisk).Apply(values => + /// { + /// var systemDisk = values.Item1; + /// var systemDisk1 = values.Item2; + /// return systemDisk.Apply(getDiskTypesResult => getDiskTypesResult.Types[0]?.Min) > 160 ? systemDisk1.Types[0]?.Min : 160; + /// }), + /// }, + /// }, + /// HighAvailabilityEnable = true, + /// ZoneId = defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.Types[0]?.ZoneId), + /// SecurityGroupId = defaultSecurityGroup.Id, + /// IsOpenPublicIp = true, + /// ChargeType = "PostPaid", + /// VswitchId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]), + /// UserDefinedEmrEcsRole = defaultRole.Name, + /// SshEnable = true, + /// MasterPwd = "ABCtest1234!", + /// Tags = + /// { + /// { "Created", "TF" }, + /// { "For", "acceptance test" }, + /// }, + /// }); + /// + /// var ids = AliCloud.Emr.GetClusters.Invoke(); + /// + /// var nameRegex = AliCloud.Emr.GetClusters.Invoke(new() + /// { + /// NameRegex = defaultCluster.Name, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["emrClusterId1"] = ids.Apply(getClustersResult => getClustersResult.Clusters[0]?.Id), + /// ["emrClusterId2"] = nameRegex.Apply(getClustersResult => getClustersResult.Clusters[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetClustersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:emr/getClusters:getClusters", args ?? new GetClustersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Emr/GetDiskTypes.cs b/sdk/dotnet/Emr/GetDiskTypes.cs index eacf26f894..029fadbbc6 100644 --- a/sdk/dotnet/Emr/GetDiskTypes.cs +++ b/sdk/dotnet/Emr/GetDiskTypes.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetDiskTypesArgs args, Invoke /// public static Output Invoke(GetDiskTypesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:emr/getDiskTypes:getDiskTypes", args ?? new GetDiskTypesInvokeArgs(), options.WithDefaults()); + + /// + /// The `alicloud.emr.getDiskTypes` data source provides a collection of data disk and + /// system disk types available in Alibaba Cloud account when create a emr cluster. + /// + /// > **NOTE:** Available in 1.60.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Emr.GetDiskTypes.Invoke(new() + /// { + /// DestinationResource = "DataDisk", + /// InstanceChargeType = "PostPaid", + /// ClusterType = "HADOOP", + /// InstanceType = "ecs.g5.xlarge", + /// ZoneId = "cn-huhehaote-a", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["dataDiskType"] = @default.Apply(@default => @default.Apply(getDiskTypesResult => getDiskTypesResult.Types[0]?.Value)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDiskTypesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:emr/getDiskTypes:getDiskTypes", args ?? new GetDiskTypesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Emr/GetInstanceTypes.cs b/sdk/dotnet/Emr/GetInstanceTypes.cs index 931b122739..8b12538e96 100644 --- a/sdk/dotnet/Emr/GetInstanceTypes.cs +++ b/sdk/dotnet/Emr/GetInstanceTypes.cs @@ -90,6 +90,46 @@ public static Task InvokeAsync(GetInstanceTypesArgs args /// public static Output Invoke(GetInstanceTypesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:emr/getInstanceTypes:getInstanceTypes", args ?? new GetInstanceTypesInvokeArgs(), options.WithDefaults()); + + /// + /// The `alicloud.emr.getInstanceTypes` data source provides a collection of ecs + /// instance types available in Alibaba Cloud account when create a emr cluster. + /// + /// > **NOTE:** Available in 1.59.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Emr.GetInstanceTypes.Invoke(new() + /// { + /// DestinationResource = "InstanceType", + /// InstanceChargeType = "PostPaid", + /// SupportLocalStorage = false, + /// ClusterType = "HADOOP", + /// InstanceType = "ecs.g5.2xlarge", + /// SupportNodeTypes = new[] + /// { + /// "MASTER", + /// "CORE", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstInstanceType"] = @default.Apply(@default => @default.Apply(getInstanceTypesResult => getInstanceTypesResult.Types[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceTypesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:emr/getInstanceTypes:getInstanceTypes", args ?? new GetInstanceTypesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Emr/GetMainVersions.cs b/sdk/dotnet/Emr/GetMainVersions.cs index a00ce35504..3520e27ed0 100644 --- a/sdk/dotnet/Emr/GetMainVersions.cs +++ b/sdk/dotnet/Emr/GetMainVersions.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetMainVersionsArgs? args /// public static Output Invoke(GetMainVersionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:emr/getMainVersions:getMainVersions", args ?? new GetMainVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// The `alicloud.emr.getMainVersions` data source provides a collection of emr + /// main versions available in Alibaba Cloud account when create a emr cluster. + /// + /// > **NOTE:** Available in 1.59.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Emr.GetMainVersions.Invoke(new() + /// { + /// EmrVersion = "EMR-3.22.0", + /// ClusterTypes = new[] + /// { + /// "HADOOP", + /// "ZOOKEEPER", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstMainVersion"] = @default.Apply(@default => @default.Apply(getMainVersionsResult => getMainVersionsResult.MainVersions[0]?.EmrVersion)), + /// ["thisClusterTypes"] = @default.Apply(@default => @default.Apply(getMainVersionsResult => getMainVersionsResult.MainVersions[0]?.ClusterTypes)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetMainVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:emr/getMainVersions:getMainVersions", args ?? new GetMainVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Emrv2/GetClusters.cs b/sdk/dotnet/Emrv2/GetClusters.cs index d5ffb9694f..392f144fd7 100644 --- a/sdk/dotnet/Emrv2/GetClusters.cs +++ b/sdk/dotnet/Emrv2/GetClusters.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetClustersArgs? args = null, /// public static Output Invoke(GetClustersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:emrv2/getClusters:getClusters", args ?? new GetClustersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Emr Clusters of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.199.0. + /// + public static Output Invoke(GetClustersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:emrv2/getClusters:getClusters", args ?? new GetClustersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ens/GetKeyPairs.cs b/sdk/dotnet/Ens/GetKeyPairs.cs index 3c66b7e334..2f1fc68fa1 100644 --- a/sdk/dotnet/Ens/GetKeyPairs.cs +++ b/sdk/dotnet/Ens/GetKeyPairs.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetKeyPairsArgs args, InvokeOp /// public static Output Invoke(GetKeyPairsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ens/getKeyPairs:getKeyPairs", args ?? new GetKeyPairsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ens Key Pairs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.133.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var nameRegex = AliCloud.Ens.GetKeyPairs.Invoke(new() + /// { + /// Version = "example_value", + /// NameRegex = "^my-KeyPair", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ensKeyPairId1"] = nameRegex.Apply(getKeyPairsResult => getKeyPairsResult.Pairs[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetKeyPairsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ens/getKeyPairs:getKeyPairs", args ?? new GetKeyPairsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ess/GetAlarms.cs b/sdk/dotnet/Ess/GetAlarms.cs index 79f99a32fc..f3a0c44ac6 100644 --- a/sdk/dotnet/Ess/GetAlarms.cs +++ b/sdk/dotnet/Ess/GetAlarms.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetAlarmsArgs? args = null, Invo /// public static Output Invoke(GetAlarmsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ess/getAlarms:getAlarms", args ?? new GetAlarmsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides available alarm resources. + /// + /// > **NOTE** Available in 1.72.0+ + /// + public static Output Invoke(GetAlarmsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ess/getAlarms:getAlarms", args ?? new GetAlarmsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ess/GetLifecycleHooks.cs b/sdk/dotnet/Ess/GetLifecycleHooks.cs index 03fd1fb47d..fbf94323ca 100644 --- a/sdk/dotnet/Ess/GetLifecycleHooks.cs +++ b/sdk/dotnet/Ess/GetLifecycleHooks.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetLifecycleHooksArgs? a /// public static Output Invoke(GetLifecycleHooksInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ess/getLifecycleHooks:getLifecycleHooks", args ?? new GetLifecycleHooksInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides available lifecycle hook resources. + /// + /// > **NOTE:** Available in 1.72.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ds = AliCloud.Ess.GetLifecycleHooks.Invoke(new() + /// { + /// ScalingGroupId = "scaling_group_id", + /// NameRegex = "lifecyclehook_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstLifecycleHook"] = ds.Apply(getLifecycleHooksResult => getLifecycleHooksResult.Hooks[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetLifecycleHooksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ess/getLifecycleHooks:getLifecycleHooks", args ?? new GetLifecycleHooksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ess/GetNotifications.cs b/sdk/dotnet/Ess/GetNotifications.cs index a4c591596a..31d53a2b58 100644 --- a/sdk/dotnet/Ess/GetNotifications.cs +++ b/sdk/dotnet/Ess/GetNotifications.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetNotificationsArgs args /// public static Output Invoke(GetNotificationsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ess/getNotifications:getNotifications", args ?? new GetNotificationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides available notification resources. + /// + /// > **NOTE:** Available in 1.72.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ds = AliCloud.Ess.GetNotifications.Invoke(new() + /// { + /// ScalingGroupId = "scaling_group_id", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstNotification"] = ds.Apply(getNotificationsResult => getNotificationsResult.Notifications[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetNotificationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ess/getNotifications:getNotifications", args ?? new GetNotificationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ess/GetScalingConfigurations.cs b/sdk/dotnet/Ess/GetScalingConfigurations.cs index 525aca7caf..8210003ac0 100644 --- a/sdk/dotnet/Ess/GetScalingConfigurations.cs +++ b/sdk/dotnet/Ess/GetScalingConfigurations.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetScalingConfigu /// public static Output Invoke(GetScalingConfigurationsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ess/getScalingConfigurations:getScalingConfigurations", args ?? new GetScalingConfigurationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides available scaling configuration resources. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var scalingconfigurationsDs = AliCloud.Ess.GetScalingConfigurations.Invoke(new() + /// { + /// ScalingGroupId = "scaling_group_id", + /// Ids = new[] + /// { + /// "scaling_configuration_id1", + /// "scaling_configuration_id2", + /// }, + /// NameRegex = "scaling_configuration_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstScalingRule"] = scalingconfigurationsDs.Apply(getScalingConfigurationsResult => getScalingConfigurationsResult.Configurations[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetScalingConfigurationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ess/getScalingConfigurations:getScalingConfigurations", args ?? new GetScalingConfigurationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ess/GetScalingGroups.cs b/sdk/dotnet/Ess/GetScalingGroups.cs index c021edfe06..06b3afa1f5 100644 --- a/sdk/dotnet/Ess/GetScalingGroups.cs +++ b/sdk/dotnet/Ess/GetScalingGroups.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetScalingGroupsArgs? arg /// public static Output Invoke(GetScalingGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ess/getScalingGroups:getScalingGroups", args ?? new GetScalingGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides available scaling group resources. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var scalinggroupsDs = AliCloud.Ess.GetScalingGroups.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "scaling_group_id1", + /// "scaling_group_id2", + /// }, + /// NameRegex = "scaling_group_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstScalingGroup"] = scalinggroupsDs.Apply(getScalingGroupsResult => getScalingGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetScalingGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ess/getScalingGroups:getScalingGroups", args ?? new GetScalingGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ess/GetScalingRules.cs b/sdk/dotnet/Ess/GetScalingRules.cs index 34f4a0fd22..2f659738d2 100644 --- a/sdk/dotnet/Ess/GetScalingRules.cs +++ b/sdk/dotnet/Ess/GetScalingRules.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetScalingRulesArgs? args /// public static Output Invoke(GetScalingRulesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ess/getScalingRules:getScalingRules", args ?? new GetScalingRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides available scaling rule resources. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var scalingrulesDs = AliCloud.Ess.GetScalingRules.Invoke(new() + /// { + /// ScalingGroupId = "scaling_group_id", + /// Ids = new[] + /// { + /// "scaling_rule_id1", + /// "scaling_rule_id2", + /// }, + /// NameRegex = "scaling_rule_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstScalingRule"] = scalingrulesDs.Apply(getScalingRulesResult => getScalingRulesResult.Rules[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetScalingRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ess/getScalingRules:getScalingRules", args ?? new GetScalingRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ess/GetScheduledTasks.cs b/sdk/dotnet/Ess/GetScheduledTasks.cs index 00dbfefb01..df642dba9d 100644 --- a/sdk/dotnet/Ess/GetScheduledTasks.cs +++ b/sdk/dotnet/Ess/GetScheduledTasks.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetScheduledTasksArgs? a /// public static Output Invoke(GetScheduledTasksInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ess/getScheduledTasks:getScheduledTasks", args ?? new GetScheduledTasksInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides available scheduled task resources. + /// + /// > **NOTE:** Available in 1.72.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ds = AliCloud.Ess.GetScheduledTasks.Invoke(new() + /// { + /// ScheduledTaskId = "scheduled_task_id", + /// NameRegex = "scheduled_task_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstScheduledTask"] = ds.Apply(getScheduledTasksResult => getScheduledTasksResult.Tasks[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetScheduledTasksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ess/getScheduledTasks:getScheduledTasks", args ?? new GetScheduledTasksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/EventBridge/GetEventBuses.cs b/sdk/dotnet/EventBridge/GetEventBuses.cs index ccc53147cc..2ae3b05220 100644 --- a/sdk/dotnet/EventBridge/GetEventBuses.cs +++ b/sdk/dotnet/EventBridge/GetEventBuses.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetEventBusesArgs? args = nu /// public static Output Invoke(GetEventBusesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eventbridge/getEventBuses:getEventBuses", args ?? new GetEventBusesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Event Bridge Event Buses of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.129.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.EventBridge.GetEventBuses.Invoke(); + /// + /// var nameRegex = AliCloud.EventBridge.GetEventBuses.Invoke(new() + /// { + /// NameRegex = "^my-EventBus", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["eventBridgeEventBusId1"] = ids.Apply(getEventBusesResult => getEventBusesResult.Buses[0]?.Id), + /// ["eventBridgeEventBusId2"] = nameRegex.Apply(getEventBusesResult => getEventBusesResult.Buses[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEventBusesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eventbridge/getEventBuses:getEventBuses", args ?? new GetEventBusesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/EventBridge/GetEventSources.cs b/sdk/dotnet/EventBridge/GetEventSources.cs index 2fdac94cee..d4ae95659e 100644 --- a/sdk/dotnet/EventBridge/GetEventSources.cs +++ b/sdk/dotnet/EventBridge/GetEventSources.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetEventSourcesArgs? args /// public static Output Invoke(GetEventSourcesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eventbridge/getEventSources:getEventSources", args ?? new GetEventSourcesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Event Bridge Event Sources of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.130.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.EventBridge.GetEventSources.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstEventBridgeEventSourceId"] = example.Apply(getEventSourcesResult => getEventSourcesResult.Sources[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEventSourcesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eventbridge/getEventSources:getEventSources", args ?? new GetEventSourcesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/EventBridge/GetRules.cs b/sdk/dotnet/EventBridge/GetRules.cs index d791e7005c..82a5eab952 100644 --- a/sdk/dotnet/EventBridge/GetRules.cs +++ b/sdk/dotnet/EventBridge/GetRules.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetRulesArgs args, InvokeOptions? /// public static Output Invoke(GetRulesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eventbridge/getRules:getRules", args ?? new GetRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Event Bridge Rules of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.129.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.EventBridge.GetRules.Invoke(new() + /// { + /// EventBusName = "example_value", + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstEventBridgeRuleId"] = example.Apply(getRulesResult => getRulesResult.Rules[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eventbridge/getRules:getRules", args ?? new GetRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/EventBridge/GetService.cs b/sdk/dotnet/EventBridge/GetService.cs index 21aff8d96b..8ae77ba1e6 100644 --- a/sdk/dotnet/EventBridge/GetService.cs +++ b/sdk/dotnet/EventBridge/GetService.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:eventbridge/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open Event Bridge service automatically. If the service has been opened, it will return opened. + /// + /// For information about Event Bridge and how to use it, see [What is Event Bridge](https://www.alibabacloud.com/help/en/doc-detail/163239.htm). + /// + /// > **NOTE:** Available in v1.126.0+ + /// + /// > **NOTE:** This data source supports `cn-shanghai`, `cn-hangzhou` and `ap-southeast-1` regions. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.EventBridge.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:eventbridge/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ExpressConnect/GetAccessPoints.cs b/sdk/dotnet/ExpressConnect/GetAccessPoints.cs index eafff72d1c..34e562bbd3 100644 --- a/sdk/dotnet/ExpressConnect/GetAccessPoints.cs +++ b/sdk/dotnet/ExpressConnect/GetAccessPoints.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetAccessPointsArgs? args /// public static Output Invoke(GetAccessPointsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:expressconnect/getAccessPoints:getAccessPoints", args ?? new GetAccessPointsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Express Connect Access Points of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.132.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.ExpressConnect.GetAccessPoints.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "ap-cn-hangzhou-yh-C", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.ExpressConnect.GetAccessPoints.Invoke(new() + /// { + /// NameRegex = "^杭州-", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["expressConnectAccessPointId1"] = ids.Apply(getAccessPointsResult => getAccessPointsResult.Points[0]?.Id), + /// ["expressConnectAccessPointId2"] = nameRegex.Apply(getAccessPointsResult => getAccessPointsResult.Points[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAccessPointsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:expressconnect/getAccessPoints:getAccessPoints", args ?? new GetAccessPointsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ExpressConnect/GetGrantRuleToCens.cs b/sdk/dotnet/ExpressConnect/GetGrantRuleToCens.cs index 0e36f91a0e..9a1df7cfa1 100644 --- a/sdk/dotnet/ExpressConnect/GetGrantRuleToCens.cs +++ b/sdk/dotnet/ExpressConnect/GetGrantRuleToCens.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetGrantRuleToCensArgs /// public static Output Invoke(GetGrantRuleToCensInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:expressconnect/getGrantRuleToCens:getGrantRuleToCens", args ?? new GetGrantRuleToCensInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Express Connect Grant Rule To Cens of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.196.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.ExpressConnect.GetGrantRuleToCens.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// InstanceId = "your_vbr_instance_id", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["expressConnectGrantRuleToCenId0"] = ids.Apply(getGrantRuleToCensResult => getGrantRuleToCensResult.Cens[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetGrantRuleToCensInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:expressconnect/getGrantRuleToCens:getGrantRuleToCens", args ?? new GetGrantRuleToCensInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ExpressConnect/GetPhysicalConnectionService.cs b/sdk/dotnet/ExpressConnect/GetPhysicalConnectionService.cs index 7b8b1906ae..8e62210c99 100644 --- a/sdk/dotnet/ExpressConnect/GetPhysicalConnectionService.cs +++ b/sdk/dotnet/ExpressConnect/GetPhysicalConnectionService.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetPhysicalCo /// public static Output Invoke(GetPhysicalConnectionServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:expressconnect/getPhysicalConnectionService:getPhysicalConnectionService", args ?? new GetPhysicalConnectionServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can enable outbound traffic for an Express Connect circuit automatically. If the service has been opened, it will return opened. + /// + /// For information about Express Connect and how to use it, see [What is Express Connect](https://www.alibabacloud.com/help/doc-detail/275179.htm). + /// + /// > **NOTE:** Available since v1.132.0 + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.ExpressConnect.GetPhysicalConnectionService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetPhysicalConnectionServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:expressconnect/getPhysicalConnectionService:getPhysicalConnectionService", args ?? new GetPhysicalConnectionServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ExpressConnect/GetPhysicalConnections.cs b/sdk/dotnet/ExpressConnect/GetPhysicalConnections.cs index 70c720eb01..20a91b03a8 100644 --- a/sdk/dotnet/ExpressConnect/GetPhysicalConnections.cs +++ b/sdk/dotnet/ExpressConnect/GetPhysicalConnections.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetPhysicalConnecti /// public static Output Invoke(GetPhysicalConnectionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:expressconnect/getPhysicalConnections:getPhysicalConnections", args ?? new GetPhysicalConnectionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Express Connect Physical Connections of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.132.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.ExpressConnect.GetPhysicalConnections.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "pc-2345678", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.ExpressConnect.GetPhysicalConnections.Invoke(new() + /// { + /// NameRegex = "^my-PhysicalConnection", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["expressConnectPhysicalConnectionId1"] = ids.Apply(getPhysicalConnectionsResult => getPhysicalConnectionsResult.Connections[0]?.Id), + /// ["expressConnectPhysicalConnectionId2"] = nameRegex.Apply(getPhysicalConnectionsResult => getPhysicalConnectionsResult.Connections[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetPhysicalConnectionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:expressconnect/getPhysicalConnections:getPhysicalConnections", args ?? new GetPhysicalConnectionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ExpressConnect/GetRouterInterfaces.cs b/sdk/dotnet/ExpressConnect/GetRouterInterfaces.cs index 4e9f4541e0..ed9b438b89 100644 --- a/sdk/dotnet/ExpressConnect/GetRouterInterfaces.cs +++ b/sdk/dotnet/ExpressConnect/GetRouterInterfaces.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetRouterInterfacesArg /// public static Output Invoke(GetRouterInterfacesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:expressconnect/getRouterInterfaces:getRouterInterfaces", args ?? new GetRouterInterfacesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Router Interface available to the user.[What is Router Interface](https://www.alibabacloud.com/help/en/express-connect/developer-reference/api-vpc-2016-04-28-describerouterinterfaces-efficiency-channels) + /// + /// > **NOTE:** Available in 1.199.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ExpressConnect.GetRouterInterfaces.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAlicloudRouterInterface.Id, + /// }, + /// NameRegex = defaultAlicloudRouterInterface.Name, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudRouterInterfaceExampleId"] = @default.Apply(@default => @default.Apply(getRouterInterfacesResult => getRouterInterfacesResult.Interfaces[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRouterInterfacesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:expressconnect/getRouterInterfaces:getRouterInterfaces", args ?? new GetRouterInterfacesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ExpressConnect/GetVbrPconnAssociations.cs b/sdk/dotnet/ExpressConnect/GetVbrPconnAssociations.cs index 25a3f6facd..c6f97384da 100644 --- a/sdk/dotnet/ExpressConnect/GetVbrPconnAssociations.cs +++ b/sdk/dotnet/ExpressConnect/GetVbrPconnAssociations.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetVbrPconnAssocia /// public static Output Invoke(GetVbrPconnAssociationsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:expressconnect/getVbrPconnAssociations:getVbrPconnAssociations", args ?? new GetVbrPconnAssociationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Express Connect Vbr Pconn Association available to the user. + /// + /// > **NOTE:** Available in 1.196.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ExpressConnect.GetVbrPconnAssociations.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// VbrId = defaultAlicloudExpressConnectVbrPconnAssociation.VbrId, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudExpressConnectVbrPconnAssociationExampleId"] = @default.Apply(@default => @default.Apply(getVbrPconnAssociationsResult => getVbrPconnAssociationsResult.Associations[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetVbrPconnAssociationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:expressconnect/getVbrPconnAssociations:getVbrPconnAssociations", args ?? new GetVbrPconnAssociationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ExpressConnect/GetVirtualBorderRouters.cs b/sdk/dotnet/ExpressConnect/GetVirtualBorderRouters.cs index 96ee0c0826..1ec319110b 100644 --- a/sdk/dotnet/ExpressConnect/GetVirtualBorderRouters.cs +++ b/sdk/dotnet/ExpressConnect/GetVirtualBorderRouters.cs @@ -130,6 +130,66 @@ public static Task InvokeAsync(GetVirtualBorderRo /// public static Output Invoke(GetVirtualBorderRoutersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:expressconnect/getVirtualBorderRouters:getVirtualBorderRouters", args ?? new GetVirtualBorderRoutersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Express Connect Virtual Border Routers of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.134.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.ExpressConnect.GetVirtualBorderRouters.Invoke(); + /// + /// var nameRegex = AliCloud.ExpressConnect.GetVirtualBorderRouters.Invoke(new() + /// { + /// NameRegex = "^my-VirtualBorderRouter", + /// }); + /// + /// var filter = AliCloud.ExpressConnect.GetVirtualBorderRouters.Invoke(new() + /// { + /// Filters = new[] + /// { + /// new AliCloud.ExpressConnect.Inputs.GetVirtualBorderRoutersFilterInputArgs + /// { + /// Key = "PhysicalConnectionId", + /// Values = new[] + /// { + /// "pc-xxxx1", + /// }, + /// }, + /// new AliCloud.ExpressConnect.Inputs.GetVirtualBorderRoutersFilterInputArgs + /// { + /// Key = "VbrId", + /// Values = new[] + /// { + /// "vbr-xxxx1", + /// "vbr-xxxx2", + /// }, + /// }, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["expressConnectVirtualBorderRouterId1"] = ids.Apply(getVirtualBorderRoutersResult => getVirtualBorderRoutersResult.Routers[0]?.Id), + /// ["expressConnectVirtualBorderRouterId2"] = nameRegex.Apply(getVirtualBorderRoutersResult => getVirtualBorderRoutersResult.Routers[0]?.Id), + /// ["expressConnectVirtualBorderRouterId3"] = filter.Apply(getVirtualBorderRoutersResult => getVirtualBorderRoutersResult.Routers[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetVirtualBorderRoutersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:expressconnect/getVirtualBorderRouters:getVirtualBorderRouters", args ?? new GetVirtualBorderRoutersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ExpressConnect/GetVirtualPhysicalConnections.cs b/sdk/dotnet/ExpressConnect/GetVirtualPhysicalConnections.cs index c08208eb2e..9b5ccfcdbb 100644 --- a/sdk/dotnet/ExpressConnect/GetVirtualPhysicalConnections.cs +++ b/sdk/dotnet/ExpressConnect/GetVirtualPhysicalConnections.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetVirtualPh /// public static Output Invoke(GetVirtualPhysicalConnectionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:expressconnect/getVirtualPhysicalConnections:getVirtualPhysicalConnections", args ?? new GetVirtualPhysicalConnectionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Express Connect Virtual Physical Connection available to the user. + /// + /// > **NOTE:** Available in 1.196.0+ + /// + public static Output Invoke(GetVirtualPhysicalConnectionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:expressconnect/getVirtualPhysicalConnections:getVirtualPhysicalConnections", args ?? new GetVirtualPhysicalConnectionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/FC/GetCustomDomains.cs b/sdk/dotnet/FC/GetCustomDomains.cs index c763d463d4..2040bed885 100644 --- a/sdk/dotnet/FC/GetCustomDomains.cs +++ b/sdk/dotnet/FC/GetCustomDomains.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetCustomDomainsArgs? arg /// public static Output Invoke(GetCustomDomainsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:fc/getCustomDomains:getCustomDomains", args ?? new GetCustomDomainsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Function Compute custom domains of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in 1.98.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var fcDomains = AliCloud.FC.GetCustomDomains.Invoke(new() + /// { + /// NameRegex = "sample_fc_custom_domain", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstFcCustomDomainName"] = fcDomainsDs.Domains[0].DomainName, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetCustomDomainsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:fc/getCustomDomains:getCustomDomains", args ?? new GetCustomDomainsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/FC/GetFunctions.cs b/sdk/dotnet/FC/GetFunctions.cs index 0165a85ced..8e9c9bc133 100644 --- a/sdk/dotnet/FC/GetFunctions.cs +++ b/sdk/dotnet/FC/GetFunctions.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetFunctionsArgs args, Invoke /// public static Output Invoke(GetFunctionsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:fc/getFunctions:getFunctions", args ?? new GetFunctionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Function Compute functions of the current Alibaba Cloud user. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var functionsDs = AliCloud.FC.GetFunctions.Invoke(new() + /// { + /// ServiceName = "sample_service", + /// NameRegex = "sample_fc_function", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstFcFunctionName"] = functionsDs.Apply(getFunctionsResult => getFunctionsResult.Functions[0]?.Name), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetFunctionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:fc/getFunctions:getFunctions", args ?? new GetFunctionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/FC/GetService.cs b/sdk/dotnet/FC/GetService.cs index 9c3ae73815..5cc8d3d143 100644 --- a/sdk/dotnet/FC/GetService.cs +++ b/sdk/dotnet/FC/GetService.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:fc/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open FC service automatically. If the service has been opened, it will return opened. + /// + /// For information about FC and how to use it, see [What is FC](https://www.alibabacloud.com/help/en/product/50980.htm). + /// + /// > **NOTE:** Available since v1.112.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.FC.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:fc/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/FC/GetServices.cs b/sdk/dotnet/FC/GetServices.cs index d99bdc6e1f..59f12bb7ec 100644 --- a/sdk/dotnet/FC/GetServices.cs +++ b/sdk/dotnet/FC/GetServices.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetServicesArgs? args = null, /// public static Output Invoke(GetServicesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:fc/getServices:getServices", args ?? new GetServicesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Function Compute services of the current Alibaba Cloud user. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var fcServicesDs = AliCloud.FC.GetServices.Invoke(new() + /// { + /// NameRegex = "sample_fc_service", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstFcServiceName"] = fcServicesDs.Apply(getServicesResult => getServicesResult.Services[0]?.Name), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetServicesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:fc/getServices:getServices", args ?? new GetServicesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/FC/GetTriggers.cs b/sdk/dotnet/FC/GetTriggers.cs index 029fca62ed..678f9e7c87 100644 --- a/sdk/dotnet/FC/GetTriggers.cs +++ b/sdk/dotnet/FC/GetTriggers.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetTriggersArgs args, InvokeOp /// public static Output Invoke(GetTriggersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:fc/getTriggers:getTriggers", args ?? new GetTriggersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Function Compute triggers of the current Alibaba Cloud user. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var fcTriggersDs = AliCloud.FC.GetTriggers.Invoke(new() + /// { + /// ServiceName = "sample_service", + /// FunctionName = "sample_function", + /// NameRegex = "sample_fc_trigger", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstFcTriggerName"] = fcTriggersDs.Apply(getTriggersResult => getTriggersResult.Triggers[0]?.Name), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTriggersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:fc/getTriggers:getTriggers", args ?? new GetTriggersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/FC/GetZones.cs b/sdk/dotnet/FC/GetZones.cs index bd42af5060..9b4951525b 100644 --- a/sdk/dotnet/FC/GetZones.cs +++ b/sdk/dotnet/FC/GetZones.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:fc/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides availability zones for FunctionCompute that can be accessed by an Alibaba Cloud account within the region configured in the provider. + /// + /// > **NOTE:** Available in v1.74.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var zonesIds = AliCloud.FC.GetZones.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:fc/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/FNF/GetExecutions.cs b/sdk/dotnet/FNF/GetExecutions.cs index 9a8fbffff5..6f7999c00a 100644 --- a/sdk/dotnet/FNF/GetExecutions.cs +++ b/sdk/dotnet/FNF/GetExecutions.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetExecutionsArgs args, Invo /// public static Output Invoke(GetExecutionsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:fnf/getExecutions:getExecutions", args ?? new GetExecutionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the FnF Executions of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.149.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.FNF.GetExecutions.Invoke(new() + /// { + /// FlowName = "example_value", + /// Ids = new[] + /// { + /// "my-Execution-1", + /// "my-Execution-2", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["fnfExecutionId1"] = idsAlicloudFnFExecutions.Executions[0].Id, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetExecutionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:fnf/getExecutions:getExecutions", args ?? new GetExecutionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/FNF/GetFlows.cs b/sdk/dotnet/FNF/GetFlows.cs index fa8ec1cac0..098a2af250 100644 --- a/sdk/dotnet/FNF/GetFlows.cs +++ b/sdk/dotnet/FNF/GetFlows.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetFlowsArgs? args = null, Invoke /// public static Output Invoke(GetFlowsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:fnf/getFlows:getFlows", args ?? new GetFlowsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Fnf Flows of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.105.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.FNF.GetFlows.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstFnfFlowId"] = example.Apply(getFlowsResult => getFlowsResult.Flows[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetFlowsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:fnf/getFlows:getFlows", args ?? new GetFlowsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/FNF/GetSchedules.cs b/sdk/dotnet/FNF/GetSchedules.cs index ae7895c177..d76944d71e 100644 --- a/sdk/dotnet/FNF/GetSchedules.cs +++ b/sdk/dotnet/FNF/GetSchedules.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetSchedulesArgs args, Invoke /// public static Output Invoke(GetSchedulesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:fnf/getSchedules:getSchedules", args ?? new GetSchedulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Fnf Schedules of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.105.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.FNF.GetSchedules.Invoke(new() + /// { + /// FlowName = "example_value", + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstFnfScheduleId"] = example.Apply(getSchedulesResult => getSchedulesResult.Schedules[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSchedulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:fnf/getSchedules:getSchedules", args ?? new GetSchedulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/FNF/GetService.cs b/sdk/dotnet/FNF/GetService.cs index 7387a2a085..437a13d43c 100644 --- a/sdk/dotnet/FNF/GetService.cs +++ b/sdk/dotnet/FNF/GetService.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:fnf/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open Fnf service automatically. If the service has been opened, it will return opened. + /// + /// For information about Fnf and how to use it, see [What is Fnf](https://www.alibabacloud.com/help/en/product/113549.htm). + /// + /// > **NOTE:** Available in v1.114.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.FNF.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:fnf/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ga/GetAcceleratorSpareIpAttachments.cs b/sdk/dotnet/Ga/GetAcceleratorSpareIpAttachments.cs index 949a238465..a8321a549d 100644 --- a/sdk/dotnet/Ga/GetAcceleratorSpareIpAttachments.cs +++ b/sdk/dotnet/Ga/GetAcceleratorSpareIpAttachments.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetAccele /// public static Output Invoke(GetAcceleratorSpareIpAttachmentsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getAcceleratorSpareIpAttachments:getAcceleratorSpareIpAttachments", args ?? new GetAcceleratorSpareIpAttachmentsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ga Accelerator Spare Ip Attachments of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.167.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ga.GetAcceleratorSpareIpAttachments.Invoke(new() + /// { + /// AcceleratorId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["gaAcceleratorSpareIpAttachmentId1"] = ids.Apply(getAcceleratorSpareIpAttachmentsResult => getAcceleratorSpareIpAttachmentsResult.Attachments[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAcceleratorSpareIpAttachmentsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getAcceleratorSpareIpAttachments:getAcceleratorSpareIpAttachments", args ?? new GetAcceleratorSpareIpAttachmentsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ga/GetAccelerators.cs b/sdk/dotnet/Ga/GetAccelerators.cs index fe8291aa92..c8feb68711 100644 --- a/sdk/dotnet/Ga/GetAccelerators.cs +++ b/sdk/dotnet/Ga/GetAccelerators.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetAcceleratorsArgs? args /// public static Output Invoke(GetAcceleratorsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getAccelerators:getAccelerators", args ?? new GetAcceleratorsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Global Accelerator (GA) Accelerators of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.111.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Ga.GetAccelerators.Invoke(new() + /// { + /// NameRegex = "tf", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstGaAcceleratorId"] = example.Apply(getAcceleratorsResult => getAcceleratorsResult.Accelerators[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAcceleratorsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getAccelerators:getAccelerators", args ?? new GetAcceleratorsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ga/GetAcls.cs b/sdk/dotnet/Ga/GetAcls.cs index 5dbf3c9984..2aec976815 100644 --- a/sdk/dotnet/Ga/GetAcls.cs +++ b/sdk/dotnet/Ga/GetAcls.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetAclsArgs? args = null, InvokeOp /// public static Output Invoke(GetAclsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getAcls:getAcls", args ?? new GetAclsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ga Acls of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.150.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ga.GetAcls.Invoke(); + /// + /// var nameRegex = AliCloud.Ga.GetAcls.Invoke(new() + /// { + /// NameRegex = "^my-Acl", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["gaAclId1"] = ids.Apply(getAclsResult => getAclsResult.Acls[0]?.Id), + /// ["gaAclId2"] = nameRegex.Apply(getAclsResult => getAclsResult.Acls[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAclsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getAcls:getAcls", args ?? new GetAclsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ga/GetAdditionalCertificates.cs b/sdk/dotnet/Ga/GetAdditionalCertificates.cs index 65192266f0..156480916c 100644 --- a/sdk/dotnet/Ga/GetAdditionalCertificates.cs +++ b/sdk/dotnet/Ga/GetAdditionalCertificates.cs @@ -86,6 +86,44 @@ public static Task InvokeAsync(GetAdditionalCer /// public static Output Invoke(GetAdditionalCertificatesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getAdditionalCertificates:getAdditionalCertificates", args ?? new GetAdditionalCertificatesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ga Additional Certificates of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.150.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ga.GetAdditionalCertificates.Invoke(new() + /// { + /// AcceleratorId = "example_value", + /// ListenerId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["gaAdditionalCertificateId1"] = ids.Apply(getAdditionalCertificatesResult => getAdditionalCertificatesResult.Certificates[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAdditionalCertificatesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getAdditionalCertificates:getAdditionalCertificates", args ?? new GetAdditionalCertificatesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ga/GetBandwidthPackages.cs b/sdk/dotnet/Ga/GetBandwidthPackages.cs index 1a8f257f0b..0fcfbd4da8 100644 --- a/sdk/dotnet/Ga/GetBandwidthPackages.cs +++ b/sdk/dotnet/Ga/GetBandwidthPackages.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetBandwidthPackagesA /// public static Output Invoke(GetBandwidthPackagesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getBandwidthPackages:getBandwidthPackages", args ?? new GetBandwidthPackagesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Global Accelerator (GA) Bandwidth Packages of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.112.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Ga.GetBandwidthPackages.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstGaBandwidthPackageId"] = example.Apply(getBandwidthPackagesResult => getBandwidthPackagesResult.Packages[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBandwidthPackagesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getBandwidthPackages:getBandwidthPackages", args ?? new GetBandwidthPackagesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ga/GetBasicAccelerateIpEndpointRelations.cs b/sdk/dotnet/Ga/GetBasicAccelerateIpEndpointRelations.cs index 03a4130402..885b977444 100644 --- a/sdk/dotnet/Ga/GetBasicAccelerateIpEndpointRelations.cs +++ b/sdk/dotnet/Ga/GetBasicAccelerateIpEndpointRelations.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetB /// public static Output Invoke(GetBasicAccelerateIpEndpointRelationsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getBasicAccelerateIpEndpointRelations:getBasicAccelerateIpEndpointRelations", args ?? new GetBasicAccelerateIpEndpointRelationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Global Accelerator (GA) Basic Accelerate Ip Endpoint Relations of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.194.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ga.GetBasicAccelerateIpEndpointRelations.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// AcceleratorId = "example_id", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["gaBasicAccelerateIpEndpointRelationsId1"] = ids.Apply(getBasicAccelerateIpEndpointRelationsResult => getBasicAccelerateIpEndpointRelationsResult.Relations[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBasicAccelerateIpEndpointRelationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getBasicAccelerateIpEndpointRelations:getBasicAccelerateIpEndpointRelations", args ?? new GetBasicAccelerateIpEndpointRelationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ga/GetBasicAccelerateIps.cs b/sdk/dotnet/Ga/GetBasicAccelerateIps.cs index dadb6e665f..e11e598e47 100644 --- a/sdk/dotnet/Ga/GetBasicAccelerateIps.cs +++ b/sdk/dotnet/Ga/GetBasicAccelerateIps.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetBasicAccelerateIp /// public static Output Invoke(GetBasicAccelerateIpsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getBasicAccelerateIps:getBasicAccelerateIps", args ?? new GetBasicAccelerateIpsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Global Accelerator (GA) Basic Accelerate IPs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.194.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ga.GetBasicAccelerateIps.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// IpSetId = "example_ip_set_id", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["gaBasicAccelerateIpId1"] = ids.Apply(getBasicAccelerateIpsResult => getBasicAccelerateIpsResult.Ips[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBasicAccelerateIpsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getBasicAccelerateIps:getBasicAccelerateIps", args ?? new GetBasicAccelerateIpsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ga/GetBasicAccelerators.cs b/sdk/dotnet/Ga/GetBasicAccelerators.cs index d573e07a61..2b5ce6ea7f 100644 --- a/sdk/dotnet/Ga/GetBasicAccelerators.cs +++ b/sdk/dotnet/Ga/GetBasicAccelerators.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetBasicAcceleratorsA /// public static Output Invoke(GetBasicAcceleratorsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getBasicAccelerators:getBasicAccelerators", args ?? new GetBasicAcceleratorsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Global Accelerator (GA) Basic Accelerators of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.194.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ga.GetBasicAccelerators.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Ga.GetBasicAccelerators.Invoke(new() + /// { + /// NameRegex = "tf-example", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["gaBasicAcceleratorId1"] = ids.Apply(getBasicAcceleratorsResult => getBasicAcceleratorsResult.Accelerators[0]?.Id), + /// ["gaBasicAcceleratorId2"] = nameRegex.Apply(getBasicAcceleratorsResult => getBasicAcceleratorsResult.Accelerators[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBasicAcceleratorsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getBasicAccelerators:getBasicAccelerators", args ?? new GetBasicAcceleratorsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ga/GetBasicEndpoints.cs b/sdk/dotnet/Ga/GetBasicEndpoints.cs index 4f64bf3a6b..e826c2f454 100644 --- a/sdk/dotnet/Ga/GetBasicEndpoints.cs +++ b/sdk/dotnet/Ga/GetBasicEndpoints.cs @@ -96,6 +96,49 @@ public static Task InvokeAsync(GetBasicEndpointsArgs ar /// public static Output Invoke(GetBasicEndpointsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getBasicEndpoints:getBasicEndpoints", args ?? new GetBasicEndpointsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Global Accelerator (GA) Basic Endpoints of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.194.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ga.GetBasicEndpoints.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// EndpointGroupId = "example_id", + /// }); + /// + /// var nameRegex = AliCloud.Ga.GetBasicEndpoints.Invoke(new() + /// { + /// NameRegex = "tf-example", + /// EndpointGroupId = "example_id", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["gaBasicEndpointsId1"] = ids.Apply(getBasicEndpointsResult => getBasicEndpointsResult.Endpoints[0]?.Id), + /// ["gaBasicEndpointsId2"] = nameRegex.Apply(getBasicEndpointsResult => getBasicEndpointsResult.Endpoints[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBasicEndpointsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getBasicEndpoints:getBasicEndpoints", args ?? new GetBasicEndpointsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ga/GetCustomRoutingEndpointGroupDestinations.cs b/sdk/dotnet/Ga/GetCustomRoutingEndpointGroupDestinations.cs index 725a6b17ac..dbe5ef3da4 100644 --- a/sdk/dotnet/Ga/GetCustomRoutingEndpointGroupDestinations.cs +++ b/sdk/dotnet/Ga/GetCustomRoutingEndpointGroupDestinations.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync( /// public static Output Invoke(GetCustomRoutingEndpointGroupDestinationsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getCustomRoutingEndpointGroupDestinations:getCustomRoutingEndpointGroupDestinations", args ?? new GetCustomRoutingEndpointGroupDestinationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Global Accelerator (GA) Custom Routing Endpoint Group Destinations of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in 1.197.0+ + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ga.GetCustomRoutingEndpointGroupDestinations.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// AcceleratorId = "your_accelerator_id", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["gaCustomRoutingEndpointGroupDestinationsId1"] = ids.Apply(getCustomRoutingEndpointGroupDestinationsResult => getCustomRoutingEndpointGroupDestinationsResult.CustomRoutingEndpointGroupDestinations[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetCustomRoutingEndpointGroupDestinationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getCustomRoutingEndpointGroupDestinations:getCustomRoutingEndpointGroupDestinations", args ?? new GetCustomRoutingEndpointGroupDestinationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ga/GetCustomRoutingEndpointGroups.cs b/sdk/dotnet/Ga/GetCustomRoutingEndpointGroups.cs index dfbfd60b4e..bc1de29993 100644 --- a/sdk/dotnet/Ga/GetCustomRoutingEndpointGroups.cs +++ b/sdk/dotnet/Ga/GetCustomRoutingEndpointGroups.cs @@ -96,6 +96,49 @@ public static Task InvokeAsync(GetCustomRo /// public static Output Invoke(GetCustomRoutingEndpointGroupsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getCustomRoutingEndpointGroups:getCustomRoutingEndpointGroups", args ?? new GetCustomRoutingEndpointGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Global Accelerator (GA) Custom Routing Endpoint Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in 1.197.0+ + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ga.GetCustomRoutingEndpointGroups.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// AcceleratorId = "your_accelerator_id", + /// }); + /// + /// var nameRegex = AliCloud.Ga.GetCustomRoutingEndpointGroups.Invoke(new() + /// { + /// NameRegex = "tf-example", + /// AcceleratorId = "your_accelerator_id", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["gaCustomRoutingEndpointGroupsId1"] = ids.Apply(getCustomRoutingEndpointGroupsResult => getCustomRoutingEndpointGroupsResult.Groups[0]?.Id), + /// ["gaCustomRoutingEndpointGroupsId2"] = nameRegex.Apply(getCustomRoutingEndpointGroupsResult => getCustomRoutingEndpointGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetCustomRoutingEndpointGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getCustomRoutingEndpointGroups:getCustomRoutingEndpointGroups", args ?? new GetCustomRoutingEndpointGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ga/GetCustomRoutingEndpointTrafficPolicies.cs b/sdk/dotnet/Ga/GetCustomRoutingEndpointTrafficPolicies.cs index 414195d755..8b25777559 100644 --- a/sdk/dotnet/Ga/GetCustomRoutingEndpointTrafficPolicies.cs +++ b/sdk/dotnet/Ga/GetCustomRoutingEndpointTrafficPolicies.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(Ge /// public static Output Invoke(GetCustomRoutingEndpointTrafficPoliciesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getCustomRoutingEndpointTrafficPolicies:getCustomRoutingEndpointTrafficPolicies", args ?? new GetCustomRoutingEndpointTrafficPoliciesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Global Accelerator (GA) Custom Routing Endpoint Traffic Policies of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in 1.197.0+ + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ga.GetCustomRoutingEndpointTrafficPolicies.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// AcceleratorId = "your_accelerator_id", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["gaCustomRoutingEndpointTrafficPoliciesId1"] = ids.Apply(getCustomRoutingEndpointTrafficPoliciesResult => getCustomRoutingEndpointTrafficPoliciesResult.CustomRoutingEndpointTrafficPolicies[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetCustomRoutingEndpointTrafficPoliciesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getCustomRoutingEndpointTrafficPolicies:getCustomRoutingEndpointTrafficPolicies", args ?? new GetCustomRoutingEndpointTrafficPoliciesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ga/GetCustomRoutingEndpoints.cs b/sdk/dotnet/Ga/GetCustomRoutingEndpoints.cs index 0c51e4ddd2..ac5b13bbe5 100644 --- a/sdk/dotnet/Ga/GetCustomRoutingEndpoints.cs +++ b/sdk/dotnet/Ga/GetCustomRoutingEndpoints.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetCustomRouting /// public static Output Invoke(GetCustomRoutingEndpointsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getCustomRoutingEndpoints:getCustomRoutingEndpoints", args ?? new GetCustomRoutingEndpointsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Global Accelerator (GA) Custom Routing Endpoints of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in 1.197.0+ + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ga.GetCustomRoutingEndpoints.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// AcceleratorId = "your_accelerator_id", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["gaCustomRoutingEndpointsId1"] = ids.Apply(getCustomRoutingEndpointsResult => getCustomRoutingEndpointsResult.CustomRoutingEndpoints[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetCustomRoutingEndpointsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getCustomRoutingEndpoints:getCustomRoutingEndpoints", args ?? new GetCustomRoutingEndpointsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ga/GetCustomRoutingPortMappings.cs b/sdk/dotnet/Ga/GetCustomRoutingPortMappings.cs index 8da5fa9dd0..f1d3521e41 100644 --- a/sdk/dotnet/Ga/GetCustomRoutingPortMappings.cs +++ b/sdk/dotnet/Ga/GetCustomRoutingPortMappings.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetCustomRout /// public static Output Invoke(GetCustomRoutingPortMappingsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getCustomRoutingPortMappings:getCustomRoutingPortMappings", args ?? new GetCustomRoutingPortMappingsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Global Accelerator (GA) Custom Routing Port Mappings of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in 1.197.0+ + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Ga.GetCustomRoutingPortMappings.Invoke(new() + /// { + /// AcceleratorId = "your_accelerator_id", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["gaCustomRoutingPortMappingsAcceleratorId1"] = @default.Apply(@default => @default.Apply(getCustomRoutingPortMappingsResult => getCustomRoutingPortMappingsResult.CustomRoutingPortMappings[0]?.AcceleratorId)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetCustomRoutingPortMappingsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getCustomRoutingPortMappings:getCustomRoutingPortMappings", args ?? new GetCustomRoutingPortMappingsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ga/GetDomains.cs b/sdk/dotnet/Ga/GetDomains.cs index 313d3913b1..8aec71944d 100644 --- a/sdk/dotnet/Ga/GetDomains.cs +++ b/sdk/dotnet/Ga/GetDomains.cs @@ -110,6 +110,56 @@ public static Task InvokeAsync(GetDomainsArgs? args = null, In /// public static Output Invoke(GetDomainsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getDomains:getDomains", args ?? new GetDomainsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Ga Domain available to the user.[What is Domain](https://www.alibabacloud.com/help/en/global-accelerator/latest/createdomain) + /// + /// > **NOTE:** Available in 1.197.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using System.Threading.Tasks; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(async() => + /// { + /// var @default = await AliCloud.Ga.GetAccelerators.InvokeAsync(new() + /// { + /// Status = "active", + /// }); + /// + /// var defaultAccelerator = new List<AliCloud.Ga.Accelerator>(); + /// for (var rangeIndex = 0; rangeIndex < @default.Accelerators.Length > 0 ? 0 : 1; rangeIndex++) + /// { + /// var range = new { Value = rangeIndex }; + /// defaultAccelerator.Add(new AliCloud.Ga.Accelerator($"default-{range.Value}", new() + /// { + /// Duration = 1, + /// AutoUseCoupon = true, + /// Spec = "1", + /// })); + /// } + /// var acceleratorId = @default.Accelerators.Length > 0 ? @default.Accelerators[0]?.Id : defaultAccelerator[0].Id; + /// + /// var defaultGetDomains = await AliCloud.Ga.GetDomains.InvokeAsync(new() + /// { + /// AcceleratorId = acceleratorIdLocals, + /// Domain = "your_domain", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudGaDomainExampleId"] = defaultGetDomains.Domains[0]?.Id, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDomainsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getDomains:getDomains", args ?? new GetDomainsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ga/GetEndpointGroupIpAddressCidrBlocks.cs b/sdk/dotnet/Ga/GetEndpointGroupIpAddressCidrBlocks.cs index bcb1c5dfc1..204002ecd2 100644 --- a/sdk/dotnet/Ga/GetEndpointGroupIpAddressCidrBlocks.cs +++ b/sdk/dotnet/Ga/GetEndpointGroupIpAddressCidrBlocks.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetEnd /// public static Output Invoke(GetEndpointGroupIpAddressCidrBlocksInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getEndpointGroupIpAddressCidrBlocks:getEndpointGroupIpAddressCidrBlocks", args ?? new GetEndpointGroupIpAddressCidrBlocksInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Global Accelerator (GA) Endpoint Group Ip Address Cidr Blocks of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.213.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Ga.GetEndpointGroupIpAddressCidrBlocks.Invoke(new() + /// { + /// EndpointGroupRegion = "cn-hangzhou", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["gaEndpointGroupIpAddressCidrBlocksEndpointGroupRegion"] = @default.Apply(@default => @default.Apply(getEndpointGroupIpAddressCidrBlocksResult => getEndpointGroupIpAddressCidrBlocksResult.EndpointGroupIpAddressCidrBlocks[0]?.EndpointGroupRegion)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEndpointGroupIpAddressCidrBlocksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getEndpointGroupIpAddressCidrBlocks:getEndpointGroupIpAddressCidrBlocks", args ?? new GetEndpointGroupIpAddressCidrBlocksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ga/GetEndpointGroups.cs b/sdk/dotnet/Ga/GetEndpointGroups.cs index cc5693533c..5be656552a 100644 --- a/sdk/dotnet/Ga/GetEndpointGroups.cs +++ b/sdk/dotnet/Ga/GetEndpointGroups.cs @@ -240,6 +240,121 @@ public static Task InvokeAsync(GetEndpointGroupsArgs ar /// public static Output Invoke(GetEndpointGroupsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getEndpointGroups:getEndpointGroups", args ?? new GetEndpointGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Global Accelerator (GA) Endpoint Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.113.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var region = config.Get("region") ?? "cn-hangzhou"; + /// var name = config.Get("name") ?? "tf-example"; + /// var @default = AliCloud.Ga.GetAccelerators.Invoke(new() + /// { + /// Status = "active", + /// }); + /// + /// var defaultBandwidthPackage = new AliCloud.Ga.BandwidthPackage("default", new() + /// { + /// Bandwidth = 100, + /// Type = "Basic", + /// BandwidthType = "Basic", + /// PaymentType = "PayAsYouGo", + /// BillingType = "PayBy95", + /// Ratio = 30, + /// BandwidthPackageName = name, + /// AutoPay = true, + /// AutoUseCoupon = true, + /// }); + /// + /// var defaultBandwidthPackageAttachment = new AliCloud.Ga.BandwidthPackageAttachment("default", new() + /// { + /// AcceleratorId = @default.Apply(@default => @default.Apply(getAcceleratorsResult => getAcceleratorsResult.Ids[0])), + /// BandwidthPackageId = defaultBandwidthPackage.Id, + /// }); + /// + /// var defaultListener = new AliCloud.Ga.Listener("default", new() + /// { + /// AcceleratorId = defaultBandwidthPackageAttachment.AcceleratorId, + /// ClientAffinity = "SOURCE_IP", + /// Protocol = "UDP", + /// Name = name, + /// PortRanges = new[] + /// { + /// new AliCloud.Ga.Inputs.ListenerPortRangeArgs + /// { + /// FromPort = 60, + /// ToPort = 70, + /// }, + /// }, + /// }); + /// + /// var defaultEipAddress = new AliCloud.Ecs.EipAddress("default", new() + /// { + /// Bandwidth = "10", + /// InternetChargeType = "PayByBandwidth", + /// AddressName = name, + /// }); + /// + /// var defaultEndpointGroup = new AliCloud.Ga.EndpointGroup("default", new() + /// { + /// AcceleratorId = defaultListener.AcceleratorId, + /// ListenerId = defaultListener.Id, + /// Description = name, + /// Name = name, + /// ThresholdCount = 4, + /// TrafficPercentage = 20, + /// EndpointGroupRegion = "cn-hangzhou", + /// HealthCheckIntervalSeconds = 3, + /// HealthCheckPath = "/healthcheck", + /// HealthCheckPort = 9999, + /// HealthCheckProtocol = "http", + /// PortOverrides = new AliCloud.Ga.Inputs.EndpointGroupPortOverridesArgs + /// { + /// EndpointPort = 10, + /// ListenerPort = 60, + /// }, + /// EndpointConfigurations = new[] + /// { + /// new AliCloud.Ga.Inputs.EndpointGroupEndpointConfigurationArgs + /// { + /// Endpoint = defaultEipAddress.IpAddress, + /// Type = "PublicIp", + /// Weight = 20, + /// }, + /// }, + /// }); + /// + /// var defaultGetEndpointGroups = AliCloud.Ga.GetEndpointGroups.Invoke(new() + /// { + /// AcceleratorId = defaultEndpointGroup.AcceleratorId, + /// Ids = new[] + /// { + /// defaultEndpointGroup.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstGaEndpointGroupId"] = defaultGetEndpointGroups.Apply(getEndpointGroupsResult => getEndpointGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEndpointGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getEndpointGroups:getEndpointGroups", args ?? new GetEndpointGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ga/GetForwardingRules.cs b/sdk/dotnet/Ga/GetForwardingRules.cs index bedd4eacb4..794b69d4c0 100644 --- a/sdk/dotnet/Ga/GetForwardingRules.cs +++ b/sdk/dotnet/Ga/GetForwardingRules.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetForwardingRulesArgs /// public static Output Invoke(GetForwardingRulesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getForwardingRules:getForwardingRules", args ?? new GetForwardingRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Global Accelerator (GA) Forwarding Rules of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.120.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Ga.GetForwardingRules.Invoke(new() + /// { + /// AcceleratorId = "example_value", + /// ListenerId = "example_value", + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstGaForwardingRuleId"] = example.Apply(getForwardingRulesResult => getForwardingRulesResult.ForwardingRules[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetForwardingRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getForwardingRules:getForwardingRules", args ?? new GetForwardingRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ga/GetIpSets.cs b/sdk/dotnet/Ga/GetIpSets.cs index d96083094f..3af40dd7b6 100644 --- a/sdk/dotnet/Ga/GetIpSets.cs +++ b/sdk/dotnet/Ga/GetIpSets.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetIpSetsArgs args, InvokeOption /// public static Output Invoke(GetIpSetsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getIpSets:getIpSets", args ?? new GetIpSetsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Global Accelerator (GA) Ip Sets of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.113.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Ga.GetIpSets.Invoke(new() + /// { + /// AcceleratorId = "example_value", + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstGaIpSetId"] = example.Apply(getIpSetsResult => getIpSetsResult.Sets[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetIpSetsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getIpSets:getIpSets", args ?? new GetIpSetsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ga/GetListeners.cs b/sdk/dotnet/Ga/GetListeners.cs index 352919bfdc..deedf389e4 100644 --- a/sdk/dotnet/Ga/GetListeners.cs +++ b/sdk/dotnet/Ga/GetListeners.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetListenersArgs args, Invoke /// public static Output Invoke(GetListenersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getListeners:getListeners", args ?? new GetListenersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Global Accelerator (GA) Listeners of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.111.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Ga.GetListeners.Invoke(new() + /// { + /// AcceleratorId = "example_value", + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstGaListenerId"] = example.Apply(getListenersResult => getListenersResult.Listeners[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetListenersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ga/getListeners:getListeners", args ?? new GetListenersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetAccount.cs b/sdk/dotnet/GetAccount.cs index 81758d404d..7ab4a31ebe 100644 --- a/sdk/dotnet/GetAccount.cs +++ b/sdk/dotnet/GetAccount.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(InvokeOptions? options = null) /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:index/getAccount:getAccount", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// This data source provides information about the current account. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var current = AliCloud.GetAccount.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["currentAccountId"] = current.Apply(getAccountResult => getAccountResult.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:index/getAccount:getAccount", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetCallerIdentity.cs b/sdk/dotnet/GetCallerIdentity.cs index 057c9d006a..068d95e7ee 100644 --- a/sdk/dotnet/GetCallerIdentity.cs +++ b/sdk/dotnet/GetCallerIdentity.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(InvokeOptions? options = /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:index/getCallerIdentity:getCallerIdentity", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// This data source provides the identity of the current user. + /// + /// > **NOTE:** Available in 1.65.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var current = AliCloud.GetCallerIdentity.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["currentUserArn"] = current.Apply(getCallerIdentityResult => getCallerIdentityResult.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:index/getCallerIdentity:getCallerIdentity", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetFileCrc64Checksum.cs b/sdk/dotnet/GetFileCrc64Checksum.cs index 9c7236bbbb..5f6879fd1c 100644 --- a/sdk/dotnet/GetFileCrc64Checksum.cs +++ b/sdk/dotnet/GetFileCrc64Checksum.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetFileCrc64ChecksumA /// public static Output Invoke(GetFileCrc64ChecksumInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:index/getFileCrc64Checksum:getFileCrc64Checksum", args ?? new GetFileCrc64ChecksumInvokeArgs(), options.WithDefaults()); + + /// + /// This data source compute file crc64 checksum. + /// + /// > **NOTE:** Available in 1.59.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.GetFileCrc64Checksum.Invoke(new() + /// { + /// Filename = "exampleFileName", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["fileCrc64Checksum"] = defualt.Checksum, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetFileCrc64ChecksumInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:index/getFileCrc64Checksum:getFileCrc64Checksum", args ?? new GetFileCrc64ChecksumInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetMscSubContactVerificationMessage.cs b/sdk/dotnet/GetMscSubContactVerificationMessage.cs index 100721bdff..70ad7b297b 100644 --- a/sdk/dotnet/GetMscSubContactVerificationMessage.cs +++ b/sdk/dotnet/GetMscSubContactVerificationMessage.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetMsc /// public static Output Invoke(GetMscSubContactVerificationMessageInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:index/getMscSubContactVerificationMessage:getMscSubContactVerificationMessage", args ?? new GetMscSubContactVerificationMessageInvokeArgs(), options.WithDefaults()); + + /// + /// > **NOTE:** Available in v1.156.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var defaultMscSubContract = new AliCloud.MscSubContract("default", new() + /// { + /// ContactName = "example_value", + /// Position = "CEO", + /// Email = "123@163.com", + /// Mobile = "153xxxxx906", + /// }); + /// + /// var @default = AliCloud.GetMscSubContactVerificationMessage.Invoke(new() + /// { + /// ContactId = defaultMscSubContract.Id, + /// Type = 1, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetMscSubContactVerificationMessageInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:index/getMscSubContactVerificationMessage:getMscSubContactVerificationMessage", args ?? new GetMscSubContactVerificationMessageInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetMscSubContacts.cs b/sdk/dotnet/GetMscSubContacts.cs index 4321460bbe..450b3d8abe 100644 --- a/sdk/dotnet/GetMscSubContacts.cs +++ b/sdk/dotnet/GetMscSubContacts.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetMscSubContactsArgs? a /// public static Output Invoke(GetMscSubContactsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:index/getMscSubContacts:getMscSubContacts", args ?? new GetMscSubContactsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Message Center Contacts of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.132.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.GetMscSubContacts.Invoke(); + /// + /// var nameRegex = AliCloud.GetMscSubContacts.Invoke(new() + /// { + /// NameRegex = "^my-Contact", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["mscSubContactId1"] = ids.Apply(getMscSubContactsResult => getMscSubContactsResult.Contacts[0]?.Id), + /// ["mscSubContactId2"] = nameRegex.Apply(getMscSubContactsResult => getMscSubContactsResult.Contacts[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetMscSubContactsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:index/getMscSubContacts:getMscSubContacts", args ?? new GetMscSubContactsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetMscSubSubscriptions.cs b/sdk/dotnet/GetMscSubSubscriptions.cs index 32fac6db80..89045e1d4e 100644 --- a/sdk/dotnet/GetMscSubSubscriptions.cs +++ b/sdk/dotnet/GetMscSubSubscriptions.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetMscSubSubscripti /// public static Output Invoke(GetMscSubSubscriptionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:index/getMscSubSubscriptions:getMscSubSubscriptions", args ?? new GetMscSubSubscriptionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Message Center Subscriptions of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.135.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.GetMscSubSubscriptions.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["mscSubSubscriptionId1"] = @default.Apply(@default => @default.Apply(getMscSubSubscriptionsResult => getMscSubSubscriptionsResult.Subscriptions[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetMscSubSubscriptionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:index/getMscSubSubscriptions:getMscSubSubscriptions", args ?? new GetMscSubSubscriptionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetMscSubWebhooks.cs b/sdk/dotnet/GetMscSubWebhooks.cs index c727d33e8a..04230e2ab1 100644 --- a/sdk/dotnet/GetMscSubWebhooks.cs +++ b/sdk/dotnet/GetMscSubWebhooks.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetMscSubWebhooksArgs? a /// public static Output Invoke(GetMscSubWebhooksInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:index/getMscSubWebhooks:getMscSubWebhooks", args ?? new GetMscSubWebhooksInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Msc Sub Webhooks of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.141.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.GetMscSubWebhooks.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.GetMscSubWebhooks.Invoke(new() + /// { + /// NameRegex = "^my-Webhook", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["mscSubWebhookId1"] = ids.Apply(getMscSubWebhooksResult => getMscSubWebhooksResult.Webhooks[0]?.Id), + /// ["mscSubWebhookId2"] = nameRegex.Apply(getMscSubWebhooksResult => getMscSubWebhooksResult.Webhooks[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetMscSubWebhooksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:index/getMscSubWebhooks:getMscSubWebhooks", args ?? new GetMscSubWebhooksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetRegions.cs b/sdk/dotnet/GetRegions.cs index 942cf71db2..124b961560 100644 --- a/sdk/dotnet/GetRegions.cs +++ b/sdk/dotnet/GetRegions.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetRegionsArgs? args = null, In /// public static Output Invoke(GetRegionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:index/getRegions:getRegions", args ?? new GetRegionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Alibaba Cloud regions. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var currentRegionDs = AliCloud.GetRegions.Invoke(new() + /// { + /// Current = true, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["currentRegionId"] = currentRegionDs.Apply(getRegionsResult => getRegionsResult.Regions[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRegionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:index/getRegions:getRegions", args ?? new GetRegionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetZones.cs b/sdk/dotnet/GetZones.cs index 914620abce..71629fc256 100644 --- a/sdk/dotnet/GetZones.cs +++ b/sdk/dotnet/GetZones.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:index/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides availability zones that can be accessed by an Alibaba Cloud account within the region configured in the provider. + /// + /// + /// > **NOTE:** If one zone is sold out, it will not be exported. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var zonesDs = AliCloud.GetZones.Invoke(new() + /// { + /// AvailableInstanceType = "ecs.n4.large", + /// AvailableDiskCategory = "cloud_ssd", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:index/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Governance/GetBaselines.cs b/sdk/dotnet/Governance/GetBaselines.cs index 1f910354b2..bed123024d 100644 --- a/sdk/dotnet/Governance/GetBaselines.cs +++ b/sdk/dotnet/Governance/GetBaselines.cs @@ -156,6 +156,79 @@ public static Task InvokeAsync(GetBaselinesArgs? args = null /// public static Output Invoke(GetBaselinesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:governance/getBaselines:getBaselines", args ?? new GetBaselinesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Governance Baseline available to the user.[What is Baseline](https://next.api.aliyun.com/document/governance/2021-01-20/CreateAccountFactoryBaseline) + /// + /// > **NOTE:** Available since v1.228.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using System.Text.Json; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// using Random = Pulumi.Random; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "terraform_example"; + /// var defaultInteger = new Random.Index.Integer("default", new() + /// { + /// Min = 10000, + /// Max = 99999, + /// }); + /// + /// var itemPasswordPolicy = config.Get("itemPasswordPolicy") ?? "ACS-BP_ACCOUNT_FACTORY_RAM_USER_PASSWORD_POLICY"; + /// var itemServices = config.Get("itemServices") ?? "ACS-BP_ACCOUNT_FACTORY_SUBSCRIBE_SERVICES"; + /// var itemRamSecurity = config.Get("itemRamSecurity") ?? "ACS-BP_ACCOUNT_FACTORY_RAM_SECURITY_PREFERENCE"; + /// var defaultBaseline = new AliCloud.Governance.Baseline("default", new() + /// { + /// BaselineItems = new[] + /// { + /// new AliCloud.Governance.Inputs.BaselineBaselineItemArgs + /// { + /// Version = "1.0", + /// Name = itemPasswordPolicy, + /// Config = JsonSerializer.Serialize(new Dictionary<string, object?> + /// { + /// ["MinimumPasswordLength"] = 8, + /// ["RequireLowercaseCharacters"] = true, + /// ["RequireUppercaseCharacters"] = true, + /// ["RequireNumbers"] = true, + /// ["RequireSymbols"] = true, + /// ["MaxPasswordAge"] = 0, + /// ["HardExpiry"] = false, + /// ["PasswordReusePrevention"] = 0, + /// ["MaxLoginAttempts"] = 0, + /// }), + /// }, + /// }, + /// Description = name, + /// BaselineName = $"{name}-{defaultInteger.Result}", + /// }); + /// + /// var @default = AliCloud.Governance.GetBaselines.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultBaseline.Id, + /// }, + /// NameRegex = defaultBaseline.BaselineName, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudGovernanceBaselineExampleId"] = @default.Apply(@default => @default.Apply(getBaselinesResult => getBaselinesResult.Baselines[0]?.BaselineId)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBaselinesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:governance/getBaselines:getBaselines", args ?? new GetBaselinesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Gpdb/GetAccounts.cs b/sdk/dotnet/Gpdb/GetAccounts.cs index e40060044e..06c207c15c 100644 --- a/sdk/dotnet/Gpdb/GetAccounts.cs +++ b/sdk/dotnet/Gpdb/GetAccounts.cs @@ -98,6 +98,50 @@ public static Task InvokeAsync(GetAccountsArgs args, InvokeOp /// public static Output Invoke(GetAccountsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:gpdb/getAccounts:getAccounts", args ?? new GetAccountsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Gpdb Accounts of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.142.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Gpdb.GetAccounts.Invoke(new() + /// { + /// DbInstanceId = "example_value", + /// Ids = new[] + /// { + /// "my-Account-1", + /// "my-Account-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Gpdb.GetAccounts.Invoke(new() + /// { + /// DbInstanceId = "example_value", + /// NameRegex = "^my-Account", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["gpdbAccountId1"] = ids.Apply(getAccountsResult => getAccountsResult.Accounts[0]?.Id), + /// ["gpdbAccountId2"] = nameRegex.Apply(getAccountsResult => getAccountsResult.Accounts[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAccountsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:gpdb/getAccounts:getAccounts", args ?? new GetAccountsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Gpdb/GetDataBackups.cs b/sdk/dotnet/Gpdb/GetDataBackups.cs index 413b245ebb..ee6180d294 100644 --- a/sdk/dotnet/Gpdb/GetDataBackups.cs +++ b/sdk/dotnet/Gpdb/GetDataBackups.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetDataBackupsArgs args, In /// public static Output Invoke(GetDataBackupsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:gpdb/getDataBackups:getDataBackups", args ?? new GetDataBackupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Gpdb Data Backup available to the user.[What is Data Backup](https://www.alibabacloud.com/help/en/) + /// + /// > **NOTE:** Available since v1.231.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Gpdb.GetInstances.Invoke(new() + /// { + /// NameRegex = "^default-NODELETING$", + /// }); + /// + /// var defaultGetDataBackups = AliCloud.Gpdb.GetDataBackups.Invoke(new() + /// { + /// DbInstanceId = @default.Apply(getInstancesResult => getInstancesResult.Ids[0]), + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudGpdbDataBackupExampleId"] = defaultGetDataBackups.Apply(getDataBackupsResult => getDataBackupsResult.Backups[0]?.DbInstanceId), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDataBackupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:gpdb/getDataBackups:getDataBackups", args ?? new GetDataBackupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Gpdb/GetDbInstancePlans.cs b/sdk/dotnet/Gpdb/GetDbInstancePlans.cs index 7fa5408376..9984db75d9 100644 --- a/sdk/dotnet/Gpdb/GetDbInstancePlans.cs +++ b/sdk/dotnet/Gpdb/GetDbInstancePlans.cs @@ -96,6 +96,49 @@ public static Task InvokeAsync(GetDbInstancePlansArgs /// public static Output Invoke(GetDbInstancePlansInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:gpdb/getDbInstancePlans:getDbInstancePlans", args ?? new GetDbInstancePlansInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Gpdb Db Instance Plans of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.189.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Gpdb.GetDbInstancePlans.Invoke(new() + /// { + /// DbInstanceId = "example_value", + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Gpdb.GetDbInstancePlans.Invoke(new() + /// { + /// DbInstanceId = "example_value", + /// NameRegex = "^my-DBInstancePlan", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["gpdbDbInstancePlanId1"] = ids.Apply(getDbInstancePlansResult => getDbInstancePlansResult.Plans[0]?.Id), + /// ["gpdbDbInstancePlanId2"] = nameRegex.Apply(getDbInstancePlansResult => getDbInstancePlansResult.Plans[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDbInstancePlansInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:gpdb/getDbInstancePlans:getDbInstancePlans", args ?? new GetDbInstancePlansInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Gpdb/GetInstances.cs b/sdk/dotnet/Gpdb/GetInstances.cs index 0ad3d09143..44be61b153 100644 --- a/sdk/dotnet/Gpdb/GetInstances.cs +++ b/sdk/dotnet/Gpdb/GetInstances.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:gpdb/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the AnalyticDB for PostgreSQL instances of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in 1.47.0+ + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Gpdb.GetInstances.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["gpdbDbInstanceId1"] = ids.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:gpdb/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Gpdb/GetLogBackups.cs b/sdk/dotnet/Gpdb/GetLogBackups.cs index 33f514f784..51b5975434 100644 --- a/sdk/dotnet/Gpdb/GetLogBackups.cs +++ b/sdk/dotnet/Gpdb/GetLogBackups.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetLogBackupsArgs args, Invo /// public static Output Invoke(GetLogBackupsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:gpdb/getLogBackups:getLogBackups", args ?? new GetLogBackupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Gpdb Logbackup available to the user.[What is Log Backup](https://www.alibabacloud.com/help/en/) + /// + /// > **NOTE:** Available since v1.231.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Gpdb.GetInstances.Invoke(new() + /// { + /// NameRegex = "^default-NODELETING$", + /// }); + /// + /// var defaultGetLogBackups = AliCloud.Gpdb.GetLogBackups.Invoke(new() + /// { + /// StartTime = "2022-12-12T02:00Z", + /// EndTime = "2024-12-12T02:00Z", + /// DbInstanceId = @default.Apply(getInstancesResult => getInstancesResult.Ids[0]), + /// Ids = new[] + /// { + /// @default.Apply(getInstancesResult => getInstancesResult.Ids[0]), + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudGpdbLogbackupExampleId"] = defaultGetLogBackups.Apply(getLogBackupsResult => getLogBackupsResult.Logbackups[0]?.DbInstanceId), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetLogBackupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:gpdb/getLogBackups:getLogBackups", args ?? new GetLogBackupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Gpdb/GetZones.cs b/sdk/dotnet/Gpdb/GetZones.cs index badf1ca73c..07482a97a5 100644 --- a/sdk/dotnet/Gpdb/GetZones.cs +++ b/sdk/dotnet/Gpdb/GetZones.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:gpdb/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides availability zones for Gpdb that can be accessed by an Alibaba Cloud account within the region configured in the provider. + /// + /// > **NOTE:** Available in v1.73.0+. + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:gpdb/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GraphDatabase/GetDbInstances.cs b/sdk/dotnet/GraphDatabase/GetDbInstances.cs index 8c9b91cfd1..468d9d3671 100644 --- a/sdk/dotnet/GraphDatabase/GetDbInstances.cs +++ b/sdk/dotnet/GraphDatabase/GetDbInstances.cs @@ -120,6 +120,61 @@ public static Task InvokeAsync(GetDbInstancesArgs? args = /// public static Output Invoke(GetDbInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:graphdatabase/getDbInstances:getDbInstances", args ?? new GetDbInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Graph Database Db Instances of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.136.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.GraphDatabase.GetDbInstances.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var status = AliCloud.GraphDatabase.GetDbInstances.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// Status = "Running", + /// }); + /// + /// var description = AliCloud.GraphDatabase.GetDbInstances.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// DbInstanceDescription = "example_value", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["graphDatabaseDbInstanceId1"] = ids.Apply(getDbInstancesResult => getDbInstancesResult.Instances[0]?.Id), + /// ["graphDatabaseDbInstanceId2"] = status.Apply(getDbInstancesResult => getDbInstancesResult.Instances[0]?.Id), + /// ["graphDatabaseDbInstanceId3"] = description.Apply(getDbInstancesResult => getDbInstancesResult.Instances[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDbInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:graphdatabase/getDbInstances:getDbInstances", args ?? new GetDbInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Gwlb/GetZones.cs b/sdk/dotnet/Gwlb/GetZones.cs index 1596ee1b8e..03829e1145 100644 --- a/sdk/dotnet/Gwlb/GetZones.cs +++ b/sdk/dotnet/Gwlb/GetZones.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:gwlb/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Gwlb Zone available to the user.[What is Zone](https://www.alibabacloud.com/help/en/) + /// + /// > **NOTE:** Available since v1.236.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Gwlb.GetZones.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudGwlbZoneExampleId"] = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:gwlb/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Hbase/GetInstanceTypes.cs b/sdk/dotnet/Hbase/GetInstanceTypes.cs index 4e42568956..c71f8455a0 100644 --- a/sdk/dotnet/Hbase/GetInstanceTypes.cs +++ b/sdk/dotnet/Hbase/GetInstanceTypes.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetInstanceTypesArgs? arg /// public static Output Invoke(GetInstanceTypesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbase/getInstanceTypes:getInstanceTypes", args ?? new GetInstanceTypesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides availability instance_types for HBase that can be accessed by an Alibaba Cloud account within the region configured in the provider. + /// + /// > **NOTE:** Available since v1.106.0. + /// + public static Output Invoke(GetInstanceTypesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbase/getInstanceTypes:getInstanceTypes", args ?? new GetInstanceTypesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Hbase/GetInstances.cs b/sdk/dotnet/Hbase/GetInstances.cs index 08b6df347e..f65d33c0bb 100644 --- a/sdk/dotnet/Hbase/GetInstances.cs +++ b/sdk/dotnet/Hbase/GetInstances.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbase/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// The `alicloud.hbase.getInstances` data source provides a collection of HBase instances available in Alicloud account. + /// Filters support regular expression for the instance name, ids or availability_zone. + /// + /// > **NOTE:** Available in 1.67.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var hbase = AliCloud.Hbase.GetInstances.Invoke(new() + /// { + /// NameRegex = "tf_testAccHBase", + /// AvailabilityZone = "cn-shenzhen-b", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbase/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Hbase/GetZones.cs b/sdk/dotnet/Hbase/GetZones.cs index 41646d6784..a3bc6c629b 100644 --- a/sdk/dotnet/Hbase/GetZones.cs +++ b/sdk/dotnet/Hbase/GetZones.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbase/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides availability zones for HBase that can be accessed by an Alibaba Cloud account within the region configured in the provider. + /// + /// > **NOTE:** Available in v1.73.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var zonesIds = AliCloud.Hbase.GetZones.Invoke(); + /// + /// var hbase = new AliCloud.Hbase.Instance("hbase", new() + /// { + /// ZoneId = zonesIds.Apply(getZonesResult => getZonesResult.Zones[0]?.Id), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbase/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Hbr/GetBackupJobs.cs b/sdk/dotnet/Hbr/GetBackupJobs.cs index 76ea6479b9..9a7d60ec43 100644 --- a/sdk/dotnet/Hbr/GetBackupJobs.cs +++ b/sdk/dotnet/Hbr/GetBackupJobs.cs @@ -220,6 +220,111 @@ public static Task InvokeAsync(GetBackupJobsArgs args, Invo /// public static Output Invoke(GetBackupJobsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getBackupJobs:getBackupJobs", args ?? new GetBackupJobsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Hbr Backup Jobs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.138.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Hbr.GetEcsBackupPlans.Invoke(new() + /// { + /// NameRegex = "plan-name", + /// }); + /// + /// var defaultGetBackupJobs = AliCloud.Hbr.GetBackupJobs.Invoke(new() + /// { + /// SourceType = "ECS_FILE", + /// Filters = new[] + /// { + /// new AliCloud.Hbr.Inputs.GetBackupJobsFilterInputArgs + /// { + /// Key = "VaultId", + /// Operator = "IN", + /// Values = new[] + /// { + /// @default.Apply(getEcsBackupPlansResult => getEcsBackupPlansResult.Plans[0]?.VaultId), + /// }, + /// }, + /// new AliCloud.Hbr.Inputs.GetBackupJobsFilterInputArgs + /// { + /// Key = "InstanceId", + /// Operator = "IN", + /// Values = new[] + /// { + /// @default.Apply(getEcsBackupPlansResult => getEcsBackupPlansResult.Plans[0]?.InstanceId), + /// }, + /// }, + /// new AliCloud.Hbr.Inputs.GetBackupJobsFilterInputArgs + /// { + /// Key = "CompleteTime", + /// Operator = "BETWEEN", + /// Values = new[] + /// { + /// "2021-08-23T14:17:15CST", + /// "2021-08-24T14:17:15CST", + /// }, + /// }, + /// }, + /// }); + /// + /// var example = AliCloud.Hbr.GetBackupJobs.Invoke(new() + /// { + /// SourceType = "ECS_FILE", + /// Status = "COMPLETE", + /// Filters = new[] + /// { + /// new AliCloud.Hbr.Inputs.GetBackupJobsFilterInputArgs + /// { + /// Key = "VaultId", + /// Operator = "IN", + /// Values = new[] + /// { + /// @default.Apply(getEcsBackupPlansResult => getEcsBackupPlansResult.Plans[0]?.VaultId), + /// }, + /// }, + /// new AliCloud.Hbr.Inputs.GetBackupJobsFilterInputArgs + /// { + /// Key = "InstanceId", + /// Operator = "IN", + /// Values = new[] + /// { + /// @default.Apply(getEcsBackupPlansResult => getEcsBackupPlansResult.Plans[0]?.InstanceId), + /// }, + /// }, + /// new AliCloud.Hbr.Inputs.GetBackupJobsFilterInputArgs + /// { + /// Key = "CompleteTime", + /// Operator = "LESS_THAN", + /// Values = new[] + /// { + /// "2021-10-20T20:20:20CST", + /// }, + /// }, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudHbrBackupJobsDefault1"] = defaultGetBackupJobs.Apply(getBackupJobsResult => getBackupJobsResult.Jobs[0]?.Id), + /// ["alicloudHbrBackupJobsExample1"] = example.Apply(getBackupJobsResult => getBackupJobsResult.Jobs[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBackupJobsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getBackupJobs:getBackupJobs", args ?? new GetBackupJobsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Hbr/GetEcsBackupClients.cs b/sdk/dotnet/Hbr/GetEcsBackupClients.cs index c6ab897f44..686832981a 100644 --- a/sdk/dotnet/Hbr/GetEcsBackupClients.cs +++ b/sdk/dotnet/Hbr/GetEcsBackupClients.cs @@ -100,6 +100,51 @@ public static Task InvokeAsync(GetEcsBackupClientsArg /// public static Output Invoke(GetEcsBackupClientsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getEcsBackupClients:getEcsBackupClients", args ?? new GetEcsBackupClientsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Hbr Ecs File Backup Clients of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.132.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Ecs.GetInstances.Invoke(new() + /// { + /// NameRegex = "ecs_instance_name", + /// Status = "Running", + /// }); + /// + /// var ids = AliCloud.Hbr.GetEcsBackupClients.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAlicloudHbrEcsBackupClient.Id, + /// }, + /// InstanceIds = new[] + /// { + /// defaultAlicloudHbrEcsBackupClient.InstanceId, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["hbrEcsBackupClientId1"] = ids.Apply(getEcsBackupClientsResult => getEcsBackupClientsResult.Clients[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEcsBackupClientsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getEcsBackupClients:getEcsBackupClients", args ?? new GetEcsBackupClientsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Hbr/GetEcsBackupPlans.cs b/sdk/dotnet/Hbr/GetEcsBackupPlans.cs index dfad75d05a..9742ae7775 100644 --- a/sdk/dotnet/Hbr/GetEcsBackupPlans.cs +++ b/sdk/dotnet/Hbr/GetEcsBackupPlans.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetEcsBackupPlansArgs? a /// public static Output Invoke(GetEcsBackupPlansInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getEcsBackupPlans:getEcsBackupPlans", args ?? new GetEcsBackupPlansInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Hbr EcsBackupPlans of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.132.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Hbr.GetEcsBackupPlans.Invoke(new() + /// { + /// NameRegex = "plan-name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["hbrEcsBackupPlanId"] = ids.Apply(getEcsBackupPlansResult => getEcsBackupPlansResult.Plans[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEcsBackupPlansInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getEcsBackupPlans:getEcsBackupPlans", args ?? new GetEcsBackupPlansInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Hbr/GetHanaBackupClients.cs b/sdk/dotnet/Hbr/GetHanaBackupClients.cs index 9c99c929d0..0f2cacec53 100644 --- a/sdk/dotnet/Hbr/GetHanaBackupClients.cs +++ b/sdk/dotnet/Hbr/GetHanaBackupClients.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetHanaBackupClientsA /// public static Output Invoke(GetHanaBackupClientsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getHanaBackupClients:getHanaBackupClients", args ?? new GetHanaBackupClientsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Hybrid Backup Recovery (HBR) Hana Backup Clients of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in 1.198.0+ + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Hbr.GetHanaBackupClients.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// VaultId = "your_vault_id", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["hbrHanaBackupClientsId1"] = ids.Apply(getHanaBackupClientsResult => getHanaBackupClientsResult.HanaBackupClients[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetHanaBackupClientsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getHanaBackupClients:getHanaBackupClients", args ?? new GetHanaBackupClientsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Hbr/GetHanaBackupPlans.cs b/sdk/dotnet/Hbr/GetHanaBackupPlans.cs index b1abf59d3e..337c0e5ad9 100644 --- a/sdk/dotnet/Hbr/GetHanaBackupPlans.cs +++ b/sdk/dotnet/Hbr/GetHanaBackupPlans.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetHanaBackupPlansArgs /// public static Output Invoke(GetHanaBackupPlansInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getHanaBackupPlans:getHanaBackupPlans", args ?? new GetHanaBackupPlansInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Hbr Hana Backup Plans of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.179.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Hbr.GetHanaBackupPlans.Invoke(new() + /// { + /// ClusterId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["hbrHanaBackupPlanId1"] = ids.Apply(getHanaBackupPlansResult => getHanaBackupPlansResult.Plans[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetHanaBackupPlansInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getHanaBackupPlans:getHanaBackupPlans", args ?? new GetHanaBackupPlansInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Hbr/GetHanaInstances.cs b/sdk/dotnet/Hbr/GetHanaInstances.cs index 219f0bec38..5d66bf96af 100644 --- a/sdk/dotnet/Hbr/GetHanaInstances.cs +++ b/sdk/dotnet/Hbr/GetHanaInstances.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetHanaInstancesArgs? arg /// public static Output Invoke(GetHanaInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getHanaInstances:getHanaInstances", args ?? new GetHanaInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Hbr Hana Instances of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.178.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Hbr.GetHanaInstances.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["hbrHanaInstanceId1"] = ids.Apply(getHanaInstancesResult => getHanaInstancesResult.Instances[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetHanaInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getHanaInstances:getHanaInstances", args ?? new GetHanaInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Hbr/GetNasBackupPlans.cs b/sdk/dotnet/Hbr/GetNasBackupPlans.cs index 82302fd2fd..4f8550360e 100644 --- a/sdk/dotnet/Hbr/GetNasBackupPlans.cs +++ b/sdk/dotnet/Hbr/GetNasBackupPlans.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetNasBackupPlansArgs? a /// public static Output Invoke(GetNasBackupPlansInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getNasBackupPlans:getNasBackupPlans", args ?? new GetNasBackupPlansInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Hbr NasBackupPlans of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.132.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Hbr.GetNasBackupPlans.Invoke(new() + /// { + /// NameRegex = "^my-NasBackupPlan", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["hbrNasBackupPlanId"] = ids.Apply(getNasBackupPlansResult => getNasBackupPlansResult.Plans[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetNasBackupPlansInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getNasBackupPlans:getNasBackupPlans", args ?? new GetNasBackupPlansInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Hbr/GetOssBackupPlans.cs b/sdk/dotnet/Hbr/GetOssBackupPlans.cs index 22890de11d..252c2141a8 100644 --- a/sdk/dotnet/Hbr/GetOssBackupPlans.cs +++ b/sdk/dotnet/Hbr/GetOssBackupPlans.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetOssBackupPlansArgs? a /// public static Output Invoke(GetOssBackupPlansInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getOssBackupPlans:getOssBackupPlans", args ?? new GetOssBackupPlansInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Hbr OssBackupPlans of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.131.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Hbr.GetOssBackupPlans.Invoke(new() + /// { + /// NameRegex = "^my-OssBackupPlan", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["hbrOssBackupPlanId"] = ids.Apply(getOssBackupPlansResult => getOssBackupPlansResult.Plans[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetOssBackupPlansInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getOssBackupPlans:getOssBackupPlans", args ?? new GetOssBackupPlansInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Hbr/GetOtsBackupPlans.cs b/sdk/dotnet/Hbr/GetOtsBackupPlans.cs index a22eb1971b..afa75ec82b 100644 --- a/sdk/dotnet/Hbr/GetOtsBackupPlans.cs +++ b/sdk/dotnet/Hbr/GetOtsBackupPlans.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetOtsBackupPlansArgs? a /// public static Output Invoke(GetOtsBackupPlansInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getOtsBackupPlans:getOtsBackupPlans", args ?? new GetOtsBackupPlansInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Hbr OtsBackupPlans of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.163.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Hbr.GetOtsBackupPlans.Invoke(new() + /// { + /// NameRegex = "^my-otsBackupPlan", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["hbrOtsBackupPlanId"] = plans[0].Id, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetOtsBackupPlansInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getOtsBackupPlans:getOtsBackupPlans", args ?? new GetOtsBackupPlansInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Hbr/GetOtsSnapshots.cs b/sdk/dotnet/Hbr/GetOtsSnapshots.cs index 4f03bbe0b9..73891ce82e 100644 --- a/sdk/dotnet/Hbr/GetOtsSnapshots.cs +++ b/sdk/dotnet/Hbr/GetOtsSnapshots.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetOtsSnapshotsArgs? args /// public static Output Invoke(GetOtsSnapshotsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getOtsSnapshots:getOtsSnapshots", args ?? new GetOtsSnapshotsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Hbr Ots Snapshots of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.164.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var snapshots = AliCloud.Hbr.GetOtsSnapshots.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetOtsSnapshotsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getOtsSnapshots:getOtsSnapshots", args ?? new GetOtsSnapshotsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Hbr/GetReplicationVaultRegions.cs b/sdk/dotnet/Hbr/GetReplicationVaultRegions.cs index 0bdac5fa58..a1deb790c8 100644 --- a/sdk/dotnet/Hbr/GetReplicationVaultRegions.cs +++ b/sdk/dotnet/Hbr/GetReplicationVaultRegions.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetReplicationV /// public static Output Invoke(GetReplicationVaultRegionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getReplicationVaultRegions:getReplicationVaultRegions", args ?? new GetReplicationVaultRegionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the HBR Replication Vault Regions of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.152.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Hbr.GetReplicationVaultRegions.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["hbrReplicationVaultRegionRegionId1"] = @default.Apply(@default => @default.Apply(getReplicationVaultRegionsResult => getReplicationVaultRegionsResult.Regions[0]?.ReplicationRegionId)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetReplicationVaultRegionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getReplicationVaultRegions:getReplicationVaultRegions", args ?? new GetReplicationVaultRegionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Hbr/GetRestoreJobs.cs b/sdk/dotnet/Hbr/GetRestoreJobs.cs index f7ae530d1b..c6644a4c41 100644 --- a/sdk/dotnet/Hbr/GetRestoreJobs.cs +++ b/sdk/dotnet/Hbr/GetRestoreJobs.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetRestoreJobsArgs args, In /// public static Output Invoke(GetRestoreJobsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getRestoreJobs:getRestoreJobs", args ?? new GetRestoreJobsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Hbr Restore Jobs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.133.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Hbr.GetEcsBackupPlans.Invoke(new() + /// { + /// NameRegex = "plan-name", + /// }); + /// + /// var defaultGetRestoreJobs = AliCloud.Hbr.GetRestoreJobs.Invoke(new() + /// { + /// RestoreType = "ECS_FILE", + /// VaultIds = new[] + /// { + /// @default.Apply(getEcsBackupPlansResult => getEcsBackupPlansResult.Plans[0]?.VaultId), + /// }, + /// TargetInstanceIds = new[] + /// { + /// @default.Apply(getEcsBackupPlansResult => getEcsBackupPlansResult.Plans[0]?.InstanceId), + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRestoreJobsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getRestoreJobs:getRestoreJobs", args ?? new GetRestoreJobsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Hbr/GetServerBackupPlans.cs b/sdk/dotnet/Hbr/GetServerBackupPlans.cs index 36c468dd91..55e49804f8 100644 --- a/sdk/dotnet/Hbr/GetServerBackupPlans.cs +++ b/sdk/dotnet/Hbr/GetServerBackupPlans.cs @@ -106,6 +106,54 @@ public static Task InvokeAsync(GetServerBackupPlansA /// public static Output Invoke(GetServerBackupPlansInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getServerBackupPlans:getServerBackupPlans", args ?? new GetServerBackupPlansInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Hbr Server Backup Plans of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.142.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Ecs.GetInstances.Invoke(new() + /// { + /// NameRegex = "no-deleteing-hbr-ecs-server-backup-plan", + /// Status = "Running", + /// }); + /// + /// var ids = AliCloud.Hbr.GetServerBackupPlans.Invoke(new() + /// { + /// Filters = new[] + /// { + /// new AliCloud.Hbr.Inputs.GetServerBackupPlansFilterInputArgs + /// { + /// Key = "instanceId", + /// Values = new[] + /// { + /// @default.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id), + /// }, + /// }, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["hbrServerBackupPlanId1"] = ids.Apply(getServerBackupPlansResult => getServerBackupPlansResult.Plans[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetServerBackupPlansInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getServerBackupPlans:getServerBackupPlans", args ?? new GetServerBackupPlansInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Hbr/GetService.cs b/sdk/dotnet/Hbr/GetService.cs index 18b6b97c9a..eeccf5e165 100644 --- a/sdk/dotnet/Hbr/GetService.cs +++ b/sdk/dotnet/Hbr/GetService.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open HBR service automatically. If the service has been opened, it will return opened. + /// + /// For information about HBR and how to use it, see [What is HBR](https://www.alibabacloud.com/help/en/hybrid-backup-recovery). + /// + /// > **NOTE:** Available since v1.184.0+ + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.Hbr.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Hbr/GetSnapshots.cs b/sdk/dotnet/Hbr/GetSnapshots.cs index 7931079676..19c2115bd5 100644 --- a/sdk/dotnet/Hbr/GetSnapshots.cs +++ b/sdk/dotnet/Hbr/GetSnapshots.cs @@ -146,6 +146,74 @@ public static Task InvokeAsync(GetSnapshotsArgs args, Invoke /// public static Output Invoke(GetSnapshotsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getSnapshots:getSnapshots", args ?? new GetSnapshotsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Hbr Snapshots of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.133.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Hbr.GetEcsBackupPlans.Invoke(new() + /// { + /// NameRegex = "plan-tf-used-dont-delete", + /// }); + /// + /// var defaultGetOssBackupPlans = AliCloud.Hbr.GetOssBackupPlans.Invoke(new() + /// { + /// NameRegex = "plan-tf-used-dont-delete", + /// }); + /// + /// var defaultGetNasBackupPlans = AliCloud.Hbr.GetNasBackupPlans.Invoke(new() + /// { + /// NameRegex = "plan-tf-used-dont-delete", + /// }); + /// + /// var ecsSnapshots = AliCloud.Hbr.GetSnapshots.Invoke(new() + /// { + /// SourceType = "ECS_FILE", + /// VaultId = @default.Apply(getEcsBackupPlansResult => getEcsBackupPlansResult.Plans[0]?.VaultId), + /// InstanceId = @default.Apply(getEcsBackupPlansResult => getEcsBackupPlansResult.Plans[0]?.InstanceId), + /// }); + /// + /// var ossSnapshots = AliCloud.Hbr.GetSnapshots.Invoke(new() + /// { + /// SourceType = "OSS", + /// VaultId = defaultGetOssBackupPlans.Apply(getOssBackupPlansResult => getOssBackupPlansResult.Plans[0]?.VaultId), + /// Bucket = defaultGetOssBackupPlans.Apply(getOssBackupPlansResult => getOssBackupPlansResult.Plans[0]?.Bucket), + /// CompleteTime = "2021-07-20T14:17:15CST,2021-07-24T14:17:15CST", + /// CompleteTimeChecker = "BETWEEN", + /// }); + /// + /// var nasSnapshots = AliCloud.Hbr.GetSnapshots.Invoke(new() + /// { + /// SourceType = "NAS", + /// VaultId = defaultGetNasBackupPlans.Apply(getNasBackupPlansResult => getNasBackupPlansResult.Plans[0]?.VaultId), + /// FileSystemId = defaultGetNasBackupPlans.Apply(getNasBackupPlansResult => getNasBackupPlansResult.Plans[0]?.FileSystemId), + /// CreateTime = defaultGetNasBackupPlans.Apply(getNasBackupPlansResult => getNasBackupPlansResult.Plans[0]?.CreateTime), + /// CompleteTime = "2021-08-23T14:17:15CST", + /// CompleteTimeChecker = "GREATER_THAN_OR_EQUAL", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["hbrSnapshotId1"] = nasSnapshots.Apply(getSnapshotsResult => getSnapshotsResult.Snapshots[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSnapshotsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getSnapshots:getSnapshots", args ?? new GetSnapshotsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Hbr/GetVaults.cs b/sdk/dotnet/Hbr/GetVaults.cs index ef36bf95fe..593fe39954 100644 --- a/sdk/dotnet/Hbr/GetVaults.cs +++ b/sdk/dotnet/Hbr/GetVaults.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetVaultsArgs? args = null, Invo /// public static Output Invoke(GetVaultsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getVaults:getVaults", args ?? new GetVaultsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Hbr Vaults of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.129.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Hbr.GetVaults.Invoke(new() + /// { + /// NameRegex = "^my-Vault", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["hbrVaultId1"] = ids.Apply(getVaultsResult => getVaultsResult.Vaults[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetVaultsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:hbr/getVaults:getVaults", args ?? new GetVaultsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Imm/GetProjects.cs b/sdk/dotnet/Imm/GetProjects.cs index b11b3a477e..83481a991e 100644 --- a/sdk/dotnet/Imm/GetProjects.cs +++ b/sdk/dotnet/Imm/GetProjects.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetProjectsArgs? args = null, /// public static Output Invoke(GetProjectsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:imm/getProjects:getProjects", args ?? new GetProjectsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Intelligent Media Management Projects of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.134.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Imm.GetProjects.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["immProjectId1"] = ids.Apply(getProjectsResult => getProjectsResult.Projects[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetProjectsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:imm/getProjects:getProjects", args ?? new GetProjectsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Imp/GetAppTemplates.cs b/sdk/dotnet/Imp/GetAppTemplates.cs index 4b431eb070..76e6789a83 100644 --- a/sdk/dotnet/Imp/GetAppTemplates.cs +++ b/sdk/dotnet/Imp/GetAppTemplates.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetAppTemplatesArgs? args /// public static Output Invoke(GetAppTemplatesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:imp/getAppTemplates:getAppTemplates", args ?? new GetAppTemplatesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Imp App Templates of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.137.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Imp.GetAppTemplates.Invoke(); + /// + /// var nameRegex = AliCloud.Imp.GetAppTemplates.Invoke(new() + /// { + /// NameRegex = "^my_AppTemplate", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["impAppTemplateId1"] = ids.Apply(getAppTemplatesResult => getAppTemplatesResult.Templates[0]?.Id), + /// ["impAppTemplateId2"] = nameRegex.Apply(getAppTemplatesResult => getAppTemplatesResult.Templates[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAppTemplatesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:imp/getAppTemplates:getAppTemplates", args ?? new GetAppTemplatesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iot/GetDeviceGroups.cs b/sdk/dotnet/Iot/GetDeviceGroups.cs index 1a0ed902ab..a4d9c2e151 100644 --- a/sdk/dotnet/Iot/GetDeviceGroups.cs +++ b/sdk/dotnet/Iot/GetDeviceGroups.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetDeviceGroupsArgs? args /// public static Output Invoke(GetDeviceGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:iot/getDeviceGroups:getDeviceGroups", args ?? new GetDeviceGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Iot Device Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.134.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Iot.GetDeviceGroups.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["iotDeviceGroupId1"] = ids.Apply(getDeviceGroupsResult => getDeviceGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDeviceGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:iot/getDeviceGroups:getDeviceGroups", args ?? new GetDeviceGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iot/GetService.cs b/sdk/dotnet/Iot/GetService.cs index 7726fcaeb4..ea127c9e20 100644 --- a/sdk/dotnet/Iot/GetService.cs +++ b/sdk/dotnet/Iot/GetService.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:iot/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open IOT service automatically. If the service has been opened, it will return opened. + /// + /// For information about IOT and how to use it, see [What is IOT](https://www.alibabacloud.com/help/en/product/30520.htm). + /// + /// > **NOTE:** Available in v1.115.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.Iot.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:iot/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/KVStore/GetAccounts.cs b/sdk/dotnet/KVStore/GetAccounts.cs index 9802a14412..c95ceb713a 100644 --- a/sdk/dotnet/KVStore/GetAccounts.cs +++ b/sdk/dotnet/KVStore/GetAccounts.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetAccountsArgs args, InvokeOp /// public static Output Invoke(GetAccountsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:kvstore/getAccounts:getAccounts", args ?? new GetAccountsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Tair (Redis OSS-Compatible) And Memcache (KVStore) Accounts of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.102.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.KVStore.GetAccounts.Invoke(new() + /// { + /// InstanceId = "example_value", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstKvstoreAccountId"] = example.Apply(getAccountsResult => getAccountsResult.Accounts[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAccountsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:kvstore/getAccounts:getAccounts", args ?? new GetAccountsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/KVStore/GetConnections.cs b/sdk/dotnet/KVStore/GetConnections.cs index 151d594436..44d47c1d5a 100644 --- a/sdk/dotnet/KVStore/GetConnections.cs +++ b/sdk/dotnet/KVStore/GetConnections.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetConnectionsArgs args, In /// public static Output Invoke(GetConnectionsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:kvstore/getConnections:getConnections", args ?? new GetConnectionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source can query the public IP of the specified Tair (Redis OSS-Compatible) And Memcache (KVStore). + /// + /// > **NOTE:** Available in v1.101.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var example = AliCloud.KVStore.GetConnections.Invoke(new() + /// { + /// Ids = "r-wer123456", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["connectionString"] = example.Apply(getConnectionsResult => getConnectionsResult.Connections[0]?.ConnectionString), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetConnectionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:kvstore/getConnections:getConnections", args ?? new GetConnectionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/KVStore/GetInstanceClasses.cs b/sdk/dotnet/KVStore/GetInstanceClasses.cs index cbfd30f626..bba4757bc4 100644 --- a/sdk/dotnet/KVStore/GetInstanceClasses.cs +++ b/sdk/dotnet/KVStore/GetInstanceClasses.cs @@ -88,6 +88,45 @@ public static Task InvokeAsync(GetInstanceClassesArgs /// public static Output Invoke(GetInstanceClassesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:kvstore/getInstanceClasses:getInstanceClasses", args ?? new GetInstanceClassesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance classes resource available info of Alibaba Cloud. + /// + /// > **NOTE:** Available since v1.49.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var resources = AliCloud.GetZones.Invoke(new() + /// { + /// AvailableResourceCreation = "KVStore", + /// }); + /// + /// var resourcesGetInstanceClasses = AliCloud.KVStore.GetInstanceClasses.Invoke(new() + /// { + /// ZoneId = resources.Apply(getZonesResult => getZonesResult.Zones[0]?.Id), + /// InstanceChargeType = "PrePaid", + /// Engine = "Redis", + /// EngineVersion = "5.0", + /// OutputFile = "./classes.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstKvstoreInstanceClass"] = resourcesGetInstanceClasses.Apply(getInstanceClassesResult => getInstanceClassesResult.InstanceClasses), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceClassesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:kvstore/getInstanceClasses:getInstanceClasses", args ?? new GetInstanceClassesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/KVStore/GetInstanceEngines.cs b/sdk/dotnet/KVStore/GetInstanceEngines.cs index 58e6ad9eab..192643a92a 100644 --- a/sdk/dotnet/KVStore/GetInstanceEngines.cs +++ b/sdk/dotnet/KVStore/GetInstanceEngines.cs @@ -88,6 +88,45 @@ public static Task InvokeAsync(GetInstanceEnginesArgs /// public static Output Invoke(GetInstanceEnginesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:kvstore/getInstanceEngines:getInstanceEngines", args ?? new GetInstanceEnginesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance engines resource available info of Alibaba Cloud. + /// + /// > **NOTE:** Available since v1.51.0 + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var resources = AliCloud.GetZones.Invoke(new() + /// { + /// AvailableResourceCreation = "KVStore", + /// }); + /// + /// var resourcesGetInstanceEngines = AliCloud.KVStore.GetInstanceEngines.Invoke(new() + /// { + /// ZoneId = resources.Apply(getZonesResult => getZonesResult.Zones[0]?.Id), + /// InstanceChargeType = "PrePaid", + /// Engine = "Redis", + /// EngineVersion = "5.0", + /// OutputFile = "./engines.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstKvstoreInstanceClass"] = resourcesGetInstanceEngines.Apply(getInstanceEnginesResult => getInstanceEnginesResult.InstanceEngines[0]?.Engine), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceEnginesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:kvstore/getInstanceEngines:getInstanceEngines", args ?? new GetInstanceEnginesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/KVStore/GetInstances.cs b/sdk/dotnet/KVStore/GetInstances.cs index 3e4ac65ab3..f24afcbcff 100644 --- a/sdk/dotnet/KVStore/GetInstances.cs +++ b/sdk/dotnet/KVStore/GetInstances.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:kvstore/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Tair (Redis OSS-Compatible) And Memcache (KVStore) Instances of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.15.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.KVStore.GetInstances.Invoke(new() + /// { + /// NameRegex = "testname", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstInstanceName"] = @default.Apply(@default => @default.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Name)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:kvstore/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/KVStore/GetPermission.cs b/sdk/dotnet/KVStore/GetPermission.cs index 7d0a3d84e8..9c9e667dc4 100644 --- a/sdk/dotnet/KVStore/GetPermission.cs +++ b/sdk/dotnet/KVStore/GetPermission.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetPermissionArgs? args = nu /// public static Output Invoke(GetPermissionInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:kvstore/getPermission:getPermission", args ?? new GetPermissionInvokeArgs(), options.WithDefaults()); + + /// + /// Assigns a RAM role to Tair (Redis OSS-Compatible) And Memcache (KVStore). + /// + /// The log management feature of Tair (Redis OSS-Compatible) And Memcache (KVStore) requires the resources of [Log Service](https://www.alibabacloud.com/help/doc-detail/48869.htm). + /// To use the log management feature of Tair (Redis OSS-Compatible) And Memcache (KVStore), you can call this operation to associate the RAM role named AliyunServiceRoleForKvstore with the Tair (Redis OSS-Compatible) And Memcache (KVStore) instance. + /// For more information, see [Associated RAM roles of Tair (Redis OSS-Compatible) And Memcache (KVStore)](https://www.alibabacloud.com/help/doc-detail/184337.htm) + /// + /// > **NOTE:** Available since v1.128.0 + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.KVStore.GetPermission.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetPermissionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:kvstore/getPermission:getPermission", args ?? new GetPermissionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/KVStore/GetZones.cs b/sdk/dotnet/KVStore/GetZones.cs index 46ff88708b..ff52056fe8 100644 --- a/sdk/dotnet/KVStore/GetZones.cs +++ b/sdk/dotnet/KVStore/GetZones.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:kvstore/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides availability zones for Tair (Redis OSS-Compatible) And Memcache (KVStore) that can be accessed by an Alibaba Cloud account within the region configured in the provider. + /// + /// > **NOTE:** Available since v1.73.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var zonesIds = AliCloud.KVStore.GetZones.Invoke(new() + /// { + /// InstanceChargeType = "PostPaid", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:kvstore/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetAliases.cs b/sdk/dotnet/Kms/GetAliases.cs index 0379e96821..1c33b14f27 100644 --- a/sdk/dotnet/Kms/GetAliases.cs +++ b/sdk/dotnet/Kms/GetAliases.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetAliasesArgs? args = null, In /// public static Output Invoke(GetAliasesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:kms/getAliases:getAliases", args ?? new GetAliasesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of KMS aliases in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in v1.79.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var kmsAliases = AliCloud.Kms.GetAliases.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "d89e8a53-b708-41aa-8c67-6873axxx", + /// }, + /// NameRegex = "alias/tf-testKmsAlias_123", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstKeyId"] = kmsKeysDs.Keys[0].Id, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAliasesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:kms/getAliases:getAliases", args ?? new GetAliasesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetCiphertext.cs b/sdk/dotnet/Kms/GetCiphertext.cs index 5a80b8e412..0bf0883164 100644 --- a/sdk/dotnet/Kms/GetCiphertext.cs +++ b/sdk/dotnet/Kms/GetCiphertext.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetCiphertextArgs args, Invo /// public static Output Invoke(GetCiphertextInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:kms/getCiphertext:getCiphertext", args ?? new GetCiphertextInvokeArgs(), options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var key = new AliCloud.Kms.Key("key", new() + /// { + /// Description = "example key", + /// IsEnabled = true, + /// }); + /// + /// var encrypted = AliCloud.Kms.GetCiphertext.Invoke(new() + /// { + /// KeyId = key.Id, + /// Plaintext = "example", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCiphertextInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:kms/getCiphertext:getCiphertext", args ?? new GetCiphertextInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetKeyVersions.cs b/sdk/dotnet/Kms/GetKeyVersions.cs index 8623ed6cd6..48c0b63eb8 100644 --- a/sdk/dotnet/Kms/GetKeyVersions.cs +++ b/sdk/dotnet/Kms/GetKeyVersions.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetKeyVersionsArgs args, In /// public static Output Invoke(GetKeyVersionsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:kms/getKeyVersions:getKeyVersions", args ?? new GetKeyVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of KMS KeyVersions in an Alibaba Cloud account according to the specified filters. + /// + /// > NOTE: Available in v1.85.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var alicloudKmsKeyVersionsDs = AliCloud.Kms.GetKeyVersions.Invoke(new() + /// { + /// KeyId = "08438c-b4d5-4d05-928c-07b7xxxx", + /// Ids = new[] + /// { + /// "d89e8a53-b708-41aa-8c67-6873axxx", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["allVersions"] = alicloudKmsKeyVersionsDs.Apply(getKeyVersionsResult => getKeyVersionsResult.Versions), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetKeyVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:kms/getKeyVersions:getKeyVersions", args ?? new GetKeyVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetKeys.cs b/sdk/dotnet/Kms/GetKeys.cs index 3b1a70db0e..6cfbce38a6 100644 --- a/sdk/dotnet/Kms/GetKeys.cs +++ b/sdk/dotnet/Kms/GetKeys.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetKeysArgs? args = null, InvokeOp /// public static Output Invoke(GetKeysInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:kms/getKeys:getKeys", args ?? new GetKeysInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of KMS keys in an Alibaba Cloud account according to the specified filters. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var kmsKeysDs = AliCloud.Kms.GetKeys.Invoke(new() + /// { + /// DescriptionRegex = "Hello KMS", + /// OutputFile = "kms_keys.json", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstKeyId"] = kmsKeysDs.Apply(getKeysResult => getKeysResult.Keys[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetKeysInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:kms/getKeys:getKeys", args ?? new GetKeysInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetPlaintext.cs b/sdk/dotnet/Kms/GetPlaintext.cs index 85da8a2ad5..e02cde3dbc 100644 --- a/sdk/dotnet/Kms/GetPlaintext.cs +++ b/sdk/dotnet/Kms/GetPlaintext.cs @@ -90,6 +90,46 @@ public static Task InvokeAsync(GetPlaintextArgs args, Invoke /// public static Output Invoke(GetPlaintextInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:kms/getPlaintext:getPlaintext", args ?? new GetPlaintextInvokeArgs(), options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var key = new AliCloud.Kms.Key("key", new() + /// { + /// Description = "example key", + /// IsEnabled = true, + /// }); + /// + /// // Encrypt plaintext 'example' + /// var encrypted = new AliCloud.Kms.Ciphertext("encrypted", new() + /// { + /// KeyId = key.Id, + /// Plaintext = "example", + /// }); + /// + /// // Decrypt encrypted ciphertext + /// var plaintext = AliCloud.Kms.GetPlaintext.Invoke(new() + /// { + /// CiphertextBlob = encrypted.CiphertextBlob, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["decrypted"] = plaintext.Apply(getPlaintextResult => getPlaintextResult.Plaintext), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetPlaintextInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:kms/getPlaintext:getPlaintext", args ?? new GetPlaintextInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetSecretVersions.cs b/sdk/dotnet/Kms/GetSecretVersions.cs index 182f2aca46..553277b596 100644 --- a/sdk/dotnet/Kms/GetSecretVersions.cs +++ b/sdk/dotnet/Kms/GetSecretVersions.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetSecretVersionsArgs ar /// public static Output Invoke(GetSecretVersionsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:kms/getSecretVersions:getSecretVersions", args ?? new GetSecretVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of KMS Secret Versions in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in v1.88.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var kmsSecretVersionsDs = AliCloud.Kms.GetSecretVersions.Invoke(new() + /// { + /// SecretName = "secret_name", + /// EnableDetails = true, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstSecretData"] = kmsSecretVersionsDs.Apply(getSecretVersionsResult => getSecretVersionsResult.Versions[0]?.SecretData), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSecretVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:kms/getSecretVersions:getSecretVersions", args ?? new GetSecretVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetSecrets.cs b/sdk/dotnet/Kms/GetSecrets.cs index d82fc2b094..7d1d6412e1 100644 --- a/sdk/dotnet/Kms/GetSecrets.cs +++ b/sdk/dotnet/Kms/GetSecrets.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetSecretsArgs? args = null, In /// public static Output Invoke(GetSecretsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:kms/getSecrets:getSecrets", args ?? new GetSecretsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of KMS Secrets in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available since v1.86.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var kmsSecretsDs = AliCloud.Kms.GetSecrets.Invoke(new() + /// { + /// FetchTags = true, + /// NameRegex = "name_regex", + /// Tags = + /// { + /// { "k-aa", "v-aa" }, + /// { "k-bb", "v-bb" }, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstSecretId"] = kmsSecretsDs.Apply(getSecretsResult => getSecretsResult.Secrets[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSecretsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:kms/getSecrets:getSecrets", args ?? new GetSecretsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetService.cs b/sdk/dotnet/Kms/GetService.cs index f8a3413c6a..022e7af195 100644 --- a/sdk/dotnet/Kms/GetService.cs +++ b/sdk/dotnet/Kms/GetService.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:kms/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open KMS service automatically. If the service has been opened, it will return opened. + /// + /// For information about KMS and how to use it, see [What is KMS](https://help.aliyun.com/document_detail/186020.html). + /// + /// > **NOTE:** Available in v1.108.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.Kms.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:kms/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Lindorm/GetInstances.cs b/sdk/dotnet/Lindorm/GetInstances.cs index cd1026def8..8af4b9294f 100644 --- a/sdk/dotnet/Lindorm/GetInstances.cs +++ b/sdk/dotnet/Lindorm/GetInstances.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:lindorm/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Lindorm Instances of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.132.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Lindorm.GetInstances.Invoke(); + /// + /// var nameRegex = AliCloud.Lindorm.GetInstances.Invoke(new() + /// { + /// NameRegex = "^my-Instance", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["lindormInstanceId1"] = ids.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id), + /// ["lindormInstanceId2"] = nameRegex.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:lindorm/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Log/GetAlertResource.cs b/sdk/dotnet/Log/GetAlertResource.cs index 58cb9537ed..2ada127891 100644 --- a/sdk/dotnet/Log/GetAlertResource.cs +++ b/sdk/dotnet/Log/GetAlertResource.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetAlertResourceArgs args /// public static Output Invoke(GetAlertResourceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:log/getAlertResource:getAlertResource", args ?? new GetAlertResourceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can init SLS Alert resources automatically. + /// + /// For information about SLS Alert and how to use it, see [SLS Alert Overview](https://www.alibabacloud.com/help/en/doc-detail/209202.html) + /// + /// > **DEPRECATED:** This resource has been deprecated from version `1.219.0`. Please use new resource alicloud_log_alert_resource. + /// + /// > **NOTE:** Available since v1.161.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var exampleUser = AliCloud.Log.GetAlertResource.Invoke(new() + /// { + /// Type = "user", + /// Lang = "cn", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAlertResourceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:log/getAlertResource:getAlertResource", args ?? new GetAlertResourceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Log/GetProjects.cs b/sdk/dotnet/Log/GetProjects.cs index f04bc2de35..ede65b4eb5 100644 --- a/sdk/dotnet/Log/GetProjects.cs +++ b/sdk/dotnet/Log/GetProjects.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetProjectsArgs? args = null, /// public static Output Invoke(GetProjectsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:log/getProjects:getProjects", args ?? new GetProjectsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Log Projects of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.126.0+. + /// + public static Output Invoke(GetProjectsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:log/getProjects:getProjects", args ?? new GetProjectsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Log/GetService.cs b/sdk/dotnet/Log/GetService.cs index f88f173fe4..bcf089c200 100644 --- a/sdk/dotnet/Log/GetService.cs +++ b/sdk/dotnet/Log/GetService.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:log/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can enable Log service automatically. If the service has been enabled, it will return `Opened`. + /// + /// For information about Log service and how to use it, see [What is Log Service](https://www.alibabacloud.com/help/product/28958.htm). + /// + /// > **NOTE:** Available since v1.96.0 + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.Log.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:log/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Log/GetStores.cs b/sdk/dotnet/Log/GetStores.cs index 943d654d19..cd4a7db159 100644 --- a/sdk/dotnet/Log/GetStores.cs +++ b/sdk/dotnet/Log/GetStores.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetStoresArgs args, InvokeOption /// public static Output Invoke(GetStoresInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:log/getStores:getStores", args ?? new GetStoresInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Log Stores of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.126.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Log.GetStores.Invoke(new() + /// { + /// Project = "the_project_name", + /// Ids = new[] + /// { + /// "the_store_name", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstLogStoreId"] = example.Apply(getStoresResult => getStoresResult.Stores[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetStoresInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:log/getStores:getStores", args ?? new GetStoresInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/MarketPlace/GetProduct.cs b/sdk/dotnet/MarketPlace/GetProduct.cs index 2bcd19ec0a..0875308d27 100644 --- a/sdk/dotnet/MarketPlace/GetProduct.cs +++ b/sdk/dotnet/MarketPlace/GetProduct.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetProductArgs args, InvokeOpti /// public static Output Invoke(GetProductInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:marketplace/getProduct:getProduct", args ?? new GetProductInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Market product item details of Alibaba Cloud. + /// + /// > **NOTE:** Available in 1.69.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.MarketPlace.GetProduct.Invoke(new() + /// { + /// ProductCode = "cmapi022206", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["productName"] = @default.Apply(@default => @default.Apply(getProductResult => getProductResult.Products[0]?.Name)), + /// ["firstProductSkuCode"] = @default.Apply(@default => @default.Apply(getProductResult => getProductResult.Products[0]?.Skuses[0]?.SkuCode)), + /// ["firstProductPackageVersion"] = @default.Apply(@default => @default.Apply(getProductResult => getProductResult.Products[0]?.Skuses[0]?.PackageVersions[0]?.PackageVersion)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetProductInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:marketplace/getProduct:getProduct", args ?? new GetProductInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/MarketPlace/GetProducts.cs b/sdk/dotnet/MarketPlace/GetProducts.cs index d29f8bfbff..73677c1ad6 100644 --- a/sdk/dotnet/MarketPlace/GetProducts.cs +++ b/sdk/dotnet/MarketPlace/GetProducts.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetProductsArgs? args = null, /// public static Output Invoke(GetProductsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:marketplace/getProducts:getProducts", args ?? new GetProductsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Market product items of Alibaba Cloud. + /// + /// > **NOTE:** Available in 1.64.0+ + /// + public static Output Invoke(GetProductsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:marketplace/getProducts:getProducts", args ?? new GetProductsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/MaxCompute/GetProjects.cs b/sdk/dotnet/MaxCompute/GetProjects.cs index d775448684..fd5e1d5055 100644 --- a/sdk/dotnet/MaxCompute/GetProjects.cs +++ b/sdk/dotnet/MaxCompute/GetProjects.cs @@ -90,6 +90,46 @@ public static Task InvokeAsync(GetProjectsArgs? args = null, /// public static Output Invoke(GetProjectsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:maxcompute/getProjects:getProjects", args ?? new GetProjectsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Max Compute Project available to the user.[What is Project](https://www.alibabacloud.com/help/en/maxcompute/) + /// + /// > **NOTE:** Available since v1.196.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "tf_example_acc"; + /// var defaultProject = new AliCloud.MaxCompute.Project("default", new() + /// { + /// DefaultQuota = "默认后付费Quota", + /// ProjectName = name, + /// Comment = name, + /// ProductType = "PayAsYouGo", + /// }); + /// + /// var @default = AliCloud.MaxCompute.GetProjects.Invoke(new() + /// { + /// NameRegex = defaultProject.ProjectName, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudMaxcomputeProjectExampleId"] = @default.Apply(@default => @default.Apply(getProjectsResult => getProjectsResult.Projects[0]?.ProjectName)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetProjectsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:maxcompute/getProjects:getProjects", args ?? new GetProjectsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/MaxCompute/GetService.cs b/sdk/dotnet/MaxCompute/GetService.cs index b2b3546282..ae15bd2625 100644 --- a/sdk/dotnet/MaxCompute/GetService.cs +++ b/sdk/dotnet/MaxCompute/GetService.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:maxcompute/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// > **NOTE:** When you open MaxCompute service, you'd better open [DataWorks service](https://www.alibabacloud.com/help/en/product/72772.htm) as well. + /// + /// Using this data source can open Maxcompute service automatically. If the service has been opened, it will return opened. + /// + /// For information about Maxcompute and how to use it, see [What is Maxcompute](https://www.alibabacloud.com/help/en/product/27797.htm). + /// + /// > **NOTE:** Available in v1.117.0+ + /// + /// > **NOTE:** This datasource has been deprecated since provider version v1.228.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.MaxCompute.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:maxcompute/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Message/GetServiceQueues.cs b/sdk/dotnet/Message/GetServiceQueues.cs index 9c6e1744d9..a8fb845ee8 100644 --- a/sdk/dotnet/Message/GetServiceQueues.cs +++ b/sdk/dotnet/Message/GetServiceQueues.cs @@ -88,6 +88,45 @@ public static Task InvokeAsync(GetServiceQueuesArgs? arg /// public static Output Invoke(GetServiceQueuesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:message/getServiceQueues:getServiceQueues", args ?? new GetServiceQueuesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Message Notification Service Queues of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.188.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Message.GetServiceQueues.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var name = AliCloud.Message.GetServiceQueues.Invoke(new() + /// { + /// QueueName = "tf-example", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["queueId1"] = ids.Apply(getServiceQueuesResult => getServiceQueuesResult.Queues[0]?.Id), + /// ["queueId2"] = name.Apply(getServiceQueuesResult => getServiceQueuesResult.Queues[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetServiceQueuesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:message/getServiceQueues:getServiceQueues", args ?? new GetServiceQueuesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Message/GetServiceSubscriptions.cs b/sdk/dotnet/Message/GetServiceSubscriptions.cs index 0ab2c97f29..386623abb1 100644 --- a/sdk/dotnet/Message/GetServiceSubscriptions.cs +++ b/sdk/dotnet/Message/GetServiceSubscriptions.cs @@ -90,6 +90,46 @@ public static Task InvokeAsync(GetServiceSubscrip /// public static Output Invoke(GetServiceSubscriptionsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:message/getServiceSubscriptions:getServiceSubscriptions", args ?? new GetServiceSubscriptionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Message Notification Service Subscriptions of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.188.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Message.GetServiceSubscriptions.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// TopicName = "tf-example", + /// }); + /// + /// var name = AliCloud.Message.GetServiceSubscriptions.Invoke(new() + /// { + /// TopicName = "tf-example", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["subscriptionId1"] = ids.Apply(getServiceSubscriptionsResult => getServiceSubscriptionsResult.Subscriptions[0]?.Id), + /// ["subscriptionId2"] = name.Apply(getServiceSubscriptionsResult => getServiceSubscriptionsResult.Subscriptions[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetServiceSubscriptionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:message/getServiceSubscriptions:getServiceSubscriptions", args ?? new GetServiceSubscriptionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Message/GetServiceTopics.cs b/sdk/dotnet/Message/GetServiceTopics.cs index 2b02617ee7..409a195e0a 100644 --- a/sdk/dotnet/Message/GetServiceTopics.cs +++ b/sdk/dotnet/Message/GetServiceTopics.cs @@ -88,6 +88,45 @@ public static Task InvokeAsync(GetServiceTopicsArgs? arg /// public static Output Invoke(GetServiceTopicsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:message/getServiceTopics:getServiceTopics", args ?? new GetServiceTopicsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Message Notification Service Topics of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.188.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Message.GetServiceTopics.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var name = AliCloud.Message.GetServiceTopics.Invoke(new() + /// { + /// TopicName = "tf-example", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["topicId1"] = ids.Apply(getServiceTopicsResult => getServiceTopicsResult.Topics[0]?.Id), + /// ["topicId2"] = name.Apply(getServiceTopicsResult => getServiceTopicsResult.Topics[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetServiceTopicsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:message/getServiceTopics:getServiceTopics", args ?? new GetServiceTopicsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Mhub/GetApps.cs b/sdk/dotnet/Mhub/GetApps.cs index 0b025ffe93..51895836fe 100644 --- a/sdk/dotnet/Mhub/GetApps.cs +++ b/sdk/dotnet/Mhub/GetApps.cs @@ -100,6 +100,51 @@ public static Task InvokeAsync(GetAppsArgs args, InvokeOptions? o /// public static Output Invoke(GetAppsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:mhub/getApps:getApps", args ?? new GetAppsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Mhub Apps of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.138.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "example_value"; + /// var @default = new AliCloud.Mhub.App("default", new() + /// { + /// AppName = name, + /// ProductId = defaultAlicloudMhubProduct.Id, + /// PackageName = "com.test.android", + /// Type = "2", + /// }); + /// + /// var ids = AliCloud.Mhub.GetApps.Invoke(); + /// + /// var nameRegex = AliCloud.Mhub.GetApps.Invoke(new() + /// { + /// NameRegex = "^my-App", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["mhubAppId1"] = ids.Apply(getAppsResult => getAppsResult.Apps[0]?.Id), + /// ["mhubAppId2"] = nameRegex.Apply(getAppsResult => getAppsResult.Apps[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAppsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:mhub/getApps:getApps", args ?? new GetAppsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Mhub/GetProducts.cs b/sdk/dotnet/Mhub/GetProducts.cs index ab275e2a34..3736678558 100644 --- a/sdk/dotnet/Mhub/GetProducts.cs +++ b/sdk/dotnet/Mhub/GetProducts.cs @@ -94,6 +94,48 @@ public static Task InvokeAsync(GetProductsArgs? args = null, /// public static Output Invoke(GetProductsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:mhub/getProducts:getProducts", args ?? new GetProductsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Mhub Products of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.138.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "example_value"; + /// var @default = new AliCloud.Mhub.Product("default", new() + /// { + /// ProductName = name, + /// }); + /// + /// var ids = AliCloud.Mhub.GetProducts.Invoke(); + /// + /// var nameRegex = AliCloud.Mhub.GetProducts.Invoke(new() + /// { + /// NameRegex = "^my-Product", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["mhubProductId1"] = ids.Apply(getProductsResult => getProductsResult.Products[0]?.Id), + /// ["mhubProductId2"] = nameRegex.Apply(getProductsResult => getProductsResult.Products[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetProductsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:mhub/getProducts:getProducts", args ?? new GetProductsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Mns/GetQueues.cs b/sdk/dotnet/Mns/GetQueues.cs index a62e2a8323..a86df82a88 100644 --- a/sdk/dotnet/Mns/GetQueues.cs +++ b/sdk/dotnet/Mns/GetQueues.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetQueuesArgs? args = null, Invo /// public static Output Invoke(GetQueuesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:mns/getQueues:getQueues", args ?? new GetQueuesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of MNS queues in an Alibaba Cloud account according to the specified parameters. + /// + /// > **DEPRECATED:** This datasource has been deprecated from version `1.188.0`. Please use new datasource message_service_queues. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var queues = AliCloud.Mns.GetQueues.Invoke(new() + /// { + /// NamePrefix = "tf-", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstQueueId"] = queues.Apply(getQueuesResult => getQueuesResult.Queues[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetQueuesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:mns/getQueues:getQueues", args ?? new GetQueuesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Mns/GetService.cs b/sdk/dotnet/Mns/GetService.cs index f1bd282316..273ea9130b 100644 --- a/sdk/dotnet/Mns/GetService.cs +++ b/sdk/dotnet/Mns/GetService.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:mns/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open MNS service automatically. If the service has been opened, it will return opened. + /// + /// For information about MNS and how to use it, see [What is MNS](https://www.alibabacloud.com/help/en/product/27412.htm). + /// + /// > **NOTE:** Available in v1.118.0+ + /// + /// > **NOTE:** The MNS service is not support in the international site. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.Mns.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:mns/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Mns/GetTopicSubscriptions.cs b/sdk/dotnet/Mns/GetTopicSubscriptions.cs index abb0eb6376..ade8ec9233 100644 --- a/sdk/dotnet/Mns/GetTopicSubscriptions.cs +++ b/sdk/dotnet/Mns/GetTopicSubscriptions.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetTopicSubscription /// public static Output Invoke(GetTopicSubscriptionsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:mns/getTopicSubscriptions:getTopicSubscriptions", args ?? new GetTopicSubscriptionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of MNS topic subscriptions in an Alibaba Cloud account according to the specified parameters. + /// + /// > **DEPRECATED:** This datasource has been deprecated from version `1.188.0`. Please use new datasource message_service_subscriptions. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var subscriptions = AliCloud.Mns.GetTopicSubscriptions.Invoke(new() + /// { + /// TopicName = "topic_name", + /// NamePrefix = "tf-", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstTopicSubscriptionId"] = subscriptions.Apply(getTopicSubscriptionsResult => getTopicSubscriptionsResult.Subscriptions[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTopicSubscriptionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:mns/getTopicSubscriptions:getTopicSubscriptions", args ?? new GetTopicSubscriptionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Mns/GetTopics.cs b/sdk/dotnet/Mns/GetTopics.cs index b5a0e8fedd..e92048c96b 100644 --- a/sdk/dotnet/Mns/GetTopics.cs +++ b/sdk/dotnet/Mns/GetTopics.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetTopicsArgs? args = null, Invo /// public static Output Invoke(GetTopicsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:mns/getTopics:getTopics", args ?? new GetTopicsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of MNS topics in an Alibaba Cloud account according to the specified parameters. + /// + /// > **DEPRECATED:** This datasource has been deprecated from version `1.188.0`. Please use new datasource message_service_topics. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var topics = AliCloud.Mns.GetTopics.Invoke(new() + /// { + /// NamePrefix = "tf-", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstTopicId"] = topics.Apply(getTopicsResult => getTopicsResult.Topics[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTopicsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:mns/getTopics:getTopics", args ?? new GetTopicsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/MongoDB/GetAccounts.cs b/sdk/dotnet/MongoDB/GetAccounts.cs index edc19c95a8..ca95aded8c 100644 --- a/sdk/dotnet/MongoDB/GetAccounts.cs +++ b/sdk/dotnet/MongoDB/GetAccounts.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetAccountsArgs args, InvokeOp /// public static Output Invoke(GetAccountsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:mongodb/getAccounts:getAccounts", args ?? new GetAccountsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Mongodb Accounts of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.148.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.MongoDB.GetAccounts.Invoke(new() + /// { + /// InstanceId = "example_value", + /// AccountName = "root", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["mongodbAccountId1"] = example.Apply(getAccountsResult => getAccountsResult.Accounts[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAccountsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:mongodb/getAccounts:getAccounts", args ?? new GetAccountsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/MongoDB/GetAuditPolicies.cs b/sdk/dotnet/MongoDB/GetAuditPolicies.cs index 41afc9c983..ffe37c1914 100644 --- a/sdk/dotnet/MongoDB/GetAuditPolicies.cs +++ b/sdk/dotnet/MongoDB/GetAuditPolicies.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetAuditPoliciesArgs args /// public static Output Invoke(GetAuditPoliciesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:mongodb/getAuditPolicies:getAuditPolicies", args ?? new GetAuditPoliciesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Mongodb Audit Policies of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.148.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.MongoDB.GetAuditPolicies.Invoke(new() + /// { + /// DbInstanceId = "example_value", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["mongodbAuditPolicyId1"] = example.Apply(getAuditPoliciesResult => getAuditPoliciesResult.Policies[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAuditPoliciesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:mongodb/getAuditPolicies:getAuditPolicies", args ?? new GetAuditPoliciesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/MongoDB/GetInstances.cs b/sdk/dotnet/MongoDB/GetInstances.cs index 4ee1e311ff..d7fce74936 100644 --- a/sdk/dotnet/MongoDB/GetInstances.cs +++ b/sdk/dotnet/MongoDB/GetInstances.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:mongodb/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// The `alicloud.mongodb.getInstances` data source provides a collection of MongoDB instances available in Alicloud account. + /// Filters support regular expression for the instance name, engine or instance type. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var mongo = AliCloud.MongoDB.GetInstances.Invoke(new() + /// { + /// NameRegex = "dds-.+\\d+", + /// InstanceType = "replicate", + /// InstanceClass = "dds.mongo.mid", + /// AvailabilityZone = "eu-central-1a", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:mongodb/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/MongoDB/GetServerlessInstances.cs b/sdk/dotnet/MongoDB/GetServerlessInstances.cs index 6f2e48c7cc..76d945284e 100644 --- a/sdk/dotnet/MongoDB/GetServerlessInstances.cs +++ b/sdk/dotnet/MongoDB/GetServerlessInstances.cs @@ -106,6 +106,54 @@ public static Task InvokeAsync(GetServerlessInstan /// public static Output Invoke(GetServerlessInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:mongodb/getServerlessInstances:getServerlessInstances", args ?? new GetServerlessInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Mongodb Serverless Instances of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.148.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.MongoDB.GetServerlessInstances.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// DbInstanceClass = "example_value", + /// DbInstanceDescription = "example_value", + /// NetworkType = "VPC", + /// ResourceGroupId = "example_value", + /// Status = "Running", + /// VpcId = "example_value", + /// VswitchId = "example_value", + /// ZoneId = "example_value", + /// Tags = + /// { + /// { "Created", "MongodbServerlessInstance" }, + /// { "For", "TF" }, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["mongodbServerlessInstanceId1"] = example.Apply(getServerlessInstancesResult => getServerlessInstancesResult.Instances[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetServerlessInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:mongodb/getServerlessInstances:getServerlessInstances", args ?? new GetServerlessInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/MongoDB/GetShardingNetworkPrivateAddresses.cs b/sdk/dotnet/MongoDB/GetShardingNetworkPrivateAddresses.cs index 7a5f7fc285..04e64690d5 100644 --- a/sdk/dotnet/MongoDB/GetShardingNetworkPrivateAddresses.cs +++ b/sdk/dotnet/MongoDB/GetShardingNetworkPrivateAddresses.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetShar /// public static Output Invoke(GetShardingNetworkPrivateAddressesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:mongodb/getShardingNetworkPrivateAddresses:getShardingNetworkPrivateAddresses", args ?? new GetShardingNetworkPrivateAddressesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Mongodb Sharding Network Private Addresses of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.157.0+. + /// + public static Output Invoke(GetShardingNetworkPrivateAddressesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:mongodb/getShardingNetworkPrivateAddresses:getShardingNetworkPrivateAddresses", args ?? new GetShardingNetworkPrivateAddressesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/MongoDB/GetShardingNetworkPublicAddresses.cs b/sdk/dotnet/MongoDB/GetShardingNetworkPublicAddresses.cs index 3c994fd3af..3251ad3b72 100644 --- a/sdk/dotnet/MongoDB/GetShardingNetworkPublicAddresses.cs +++ b/sdk/dotnet/MongoDB/GetShardingNetworkPublicAddresses.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetShard /// public static Output Invoke(GetShardingNetworkPublicAddressesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:mongodb/getShardingNetworkPublicAddresses:getShardingNetworkPublicAddresses", args ?? new GetShardingNetworkPublicAddressesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Mongodb Sharding Network Public Addresses of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.149.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.MongoDB.GetShardingNetworkPublicAddresses.Invoke(new() + /// { + /// DbInstanceId = "example_value", + /// NodeId = "example_value", + /// Role = "Primary", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["mongodbShardingNetworkPublicAddressDbInstanceId1"] = example.Apply(getShardingNetworkPublicAddressesResult => getShardingNetworkPublicAddressesResult.Addresses[0]?.DbInstanceId), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetShardingNetworkPublicAddressesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:mongodb/getShardingNetworkPublicAddresses:getShardingNetworkPublicAddresses", args ?? new GetShardingNetworkPublicAddressesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/MongoDB/GetZones.cs b/sdk/dotnet/MongoDB/GetZones.cs index 2c87eae0ef..93386e8382 100644 --- a/sdk/dotnet/MongoDB/GetZones.cs +++ b/sdk/dotnet/MongoDB/GetZones.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:mongodb/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides availability zones for mongoDB that can be accessed by an Alibaba Cloud account within the region configured in the provider. + /// + /// > **NOTE:** Available in v1.73.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var zonesIds = AliCloud.MongoDB.GetZones.Invoke(); + /// + /// // Create an mongoDB instance with the first matched zone + /// var mongodb = new AliCloud.MongoDB.Instance("mongodb", new() + /// { + /// ZoneId = zonesIds.Apply(getZonesResult => getZonesResult.Zones[0]?.Id), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:mongodb/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Mse/GetClusters.cs b/sdk/dotnet/Mse/GetClusters.cs index f7a58fcf8b..b8edee2f6f 100644 --- a/sdk/dotnet/Mse/GetClusters.cs +++ b/sdk/dotnet/Mse/GetClusters.cs @@ -154,6 +154,78 @@ public static Task InvokeAsync(GetClustersArgs? args = null, /// public static Output Invoke(GetClustersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:mse/getClusters:getClusters", args ?? new GetClustersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of MSE Clusters in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available since v1.94.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Create resource + /// var example = AliCloud.GetZones.Invoke(new() + /// { + /// AvailableResourceCreation = "VSwitch", + /// }); + /// + /// var exampleNetwork = new AliCloud.Vpc.Network("example", new() + /// { + /// VpcName = "terraform-example", + /// CidrBlock = "172.17.3.0/24", + /// }); + /// + /// var exampleSwitch = new AliCloud.Vpc.Switch("example", new() + /// { + /// VswitchName = "terraform-example", + /// CidrBlock = "172.17.3.0/24", + /// VpcId = exampleNetwork.Id, + /// ZoneId = example.Apply(getZonesResult => getZonesResult.Zones[0]?.Id), + /// }); + /// + /// var exampleCluster = new AliCloud.Mse.Cluster("example", new() + /// { + /// ClusterSpecification = "MSE_SC_1_2_60_c", + /// ClusterType = "Nacos-Ans", + /// ClusterVersion = "NACOS_2_0_0", + /// InstanceCount = 3, + /// NetType = "privatenet", + /// PubNetworkFlow = "1", + /// ConnectionType = "slb", + /// ClusterAliasName = "terraform-example", + /// MseVersion = "mse_pro", + /// VswitchId = exampleSwitch.Id, + /// VpcId = exampleNetwork.Id, + /// }); + /// + /// // Declare the data source + /// var exampleGetClusters = AliCloud.Mse.GetClusters.Invoke(new() + /// { + /// EnableDetails = true, + /// Ids = new[] + /// { + /// exampleCluster.Id, + /// }, + /// Status = "INIT_SUCCESS", + /// NameRegex = exampleCluster.ClusterAliasName, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["instanceId"] = exampleGetClusters.Apply(getClustersResult => getClustersResult.Clusters[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetClustersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:mse/getClusters:getClusters", args ?? new GetClustersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Mse/GetEngineNamespaces.cs b/sdk/dotnet/Mse/GetEngineNamespaces.cs index 7217feef0b..c9c014bdf3 100644 --- a/sdk/dotnet/Mse/GetEngineNamespaces.cs +++ b/sdk/dotnet/Mse/GetEngineNamespaces.cs @@ -162,6 +162,82 @@ public static Task InvokeAsync(GetEngineNamespacesArg /// public static Output Invoke(GetEngineNamespacesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:mse/getEngineNamespaces:getEngineNamespaces", args ?? new GetEngineNamespacesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Mse Engine Namespaces of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.166.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.GetZones.Invoke(new() + /// { + /// AvailableResourceCreation = "VSwitch", + /// }); + /// + /// var exampleNetwork = new AliCloud.Vpc.Network("example", new() + /// { + /// VpcName = "terraform-example", + /// CidrBlock = "172.17.3.0/24", + /// }); + /// + /// var exampleSwitch = new AliCloud.Vpc.Switch("example", new() + /// { + /// VswitchName = "terraform-example", + /// CidrBlock = "172.17.3.0/24", + /// VpcId = exampleNetwork.Id, + /// ZoneId = example.Apply(getZonesResult => getZonesResult.Zones[0]?.Id), + /// }); + /// + /// var exampleCluster = new AliCloud.Mse.Cluster("example", new() + /// { + /// ClusterSpecification = "MSE_SC_1_2_60_c", + /// ClusterType = "Nacos-Ans", + /// ClusterVersion = "NACOS_2_0_0", + /// InstanceCount = 3, + /// NetType = "privatenet", + /// PubNetworkFlow = "1", + /// ConnectionType = "slb", + /// ClusterAliasName = "terraform-example", + /// MseVersion = "mse_pro", + /// VswitchId = exampleSwitch.Id, + /// VpcId = exampleNetwork.Id, + /// }); + /// + /// var exampleEngineNamespace = new AliCloud.Mse.EngineNamespace("example", new() + /// { + /// InstanceId = exampleCluster.Id, + /// NamespaceShowName = "terraform-example", + /// NamespaceId = "terraform-example", + /// NamespaceDesc = "description", + /// }); + /// + /// // Declare the data source + /// var exampleGetEngineNamespaces = AliCloud.Mse.GetEngineNamespaces.Invoke(new() + /// { + /// InstanceId = exampleEngineNamespace.InstanceId, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["mseEngineNamespaceIdPublic"] = exampleGetEngineNamespaces.Apply(getEngineNamespacesResult => getEngineNamespacesResult.Namespaces[0]?.Id), + /// ["mseEngineNamespaceIdExample"] = exampleGetEngineNamespaces.Apply(getEngineNamespacesResult => getEngineNamespacesResult.Namespaces[1]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEngineNamespacesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:mse/getEngineNamespaces:getEngineNamespaces", args ?? new GetEngineNamespacesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Mse/GetGateways.cs b/sdk/dotnet/Mse/GetGateways.cs index 118a59dd68..a87401f395 100644 --- a/sdk/dotnet/Mse/GetGateways.cs +++ b/sdk/dotnet/Mse/GetGateways.cs @@ -104,6 +104,53 @@ public static Task InvokeAsync(GetGatewaysArgs? args = null, /// public static Output Invoke(GetGatewaysInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:mse/getGateways:getGateways", args ?? new GetGatewaysInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Mse Gateways of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.157.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Mse.GetGateways.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Mse.GetGateways.Invoke(new() + /// { + /// NameRegex = "^my-Gateway", + /// }); + /// + /// var status = AliCloud.Mse.GetGateways.Invoke(new() + /// { + /// Status = "2", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["mseGatewayId1"] = ids.Apply(getGatewaysResult => getGatewaysResult.Gateways[0]?.Id), + /// ["mseGatewayId2"] = nameRegex.Apply(getGatewaysResult => getGatewaysResult.Gateways[0]?.Id), + /// ["mseGatewayId3"] = status.Apply(getGatewaysResult => getGatewaysResult.Gateways[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetGatewaysInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:mse/getGateways:getGateways", args ?? new GetGatewaysInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Mse/GetNacosConfigs.cs b/sdk/dotnet/Mse/GetNacosConfigs.cs index 759f2d4312..e605a776aa 100644 --- a/sdk/dotnet/Mse/GetNacosConfigs.cs +++ b/sdk/dotnet/Mse/GetNacosConfigs.cs @@ -176,6 +176,89 @@ public static Task InvokeAsync(GetNacosConfigsArgs args, /// public static Output Invoke(GetNacosConfigsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:mse/getNacosConfigs:getNacosConfigs", args ?? new GetNacosConfigsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Mse Nacos Configs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.233.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.GetZones.Invoke(new() + /// { + /// AvailableResourceCreation = "VSwitch", + /// }); + /// + /// var exampleNetwork = new AliCloud.Vpc.Network("example", new() + /// { + /// VpcName = "terraform-example", + /// CidrBlock = "172.17.3.0/24", + /// }); + /// + /// var exampleSwitch = new AliCloud.Vpc.Switch("example", new() + /// { + /// VswitchName = "terraform-example", + /// CidrBlock = "172.17.3.0/24", + /// VpcId = exampleNetwork.Id, + /// ZoneId = example.Apply(getZonesResult => getZonesResult.Zones[0]?.Id), + /// }); + /// + /// var exampleCluster = new AliCloud.Mse.Cluster("example", new() + /// { + /// ConnectionType = "slb", + /// NetType = "privatenet", + /// VswitchId = exampleSwitch.Id, + /// ClusterSpecification = "MSE_SC_1_2_60_c", + /// ClusterVersion = "NACOS_2_0_0", + /// InstanceCount = 3, + /// PubNetworkFlow = "1", + /// ClusterAliasName = "example", + /// MseVersion = "mse_pro", + /// ClusterType = "Nacos-Ans", + /// }); + /// + /// var exampleEngineNamespace = new AliCloud.Mse.EngineNamespace("example", new() + /// { + /// InstanceId = exampleCluster.Id, + /// NamespaceShowName = "example", + /// NamespaceId = "example", + /// }); + /// + /// var exampleNacosConfig = new AliCloud.Mse.NacosConfig("example", new() + /// { + /// InstanceId = exampleCluster.Id, + /// DataId = "example", + /// Group = "example", + /// NamespaceId = exampleEngineNamespace.NamespaceId, + /// Content = "example", + /// Type = "text", + /// Tags = "example", + /// AppName = "example", + /// Desc = "example", + /// }); + /// + /// var exampleGetNacosConfigs = AliCloud.Mse.GetNacosConfigs.Invoke(new() + /// { + /// InstanceId = exampleCluster.Id, + /// EnableDetails = true, + /// NamespaceId = exampleEngineNamespace.NamespaceId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNacosConfigsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:mse/getNacosConfigs:getNacosConfigs", args ?? new GetNacosConfigsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Mse/GetZnodes.cs b/sdk/dotnet/Mse/GetZnodes.cs index 7189dbffb2..b2aa146695 100644 --- a/sdk/dotnet/Mse/GetZnodes.cs +++ b/sdk/dotnet/Mse/GetZnodes.cs @@ -102,6 +102,52 @@ public static Task InvokeAsync(GetZnodesArgs args, InvokeOption /// public static Output Invoke(GetZnodesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:mse/getZnodes:getZnodes", args ?? new GetZnodesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Mse Znodes of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.162.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Mse.GetZnodes.Invoke(new() + /// { + /// ClusterId = "example_value", + /// Path = "/", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Mse.GetZnodes.Invoke(new() + /// { + /// Path = "/", + /// ClusterId = "example_value", + /// NameRegex = "^my-Znode", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["mseZnodeId1"] = ids.Apply(getZnodesResult => getZnodesResult.Znodes[0]?.Id), + /// ["mseZnodeId2"] = nameRegex.Apply(getZnodesResult => getZnodesResult.Znodes[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetZnodesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:mse/getZnodes:getZnodes", args ?? new GetZnodesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Nas/GetAccessGroups.cs b/sdk/dotnet/Nas/GetAccessGroups.cs index c355b32cb6..23e76fb071 100644 --- a/sdk/dotnet/Nas/GetAccessGroups.cs +++ b/sdk/dotnet/Nas/GetAccessGroups.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetAccessGroupsArgs? args /// public static Output Invoke(GetAccessGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getAccessGroups:getAccessGroups", args ?? new GetAccessGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides user-available access groups. Use when you can create mount points + /// + /// > NOTE: Available in 1.35.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Nas.GetAccessGroups.Invoke(new() + /// { + /// NameRegex = "^foo", + /// AccessGroupType = "Classic", + /// Description = "tf-testAccAccessGroupsdatasource", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudNasAccessGroupsId"] = example.Apply(getAccessGroupsResult => getAccessGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAccessGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getAccessGroups:getAccessGroups", args ?? new GetAccessGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Nas/GetAccessRules.cs b/sdk/dotnet/Nas/GetAccessRules.cs index 6dca90fad9..7d46b92d78 100644 --- a/sdk/dotnet/Nas/GetAccessRules.cs +++ b/sdk/dotnet/Nas/GetAccessRules.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetAccessRulesArgs args, In /// public static Output Invoke(GetAccessRulesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getAccessRules:getAccessRules", args ?? new GetAccessRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides AccessRule available to the user. + /// + /// > **NOTE**: Available in 1.35.0+ + /// + public static Output Invoke(GetAccessRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getAccessRules:getAccessRules", args ?? new GetAccessRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Nas/GetAutoSnapshotPolicies.cs b/sdk/dotnet/Nas/GetAutoSnapshotPolicies.cs index cb5f666d32..f2e81794fa 100644 --- a/sdk/dotnet/Nas/GetAutoSnapshotPolicies.cs +++ b/sdk/dotnet/Nas/GetAutoSnapshotPolicies.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetAutoSnapshotPol /// public static Output Invoke(GetAutoSnapshotPoliciesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getAutoSnapshotPolicies:getAutoSnapshotPolicies", args ?? new GetAutoSnapshotPoliciesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Auto Snapshot Policies available to the user. + /// + /// > **NOTE**: Available in v1.153.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Nas.GetAutoSnapshotPolicies.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["nasAutoSnapshotPoliciesId1"] = ids.Apply(getAutoSnapshotPoliciesResult => getAutoSnapshotPoliciesResult.Policies[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAutoSnapshotPoliciesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getAutoSnapshotPolicies:getAutoSnapshotPolicies", args ?? new GetAutoSnapshotPoliciesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Nas/GetDataFlows.cs b/sdk/dotnet/Nas/GetDataFlows.cs index 930d33e6f9..22985492a2 100644 --- a/sdk/dotnet/Nas/GetDataFlows.cs +++ b/sdk/dotnet/Nas/GetDataFlows.cs @@ -98,6 +98,50 @@ public static Task InvokeAsync(GetDataFlowsArgs args, Invoke /// public static Output Invoke(GetDataFlowsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getDataFlows:getDataFlows", args ?? new GetDataFlowsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Nas Data Flows of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.153.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Nas.GetDataFlows.Invoke(new() + /// { + /// FileSystemId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// var status = AliCloud.Nas.GetDataFlows.Invoke(new() + /// { + /// FileSystemId = "example_value", + /// Status = "Running", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["nasDataFlowId1"] = ids.Apply(getDataFlowsResult => getDataFlowsResult.Flows[0]?.Id), + /// ["nasDataFlowId2"] = status.Apply(getDataFlowsResult => getDataFlowsResult.Flows[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDataFlowsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getDataFlows:getDataFlows", args ?? new GetDataFlowsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Nas/GetFileSystems.cs b/sdk/dotnet/Nas/GetFileSystems.cs index 98805e057a..73e5b97a28 100644 --- a/sdk/dotnet/Nas/GetFileSystems.cs +++ b/sdk/dotnet/Nas/GetFileSystems.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetFileSystemsArgs? args = /// public static Output Invoke(GetFileSystemsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getFileSystems:getFileSystems", args ?? new GetFileSystemsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides FileSystems available to the user. + /// + /// > **NOTE**: Available in 1.35.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var fs = AliCloud.Nas.GetFileSystems.Invoke(new() + /// { + /// ProtocolType = "NFS", + /// DescriptionRegex = foo.Description, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudNasFileSystemsId"] = fs.Apply(getFileSystemsResult => getFileSystemsResult.Systems[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetFileSystemsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getFileSystems:getFileSystems", args ?? new GetFileSystemsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Nas/GetFilesets.cs b/sdk/dotnet/Nas/GetFilesets.cs index fec8f4524b..e4fd02acbb 100644 --- a/sdk/dotnet/Nas/GetFilesets.cs +++ b/sdk/dotnet/Nas/GetFilesets.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetFilesetsArgs args, InvokeOp /// public static Output Invoke(GetFilesetsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getFilesets:getFilesets", args ?? new GetFilesetsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Nas Filesets of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.153.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Nas.GetFilesets.Invoke(new() + /// { + /// FileSystemId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["nasFilesetId1"] = ids.Apply(getFilesetsResult => getFilesetsResult.Filesets[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetFilesetsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getFilesets:getFilesets", args ?? new GetFilesetsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Nas/GetLifecyclePolicies.cs b/sdk/dotnet/Nas/GetLifecyclePolicies.cs index 48d7a699f1..f75d146296 100644 --- a/sdk/dotnet/Nas/GetLifecyclePolicies.cs +++ b/sdk/dotnet/Nas/GetLifecyclePolicies.cs @@ -98,6 +98,50 @@ public static Task InvokeAsync(GetLifecyclePoliciesA /// public static Output Invoke(GetLifecyclePoliciesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getLifecyclePolicies:getLifecyclePolicies", args ?? new GetLifecyclePoliciesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Nas Lifecycle Policies of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.153.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Nas.GetLifecyclePolicies.Invoke(new() + /// { + /// FileSystemId = "example_value", + /// Ids = new[] + /// { + /// "my-LifecyclePolicy-1", + /// "my-LifecyclePolicy-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Nas.GetLifecyclePolicies.Invoke(new() + /// { + /// FileSystemId = "example_value", + /// NameRegex = "^my-LifecyclePolicy", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["nasLifecyclePolicyId1"] = ids.Apply(getLifecyclePoliciesResult => getLifecyclePoliciesResult.Policies[0]?.Id), + /// ["nasLifecyclePolicyId2"] = nameRegex.Apply(getLifecyclePoliciesResult => getLifecyclePoliciesResult.Policies[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetLifecyclePoliciesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getLifecyclePolicies:getLifecyclePolicies", args ?? new GetLifecyclePoliciesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Nas/GetMountTargets.cs b/sdk/dotnet/Nas/GetMountTargets.cs index 0ad79588af..34fca866a6 100644 --- a/sdk/dotnet/Nas/GetMountTargets.cs +++ b/sdk/dotnet/Nas/GetMountTargets.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetMountTargetsArgs args, /// public static Output Invoke(GetMountTargetsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getMountTargets:getMountTargets", args ?? new GetMountTargetsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides MountTargets available to the user. + /// + /// > **NOTE**: Available in 1.35.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Nas.GetMountTargets.Invoke(new() + /// { + /// FileSystemId = "1a2sc4d", + /// AccessGroupName = "tf-testAccNasConfig", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["theFirstMountTargetDomain"] = example.Apply(getMountTargetsResult => getMountTargetsResult.Targets[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetMountTargetsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getMountTargets:getMountTargets", args ?? new GetMountTargetsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Nas/GetProtocols.cs b/sdk/dotnet/Nas/GetProtocols.cs index 118821240e..a70ceb2a44 100644 --- a/sdk/dotnet/Nas/GetProtocols.cs +++ b/sdk/dotnet/Nas/GetProtocols.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetProtocolsArgs args, Invoke /// public static Output Invoke(GetProtocolsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getProtocols:getProtocols", args ?? new GetProtocolsInvokeArgs(), options.WithDefaults()); + + /// + /// Provide a data source to retrieve the type of protocol used to create NAS file system. + /// + /// > **NOTE:** Available in 1.42.0 + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Nas.GetProtocols.Invoke(new() + /// { + /// Type = "Performance", + /// ZoneId = "cn-beijing-e", + /// OutputFile = "protocols.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["nasProtocolsProtocol"] = @default.Apply(@default => @default.Apply(getProtocolsResult => getProtocolsResult.Protocols[0])), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetProtocolsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getProtocols:getProtocols", args ?? new GetProtocolsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Nas/GetService.cs b/sdk/dotnet/Nas/GetService.cs index 32e16603b8..6614db08ea 100644 --- a/sdk/dotnet/Nas/GetService.cs +++ b/sdk/dotnet/Nas/GetService.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can enable NAS service automatically. If the service has been enabled, it will return `Opened`. + /// + /// For information about NAS and how to use it, see [What is NAS](https://www.alibabacloud.com/help/product/27516.htm). + /// + /// > **NOTE:** Available in v1.97.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.Nas.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Nas/GetSnapshots.cs b/sdk/dotnet/Nas/GetSnapshots.cs index e0ec10a3f7..de6e80cf49 100644 --- a/sdk/dotnet/Nas/GetSnapshots.cs +++ b/sdk/dotnet/Nas/GetSnapshots.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetSnapshotsArgs? args = null /// public static Output Invoke(GetSnapshotsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getSnapshots:getSnapshots", args ?? new GetSnapshotsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Nas Snapshots of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.152.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Nas.GetSnapshots.Invoke(); + /// + /// var nameRegex = AliCloud.Nas.GetSnapshots.Invoke(new() + /// { + /// NameRegex = "^my-Snapshot", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["nasSnapshotId1"] = ids.Apply(getSnapshotsResult => getSnapshotsResult.Snapshots[0]?.Id), + /// ["nasSnapshotId2"] = nameRegex.Apply(getSnapshotsResult => getSnapshotsResult.Snapshots[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSnapshotsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getSnapshots:getSnapshots", args ?? new GetSnapshotsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Nas/GetZones.cs b/sdk/dotnet/Nas/GetZones.cs index d28175da51..c553a21770 100644 --- a/sdk/dotnet/Nas/GetZones.cs +++ b/sdk/dotnet/Nas/GetZones.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// Provide a data source to retrieve the type of zone used to create NAS file system. + /// + /// > **NOTE:** Available in v1.140.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Nas.GetZones.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudNasZonesId"] = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.ZoneId)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:nas/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Nlb/GetListeners.cs b/sdk/dotnet/Nlb/GetListeners.cs index b3f8f60738..d46f6b2cc6 100644 --- a/sdk/dotnet/Nlb/GetListeners.cs +++ b/sdk/dotnet/Nlb/GetListeners.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetListenersArgs? args = null /// public static Output Invoke(GetListenersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:nlb/getListeners:getListeners", args ?? new GetListenersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Nlb Listeners of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.191.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Nlb.GetListeners.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudNlbListenerId1"] = ids.Apply(getListenersResult => getListenersResult.Listeners[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetListenersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:nlb/getListeners:getListeners", args ?? new GetListenersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Nlb/GetLoadBalancers.cs b/sdk/dotnet/Nlb/GetLoadBalancers.cs index 8f4b78d08c..09f418331e 100644 --- a/sdk/dotnet/Nlb/GetLoadBalancers.cs +++ b/sdk/dotnet/Nlb/GetLoadBalancers.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetLoadBalancersArgs? arg /// public static Output Invoke(GetLoadBalancersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:nlb/getLoadBalancers:getLoadBalancers", args ?? new GetLoadBalancersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Nlb Load Balancers of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.191.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Nlb.GetLoadBalancers.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Nlb.GetLoadBalancers.Invoke(new() + /// { + /// NameRegex = "^my-LoadBalancer", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["nlbLoadBalancerId1"] = ids.Apply(getLoadBalancersResult => getLoadBalancersResult.Balancers[0]?.Id), + /// ["nlbLoadBalancerId2"] = nameRegex.Apply(getLoadBalancersResult => getLoadBalancersResult.Balancers[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetLoadBalancersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:nlb/getLoadBalancers:getLoadBalancers", args ?? new GetLoadBalancersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Nlb/GetSecurityPolicies.cs b/sdk/dotnet/Nlb/GetSecurityPolicies.cs index 90b4ee7635..d7f5511b10 100644 --- a/sdk/dotnet/Nlb/GetSecurityPolicies.cs +++ b/sdk/dotnet/Nlb/GetSecurityPolicies.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetSecurityPoliciesArg /// public static Output Invoke(GetSecurityPoliciesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:nlb/getSecurityPolicies:getSecurityPolicies", args ?? new GetSecurityPoliciesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Nlb Security Policies of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.187.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Nlb.GetSecurityPolicies.Invoke(); + /// + /// var nameRegex = AliCloud.Nlb.GetSecurityPolicies.Invoke(new() + /// { + /// NameRegex = "^my-SecurityPolicy", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["nlbSecurityPolicyId1"] = ids.Apply(getSecurityPoliciesResult => getSecurityPoliciesResult.Policies[0]?.Id), + /// ["nlbSecurityPolicyId2"] = nameRegex.Apply(getSecurityPoliciesResult => getSecurityPoliciesResult.Policies[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSecurityPoliciesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:nlb/getSecurityPolicies:getSecurityPolicies", args ?? new GetSecurityPoliciesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Nlb/GetServerGroupServerAttachments.cs b/sdk/dotnet/Nlb/GetServerGroupServerAttachments.cs index edc3751af1..17c1ea8e81 100644 --- a/sdk/dotnet/Nlb/GetServerGroupServerAttachments.cs +++ b/sdk/dotnet/Nlb/GetServerGroupServerAttachments.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetServerG /// public static Output Invoke(GetServerGroupServerAttachmentsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:nlb/getServerGroupServerAttachments:getServerGroupServerAttachments", args ?? new GetServerGroupServerAttachmentsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Nlb Server Group Server Attachments of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.192.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Nlb.GetServerGroupServerAttachments.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["nlbServerGroupServerAttachmentId1"] = ids.Apply(getServerGroupServerAttachmentsResult => getServerGroupServerAttachmentsResult.Attachments[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetServerGroupServerAttachmentsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:nlb/getServerGroupServerAttachments:getServerGroupServerAttachments", args ?? new GetServerGroupServerAttachmentsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Nlb/GetServerGroups.cs b/sdk/dotnet/Nlb/GetServerGroups.cs index d8146c2860..02a48ed4fe 100644 --- a/sdk/dotnet/Nlb/GetServerGroups.cs +++ b/sdk/dotnet/Nlb/GetServerGroups.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetServerGroupsArgs? args /// public static Output Invoke(GetServerGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:nlb/getServerGroups:getServerGroups", args ?? new GetServerGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Nlb Server Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.186.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Nlb.GetServerGroups.Invoke(); + /// + /// var nameRegex = AliCloud.Nlb.GetServerGroups.Invoke(new() + /// { + /// NameRegex = "^my-ServerGroup", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["nlbServerGroupId1"] = ids.Apply(getServerGroupsResult => getServerGroupsResult.Groups[0]?.Id), + /// ["nlbServerGroupId2"] = nameRegex.Apply(getServerGroupsResult => getServerGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetServerGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:nlb/getServerGroups:getServerGroups", args ?? new GetServerGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Nlb/GetZones.cs b/sdk/dotnet/Nlb/GetZones.cs index f3abde9a44..f625d34a13 100644 --- a/sdk/dotnet/Nlb/GetZones.cs +++ b/sdk/dotnet/Nlb/GetZones.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:nlb/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the available zones with the Network Load Balancer (NLB) Instance of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.191.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Nlb.GetZones.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstNlbZonesId"] = example.Apply(getZonesResult => getZonesResult.Zones[0]?.ZoneId), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:nlb/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ocean/GetBaseInstances.cs b/sdk/dotnet/Ocean/GetBaseInstances.cs index 9540569b8a..e4510d2224 100644 --- a/sdk/dotnet/Ocean/GetBaseInstances.cs +++ b/sdk/dotnet/Ocean/GetBaseInstances.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetBaseInstancesArgs? arg /// public static Output Invoke(GetBaseInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ocean/getBaseInstances:getBaseInstances", args ?? new GetBaseInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ocean Base Instances of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.203.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ocean.GetBaseInstances.Invoke(); + /// + /// var nameRegex = AliCloud.Ocean.GetBaseInstances.Invoke(new() + /// { + /// NameRegex = "^my-Instance", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["oceanBaseInstanceId1"] = ids.Apply(getBaseInstancesResult => getBaseInstancesResult.Instances[0]?.Id), + /// ["oceanBaseInstanceId2"] = nameRegex.Apply(getBaseInstancesResult => getBaseInstancesResult.Instances[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBaseInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ocean/getBaseInstances:getBaseInstances", args ?? new GetBaseInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Oos/GetApplicationGroups.cs b/sdk/dotnet/Oos/GetApplicationGroups.cs index 6c21e8e654..17e55b5c8a 100644 --- a/sdk/dotnet/Oos/GetApplicationGroups.cs +++ b/sdk/dotnet/Oos/GetApplicationGroups.cs @@ -98,6 +98,50 @@ public static Task InvokeAsync(GetApplicationGroupsA /// public static Output Invoke(GetApplicationGroupsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:oos/getApplicationGroups:getApplicationGroups", args ?? new GetApplicationGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Oos Application Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.146.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Oos.GetApplicationGroups.Invoke(new() + /// { + /// ApplicationName = "example_value", + /// Ids = new[] + /// { + /// "my-ApplicationGroup-1", + /// "my-ApplicationGroup-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Oos.GetApplicationGroups.Invoke(new() + /// { + /// ApplicationName = "example_value", + /// NameRegex = "^my-ApplicationGroup", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["oosApplicationGroupId1"] = ids.Apply(getApplicationGroupsResult => getApplicationGroupsResult.Groups[0]?.Id), + /// ["oosApplicationGroupId2"] = nameRegex.Apply(getApplicationGroupsResult => getApplicationGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetApplicationGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:oos/getApplicationGroups:getApplicationGroups", args ?? new GetApplicationGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Oos/GetApplications.cs b/sdk/dotnet/Oos/GetApplications.cs index 39ceaa1696..53f921d6eb 100644 --- a/sdk/dotnet/Oos/GetApplications.cs +++ b/sdk/dotnet/Oos/GetApplications.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetApplicationsArgs? args /// public static Output Invoke(GetApplicationsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:oos/getApplications:getApplications", args ?? new GetApplicationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Oos Applications of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.145.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Oos.GetApplications.Invoke(); + /// + /// var nameRegex = AliCloud.Oos.GetApplications.Invoke(new() + /// { + /// NameRegex = "^my-Application", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["oosApplicationId1"] = ids.Apply(getApplicationsResult => getApplicationsResult.Applications[0]?.Id), + /// ["oosApplicationId2"] = nameRegex.Apply(getApplicationsResult => getApplicationsResult.Applications[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetApplicationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:oos/getApplications:getApplications", args ?? new GetApplicationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Oos/GetExecutions.cs b/sdk/dotnet/Oos/GetExecutions.cs index a0c14ab729..111cee1182 100644 --- a/sdk/dotnet/Oos/GetExecutions.cs +++ b/sdk/dotnet/Oos/GetExecutions.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetExecutionsArgs? args = nu /// public static Output Invoke(GetExecutionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:oos/getExecutions:getExecutions", args ?? new GetExecutionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of OOS Executions in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in v1.93.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var example = AliCloud.Oos.GetExecutions.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "execution_id", + /// }, + /// TemplateName = "name", + /// Status = "Success", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstExecutionId"] = example.Apply(getExecutionsResult => getExecutionsResult.Executions[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetExecutionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:oos/getExecutions:getExecutions", args ?? new GetExecutionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Oos/GetParameters.cs b/sdk/dotnet/Oos/GetParameters.cs index 35ec772c26..950b3a79de 100644 --- a/sdk/dotnet/Oos/GetParameters.cs +++ b/sdk/dotnet/Oos/GetParameters.cs @@ -140,6 +140,71 @@ public static Task InvokeAsync(GetParametersArgs? args = nu /// public static Output Invoke(GetParametersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:oos/getParameters:getParameters", args ?? new GetParametersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Oos Parameters of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.147.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Oos.GetParameters.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "my-Parameter", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Oos.GetParameters.Invoke(new() + /// { + /// NameRegex = "^my-Parameter", + /// }); + /// + /// var resourceGroupId = AliCloud.Oos.GetParameters.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "my-Parameter", + /// }, + /// ResourceGroupId = "example_value", + /// }); + /// + /// var tags = AliCloud.Oos.GetParameters.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "my-Parameter", + /// }, + /// Tags = + /// { + /// { "Created", "TF" }, + /// { "For", "OosParameter" }, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["oosParameterId1"] = ids.Apply(getParametersResult => getParametersResult.Parameters[0]?.Id), + /// ["oosParameterId2"] = nameRegex.Apply(getParametersResult => getParametersResult.Parameters[0]?.Id), + /// ["oosParameterId3"] = resourceGroupId.Apply(getParametersResult => getParametersResult.Parameters[0]?.Id), + /// ["oosParameterId4"] = tags.Apply(getParametersResult => getParametersResult.Parameters[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetParametersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:oos/getParameters:getParameters", args ?? new GetParametersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Oos/GetPatchBaselines.cs b/sdk/dotnet/Oos/GetPatchBaselines.cs index e578f8fcb0..bb367ec91b 100644 --- a/sdk/dotnet/Oos/GetPatchBaselines.cs +++ b/sdk/dotnet/Oos/GetPatchBaselines.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetPatchBaselinesArgs? a /// public static Output Invoke(GetPatchBaselinesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:oos/getPatchBaselines:getPatchBaselines", args ?? new GetPatchBaselinesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Oos Patch Baselines of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.146.0+. + /// + public static Output Invoke(GetPatchBaselinesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:oos/getPatchBaselines:getPatchBaselines", args ?? new GetPatchBaselinesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Oos/GetSecretParameters.cs b/sdk/dotnet/Oos/GetSecretParameters.cs index 8054aed10a..735ab37492 100644 --- a/sdk/dotnet/Oos/GetSecretParameters.cs +++ b/sdk/dotnet/Oos/GetSecretParameters.cs @@ -128,6 +128,65 @@ public static Task InvokeAsync(GetSecretParametersArg /// public static Output Invoke(GetSecretParametersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:oos/getSecretParameters:getSecretParameters", args ?? new GetSecretParametersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Oos Secret Parameters of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.147.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "terraform-example"; + /// var @default = new AliCloud.Oos.SecretParameter("default", new() + /// { + /// SecretParameterName = name, + /// Value = "tf-testacc-oos_secret_parameter", + /// Type = "Secret", + /// Description = name, + /// Constraints = @" { + /// ""AllowedValues"": [ + /// ""tf-testacc-oos_secret_parameter"" + /// ], + /// ""AllowedPattern"": ""tf-testacc-oos_secret_parameter"", + /// ""MinLength"": 1, + /// ""MaxLength"": 100 + /// } + /// ", + /// Tags = + /// { + /// { "Created", "TF" }, + /// { "For", "SecretParameter" }, + /// }, + /// }); + /// + /// var ids = AliCloud.Oos.GetSecretParameters.Invoke(new() + /// { + /// Ids = new[] + /// { + /// @default.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["oosSecretParameterId0"] = ids.Apply(getSecretParametersResult => getSecretParametersResult.Parameters[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSecretParametersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:oos/getSecretParameters:getSecretParameters", args ?? new GetSecretParametersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Oos/GetStateConfigurations.cs b/sdk/dotnet/Oos/GetStateConfigurations.cs index d06c0bd7df..ebb0300966 100644 --- a/sdk/dotnet/Oos/GetStateConfigurations.cs +++ b/sdk/dotnet/Oos/GetStateConfigurations.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetStateConfigurati /// public static Output Invoke(GetStateConfigurationsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:oos/getStateConfigurations:getStateConfigurations", args ?? new GetStateConfigurationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Oos State Configurations of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.147.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Oos.GetStateConfigurations.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["oosStateConfigurationId1"] = ids.Apply(getStateConfigurationsResult => getStateConfigurationsResult.Configurations[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetStateConfigurationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:oos/getStateConfigurations:getStateConfigurations", args ?? new GetStateConfigurationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Oos/GetTemplates.cs b/sdk/dotnet/Oos/GetTemplates.cs index 4836972845..01cb29ced2 100644 --- a/sdk/dotnet/Oos/GetTemplates.cs +++ b/sdk/dotnet/Oos/GetTemplates.cs @@ -86,6 +86,44 @@ public static Task InvokeAsync(GetTemplatesArgs? args = null /// public static Output Invoke(GetTemplatesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:oos/getTemplates:getTemplates", args ?? new GetTemplatesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of OOS Templates in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in v1.92.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var example = AliCloud.Oos.GetTemplates.Invoke(new() + /// { + /// NameRegex = "test", + /// Tags = + /// { + /// { "Created", "TF" }, + /// { "For", "template Test" }, + /// }, + /// ShareType = "Private", + /// HasTrigger = false, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstTemplateName"] = example.Apply(getTemplatesResult => getTemplatesResult.Templates[0]?.TemplateName), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTemplatesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:oos/getTemplates:getTemplates", args ?? new GetTemplatesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/OpenSearch/GetAppGroups.cs b/sdk/dotnet/OpenSearch/GetAppGroups.cs index cc336a705b..9b8890f448 100644 --- a/sdk/dotnet/OpenSearch/GetAppGroups.cs +++ b/sdk/dotnet/OpenSearch/GetAppGroups.cs @@ -110,6 +110,56 @@ public static Task InvokeAsync(GetAppGroupsArgs? args = null /// public static Output Invoke(GetAppGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:opensearch/getAppGroups:getAppGroups", args ?? new GetAppGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Open Search App Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.136.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "tf_testacc"; + /// var defaultAppGroup = new AliCloud.OpenSearch.AppGroup("default", new() + /// { + /// AppGroupName = name, + /// PaymentType = "PayAsYouGo", + /// Type = "standard", + /// Quota = new AliCloud.OpenSearch.Inputs.AppGroupQuotaArgs + /// { + /// DocSize = 1, + /// ComputeResource = 20, + /// Spec = "opensearch.share.common", + /// }, + /// }); + /// + /// var @default = AliCloud.OpenSearch.GetAppGroups.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAppGroup.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["appGroups"] = @default.Apply(@default => @default.Apply(getAppGroupsResult => getAppGroupsResult.Groups)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAppGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:opensearch/getAppGroups:getAppGroups", args ?? new GetAppGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Oss/GetBucketObjects.cs b/sdk/dotnet/Oss/GetBucketObjects.cs index 2659f987b8..d93e7e49d2 100644 --- a/sdk/dotnet/Oss/GetBucketObjects.cs +++ b/sdk/dotnet/Oss/GetBucketObjects.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetBucketObjectsArgs args /// public static Output Invoke(GetBucketObjectsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:oss/getBucketObjects:getBucketObjects", args ?? new GetBucketObjectsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the objects of an OSS bucket. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var bucketObjectsDs = AliCloud.Oss.GetBucketObjects.Invoke(new() + /// { + /// BucketName = "sample_bucket", + /// KeyRegex = "sample/sample_object.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstObjectKey"] = bucketObjectsDs.Apply(getBucketObjectsResult => getBucketObjectsResult.Objects[0]?.Key), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBucketObjectsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:oss/getBucketObjects:getBucketObjects", args ?? new GetBucketObjectsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Oss/GetBuckets.cs b/sdk/dotnet/Oss/GetBuckets.cs index 580fc934f7..5438b00903 100644 --- a/sdk/dotnet/Oss/GetBuckets.cs +++ b/sdk/dotnet/Oss/GetBuckets.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetBucketsArgs? args = null, In /// public static Output Invoke(GetBucketsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:oss/getBuckets:getBuckets", args ?? new GetBucketsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the OSS buckets of the current Alibaba Cloud user. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ossBucketsDs = AliCloud.Oss.GetBuckets.Invoke(new() + /// { + /// NameRegex = "sample_oss_bucket", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstOssBucketName"] = ossBucketsDs.Apply(getBucketsResult => getBucketsResult.Buckets[0]?.Name), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBucketsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:oss/getBuckets:getBuckets", args ?? new GetBucketsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Oss/GetInstanceAttachments.cs b/sdk/dotnet/Oss/GetInstanceAttachments.cs index ab2cb87152..c203d8a44d 100644 --- a/sdk/dotnet/Oss/GetInstanceAttachments.cs +++ b/sdk/dotnet/Oss/GetInstanceAttachments.cs @@ -71,6 +71,36 @@ public static Task InvokeAsync(GetInstanceAttachme /// public static Output Invoke(GetInstanceAttachmentsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:oss/getInstanceAttachments:getInstanceAttachments", args ?? new GetInstanceAttachmentsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the ots instance attachments of the current Alibaba Cloud user. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var attachmentsDs = AliCloud.Ots.GetInstanceAttachments.Invoke(new() + /// { + /// InstanceName = "sample-instance", + /// NameRegex = "testvpc", + /// OutputFile = "attachments.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstOtsAttachmentId"] = attachmentsDs.Apply(getInstanceAttachmentsResult => getInstanceAttachmentsResult.Attachments[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceAttachmentsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:oss/getInstanceAttachments:getInstanceAttachments", args ?? new GetInstanceAttachmentsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Oss/GetInstances.cs b/sdk/dotnet/Oss/GetInstances.cs index 39295905b1..f521b5e456 100644 --- a/sdk/dotnet/Oss/GetInstances.cs +++ b/sdk/dotnet/Oss/GetInstances.cs @@ -71,6 +71,36 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:oss/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the ots instances of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.40.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var instancesDs = AliCloud.Ots.GetInstances.Invoke(new() + /// { + /// OutputFile = "instances.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstInstanceId"] = instancesDs.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:oss/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Oss/GetService.cs b/sdk/dotnet/Oss/GetService.cs index 509c6fd66f..91b8716140 100644 --- a/sdk/dotnet/Oss/GetService.cs +++ b/sdk/dotnet/Oss/GetService.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:oss/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can enable OSS service automatically. If the service has been enabled, it will return `Opened`. + /// + /// For information about OSS and how to use it, see [What is OSS](https://www.alibabacloud.com/help/product/31815.htm). + /// + /// > **NOTE:** Available in v1.97.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.Oss.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:oss/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Oss/GetTables.cs b/sdk/dotnet/Oss/GetTables.cs index 3d8c6ca021..f42ef2e3c3 100644 --- a/sdk/dotnet/Oss/GetTables.cs +++ b/sdk/dotnet/Oss/GetTables.cs @@ -55,6 +55,28 @@ public static Task InvokeAsync(GetTablesArgs args, InvokeOption /// public static Output Invoke(GetTablesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:oss/getTables:getTables", args ?? new GetTablesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the ots tables of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.40.0+. + /// + /// ## Example Usage + /// + /// ``` terraform + /// data "alicloud_ots_tables" "tables_ds" { + /// instance_name = "sample-instance" + /// name_regex = "sample-table" + /// output_file = "tables.txt" + /// } + /// + /// output "first_table_id" { + /// value = "${data.alicloud_ots_tables.tables_ds.tables.0.id}" + /// } + /// ``` + /// + public static Output Invoke(GetTablesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:oss/getTables:getTables", args ?? new GetTablesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ots/GetInstanceAttachments.cs b/sdk/dotnet/Ots/GetInstanceAttachments.cs index f799e60829..fd1308c80f 100644 --- a/sdk/dotnet/Ots/GetInstanceAttachments.cs +++ b/sdk/dotnet/Ots/GetInstanceAttachments.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetInstanceAttachme /// public static Output Invoke(GetInstanceAttachmentsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ots/getInstanceAttachments:getInstanceAttachments", args ?? new GetInstanceAttachmentsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the ots instance attachments of the current Alibaba Cloud user. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var attachmentsDs = AliCloud.Ots.GetInstanceAttachments.Invoke(new() + /// { + /// InstanceName = "sample-instance", + /// NameRegex = "testvpc", + /// OutputFile = "attachments.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstOtsAttachmentId"] = attachmentsDs.Apply(getInstanceAttachmentsResult => getInstanceAttachmentsResult.Attachments[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceAttachmentsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ots/getInstanceAttachments:getInstanceAttachments", args ?? new GetInstanceAttachmentsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ots/GetInstances.cs b/sdk/dotnet/Ots/GetInstances.cs index a32af1baa9..1b3a080877 100644 --- a/sdk/dotnet/Ots/GetInstances.cs +++ b/sdk/dotnet/Ots/GetInstances.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ots/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the ots instances of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.40.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var instancesDs = AliCloud.Ots.GetInstances.Invoke(new() + /// { + /// OutputFile = "instances.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstInstanceId"] = instancesDs.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ots/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ots/GetSearchIndexes.cs b/sdk/dotnet/Ots/GetSearchIndexes.cs index c1ee5a4516..e0f6bddcad 100644 --- a/sdk/dotnet/Ots/GetSearchIndexes.cs +++ b/sdk/dotnet/Ots/GetSearchIndexes.cs @@ -30,6 +30,16 @@ public static Task InvokeAsync(GetSearchIndexesArgs args /// public static Output Invoke(GetSearchIndexesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ots/getSearchIndexes:getSearchIndexes", args ?? new GetSearchIndexesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the ots search index of the current Alibaba Cloud user. + /// + /// For information about OTS search index and how to use it, see [Search index overview](https://www.alibabacloud.com/help/en/tablestore/latest/search-index-overview). + /// + /// > **NOTE:** Available in v1.187.0+. + /// + public static Output Invoke(GetSearchIndexesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ots/getSearchIndexes:getSearchIndexes", args ?? new GetSearchIndexesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ots/GetSecondaryIndexes.cs b/sdk/dotnet/Ots/GetSecondaryIndexes.cs index 17604f469d..a0829a1dd0 100644 --- a/sdk/dotnet/Ots/GetSecondaryIndexes.cs +++ b/sdk/dotnet/Ots/GetSecondaryIndexes.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetSecondaryIndexesArg /// public static Output Invoke(GetSecondaryIndexesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ots/getSecondaryIndexes:getSecondaryIndexes", args ?? new GetSecondaryIndexesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the ots secondary index of the current Alibaba Cloud user. + /// + /// For information about OTS secondary index and how to use it, see [Secondary index overview](https://www.alibabacloud.com/help/en/tablestore/latest/secondary-index-overview). + /// + /// > **NOTE:** Available in v1.187.0+. + /// + /// ## Example Usage + /// + /// ``` terraform + /// data "alicloud_ots_secondary_indexes" "secondary_index_ds" { + /// instance_name = "sample-instance" + /// table_name = "sample-table" + /// name_regex = "sample-secondary-index" + /// output_file = "secondary-indexs.txt" + /// } + /// + /// output "first_secondary_index_id" { + /// value = "${data.alicloud_ots_secondary_indexes.secondary_index_ds.indexs.0.id}" + /// } + /// ``` + /// + public static Output Invoke(GetSecondaryIndexesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ots/getSecondaryIndexes:getSecondaryIndexes", args ?? new GetSecondaryIndexesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ots/GetService.cs b/sdk/dotnet/Ots/GetService.cs index cb44322e16..3cb83894f2 100644 --- a/sdk/dotnet/Ots/GetService.cs +++ b/sdk/dotnet/Ots/GetService.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ots/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can enable Table Staore service automatically. If the service has been enabled, it will return `Opened`. + /// + /// For information about Table Staore and how to use it, see [What is Table Staore](https://www.alibabacloud.com/help/product/27278.htm). + /// + /// > **NOTE:** Available in v1.97.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.Ots.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ots/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ots/GetTables.cs b/sdk/dotnet/Ots/GetTables.cs index a649e05efa..2df3180baa 100644 --- a/sdk/dotnet/Ots/GetTables.cs +++ b/sdk/dotnet/Ots/GetTables.cs @@ -54,6 +54,28 @@ public static Task InvokeAsync(GetTablesArgs args, InvokeOption /// public static Output Invoke(GetTablesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ots/getTables:getTables", args ?? new GetTablesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the ots tables of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.40.0+. + /// + /// ## Example Usage + /// + /// ``` terraform + /// data "alicloud_ots_tables" "tables_ds" { + /// instance_name = "sample-instance" + /// name_regex = "sample-table" + /// output_file = "tables.txt" + /// } + /// + /// output "first_table_id" { + /// value = "${data.alicloud_ots_tables.tables_ds.tables.0.id}" + /// } + /// ``` + /// + public static Output Invoke(GetTablesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ots/getTables:getTables", args ?? new GetTablesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ots/GetTunnels.cs b/sdk/dotnet/Ots/GetTunnels.cs index 2f8771d794..017934399d 100644 --- a/sdk/dotnet/Ots/GetTunnels.cs +++ b/sdk/dotnet/Ots/GetTunnels.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetTunnelsArgs args, InvokeOpti /// public static Output Invoke(GetTunnelsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ots/getTunnels:getTunnels", args ?? new GetTunnelsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the ots tunnels of the current Alibaba Cloud user. + /// + /// For information about OTS tunnel and how to use it, see [Tunnel overview](https://www.alibabacloud.com/help/en/tablestore/latest/tunnel-service-overview). + /// + /// > **NOTE:** Available in v1.172.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var tunnelsDs = AliCloud.Ots.GetTunnels.Invoke(new() + /// { + /// InstanceName = "sample-instance", + /// TableName = "sample-table", + /// NameRegex = "sample-tunnel", + /// OutputFile = "tunnels.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstTunnelId"] = tunnelsDs.Apply(getTunnelsResult => getTunnelsResult.Tunnels[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTunnelsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ots/getTunnels:getTunnels", args ?? new GetTunnelsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PolarDB/GetAccounts.cs b/sdk/dotnet/PolarDB/GetAccounts.cs index 161166f876..989de9e0fb 100644 --- a/sdk/dotnet/PolarDB/GetAccounts.cs +++ b/sdk/dotnet/PolarDB/GetAccounts.cs @@ -168,6 +168,85 @@ public static Task InvokeAsync(GetAccountsArgs args, InvokeOp /// public static Output Invoke(GetAccountsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:polardb/getAccounts:getAccounts", args ?? new GetAccountsInvokeArgs(), options.WithDefaults()); + + /// + /// The `alicloud.polardb.getAccounts` data source provides a collection of PolarDB cluster database account available in Alibaba Cloud account. + /// Filters support regular expression for the account name, searches by clusterId. + /// + /// > **NOTE:** Available since v1.70.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @this = AliCloud.PolarDB.GetNodeClasses.Invoke(new() + /// { + /// DbType = "MySQL", + /// DbVersion = "8.0", + /// PayType = "PostPaid", + /// Category = "Normal", + /// }); + /// + /// var defaultNetwork = new AliCloud.Vpc.Network("default", new() + /// { + /// VpcName = "terraform-example", + /// CidrBlock = "172.16.0.0/16", + /// }); + /// + /// var defaultSwitch = new AliCloud.Vpc.Switch("default", new() + /// { + /// VpcId = defaultNetwork.Id, + /// CidrBlock = "172.16.0.0/24", + /// ZoneId = @this.Apply(@this => @this.Apply(getNodeClassesResult => getNodeClassesResult.Classes[0]?.ZoneId)), + /// VswitchName = "terraform-example", + /// }); + /// + /// var cluster = new AliCloud.PolarDB.Cluster("cluster", new() + /// { + /// DbType = "MySQL", + /// DbVersion = "8.0", + /// PayType = "PostPaid", + /// DbNodeCount = 2, + /// DbNodeClass = @this.Apply(@this => @this.Apply(getNodeClassesResult => getNodeClassesResult.Classes[0]?.SupportedEngines[0]?.AvailableResources[0]?.DbNodeClass)), + /// VswitchId = defaultSwitch.Id, + /// }); + /// + /// var polardbClustersDs = AliCloud.PolarDB.GetClusters.Invoke(new() + /// { + /// DescriptionRegex = cluster.Description, + /// Status = "Running", + /// }); + /// + /// var account = new AliCloud.PolarDB.Account("account", new() + /// { + /// DbClusterId = polardbClustersDs.Apply(getClustersResult => getClustersResult.Clusters[0]?.Id), + /// AccountName = "tfnormal_01", + /// AccountPassword = "Test12345", + /// AccountDescription = "tf_account_description", + /// AccountType = "Normal", + /// }); + /// + /// var @default = AliCloud.PolarDB.GetAccounts.Invoke(new() + /// { + /// DbClusterId = polardbClustersDs.Apply(getClustersResult => getClustersResult.Clusters[0]?.Id), + /// NameRegex = account.AccountName, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["account"] = @default.Apply(@default => @default.Apply(getAccountsResult => getAccountsResult.Accounts[0]?.AccountName)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAccountsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:polardb/getAccounts:getAccounts", args ?? new GetAccountsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PolarDB/GetClusters.cs b/sdk/dotnet/PolarDB/GetClusters.cs index 19781c626f..10678dadbc 100644 --- a/sdk/dotnet/PolarDB/GetClusters.cs +++ b/sdk/dotnet/PolarDB/GetClusters.cs @@ -138,6 +138,70 @@ public static Task InvokeAsync(GetClustersArgs? args = null, /// public static Output Invoke(GetClustersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:polardb/getClusters:getClusters", args ?? new GetClustersInvokeArgs(), options.WithDefaults()); + + /// + /// The `alicloud.polardb.getClusters` data source provides a collection of PolarDB clusters available in Alibaba Cloud account. + /// Filters support regular expression for the cluster description, searches by tags, and other filters which are listed below. + /// + /// > **NOTE:** Available since v1.66.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @this = AliCloud.PolarDB.GetNodeClasses.Invoke(new() + /// { + /// DbType = "MySQL", + /// DbVersion = "8.0", + /// PayType = "PostPaid", + /// Category = "Normal", + /// }); + /// + /// var @default = new AliCloud.Vpc.Network("default", new() + /// { + /// VpcName = "terraform-example", + /// CidrBlock = "172.16.0.0/16", + /// }); + /// + /// var defaultSwitch = new AliCloud.Vpc.Switch("default", new() + /// { + /// VpcId = @default.Id, + /// CidrBlock = "172.16.0.0/24", + /// ZoneId = @this.Apply(@this => @this.Apply(getNodeClassesResult => getNodeClassesResult.Classes[0]?.ZoneId)), + /// VswitchName = "terraform-example", + /// }); + /// + /// var cluster = new AliCloud.PolarDB.Cluster("cluster", new() + /// { + /// DbType = "MySQL", + /// DbVersion = "8.0", + /// PayType = "PostPaid", + /// DbNodeCount = 2, + /// DbNodeClass = @this.Apply(@this => @this.Apply(getNodeClassesResult => getNodeClassesResult.Classes[0]?.SupportedEngines[0]?.AvailableResources[0]?.DbNodeClass)), + /// VswitchId = defaultSwitch.Id, + /// }); + /// + /// var polardbClustersDs = AliCloud.PolarDB.GetClusters.Invoke(new() + /// { + /// DescriptionRegex = cluster.Id, + /// Status = "Running", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstPolardbClusterId"] = polardbClustersDs.Apply(getClustersResult => getClustersResult.Clusters[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetClustersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:polardb/getClusters:getClusters", args ?? new GetClustersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PolarDB/GetDatabases.cs b/sdk/dotnet/PolarDB/GetDatabases.cs index 2fe8745f4e..62ab10cd36 100644 --- a/sdk/dotnet/PolarDB/GetDatabases.cs +++ b/sdk/dotnet/PolarDB/GetDatabases.cs @@ -164,6 +164,83 @@ public static Task InvokeAsync(GetDatabasesArgs args, Invoke /// public static Output Invoke(GetDatabasesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:polardb/getDatabases:getDatabases", args ?? new GetDatabasesInvokeArgs(), options.WithDefaults()); + + /// + /// The `alicloud.polardb.getDatabases` data source provides a collection of PolarDB cluster database available in Alibaba Cloud account. + /// Filters support regular expression for the database name, searches by clusterId. + /// + /// > **NOTE:** Available since v1.70.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @this = AliCloud.PolarDB.GetNodeClasses.Invoke(new() + /// { + /// DbType = "MySQL", + /// DbVersion = "8.0", + /// PayType = "PostPaid", + /// Category = "Normal", + /// }); + /// + /// var defaultNetwork = new AliCloud.Vpc.Network("default", new() + /// { + /// VpcName = "terraform-example", + /// CidrBlock = "172.16.0.0/16", + /// }); + /// + /// var defaultSwitch = new AliCloud.Vpc.Switch("default", new() + /// { + /// VpcId = defaultNetwork.Id, + /// CidrBlock = "172.16.0.0/24", + /// ZoneId = @this.Apply(@this => @this.Apply(getNodeClassesResult => getNodeClassesResult.Classes[0]?.ZoneId)), + /// VswitchName = "terraform-example", + /// }); + /// + /// var cluster = new AliCloud.PolarDB.Cluster("cluster", new() + /// { + /// DbType = "MySQL", + /// DbVersion = "8.0", + /// PayType = "PostPaid", + /// DbNodeCount = 2, + /// DbNodeClass = @this.Apply(@this => @this.Apply(getNodeClassesResult => getNodeClassesResult.Classes[0]?.SupportedEngines[0]?.AvailableResources[0]?.DbNodeClass)), + /// VswitchId = defaultSwitch.Id, + /// }); + /// + /// var polardbClustersDs = AliCloud.PolarDB.GetClusters.Invoke(new() + /// { + /// DescriptionRegex = cluster.Description, + /// Status = "Running", + /// }); + /// + /// var defaultDatabase = new AliCloud.PolarDB.Database("default", new() + /// { + /// DbClusterId = polardbClustersDs.Apply(getClustersResult => getClustersResult.Clusters[0]?.Id), + /// DbName = $"tfaccountpri_{polardbClustersDs.Apply(getClustersResult => getClustersResult.Clusters[0]?.Id)}", + /// DbDescription = "from terraform", + /// }); + /// + /// var @default = AliCloud.PolarDB.GetDatabases.Invoke(new() + /// { + /// DbClusterId = polardbClustersDs.Apply(getClustersResult => getClustersResult.Clusters[0]?.Id), + /// NameRegex = defaultDatabase.DbName, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["database"] = @default.Apply(@default => @default.Apply(getDatabasesResult => getDatabasesResult.Databases[0]?.DbName)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDatabasesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:polardb/getDatabases:getDatabases", args ?? new GetDatabasesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PolarDB/GetEndpoints.cs b/sdk/dotnet/PolarDB/GetEndpoints.cs index 74450cbec1..e456fc65bd 100644 --- a/sdk/dotnet/PolarDB/GetEndpoints.cs +++ b/sdk/dotnet/PolarDB/GetEndpoints.cs @@ -148,6 +148,75 @@ public static Task InvokeAsync(GetEndpointsArgs args, Invoke /// public static Output Invoke(GetEndpointsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:polardb/getEndpoints:getEndpoints", args ?? new GetEndpointsInvokeArgs(), options.WithDefaults()); + + /// + /// The `alicloud.polardb.getEndpoints` data source provides a collection of PolarDB endpoints available in Alibaba Cloud account. + /// Filters support regular expression for the cluster name, searches by clusterId, and other filters which are listed below. + /// + /// > **NOTE:** Available since v1.68.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @this = AliCloud.PolarDB.GetNodeClasses.Invoke(new() + /// { + /// DbType = "MySQL", + /// DbVersion = "8.0", + /// PayType = "PostPaid", + /// Category = "Normal", + /// }); + /// + /// var defaultNetwork = new AliCloud.Vpc.Network("default", new() + /// { + /// VpcName = "terraform-example", + /// CidrBlock = "172.16.0.0/16", + /// }); + /// + /// var defaultSwitch = new AliCloud.Vpc.Switch("default", new() + /// { + /// VpcId = defaultNetwork.Id, + /// CidrBlock = "172.16.0.0/24", + /// ZoneId = @this.Apply(@this => @this.Apply(getNodeClassesResult => getNodeClassesResult.Classes[0]?.ZoneId)), + /// VswitchName = "terraform-example", + /// }); + /// + /// var cluster = new AliCloud.PolarDB.Cluster("cluster", new() + /// { + /// DbType = "MySQL", + /// DbVersion = "8.0", + /// PayType = "PostPaid", + /// DbNodeCount = 2, + /// DbNodeClass = @this.Apply(@this => @this.Apply(getNodeClassesResult => getNodeClassesResult.Classes[0]?.SupportedEngines[0]?.AvailableResources[0]?.DbNodeClass)), + /// VswitchId = defaultSwitch.Id, + /// }); + /// + /// var polardbClustersDs = AliCloud.PolarDB.GetClusters.Invoke(new() + /// { + /// DescriptionRegex = cluster.Description, + /// Status = "Running", + /// }); + /// + /// var @default = AliCloud.PolarDB.GetEndpoints.Invoke(new() + /// { + /// DbClusterId = polardbClustersDs.Apply(getClustersResult => getClustersResult.Clusters[0]?.Id), + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["endpoint"] = @default.Apply(@default => @default.Apply(getEndpointsResult => getEndpointsResult.Endpoints[0]?.DbEndpointId)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEndpointsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:polardb/getEndpoints:getEndpoints", args ?? new GetEndpointsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PolarDB/GetGlobalDatabaseNetworks.cs b/sdk/dotnet/PolarDB/GetGlobalDatabaseNetworks.cs index 2a4a2f553a..a378a9aec5 100644 --- a/sdk/dotnet/PolarDB/GetGlobalDatabaseNetworks.cs +++ b/sdk/dotnet/PolarDB/GetGlobalDatabaseNetworks.cs @@ -168,6 +168,85 @@ public static Task InvokeAsync(GetGlobalDatabas /// public static Output Invoke(GetGlobalDatabaseNetworksInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:polardb/getGlobalDatabaseNetworks:getGlobalDatabaseNetworks", args ?? new GetGlobalDatabaseNetworksInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the PolarDB Global Database Networks of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.181.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @this = AliCloud.PolarDB.GetNodeClasses.Invoke(new() + /// { + /// DbType = "MySQL", + /// DbVersion = "8.0", + /// PayType = "PostPaid", + /// Category = "Normal", + /// }); + /// + /// var @default = new AliCloud.Vpc.Network("default", new() + /// { + /// VpcName = "terraform-example", + /// CidrBlock = "172.16.0.0/16", + /// }); + /// + /// var defaultSwitch = new AliCloud.Vpc.Switch("default", new() + /// { + /// VpcId = @default.Id, + /// CidrBlock = "172.16.0.0/24", + /// ZoneId = @this.Apply(@this => @this.Apply(getNodeClassesResult => getNodeClassesResult.Classes[0]?.ZoneId)), + /// VswitchName = "terraform-example", + /// }); + /// + /// var cluster = new AliCloud.PolarDB.Cluster("cluster", new() + /// { + /// DbType = "MySQL", + /// DbVersion = "8.0", + /// PayType = "PostPaid", + /// DbNodeCount = 2, + /// DbNodeClass = @this.Apply(@this => @this.Apply(getNodeClassesResult => getNodeClassesResult.Classes[0]?.SupportedEngines[0]?.AvailableResources[0]?.DbNodeClass)), + /// VswitchId = defaultSwitch.Id, + /// }); + /// + /// var defaultGlobalDatabaseNetwork = new AliCloud.PolarDB.GlobalDatabaseNetwork("default", new() + /// { + /// DbClusterId = cluster.Id, + /// Description = cluster.Id, + /// }); + /// + /// var ids = AliCloud.PolarDB.GetGlobalDatabaseNetworks.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultGlobalDatabaseNetwork.Id, + /// }, + /// }); + /// + /// var description = AliCloud.PolarDB.GetGlobalDatabaseNetworks.Invoke(new() + /// { + /// Description = defaultGlobalDatabaseNetwork.Description, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["polardbGlobalDatabaseNetworkId1"] = ids.Apply(getGlobalDatabaseNetworksResult => getGlobalDatabaseNetworksResult.Networks[0]?.Id), + /// ["polardbGlobalDatabaseNetworkId2"] = description.Apply(getGlobalDatabaseNetworksResult => getGlobalDatabaseNetworksResult.Networks[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetGlobalDatabaseNetworksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:polardb/getGlobalDatabaseNetworks:getGlobalDatabaseNetworks", args ?? new GetGlobalDatabaseNetworksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PolarDB/GetNodeClasses.cs b/sdk/dotnet/PolarDB/GetNodeClasses.cs index 78e896a3eb..9d6801be8a 100644 --- a/sdk/dotnet/PolarDB/GetNodeClasses.cs +++ b/sdk/dotnet/PolarDB/GetNodeClasses.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetNodeClassesArgs args, In /// public static Output Invoke(GetNodeClassesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:polardb/getNodeClasses:getNodeClasses", args ?? new GetNodeClassesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the PolarDB node classes resource available info of Alibaba Cloud. + /// + /// > **NOTE:** Available since v1.81.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var resources = AliCloud.PolarDB.GetNodeClasses.Invoke(new() + /// { + /// PayType = "PostPaid", + /// DbType = "MySQL", + /// DbVersion = "5.6", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["polardbNodeClasses"] = resources.Apply(getNodeClassesResult => getNodeClassesResult.Classes), + /// ["polardbAvailableZoneId"] = resources.Apply(getNodeClassesResult => getNodeClassesResult.Classes[0]?.ZoneId), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetNodeClassesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:polardb/getNodeClasses:getNodeClasses", args ?? new GetNodeClassesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PolarDB/GetParameterGroups.cs b/sdk/dotnet/PolarDB/GetParameterGroups.cs index a82aaf797e..450af9c13e 100644 --- a/sdk/dotnet/PolarDB/GetParameterGroups.cs +++ b/sdk/dotnet/PolarDB/GetParameterGroups.cs @@ -104,6 +104,53 @@ public static Task InvokeAsync(GetParameterGroupsArgs? /// public static Output Invoke(GetParameterGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:polardb/getParameterGroups:getParameterGroups", args ?? new GetParameterGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the PolarDB Parameter Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.183.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.PolarDB.GetParameterGroups.Invoke(new() + /// { + /// DbType = "MySQL", + /// DbVersion = "8.0", + /// }); + /// + /// var ids = AliCloud.PolarDB.GetParameterGroups.Invoke(new() + /// { + /// Ids = new[] + /// { + /// @default.Apply(getParameterGroupsResult => getParameterGroupsResult.Groups[0]?.Id), + /// }, + /// }); + /// + /// var nameRegex = AliCloud.PolarDB.GetParameterGroups.Invoke(new() + /// { + /// NameRegex = @default.Apply(getParameterGroupsResult => getParameterGroupsResult.Groups[0]?.ParameterGroupName), + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["polardbParameterGroupId1"] = ids.Apply(getParameterGroupsResult => getParameterGroupsResult.Groups[0]?.Id), + /// ["polardbParameterGroupId2"] = nameRegex.Apply(getParameterGroupsResult => getParameterGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetParameterGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:polardb/getParameterGroups:getParameterGroups", args ?? new GetParameterGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PolarDB/GetZones.cs b/sdk/dotnet/PolarDB/GetZones.cs index cc32d390ab..d1f0526023 100644 --- a/sdk/dotnet/PolarDB/GetZones.cs +++ b/sdk/dotnet/PolarDB/GetZones.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:polardb/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides availability zones for PolarDB that can be accessed by an Alibaba Cloud account within the region configured in the provider. + /// + /// > **NOTE:** Available in v1.74.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var zonesIds = AliCloud.PolarDB.GetZones.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:polardb/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PrivateLink/GetService.cs b/sdk/dotnet/PrivateLink/GetService.cs index ab10ca7259..89beffa454 100644 --- a/sdk/dotnet/PrivateLink/GetService.cs +++ b/sdk/dotnet/PrivateLink/GetService.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:privatelink/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open Privatelink service automatically. If the service has been opened, it will return opened. + /// + /// For information about Privatelink and how to use it, see [What is Privatelink](https://www.alibabacloud.com/help/en/product/120462.htm). + /// + /// > **NOTE:** Available in v1.113.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.PrivateLink.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:privatelink/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PrivateLink/GetVpcEndpointConnections.cs b/sdk/dotnet/PrivateLink/GetVpcEndpointConnections.cs index 79e8433f2a..a14b96be89 100644 --- a/sdk/dotnet/PrivateLink/GetVpcEndpointConnections.cs +++ b/sdk/dotnet/PrivateLink/GetVpcEndpointConnections.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetVpcEndpointCo /// public static Output Invoke(GetVpcEndpointConnectionsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:privatelink/getVpcEndpointConnections:getVpcEndpointConnections", args ?? new GetVpcEndpointConnectionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Privatelink Vpc Endpoint Connections of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.110.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.PrivateLink.GetVpcEndpointConnections.Invoke(new() + /// { + /// ServiceId = "example_value", + /// Status = "Connected", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstPrivatelinkVpcEndpointConnectionId"] = example.Apply(getVpcEndpointConnectionsResult => getVpcEndpointConnectionsResult.Connections[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetVpcEndpointConnectionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:privatelink/getVpcEndpointConnections:getVpcEndpointConnections", args ?? new GetVpcEndpointConnectionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PrivateLink/GetVpcEndpointServiceResources.cs b/sdk/dotnet/PrivateLink/GetVpcEndpointServiceResources.cs index 6c5bfe8983..94bc5b5438 100644 --- a/sdk/dotnet/PrivateLink/GetVpcEndpointServiceResources.cs +++ b/sdk/dotnet/PrivateLink/GetVpcEndpointServiceResources.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetVpcEndpo /// public static Output Invoke(GetVpcEndpointServiceResourcesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:privatelink/getVpcEndpointServiceResources:getVpcEndpointServiceResources", args ?? new GetVpcEndpointServiceResourcesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Privatelink Vpc Endpoint Service Resources of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.110.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.PrivateLink.GetVpcEndpointServiceResources.Invoke(new() + /// { + /// ServiceId = "epsrv-gw8ii1xxxx", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstPrivatelinkVpcEndpointServiceResourceId"] = example.Apply(getVpcEndpointServiceResourcesResult => getVpcEndpointServiceResourcesResult.Resources[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetVpcEndpointServiceResourcesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:privatelink/getVpcEndpointServiceResources:getVpcEndpointServiceResources", args ?? new GetVpcEndpointServiceResourcesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PrivateLink/GetVpcEndpointServiceUsers.cs b/sdk/dotnet/PrivateLink/GetVpcEndpointServiceUsers.cs index 10c7d27655..f594953ffd 100644 --- a/sdk/dotnet/PrivateLink/GetVpcEndpointServiceUsers.cs +++ b/sdk/dotnet/PrivateLink/GetVpcEndpointServiceUsers.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetVpcEndpointS /// public static Output Invoke(GetVpcEndpointServiceUsersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:privatelink/getVpcEndpointServiceUsers:getVpcEndpointServiceUsers", args ?? new GetVpcEndpointServiceUsersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Privatelink Vpc Endpoint Service Users of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.110.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.PrivateLink.GetVpcEndpointServiceUsers.Invoke(new() + /// { + /// ServiceId = "epsrv-gw81c6vxxxxxx", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstPrivatelinkVpcEndpointServiceUserId"] = example.Apply(getVpcEndpointServiceUsersResult => getVpcEndpointServiceUsersResult.Users[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetVpcEndpointServiceUsersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:privatelink/getVpcEndpointServiceUsers:getVpcEndpointServiceUsers", args ?? new GetVpcEndpointServiceUsersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PrivateLink/GetVpcEndpointServices.cs b/sdk/dotnet/PrivateLink/GetVpcEndpointServices.cs index 0219e4de03..d6bacf0a49 100644 --- a/sdk/dotnet/PrivateLink/GetVpcEndpointServices.cs +++ b/sdk/dotnet/PrivateLink/GetVpcEndpointServices.cs @@ -94,6 +94,48 @@ public static Task InvokeAsync(GetVpcEndpointServi /// public static Output Invoke(GetVpcEndpointServicesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:privatelink/getVpcEndpointServices:getVpcEndpointServices", args ?? new GetVpcEndpointServicesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Privatelink Vpc Endpoint Services of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.109.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var exampleVpcEndpointService = new AliCloud.PrivateLink.VpcEndpointService("example", new() + /// { + /// ServiceDescription = "terraform-example", + /// ConnectBandwidth = 103, + /// AutoAcceptConnection = false, + /// }); + /// + /// var example = AliCloud.PrivateLink.GetVpcEndpointServices.Invoke(new() + /// { + /// Ids = new[] + /// { + /// exampleVpcEndpointService.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstPrivatelinkVpcEndpointServiceId"] = example.Apply(getVpcEndpointServicesResult => getVpcEndpointServicesResult.Services[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetVpcEndpointServicesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:privatelink/getVpcEndpointServices:getVpcEndpointServices", args ?? new GetVpcEndpointServicesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PrivateLink/GetVpcEndpointZones.cs b/sdk/dotnet/PrivateLink/GetVpcEndpointZones.cs index 043138e25b..17d765f534 100644 --- a/sdk/dotnet/PrivateLink/GetVpcEndpointZones.cs +++ b/sdk/dotnet/PrivateLink/GetVpcEndpointZones.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetVpcEndpointZonesArg /// public static Output Invoke(GetVpcEndpointZonesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:privatelink/getVpcEndpointZones:getVpcEndpointZones", args ?? new GetVpcEndpointZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Privatelink Vpc Endpoint Zones of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.111.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.PrivateLink.GetVpcEndpointZones.Invoke(new() + /// { + /// EndpointId = "ep-gw8boxxxxx", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstPrivatelinkVpcEndpointZoneId"] = example.Apply(getVpcEndpointZonesResult => getVpcEndpointZonesResult.Zones[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetVpcEndpointZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:privatelink/getVpcEndpointZones:getVpcEndpointZones", args ?? new GetVpcEndpointZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PrivateLink/GetVpcEndpoints.cs b/sdk/dotnet/PrivateLink/GetVpcEndpoints.cs index e6f6ce5f56..da58b3ca30 100644 --- a/sdk/dotnet/PrivateLink/GetVpcEndpoints.cs +++ b/sdk/dotnet/PrivateLink/GetVpcEndpoints.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetVpcEndpointsArgs? args /// public static Output Invoke(GetVpcEndpointsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:privatelink/getVpcEndpoints:getVpcEndpoints", args ?? new GetVpcEndpointsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Privatelink Vpc Endpoints of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.109.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.PrivateLink.GetVpcEndpoints.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstPrivatelinkVpcEndpointId"] = example.Apply(getVpcEndpointsResult => getVpcEndpointsResult.Endpoints[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetVpcEndpointsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:privatelink/getVpcEndpoints:getVpcEndpoints", args ?? new GetVpcEndpointsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Pvtz/GetEndpoints.cs b/sdk/dotnet/Pvtz/GetEndpoints.cs index 4886b81961..18352a9687 100644 --- a/sdk/dotnet/Pvtz/GetEndpoints.cs +++ b/sdk/dotnet/Pvtz/GetEndpoints.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetEndpointsArgs? args = null /// public static Output Invoke(GetEndpointsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:pvtz/getEndpoints:getEndpoints", args ?? new GetEndpointsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Pvtz Endpoints of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.143.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Pvtz.GetEndpoints.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Pvtz.GetEndpoints.Invoke(new() + /// { + /// NameRegex = "^my-Endpoint", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["pvtzEndpointId1"] = ids.Apply(getEndpointsResult => getEndpointsResult.Endpoints[0]?.Id), + /// ["pvtzEndpointId2"] = nameRegex.Apply(getEndpointsResult => getEndpointsResult.Endpoints[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEndpointsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:pvtz/getEndpoints:getEndpoints", args ?? new GetEndpointsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Pvtz/GetResolverZones.cs b/sdk/dotnet/Pvtz/GetResolverZones.cs index 485cbe6733..9020aed822 100644 --- a/sdk/dotnet/Pvtz/GetResolverZones.cs +++ b/sdk/dotnet/Pvtz/GetResolverZones.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetResolverZonesArgs? arg /// public static Output Invoke(GetResolverZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:pvtz/getResolverZones:getResolverZones", args ?? new GetResolverZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the available zones with the Private Zone Resolver of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.143.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Pvtz.GetResolverZones.Invoke(new() + /// { + /// Status = "NORMAL", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstZonesId"] = @default.Apply(@default => @default.Apply(getResolverZonesResult => getResolverZonesResult.Zones[0]?.ZoneId)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetResolverZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:pvtz/getResolverZones:getResolverZones", args ?? new GetResolverZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Pvtz/GetRules.cs b/sdk/dotnet/Pvtz/GetRules.cs index 81aae0c5a1..638aa6d2ae 100644 --- a/sdk/dotnet/Pvtz/GetRules.cs +++ b/sdk/dotnet/Pvtz/GetRules.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetRulesArgs? args = null, Invoke /// public static Output Invoke(GetRulesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:pvtz/getRules:getRules", args ?? new GetRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the PrivateZone Rules of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.143.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Pvtz.GetRules.Invoke(); + /// + /// var nameRegex = AliCloud.Pvtz.GetRules.Invoke(new() + /// { + /// NameRegex = "^my-Rule", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["pvtzRuleId1"] = ids.Apply(getRulesResult => getRulesResult.Rules[0]?.Id), + /// ["pvtzRuleId2"] = nameRegex.Apply(getRulesResult => getRulesResult.Rules[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:pvtz/getRules:getRules", args ?? new GetRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Pvtz/GetService.cs b/sdk/dotnet/Pvtz/GetService.cs index e1195a13ec..95ab80a274 100644 --- a/sdk/dotnet/Pvtz/GetService.cs +++ b/sdk/dotnet/Pvtz/GetService.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:pvtz/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open Private Zone service automatically. If the service has been opened, it will return opened. + /// + /// For information about Priavte Zone and how to use it, see [What is Private Zone](https://www.alibabacloud.com/help/en/product/64583.htm). + /// + /// > **NOTE:** Available in v1.114.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.Pvtz.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:pvtz/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Pvtz/GetZoneRecords.cs b/sdk/dotnet/Pvtz/GetZoneRecords.cs index d2fbe5c919..390f85cd2d 100644 --- a/sdk/dotnet/Pvtz/GetZoneRecords.cs +++ b/sdk/dotnet/Pvtz/GetZoneRecords.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetZoneRecordsArgs args, In /// public static Output Invoke(GetZoneRecordsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:pvtz/getZoneRecords:getZoneRecords", args ?? new GetZoneRecordsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Private Zone Records resource information owned by an Alibaba Cloud account. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var recordsDs = AliCloud.Pvtz.GetZoneRecords.Invoke(new() + /// { + /// ZoneId = basic.Id, + /// Keyword = foo.Value, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstRecordId"] = recordsDs.Apply(getZoneRecordsResult => getZoneRecordsResult.Records[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetZoneRecordsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:pvtz/getZoneRecords:getZoneRecords", args ?? new GetZoneRecordsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Pvtz/GetZones.cs b/sdk/dotnet/Pvtz/GetZones.cs index fdae4275fb..c08b7267f7 100644 --- a/sdk/dotnet/Pvtz/GetZones.cs +++ b/sdk/dotnet/Pvtz/GetZones.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:pvtz/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source lists a number of Private Zones resource information owned by an Alibaba Cloud account. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var pvtzZonesDs = AliCloud.Pvtz.GetZones.Invoke(new() + /// { + /// Keyword = basic.ZoneName, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstZoneId"] = pvtzZonesDs.Apply(getZonesResult => getZonesResult.Zones[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:pvtz/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/QuickBI/GetUsers.cs b/sdk/dotnet/QuickBI/GetUsers.cs index f5bb032ccf..8a590d8f5b 100644 --- a/sdk/dotnet/QuickBI/GetUsers.cs +++ b/sdk/dotnet/QuickBI/GetUsers.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetUsersArgs? args = null, Invoke /// public static Output Invoke(GetUsersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:quickbi/getUsers:getUsers", args ?? new GetUsersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Quick BI Users of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.136.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.QuickBI.GetUsers.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["quickBiUserId1"] = ids.Apply(getUsersResult => getUsersResult.Users[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetUsersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:quickbi/getUsers:getUsers", args ?? new GetUsersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Quotas/GetApplicationInfos.cs b/sdk/dotnet/Quotas/GetApplicationInfos.cs index 9b7eed76fa..cbfd4a2530 100644 --- a/sdk/dotnet/Quotas/GetApplicationInfos.cs +++ b/sdk/dotnet/Quotas/GetApplicationInfos.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetApplicationInfosArg public static Output Invoke(GetApplicationInfosInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:quotas/getApplicationInfos:getApplicationInfos", args ?? new GetApplicationInfosInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetApplicationInfosInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:quotas/getApplicationInfos:getApplicationInfos", args ?? new GetApplicationInfosInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Quotas/GetQuotaAlarms.cs b/sdk/dotnet/Quotas/GetQuotaAlarms.cs index 5d91f3f6b1..ea2a9d942a 100644 --- a/sdk/dotnet/Quotas/GetQuotaAlarms.cs +++ b/sdk/dotnet/Quotas/GetQuotaAlarms.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetQuotaAlarmsArgs? args = /// public static Output Invoke(GetQuotaAlarmsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:quotas/getQuotaAlarms:getQuotaAlarms", args ?? new GetQuotaAlarmsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Quotas Quota Alarms of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.116.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Quotas.GetQuotaAlarms.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "5VR90-421F886-81E9-xxx", + /// }, + /// NameRegex = "tf-testAcc", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstQuotasQuotaAlarmId"] = example.Apply(getQuotaAlarmsResult => getQuotaAlarmsResult.Alarms[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetQuotaAlarmsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:quotas/getQuotaAlarms:getQuotaAlarms", args ?? new GetQuotaAlarmsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Quotas/GetQuotaApplications.cs b/sdk/dotnet/Quotas/GetQuotaApplications.cs index 9c00eb7bd7..050111ae5b 100644 --- a/sdk/dotnet/Quotas/GetQuotaApplications.cs +++ b/sdk/dotnet/Quotas/GetQuotaApplications.cs @@ -106,6 +106,54 @@ public static Task InvokeAsync(GetQuotaApplicationsA /// public static Output Invoke(GetQuotaApplicationsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:quotas/getQuotaApplications:getQuotaApplications", args ?? new GetQuotaApplicationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Quotas Quota Applications of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.117.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var defaultQuotaApplication = new AliCloud.Quotas.QuotaApplication("default", new() + /// { + /// ProductCode = "vpc", + /// NoticeType = 3, + /// EffectiveTime = "2023-05-22T16:00:00Z", + /// ExpireTime = "2024-09-15T00:08:32Z", + /// DesireValue = 1, + /// Reason = "", + /// QuotaActionCode = "vpc_whitelist/ha_vip_whitelist", + /// AuditMode = "Sync", + /// EnvLanguage = "zh", + /// QuotaCategory = "WhiteListLabel", + /// }); + /// + /// var @default = AliCloud.Quotas.GetQuotaApplications.Invoke(new() + /// { + /// ProductCode = "vpc", + /// EnableDetails = true, + /// QuotaCategory = defaultQuotaApplication.QuotaCategory, + /// Ids = new[] + /// { + /// defaultQuotaApplication.Id, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetQuotaApplicationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:quotas/getQuotaApplications:getQuotaApplications", args ?? new GetQuotaApplicationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Quotas/GetQuotas.cs b/sdk/dotnet/Quotas/GetQuotas.cs index 8cadf5017f..32b9a13a42 100644 --- a/sdk/dotnet/Quotas/GetQuotas.cs +++ b/sdk/dotnet/Quotas/GetQuotas.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetQuotasArgs args, InvokeOption /// public static Output Invoke(GetQuotasInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:quotas/getQuotas:getQuotas", args ?? new GetQuotasInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Quotas Quotas of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.115.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Quotas.GetQuotas.Invoke(new() + /// { + /// ProductCode = "ecs", + /// NameRegex = "专有宿主机总数量上限", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstQuotasQuotaId"] = example.Apply(getQuotasResult => getQuotasResult.Quotas[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetQuotasInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:quotas/getQuotas:getQuotas", args ?? new GetQuotasInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Quotas/GetTemplateApplications.cs b/sdk/dotnet/Quotas/GetTemplateApplications.cs index a2d994d216..f6f83e85aa 100644 --- a/sdk/dotnet/Quotas/GetTemplateApplications.cs +++ b/sdk/dotnet/Quotas/GetTemplateApplications.cs @@ -158,6 +158,80 @@ public static Task InvokeAsync(GetTemplateApplica /// public static Output Invoke(GetTemplateApplicationsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:quotas/getTemplateApplications:getTemplateApplications", args ?? new GetTemplateApplicationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Quotas Template Applications available to the user.[What is Template Applications](https://www.alibabacloud.com/help/en/quota-center/developer-reference/api-quotas-2020-05-10-createquotaapplicationsfortemplate) + /// + /// > **NOTE:** Available since v1.214.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ResourceManager.GetAccounts.Invoke(new() + /// { + /// Status = "CreateSuccess", + /// }); + /// + /// var defaultTemplateApplications = new AliCloud.Quotas.TemplateApplications("default", new() + /// { + /// QuotaActionCode = "vpc_whitelist/ha_vip_whitelist", + /// ProductCode = "vpc", + /// QuotaCategory = "FlowControl", + /// AliyunUids = new[] + /// { + /// @default.Apply(@default => @default.Apply(getAccountsResult => getAccountsResult.Ids[0])), + /// }, + /// DesireValue = 6, + /// NoticeType = 0, + /// EnvLanguage = "zh", + /// Reason = "example", + /// Dimensions = new[] + /// { + /// new AliCloud.Quotas.Inputs.TemplateApplicationsDimensionArgs + /// { + /// Key = "apiName", + /// Value = "GetProductQuotaDimension", + /// }, + /// new AliCloud.Quotas.Inputs.TemplateApplicationsDimensionArgs + /// { + /// Key = "apiVersion", + /// Value = "2020-05-10", + /// }, + /// new AliCloud.Quotas.Inputs.TemplateApplicationsDimensionArgs + /// { + /// Key = "regionId", + /// Value = "cn-hangzhou", + /// }, + /// }, + /// }); + /// + /// var defaultGetTemplateApplications = AliCloud.Quotas.GetTemplateApplications.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultTemplateApplications.Id, + /// }, + /// ProductCode = "vpc", + /// QuotaActionCode = "vpc_whitelist/ha_vip_whitelist", + /// QuotaCategory = "FlowControl", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudQuotasTemplateApplicationsExampleId"] = defaultGetTemplateApplications.Apply(getTemplateApplicationsResult => getTemplateApplicationsResult.Applications[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTemplateApplicationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:quotas/getTemplateApplications:getTemplateApplications", args ?? new GetTemplateApplicationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ram/GetAccountAlias.cs b/sdk/dotnet/Ram/GetAccountAlias.cs index 7e35a5f24e..c20c5b3dbf 100644 --- a/sdk/dotnet/Ram/GetAccountAlias.cs +++ b/sdk/dotnet/Ram/GetAccountAlias.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetAccountAliasArgs? args /// public static Output Invoke(GetAccountAliasInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ram/getAccountAlias:getAccountAlias", args ?? new GetAccountAliasInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides an alias for the Alibaba Cloud account. + /// + /// > **NOTE:** Available since v1.0.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var aliasDs = AliCloud.Ram.GetAccountAlias.Invoke(new() + /// { + /// OutputFile = "alias.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["accountAlias"] = aliasDs.Apply(getAccountAliasResult => getAccountAliasResult.AccountAlias), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAccountAliasInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ram/getAccountAlias:getAccountAlias", args ?? new GetAccountAliasInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ram/GetAccountAliases.cs b/sdk/dotnet/Ram/GetAccountAliases.cs index 11cc151d8f..0dc8722fb8 100644 --- a/sdk/dotnet/Ram/GetAccountAliases.cs +++ b/sdk/dotnet/Ram/GetAccountAliases.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetAccountAliasesArgs? a public static Output Invoke(GetAccountAliasesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ram/getAccountAliases:getAccountAliases", args ?? new GetAccountAliasesInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetAccountAliasesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ram/getAccountAliases:getAccountAliases", args ?? new GetAccountAliasesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ram/GetGroups.cs b/sdk/dotnet/Ram/GetGroups.cs index 3b4cb126b3..21a0fcc0ad 100644 --- a/sdk/dotnet/Ram/GetGroups.cs +++ b/sdk/dotnet/Ram/GetGroups.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetGroupsArgs? args = null, Invo /// public static Output Invoke(GetGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ram/getGroups:getGroups", args ?? new GetGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of RAM Groups in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available since v1.0.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var groupsDs = AliCloud.Ram.GetGroups.Invoke(new() + /// { + /// OutputFile = "groups.txt", + /// UserName = "user1", + /// NameRegex = "^group[0-9]*", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstGroupName"] = groupsDs.Apply(getGroupsResult => getGroupsResult.Groups[0]?.Name), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ram/getGroups:getGroups", args ?? new GetGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ram/GetPolicies.cs b/sdk/dotnet/Ram/GetPolicies.cs index 680d2572d2..2e874755c8 100644 --- a/sdk/dotnet/Ram/GetPolicies.cs +++ b/sdk/dotnet/Ram/GetPolicies.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetPoliciesArgs? args = null, /// public static Output Invoke(GetPoliciesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ram/getPolicies:getPolicies", args ?? new GetPoliciesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of RAM policies in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available since v1.0.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policiesDs = AliCloud.Ram.GetPolicies.Invoke(new() + /// { + /// OutputFile = "policies.txt", + /// UserName = "user1", + /// GroupName = "group1", + /// Type = "System", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstPolicyName"] = policiesDs.Apply(getPoliciesResult => getPoliciesResult.Policies[0]?.Name), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetPoliciesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ram/getPolicies:getPolicies", args ?? new GetPoliciesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ram/GetPolicyDocument.cs b/sdk/dotnet/Ram/GetPolicyDocument.cs index da165c4449..d0025276c8 100644 --- a/sdk/dotnet/Ram/GetPolicyDocument.cs +++ b/sdk/dotnet/Ram/GetPolicyDocument.cs @@ -844,6 +844,423 @@ public static Task InvokeAsync(GetPolicyDocumentArgs? a /// public static Output Invoke(GetPolicyDocumentInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ram/getPolicyDocument:getPolicyDocument", args ?? new GetPolicyDocumentInvokeArgs(), options.WithDefaults()); + + /// + /// This data source Generates a RAM policy document of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.184.0+. + /// + /// ## Example Usage + /// + /// ### Basic Example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var basicExample = AliCloud.Ram.GetPolicyDocument.Invoke(new() + /// { + /// Version = "1", + /// Statements = new[] + /// { + /// new AliCloud.Ram.Inputs.GetPolicyDocumentStatementInputArgs + /// { + /// Effect = "Allow", + /// Actions = new[] + /// { + /// "oss:*", + /// }, + /// Resources = new[] + /// { + /// "acs:oss:*:*:myphotos", + /// "acs:oss:*:*:myphotos/*", + /// }, + /// }, + /// }, + /// }); + /// + /// var @default = new AliCloud.Ram.Policy("default", new() + /// { + /// PolicyName = "tf-example", + /// PolicyDocument = basicExample.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Document), + /// Force = true, + /// }); + /// + /// }); + /// ``` + /// + /// `data.alicloud_ram_policy_document.basic_example.document` will evaluate to: + /// + /// ```json + /// { + /// "Statement": [ + /// { + /// "Effect": "Allow", + /// "Action": "oss:*", + /// "Resource": [ + /// "acs:oss:*:*:myphotos", + /// "acs:oss:*:*:myphotos/*" + /// ] + /// } + /// ], + /// "Version": "1" + /// } + /// ``` + /// + /// ### Example Multiple Condition Keys and Values + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var multipleCondition = AliCloud.Ram.GetPolicyDocument.Invoke(new() + /// { + /// Version = "1", + /// Statements = new[] + /// { + /// new AliCloud.Ram.Inputs.GetPolicyDocumentStatementInputArgs + /// { + /// Effect = "Allow", + /// Actions = new[] + /// { + /// "oss:ListBuckets", + /// "oss:GetBucketStat", + /// "oss:GetBucketInfo", + /// "oss:GetBucketTagging", + /// "oss:GetBucketAcl", + /// }, + /// Resources = new[] + /// { + /// "acs:oss:*:*:*", + /// }, + /// }, + /// new AliCloud.Ram.Inputs.GetPolicyDocumentStatementInputArgs + /// { + /// Effect = "Allow", + /// Actions = new[] + /// { + /// "oss:GetObject", + /// "oss:GetObjectAcl", + /// }, + /// Resources = new[] + /// { + /// "acs:oss:*:*:myphotos/hangzhou/2015/*", + /// }, + /// }, + /// new AliCloud.Ram.Inputs.GetPolicyDocumentStatementInputArgs + /// { + /// Effect = "Allow", + /// Actions = new[] + /// { + /// "oss:ListObjects", + /// }, + /// Resources = new[] + /// { + /// "acs:oss:*:*:myphotos", + /// }, + /// Conditions = new[] + /// { + /// new AliCloud.Ram.Inputs.GetPolicyDocumentStatementConditionInputArgs + /// { + /// Operator = "StringLike", + /// Variable = "oss:Delimiter", + /// Values = new[] + /// { + /// "/", + /// }, + /// }, + /// new AliCloud.Ram.Inputs.GetPolicyDocumentStatementConditionInputArgs + /// { + /// Operator = "StringLike", + /// Variable = "oss:Prefix", + /// Values = new[] + /// { + /// "", + /// "hangzhou/", + /// "hangzhou/2015/*", + /// }, + /// }, + /// }, + /// }, + /// }, + /// }); + /// + /// var policy = new AliCloud.Ram.Policy("policy", new() + /// { + /// PolicyName = "tf-example-condition", + /// PolicyDocument = multipleCondition.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Document), + /// Force = true, + /// }); + /// + /// }); + /// ``` + /// + /// `data.alicloud_ram_policy_document.multiple_condition.document` will evaluate to: + /// + /// ```json + /// { + /// "Statement": [ + /// { + /// "Effect": "Allow", + /// "Action": [ + /// "oss:ListBuckets", + /// "oss:GetBucketStat", + /// "oss:GetBucketInfo", + /// "oss:GetBucketTagging", + /// "oss:GetBucketAcl" + /// ], + /// "Resource": "acs:oss:*:*:*" + /// }, + /// { + /// "Effect": "Allow", + /// "Action": [ + /// "oss:GetObject", + /// "oss:GetObjectAcl" + /// ], + /// "Resource": "acs:oss:*:*:myphotos/hangzhou/2015/*" + /// }, + /// { + /// "Effect": "Allow", + /// "Action": "oss:ListObjects", + /// "Resource": "acs:oss:*:*:myphotos", + /// "Condition": { + /// "StringLike": { + /// "oss:Delimiter": "/", + /// "oss:Prefix": [ + /// "", + /// "hangzhou/", + /// "hangzhou/2015/*" + /// ] + /// } + /// } + /// } + /// ], + /// "Version": "1" + /// } + /// ``` + /// + /// ### Example Assume-Role Policy with RAM Principal + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ramExample = AliCloud.Ram.GetPolicyDocument.Invoke(new() + /// { + /// Statements = new[] + /// { + /// new AliCloud.Ram.Inputs.GetPolicyDocumentStatementInputArgs + /// { + /// Effect = "Allow", + /// Actions = new[] + /// { + /// "sts:AssumeRole", + /// }, + /// Principals = new[] + /// { + /// new AliCloud.Ram.Inputs.GetPolicyDocumentStatementPrincipalInputArgs + /// { + /// Entity = "RAM", + /// Identifiers = new[] + /// { + /// "acs:ram::123456789012****:root", + /// }, + /// }, + /// }, + /// }, + /// }, + /// }); + /// + /// var role = new AliCloud.Ram.Role("role", new() + /// { + /// Name = "tf-example-role-ram", + /// Document = ramExample.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Document), + /// Force = true, + /// }); + /// + /// }); + /// ``` + /// + /// `data.alicloud_ram_policy_document.ram_example.document` will evaluate to: + /// + /// ```json + /// { + /// "Statement": [ + /// { + /// "Effect": "Allow", + /// "Action": "sts:AssumeRole", + /// "Principal": { + /// "RAM": [ + /// "acs:ram::123456789012****:root" + /// ] + /// } + /// } + /// ], + /// "Version": "1" + /// } + /// ``` + /// + /// ### Example Assume-Role Policy with Service Principal + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var serviceExample = AliCloud.Ram.GetPolicyDocument.Invoke(new() + /// { + /// Statements = new[] + /// { + /// new AliCloud.Ram.Inputs.GetPolicyDocumentStatementInputArgs + /// { + /// Effect = "Allow", + /// Actions = new[] + /// { + /// "sts:AssumeRole", + /// }, + /// Principals = new[] + /// { + /// new AliCloud.Ram.Inputs.GetPolicyDocumentStatementPrincipalInputArgs + /// { + /// Entity = "Service", + /// Identifiers = new[] + /// { + /// "ecs.aliyuncs.com", + /// }, + /// }, + /// }, + /// }, + /// }, + /// }); + /// + /// var role = new AliCloud.Ram.Role("role", new() + /// { + /// Name = "tf-example-role-service", + /// Document = serviceExample.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Document), + /// Force = true, + /// }); + /// + /// }); + /// ``` + /// + /// `data.alicloud_ram_policy_document.service_example.document` will evaluate to: + /// + /// ```json + /// { + /// "Statement": [ + /// { + /// "Effect": "Allow", + /// "Action": "sts:AssumeRole", + /// "Principal": { + /// "Service": [ + /// "ecs.aliyuncs.com" + /// ] + /// } + /// } + /// ], + /// "Version": "1" + /// } + /// ``` + /// + /// ### Example Assume-Role Policy with Federated Principal + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var federatedExample = AliCloud.Ram.GetPolicyDocument.Invoke(new() + /// { + /// Statements = new[] + /// { + /// new AliCloud.Ram.Inputs.GetPolicyDocumentStatementInputArgs + /// { + /// Effect = "Allow", + /// Actions = new[] + /// { + /// "sts:AssumeRole", + /// }, + /// Principals = new[] + /// { + /// new AliCloud.Ram.Inputs.GetPolicyDocumentStatementPrincipalInputArgs + /// { + /// Entity = "Federated", + /// Identifiers = new[] + /// { + /// "acs:ram::123456789012****:saml-provider/testprovider", + /// }, + /// }, + /// }, + /// Conditions = new[] + /// { + /// new AliCloud.Ram.Inputs.GetPolicyDocumentStatementConditionInputArgs + /// { + /// Operator = "StringEquals", + /// Variable = "saml:recipient", + /// Values = new[] + /// { + /// "https://signin.aliyun.com/saml-role/sso", + /// }, + /// }, + /// }, + /// }, + /// }, + /// }); + /// + /// var role = new AliCloud.Ram.Role("role", new() + /// { + /// Name = "tf-example-role-federated", + /// Document = federatedExample.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Document), + /// Force = true, + /// }); + /// + /// }); + /// ``` + /// + /// `data.alicloud_ram_policy_document.federated_example.document` will evaluate to: + /// + /// ```json + /// { + /// "Statement": [ + /// { + /// "Effect": "Allow", + /// "Action": "sts:AssumeRole", + /// "Principal": { + /// "Federated": [ + /// "acs:ram::123456789012****:saml-provider/testprovider" + /// ] + /// }, + /// "Condition": { + /// "StringEquals": { + /// "saml:recipient": "https://signin.aliyun.com/saml-role/sso" + /// } + /// } + /// } + /// ], + /// "Version": "1" + /// } + /// ``` + /// + public static Output Invoke(GetPolicyDocumentInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ram/getPolicyDocument:getPolicyDocument", args ?? new GetPolicyDocumentInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ram/GetRoles.cs b/sdk/dotnet/Ram/GetRoles.cs index 26b230060d..fdc40e924b 100644 --- a/sdk/dotnet/Ram/GetRoles.cs +++ b/sdk/dotnet/Ram/GetRoles.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetRolesArgs? args = null, Invoke /// public static Output Invoke(GetRolesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ram/getRoles:getRoles", args ?? new GetRolesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of RAM Roles in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available since v1.0.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var rolesDs = AliCloud.Ram.GetRoles.Invoke(new() + /// { + /// OutputFile = "roles.txt", + /// NameRegex = ".*test.*", + /// PolicyName = "AliyunACSDefaultAccess", + /// PolicyType = "Custom", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstRoleId"] = rolesDs.Apply(getRolesResult => getRolesResult.Roles[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRolesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ram/getRoles:getRoles", args ?? new GetRolesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ram/GetSamlProviders.cs b/sdk/dotnet/Ram/GetSamlProviders.cs index 09b08d2add..3d6e541fdb 100644 --- a/sdk/dotnet/Ram/GetSamlProviders.cs +++ b/sdk/dotnet/Ram/GetSamlProviders.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetSamlProvidersArgs? arg /// public static Output Invoke(GetSamlProvidersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ram/getSamlProviders:getSamlProviders", args ?? new GetSamlProvidersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ram Saml Providers of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.114.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Ram.GetSamlProviders.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "samlProviderName", + /// }, + /// NameRegex = "tf-testAcc", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstRamSamlProviderId"] = example.Apply(getSamlProvidersResult => getSamlProvidersResult.Providers[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSamlProvidersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ram/getSamlProviders:getSamlProviders", args ?? new GetSamlProvidersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ram/GetUsers.cs b/sdk/dotnet/Ram/GetUsers.cs index ddf193fcb8..f38b2c2072 100644 --- a/sdk/dotnet/Ram/GetUsers.cs +++ b/sdk/dotnet/Ram/GetUsers.cs @@ -190,6 +190,96 @@ public static Task InvokeAsync(GetUsersArgs? args = null, Invoke /// public static Output Invoke(GetUsersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ram/getUsers:getUsers", args ?? new GetUsersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of RAM users in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available since v1.0.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = new AliCloud.Ram.Group("default", new() + /// { + /// Name = "group1", + /// Comments = "group comments", + /// Force = true, + /// }); + /// + /// var defaultUser = new AliCloud.Ram.User("default", new() + /// { + /// Name = "user-example", + /// DisplayName = "displayname", + /// Mobile = "86-18888888888", + /// Email = "hello.uuu@aaa.com", + /// Comments = "yoyoyo", + /// }); + /// + /// var defaultGroupMembership = new AliCloud.Ram.GroupMembership("default", new() + /// { + /// GroupName = @default.Name, + /// UserNames = new[] + /// { + /// defaultUser.Name, + /// }, + /// }); + /// + /// var defaultPolicy = new AliCloud.Ram.Policy("default", new() + /// { + /// PolicyName = "ram-policy-example", + /// PolicyDocument = @" { + /// ""Statement"": [ + /// { + /// ""Action"": [ + /// ""oss:ListObjects"", + /// ""oss:ListObjects"" + /// ], + /// ""Effect"": ""Deny"", + /// ""Resource"": [ + /// ""acs:oss:*:*:mybucket"", + /// ""acs:oss:*:*:mybucket/*"" + /// ] + /// } + /// ], + /// ""Version"": ""1"" + /// } + /// ", + /// Description = "this is a policy example", + /// Force = true, + /// }); + /// + /// var defaultUserPolicyAttachment = new AliCloud.Ram.UserPolicyAttachment("default", new() + /// { + /// PolicyName = defaultPolicy.PolicyName, + /// UserName = defaultUser.Name, + /// PolicyType = defaultPolicy.Type, + /// }); + /// + /// var usersDs = AliCloud.Ram.GetUsers.Invoke(new() + /// { + /// OutputFile = "users.txt", + /// GroupName = @default.Name, + /// PolicyName = defaultPolicy.PolicyName, + /// PolicyType = "Custom", + /// NameRegex = defaultUser.Name, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstUserId"] = usersDs.Apply(getUsersResult => getUsersResult.Users[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetUsersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ram/getUsers:getUsers", args ?? new GetUsersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Rdc/GetOrganizations.cs b/sdk/dotnet/Rdc/GetOrganizations.cs index 09e0326260..5af41e34eb 100644 --- a/sdk/dotnet/Rdc/GetOrganizations.cs +++ b/sdk/dotnet/Rdc/GetOrganizations.cs @@ -108,6 +108,55 @@ public static Task InvokeAsync(GetOrganizationsArgs? arg /// public static Output Invoke(GetOrganizationsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:rdc/getOrganizations:getOrganizations", args ?? new GetOrganizationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Rdc Organizations of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.137.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "tf-testAccOrganizations-Organizations"; + /// var @default = new AliCloud.Rdc.Organization("default", new() + /// { + /// OrganizationName = name, + /// Source = name, + /// }); + /// + /// var ids = AliCloud.Rdc.GetOrganizations.Invoke(new() + /// { + /// Ids = new[] + /// { + /// @default.Id, + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Rdc.GetOrganizations.Invoke(new() + /// { + /// NameRegex = "^my-Organization", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["rdcOrganizationId1"] = ids.Apply(getOrganizationsResult => getOrganizationsResult.Id), + /// ["rdcOrganizationId2"] = nameRegex.Apply(getOrganizationsResult => getOrganizationsResult.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetOrganizationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:rdc/getOrganizations:getOrganizations", args ?? new GetOrganizationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Rds/GetAccounts.cs b/sdk/dotnet/Rds/GetAccounts.cs index 21dac19868..5a497c8021 100644 --- a/sdk/dotnet/Rds/GetAccounts.cs +++ b/sdk/dotnet/Rds/GetAccounts.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetAccountsArgs args, InvokeOp /// public static Output Invoke(GetAccountsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getAccounts:getAccounts", args ?? new GetAccountsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Rds Accounts of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.120.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Rds.GetAccounts.Invoke(new() + /// { + /// DbInstanceId = "example_value", + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstRdsAccountId"] = example.Apply(getAccountsResult => getAccountsResult.Accounts[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAccountsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getAccounts:getAccounts", args ?? new GetAccountsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Rds/GetCharacterSetNames.cs b/sdk/dotnet/Rds/GetCharacterSetNames.cs index 91db08d77e..e194f21f8a 100644 --- a/sdk/dotnet/Rds/GetCharacterSetNames.cs +++ b/sdk/dotnet/Rds/GetCharacterSetNames.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetCharacterSetNamesA /// public static Output Invoke(GetCharacterSetNamesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getCharacterSetNames:getCharacterSetNames", args ?? new GetCharacterSetNamesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source is the character set supported by querying RDS instances. + /// + /// > **NOTE:** Available in v1.198.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var names = AliCloud.Rds.GetCharacterSetNames.Invoke(new() + /// { + /// Engine = "MySQL", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstRdsCharacterSetNames"] = names.Apply(getCharacterSetNamesResult => getCharacterSetNamesResult.Names[0]), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetCharacterSetNamesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getCharacterSetNames:getCharacterSetNames", args ?? new GetCharacterSetNamesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Rds/GetClassDetails.cs b/sdk/dotnet/Rds/GetClassDetails.cs index 14b6d9b297..f1512c68ba 100644 --- a/sdk/dotnet/Rds/GetClassDetails.cs +++ b/sdk/dotnet/Rds/GetClassDetails.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetClassDetailsArgs args, /// public static Output Invoke(GetClassDetailsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getClassDetails:getClassDetails", args ?? new GetClassDetailsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides details of the Rds specifications of current Alibaba Cloud users. + /// + /// For information on RDS class details and how to use it, please refer to [What is RDS class details](https://www.alibabacloud.com/help/en/rds/developer-reference/api-rds-2014-08-15-describeclassdetails). + /// + /// > **NOTE:** Available since v1.209.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Rds.GetClassDetails.Invoke(new() + /// { + /// CommodityCode = "bards", + /// ClassCode = "mysql.n4.medium.2c", + /// EngineVersion = "8.0", + /// Engine = "MySQL", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetClassDetailsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getClassDetails:getClassDetails", args ?? new GetClassDetailsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Rds/GetCollationTimeZones.cs b/sdk/dotnet/Rds/GetCollationTimeZones.cs index b3276f144f..5f15c889e6 100644 --- a/sdk/dotnet/Rds/GetCollationTimeZones.cs +++ b/sdk/dotnet/Rds/GetCollationTimeZones.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetCollationTimeZone /// public static Output Invoke(GetCollationTimeZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getCollationTimeZones:getCollationTimeZones", args ?? new GetCollationTimeZonesInvokeArgs(), options.WithDefaults()); + + /// + /// Operation to query the character set collations and time zones available for use in ApsaraDB RDS. + /// + /// > **NOTE:** Available in v1.198.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var zones = AliCloud.Rds.GetCollationTimeZones.Invoke(new() + /// { + /// OutputFile = "./classes.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstRdsCollationTimeZones"] = zones.Apply(getCollationTimeZonesResult => getCollationTimeZonesResult.CollationTimeZones[0]), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetCollationTimeZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getCollationTimeZones:getCollationTimeZones", args ?? new GetCollationTimeZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Rds/GetCrossRegionBackups.cs b/sdk/dotnet/Rds/GetCrossRegionBackups.cs index e9518737c8..14d02eb857 100644 --- a/sdk/dotnet/Rds/GetCrossRegionBackups.cs +++ b/sdk/dotnet/Rds/GetCrossRegionBackups.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetCrossRegionBackup /// public static Output Invoke(GetCrossRegionBackupsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getCrossRegionBackups:getCrossRegionBackups", args ?? new GetCrossRegionBackupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Rds Parameter Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.196.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var backups = AliCloud.Rds.GetCrossRegionBackups.Invoke(new() + /// { + /// DbInstanceId = "example_value", + /// StartTime = "2022-12-01T00:00:00Z", + /// EndTime = "2022-12-16T00:00:00Z", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstRdsCrossRegionBackups"] = backups.Apply(getCrossRegionBackupsResult => getCrossRegionBackupsResult.Backups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetCrossRegionBackupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getCrossRegionBackups:getCrossRegionBackups", args ?? new GetCrossRegionBackupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Rds/GetCrossRegions.cs b/sdk/dotnet/Rds/GetCrossRegions.cs index 7e8d173bbf..4aac570349 100644 --- a/sdk/dotnet/Rds/GetCrossRegions.cs +++ b/sdk/dotnet/Rds/GetCrossRegions.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetCrossRegionsArgs? args /// public static Output Invoke(GetCrossRegionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getCrossRegions:getCrossRegions", args ?? new GetCrossRegionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides an available area for remote disaster recovery for RDS. + /// + /// > **NOTE:** Available in v1.193.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Declare the data source + /// var crossRegions = AliCloud.Rds.GetCrossRegions.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstRdsCrossRegions"] = regions.Ids[0], + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetCrossRegionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getCrossRegions:getCrossRegions", args ?? new GetCrossRegionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Rds/GetInstanceClassInfos.cs b/sdk/dotnet/Rds/GetInstanceClassInfos.cs index a95000b549..aaa6df8865 100644 --- a/sdk/dotnet/Rds/GetInstanceClassInfos.cs +++ b/sdk/dotnet/Rds/GetInstanceClassInfos.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetInstanceClassInfo /// public static Output Invoke(GetInstanceClassInfosInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getInstanceClassInfos:getInstanceClassInfos", args ?? new GetInstanceClassInfosInvokeArgs(), options.WithDefaults()); + + /// + /// This data source operation to query the instance types that are available to specific instances of Alibaba Cloud. + /// + /// > **NOTE:** Available in v1.196.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var resources = AliCloud.Rds.GetInstanceClassInfos.Invoke(new() + /// { + /// CommodityCode = "bards", + /// OrderType = "BUY", + /// OutputFile = "./classes.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstDbInstanceClass"] = resources.Apply(getInstanceClassInfosResult => getInstanceClassInfosResult.Infos[0]), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceClassInfosInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getInstanceClassInfos:getInstanceClassInfos", args ?? new GetInstanceClassInfosInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Rds/GetInstanceClasses.cs b/sdk/dotnet/Rds/GetInstanceClasses.cs index 655f624eb8..b4b9f2d4f7 100644 --- a/sdk/dotnet/Rds/GetInstanceClasses.cs +++ b/sdk/dotnet/Rds/GetInstanceClasses.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetInstanceClassesArgs? /// public static Output Invoke(GetInstanceClassesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getInstanceClasses:getInstanceClasses", args ?? new GetInstanceClassesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the RDS instance classes resource available info of Alibaba Cloud. + /// + /// > **NOTE:** Available in v1.46.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var resources = AliCloud.Rds.GetInstanceClasses.Invoke(new() + /// { + /// InstanceChargeType = "PostPaid", + /// Engine = "MySQL", + /// EngineVersion = "5.6", + /// OutputFile = "./classes.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstDbInstanceClass"] = resources.Apply(getInstanceClassesResult => getInstanceClassesResult.InstanceClasses[0]?.InstanceClass), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceClassesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getInstanceClasses:getInstanceClasses", args ?? new GetInstanceClassesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Rds/GetInstanceEngines.cs b/sdk/dotnet/Rds/GetInstanceEngines.cs index 9680c37a13..1808a40423 100644 --- a/sdk/dotnet/Rds/GetInstanceEngines.cs +++ b/sdk/dotnet/Rds/GetInstanceEngines.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetInstanceEnginesArgs? /// public static Output Invoke(GetInstanceEnginesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getInstanceEngines:getInstanceEngines", args ?? new GetInstanceEnginesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the RDS instance engines resource available info of Alibaba Cloud. + /// + /// > **NOTE:** Available in v1.46.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var resources = AliCloud.Rds.GetInstanceEngines.Invoke(new() + /// { + /// InstanceChargeType = "PostPaid", + /// Engine = "MySQL", + /// EngineVersion = "5.6", + /// OutputFile = "./engines.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstDbCategory"] = resources.Apply(getInstanceEnginesResult => getInstanceEnginesResult.InstanceEngines[0]?.Category), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceEnginesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getInstanceEngines:getInstanceEngines", args ?? new GetInstanceEnginesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Rds/GetInstances.cs b/sdk/dotnet/Rds/GetInstances.cs index 8705d71c08..23e2552d6b 100644 --- a/sdk/dotnet/Rds/GetInstances.cs +++ b/sdk/dotnet/Rds/GetInstances.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// The `alicloud.rds.getInstances` data source provides a collection of RDS instances available in Alibaba Cloud account. + /// Filters support regular expression for the instance name, searches by tags, and other filters which are listed below. + /// + /// > **NOTE:** Available since v1.7.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var dbInstancesDs = AliCloud.Rds.GetInstances.Invoke(new() + /// { + /// NameRegex = "data-\\d+", + /// Status = "Running", + /// Tags = + /// { + /// { "type", "database" }, + /// { "size", "tiny" }, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstDbInstanceId"] = dbInstancesDs.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Rds/GetModifyParameterLogs.cs b/sdk/dotnet/Rds/GetModifyParameterLogs.cs index 47dfe7f459..9303d2d15f 100644 --- a/sdk/dotnet/Rds/GetModifyParameterLogs.cs +++ b/sdk/dotnet/Rds/GetModifyParameterLogs.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetModifyParameterL /// public static Output Invoke(GetModifyParameterLogsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getModifyParameterLogs:getModifyParameterLogs", args ?? new GetModifyParameterLogsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Rds Modify Parameter Logs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.174.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Rds.GetModifyParameterLogs.Invoke(new() + /// { + /// DbInstanceId = "example_value", + /// StartTime = "2022-06-04T13:56Z", + /// EndTime = "2022-06-08T13:56Z", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetModifyParameterLogsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getModifyParameterLogs:getModifyParameterLogs", args ?? new GetModifyParameterLogsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Rds/GetRdsBackups.cs b/sdk/dotnet/Rds/GetRdsBackups.cs index fd1179706a..130e949a99 100644 --- a/sdk/dotnet/Rds/GetRdsBackups.cs +++ b/sdk/dotnet/Rds/GetRdsBackups.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetRdsBackupsArgs args, Invo /// public static Output Invoke(GetRdsBackupsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getRdsBackups:getRdsBackups", args ?? new GetRdsBackupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Rds Backups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.149.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Rds.GetRdsBackups.Invoke(new() + /// { + /// DbInstanceId = "example_value", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstRdsBackupId"] = example.Apply(getRdsBackupsResult => getRdsBackupsResult.Backups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRdsBackupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getRdsBackups:getRdsBackups", args ?? new GetRdsBackupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Rds/GetRdsParameterGroups.cs b/sdk/dotnet/Rds/GetRdsParameterGroups.cs index 4a219793d1..9c2bde1091 100644 --- a/sdk/dotnet/Rds/GetRdsParameterGroups.cs +++ b/sdk/dotnet/Rds/GetRdsParameterGroups.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetRdsParameterGroup public static Output Invoke(GetRdsParameterGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getRdsParameterGroups:getRdsParameterGroups", args ?? new GetRdsParameterGroupsInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetRdsParameterGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getRdsParameterGroups:getRdsParameterGroups", args ?? new GetRdsParameterGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Rds/GetSlots.cs b/sdk/dotnet/Rds/GetSlots.cs index 8baab1b00a..9a0bdf1c70 100644 --- a/sdk/dotnet/Rds/GetSlots.cs +++ b/sdk/dotnet/Rds/GetSlots.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetSlotsArgs args, InvokeOptions? /// public static Output Invoke(GetSlotsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getSlots:getSlots", args ?? new GetSlotsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Rds Replication Slots of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.204.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Rds.GetSlots.Invoke(new() + /// { + /// DbInstanceId = "example_value", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstRdsSlotsName"] = example.Apply(getSlotsResult => getSlotsResult.Slots[0]?.SlotName), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSlotsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getSlots:getSlots", args ?? new GetSlotsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Rds/GetZones.cs b/sdk/dotnet/Rds/GetZones.cs index 66955964f6..18376321ee 100644 --- a/sdk/dotnet/Rds/GetZones.cs +++ b/sdk/dotnet/Rds/GetZones.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides availability zones for RDS that can be accessed by an Alibaba Cloud account within the region configured in the provider. + /// + /// > **NOTE:** Available since v1.73.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Rds.GetZones.Invoke(new() + /// { + /// Engine = "MySQL", + /// EngineVersion = "8.0", + /// InstanceChargeType = "PostPaid", + /// Category = "Basic", + /// DbInstanceStorageType = "cloud_essd", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:rds/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ResourceManager/GetAccountDeletionCheckTask.cs b/sdk/dotnet/ResourceManager/GetAccountDeletionCheckTask.cs index fd97dc759e..a11c0c3ecf 100644 --- a/sdk/dotnet/ResourceManager/GetAccountDeletionCheckTask.cs +++ b/sdk/dotnet/ResourceManager/GetAccountDeletionCheckTask.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetAccountDele /// public static Output Invoke(GetAccountDeletionCheckTaskInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getAccountDeletionCheckTask:getAccountDeletionCheckTask", args ?? new GetAccountDeletionCheckTaskInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open Resource Manager Account Deletion Check Task. + /// + /// For information about Resource Manager Account Deletion Check Task and how to use it, see [What is Resource Manager Account Deletion Check Task](https://www.alibabacloud.com/help/en/resource-management/latest/check-account-delete). + /// + /// > **NOTE:** Available in v1.187.0+. + /// + /// > **NOTE:** The member deletion feature is in invitational preview. You can contact the service manager of Alibaba Cloud to apply for a trial. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var task = AliCloud.ResourceManager.GetAccountDeletionCheckTask.Invoke(new() + /// { + /// AccountId = "your_account_id", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["abandonAbleChecksIds"] = task.Apply(getAccountDeletionCheckTaskResult => getAccountDeletionCheckTaskResult.AbandonAbleChecks).Select(__item => __item.CheckId).ToList(), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAccountDeletionCheckTaskInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getAccountDeletionCheckTask:getAccountDeletionCheckTask", args ?? new GetAccountDeletionCheckTaskInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ResourceManager/GetAccounts.cs b/sdk/dotnet/ResourceManager/GetAccounts.cs index d51914cf52..53b8483211 100644 --- a/sdk/dotnet/ResourceManager/GetAccounts.cs +++ b/sdk/dotnet/ResourceManager/GetAccounts.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetAccountsArgs? args = null, /// public static Output Invoke(GetAccountsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getAccounts:getAccounts", args ?? new GetAccountsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Resource Manager Accounts of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in 1.86.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ResourceManager.GetAccounts.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstAccountId"] = @default.Apply(@default => @default.Apply(getAccountsResult => getAccountsResult.Accounts[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAccountsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getAccounts:getAccounts", args ?? new GetAccountsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ResourceManager/GetControlPolicies.cs b/sdk/dotnet/ResourceManager/GetControlPolicies.cs index 39d2b44799..c56746195a 100644 --- a/sdk/dotnet/ResourceManager/GetControlPolicies.cs +++ b/sdk/dotnet/ResourceManager/GetControlPolicies.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetControlPoliciesArgs? /// public static Output Invoke(GetControlPoliciesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getControlPolicies:getControlPolicies", args ?? new GetControlPoliciesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Resource Manager Control Policies of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.120.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.ResourceManager.GetControlPolicies.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstResourceManagerControlPolicyId"] = example.Apply(getControlPoliciesResult => getControlPoliciesResult.Policies[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetControlPoliciesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getControlPolicies:getControlPolicies", args ?? new GetControlPoliciesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ResourceManager/GetControlPolicyAttachments.cs b/sdk/dotnet/ResourceManager/GetControlPolicyAttachments.cs index 55375c9203..3078876b43 100644 --- a/sdk/dotnet/ResourceManager/GetControlPolicyAttachments.cs +++ b/sdk/dotnet/ResourceManager/GetControlPolicyAttachments.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetControlPoli /// public static Output Invoke(GetControlPolicyAttachmentsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getControlPolicyAttachments:getControlPolicyAttachments", args ?? new GetControlPolicyAttachmentsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Resource Manager Control Policy Attachments of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.120.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.ResourceManager.GetControlPolicyAttachments.Invoke(new() + /// { + /// TargetId = "example_value", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstResourceManagerControlPolicyAttachmentId"] = example.Apply(getControlPolicyAttachmentsResult => getControlPolicyAttachmentsResult.Attachments[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetControlPolicyAttachmentsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getControlPolicyAttachments:getControlPolicyAttachments", args ?? new GetControlPolicyAttachmentsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ResourceManager/GetDelegatedAdministrators.cs b/sdk/dotnet/ResourceManager/GetDelegatedAdministrators.cs index 0cdfc0a367..ca05f2e665 100644 --- a/sdk/dotnet/ResourceManager/GetDelegatedAdministrators.cs +++ b/sdk/dotnet/ResourceManager/GetDelegatedAdministrators.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetDelegatedAdm /// public static Output Invoke(GetDelegatedAdministratorsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getDelegatedAdministrators:getDelegatedAdministrators", args ?? new GetDelegatedAdministratorsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Resource Manager Delegated Administrators of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.181.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.ResourceManager.GetDelegatedAdministrators.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["resourceManagerDelegatedAdministratorId1"] = ids.Apply(getDelegatedAdministratorsResult => getDelegatedAdministratorsResult.Administrators[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDelegatedAdministratorsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getDelegatedAdministrators:getDelegatedAdministrators", args ?? new GetDelegatedAdministratorsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ResourceManager/GetFolders.cs b/sdk/dotnet/ResourceManager/GetFolders.cs index e8fad32224..c3f07f254d 100644 --- a/sdk/dotnet/ResourceManager/GetFolders.cs +++ b/sdk/dotnet/ResourceManager/GetFolders.cs @@ -94,6 +94,48 @@ public static Task InvokeAsync(GetFoldersArgs? args = null, In /// public static Output Invoke(GetFoldersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getFolders:getFolders", args ?? new GetFoldersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Resource Manager Folders of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.84.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "terraform-example"; + /// var @default = new AliCloud.ResourceManager.Folder("default", new() + /// { + /// FolderName = name, + /// }); + /// + /// var ids = AliCloud.ResourceManager.GetFolders.Invoke(new() + /// { + /// Ids = new[] + /// { + /// @default.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["resourceManagerFolderId0"] = ids.Apply(getFoldersResult => getFoldersResult.Folders[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetFoldersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getFolders:getFolders", args ?? new GetFoldersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ResourceManager/GetHandshakes.cs b/sdk/dotnet/ResourceManager/GetHandshakes.cs index 085296e2dd..c6f75d0a85 100644 --- a/sdk/dotnet/ResourceManager/GetHandshakes.cs +++ b/sdk/dotnet/ResourceManager/GetHandshakes.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetHandshakesArgs? args = nu /// public static Output Invoke(GetHandshakesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getHandshakes:getHandshakes", args ?? new GetHandshakesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Resource Manager Handshakes of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in 1.86.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.ResourceManager.GetHandshakes.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstHandshakeId"] = example.Apply(getHandshakesResult => getHandshakesResult.Handshakes[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetHandshakesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getHandshakes:getHandshakes", args ?? new GetHandshakesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ResourceManager/GetPolicies.cs b/sdk/dotnet/ResourceManager/GetPolicies.cs index d9ee065614..fb34f79417 100644 --- a/sdk/dotnet/ResourceManager/GetPolicies.cs +++ b/sdk/dotnet/ResourceManager/GetPolicies.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetPoliciesArgs? args = null, /// public static Output Invoke(GetPoliciesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getPolicies:getPolicies", args ?? new GetPoliciesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Resource Manager Policies of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in 1.86.0+. + /// + public static Output Invoke(GetPoliciesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getPolicies:getPolicies", args ?? new GetPoliciesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ResourceManager/GetPolicyAttachments.cs b/sdk/dotnet/ResourceManager/GetPolicyAttachments.cs index 3979956f40..afabd00aa6 100644 --- a/sdk/dotnet/ResourceManager/GetPolicyAttachments.cs +++ b/sdk/dotnet/ResourceManager/GetPolicyAttachments.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetPolicyAttachmentsA /// public static Output Invoke(GetPolicyAttachmentsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getPolicyAttachments:getPolicyAttachments", args ?? new GetPolicyAttachmentsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Resource Manager Policy Attachments of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in 1.93.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.ResourceManager.GetPolicyAttachments.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstAttachmentId"] = example.Apply(getPolicyAttachmentsResult => getPolicyAttachmentsResult.Attachments[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetPolicyAttachmentsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getPolicyAttachments:getPolicyAttachments", args ?? new GetPolicyAttachmentsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ResourceManager/GetPolicyVersions.cs b/sdk/dotnet/ResourceManager/GetPolicyVersions.cs index e4bd10be70..79760dcedc 100644 --- a/sdk/dotnet/ResourceManager/GetPolicyVersions.cs +++ b/sdk/dotnet/ResourceManager/GetPolicyVersions.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetPolicyVersionsArgs ar /// public static Output Invoke(GetPolicyVersionsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getPolicyVersions:getPolicyVersions", args ?? new GetPolicyVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Resource Manager Policy Versions of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in 1.85.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ResourceManager.GetPolicyVersions.Invoke(new() + /// { + /// PolicyName = "tftest", + /// PolicyType = "Custom", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstPolicyVersionId"] = @default.Apply(@default => @default.Apply(getPolicyVersionsResult => getPolicyVersionsResult.Versions[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetPolicyVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getPolicyVersions:getPolicyVersions", args ?? new GetPolicyVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ResourceManager/GetResourceDirectories.cs b/sdk/dotnet/ResourceManager/GetResourceDirectories.cs index 06c5b4fa79..49bf3f870b 100644 --- a/sdk/dotnet/ResourceManager/GetResourceDirectories.cs +++ b/sdk/dotnet/ResourceManager/GetResourceDirectories.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetResourceDirector /// public static Output Invoke(GetResourceDirectoriesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getResourceDirectories:getResourceDirectories", args ?? new GetResourceDirectoriesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Resource Manager Resource Directories of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in 1.86.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ResourceManager.GetResourceDirectories.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["resourceDirectoryId"] = @default.Apply(@default => @default.Apply(getResourceDirectoriesResult => getResourceDirectoriesResult.Directories[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetResourceDirectoriesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getResourceDirectories:getResourceDirectories", args ?? new GetResourceDirectoriesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ResourceManager/GetResourceGroups.cs b/sdk/dotnet/ResourceManager/GetResourceGroups.cs index 6c5ea4ee69..53e85801c5 100644 --- a/sdk/dotnet/ResourceManager/GetResourceGroups.cs +++ b/sdk/dotnet/ResourceManager/GetResourceGroups.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetResourceGroupsArgs? a /// public static Output Invoke(GetResourceGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getResourceGroups:getResourceGroups", args ?? new GetResourceGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides resource groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.84.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.ResourceManager.GetResourceGroups.Invoke(new() + /// { + /// NameRegex = "tf", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstResourceGroupId"] = example.Apply(getResourceGroupsResult => getResourceGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetResourceGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getResourceGroups:getResourceGroups", args ?? new GetResourceGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ResourceManager/GetResourceShares.cs b/sdk/dotnet/ResourceManager/GetResourceShares.cs index 28d3fd9c62..7f00dd0486 100644 --- a/sdk/dotnet/ResourceManager/GetResourceShares.cs +++ b/sdk/dotnet/ResourceManager/GetResourceShares.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetResourceSharesArgs ar /// public static Output Invoke(GetResourceSharesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getResourceShares:getResourceShares", args ?? new GetResourceSharesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Resource Manager Resource Shares of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.111.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.ResourceManager.GetResourceShares.Invoke(new() + /// { + /// ResourceShareOwner = "Self", + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstResourceManagerResourceShareId"] = example.Apply(getResourceSharesResult => getResourceSharesResult.Shares[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetResourceSharesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getResourceShares:getResourceShares", args ?? new GetResourceSharesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ResourceManager/GetRoles.cs b/sdk/dotnet/ResourceManager/GetRoles.cs index f9fb976247..2f549edf67 100644 --- a/sdk/dotnet/ResourceManager/GetRoles.cs +++ b/sdk/dotnet/ResourceManager/GetRoles.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetRolesArgs? args = null, Invoke /// public static Output Invoke(GetRolesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getRoles:getRoles", args ?? new GetRolesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Resource Manager Roles of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in 1.86.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.ResourceManager.GetRoles.Invoke(new() + /// { + /// NameRegex = "tftest", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstRoleId"] = example.Apply(getRolesResult => getRolesResult.Roles[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRolesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getRoles:getRoles", args ?? new GetRolesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ResourceManager/GetSharedResources.cs b/sdk/dotnet/ResourceManager/GetSharedResources.cs index 524caa00bd..5654d12a75 100644 --- a/sdk/dotnet/ResourceManager/GetSharedResources.cs +++ b/sdk/dotnet/ResourceManager/GetSharedResources.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetSharedResourcesArgs? /// public static Output Invoke(GetSharedResourcesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getSharedResources:getSharedResources", args ?? new GetSharedResourcesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Resource Manager Shared Resources of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.111.0. + /// + public static Output Invoke(GetSharedResourcesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getSharedResources:getSharedResources", args ?? new GetSharedResourcesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ResourceManager/GetSharedTargets.cs b/sdk/dotnet/ResourceManager/GetSharedTargets.cs index 90fce96020..1e4bf5ce67 100644 --- a/sdk/dotnet/ResourceManager/GetSharedTargets.cs +++ b/sdk/dotnet/ResourceManager/GetSharedTargets.cs @@ -122,6 +122,62 @@ public static Task InvokeAsync(GetSharedTargetsArgs? arg /// public static Output Invoke(GetSharedTargetsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getSharedTargets:getSharedTargets", args ?? new GetSharedTargetsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Resource Manager Shared Targets of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.111.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "tf-example"; + /// var @default = AliCloud.ResourceManager.GetAccounts.Invoke(); + /// + /// var defaultResourceShare = new AliCloud.ResourceManager.ResourceShare("default", new() + /// { + /// ResourceShareName = name, + /// }); + /// + /// var defaultSharedTarget = new AliCloud.ResourceManager.SharedTarget("default", new() + /// { + /// ResourceShareId = defaultResourceShare.Id, + /// TargetId = @default.Apply(@default => @default.Apply(getAccountsResult => getAccountsResult.Ids[0])), + /// }); + /// + /// var ids = AliCloud.ResourceManager.GetSharedTargets.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultSharedTarget.TargetId, + /// }, + /// }); + /// + /// var resourceShareId = AliCloud.ResourceManager.GetSharedTargets.Invoke(new() + /// { + /// ResourceShareId = defaultSharedTarget.ResourceShareId, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstResourceManagerSharedTargetId"] = ids.Apply(getSharedTargetsResult => getSharedTargetsResult.Targets[0]?.Id), + /// ["secondResourceManagerSharedTargetId"] = resourceShareId.Apply(getSharedTargetsResult => getSharedTargetsResult.Targets[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSharedTargetsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:resourcemanager/getSharedTargets:getSharedTargets", args ?? new GetSharedTargetsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/RocketMQ/GetGroups.cs b/sdk/dotnet/RocketMQ/GetGroups.cs index 90982d0db3..cb213af378 100644 --- a/sdk/dotnet/RocketMQ/GetGroups.cs +++ b/sdk/dotnet/RocketMQ/GetGroups.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetGroupsArgs args, InvokeOption /// public static Output Invoke(GetGroupsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:rocketmq/getGroups:getGroups", args ?? new GetGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of ONS Groups in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in 1.53.0+ + /// + /// ## Example Usage + /// + /// ```terraform + /// variable "name" { + /// default = "onsInstanceName" + /// } + /// + /// variable "group_name" { + /// default = "GID-onsGroupDatasourceName" + /// } + /// + /// resource "alicloud_ons_instance" "default" { + /// instance_name = var.name + /// remark = "default_ons_instance_remark" + /// } + /// + /// resource "alicloud_ons_group" "default" { + /// group_name = var.group_name + /// instance_id = alicloud_ons_instance.default.id + /// remark = "dafault_ons_group_remark" + /// } + /// + /// data "alicloud_ons_groups" "groups_ds" { + /// instance_id = alicloud_ons_group.default.instance_id + /// name_regex = var.group_id + /// output_file = "groups.txt" + /// } + /// + /// output "first_group_name" { + /// value = data.alicloud_ons_groups.groups_ds.groups.0.group_name + /// } + /// ``` + /// + public static Output Invoke(GetGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:rocketmq/getGroups:getGroups", args ?? new GetGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/RocketMQ/GetInstances.cs b/sdk/dotnet/RocketMQ/GetInstances.cs index 10b79f2b9c..7372b41439 100644 --- a/sdk/dotnet/RocketMQ/GetInstances.cs +++ b/sdk/dotnet/RocketMQ/GetInstances.cs @@ -96,6 +96,49 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:rocketmq/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of ONS Instances in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in 1.52.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "onsInstanceDatasourceName"; + /// var @default = new AliCloud.RocketMQ.Instance("default", new() + /// { + /// Name = name, + /// Remark = "default_ons_instance_remark", + /// }); + /// + /// var instancesDs = AliCloud.RocketMQ.GetInstances.Invoke(new() + /// { + /// Ids = new[] + /// { + /// @default.Id, + /// }, + /// NameRegex = @default.Name, + /// OutputFile = "instances.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstInstanceId"] = instancesDs.Apply(getInstancesResult => getInstancesResult.Instances[0]?.InstanceId), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:rocketmq/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/RocketMQ/GetService.cs b/sdk/dotnet/RocketMQ/GetService.cs index 608a6686fd..8aae7e4e20 100644 --- a/sdk/dotnet/RocketMQ/GetService.cs +++ b/sdk/dotnet/RocketMQ/GetService.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:rocketmq/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open ONS service automatically. If the service has been opened, it will return opened. + /// + /// For information about ONS and how to use it, see [What is ONS](https://help.aliyun.com/product/29530.html). + /// + /// > **NOTE:** Available in v1.111.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.RocketMQ.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:rocketmq/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/RocketMQ/GetTopics.cs b/sdk/dotnet/RocketMQ/GetTopics.cs index df934ecd38..c1d511d5dd 100644 --- a/sdk/dotnet/RocketMQ/GetTopics.cs +++ b/sdk/dotnet/RocketMQ/GetTopics.cs @@ -108,6 +108,55 @@ public static Task InvokeAsync(GetTopicsArgs args, InvokeOption /// public static Output Invoke(GetTopicsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:rocketmq/getTopics:getTopics", args ?? new GetTopicsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of ONS Topics in an Alibaba Cloud account according to the specified filters. + /// + /// > **NOTE:** Available in 1.53.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "onsInstanceName"; + /// var topic = config.Get("topic") ?? "onsTopicDatasourceName"; + /// var @default = new AliCloud.RocketMQ.Instance("default", new() + /// { + /// InstanceName = name, + /// Remark = "default_ons_instance_remark", + /// }); + /// + /// var defaultTopic = new AliCloud.RocketMQ.Topic("default", new() + /// { + /// TopicName = topic, + /// InstanceId = @default.Id, + /// MessageType = 0, + /// Remark = "dafault_ons_topic_remark", + /// }); + /// + /// var topicsDs = AliCloud.RocketMQ.GetTopics.Invoke(new() + /// { + /// InstanceId = defaultTopic.InstanceId, + /// NameRegex = topic, + /// OutputFile = "topics.txt", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstTopicName"] = topicsDs.Apply(getTopicsResult => getTopicsResult.Topics[0]?.TopicName), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTopicsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:rocketmq/getTopics:getTopics", args ?? new GetTopicsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ros/GetChangeSets.cs b/sdk/dotnet/Ros/GetChangeSets.cs index bfba431fb9..747c237095 100644 --- a/sdk/dotnet/Ros/GetChangeSets.cs +++ b/sdk/dotnet/Ros/GetChangeSets.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetChangeSetsArgs args, Invo /// public static Output Invoke(GetChangeSetsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ros/getChangeSets:getChangeSets", args ?? new GetChangeSetsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ros Change Sets of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.105.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Ros.GetChangeSets.Invoke(new() + /// { + /// StackId = "example_value", + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstRosChangeSetId"] = example.Apply(getChangeSetsResult => getChangeSetsResult.Sets[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetChangeSetsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ros/getChangeSets:getChangeSets", args ?? new GetChangeSetsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ros/GetRegions.cs b/sdk/dotnet/Ros/GetRegions.cs index d761f08163..23b9392dcf 100644 --- a/sdk/dotnet/Ros/GetRegions.cs +++ b/sdk/dotnet/Ros/GetRegions.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetRegionsArgs? args = null, In /// public static Output Invoke(GetRegionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ros/getRegions:getRegions", args ?? new GetRegionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ros Regions of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.145.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var all = AliCloud.Ros.GetRegions.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["rosRegionRegionId1"] = all.Apply(getRegionsResult => getRegionsResult.Regions[0]?.RegionId), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRegionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ros/getRegions:getRegions", args ?? new GetRegionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ros/GetStackGroups.cs b/sdk/dotnet/Ros/GetStackGroups.cs index 53ea8027fb..a2db6b8475 100644 --- a/sdk/dotnet/Ros/GetStackGroups.cs +++ b/sdk/dotnet/Ros/GetStackGroups.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetStackGroupsArgs? args = /// public static Output Invoke(GetStackGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ros/getStackGroups:getStackGroups", args ?? new GetStackGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ros Stack Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.107.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Ros.GetStackGroups.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstRosStackGroupId"] = example.Apply(getStackGroupsResult => getStackGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetStackGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ros/getStackGroups:getStackGroups", args ?? new GetStackGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ros/GetStackInstances.cs b/sdk/dotnet/Ros/GetStackInstances.cs index 088476f3bf..a1654e9c19 100644 --- a/sdk/dotnet/Ros/GetStackInstances.cs +++ b/sdk/dotnet/Ros/GetStackInstances.cs @@ -134,6 +134,68 @@ public static Task InvokeAsync(GetStackInstancesArgs ar /// public static Output Invoke(GetStackInstancesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ros/getStackInstances:getStackInstances", args ?? new GetStackInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ros Stack Instances of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.145.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ros.GetStackInstances.Invoke(new() + /// { + /// StackGroupName = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// EnableDetails = true, + /// }); + /// + /// var status = AliCloud.Ros.GetStackInstances.Invoke(new() + /// { + /// StackGroupName = "example_value", + /// Status = "CURRENT", + /// EnableDetails = true, + /// }); + /// + /// var regionId = AliCloud.Ros.GetStackInstances.Invoke(new() + /// { + /// StackGroupName = "example_value", + /// StackInstanceRegionId = "example_value", + /// EnableDetails = true, + /// }); + /// + /// var accountId = AliCloud.Ros.GetStackInstances.Invoke(new() + /// { + /// StackGroupName = "example_value", + /// StackInstanceAccountId = "example_value", + /// EnableDetails = true, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["rosStackInstanceId1"] = ids.Apply(getStackInstancesResult => getStackInstancesResult.Instances[0]?.Id), + /// ["rosStackInstanceId2"] = status.Apply(getStackInstancesResult => getStackInstancesResult.Instances[0]?.Id), + /// ["rosStackInstanceId3"] = regionId.Apply(getStackInstancesResult => getStackInstancesResult.Instances[0]?.Id), + /// ["rosStackInstanceId4"] = accountId.Apply(getStackInstancesResult => getStackInstancesResult.Instances[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetStackInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ros/getStackInstances:getStackInstances", args ?? new GetStackInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ros/GetStacks.cs b/sdk/dotnet/Ros/GetStacks.cs index 81a96012d1..79b8c6812f 100644 --- a/sdk/dotnet/Ros/GetStacks.cs +++ b/sdk/dotnet/Ros/GetStacks.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetStacksArgs? args = null, Invo /// public static Output Invoke(GetStacksInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ros/getStacks:getStacks", args ?? new GetStacksInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ros Stacks of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.106.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Ros.GetStacks.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstRosStackId"] = example.Apply(getStacksResult => getStacksResult.Stacks[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetStacksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ros/getStacks:getStacks", args ?? new GetStacksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ros/GetTemplateScratches.cs b/sdk/dotnet/Ros/GetTemplateScratches.cs index aeab46eed7..7f9f557d57 100644 --- a/sdk/dotnet/Ros/GetTemplateScratches.cs +++ b/sdk/dotnet/Ros/GetTemplateScratches.cs @@ -104,6 +104,53 @@ public static Task InvokeAsync(GetTemplateScratchesA /// public static Output Invoke(GetTemplateScratchesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ros/getTemplateScratches:getTemplateScratches", args ?? new GetTemplateScratchesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ros Template Scratches of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.151.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Ros.GetTemplateScratches.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// }); + /// + /// var status = AliCloud.Ros.GetTemplateScratches.Invoke(new() + /// { + /// Status = "GENERATE_COMPLETE", + /// }); + /// + /// var templateScratchType = AliCloud.Ros.GetTemplateScratches.Invoke(new() + /// { + /// TemplateScratchType = "ResourceImport", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["rosTemplateScratchId1"] = ids.Apply(getTemplateScratchesResult => getTemplateScratchesResult.Scratches[0]?.Id), + /// ["rosTemplateScratchId2"] = status.Apply(getTemplateScratchesResult => getTemplateScratchesResult.Scratches[0]?.Id), + /// ["rosTemplateScratchId3"] = templateScratchType.Apply(getTemplateScratchesResult => getTemplateScratchesResult.Scratches[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTemplateScratchesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ros/getTemplateScratches:getTemplateScratches", args ?? new GetTemplateScratchesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Ros/GetTemplates.cs b/sdk/dotnet/Ros/GetTemplates.cs index 87c62ccce8..78914968ae 100644 --- a/sdk/dotnet/Ros/GetTemplates.cs +++ b/sdk/dotnet/Ros/GetTemplates.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetTemplatesArgs? args = null /// public static Output Invoke(GetTemplatesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:ros/getTemplates:getTemplates", args ?? new GetTemplatesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Ros Templates of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.108.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Ros.GetTemplates.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstRosTemplateId"] = example.Apply(getTemplatesResult => getTemplatesResult.Templates[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTemplatesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:ros/getTemplates:getTemplates", args ?? new GetTemplatesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sae/GetApplicationScalingRules.cs b/sdk/dotnet/Sae/GetApplicationScalingRules.cs index 0b66ecd6f9..a4e46b1ec5 100644 --- a/sdk/dotnet/Sae/GetApplicationScalingRules.cs +++ b/sdk/dotnet/Sae/GetApplicationScalingRules.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetApplicationS /// public static Output Invoke(GetApplicationScalingRulesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:sae/getApplicationScalingRules:getApplicationScalingRules", args ?? new GetApplicationScalingRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Sae Application Scaling Rules of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.159.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Sae.GetApplicationScalingRules.Invoke(new() + /// { + /// AppId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["saeApplicationScalingRuleId1"] = ids.Apply(getApplicationScalingRulesResult => getApplicationScalingRulesResult.Rules[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetApplicationScalingRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:sae/getApplicationScalingRules:getApplicationScalingRules", args ?? new GetApplicationScalingRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sae/GetApplications.cs b/sdk/dotnet/Sae/GetApplications.cs index 4fd5ddf913..4a4c961242 100644 --- a/sdk/dotnet/Sae/GetApplications.cs +++ b/sdk/dotnet/Sae/GetApplications.cs @@ -164,6 +164,83 @@ public static Task InvokeAsync(GetApplicationsArgs? args /// public static Output Invoke(GetApplicationsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:sae/getApplications:getApplications", args ?? new GetApplicationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Sae Applications of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.161.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "tf-testacc"; + /// var @default = AliCloud.GetZones.Invoke(new() + /// { + /// AvailableResourceCreation = "VSwitch", + /// }); + /// + /// var vpc = new AliCloud.Vpc.Network("vpc", new() + /// { + /// VpcName = "tf_testacc", + /// CidrBlock = "172.16.0.0/12", + /// }); + /// + /// var vsw = new AliCloud.Vpc.Switch("vsw", new() + /// { + /// VpcId = vpc.Id, + /// CidrBlock = "172.16.0.0/24", + /// ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)), + /// VswitchName = name, + /// }); + /// + /// var defaultNamespace = new AliCloud.Sae.Namespace("default", new() + /// { + /// NamespaceDescription = name, + /// NamespaceId = "cn-hangzhou:tfacctest", + /// NamespaceName = name, + /// }); + /// + /// var defaultApplication = new AliCloud.Sae.Application("default", new() + /// { + /// AppDescription = "tf-testaccDescription", + /// AppName = "tf-testaccAppName131", + /// NamespaceId = defaultNamespace.Id, + /// ImageUrl = "registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5", + /// PackageType = "Image", + /// VswitchId = vsw.Id, + /// Timezone = "Asia/Beijing", + /// Replicas = 5, + /// Cpu = 500, + /// Memory = 2048, + /// }); + /// + /// var defaultGetApplications = AliCloud.Sae.GetApplications.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultApplication.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["saeApplicationId"] = defaultGetApplications.Apply(getApplicationsResult => getApplicationsResult.Applications[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetApplicationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:sae/getApplications:getApplications", args ?? new GetApplicationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sae/GetConfigMaps.cs b/sdk/dotnet/Sae/GetConfigMaps.cs index c8dd7fce92..c907aee2c4 100644 --- a/sdk/dotnet/Sae/GetConfigMaps.cs +++ b/sdk/dotnet/Sae/GetConfigMaps.cs @@ -118,6 +118,60 @@ public static Task InvokeAsync(GetConfigMapsArgs args, Invo /// public static Output Invoke(GetConfigMapsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:sae/getConfigMaps:getConfigMaps", args ?? new GetConfigMapsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Sae Config Maps of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.130.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using System.Text.Json; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var configMapName = config.Get("configMapName") ?? "examplename"; + /// var example = new AliCloud.Sae.Namespace("example", new() + /// { + /// NamespaceId = "cn-hangzhou:yourname", + /// NamespaceName = "example_value", + /// NamespaceDescription = "your_description", + /// }); + /// + /// var exampleConfigMap = new AliCloud.Sae.ConfigMap("example", new() + /// { + /// Data = JsonSerializer.Serialize(new Dictionary<string, object?> + /// { + /// ["env.home"] = "/root", + /// ["env.shell"] = "/bin/sh", + /// }), + /// Name = configMapName, + /// NamespaceId = example.NamespaceId, + /// }); + /// + /// var nameRegex = AliCloud.Sae.GetConfigMaps.Invoke(new() + /// { + /// NamespaceId = example.NamespaceId, + /// NameRegex = "^example", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["saeConfigMapId"] = nameRegex.Apply(getConfigMapsResult => getConfigMapsResult.Maps[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetConfigMapsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:sae/getConfigMaps:getConfigMaps", args ?? new GetConfigMapsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sae/GetGreyTagRoutes.cs b/sdk/dotnet/Sae/GetGreyTagRoutes.cs index b39cc9325a..0fd1d7c529 100644 --- a/sdk/dotnet/Sae/GetGreyTagRoutes.cs +++ b/sdk/dotnet/Sae/GetGreyTagRoutes.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetGreyTagRoutesArgs args /// public static Output Invoke(GetGreyTagRoutesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:sae/getGreyTagRoutes:getGreyTagRoutes", args ?? new GetGreyTagRoutesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Sae GreyTagRoutes of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.160.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var nameRegex = AliCloud.Sae.GetGreyTagRoutes.Invoke(new() + /// { + /// AppId = "example_id", + /// NameRegex = "^my-GreyTagRoute", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["saeGreyTagRoutesId"] = nameRegex.Apply(getGreyTagRoutesResult => getGreyTagRoutesResult.Routes[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetGreyTagRoutesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:sae/getGreyTagRoutes:getGreyTagRoutes", args ?? new GetGreyTagRoutesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sae/GetIngresses.cs b/sdk/dotnet/Sae/GetIngresses.cs index 62854aab02..f20fea8d04 100644 --- a/sdk/dotnet/Sae/GetIngresses.cs +++ b/sdk/dotnet/Sae/GetIngresses.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetIngressesArgs args, Invoke /// public static Output Invoke(GetIngressesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:sae/getIngresses:getIngresses", args ?? new GetIngressesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Sae Ingresses of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.137.0+. + /// + public static Output Invoke(GetIngressesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:sae/getIngresses:getIngresses", args ?? new GetIngressesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sae/GetInstanceSpecifications.cs b/sdk/dotnet/Sae/GetInstanceSpecifications.cs index fe1b8928d1..ef02aef691 100644 --- a/sdk/dotnet/Sae/GetInstanceSpecifications.cs +++ b/sdk/dotnet/Sae/GetInstanceSpecifications.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetInstanceSpeci /// public static Output Invoke(GetInstanceSpecificationsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:sae/getInstanceSpecifications:getInstanceSpecifications", args ?? new GetInstanceSpecificationsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Sae Instance Specifications of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.139.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Sae.GetInstanceSpecifications.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["saeInstanceSpecificationId1"] = ids.Apply(getInstanceSpecificationsResult => getInstanceSpecificationsResult.Specifications[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceSpecificationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:sae/getInstanceSpecifications:getInstanceSpecifications", args ?? new GetInstanceSpecificationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sae/GetNamespaces.cs b/sdk/dotnet/Sae/GetNamespaces.cs index bf88e42620..3b2efe0671 100644 --- a/sdk/dotnet/Sae/GetNamespaces.cs +++ b/sdk/dotnet/Sae/GetNamespaces.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetNamespacesArgs? args = nu /// public static Output Invoke(GetNamespacesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:sae/getNamespaces:getNamespaces", args ?? new GetNamespacesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Sae Namespaces of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.129.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var nameRegex = AliCloud.Sae.GetNamespaces.Invoke(new() + /// { + /// NameRegex = "^my-Namespace", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["saeNamespaceId"] = nameRegex.Apply(getNamespacesResult => getNamespacesResult.Namespaces[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetNamespacesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:sae/getNamespaces:getNamespaces", args ?? new GetNamespacesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sae/GetService.cs b/sdk/dotnet/Sae/GetService.cs index b5d18d482d..d94e1c1812 100644 --- a/sdk/dotnet/Sae/GetService.cs +++ b/sdk/dotnet/Sae/GetService.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:sae/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open SAE service automatically. If the service has been opened, it will return opened. + /// + /// For information about SAE and how to use it, see [What is SAE](https://help.aliyun.com/document_detail/125720.html). + /// + /// > **NOTE:** Available in v1.120.0+ + /// + /// > **NOTE:** The SAE service is not support in the international site. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.Sae.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:sae/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sag/GetAcls.cs b/sdk/dotnet/Sag/GetAcls.cs index a532617450..cdeef271db 100644 --- a/sdk/dotnet/Sag/GetAcls.cs +++ b/sdk/dotnet/Sag/GetAcls.cs @@ -88,6 +88,45 @@ public static Task InvokeAsync(GetAclsArgs? args = null, InvokeOp /// public static Output Invoke(GetAclsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:sag/getAcls:getAcls", args ?? new GetAclsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Sag Acls available to the user. + /// + /// > **NOTE:** Available in 1.60.0+ + /// + /// > **NOTE:** Only the following regions support create Cloud Connect Network. [`cn-shanghai`, `cn-shanghai-finance-1`, `cn-hongkong`, `ap-southeast-1`, `ap-southeast-3`, `ap-southeast-5`, `ap-northeast-1`, `eu-central-1`] + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Sag.GetAcls.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAlicloudSagAcls.Id, + /// }, + /// NameRegex = "^tf-testAcc.*", + /// }); + /// + /// var defaultAcl = new AliCloud.RocketMQ.Acl("default", new() + /// { + /// Name = "tf-testAccSagAclName", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAclsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:sag/getAcls:getAcls", args ?? new GetAclsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sag/GetSmartagFlowLogs.cs b/sdk/dotnet/Sag/GetSmartagFlowLogs.cs index e79d93113a..e81d68b9e5 100644 --- a/sdk/dotnet/Sag/GetSmartagFlowLogs.cs +++ b/sdk/dotnet/Sag/GetSmartagFlowLogs.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetSmartagFlowLogsArgs? /// public static Output Invoke(GetSmartagFlowLogsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:sag/getSmartagFlowLogs:getSmartagFlowLogs", args ?? new GetSmartagFlowLogsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Smartag Flow Logs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.168.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Sag.GetSmartagFlowLogs.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Sag.GetSmartagFlowLogs.Invoke(new() + /// { + /// NameRegex = "^my-FlowLog", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["smartagFlowLogId1"] = ids.Apply(getSmartagFlowLogsResult => getSmartagFlowLogsResult.Logs[0]?.Id), + /// ["smartagFlowLogId2"] = nameRegex.Apply(getSmartagFlowLogsResult => getSmartagFlowLogsResult.Logs[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSmartagFlowLogsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:sag/getSmartagFlowLogs:getSmartagFlowLogs", args ?? new GetSmartagFlowLogsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Scdn/GetDomains.cs b/sdk/dotnet/Scdn/GetDomains.cs index 380f6c9ee0..adc85bdf41 100644 --- a/sdk/dotnet/Scdn/GetDomains.cs +++ b/sdk/dotnet/Scdn/GetDomains.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetDomainsArgs? args = null, In /// public static Output Invoke(GetDomainsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:scdn/getDomains:getDomains", args ?? new GetDomainsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Scdn Domains of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.131.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var nameRegex = AliCloud.Scdn.GetDomains.Invoke(new() + /// { + /// NameRegex = "^my-Domain", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["scdnDomainId"] = nameRegex.Apply(getDomainsResult => getDomainsResult.Domains[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDomainsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:scdn/getDomains:getDomains", args ?? new GetDomainsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SchedulerX/GetNamespaces.cs b/sdk/dotnet/SchedulerX/GetNamespaces.cs index 943f4dd0b7..4c43be7abc 100644 --- a/sdk/dotnet/SchedulerX/GetNamespaces.cs +++ b/sdk/dotnet/SchedulerX/GetNamespaces.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetNamespacesArgs? args = nu /// public static Output Invoke(GetNamespacesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:schedulerx/getNamespaces:getNamespaces", args ?? new GetNamespacesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Schedulerx Namespaces of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.173.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.SchedulerX.GetNamespaces.Invoke(); + /// + /// var nameRegex = AliCloud.SchedulerX.GetNamespaces.Invoke(new() + /// { + /// NameRegex = "^my-Namespace", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["schedulerxNamespaceId1"] = ids.Apply(getNamespacesResult => getNamespacesResult.Namespaces[0]?.Id), + /// ["schedulerxNamespaceId2"] = nameRegex.Apply(getNamespacesResult => getNamespacesResult.Namespaces[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetNamespacesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:schedulerx/getNamespaces:getNamespaces", args ?? new GetNamespacesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sddp/GetConfigs.cs b/sdk/dotnet/Sddp/GetConfigs.cs index d6612f5ddc..671dbc5250 100644 --- a/sdk/dotnet/Sddp/GetConfigs.cs +++ b/sdk/dotnet/Sddp/GetConfigs.cs @@ -94,6 +94,48 @@ public static Task InvokeAsync(GetConfigsArgs? args = null, In /// public static Output Invoke(GetConfigsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:sddp/getConfigs:getConfigs", args ?? new GetConfigsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Sddp Configs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.133.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var defaultConfig = new AliCloud.Sddp.Config("default", new() + /// { + /// Code = "access_failed_cnt", + /// Value = "10", + /// }); + /// + /// var @default = AliCloud.Sddp.GetConfigs.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultConfig.Id, + /// }, + /// OutputFile = "./t.json", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["sddpConfigId"] = @default.Apply(@default => @default.Apply(getConfigsResult => getConfigsResult.Ids)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetConfigsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:sddp/getConfigs:getConfigs", args ?? new GetConfigsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sddp/GetDataLimits.cs b/sdk/dotnet/Sddp/GetDataLimits.cs index e02f65f00c..452d3be2cf 100644 --- a/sdk/dotnet/Sddp/GetDataLimits.cs +++ b/sdk/dotnet/Sddp/GetDataLimits.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetDataLimitsArgs? args = nu /// public static Output Invoke(GetDataLimitsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:sddp/getDataLimits:getDataLimits", args ?? new GetDataLimitsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Sddp Data Limits of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.159.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Sddp.GetDataLimits.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["sddpDataLimitId1"] = ids.Apply(getDataLimitsResult => getDataLimitsResult.Limits[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDataLimitsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:sddp/getDataLimits:getDataLimits", args ?? new GetDataLimitsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sddp/GetInstances.cs b/sdk/dotnet/Sddp/GetInstances.cs index 39f47c87c3..5b84083537 100644 --- a/sdk/dotnet/Sddp/GetInstances.cs +++ b/sdk/dotnet/Sddp/GetInstances.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:sddp/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Sddp Instances of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.136.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Sddp.GetInstances.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["sddpInstanceId"] = @default.Apply(@default => @default.Apply(getInstancesResult => getInstancesResult.Instances[0])), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:sddp/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sddp/GetRules.cs b/sdk/dotnet/Sddp/GetRules.cs index d8769054f0..c9979981d9 100644 --- a/sdk/dotnet/Sddp/GetRules.cs +++ b/sdk/dotnet/Sddp/GetRules.cs @@ -98,6 +98,50 @@ public static Task InvokeAsync(GetRulesArgs? args = null, Invoke /// public static Output Invoke(GetRulesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:sddp/getRules:getRules", args ?? new GetRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Sddp Rules of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.132.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var defaultRule = new AliCloud.Sddp.Rule("default", new() + /// { + /// Category = 0, + /// Content = "content", + /// RuleName = "rule_name", + /// RiskLevelId = "4", + /// ProductCode = "ODPS", + /// }); + /// + /// var @default = AliCloud.Sddp.GetRules.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultRule.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["sddpRuleId"] = @default.Apply(@default => @default.Apply(getRulesResult => getRulesResult.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:sddp/getRules:getRules", args ?? new GetRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecurityCenter/GetGroups.cs b/sdk/dotnet/SecurityCenter/GetGroups.cs index 8a9c841144..915879f972 100644 --- a/sdk/dotnet/SecurityCenter/GetGroups.cs +++ b/sdk/dotnet/SecurityCenter/GetGroups.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetGroupsArgs? args = null, Invo /// public static Output Invoke(GetGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:securitycenter/getGroups:getGroups", args ?? new GetGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Security Center Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.133.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var nameRegex = AliCloud.SecurityCenter.GetGroups.Invoke(new() + /// { + /// NameRegex = "^my-Group", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["securityCenterGroups"] = nameRegex.Apply(getGroupsResult => getGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:securitycenter/getGroups:getGroups", args ?? new GetGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SelectDB/GetDbClusters.cs b/sdk/dotnet/SelectDB/GetDbClusters.cs index 93f8cc4322..dca01b681a 100644 --- a/sdk/dotnet/SelectDB/GetDbClusters.cs +++ b/sdk/dotnet/SelectDB/GetDbClusters.cs @@ -156,6 +156,79 @@ public static Task InvokeAsync(GetDbClustersArgs? args = nu /// public static Output Invoke(GetDbClustersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:selectdb/getDbClusters:getDbClusters", args ?? new GetDbClustersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the SelectDB DBCluster of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.229.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.GetZones.Invoke(new() + /// { + /// AvailableResourceCreation = "VSwitch", + /// }); + /// + /// var config = new Config(); + /// var name = config.Get("name") ?? "terraform_example"; + /// var defaultGetNetworks = AliCloud.Vpc.GetNetworks.Invoke(new() + /// { + /// NameRegex = "^default-NODELETING$", + /// }); + /// + /// var defaultGetSwitches = AliCloud.Vpc.GetSwitches.Invoke(new() + /// { + /// VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]), + /// ZoneId = @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id), + /// }); + /// + /// var defaultDbInstance = new AliCloud.SelectDB.DbInstance("default", new() + /// { + /// DbInstanceClass = "selectdb.xlarge", + /// DbInstanceDescription = name, + /// CacheSize = 200, + /// PaymentType = "PayAsYouGo", + /// VpcId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Vswitches[0]?.VpcId), + /// ZoneId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Vswitches[0]?.ZoneId), + /// VswitchId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Vswitches[0]?.Id), + /// }); + /// + /// var defaultDbCluster = new AliCloud.SelectDB.DbCluster("default", new() + /// { + /// DbInstanceId = defaultDbInstance.Id, + /// DbClusterDescription = name, + /// DbClusterClass = "selectdb.2xlarge", + /// CacheSize = 400, + /// PaymentType = "PayAsYouGo", + /// }); + /// + /// var defaultGetDbClusters = AliCloud.SelectDB.GetDbClusters.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultDbCluster.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["dbCluster"] = defaultGetDbClusters.Apply(getDbClustersResult => getDbClustersResult.Ids[0]), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDbClustersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:selectdb/getDbClusters:getDbClusters", args ?? new GetDbClustersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SelectDB/GetDbInstances.cs b/sdk/dotnet/SelectDB/GetDbInstances.cs index 011bfa6111..de02b0b8a0 100644 --- a/sdk/dotnet/SelectDB/GetDbInstances.cs +++ b/sdk/dotnet/SelectDB/GetDbInstances.cs @@ -138,6 +138,70 @@ public static Task InvokeAsync(GetDbInstancesArgs? args = /// public static Output Invoke(GetDbInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:selectdb/getDbInstances:getDbInstances", args ?? new GetDbInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the SelectDB DBInstance of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.229.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.GetZones.Invoke(new() + /// { + /// AvailableResourceCreation = "VSwitch", + /// }); + /// + /// var config = new Config(); + /// var name = config.Get("name") ?? "terraform_example"; + /// var defaultGetNetworks = AliCloud.Vpc.GetNetworks.Invoke(new() + /// { + /// NameRegex = "^default-NODELETING$", + /// }); + /// + /// var defaultGetSwitches = AliCloud.Vpc.GetSwitches.Invoke(new() + /// { + /// VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]), + /// ZoneId = @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id), + /// }); + /// + /// var defaultDbInstance = new AliCloud.SelectDB.DbInstance("default", new() + /// { + /// DbInstanceClass = "selectdb.xlarge", + /// DbInstanceDescription = name, + /// CacheSize = 200, + /// PaymentType = "PayAsYouGo", + /// VpcId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Vswitches[0]?.VpcId), + /// ZoneId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Vswitches[0]?.ZoneId), + /// VswitchId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Vswitches[0]?.Id), + /// }); + /// + /// var defaultGetDbInstances = AliCloud.SelectDB.GetDbInstances.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultDbInstance.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["dbInstance"] = defaultGetDbInstances.Apply(getDbInstancesResult => getDbInstancesResult.Ids[0]), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDbInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:selectdb/getDbInstances:getDbInstances", args ?? new GetDbInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceCatalog/GetEndUserProducts.cs b/sdk/dotnet/ServiceCatalog/GetEndUserProducts.cs index 7472847d67..a089efe061 100644 --- a/sdk/dotnet/ServiceCatalog/GetEndUserProducts.cs +++ b/sdk/dotnet/ServiceCatalog/GetEndUserProducts.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetEndUserProductsArgs? /// public static Output Invoke(GetEndUserProductsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:servicecatalog/getEndUserProducts:getEndUserProducts", args ?? new GetEndUserProductsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Service Catalog End User Product available to the user.[What is End User Product](https://www.alibabacloud.com/help/en/servicecatalog/latest/api-servicecatalog-2021-09-01-listproductsasenduser) + /// + /// > **NOTE:** Available since v1.197.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ServiceCatalog.GetEndUserProducts.Invoke(new() + /// { + /// NameRegex = "ram模板创建", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudServiceCatalogEndUserProductExampleId"] = @default.Apply(@default => @default.Apply(getEndUserProductsResult => getEndUserProductsResult.EndUserProducts[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEndUserProductsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:servicecatalog/getEndUserProducts:getEndUserProducts", args ?? new GetEndUserProductsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceCatalog/GetLaunchOptions.cs b/sdk/dotnet/ServiceCatalog/GetLaunchOptions.cs index 0247fee3de..0b0943d301 100644 --- a/sdk/dotnet/ServiceCatalog/GetLaunchOptions.cs +++ b/sdk/dotnet/ServiceCatalog/GetLaunchOptions.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetLaunchOptionsArgs args /// public static Output Invoke(GetLaunchOptionsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:servicecatalog/getLaunchOptions:getLaunchOptions", args ?? new GetLaunchOptionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Service Catalog Launch Option available to the user. [What is Launch Option](https://www.alibabacloud.com/help/en/service-catalog/developer-reference/api-servicecatalog-2021-09-01-listlaunchoptions). + /// + /// > **NOTE:** Available since v1.196.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ServiceCatalog.GetEndUserProducts.Invoke(new() + /// { + /// NameRegex = "ram模板创建", + /// }); + /// + /// var defaultGetLaunchOptions = AliCloud.ServiceCatalog.GetLaunchOptions.Invoke(new() + /// { + /// ProductId = "data.alicloud_service_catalog_end_user_products.default.end_user_products.0.id", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudServiceCatalogLaunchOptionExampleId"] = defaultGetLaunchOptions.Apply(getLaunchOptionsResult => getLaunchOptionsResult.LaunchOptions[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetLaunchOptionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:servicecatalog/getLaunchOptions:getLaunchOptions", args ?? new GetLaunchOptionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceCatalog/GetPortfolios.cs b/sdk/dotnet/ServiceCatalog/GetPortfolios.cs index 85f4ba4267..729385cd18 100644 --- a/sdk/dotnet/ServiceCatalog/GetPortfolios.cs +++ b/sdk/dotnet/ServiceCatalog/GetPortfolios.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetPortfoliosArgs? args = nu /// public static Output Invoke(GetPortfoliosInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:servicecatalog/getPortfolios:getPortfolios", args ?? new GetPortfoliosInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Service Catalog Portfolio available to the user.[What is Portfolio](https://www.alibabacloud.com/help/en/service-catalog/developer-reference/api-servicecatalog-2021-09-01-createportfolio) + /// + /// > **NOTE:** Available in 1.204.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ServiceCatalog.GetPortfolios.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAlicloudServiceCatalogPortfolio.Id, + /// }, + /// NameRegex = defaultAlicloudServiceCatalogPortfolio.Name, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudServiceCatalogPortfolioExampleId"] = @default.Apply(@default => @default.Apply(getPortfoliosResult => getPortfoliosResult.Portfolios[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetPortfoliosInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:servicecatalog/getPortfolios:getPortfolios", args ?? new GetPortfoliosInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceCatalog/GetProductAsEndUsers.cs b/sdk/dotnet/ServiceCatalog/GetProductAsEndUsers.cs index dc6aed9eb5..71e7480442 100644 --- a/sdk/dotnet/ServiceCatalog/GetProductAsEndUsers.cs +++ b/sdk/dotnet/ServiceCatalog/GetProductAsEndUsers.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetProductAsEndUsersA /// public static Output Invoke(GetProductAsEndUsersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:servicecatalog/getProductAsEndUsers:getProductAsEndUsers", args ?? new GetProductAsEndUsersInvokeArgs(), options.WithDefaults()); + + /// + /// > **DEPRECATED:** It has been deprecated from version `1.197.0`. + /// Please use new datasource alicloud.servicecatalog.getEndUserProducts instead. + /// + /// This data source provides Service Catalog Product As End User available to the user.[What is Product As End User](https://www.alibabacloud.com/help/en/service-catalog/developer-reference/api-servicecatalog-2021-09-01-listproductsasenduser) + /// + /// > **NOTE:** Available in 1.196.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ServiceCatalog.GetProductAsEndUsers.Invoke(new() + /// { + /// NameRegex = "ram模板创建", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudServiceCatalogProductAsEndUserExampleId"] = @default.Apply(@default => @default.Apply(getProductAsEndUsersResult => getProductAsEndUsersResult.Users[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetProductAsEndUsersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:servicecatalog/getProductAsEndUsers:getProductAsEndUsers", args ?? new GetProductAsEndUsersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceCatalog/GetProductVersions.cs b/sdk/dotnet/ServiceCatalog/GetProductVersions.cs index 5e28c5efe9..bb2dc77a62 100644 --- a/sdk/dotnet/ServiceCatalog/GetProductVersions.cs +++ b/sdk/dotnet/ServiceCatalog/GetProductVersions.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetProductVersionsArgs /// public static Output Invoke(GetProductVersionsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:servicecatalog/getProductVersions:getProductVersions", args ?? new GetProductVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Service Catalog Product Version available to the user.[What is Product Version](https://www.alibabacloud.com/help/en/service-catalog/developer-reference/api-servicecatalog-2021-09-01-listproductversions) + /// + /// > **NOTE:** Available in 1.196.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ServiceCatalog.GetProductVersions.Invoke(new() + /// { + /// NameRegex = "1.0.0", + /// ProductId = "prod-bp125x4k29wb7q", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudServiceCatalogProductVersionExampleId"] = @default.Apply(@default => @default.Apply(getProductVersionsResult => getProductVersionsResult.ProductVersions[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetProductVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:servicecatalog/getProductVersions:getProductVersions", args ?? new GetProductVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceCatalog/GetProvisionedProducts.cs b/sdk/dotnet/ServiceCatalog/GetProvisionedProducts.cs index ef03fb33ef..6fb23d8b82 100644 --- a/sdk/dotnet/ServiceCatalog/GetProvisionedProducts.cs +++ b/sdk/dotnet/ServiceCatalog/GetProvisionedProducts.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetProvisionedProdu /// public static Output Invoke(GetProvisionedProductsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:servicecatalog/getProvisionedProducts:getProvisionedProducts", args ?? new GetProvisionedProductsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Service Catalog Provisioned Product available to the user. [What is Provisioned Product](https://www.alibabacloud.com/help/en/service-catalog/developer-reference/api-servicecatalog-2021-09-01-launchproduct) + /// + /// > **NOTE:** Available since v1.196.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ServiceCatalog.GetProvisionedProducts.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "IdExample", + /// }, + /// NameRegex = "NameRegexExample", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudServiceCatalogProvisionedProductExampleId"] = @default.Apply(@default => @default.Apply(getProvisionedProductsResult => getProvisionedProductsResult.ProvisionedProducts[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetProvisionedProductsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:servicecatalog/getProvisionedProducts:getProvisionedProducts", args ?? new GetProvisionedProductsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceMesh/GetExtensionProviders.cs b/sdk/dotnet/ServiceMesh/GetExtensionProviders.cs index da5993a6a9..c5e4e5a21d 100644 --- a/sdk/dotnet/ServiceMesh/GetExtensionProviders.cs +++ b/sdk/dotnet/ServiceMesh/GetExtensionProviders.cs @@ -100,6 +100,51 @@ public static Task InvokeAsync(GetExtensionProvider /// public static Output Invoke(GetExtensionProvidersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:servicemesh/getExtensionProviders:getExtensionProviders", args ?? new GetExtensionProvidersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Service Mesh Extension Providers of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.191.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.ServiceMesh.GetExtensionProviders.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// ServiceMeshId = "example_service_mesh_id", + /// Type = "httpextauth", + /// }); + /// + /// var nameRegex = AliCloud.ServiceMesh.GetExtensionProviders.Invoke(new() + /// { + /// NameRegex = "^my-ServiceMeshExtensionProvider", + /// ServiceMeshId = "example_service_mesh_id", + /// Type = "httpextauth", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["serviceMeshExtensionProvidersId1"] = ids.Apply(getExtensionProvidersResult => getExtensionProvidersResult.Providers[0]?.Id), + /// ["serviceMeshExtensionProvidersId2"] = nameRegex.Apply(getExtensionProvidersResult => getExtensionProvidersResult.Providers[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetExtensionProvidersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:servicemesh/getExtensionProviders:getExtensionProviders", args ?? new GetExtensionProvidersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceMesh/GetServiceMeshes.cs b/sdk/dotnet/ServiceMesh/GetServiceMeshes.cs index e60c68c0c8..9a0abfd5a4 100644 --- a/sdk/dotnet/ServiceMesh/GetServiceMeshes.cs +++ b/sdk/dotnet/ServiceMesh/GetServiceMeshes.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetServiceMeshesArgs? arg /// public static Output Invoke(GetServiceMeshesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:servicemesh/getServiceMeshes:getServiceMeshes", args ?? new GetServiceMeshesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Service Mesh Service Meshes of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.138.0. + /// + public static Output Invoke(GetServiceMeshesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:servicemesh/getServiceMeshes:getServiceMeshes", args ?? new GetServiceMeshesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceMesh/GetVersions.cs b/sdk/dotnet/ServiceMesh/GetVersions.cs index 7cb4bc28b4..a8d2415abc 100644 --- a/sdk/dotnet/ServiceMesh/GetVersions.cs +++ b/sdk/dotnet/ServiceMesh/GetVersions.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetVersionsArgs? args = null, /// public static Output Invoke(GetVersionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:servicemesh/getVersions:getVersions", args ?? new GetVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides ASM available versions in the specified region. + /// + /// > **NOTE:** Available in v1.161.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ServiceMesh.GetVersions.Invoke(new() + /// { + /// Edition = "Default", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["serviceMeshVersion"] = versions[0].Version, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:servicemesh/getVersions:getVersions", args ?? new GetVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SimpleApplicationServer/GetImages.cs b/sdk/dotnet/SimpleApplicationServer/GetImages.cs index 327327166a..4308e7303f 100644 --- a/sdk/dotnet/SimpleApplicationServer/GetImages.cs +++ b/sdk/dotnet/SimpleApplicationServer/GetImages.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetImagesArgs? args = null, Invo /// public static Output Invoke(GetImagesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:simpleapplicationserver/getImages:getImages", args ?? new GetImagesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Simple Application Server Images of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.135.0+. + /// + public static Output Invoke(GetImagesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:simpleapplicationserver/getImages:getImages", args ?? new GetImagesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SimpleApplicationServer/GetInstances.cs b/sdk/dotnet/SimpleApplicationServer/GetInstances.cs index 45835e98e4..1314fc8cab 100644 --- a/sdk/dotnet/SimpleApplicationServer/GetInstances.cs +++ b/sdk/dotnet/SimpleApplicationServer/GetInstances.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:simpleapplicationserver/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Simple Application Server Instances of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.135.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.SimpleApplicationServer.GetInstances.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.SimpleApplicationServer.GetInstances.Invoke(new() + /// { + /// NameRegex = "^my-Instance", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["simpleApplicationServerInstanceId1"] = ids.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id), + /// ["simpleApplicationServerInstanceId2"] = nameRegex.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:simpleapplicationserver/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SimpleApplicationServer/GetServerCustomImages.cs b/sdk/dotnet/SimpleApplicationServer/GetServerCustomImages.cs index 0f2a198760..e833a6d786 100644 --- a/sdk/dotnet/SimpleApplicationServer/GetServerCustomImages.cs +++ b/sdk/dotnet/SimpleApplicationServer/GetServerCustomImages.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetServerCustomImage /// public static Output Invoke(GetServerCustomImagesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:simpleapplicationserver/getServerCustomImages:getServerCustomImages", args ?? new GetServerCustomImagesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Simple Application Server Custom Images of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.143.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.SimpleApplicationServer.GetServerCustomImages.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.SimpleApplicationServer.GetServerCustomImages.Invoke(new() + /// { + /// NameRegex = "^my-CustomImage", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["simpleApplicationServerCustomImageId1"] = ids.Apply(getServerCustomImagesResult => getServerCustomImagesResult.Images[0]?.Id), + /// ["simpleApplicationServerCustomImageId2"] = nameRegex.Apply(getServerCustomImagesResult => getServerCustomImagesResult.Images[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetServerCustomImagesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:simpleapplicationserver/getServerCustomImages:getServerCustomImages", args ?? new GetServerCustomImagesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SimpleApplicationServer/GetServerDisks.cs b/sdk/dotnet/SimpleApplicationServer/GetServerDisks.cs index f580f0aec8..8e2075cd28 100644 --- a/sdk/dotnet/SimpleApplicationServer/GetServerDisks.cs +++ b/sdk/dotnet/SimpleApplicationServer/GetServerDisks.cs @@ -128,6 +128,65 @@ public static Task InvokeAsync(GetServerDisksArgs? args = /// public static Output Invoke(GetServerDisksInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:simpleapplicationserver/getServerDisks:getServerDisks", args ?? new GetServerDisksInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Simple Application Server Disks of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.143.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.SimpleApplicationServer.GetServerDisks.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.SimpleApplicationServer.GetServerDisks.Invoke(new() + /// { + /// NameRegex = "^my-Disk", + /// }); + /// + /// var status = AliCloud.SimpleApplicationServer.GetServerDisks.Invoke(new() + /// { + /// Status = "In_use", + /// }); + /// + /// var instanceId = AliCloud.SimpleApplicationServer.GetServerDisks.Invoke(new() + /// { + /// InstanceId = "example_value", + /// }); + /// + /// var diskType = AliCloud.SimpleApplicationServer.GetServerDisks.Invoke(new() + /// { + /// DiskType = "System", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["simpleApplicationServerDiskId1"] = ids.Apply(getServerDisksResult => getServerDisksResult.Disks[0]?.Id), + /// ["simpleApplicationServerDiskId2"] = nameRegex.Apply(getServerDisksResult => getServerDisksResult.Disks[0]?.Id), + /// ["simpleApplicationServerDiskId3"] = status.Apply(getServerDisksResult => getServerDisksResult.Disks[0]?.Id), + /// ["simpleApplicationServerDiskId4"] = instanceId.Apply(getServerDisksResult => getServerDisksResult.Disks[0]?.Id), + /// ["simpleApplicationServerDiskId5"] = diskType.Apply(getServerDisksResult => getServerDisksResult.Disks[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetServerDisksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:simpleapplicationserver/getServerDisks:getServerDisks", args ?? new GetServerDisksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SimpleApplicationServer/GetServerFirewallRules.cs b/sdk/dotnet/SimpleApplicationServer/GetServerFirewallRules.cs index 8517ffc60a..43a095397b 100644 --- a/sdk/dotnet/SimpleApplicationServer/GetServerFirewallRules.cs +++ b/sdk/dotnet/SimpleApplicationServer/GetServerFirewallRules.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetServerFirewallRu /// public static Output Invoke(GetServerFirewallRulesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:simpleapplicationserver/getServerFirewallRules:getServerFirewallRules", args ?? new GetServerFirewallRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Simple Application Server Firewall Rules of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.143.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.SimpleApplicationServer.GetServerFirewallRules.Invoke(new() + /// { + /// InstanceId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["simpleApplicationServerFirewallRuleId1"] = ids.Apply(getServerFirewallRulesResult => getServerFirewallRulesResult.Rules[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetServerFirewallRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:simpleapplicationserver/getServerFirewallRules:getServerFirewallRules", args ?? new GetServerFirewallRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SimpleApplicationServer/GetServerPlans.cs b/sdk/dotnet/SimpleApplicationServer/GetServerPlans.cs index a565da6449..6a6cfe6bc8 100644 --- a/sdk/dotnet/SimpleApplicationServer/GetServerPlans.cs +++ b/sdk/dotnet/SimpleApplicationServer/GetServerPlans.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetServerPlansArgs? args = /// public static Output Invoke(GetServerPlansInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:simpleapplicationserver/getServerPlans:getServerPlans", args ?? new GetServerPlansInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Simple Application Server Plans of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.135.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.SimpleApplicationServer.GetServerPlans.Invoke(new() + /// { + /// Memory = 1, + /// Bandwidth = 3, + /// DiskSize = 40, + /// Flow = 6, + /// Core = 2, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["simpleApplicationServerPlanId1"] = ids.Plans[0].Id, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetServerPlansInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:simpleapplicationserver/getServerPlans:getServerPlans", args ?? new GetServerPlansInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SimpleApplicationServer/GetServerSnapshots.cs b/sdk/dotnet/SimpleApplicationServer/GetServerSnapshots.cs index 542bbd287f..1997815b3d 100644 --- a/sdk/dotnet/SimpleApplicationServer/GetServerSnapshots.cs +++ b/sdk/dotnet/SimpleApplicationServer/GetServerSnapshots.cs @@ -132,6 +132,67 @@ public static Task InvokeAsync(GetServerSnapshotsArgs? /// public static Output Invoke(GetServerSnapshotsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:simpleapplicationserver/getServerSnapshots:getServerSnapshots", args ?? new GetServerSnapshotsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Simple Application Server Snapshots of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.143.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.SimpleApplicationServer.GetServerSnapshots.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.SimpleApplicationServer.GetServerSnapshots.Invoke(new() + /// { + /// NameRegex = "^my-Snapshot", + /// }); + /// + /// var diskIdConf = AliCloud.SimpleApplicationServer.GetServerSnapshots.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// DiskId = "example_value", + /// }); + /// + /// var instanceIdConf = AliCloud.SimpleApplicationServer.GetServerSnapshots.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// InstanceId = "example_value", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["simpleApplicationServerSnapshotId1"] = ids.Apply(getServerSnapshotsResult => getServerSnapshotsResult.Snapshots[0]?.Id), + /// ["simpleApplicationServerSnapshotId2"] = nameRegex.Apply(getServerSnapshotsResult => getServerSnapshotsResult.Snapshots[0]?.Id), + /// ["simpleApplicationServerSnapshotId3"] = diskIdConf.Apply(getServerSnapshotsResult => getServerSnapshotsResult.Snapshots[0]?.Id), + /// ["simpleApplicationServerSnapshotId4"] = instanceIdConf.Apply(getServerSnapshotsResult => getServerSnapshotsResult.Snapshots[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetServerSnapshotsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:simpleapplicationserver/getServerSnapshots:getServerSnapshots", args ?? new GetServerSnapshotsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Slb/GetAcls.cs b/sdk/dotnet/Slb/GetAcls.cs index fb65239214..39dd291e40 100644 --- a/sdk/dotnet/Slb/GetAcls.cs +++ b/sdk/dotnet/Slb/GetAcls.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetAclsArgs? args = null, InvokeOp /// public static Output Invoke(GetAclsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getAcls:getAcls", args ?? new GetAclsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the acls in the region. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var sampleDs = AliCloud.Slb.GetAcls.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstSlbAclId"] = sampleDs.Apply(getAclsResult => getAclsResult.Acls[0]?.Id), + /// }; + /// }); + /// ``` + /// + /// ## Entry Block + /// + /// The entry mapping supports the following: + /// + /// * `entry` - An IP addresses or CIDR blocks. + /// * `comment` - the comment of the entry. + /// + /// ## Listener Block + /// + /// The Listener mapping supports the following: + /// + /// * `load_balancer_id` - the id of load balancer instance, the listener belongs to. + /// * `frontend_port` - the listener port. + /// * `protocol` - the listener protocol (such as tcp/udp/http/https, etc). + /// * `acl_type` - the type of acl (such as white/black). + /// + public static Output Invoke(GetAclsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getAcls:getAcls", args ?? new GetAclsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Slb/GetApplicationLoadBalancers.cs b/sdk/dotnet/Slb/GetApplicationLoadBalancers.cs index 19eee6cdc5..771b695842 100644 --- a/sdk/dotnet/Slb/GetApplicationLoadBalancers.cs +++ b/sdk/dotnet/Slb/GetApplicationLoadBalancers.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetApplication /// public static Output Invoke(GetApplicationLoadBalancersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getApplicationLoadBalancers:getApplicationLoadBalancers", args ?? new GetApplicationLoadBalancersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the server load balancers of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in 1.123.1+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Slb.GetApplicationLoadBalancers.Invoke(new() + /// { + /// NameRegex = "sample_slb", + /// Tags = + /// { + /// { "tagKey1", "tagValue1" }, + /// { "tagKey2", "tagValue2" }, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstSlbId"] = example.Apply(getApplicationLoadBalancersResult => getApplicationLoadBalancersResult.Balancers[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetApplicationLoadBalancersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getApplicationLoadBalancers:getApplicationLoadBalancers", args ?? new GetApplicationLoadBalancersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Slb/GetAttachments.cs b/sdk/dotnet/Slb/GetAttachments.cs index ce43c0e261..5e3f127013 100644 --- a/sdk/dotnet/Slb/GetAttachments.cs +++ b/sdk/dotnet/Slb/GetAttachments.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetAttachmentsArgs args, In /// public static Output Invoke(GetAttachmentsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getAttachments:getAttachments", args ?? new GetAttachmentsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the server load balancer attachments of the current Alibaba Cloud user. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var sampleDs = AliCloud.Slb.GetAttachments.Invoke(new() + /// { + /// LoadBalancerId = sampleSlb.Id, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstSlbAttachmentInstanceId"] = sampleDs.Apply(getAttachmentsResult => getAttachmentsResult.SlbAttachments[0]?.InstanceId), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAttachmentsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getAttachments:getAttachments", args ?? new GetAttachmentsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Slb/GetBackendServers.cs b/sdk/dotnet/Slb/GetBackendServers.cs index 758a3447d7..ab9ab6c7a2 100644 --- a/sdk/dotnet/Slb/GetBackendServers.cs +++ b/sdk/dotnet/Slb/GetBackendServers.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetBackendServersArgs ar /// public static Output Invoke(GetBackendServersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getBackendServers:getBackendServers", args ?? new GetBackendServersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the server load balancer backend servers related to a server load balancer.. + /// + /// > **NOTE:** Available in 1.53.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var sampleDs = AliCloud.Slb.GetBackendServers.Invoke(new() + /// { + /// LoadBalancerId = sampleSlb.Id, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstSlbBackendServerId"] = sampleDs.Apply(getBackendServersResult => getBackendServersResult.BackendServers[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBackendServersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getBackendServers:getBackendServers", args ?? new GetBackendServersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Slb/GetCaCertificates.cs b/sdk/dotnet/Slb/GetCaCertificates.cs index 93abb59ff2..522ec01c94 100644 --- a/sdk/dotnet/Slb/GetCaCertificates.cs +++ b/sdk/dotnet/Slb/GetCaCertificates.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetCaCertificatesArgs? a /// public static Output Invoke(GetCaCertificatesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getCaCertificates:getCaCertificates", args ?? new GetCaCertificatesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the CA certificate list. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var sampleDs = AliCloud.Slb.GetCaCertificates.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstSlbCaCertificateId"] = sampleDs.Apply(getCaCertificatesResult => getCaCertificatesResult.Certificates[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetCaCertificatesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getCaCertificates:getCaCertificates", args ?? new GetCaCertificatesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Slb/GetDomainExtensions.cs b/sdk/dotnet/Slb/GetDomainExtensions.cs index f4c6ad5406..27a31129f5 100644 --- a/sdk/dotnet/Slb/GetDomainExtensions.cs +++ b/sdk/dotnet/Slb/GetDomainExtensions.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetDomainExtensionsArg /// public static Output Invoke(GetDomainExtensionsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getDomainExtensions:getDomainExtensions", args ?? new GetDomainExtensionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the domain extensions associated with a server load balancer listener. + /// + /// > **NOTE:** Available in 1.60.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = AliCloud.Slb.GetDomainExtensions.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "fake-de-id", + /// }, + /// LoadBalancerId = "fake-lb-id", + /// FrontendPort = "fake-port", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDomainExtensionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getDomainExtensions:getDomainExtensions", args ?? new GetDomainExtensionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Slb/GetListeners.cs b/sdk/dotnet/Slb/GetListeners.cs index 442b45e7c4..eda2154179 100644 --- a/sdk/dotnet/Slb/GetListeners.cs +++ b/sdk/dotnet/Slb/GetListeners.cs @@ -114,6 +114,58 @@ public static Task InvokeAsync(GetListenersArgs args, Invoke /// public static Output Invoke(GetListenersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getListeners:getListeners", args ?? new GetListenersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the listeners related to a server load balancer of the current Alibaba Cloud user. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = new AliCloud.Slb.ApplicationLoadBalancer("default", new() + /// { + /// LoadBalancerName = "tf-testAccSlbListenertcp", + /// }); + /// + /// var tcp = new AliCloud.Slb.Listener("tcp", new() + /// { + /// LoadBalancerId = @default.Id, + /// BackendPort = 22, + /// FrontendPort = 22, + /// Protocol = "tcp", + /// Bandwidth = 10, + /// HealthCheckType = "tcp", + /// PersistenceTimeout = 3600, + /// HealthyThreshold = 8, + /// UnhealthyThreshold = 8, + /// HealthCheckTimeout = 8, + /// HealthCheckInterval = 5, + /// HealthCheckHttpCode = "http_2xx", + /// HealthCheckConnectPort = 20, + /// HealthCheckUri = "/console", + /// EstablishedTimeout = 600, + /// }); + /// + /// var sampleDs = AliCloud.Slb.GetListeners.Invoke(new() + /// { + /// LoadBalancerId = @default.Id, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstSlbListenerProtocol"] = sampleDs.Apply(getListenersResult => getListenersResult.SlbListeners[0]?.Protocol), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetListenersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getListeners:getListeners", args ?? new GetListenersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Slb/GetLoadBalancers.cs b/sdk/dotnet/Slb/GetLoadBalancers.cs index 15e74cfe3a..1ad666f39c 100644 --- a/sdk/dotnet/Slb/GetLoadBalancers.cs +++ b/sdk/dotnet/Slb/GetLoadBalancers.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetLoadBalancersArgs? arg /// public static Output Invoke(GetLoadBalancersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getLoadBalancers:getLoadBalancers", args ?? new GetLoadBalancersInvokeArgs(), options.WithDefaults()); + + /// + /// > **DEPRECATED:** This datasource has been renamed to alicloud.slb.getApplicationLoadBalancers from version 1.123.1. + /// + /// This data source provides the server load balancers of the current Alibaba Cloud user. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = new AliCloud.Slb.LoadBalancer("default", new() + /// { + /// Name = "sample_slb", + /// }); + /// + /// var slbsDs = AliCloud.Slb.GetLoadBalancers.Invoke(new() + /// { + /// NameRegex = "sample_slb", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstSlbId"] = slbsDs.Apply(getLoadBalancersResult => getLoadBalancersResult.Slbs[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetLoadBalancersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getLoadBalancers:getLoadBalancers", args ?? new GetLoadBalancersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Slb/GetMasterSlaveServerGroups.cs b/sdk/dotnet/Slb/GetMasterSlaveServerGroups.cs index 954dc4b608..3bba185d73 100644 --- a/sdk/dotnet/Slb/GetMasterSlaveServerGroups.cs +++ b/sdk/dotnet/Slb/GetMasterSlaveServerGroups.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetMasterSlaveS /// public static Output Invoke(GetMasterSlaveServerGroupsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getMasterSlaveServerGroups:getMasterSlaveServerGroups", args ?? new GetMasterSlaveServerGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the master slave server groups related to a server load balancer. + /// + /// > **NOTE:** Available in 1.54.0+ + /// + public static Output Invoke(GetMasterSlaveServerGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getMasterSlaveServerGroups:getMasterSlaveServerGroups", args ?? new GetMasterSlaveServerGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Slb/GetRules.cs b/sdk/dotnet/Slb/GetRules.cs index 564f88fa4e..99468ca755 100644 --- a/sdk/dotnet/Slb/GetRules.cs +++ b/sdk/dotnet/Slb/GetRules.cs @@ -174,6 +174,88 @@ public static Task InvokeAsync(GetRulesArgs args, InvokeOptions? /// public static Output Invoke(GetRulesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getRules:getRules", args ?? new GetRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the rules associated with a server load balancer listener. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "slbrulebasicconfig"; + /// var @default = AliCloud.GetZones.Invoke(new() + /// { + /// AvailableDiskCategory = "cloud_efficiency", + /// AvailableResourceCreation = "VSwitch", + /// }); + /// + /// var defaultNetwork = new AliCloud.Vpc.Network("default", new() + /// { + /// Name = name, + /// CidrBlock = "172.16.0.0/16", + /// }); + /// + /// var defaultSwitch = new AliCloud.Vpc.Switch("default", new() + /// { + /// VpcId = defaultNetwork.Id, + /// CidrBlock = "172.16.0.0/16", + /// ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)), + /// VswitchName = name, + /// }); + /// + /// var defaultApplicationLoadBalancer = new AliCloud.Slb.ApplicationLoadBalancer("default", new() + /// { + /// LoadBalancerName = name, + /// VswitchId = defaultSwitch.Id, + /// }); + /// + /// var defaultListener = new AliCloud.Slb.Listener("default", new() + /// { + /// LoadBalancerId = defaultApplicationLoadBalancer.Id, + /// BackendPort = 22, + /// FrontendPort = 22, + /// Protocol = "http", + /// Bandwidth = 5, + /// HealthCheckConnectPort = 20, + /// }); + /// + /// var defaultServerGroup = new AliCloud.Slb.ServerGroup("default", new() + /// { + /// LoadBalancerId = defaultApplicationLoadBalancer.Id, + /// }); + /// + /// var defaultRule = new AliCloud.Slb.Rule("default", new() + /// { + /// LoadBalancerId = defaultApplicationLoadBalancer.Id, + /// FrontendPort = defaultListener.FrontendPort, + /// Name = name, + /// Domain = "*.aliyun.com", + /// Url = "/image", + /// ServerGroupId = defaultServerGroup.Id, + /// }); + /// + /// var sampleDs = AliCloud.Slb.GetRules.Invoke(new() + /// { + /// LoadBalancerId = defaultApplicationLoadBalancer.Id, + /// FrontendPort = 22, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstSlbRuleId"] = sampleDs.Apply(getRulesResult => getRulesResult.SlbRules[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getRules:getRules", args ?? new GetRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Slb/GetServerCertificates.cs b/sdk/dotnet/Slb/GetServerCertificates.cs index 63e71a2296..86cdae388f 100644 --- a/sdk/dotnet/Slb/GetServerCertificates.cs +++ b/sdk/dotnet/Slb/GetServerCertificates.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetServerCertificate /// public static Output Invoke(GetServerCertificatesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getServerCertificates:getServerCertificates", args ?? new GetServerCertificatesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the server certificate list. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var sampleDs = AliCloud.Slb.GetServerCertificates.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstSlbServerCertificateId"] = sampleDs.Apply(getServerCertificatesResult => getServerCertificatesResult.Certificates[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetServerCertificatesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getServerCertificates:getServerCertificates", args ?? new GetServerCertificatesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Slb/GetServerGroups.cs b/sdk/dotnet/Slb/GetServerGroups.cs index c008604297..71ff38448d 100644 --- a/sdk/dotnet/Slb/GetServerGroups.cs +++ b/sdk/dotnet/Slb/GetServerGroups.cs @@ -132,6 +132,67 @@ public static Task InvokeAsync(GetServerGroupsArgs args, /// public static Output Invoke(GetServerGroupsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getServerGroups:getServerGroups", args ?? new GetServerGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the VServer groups related to a server load balancer. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "slbservergroups"; + /// var @default = AliCloud.GetZones.Invoke(new() + /// { + /// AvailableDiskCategory = "cloud_efficiency", + /// AvailableResourceCreation = "VSwitch", + /// }); + /// + /// var defaultNetwork = new AliCloud.Vpc.Network("default", new() + /// { + /// VpcName = name, + /// CidrBlock = "172.16.0.0/16", + /// }); + /// + /// var defaultSwitch = new AliCloud.Vpc.Switch("default", new() + /// { + /// VpcId = defaultNetwork.Id, + /// CidrBlock = "172.16.0.0/16", + /// ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)), + /// VswitchName = name, + /// }); + /// + /// var defaultApplicationLoadBalancer = new AliCloud.Slb.ApplicationLoadBalancer("default", new() + /// { + /// LoadBalancerName = name, + /// VswitchId = defaultSwitch.Id, + /// }); + /// + /// var defaultServerGroup = new AliCloud.Slb.ServerGroup("default", new() + /// { + /// LoadBalancerId = defaultApplicationLoadBalancer.Id, + /// }); + /// + /// var sampleDs = AliCloud.Slb.GetServerGroups.Invoke(new() + /// { + /// LoadBalancerId = defaultApplicationLoadBalancer.Id, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstSlbServerGroupId"] = sampleDs.Apply(getServerGroupsResult => getServerGroupsResult.SlbServerGroups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetServerGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getServerGroups:getServerGroups", args ?? new GetServerGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Slb/GetTlsCipherPolicies.cs b/sdk/dotnet/Slb/GetTlsCipherPolicies.cs index e989d9e2fc..89400f4430 100644 --- a/sdk/dotnet/Slb/GetTlsCipherPolicies.cs +++ b/sdk/dotnet/Slb/GetTlsCipherPolicies.cs @@ -94,6 +94,48 @@ public static Task InvokeAsync(GetTlsCipherPoliciesA /// public static Output Invoke(GetTlsCipherPoliciesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getTlsCipherPolicies:getTlsCipherPolicies", args ?? new GetTlsCipherPoliciesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Slb Tls Cipher Policies of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.135.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Slb.GetTlsCipherPolicies.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Slb.GetTlsCipherPolicies.Invoke(new() + /// { + /// NameRegex = "^My-TlsCipherPolicy", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["slbTlsCipherPolicyId1"] = ids.Apply(getTlsCipherPoliciesResult => getTlsCipherPoliciesResult.Policies[0]?.Id), + /// ["slbTlsCipherPolicyId2"] = nameRegex.Apply(getTlsCipherPoliciesResult => getTlsCipherPoliciesResult.Policies[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTlsCipherPoliciesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getTlsCipherPolicies:getTlsCipherPolicies", args ?? new GetTlsCipherPoliciesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Slb/GetZones.cs b/sdk/dotnet/Slb/GetZones.cs index dbeb40e745..18b2765c49 100644 --- a/sdk/dotnet/Slb/GetZones.cs +++ b/sdk/dotnet/Slb/GetZones.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides availability zones for SLB that can be accessed by an Alibaba Cloud account within the region configured in the provider. + /// + /// > **NOTE:** Available in v1.73.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var zonesIds = AliCloud.Slb.GetZones.Invoke(new() + /// { + /// AvailableSlbAddressType = "vpc", + /// AvailableSlbAddressIpVersion = "ipv4", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:slb/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Tag/GetMetaTags.cs b/sdk/dotnet/Tag/GetMetaTags.cs index 2738560e61..813c8e93f4 100644 --- a/sdk/dotnet/Tag/GetMetaTags.cs +++ b/sdk/dotnet/Tag/GetMetaTags.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetMetaTagsArgs? args = null, /// public static Output Invoke(GetMetaTagsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:tag/getMetaTags:getMetaTags", args ?? new GetMetaTagsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Tag Meta Tags of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.169.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Tag.GetMetaTags.Invoke(new() + /// { + /// KeyName = "example_value", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["tagMetaTagDefault1"] = @default.Apply(@default => @default.Apply(getMetaTagsResult => getMetaTagsResult.Tags?.ValueName)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetMetaTagsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:tag/getMetaTags:getMetaTags", args ?? new GetMetaTagsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ThreatDetection/GetAntiBruteForceRules.cs b/sdk/dotnet/ThreatDetection/GetAntiBruteForceRules.cs index 3f37fc010a..362e835d25 100644 --- a/sdk/dotnet/ThreatDetection/GetAntiBruteForceRules.cs +++ b/sdk/dotnet/ThreatDetection/GetAntiBruteForceRules.cs @@ -106,6 +106,54 @@ public static Task InvokeAsync(GetAntiBruteForceRu /// public static Output Invoke(GetAntiBruteForceRulesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getAntiBruteForceRules:getAntiBruteForceRules", args ?? new GetAntiBruteForceRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Threat Detection Anti Brute Force Rule available to the user.[What is Anti Brute Force Rule](https://www.alibabacloud.com/help/en/security-center/latest/api-sas-2018-12-03-createantibruteforcerule) + /// + /// > **NOTE:** Available since v1.195.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "example_value"; + /// var defaultAntiBruteForceRule = new AliCloud.ThreatDetection.AntiBruteForceRule("default", new() + /// { + /// AntiBruteForceRuleName = name, + /// ForbiddenTime = 360, + /// UuidLists = new[] + /// { + /// "7567806c-4ec5-4597-9543-7c9543381a13", + /// }, + /// FailCount = 80, + /// Span = 10, + /// }); + /// + /// var @default = AliCloud.ThreatDetection.GetAntiBruteForceRules.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAntiBruteForceRule.Id, + /// }, + /// NameRegex = defaultAntiBruteForceRule.Name, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudThreatDetectionAntiBruteForceRuleExampleId"] = @default.Apply(@default => @default.Apply(getAntiBruteForceRulesResult => getAntiBruteForceRulesResult.Rules[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAntiBruteForceRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getAntiBruteForceRules:getAntiBruteForceRules", args ?? new GetAntiBruteForceRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ThreatDetection/GetAssets.cs b/sdk/dotnet/ThreatDetection/GetAssets.cs index 3b12df3d0a..3ab95daceb 100644 --- a/sdk/dotnet/ThreatDetection/GetAssets.cs +++ b/sdk/dotnet/ThreatDetection/GetAssets.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetAssetsArgs? args = null, Invo /// public static Output Invoke(GetAssetsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getAssets:getAssets", args ?? new GetAssetsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Threat Detection Asset available to the user.[What is Asset](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-describecloudcenterinstances) + /// + /// > **NOTE:** Available since v1.195.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ThreatDetection.GetAssets.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudThreatDetectionAssetExampleId"] = @default.Apply(@default => @default.Apply(getAssetsResult => getAssetsResult.Assets[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAssetsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getAssets:getAssets", args ?? new GetAssetsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ThreatDetection/GetBackupPolicies.cs b/sdk/dotnet/ThreatDetection/GetBackupPolicies.cs index cd89c08bb8..e491dca3bf 100644 --- a/sdk/dotnet/ThreatDetection/GetBackupPolicies.cs +++ b/sdk/dotnet/ThreatDetection/GetBackupPolicies.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetBackupPoliciesArgs? a /// public static Output Invoke(GetBackupPoliciesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getBackupPolicies:getBackupPolicies", args ?? new GetBackupPoliciesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Threat Detection Backup Policies of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.195.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.ThreatDetection.GetBackupPolicies.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.ThreatDetection.GetBackupPolicies.Invoke(new() + /// { + /// NameRegex = "tf-example", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["threatDetectionBackupPoliciesId1"] = ids.Apply(getBackupPoliciesResult => getBackupPoliciesResult.Policies[0]?.Id), + /// ["threatDetectionBackupPoliciesId2"] = nameRegex.Apply(getBackupPoliciesResult => getBackupPoliciesResult.Policies[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBackupPoliciesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getBackupPolicies:getBackupPolicies", args ?? new GetBackupPoliciesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ThreatDetection/GetBaselineStrategies.cs b/sdk/dotnet/ThreatDetection/GetBaselineStrategies.cs index 129035566e..e4a44dce24 100644 --- a/sdk/dotnet/ThreatDetection/GetBaselineStrategies.cs +++ b/sdk/dotnet/ThreatDetection/GetBaselineStrategies.cs @@ -102,6 +102,52 @@ public static Task InvokeAsync(GetBaselineStrategie /// public static Output Invoke(GetBaselineStrategiesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getBaselineStrategies:getBaselineStrategies", args ?? new GetBaselineStrategiesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Threat Detection Baseline Strategy available to the user.[What is Baseline Strategy](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-describestrategy) + /// + /// > **NOTE:** Available in 1.195.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var defaultBaselineStrategy = new AliCloud.ThreatDetection.BaselineStrategy("default", new() + /// { + /// CustomType = "custom", + /// EndTime = "08:00:00", + /// BaselineStrategyName = "apispec", + /// CycleDays = 3, + /// TargetType = "groupId", + /// StartTime = "05:00:00", + /// RiskSubTypeName = "hc_exploit_redis", + /// }); + /// + /// var @default = AliCloud.ThreatDetection.GetBaselineStrategies.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultBaselineStrategy.Id, + /// }, + /// NameRegex = defaultBaselineStrategy.Name, + /// CustomType = "custom", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudThreatDetectionBaselineStrategyExampleId"] = defaultAlicloudThreatDetectionBaselineStrategys.Strategys[0].Id, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBaselineStrategiesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getBaselineStrategies:getBaselineStrategies", args ?? new GetBaselineStrategiesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ThreatDetection/GetHoneyPots.cs b/sdk/dotnet/ThreatDetection/GetHoneyPots.cs index 7b96e0cd72..713d0b2b03 100644 --- a/sdk/dotnet/ThreatDetection/GetHoneyPots.cs +++ b/sdk/dotnet/ThreatDetection/GetHoneyPots.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetHoneyPotsArgs? args = null /// public static Output Invoke(GetHoneyPotsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getHoneyPots:getHoneyPots", args ?? new GetHoneyPotsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Threat Detection Honey Pot available to the user.[What is Honey Pot](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-createhoneypot) + /// + /// > **NOTE:** Available since v1.195.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ThreatDetection.GetHoneyPots.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "xxxx", + /// }, + /// HoneypotName = "tf-example", + /// NodeId = "a44e1ab3-6945-444c-889d-5bacee7056e8", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudThreatDetectionHoneyPotExampleId"] = @default.Apply(@default => @default.Apply(getHoneyPotsResult => getHoneyPotsResult.Pots[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetHoneyPotsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getHoneyPots:getHoneyPots", args ?? new GetHoneyPotsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ThreatDetection/GetHoneypotImages.cs b/sdk/dotnet/ThreatDetection/GetHoneypotImages.cs index 42697888c1..20eeadf665 100644 --- a/sdk/dotnet/ThreatDetection/GetHoneypotImages.cs +++ b/sdk/dotnet/ThreatDetection/GetHoneypotImages.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetHoneypotImagesArgs? a /// public static Output Invoke(GetHoneypotImagesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getHoneypotImages:getHoneypotImages", args ?? new GetHoneypotImagesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Threat Detection Honeypot Image available to the user.[What is Honeypot Image](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-listavailablehoneypot) + /// + /// > **NOTE:** Available in 1.195.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ThreatDetection.GetHoneypotImages.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "sha256:02882320c9a55303410127c5dc4ae2dc470150f9d7f2483102d994f5e5f4d9df", + /// }, + /// NameRegex = "^meta", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudThreatDetectionHoneypotImageExampleId"] = @default.Apply(@default => @default.Apply(getHoneypotImagesResult => getHoneypotImagesResult.Images[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetHoneypotImagesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getHoneypotImages:getHoneypotImages", args ?? new GetHoneypotImagesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ThreatDetection/GetHoneypotNodes.cs b/sdk/dotnet/ThreatDetection/GetHoneypotNodes.cs index cbd314900a..c4aa1ccfa1 100644 --- a/sdk/dotnet/ThreatDetection/GetHoneypotNodes.cs +++ b/sdk/dotnet/ThreatDetection/GetHoneypotNodes.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetHoneypotNodesArgs? arg /// public static Output Invoke(GetHoneypotNodesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getHoneypotNodes:getHoneypotNodes", args ?? new GetHoneypotNodesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Threat Detection Honeypot Node available to the user.[What is Honeypot Node](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-createhoneypotnode) + /// + /// > **NOTE:** Available in 1.195.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ThreatDetection.GetHoneypotNodes.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAlicloudThreatDetectionHoneypotNode.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudThreatDetectionHoneypotNodeExampleId"] = @default.Apply(@default => @default.Apply(getHoneypotNodesResult => getHoneypotNodesResult.Nodes[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetHoneypotNodesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getHoneypotNodes:getHoneypotNodes", args ?? new GetHoneypotNodesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ThreatDetection/GetHoneypotPresets.cs b/sdk/dotnet/ThreatDetection/GetHoneypotPresets.cs index fdff0dc9c9..2f02b56d9b 100644 --- a/sdk/dotnet/ThreatDetection/GetHoneypotPresets.cs +++ b/sdk/dotnet/ThreatDetection/GetHoneypotPresets.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetHoneypotPresetsArgs? /// public static Output Invoke(GetHoneypotPresetsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getHoneypotPresets:getHoneypotPresets", args ?? new GetHoneypotPresetsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Threat Detection Honeypot Preset available to the user. + /// + /// > **NOTE:** Available in 1.195.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ThreatDetection.GetHoneypotPresets.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAlicloudThreatDetectionHoneypotPreset.Id, + /// }, + /// HoneypotImageName = "shiro", + /// NodeId = "example_value", + /// PresetName = "apiapec_test", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudThreatDetectionHoneypotPresetExampleId"] = @default.Apply(@default => @default.Apply(getHoneypotPresetsResult => getHoneypotPresetsResult.Presets[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetHoneypotPresetsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getHoneypotPresets:getHoneypotPresets", args ?? new GetHoneypotPresetsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ThreatDetection/GetHoneypotProbes.cs b/sdk/dotnet/ThreatDetection/GetHoneypotProbes.cs index 02f9c9e847..8f065d95a3 100644 --- a/sdk/dotnet/ThreatDetection/GetHoneypotProbes.cs +++ b/sdk/dotnet/ThreatDetection/GetHoneypotProbes.cs @@ -136,6 +136,69 @@ public static Task InvokeAsync(GetHoneypotProbesArgs? a /// public static Output Invoke(GetHoneypotProbesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getHoneypotProbes:getHoneypotProbes", args ?? new GetHoneypotProbesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Threat Detection Honeypot Probe available to the user.[What is Honeypot Probe](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-createhoneypotprobe) + /// + /// > **NOTE:** Available in 1.195.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "tf-testAccThreatDetectionHoneypotProbe"; + /// var defaultHoneypotProbe = new AliCloud.ThreatDetection.HoneypotProbe("default", new() + /// { + /// Uuid = "e52c7872-29d1-4aa1-9908-0299abd53606", + /// ProbeType = "host_probe", + /// ControlNodeId = "e1397077-4941-4b14-b533-ca2bdebd00a3", + /// Ping = true, + /// HoneypotBindLists = new[] + /// { + /// new AliCloud.ThreatDetection.Inputs.HoneypotProbeHoneypotBindListArgs + /// { + /// BindPortLists = new[] + /// { + /// new AliCloud.ThreatDetection.Inputs.HoneypotProbeHoneypotBindListBindPortListArgs + /// { + /// StartPort = 80, + /// EndPort = 80, + /// }, + /// }, + /// HoneypotId = "4925bf9784de992ecd017ad051528a03b3927ef814eeff76c2ebb3ab9a84bf05", + /// }, + /// }, + /// DisplayName = name, + /// Arp = true, + /// }); + /// + /// var @default = AliCloud.ThreatDetection.GetHoneypotProbes.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultHoneypotProbe.Id, + /// }, + /// DisplayName = name, + /// ProbeType = "host_probe", + /// EnableDetails = true, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudThreatDetectionHoneypotProbeExampleId"] = @default.Apply(@default => @default.Apply(getHoneypotProbesResult => getHoneypotProbesResult.Probes[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetHoneypotProbesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getHoneypotProbes:getHoneypotProbes", args ?? new GetHoneypotProbesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ThreatDetection/GetInstances.cs b/sdk/dotnet/ThreatDetection/GetInstances.cs index fa8858b563..4c636e3841 100644 --- a/sdk/dotnet/ThreatDetection/GetInstances.cs +++ b/sdk/dotnet/ThreatDetection/GetInstances.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Threat Detection Instance available to the user.[What is Instance](https://www.alibabacloud.com/help/en/security-center/latest/what-is-security-center) + /// + /// > **NOTE:** Available in 1.199.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ThreatDetection.GetInstances.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAlicloudThreatDetectionInstance.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudThreatDetectionInstanceExampleId"] = @default.Apply(@default => @default.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ThreatDetection/GetLogShipper.cs b/sdk/dotnet/ThreatDetection/GetLogShipper.cs index 8aba37c1f5..b1b65d9361 100644 --- a/sdk/dotnet/ThreatDetection/GetLogShipper.cs +++ b/sdk/dotnet/ThreatDetection/GetLogShipper.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetLogShipperArgs? args = nu /// public static Output Invoke(GetLogShipperInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getLogShipper:getLogShipper", args ?? new GetLogShipperInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open Threat Detection Log Shipper automatically. If the service has been enabled, it will return `Opened`. + /// + /// For information about Threat Detection Log Shipper and how to use it, see [What is Log Shipper](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-modifyopenlogshipper). + /// + /// > **NOTE:** Available in v1.195.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.ThreatDetection.GetLogShipper.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetLogShipperInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getLogShipper:getLogShipper", args ?? new GetLogShipperInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ThreatDetection/GetVulWhitelists.cs b/sdk/dotnet/ThreatDetection/GetVulWhitelists.cs index 9ca7e363f1..bfbf2fa749 100644 --- a/sdk/dotnet/ThreatDetection/GetVulWhitelists.cs +++ b/sdk/dotnet/ThreatDetection/GetVulWhitelists.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetVulWhitelistsArgs? arg /// public static Output Invoke(GetVulWhitelistsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getVulWhitelists:getVulWhitelists", args ?? new GetVulWhitelistsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Threat Detection Vul Whitelists of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.195.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ThreatDetection.GetVulWhitelists.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudThreatDetectionVulWhitelistExampleId"] = @default.Apply(@default => @default.Apply(getVulWhitelistsResult => getVulWhitelistsResult.Whitelists[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetVulWhitelistsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getVulWhitelists:getVulWhitelists", args ?? new GetVulWhitelistsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ThreatDetection/GetWebLockConfigs.cs b/sdk/dotnet/ThreatDetection/GetWebLockConfigs.cs index a5d7e748b5..15c3ac57fb 100644 --- a/sdk/dotnet/ThreatDetection/GetWebLockConfigs.cs +++ b/sdk/dotnet/ThreatDetection/GetWebLockConfigs.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetWebLockConfigsArgs? a /// public static Output Invoke(GetWebLockConfigsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getWebLockConfigs:getWebLockConfigs", args ?? new GetWebLockConfigsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Threat Detection Web Lock Config available to the user.[What is Web Lock Config](https://www.alibabacloud.com/help/en/security-center/latest/api-sas-2018-12-03-describeweblockconfiglist) + /// + /// > **NOTE:** Available since v1.195.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.ThreatDetection.GetWebLockConfigs.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultAlicloudThreatDetectionWebLockConfig.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudThreatDetectionWebLockConfigExampleId"] = @default.Apply(@default => @default.Apply(getWebLockConfigsResult => getWebLockConfigsResult.Configs[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetWebLockConfigsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:threatdetection/getWebLockConfigs:getWebLockConfigs", args ?? new GetWebLockConfigsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Tsdb/GetInstances.cs b/sdk/dotnet/Tsdb/GetInstances.cs index 2ae4b65848..a60dbd5940 100644 --- a/sdk/dotnet/Tsdb/GetInstances.cs +++ b/sdk/dotnet/Tsdb/GetInstances.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:tsdb/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Time Series Database (TSDB) Instances of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.112.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Tsdb.GetInstances.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstTsdbInstanceId"] = example.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:tsdb/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Tsdb/GetZones.cs b/sdk/dotnet/Tsdb/GetZones.cs index 553ec17a17..f26f7d1b41 100644 --- a/sdk/dotnet/Tsdb/GetZones.cs +++ b/sdk/dotnet/Tsdb/GetZones.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:tsdb/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the available zones with the Time Series Database (TSDB) Instance of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.112.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Tsdb.GetZones.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstTsdbZonesId"] = example.Apply(getZonesResult => getZonesResult.Zones[0]?.ZoneId), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:tsdb/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Utilities.cs b/sdk/dotnet/Utilities.cs index ccffbdc2df..df5ae0d401 100644 --- a/sdk/dotnet/Utilities.cs +++ b/sdk/dotnet/Utilities.cs @@ -56,6 +56,13 @@ static class Utilities return dst; } + public static global::Pulumi.InvokeOutputOptions WithDefaults(this global::Pulumi.InvokeOutputOptions? src) + { + var dst = src ?? new global::Pulumi.InvokeOutputOptions{}; + dst.Version = src?.Version ?? Version; + return dst; + } + private readonly static string version; public static string Version => version; diff --git a/sdk/dotnet/VideoSurveillance/GetService.cs b/sdk/dotnet/VideoSurveillance/GetService.cs index aa76c23e9f..3964ce28d4 100644 --- a/sdk/dotnet/VideoSurveillance/GetService.cs +++ b/sdk/dotnet/VideoSurveillance/GetService.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetServiceArgs? args = null, In /// public static Output Invoke(GetServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:videosurveillance/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open Video Surveillance System service automatically. If the service has been opened, it will return opened. + /// + /// For information about Video Surveillance System and how to use it, see [What is VS](https://help.aliyun.com/product/108765.html). + /// + /// > **NOTE:** Available in v1.116.0+ + /// + /// > **NOTE:** The Video Surveillance System service is not support in the international site. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.VideoSurveillance.GetService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:videosurveillance/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/VideoSurveillance/GetSystemGroups.cs b/sdk/dotnet/VideoSurveillance/GetSystemGroups.cs index 6a4b8eadb3..fc06ef60e9 100644 --- a/sdk/dotnet/VideoSurveillance/GetSystemGroups.cs +++ b/sdk/dotnet/VideoSurveillance/GetSystemGroups.cs @@ -98,6 +98,50 @@ public static Task InvokeAsync(GetSystemGroupsArgs? args /// public static Output Invoke(GetSystemGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:videosurveillance/getSystemGroups:getSystemGroups", args ?? new GetSystemGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Video Surveillance System Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.135.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var defaultSystemGroup = new AliCloud.VideoSurveillance.SystemGroup("default", new() + /// { + /// GroupName = "groupname", + /// InProtocol = "rtmp", + /// OutProtocol = "flv", + /// PlayDomain = "your_plan_domain", + /// PushDomain = "your_push_domain", + /// }); + /// + /// var @default = AliCloud.VideoSurveillance.GetSystemGroups.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultSystemGroup.Id, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vsGroup"] = @default.Apply(@default => @default.Apply(getSystemGroupsResult => getSystemGroupsResult.Ids[0])), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSystemGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:videosurveillance/getSystemGroups:getSystemGroups", args ?? new GetSystemGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vod/GetDomains.cs b/sdk/dotnet/Vod/GetDomains.cs index e0e3c2afbd..9256591b13 100644 --- a/sdk/dotnet/Vod/GetDomains.cs +++ b/sdk/dotnet/Vod/GetDomains.cs @@ -130,6 +130,66 @@ public static Task InvokeAsync(GetDomainsArgs? args = null, In /// public static Output Invoke(GetDomainsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vod/getDomains:getDomains", args ?? new GetDomainsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vod Domains of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.136.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var defaultDomain = new AliCloud.Vod.Domain("default", new() + /// { + /// DomainName = "your_domain_name", + /// Scope = "domestic", + /// Sources = new[] + /// { + /// new AliCloud.Vod.Inputs.DomainSourceArgs + /// { + /// SourceType = "domain", + /// SourceContent = "your_source_content", + /// SourcePort = "80", + /// }, + /// }, + /// Tags = + /// { + /// { "key1", "value1" }, + /// { "key2", "value2" }, + /// }, + /// }); + /// + /// var @default = AliCloud.Vod.GetDomains.Invoke(new() + /// { + /// Ids = new[] + /// { + /// defaultDomain.Id, + /// }, + /// Tags = + /// { + /// { "key1", "value1" }, + /// { "key2", "value2" }, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vodDomain"] = @default.Apply(@default => @default.Apply(getDomainsResult => getDomainsResult.Domains[0])), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDomainsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vod/getDomains:getDomains", args ?? new GetDomainsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetBgpGroups.cs b/sdk/dotnet/Vpc/GetBgpGroups.cs index d102bb6700..a46dfa9572 100644 --- a/sdk/dotnet/Vpc/GetBgpGroups.cs +++ b/sdk/dotnet/Vpc/GetBgpGroups.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetBgpGroupsArgs? args = null /// public static Output Invoke(GetBgpGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getBgpGroups:getBgpGroups", args ?? new GetBgpGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpc Bgp Groups of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.152.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Vpc.GetBgpGroups.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Vpc.GetBgpGroups.Invoke(new() + /// { + /// NameRegex = "^my-BgpGroup", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpcBgpGroupId1"] = ids.Apply(getBgpGroupsResult => getBgpGroupsResult.Groups[0]?.Id), + /// ["vpcBgpGroupId2"] = nameRegex.Apply(getBgpGroupsResult => getBgpGroupsResult.Groups[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBgpGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getBgpGroups:getBgpGroups", args ?? new GetBgpGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetBgpNetworks.cs b/sdk/dotnet/Vpc/GetBgpNetworks.cs index ff184b8994..e9a6c4e179 100644 --- a/sdk/dotnet/Vpc/GetBgpNetworks.cs +++ b/sdk/dotnet/Vpc/GetBgpNetworks.cs @@ -104,6 +104,53 @@ public static Task InvokeAsync(GetBgpNetworksArgs? args = /// public static Output Invoke(GetBgpNetworksInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getBgpNetworks:getBgpNetworks", args ?? new GetBgpNetworksInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpc Bgp Networks of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.153.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Vpc.GetBgpNetworks.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// }); + /// + /// var routerId = AliCloud.Vpc.GetBgpNetworks.Invoke(new() + /// { + /// RouterId = "example_value", + /// }); + /// + /// var status = AliCloud.Vpc.GetBgpNetworks.Invoke(new() + /// { + /// Status = "Available", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpcBgpNetworkId1"] = ids.Apply(getBgpNetworksResult => getBgpNetworksResult.Networks[0]?.Id), + /// ["vpcBgpNetworkId2"] = routerId.Apply(getBgpNetworksResult => getBgpNetworksResult.Networks[0]?.Id), + /// ["vpcBgpNetworkId3"] = status.Apply(getBgpNetworksResult => getBgpNetworksResult.Networks[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBgpNetworksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getBgpNetworks:getBgpNetworks", args ?? new GetBgpNetworksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetBgpPeers.cs b/sdk/dotnet/Vpc/GetBgpPeers.cs index a4e8920282..e02fdad2c0 100644 --- a/sdk/dotnet/Vpc/GetBgpPeers.cs +++ b/sdk/dotnet/Vpc/GetBgpPeers.cs @@ -118,6 +118,60 @@ public static Task InvokeAsync(GetBgpPeersArgs? args = null, /// public static Output Invoke(GetBgpPeersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getBgpPeers:getBgpPeers", args ?? new GetBgpPeersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpc Bgp Peers of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.153.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Vpc.GetBgpPeers.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// var bgpGroupId = AliCloud.Vpc.GetBgpPeers.Invoke(new() + /// { + /// BgpGroupId = "example_value", + /// }); + /// + /// var routerId = AliCloud.Vpc.GetBgpPeers.Invoke(new() + /// { + /// RouterId = "example_value", + /// }); + /// + /// var status = AliCloud.Vpc.GetBgpPeers.Invoke(new() + /// { + /// Status = "Available", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpcBgpPeerId1"] = ids.Apply(getBgpPeersResult => getBgpPeersResult.Peers[0]?.Id), + /// ["vpcBgpPeerId2"] = bgpGroupId.Apply(getBgpPeersResult => getBgpPeersResult.Peers[0]?.Id), + /// ["vpcBgpPeerId3"] = routerId.Apply(getBgpPeersResult => getBgpPeersResult.Peers[0]?.Id), + /// ["vpcBgpPeerId4"] = status.Apply(getBgpPeersResult => getBgpPeersResult.Peers[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBgpPeersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getBgpPeers:getBgpPeers", args ?? new GetBgpPeersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetCommonBandwidthPackages.cs b/sdk/dotnet/Vpc/GetCommonBandwidthPackages.cs index 3aeb26691a..22bb8dcb5a 100644 --- a/sdk/dotnet/Vpc/GetCommonBandwidthPackages.cs +++ b/sdk/dotnet/Vpc/GetCommonBandwidthPackages.cs @@ -100,6 +100,51 @@ public static Task InvokeAsync(GetCommonBandwi /// public static Output Invoke(GetCommonBandwidthPackagesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getCommonBandwidthPackages:getCommonBandwidthPackages", args ?? new GetCommonBandwidthPackagesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of Common Bandwidth Packages owned by an Alibaba Cloud account. + /// + /// > **NOTE:** Available in 1.36.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var fooCommonBandwithPackage = new AliCloud.Vpc.CommonBandwithPackage("foo", new() + /// { + /// Bandwidth = "2", + /// Name = "tf-testAccCommonBandwidthPackage", + /// Description = "tf-testAcc-CommonBandwidthPackage", + /// }); + /// + /// var foo = AliCloud.Vpc.GetCommonBandwidthPackages.Invoke(new() + /// { + /// NameRegex = "^tf-testAcc.*", + /// Ids = new[] + /// { + /// fooCommonBandwithPackage.Id, + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// ## Public ip addresses Block + /// + /// The public ip addresses mapping supports the following: + /// + /// * `ip_address` - The address of the EIP. + /// * `allocation_id` - The ID of the EIP instance. + /// * `bandwidth_package_ip_relation_status` - The IP relation status of bandwidth package. + /// + public static Output Invoke(GetCommonBandwidthPackagesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getCommonBandwidthPackages:getCommonBandwidthPackages", args ?? new GetCommonBandwidthPackagesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetDhcpOptionsSets.cs b/sdk/dotnet/Vpc/GetDhcpOptionsSets.cs index a9b4d4a6e9..716b1cff95 100644 --- a/sdk/dotnet/Vpc/GetDhcpOptionsSets.cs +++ b/sdk/dotnet/Vpc/GetDhcpOptionsSets.cs @@ -144,6 +144,73 @@ public static Task InvokeAsync(GetDhcpOptionsSetsArgs? /// public static Output Invoke(GetDhcpOptionsSetsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getDhcpOptionsSets:getDhcpOptionsSets", args ?? new GetDhcpOptionsSetsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpc Dhcp Options Sets of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.134.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Vpc.GetDhcpOptionsSets.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Vpc.GetDhcpOptionsSets.Invoke(new() + /// { + /// NameRegex = "^my-DhcpOptionsSet", + /// }); + /// + /// var dhcpOptionsSetName = AliCloud.Vpc.GetDhcpOptionsSets.Invoke(new() + /// { + /// DhcpOptionsSetName = "my-DhcpOptionsSet", + /// }); + /// + /// var domainName = AliCloud.Vpc.GetDhcpOptionsSets.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// DomainName = "example.com", + /// }); + /// + /// var status = AliCloud.Vpc.GetDhcpOptionsSets.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// Status = "Available", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpcDhcpOptionsSetId1"] = ids.Apply(getDhcpOptionsSetsResult => getDhcpOptionsSetsResult.Sets[0]?.Id), + /// ["vpcDhcpOptionsSetId2"] = nameRegex.Apply(getDhcpOptionsSetsResult => getDhcpOptionsSetsResult.Sets[0]?.Id), + /// ["vpcDhcpOptionsSetId3"] = dhcpOptionsSetName.Apply(getDhcpOptionsSetsResult => getDhcpOptionsSetsResult.Sets[0]?.Id), + /// ["vpcDhcpOptionsSetId4"] = domainName.Apply(getDhcpOptionsSetsResult => getDhcpOptionsSetsResult.Sets[0]?.Id), + /// ["vpcDhcpOptionsSetId5"] = status.Apply(getDhcpOptionsSetsResult => getDhcpOptionsSetsResult.Sets[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDhcpOptionsSetsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getDhcpOptionsSets:getDhcpOptionsSets", args ?? new GetDhcpOptionsSetsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetEnhancedNatAvailableZones.cs b/sdk/dotnet/Vpc/GetEnhancedNatAvailableZones.cs index 06ddee0f78..818f552348 100644 --- a/sdk/dotnet/Vpc/GetEnhancedNatAvailableZones.cs +++ b/sdk/dotnet/Vpc/GetEnhancedNatAvailableZones.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetEnhancedNa public static Output Invoke(GetEnhancedNatAvailableZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getEnhancedNatAvailableZones:getEnhancedNatAvailableZones", args ?? new GetEnhancedNatAvailableZonesInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetEnhancedNatAvailableZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getEnhancedNatAvailableZones:getEnhancedNatAvailableZones", args ?? new GetEnhancedNatAvailableZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetFlowLogService.cs b/sdk/dotnet/Vpc/GetFlowLogService.cs index 8f58663fc2..0a310224e1 100644 --- a/sdk/dotnet/Vpc/GetFlowLogService.cs +++ b/sdk/dotnet/Vpc/GetFlowLogService.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetFlowLogServiceArgs? a /// public static Output Invoke(GetFlowLogServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getFlowLogService:getFlowLogService", args ?? new GetFlowLogServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open Vpc Flow Log service automatically. If the service has been opened, it will return opened. + /// + /// For information about Vpc Flow Log and how to use it, see [What is Vpc Flow Log](https://www.alibabacloud.com/help/en/vpc/developer-reference/api-openflowlog). + /// + /// > **NOTE:** Available since v1.209.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Vpc.GetFlowLogService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFlowLogServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getFlowLogService:getFlowLogService", args ?? new GetFlowLogServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetForwardEntries.cs b/sdk/dotnet/Vpc/GetForwardEntries.cs index ace7e0dda7..f6c589d67a 100644 --- a/sdk/dotnet/Vpc/GetForwardEntries.cs +++ b/sdk/dotnet/Vpc/GetForwardEntries.cs @@ -164,6 +164,83 @@ public static Task InvokeAsync(GetForwardEntriesArgs ar /// public static Output Invoke(GetForwardEntriesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getForwardEntries:getForwardEntries", args ?? new GetForwardEntriesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of Forward Entries owned by an Alibaba Cloud account. + /// + /// > **NOTE:** Available in 1.37.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "forward-entry-config-example-name"; + /// var @default = AliCloud.GetZones.Invoke(new() + /// { + /// AvailableResourceCreation = "VSwitch", + /// }); + /// + /// var defaultNetwork = new AliCloud.Vpc.Network("default", new() + /// { + /// VpcName = name, + /// CidrBlock = "172.16.0.0/12", + /// }); + /// + /// var defaultSwitch = new AliCloud.Vpc.Switch("default", new() + /// { + /// VpcId = defaultNetwork.Id, + /// CidrBlock = "172.16.0.0/21", + /// ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)), + /// VswitchName = name, + /// }); + /// + /// var defaultNatGateway = new AliCloud.Vpc.NatGateway("default", new() + /// { + /// VpcId = defaultNetwork.Id, + /// InternetChargeType = "PayByLcu", + /// NatGatewayName = name, + /// NatType = "Enhanced", + /// VswitchId = defaultSwitch.Id, + /// }); + /// + /// var defaultEipAddress = new AliCloud.Ecs.EipAddress("default", new() + /// { + /// AddressName = name, + /// }); + /// + /// var defaultEipAssociation = new AliCloud.Ecs.EipAssociation("default", new() + /// { + /// AllocationId = defaultEipAddress.Id, + /// InstanceId = defaultNatGateway.Id, + /// }); + /// + /// var defaultForwardEntry = new AliCloud.Vpc.ForwardEntry("default", new() + /// { + /// ForwardTableId = defaultNatGateway.ForwardTableIds, + /// ExternalIp = defaultEipAddress.IpAddress, + /// ExternalPort = "80", + /// IpProtocol = "tcp", + /// InternalIp = "172.16.0.3", + /// InternalPort = "8080", + /// }); + /// + /// var defaultGetForwardEntries = AliCloud.Vpc.GetForwardEntries.Invoke(new() + /// { + /// ForwardTableId = defaultForwardEntry.ForwardTableId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetForwardEntriesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getForwardEntries:getForwardEntries", args ?? new GetForwardEntriesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetHavips.cs b/sdk/dotnet/Vpc/GetHavips.cs index 4a6cfa7b4b..f38b2c8bf9 100644 --- a/sdk/dotnet/Vpc/GetHavips.cs +++ b/sdk/dotnet/Vpc/GetHavips.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetHavipsArgs? args = null, Invo /// public static Output Invoke(GetHavipsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getHavips:getHavips", args ?? new GetHavipsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Havips of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.120.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Vpc.GetHavips.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstHavipId"] = example.Apply(getHavipsResult => getHavipsResult.Havips[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetHavipsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getHavips:getHavips", args ?? new GetHavipsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetIpsecServers.cs b/sdk/dotnet/Vpc/GetIpsecServers.cs index c42ea03d59..4d868ebe1b 100644 --- a/sdk/dotnet/Vpc/GetIpsecServers.cs +++ b/sdk/dotnet/Vpc/GetIpsecServers.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetIpsecServersArgs? args /// public static Output Invoke(GetIpsecServersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getIpsecServers:getIpsecServers", args ?? new GetIpsecServersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpn Ipsec Servers of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.161.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Vpc.GetIpsecServers.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Vpc.GetIpsecServers.Invoke(new() + /// { + /// NameRegex = "^my-IpsecServer", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpnIpsecServerId1"] = ids.Apply(getIpsecServersResult => getIpsecServersResult.Servers[0]?.Id), + /// ["vpnIpsecServerId2"] = nameRegex.Apply(getIpsecServersResult => getIpsecServersResult.Servers[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetIpsecServersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getIpsecServers:getIpsecServers", args ?? new GetIpsecServersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetIpv4Gateways.cs b/sdk/dotnet/Vpc/GetIpv4Gateways.cs index 7ee91a20c5..bcd9db9916 100644 --- a/sdk/dotnet/Vpc/GetIpv4Gateways.cs +++ b/sdk/dotnet/Vpc/GetIpv4Gateways.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetIpv4GatewaysArgs? args /// public static Output Invoke(GetIpv4GatewaysInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getIpv4Gateways:getIpv4Gateways", args ?? new GetIpv4GatewaysInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpc Ipv4 Gateways of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.181.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Vpc.GetIpv4Gateways.Invoke(); + /// + /// var nameRegex = AliCloud.Vpc.GetIpv4Gateways.Invoke(new() + /// { + /// NameRegex = "^my-Ipv4Gateway", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpcIpv4GatewayId1"] = ids.Apply(getIpv4GatewaysResult => getIpv4GatewaysResult.Gateways[0]?.Id), + /// ["vpcIpv4GatewayId2"] = nameRegex.Apply(getIpv4GatewaysResult => getIpv4GatewaysResult.Gateways[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetIpv4GatewaysInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getIpv4Gateways:getIpv4Gateways", args ?? new GetIpv4GatewaysInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetIpv6Addresses.cs b/sdk/dotnet/Vpc/GetIpv6Addresses.cs index 4782a3ee7b..6c9cc1e099 100644 --- a/sdk/dotnet/Vpc/GetIpv6Addresses.cs +++ b/sdk/dotnet/Vpc/GetIpv6Addresses.cs @@ -110,6 +110,56 @@ public static Task InvokeAsync(GetIpv6AddressesArgs? arg /// public static Output Invoke(GetIpv6AddressesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getIpv6Addresses:getIpv6Addresses", args ?? new GetIpv6AddressesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpc Ipv6 Addresses of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.142.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var associatedInstanceId = AliCloud.Vpc.GetIpv6Addresses.Invoke(new() + /// { + /// AssociatedInstanceId = "example_value", + /// }); + /// + /// var vswitchId = AliCloud.Vpc.GetIpv6Addresses.Invoke(new() + /// { + /// VswitchId = "example_value", + /// }); + /// + /// var vpcId = AliCloud.Vpc.GetIpv6Addresses.Invoke(new() + /// { + /// VpcId = "example_value", + /// }); + /// + /// var status = AliCloud.Vpc.GetIpv6Addresses.Invoke(new() + /// { + /// Status = "Available", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpcIpv6AddressId1"] = associatedInstanceId.Apply(getIpv6AddressesResult => getIpv6AddressesResult.Addresses[0]?.Id), + /// ["vpcIpv6AddressId2"] = vswitchId.Apply(getIpv6AddressesResult => getIpv6AddressesResult.Addresses[0]?.Id), + /// ["vpcIpv6AddressId3"] = vpcId.Apply(getIpv6AddressesResult => getIpv6AddressesResult.Addresses[0]?.Id), + /// ["vpcIpv6AddressId4"] = status.Apply(getIpv6AddressesResult => getIpv6AddressesResult.Addresses[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetIpv6AddressesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getIpv6Addresses:getIpv6Addresses", args ?? new GetIpv6AddressesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetIpv6EgressRules.cs b/sdk/dotnet/Vpc/GetIpv6EgressRules.cs index 924d40da73..9a74c4815f 100644 --- a/sdk/dotnet/Vpc/GetIpv6EgressRules.cs +++ b/sdk/dotnet/Vpc/GetIpv6EgressRules.cs @@ -126,6 +126,64 @@ public static Task InvokeAsync(GetIpv6EgressRulesArgs /// public static Output Invoke(GetIpv6EgressRulesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getIpv6EgressRules:getIpv6EgressRules", args ?? new GetIpv6EgressRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpc Ipv6 Egress Rules of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.142.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Vpc.GetIpv6EgressRules.Invoke(new() + /// { + /// Ipv6GatewayId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Vpc.GetIpv6EgressRules.Invoke(new() + /// { + /// Ipv6GatewayId = "example_value", + /// NameRegex = "^my-Ipv6EgressRule", + /// }); + /// + /// var status = AliCloud.Vpc.GetIpv6EgressRules.Invoke(new() + /// { + /// Ipv6GatewayId = "example_value", + /// Status = "Available", + /// }); + /// + /// var ipv6EgressRuleName = AliCloud.Vpc.GetIpv6EgressRules.Invoke(new() + /// { + /// Ipv6GatewayId = "example_value", + /// Ipv6EgressRuleName = "example_value", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpcIpv6EgressRuleId1"] = ids.Apply(getIpv6EgressRulesResult => getIpv6EgressRulesResult.Rules[0]?.Id), + /// ["vpcIpv6EgressRuleId2"] = nameRegex.Apply(getIpv6EgressRulesResult => getIpv6EgressRulesResult.Rules[0]?.Id), + /// ["vpcIpv6EgressRuleId3"] = status.Apply(getIpv6EgressRulesResult => getIpv6EgressRulesResult.Rules[0]?.Id), + /// ["vpcIpv6EgressRuleId4"] = ipv6EgressRuleName.Apply(getIpv6EgressRulesResult => getIpv6EgressRulesResult.Rules[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetIpv6EgressRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getIpv6EgressRules:getIpv6EgressRules", args ?? new GetIpv6EgressRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetIpv6Gateways.cs b/sdk/dotnet/Vpc/GetIpv6Gateways.cs index 6fce676e46..483ae2a565 100644 --- a/sdk/dotnet/Vpc/GetIpv6Gateways.cs +++ b/sdk/dotnet/Vpc/GetIpv6Gateways.cs @@ -132,6 +132,67 @@ public static Task InvokeAsync(GetIpv6GatewaysArgs? args /// public static Output Invoke(GetIpv6GatewaysInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getIpv6Gateways:getIpv6Gateways", args ?? new GetIpv6GatewaysInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpc Ipv6 Gateways of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.142.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Vpc.GetIpv6Gateways.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Vpc.GetIpv6Gateways.Invoke(new() + /// { + /// NameRegex = "^my-Ipv6Gateway", + /// }); + /// + /// var vpcId = AliCloud.Vpc.GetIpv6Gateways.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// VpcId = "example_value", + /// }); + /// + /// var status = AliCloud.Vpc.GetIpv6Gateways.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// Status = "Available", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpcIpv6GatewayId1"] = ids.Apply(getIpv6GatewaysResult => getIpv6GatewaysResult.Gateways[0]?.Id), + /// ["vpcIpv6GatewayId2"] = nameRegex.Apply(getIpv6GatewaysResult => getIpv6GatewaysResult.Gateways[0]?.Id), + /// ["vpcIpv6GatewayId3"] = vpcId.Apply(getIpv6GatewaysResult => getIpv6GatewaysResult.Gateways[0]?.Id), + /// ["vpcIpv6GatewayId4"] = status.Apply(getIpv6GatewaysResult => getIpv6GatewaysResult.Gateways[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetIpv6GatewaysInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getIpv6Gateways:getIpv6Gateways", args ?? new GetIpv6GatewaysInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetIpv6InternetBandwidths.cs b/sdk/dotnet/Vpc/GetIpv6InternetBandwidths.cs index 66f1096905..eda759dd63 100644 --- a/sdk/dotnet/Vpc/GetIpv6InternetBandwidths.cs +++ b/sdk/dotnet/Vpc/GetIpv6InternetBandwidths.cs @@ -116,6 +116,59 @@ public static Task InvokeAsync(GetIpv6InternetB /// public static Output Invoke(GetIpv6InternetBandwidthsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getIpv6InternetBandwidths:getIpv6InternetBandwidths", args ?? new GetIpv6InternetBandwidthsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpc Ipv6 Internet Bandwidths of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.143.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Vpc.GetIpv6InternetBandwidths.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var ipv6InternetBandwidthId = AliCloud.Vpc.GetIpv6InternetBandwidths.Invoke(new() + /// { + /// Ipv6InternetBandwidthId = "example_value", + /// }); + /// + /// var ipv6AddressId = AliCloud.Vpc.GetIpv6InternetBandwidths.Invoke(new() + /// { + /// Ipv6AddressId = "example_value", + /// }); + /// + /// var status = AliCloud.Vpc.GetIpv6InternetBandwidths.Invoke(new() + /// { + /// Status = "Normal", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpcIpv6InternetBandwidthId1"] = ids.Apply(getIpv6InternetBandwidthsResult => getIpv6InternetBandwidthsResult.Bandwidths[0]?.Id), + /// ["vpcIpv6InternetBandwidthId2"] = ipv6InternetBandwidthId.Apply(getIpv6InternetBandwidthsResult => getIpv6InternetBandwidthsResult.Bandwidths[0]?.Id), + /// ["vpcIpv6InternetBandwidthId3"] = ipv6AddressId.Apply(getIpv6InternetBandwidthsResult => getIpv6InternetBandwidthsResult.Bandwidths[0]?.Id), + /// ["vpcIpv6InternetBandwidthId4"] = status.Apply(getIpv6InternetBandwidthsResult => getIpv6InternetBandwidthsResult.Bandwidths[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetIpv6InternetBandwidthsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getIpv6InternetBandwidths:getIpv6InternetBandwidths", args ?? new GetIpv6InternetBandwidthsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetNatGateways.cs b/sdk/dotnet/Vpc/GetNatGateways.cs index c4bb4f4c4b..94e23d3893 100644 --- a/sdk/dotnet/Vpc/GetNatGateways.cs +++ b/sdk/dotnet/Vpc/GetNatGateways.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetNatGatewaysArgs? args = /// public static Output Invoke(GetNatGatewaysInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getNatGateways:getNatGateways", args ?? new GetNatGatewaysInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of Nat Gateways owned by an Alibaba Cloud account. + /// + /// > **NOTE:** Available in 1.37.0+. + /// + public static Output Invoke(GetNatGatewaysInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getNatGateways:getNatGateways", args ?? new GetNatGatewaysInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetNatIpCidrs.cs b/sdk/dotnet/Vpc/GetNatIpCidrs.cs index 0a4b351135..1a55d5da96 100644 --- a/sdk/dotnet/Vpc/GetNatIpCidrs.cs +++ b/sdk/dotnet/Vpc/GetNatIpCidrs.cs @@ -160,6 +160,81 @@ public static Task InvokeAsync(GetNatIpCidrsArgs args, Invo /// public static Output Invoke(GetNatIpCidrsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getNatIpCidrs:getNatIpCidrs", args ?? new GetNatIpCidrsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpc Nat Ip Cidrs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.136.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Vpc.GetNatIpCidrs.Invoke(new() + /// { + /// NatGatewayId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Vpc.GetNatIpCidrs.Invoke(new() + /// { + /// NatGatewayId = "example_value", + /// NameRegex = "^my-NatIpCidr", + /// }); + /// + /// var status = AliCloud.Vpc.GetNatIpCidrs.Invoke(new() + /// { + /// NatGatewayId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// }, + /// Status = "Available", + /// }); + /// + /// var natIpCidr = AliCloud.Vpc.GetNatIpCidrs.Invoke(new() + /// { + /// NatGatewayId = "example_value", + /// NatIpCidrs = new[] + /// { + /// "example_value-1", + /// }, + /// }); + /// + /// var atIpCidrName = AliCloud.Vpc.GetNatIpCidrs.Invoke(new() + /// { + /// NatGatewayId = "example_value", + /// NatIpCidrNames = new[] + /// { + /// "example_value-1", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpcNatIpCidrId1"] = ids.Apply(getNatIpCidrsResult => getNatIpCidrsResult.Cidrs[0]?.Id), + /// ["vpcNatIpCidrId2"] = nameRegex.Apply(getNatIpCidrsResult => getNatIpCidrsResult.Cidrs[0]?.Id), + /// ["vpcNatIpCidrId3"] = status.Apply(getNatIpCidrsResult => getNatIpCidrsResult.Cidrs[0]?.Id), + /// ["vpcNatIpCidrId4"] = natIpCidr.Apply(getNatIpCidrsResult => getNatIpCidrsResult.Cidrs[0]?.Id), + /// ["vpcNatIpCidrId5"] = atIpCidrName.Apply(getNatIpCidrsResult => getNatIpCidrsResult.Cidrs[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetNatIpCidrsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getNatIpCidrs:getNatIpCidrs", args ?? new GetNatIpCidrsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetNatIps.cs b/sdk/dotnet/Vpc/GetNatIps.cs index 7262465b03..880521b92d 100644 --- a/sdk/dotnet/Vpc/GetNatIps.cs +++ b/sdk/dotnet/Vpc/GetNatIps.cs @@ -192,6 +192,97 @@ public static Task InvokeAsync(GetNatIpsArgs args, InvokeOption /// public static Output Invoke(GetNatIpsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getNatIps:getNatIps", args ?? new GetNatIpsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpc Nat Ips of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.136.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Vpc.GetNatIps.Invoke(new() + /// { + /// NatGatewayId = "example_value", + /// Ids = new[] + /// { + /// "example_value-1", + /// "example_value-2", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Vpc.GetNatIps.Invoke(new() + /// { + /// NatGatewayId = "example_value", + /// NameRegex = "^my-NatIp", + /// }); + /// + /// var natIpCidr = AliCloud.Vpc.GetNatIps.Invoke(new() + /// { + /// NatGatewayId = "example_value", + /// NatIpCidr = "example_value", + /// NameRegex = "^my-NatIp", + /// }); + /// + /// var natIpName = AliCloud.Vpc.GetNatIps.Invoke(new() + /// { + /// NatGatewayId = "example_value", + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// NatIpNames = new[] + /// { + /// "example_value", + /// }, + /// }); + /// + /// var natIpIds = AliCloud.Vpc.GetNatIps.Invoke(new() + /// { + /// NatGatewayId = "example_value", + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// NatIpIds = new[] + /// { + /// "example_value", + /// }, + /// }); + /// + /// var status = AliCloud.Vpc.GetNatIps.Invoke(new() + /// { + /// NatGatewayId = "example_value", + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// Status = "example_value", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpcNatIpId1"] = ids.Apply(getNatIpsResult => getNatIpsResult.Ips[0]?.Id), + /// ["vpcNatIpId2"] = nameRegex.Apply(getNatIpsResult => getNatIpsResult.Ips[0]?.Id), + /// ["vpcNatIpId3"] = natIpCidr.Apply(getNatIpsResult => getNatIpsResult.Ips[0]?.Id), + /// ["vpcNatIpId4"] = natIpName.Apply(getNatIpsResult => getNatIpsResult.Ips[0]?.Id), + /// ["vpcNatIpId5"] = natIpIds.Apply(getNatIpsResult => getNatIpsResult.Ips[0]?.Id), + /// ["vpcNatIpId6"] = status.Apply(getNatIpsResult => getNatIpsResult.Ips[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetNatIpsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getNatIps:getNatIps", args ?? new GetNatIpsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetNetworkAcls.cs b/sdk/dotnet/Vpc/GetNetworkAcls.cs index 192597eac2..2a9d7ec0c5 100644 --- a/sdk/dotnet/Vpc/GetNetworkAcls.cs +++ b/sdk/dotnet/Vpc/GetNetworkAcls.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetNetworkAclsArgs? args = /// public static Output Invoke(GetNetworkAclsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getNetworkAcls:getNetworkAcls", args ?? new GetNetworkAclsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Network Acls of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.122.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Vpc.GetNetworkAcls.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstNetworkAclId"] = example.Apply(getNetworkAclsResult => getNetworkAclsResult.Acls[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetNetworkAclsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getNetworkAcls:getNetworkAcls", args ?? new GetNetworkAclsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetNetworks.cs b/sdk/dotnet/Vpc/GetNetworks.cs index b02c622186..68754453d5 100644 --- a/sdk/dotnet/Vpc/GetNetworks.cs +++ b/sdk/dotnet/Vpc/GetNetworks.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetNetworksArgs? args = null, /// public static Output Invoke(GetNetworksInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getNetworks:getNetworks", args ?? new GetNetworksInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides VPCs available to the user. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var vpcsDs = AliCloud.Vpc.GetNetworks.Invoke(new() + /// { + /// CidrBlock = "172.16.0.0/12", + /// Status = "Available", + /// NameRegex = "^foo", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstVpcId"] = vpcsDs.Apply(getNetworksResult => getNetworksResult.Vpcs[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetNetworksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getNetworks:getNetworks", args ?? new GetNetworksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetPbrRouteEntries.cs b/sdk/dotnet/Vpc/GetPbrRouteEntries.cs index 473a0dce0b..f3b858b703 100644 --- a/sdk/dotnet/Vpc/GetPbrRouteEntries.cs +++ b/sdk/dotnet/Vpc/GetPbrRouteEntries.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetPbrRouteEntriesArgs /// public static Output Invoke(GetPbrRouteEntriesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getPbrRouteEntries:getPbrRouteEntries", args ?? new GetPbrRouteEntriesInvokeArgs(), options.WithDefaults()); + + /// + /// > **NOTE:** Available in v1.162.0+. + /// + /// The data source lists a number of VPN Pbr Route Entries resource information owned by an Alicloud account. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Vpc.GetPbrRouteEntries.Invoke(new() + /// { + /// VpnGatewayId = "example_vpn_gateway_id", + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpnIpsecServerId1"] = ids.Apply(getPbrRouteEntriesResult => getPbrRouteEntriesResult.Entries[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetPbrRouteEntriesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getPbrRouteEntries:getPbrRouteEntries", args ?? new GetPbrRouteEntriesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetPeerConnections.cs b/sdk/dotnet/Vpc/GetPeerConnections.cs index a68df79e83..11d70eb869 100644 --- a/sdk/dotnet/Vpc/GetPeerConnections.cs +++ b/sdk/dotnet/Vpc/GetPeerConnections.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetPeerConnectionsArgs? /// public static Output Invoke(GetPeerConnectionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getPeerConnections:getPeerConnections", args ?? new GetPeerConnectionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpc Peer Connections of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.186.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Vpc.GetPeerConnections.Invoke(); + /// + /// var nameRegex = AliCloud.Vpc.GetPeerConnections.Invoke(new() + /// { + /// NameRegex = "^my-PeerConnection", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpcPeerConnectionId1"] = ids.Apply(getPeerConnectionsResult => getPeerConnectionsResult.Connections[0]?.Id), + /// ["vpcPeerConnectionId2"] = nameRegex.Apply(getPeerConnectionsResult => getPeerConnectionsResult.Connections[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetPeerConnectionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getPeerConnections:getPeerConnections", args ?? new GetPeerConnectionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetPrefixLists.cs b/sdk/dotnet/Vpc/GetPrefixLists.cs index 6977f2d45c..8edc5e751d 100644 --- a/sdk/dotnet/Vpc/GetPrefixLists.cs +++ b/sdk/dotnet/Vpc/GetPrefixLists.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetPrefixListsArgs? args = /// public static Output Invoke(GetPrefixListsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getPrefixLists:getPrefixLists", args ?? new GetPrefixListsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpc Prefix Lists of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.182.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Vpc.GetPrefixLists.Invoke(); + /// + /// var nameRegex = AliCloud.Vpc.GetPrefixLists.Invoke(new() + /// { + /// NameRegex = "^my-PrefixList", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpcPrefixListId1"] = ids.Apply(getPrefixListsResult => getPrefixListsResult.Lists[0]?.Id), + /// ["vpcPrefixListId2"] = nameRegex.Apply(getPrefixListsResult => getPrefixListsResult.Lists[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetPrefixListsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getPrefixLists:getPrefixLists", args ?? new GetPrefixListsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetPublicIpAddressPoolCidrBlocks.cs b/sdk/dotnet/Vpc/GetPublicIpAddressPoolCidrBlocks.cs index 38d1c09682..456bfe667e 100644 --- a/sdk/dotnet/Vpc/GetPublicIpAddressPoolCidrBlocks.cs +++ b/sdk/dotnet/Vpc/GetPublicIpAddressPoolCidrBlocks.cs @@ -100,6 +100,51 @@ public static Task InvokeAsync(GetPublic /// public static Output Invoke(GetPublicIpAddressPoolCidrBlocksInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getPublicIpAddressPoolCidrBlocks:getPublicIpAddressPoolCidrBlocks", args ?? new GetPublicIpAddressPoolCidrBlocksInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpc Public Ip Address Pool Cidr Blocks of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.189.0+. + /// + /// > **NOTE:** Only users who have the required permissions can use the IP address pool feature of Elastic IP Address (EIP). To apply for the required permissions, [submit a ticket](https://smartservice.console.aliyun.com/service/create-ticket). + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Vpc.GetPublicIpAddressPoolCidrBlocks.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// PublicIpAddressPoolId = "example_value", + /// }); + /// + /// var cidrBlock = AliCloud.Vpc.GetPublicIpAddressPoolCidrBlocks.Invoke(new() + /// { + /// PublicIpAddressPoolId = "example_value", + /// CidrBlock = "example_value", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpcPublicIpAddressPoolCidrBlockId1"] = ids.Apply(getPublicIpAddressPoolCidrBlocksResult => getPublicIpAddressPoolCidrBlocksResult.Blocks[0]?.Id), + /// ["vpcPublicIpAddressPoolCidrBlockId2"] = cidrBlock.Apply(getPublicIpAddressPoolCidrBlocksResult => getPublicIpAddressPoolCidrBlocksResult.Blocks[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetPublicIpAddressPoolCidrBlocksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getPublicIpAddressPoolCidrBlocks:getPublicIpAddressPoolCidrBlocks", args ?? new GetPublicIpAddressPoolCidrBlocksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetPublicIpAddressPools.cs b/sdk/dotnet/Vpc/GetPublicIpAddressPools.cs index a2b77e1394..8c4a4bc32f 100644 --- a/sdk/dotnet/Vpc/GetPublicIpAddressPools.cs +++ b/sdk/dotnet/Vpc/GetPublicIpAddressPools.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetPublicIpAddress /// public static Output Invoke(GetPublicIpAddressPoolsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getPublicIpAddressPools:getPublicIpAddressPools", args ?? new GetPublicIpAddressPoolsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpc Public Ip Address Pools of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.186.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Vpc.GetPublicIpAddressPools.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Vpc.GetPublicIpAddressPools.Invoke(new() + /// { + /// NameRegex = "example_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpcPublicIpAddressPoolId1"] = ids.Apply(getPublicIpAddressPoolsResult => getPublicIpAddressPoolsResult.Pools[0]?.Id), + /// ["vpcPublicIpAddressPoolId2"] = nameRegex.Apply(getPublicIpAddressPoolsResult => getPublicIpAddressPoolsResult.Pools[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetPublicIpAddressPoolsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getPublicIpAddressPools:getPublicIpAddressPools", args ?? new GetPublicIpAddressPoolsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetRouteEntries.cs b/sdk/dotnet/Vpc/GetRouteEntries.cs index 419b3a9f7c..ea7abde272 100644 --- a/sdk/dotnet/Vpc/GetRouteEntries.cs +++ b/sdk/dotnet/Vpc/GetRouteEntries.cs @@ -220,6 +220,111 @@ public static Task InvokeAsync(GetRouteEntriesArgs args, /// public static Output Invoke(GetRouteEntriesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getRouteEntries:getRouteEntries", args ?? new GetRouteEntriesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of Route Entries owned by an Alibaba Cloud account. + /// + /// > **NOTE:** Available in 1.37.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.GetZones.Invoke(new() + /// { + /// AvailableResourceCreation = "VSwitch", + /// }); + /// + /// var defaultGetInstanceTypes = AliCloud.Ecs.GetInstanceTypes.Invoke(new() + /// { + /// AvailabilityZone = @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id), + /// CpuCoreCount = 1, + /// MemorySize = 2, + /// }); + /// + /// var defaultGetImages = AliCloud.Ecs.GetImages.Invoke(new() + /// { + /// NameRegex = "^ubuntu_18.*64", + /// MostRecent = true, + /// Owners = "system", + /// }); + /// + /// var config = new Config(); + /// var name = config.Get("name") ?? "tf-testAccRouteEntryConfig"; + /// var fooNetwork = new AliCloud.Vpc.Network("foo", new() + /// { + /// Name = name, + /// CidrBlock = "10.1.0.0/21", + /// }); + /// + /// var fooSwitch = new AliCloud.Vpc.Switch("foo", new() + /// { + /// VpcId = fooNetwork.Id, + /// CidrBlock = "10.1.1.0/24", + /// AvailabilityZone = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)), + /// VswitchName = name, + /// }); + /// + /// var tfTestFoo = new AliCloud.Ecs.SecurityGroup("tf_test_foo", new() + /// { + /// Name = name, + /// Description = "foo", + /// VpcId = fooNetwork.Id, + /// }); + /// + /// var fooInstance = new AliCloud.Ecs.Instance("foo", new() + /// { + /// SecurityGroups = new[] + /// { + /// tfTestFoo.Id, + /// }, + /// VswitchId = fooSwitch.Id, + /// AllocatePublicIp = true, + /// InstanceChargeType = "PostPaid", + /// InstanceType = defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.Id), + /// InternetChargeType = "PayByTraffic", + /// InternetMaxBandwidthOut = 5, + /// SystemDiskCategory = "cloud_efficiency", + /// ImageId = defaultGetImages.Apply(getImagesResult => getImagesResult.Images[0]?.Id), + /// InstanceName = name, + /// }); + /// + /// var fooRouteEntry = new AliCloud.Vpc.RouteEntry("foo", new() + /// { + /// RouteTableId = fooNetwork.RouteTableId, + /// DestinationCidrblock = "172.11.1.1/32", + /// NexthopType = "Instance", + /// NexthopId = fooInstance.Id, + /// }); + /// + /// var ingress = new AliCloud.Ecs.SecurityGroupRule("ingress", new() + /// { + /// Type = "ingress", + /// IpProtocol = "tcp", + /// NicType = "intranet", + /// Policy = "accept", + /// PortRange = "22/22", + /// Priority = 1, + /// SecurityGroupId = tfTestFoo.Id, + /// CidrIp = "0.0.0.0/0", + /// }); + /// + /// var foo = AliCloud.Vpc.GetRouteEntries.Invoke(new() + /// { + /// RouteTableId = fooRouteEntry.RouteTableId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRouteEntriesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getRouteEntries:getRouteEntries", args ?? new GetRouteEntriesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetRouteTables.cs b/sdk/dotnet/Vpc/GetRouteTables.cs index cbd077fa52..1eda65fdcf 100644 --- a/sdk/dotnet/Vpc/GetRouteTables.cs +++ b/sdk/dotnet/Vpc/GetRouteTables.cs @@ -108,6 +108,55 @@ public static Task InvokeAsync(GetRouteTablesArgs? args = /// public static Output Invoke(GetRouteTablesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getRouteTables:getRouteTables", args ?? new GetRouteTablesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of Route Tables owned by an Alibaba Cloud account. + /// + /// > **NOTE:** Available since v1.36.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "route-tables-datasource-example-name"; + /// var fooNetwork = new AliCloud.Vpc.Network("foo", new() + /// { + /// CidrBlock = "172.16.0.0/12", + /// VpcName = name, + /// }); + /// + /// var fooRouteTable = new AliCloud.Vpc.RouteTable("foo", new() + /// { + /// VpcId = fooNetwork.Id, + /// RouteTableName = name, + /// Description = name, + /// }); + /// + /// var foo = AliCloud.Vpc.GetRouteTables.Invoke(new() + /// { + /// Ids = new[] + /// { + /// fooRouteTable.Id, + /// }, + /// RouteTableType = "Custom", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["routeTableIds"] = foo.Apply(getRouteTablesResult => getRouteTablesResult.Ids), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRouteTablesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getRouteTables:getRouteTables", args ?? new GetRouteTablesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetRouterInterfaces.cs b/sdk/dotnet/Vpc/GetRouterInterfaces.cs index fb6d04b4cc..ad989cf08b 100644 --- a/sdk/dotnet/Vpc/GetRouterInterfaces.cs +++ b/sdk/dotnet/Vpc/GetRouterInterfaces.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetRouterInterfacesArg /// public static Output Invoke(GetRouterInterfacesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getRouterInterfaces:getRouterInterfaces", args ?? new GetRouterInterfacesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides information about [router interfaces](https://www.alibabacloud.com/help/en/express-connect/developer-reference/api-vpc-2016-04-28-describerouterinterfaces-efficiency-channels) + /// that connect VPCs together. + /// + /// > **DEPRECATED:** This datasource has been deprecated from version `1.199.0`. Please use new data source alicloud_express_connect_router_interfaces. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var routerInterfacesDs = AliCloud.Vpc.GetRouterInterfaces.Invoke(new() + /// { + /// NameRegex = "^testenv", + /// Status = "Active", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstRouterInterfaceId"] = routerInterfacesDs.Apply(getRouterInterfacesResult => getRouterInterfacesResult.Interfaces[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRouterInterfacesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getRouterInterfaces:getRouterInterfaces", args ?? new GetRouterInterfacesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetSnatEntries.cs b/sdk/dotnet/Vpc/GetSnatEntries.cs index b0da6f6017..4f0b3cf4ed 100644 --- a/sdk/dotnet/Vpc/GetSnatEntries.cs +++ b/sdk/dotnet/Vpc/GetSnatEntries.cs @@ -154,6 +154,78 @@ public static Task InvokeAsync(GetSnatEntriesArgs args, In /// public static Output Invoke(GetSnatEntriesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getSnatEntries:getSnatEntries", args ?? new GetSnatEntriesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of Snat Entries owned by an Alibaba Cloud account. + /// + /// > **NOTE:** Available in 1.37.0+. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "snat-entry-example-name"; + /// var @default = AliCloud.GetZones.Invoke(new() + /// { + /// AvailableResourceCreation = "VSwitch", + /// }); + /// + /// var fooNetwork = new AliCloud.Vpc.Network("foo", new() + /// { + /// Name = name, + /// CidrBlock = "172.16.0.0/12", + /// }); + /// + /// var fooSwitch = new AliCloud.Vpc.Switch("foo", new() + /// { + /// VpcId = fooNetwork.Id, + /// CidrBlock = "172.16.0.0/21", + /// AvailabilityZone = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)), + /// VswitchName = name, + /// }); + /// + /// var fooNatGateway = new AliCloud.Vpc.NatGateway("foo", new() + /// { + /// VpcId = fooNetwork.Id, + /// Specification = "Small", + /// Name = name, + /// }); + /// + /// var fooEipAddress = new AliCloud.Ecs.EipAddress("foo", new() + /// { + /// AddressName = name, + /// }); + /// + /// var fooEipAssociation = new AliCloud.Ecs.EipAssociation("foo", new() + /// { + /// AllocationId = fooEipAddress.Id, + /// InstanceId = fooNatGateway.Id, + /// }); + /// + /// var fooSnatEntry = new AliCloud.Vpc.SnatEntry("foo", new() + /// { + /// SnatTableId = fooNatGateway.SnatTableIds, + /// SourceVswitchId = fooSwitch.Id, + /// SnatIp = fooEipAddress.IpAddress, + /// }); + /// + /// var foo = AliCloud.Vpc.GetSnatEntries.Invoke(new() + /// { + /// SnatTableId = fooSnatEntry.SnatTableId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSnatEntriesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getSnatEntries:getSnatEntries", args ?? new GetSnatEntriesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetSslVpnClientCerts.cs b/sdk/dotnet/Vpc/GetSslVpnClientCerts.cs index 3427305a9d..d6efd4ad52 100644 --- a/sdk/dotnet/Vpc/GetSslVpnClientCerts.cs +++ b/sdk/dotnet/Vpc/GetSslVpnClientCerts.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetSslVpnClientCertsA /// public static Output Invoke(GetSslVpnClientCertsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getSslVpnClientCerts:getSslVpnClientCerts", args ?? new GetSslVpnClientCertsInvokeArgs(), options.WithDefaults()); + + /// + /// The SSL-VPN client certificates data source lists lots of SSL-VPN client certificates resource information owned by an Alicloud account. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = AliCloud.Vpc.GetSslVpnClientCerts.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "fake-cert-id", + /// }, + /// SslVpnServerId = "fake-server-id", + /// OutputFile = "/tmp/clientcert", + /// NameRegex = "^foo", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSslVpnClientCertsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getSslVpnClientCerts:getSslVpnClientCerts", args ?? new GetSslVpnClientCertsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetSslVpnServers.cs b/sdk/dotnet/Vpc/GetSslVpnServers.cs index bbd1508a00..57f0668703 100644 --- a/sdk/dotnet/Vpc/GetSslVpnServers.cs +++ b/sdk/dotnet/Vpc/GetSslVpnServers.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetSslVpnServersArgs? arg /// public static Output Invoke(GetSslVpnServersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getSslVpnServers:getSslVpnServers", args ?? new GetSslVpnServersInvokeArgs(), options.WithDefaults()); + + /// + /// The SSL-VPN servers data source lists lots of SSL-VPN servers resource information owned by an Alicloud account. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = AliCloud.Vpc.GetSslVpnServers.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "fake-server-id", + /// }, + /// VpnGatewayId = "fake-vpn-id", + /// OutputFile = "/tmp/sslserver", + /// NameRegex = "^foo", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSslVpnServersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getSslVpnServers:getSslVpnServers", args ?? new GetSslVpnServersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetSwitches.cs b/sdk/dotnet/Vpc/GetSwitches.cs index 6f1052da3f..ea0ed183e7 100644 --- a/sdk/dotnet/Vpc/GetSwitches.cs +++ b/sdk/dotnet/Vpc/GetSwitches.cs @@ -94,6 +94,48 @@ public static Task InvokeAsync(GetSwitchesArgs? args = null, /// public static Output Invoke(GetSwitchesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getSwitches:getSwitches", args ?? new GetSwitchesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a list of VSwitches owned by an Alibaba Cloud account. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var name = config.Get("name") ?? "vswitchDatasourceName"; + /// var @default = AliCloud.GetZones.Invoke(); + /// + /// var vpc = new AliCloud.Vpc.Network("vpc", new() + /// { + /// CidrBlock = "172.16.0.0/16", + /// VpcName = name, + /// }); + /// + /// var vswitch = new AliCloud.Vpc.Switch("vswitch", new() + /// { + /// VswitchName = name, + /// CidrBlock = "172.16.0.0/24", + /// VpcId = vpc.Id, + /// AvailabilityZone = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)), + /// }); + /// + /// var defaultGetSwitches = AliCloud.Vpc.GetSwitches.Invoke(new() + /// { + /// NameRegex = vswitch.VswitchName, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSwitchesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getSwitches:getSwitches", args ?? new GetSwitchesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetTrafficMirrorFilterEgressRules.cs b/sdk/dotnet/Vpc/GetTrafficMirrorFilterEgressRules.cs index 2ef179eebb..691c33d7c1 100644 --- a/sdk/dotnet/Vpc/GetTrafficMirrorFilterEgressRules.cs +++ b/sdk/dotnet/Vpc/GetTrafficMirrorFilterEgressRules.cs @@ -104,6 +104,53 @@ public static Task InvokeAsync(GetTraff /// public static Output Invoke(GetTrafficMirrorFilterEgressRulesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getTrafficMirrorFilterEgressRules:getTrafficMirrorFilterEgressRules", args ?? new GetTrafficMirrorFilterEgressRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpc Traffic Mirror Filter Egress Rules of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.140.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Vpc.GetTrafficMirrorFilterEgressRules.Invoke(new() + /// { + /// TrafficMirrorFilterId = "example_traffic_mirror_filter_id", + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var status = AliCloud.Vpc.GetTrafficMirrorFilterEgressRules.Invoke(new() + /// { + /// TrafficMirrorFilterId = "example_traffic_mirror_filter_id", + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// Status = "Created", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpcTrafficMirrorFilterEgressRuleId1"] = ids.Apply(getTrafficMirrorFilterEgressRulesResult => getTrafficMirrorFilterEgressRulesResult.Rules[0]?.Id), + /// ["vpcTrafficMirrorFilterEgressRuleId2"] = status.Apply(getTrafficMirrorFilterEgressRulesResult => getTrafficMirrorFilterEgressRulesResult.Rules[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTrafficMirrorFilterEgressRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getTrafficMirrorFilterEgressRules:getTrafficMirrorFilterEgressRules", args ?? new GetTrafficMirrorFilterEgressRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetTrafficMirrorFilterIngressRules.cs b/sdk/dotnet/Vpc/GetTrafficMirrorFilterIngressRules.cs index 66c66aa7f5..a09ca968ac 100644 --- a/sdk/dotnet/Vpc/GetTrafficMirrorFilterIngressRules.cs +++ b/sdk/dotnet/Vpc/GetTrafficMirrorFilterIngressRules.cs @@ -104,6 +104,53 @@ public static Task InvokeAsync(GetTraf /// public static Output Invoke(GetTrafficMirrorFilterIngressRulesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getTrafficMirrorFilterIngressRules:getTrafficMirrorFilterIngressRules", args ?? new GetTrafficMirrorFilterIngressRulesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpc Traffic Mirror Filter Ingress Rules of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.141.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Vpc.GetTrafficMirrorFilterIngressRules.Invoke(new() + /// { + /// TrafficMirrorFilterId = "example_traffic_mirror_filter_id", + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var status = AliCloud.Vpc.GetTrafficMirrorFilterIngressRules.Invoke(new() + /// { + /// TrafficMirrorFilterId = "example_traffic_mirror_filter_id", + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// Status = "Created", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpcTrafficMirrorFilterIngressRuleId1"] = ids.Apply(getTrafficMirrorFilterIngressRulesResult => getTrafficMirrorFilterIngressRulesResult.Rules[0]?.Id), + /// ["vpcTrafficMirrorFilterIngressRuleId2"] = status.Apply(getTrafficMirrorFilterIngressRulesResult => getTrafficMirrorFilterIngressRulesResult.Rules[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTrafficMirrorFilterIngressRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getTrafficMirrorFilterIngressRules:getTrafficMirrorFilterIngressRules", args ?? new GetTrafficMirrorFilterIngressRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetTrafficMirrorFilters.cs b/sdk/dotnet/Vpc/GetTrafficMirrorFilters.cs index 870b0a6508..5894d63184 100644 --- a/sdk/dotnet/Vpc/GetTrafficMirrorFilters.cs +++ b/sdk/dotnet/Vpc/GetTrafficMirrorFilters.cs @@ -116,6 +116,59 @@ public static Task InvokeAsync(GetTrafficMirrorFi /// public static Output Invoke(GetTrafficMirrorFiltersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getTrafficMirrorFilters:getTrafficMirrorFilters", args ?? new GetTrafficMirrorFiltersInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpc Traffic Mirror Filters of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.140.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Vpc.GetTrafficMirrorFilters.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Vpc.GetTrafficMirrorFilters.Invoke(new() + /// { + /// NameRegex = "^my-TrafficMirrorFilter", + /// }); + /// + /// var filterName = AliCloud.Vpc.GetTrafficMirrorFilters.Invoke(new() + /// { + /// TrafficMirrorFilterName = "example_traffic_mirror_filter_name", + /// }); + /// + /// var status = AliCloud.Vpc.GetTrafficMirrorFilters.Invoke(new() + /// { + /// Status = "^my-TrafficMirrorFilter", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpcTrafficMirrorFilterId1"] = ids.Apply(getTrafficMirrorFiltersResult => getTrafficMirrorFiltersResult.Filters[0]?.Id), + /// ["vpcTrafficMirrorFilterId2"] = nameRegex.Apply(getTrafficMirrorFiltersResult => getTrafficMirrorFiltersResult.Filters[0]?.Id), + /// ["vpcTrafficMirrorFilterId3"] = filterName.Apply(getTrafficMirrorFiltersResult => getTrafficMirrorFiltersResult.Filters[0]?.Id), + /// ["vpcTrafficMirrorFilterId4"] = status.Apply(getTrafficMirrorFiltersResult => getTrafficMirrorFiltersResult.Filters[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTrafficMirrorFiltersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getTrafficMirrorFilters:getTrafficMirrorFilters", args ?? new GetTrafficMirrorFiltersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetTrafficMirrorService.cs b/sdk/dotnet/Vpc/GetTrafficMirrorService.cs index b592441a54..0cc9c68b8b 100644 --- a/sdk/dotnet/Vpc/GetTrafficMirrorService.cs +++ b/sdk/dotnet/Vpc/GetTrafficMirrorService.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetTrafficMirrorSe /// public static Output Invoke(GetTrafficMirrorServiceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getTrafficMirrorService:getTrafficMirrorService", args ?? new GetTrafficMirrorServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Using this data source can open VPC Traffic Mirror service automatically. If the service has been opened, it will return opened. + /// + /// For information about VPC Traffic Mirror and how to use it, see [What is VPC Traffic Mirror](https://www.alibabacloud.com/help/en/vpc/user-guide/traffic-mirroring-overview). + /// + /// > **NOTE:** Available since v1.141.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var open = AliCloud.Vpc.GetTrafficMirrorService.Invoke(new() + /// { + /// Enable = "On", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTrafficMirrorServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getTrafficMirrorService:getTrafficMirrorService", args ?? new GetTrafficMirrorServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetTrafficMirrorSessions.cs b/sdk/dotnet/Vpc/GetTrafficMirrorSessions.cs index c495c97106..a06cf8ca94 100644 --- a/sdk/dotnet/Vpc/GetTrafficMirrorSessions.cs +++ b/sdk/dotnet/Vpc/GetTrafficMirrorSessions.cs @@ -232,6 +232,117 @@ public static Task InvokeAsync(GetTrafficMirrorS /// public static Output Invoke(GetTrafficMirrorSessionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getTrafficMirrorSessions:getTrafficMirrorSessions", args ?? new GetTrafficMirrorSessionsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpc Traffic Mirror Sessions of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.142.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Vpc.GetTrafficMirrorSessions.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var nameRegex = AliCloud.Vpc.GetTrafficMirrorSessions.Invoke(new() + /// { + /// NameRegex = "^my-TrafficMirrorSession", + /// }); + /// + /// var enabled = AliCloud.Vpc.GetTrafficMirrorSessions.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// Enabled = false, + /// }); + /// + /// var priority = AliCloud.Vpc.GetTrafficMirrorSessions.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// Priority = 1, + /// }); + /// + /// var filterId = AliCloud.Vpc.GetTrafficMirrorSessions.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// TrafficMirrorFilterId = "example_value", + /// }); + /// + /// var sessionName = AliCloud.Vpc.GetTrafficMirrorSessions.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// TrafficMirrorSessionName = "example_value", + /// }); + /// + /// var sourceId = AliCloud.Vpc.GetTrafficMirrorSessions.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// TrafficMirrorSourceId = "example_value", + /// }); + /// + /// var targetId = AliCloud.Vpc.GetTrafficMirrorSessions.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// TrafficMirrorTargetId = "example_value", + /// }); + /// + /// var status = AliCloud.Vpc.GetTrafficMirrorSessions.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// Status = "Created", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpcTrafficMirrorSessionId1"] = ids.Apply(getTrafficMirrorSessionsResult => getTrafficMirrorSessionsResult.Sessions[0]?.Id), + /// ["vpcTrafficMirrorSessionId2"] = nameRegex.Apply(getTrafficMirrorSessionsResult => getTrafficMirrorSessionsResult.Sessions[0]?.Id), + /// ["vpcTrafficMirrorSessionId3"] = enabled.Apply(getTrafficMirrorSessionsResult => getTrafficMirrorSessionsResult.Sessions[0]?.Id), + /// ["vpcTrafficMirrorSessionId4"] = priority.Apply(getTrafficMirrorSessionsResult => getTrafficMirrorSessionsResult.Sessions[0]?.Id), + /// ["vpcTrafficMirrorSessionId5"] = filterId.Apply(getTrafficMirrorSessionsResult => getTrafficMirrorSessionsResult.Sessions[0]?.Id), + /// ["vpcTrafficMirrorSessionId6"] = sessionName.Apply(getTrafficMirrorSessionsResult => getTrafficMirrorSessionsResult.Sessions[0]?.Id), + /// ["vpcTrafficMirrorSessionId7"] = sourceId.Apply(getTrafficMirrorSessionsResult => getTrafficMirrorSessionsResult.Sessions[0]?.Id), + /// ["vpcTrafficMirrorSessionId8"] = targetId.Apply(getTrafficMirrorSessionsResult => getTrafficMirrorSessionsResult.Sessions[0]?.Id), + /// ["vpcTrafficMirrorSessionId9"] = status.Apply(getTrafficMirrorSessionsResult => getTrafficMirrorSessionsResult.Sessions[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTrafficMirrorSessionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getTrafficMirrorSessions:getTrafficMirrorSessions", args ?? new GetTrafficMirrorSessionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpc/GetVpcFlowLogs.cs b/sdk/dotnet/Vpc/GetVpcFlowLogs.cs index f5ef635477..613ff9a7cc 100644 --- a/sdk/dotnet/Vpc/GetVpcFlowLogs.cs +++ b/sdk/dotnet/Vpc/GetVpcFlowLogs.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetVpcFlowLogsArgs? args = /// public static Output Invoke(GetVpcFlowLogsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getVpcFlowLogs:getVpcFlowLogs", args ?? new GetVpcFlowLogsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpc Flow Logs of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.122.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = AliCloud.Vpc.GetVpcFlowLogs.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "example_value", + /// }, + /// NameRegex = "the_resource_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstVpcFlowLogId"] = example.Apply(getVpcFlowLogsResult => getVpcFlowLogsResult.Logs[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetVpcFlowLogsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpc/getVpcFlowLogs:getVpcFlowLogs", args ?? new GetVpcFlowLogsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpn/GetConnections.cs b/sdk/dotnet/Vpn/GetConnections.cs index 3bc927b8d8..3ed9d327d3 100644 --- a/sdk/dotnet/Vpn/GetConnections.cs +++ b/sdk/dotnet/Vpn/GetConnections.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetConnectionsArgs? args = /// public static Output Invoke(GetConnectionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpn/getConnections:getConnections", args ?? new GetConnectionsInvokeArgs(), options.WithDefaults()); + + /// + /// The VPN connections data source lists lots of VPN connections resource information owned by an Alicloud account. + /// + /// > **NOTE:** Available since v1.18.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = AliCloud.Vpn.GetConnections.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "fake-conn-id", + /// }, + /// VpnGatewayId = "fake-vpn-id", + /// CustomerGatewayId = "fake-cgw-id", + /// OutputFile = "/tmp/vpnconn", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetConnectionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpn/getConnections:getConnections", args ?? new GetConnectionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpn/GetCustomerGateways.cs b/sdk/dotnet/Vpn/GetCustomerGateways.cs index 4e98ee322a..212b308236 100644 --- a/sdk/dotnet/Vpn/GetCustomerGateways.cs +++ b/sdk/dotnet/Vpn/GetCustomerGateways.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetCustomerGatewaysArg /// public static Output Invoke(GetCustomerGatewaysInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpn/getCustomerGateways:getCustomerGateways", args ?? new GetCustomerGatewaysInvokeArgs(), options.WithDefaults()); + + /// + /// The VPN customers gateways data source lists a number of VPN customer gateways resource information owned by an Alicloud account. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = AliCloud.Vpn.GetCustomerGateways.Invoke(new() + /// { + /// NameRegex = "testAcc*", + /// Ids = new[] + /// { + /// "fake-id1", + /// "fake-id2", + /// }, + /// OutputFile = "/tmp/cgws", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCustomerGatewaysInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpn/getCustomerGateways:getCustomerGateways", args ?? new GetCustomerGatewaysInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpn/GetGatewayVcoRoutes.cs b/sdk/dotnet/Vpn/GetGatewayVcoRoutes.cs index 55e8fb3d4e..c950c6ff74 100644 --- a/sdk/dotnet/Vpn/GetGatewayVcoRoutes.cs +++ b/sdk/dotnet/Vpn/GetGatewayVcoRoutes.cs @@ -262,6 +262,132 @@ public static Task InvokeAsync(GetGatewayVcoRoutesArg /// public static Output Invoke(GetGatewayVcoRoutesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpn/getGatewayVcoRoutes:getGatewayVcoRoutes", args ?? new GetGatewayVcoRoutesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpn Gateway Vco Routes of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.183.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var defaultInstance = new AliCloud.Cen.Instance("default", new() + /// { + /// CenInstanceName = name, + /// }); + /// + /// var defaultTransitRouter = new AliCloud.Cen.TransitRouter("default", new() + /// { + /// CenId = defaultInstance.Id, + /// TransitRouterDescription = "desd", + /// TransitRouterName = name, + /// }); + /// + /// var @default = AliCloud.Cen.GetTransitRouterAvailableResources.Invoke(); + /// + /// var defaultCustomerGateway = new AliCloud.Vpn.CustomerGateway("default", new() + /// { + /// Name = name, + /// IpAddress = "42.104.22.210", + /// Asn = "45014", + /// Description = "testAccVpnConnectionDesc", + /// }); + /// + /// var defaultGatewayVpnAttachment = new AliCloud.Vpn.GatewayVpnAttachment("default", new() + /// { + /// CustomerGatewayId = defaultCustomerGateway.Id, + /// NetworkType = "public", + /// LocalSubnet = "0.0.0.0/0", + /// RemoteSubnet = "0.0.0.0/0", + /// EffectImmediately = false, + /// IkeConfig = new AliCloud.Vpn.Inputs.GatewayVpnAttachmentIkeConfigArgs + /// { + /// IkeAuthAlg = "md5", + /// IkeEncAlg = "des", + /// IkeVersion = "ikev2", + /// IkeMode = "main", + /// IkeLifetime = 86400, + /// Psk = "tf-testvpn2", + /// IkePfs = "group1", + /// RemoteId = "testbob2", + /// LocalId = "testalice2", + /// }, + /// IpsecConfig = new AliCloud.Vpn.Inputs.GatewayVpnAttachmentIpsecConfigArgs + /// { + /// IpsecPfs = "group5", + /// IpsecEncAlg = "des", + /// IpsecAuthAlg = "md5", + /// IpsecLifetime = 86400, + /// }, + /// BgpConfig = new AliCloud.Vpn.Inputs.GatewayVpnAttachmentBgpConfigArgs + /// { + /// Enable = true, + /// LocalAsn = 45014, + /// TunnelCidr = "169.254.11.0/30", + /// LocalBgpIp = "169.254.11.1", + /// }, + /// HealthCheckConfig = new AliCloud.Vpn.Inputs.GatewayVpnAttachmentHealthCheckConfigArgs + /// { + /// Enable = true, + /// Sip = "192.168.1.1", + /// Dip = "10.0.0.1", + /// Interval = 10, + /// Retry = 10, + /// Policy = "revoke_route", + /// }, + /// EnableDpd = true, + /// EnableNatTraversal = true, + /// VpnAttachmentName = name, + /// }); + /// + /// var defaultTransitRouterVpnAttachment = new AliCloud.Cen.TransitRouterVpnAttachment("default", new() + /// { + /// AutoPublishRouteEnabled = false, + /// TransitRouterAttachmentDescription = name, + /// TransitRouterAttachmentName = name, + /// CenId = defaultTransitRouter.CenId, + /// TransitRouterId = defaultTransitRouter.TransitRouterId, + /// VpnId = defaultGatewayVpnAttachment.Id, + /// Zones = new[] + /// { + /// new AliCloud.Cen.Inputs.TransitRouterVpnAttachmentZoneArgs + /// { + /// ZoneId = @default.Apply(@default => @default.Apply(getTransitRouterAvailableResourcesResult => getTransitRouterAvailableResourcesResult.Resources[0]?.MasterZones[0])), + /// }, + /// }, + /// }); + /// + /// var defaultGatewayVcoRoute = new AliCloud.Vpn.GatewayVcoRoute("default", new() + /// { + /// RouteDest = "192.168.12.0/24", + /// NextHop = defaultTransitRouterVpnAttachment.VpnId, + /// VpnConnectionId = defaultTransitRouterVpnAttachment.VpnId, + /// Weight = 100, + /// }); + /// + /// var defaultGetGatewayVcoRoutes = AliCloud.Vpn.GetGatewayVcoRoutes.Invoke(new() + /// { + /// VpnConnectionId = defaultTransitRouterVpnAttachment.VpnId, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpnGatewayVcoRouteId1"] = ids.Routes[0].Id, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetGatewayVcoRoutesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpn/getGatewayVcoRoutes:getGatewayVcoRoutes", args ?? new GetGatewayVcoRoutesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpn/GetGatewayVpnAttachments.cs b/sdk/dotnet/Vpn/GetGatewayVpnAttachments.cs index 9e9d2d624c..644a13cf4a 100644 --- a/sdk/dotnet/Vpn/GetGatewayVpnAttachments.cs +++ b/sdk/dotnet/Vpn/GetGatewayVpnAttachments.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetGatewayVpnAtta /// public static Output Invoke(GetGatewayVpnAttachmentsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpn/getGatewayVpnAttachments:getGatewayVpnAttachments", args ?? new GetGatewayVpnAttachmentsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Vpn Gateway Vpn Attachments of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.181.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ids = AliCloud.Vpn.GetGatewayVpnAttachments.Invoke(); + /// + /// var nameRegex = AliCloud.Vpn.GetGatewayVpnAttachments.Invoke(new() + /// { + /// NameRegex = "^my-VpnAttachment", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["vpnGatewayVpnAttachmentId1"] = ids.Apply(getGatewayVpnAttachmentsResult => getGatewayVpnAttachmentsResult.Attachments[0]?.Id), + /// ["vpnGatewayVpnAttachmentId2"] = nameRegex.Apply(getGatewayVpnAttachmentsResult => getGatewayVpnAttachmentsResult.Attachments[0]?.Id), + /// ["localId"] = vpnAttachments.Attachments[0].IkeConfig[0].LocalId, + /// ["internetIp"] = vpnAttachments.Attachments[0].InternetIp, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetGatewayVpnAttachmentsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpn/getGatewayVpnAttachments:getGatewayVpnAttachments", args ?? new GetGatewayVpnAttachmentsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpn/GetGatewayZones.cs b/sdk/dotnet/Vpn/GetGatewayZones.cs index 48d8b330af..20e8b7230c 100644 --- a/sdk/dotnet/Vpn/GetGatewayZones.cs +++ b/sdk/dotnet/Vpn/GetGatewayZones.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetGatewayZonesArgs args, /// public static Output Invoke(GetGatewayZonesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpn/getGatewayZones:getGatewayZones", args ?? new GetGatewayZonesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides VPN Gateway Zone available to the user.[What is Zone](https://next.api.alibabacloud.com/api/Vpc/2016-04-28/DescribeVpnGatewayAvailableZones?lang=JAVA) + /// + /// > **NOTE:** Available since v1.216.0. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Vpn.GetGatewayZones.Invoke(new() + /// { + /// Spec = "5M", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetGatewayZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpn/getGatewayZones:getGatewayZones", args ?? new GetGatewayZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vpn/GetGateways.cs b/sdk/dotnet/Vpn/GetGateways.cs index de6eec376d..fb4872e066 100644 --- a/sdk/dotnet/Vpn/GetGateways.cs +++ b/sdk/dotnet/Vpn/GetGateways.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetGatewaysArgs? args = null, /// public static Output Invoke(GetGatewaysInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpn/getGateways:getGateways", args ?? new GetGatewaysInvokeArgs(), options.WithDefaults()); + + /// + /// The VPNs data source lists a number of VPNs resource information owned by an Alicloud account. + /// + /// > **NOTE:** Available since v1.18.0. + /// + public static Output Invoke(GetGatewaysInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:vpn/getGateways:getGateways", args ?? new GetGatewaysInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Waf/GetCertificates.cs b/sdk/dotnet/Waf/GetCertificates.cs index c825fd219c..62cc77a97a 100644 --- a/sdk/dotnet/Waf/GetCertificates.cs +++ b/sdk/dotnet/Waf/GetCertificates.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetCertificatesArgs args, /// public static Output Invoke(GetCertificatesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:waf/getCertificates:getCertificates", args ?? new GetCertificatesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Waf Certificates of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available in v1.135.0+. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Waf.GetCertificates.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "your_certificate_id", + /// }, + /// InstanceId = "your_instance_id", + /// Domain = "your_domain_name", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["wafCertificate"] = @default.Apply(@default => @default.Apply(getCertificatesResult => getCertificatesResult.Certificates[0])), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetCertificatesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:waf/getCertificates:getCertificates", args ?? new GetCertificatesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Waf/GetDomains.cs b/sdk/dotnet/Waf/GetDomains.cs index 038a6c88bc..c7541c9aa7 100644 --- a/sdk/dotnet/Waf/GetDomains.cs +++ b/sdk/dotnet/Waf/GetDomains.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetDomainsArgs args, InvokeOpti /// public static Output Invoke(GetDomainsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:waf/getDomains:getDomains", args ?? new GetDomainsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides a WAF datasource to retrieve domains. + /// + /// For information about WAF and how to use it, see [What is Alibaba Cloud WAF](https://www.alibabacloud.com/help/doc-detail/28517.htm). + /// + /// > **NOTE:** Available in 1.86.0+ . + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Waf.GetDomains.Invoke(new() + /// { + /// InstanceId = "waf-cf-xxxxx", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDomainsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:waf/getDomains:getDomains", args ?? new GetDomainsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Waf/GetInstances.cs b/sdk/dotnet/Waf/GetInstances.cs index 61b486d8f0..d7a04c80ba 100644 --- a/sdk/dotnet/Waf/GetInstances.cs +++ b/sdk/dotnet/Waf/GetInstances.cs @@ -86,6 +86,44 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:waf/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// Provides a WAF datasource to retrieve instances. + /// + /// For information about WAF and how to use it, see [What is Alibaba Cloud WAF](https://www.alibabacloud.com/help/doc-detail/28517.htm). + /// + /// > **NOTE:** Available in 1.90.0+ . + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Waf.GetInstances.Invoke(new() + /// { + /// Ids = new[] + /// { + /// "waf-cn-09k********", + /// }, + /// Status = 1, + /// ResourceGroupId = "rg-acfmwvv********", + /// InstanceSource = "waf-cloud", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["theFirstWafInstanceId"] = @default.Apply(@default => @default.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:waf/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Wafv3/GetDomains.cs b/sdk/dotnet/Wafv3/GetDomains.cs index e2ade01864..afe6c9e018 100644 --- a/sdk/dotnet/Wafv3/GetDomains.cs +++ b/sdk/dotnet/Wafv3/GetDomains.cs @@ -100,6 +100,51 @@ public static Task InvokeAsync(GetDomainsArgs args, InvokeOpti /// public static Output Invoke(GetDomainsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:wafv3/getDomains:getDomains", args ?? new GetDomainsInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides the Wafv3 Domains of the current Alibaba Cloud user. + /// + /// > **NOTE:** Available since v1.200.0. + /// + /// ## Example Usage + /// + /// Basic Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Wafv3.GetInstances.Invoke(); + /// + /// var ids = AliCloud.Wafv3.GetDomains.Invoke(new() + /// { + /// InstanceId = @default.Apply(getInstancesResult => getInstancesResult.Ids[0]), + /// Ids = new[] + /// { + /// "example_id", + /// }, + /// }); + /// + /// var defaultGetDomains = AliCloud.Wafv3.GetDomains.Invoke(new() + /// { + /// InstanceId = @default.Apply(getInstancesResult => getInstancesResult.Ids[0]), + /// Domain = "zctest12.wafqax.top", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["wafv3DomainsId1"] = ids.Apply(getDomainsResult => getDomainsResult.Domains[0]?.Id), + /// ["wafv3DomainsId2"] = defaultGetDomains.Apply(getDomainsResult => getDomainsResult.Domains[0]?.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDomainsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:wafv3/getDomains:getDomains", args ?? new GetDomainsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Wafv3/GetInstances.cs b/sdk/dotnet/Wafv3/GetInstances.cs index a102443032..b787762e8a 100644 --- a/sdk/dotnet/Wafv3/GetInstances.cs +++ b/sdk/dotnet/Wafv3/GetInstances.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetInstancesArgs? args = null /// public static Output Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:wafv3/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides Wafv3 Instance available to the user.[What is Instance](https://www.alibabacloud.com/help/en/web-application-firewall/latest/what-is-waf) + /// + /// > **NOTE:** Available in 1.200.0+ + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using AliCloud = Pulumi.AliCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = AliCloud.Wafv3.GetInstances.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["alicloudWafv3InstanceExampleId"] = @default.Apply(@default => @default.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:wafv3/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Yundun/GetBastionHostInstances.cs b/sdk/dotnet/Yundun/GetBastionHostInstances.cs index 979f9b06a2..a4dfabe825 100644 --- a/sdk/dotnet/Yundun/GetBastionHostInstances.cs +++ b/sdk/dotnet/Yundun/GetBastionHostInstances.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetBastionHostInst public static Output Invoke(GetBastionHostInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:yundun/getBastionHostInstances:getBastionHostInstances", args ?? new GetBastionHostInstancesInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetBastionHostInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:yundun/getBastionHostInstances:getBastionHostInstances", args ?? new GetBastionHostInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Yundun/GetDBAuditInstance.cs b/sdk/dotnet/Yundun/GetDBAuditInstance.cs index 46453bd858..326b535a23 100644 --- a/sdk/dotnet/Yundun/GetDBAuditInstance.cs +++ b/sdk/dotnet/Yundun/GetDBAuditInstance.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetDBAuditInstanceArgs? public static Output Invoke(GetDBAuditInstanceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("alicloud:yundun/getDBAuditInstance:getDBAuditInstance", args ?? new GetDBAuditInstanceInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetDBAuditInstanceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("alicloud:yundun/getDBAuditInstance:getDBAuditInstance", args ?? new GetDBAuditInstanceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/go/alicloud/actiontrail/getConsumerGroups.go b/sdk/go/alicloud/actiontrail/getConsumerGroups.go index dd58fe0397..907db093ae 100644 --- a/sdk/go/alicloud/actiontrail/getConsumerGroups.go +++ b/sdk/go/alicloud/actiontrail/getConsumerGroups.go @@ -82,21 +82,11 @@ type GetConsumerGroupsResult struct { } func GetConsumerGroupsOutput(ctx *pulumi.Context, args GetConsumerGroupsOutputArgs, opts ...pulumi.InvokeOption) GetConsumerGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetConsumerGroupsResultOutput, error) { args := v.(GetConsumerGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetConsumerGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:actiontrail/getConsumerGroups:getConsumerGroups", args, &rv, "", opts...) - if err != nil { - return GetConsumerGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetConsumerGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetConsumerGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:actiontrail/getConsumerGroups:getConsumerGroups", args, GetConsumerGroupsResultOutput{}, options).(GetConsumerGroupsResultOutput), nil }).(GetConsumerGroupsResultOutput) } diff --git a/sdk/go/alicloud/actiontrail/getGlobalEventsStorageRegion.go b/sdk/go/alicloud/actiontrail/getGlobalEventsStorageRegion.go index d21167eae9..6ad335cff6 100644 --- a/sdk/go/alicloud/actiontrail/getGlobalEventsStorageRegion.go +++ b/sdk/go/alicloud/actiontrail/getGlobalEventsStorageRegion.go @@ -60,18 +60,8 @@ type LookupGlobalEventsStorageRegionResult struct { func LookupGlobalEventsStorageRegionOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) LookupGlobalEventsStorageRegionResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (LookupGlobalEventsStorageRegionResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupGlobalEventsStorageRegionResult - secret, err := ctx.InvokePackageRaw("alicloud:actiontrail/getGlobalEventsStorageRegion:getGlobalEventsStorageRegion", nil, &rv, "", opts...) - if err != nil { - return LookupGlobalEventsStorageRegionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupGlobalEventsStorageRegionResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupGlobalEventsStorageRegionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:actiontrail/getGlobalEventsStorageRegion:getGlobalEventsStorageRegion", nil, LookupGlobalEventsStorageRegionResultOutput{}, options).(LookupGlobalEventsStorageRegionResultOutput), nil }).(LookupGlobalEventsStorageRegionResultOutput) } diff --git a/sdk/go/alicloud/actiontrail/getHistoryDeliveryJobs.go b/sdk/go/alicloud/actiontrail/getHistoryDeliveryJobs.go index 04ad2da858..e4f063c3ca 100644 --- a/sdk/go/alicloud/actiontrail/getHistoryDeliveryJobs.go +++ b/sdk/go/alicloud/actiontrail/getHistoryDeliveryJobs.go @@ -88,21 +88,11 @@ type GetHistoryDeliveryJobsResult struct { } func GetHistoryDeliveryJobsOutput(ctx *pulumi.Context, args GetHistoryDeliveryJobsOutputArgs, opts ...pulumi.InvokeOption) GetHistoryDeliveryJobsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHistoryDeliveryJobsResultOutput, error) { args := v.(GetHistoryDeliveryJobsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHistoryDeliveryJobsResult - secret, err := ctx.InvokePackageRaw("alicloud:actiontrail/getHistoryDeliveryJobs:getHistoryDeliveryJobs", args, &rv, "", opts...) - if err != nil { - return GetHistoryDeliveryJobsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHistoryDeliveryJobsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHistoryDeliveryJobsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:actiontrail/getHistoryDeliveryJobs:getHistoryDeliveryJobs", args, GetHistoryDeliveryJobsResultOutput{}, options).(GetHistoryDeliveryJobsResultOutput), nil }).(GetHistoryDeliveryJobsResultOutput) } diff --git a/sdk/go/alicloud/actiontrail/getInstances.go b/sdk/go/alicloud/actiontrail/getInstances.go index badb7fd9d0..7582d187ec 100644 --- a/sdk/go/alicloud/actiontrail/getInstances.go +++ b/sdk/go/alicloud/actiontrail/getInstances.go @@ -120,21 +120,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:actiontrail/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:actiontrail/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/actiontrail/getSaslAcls.go b/sdk/go/alicloud/actiontrail/getSaslAcls.go index f3112bf195..bde99e011a 100644 --- a/sdk/go/alicloud/actiontrail/getSaslAcls.go +++ b/sdk/go/alicloud/actiontrail/getSaslAcls.go @@ -86,21 +86,11 @@ type GetSaslAclsResult struct { } func GetSaslAclsOutput(ctx *pulumi.Context, args GetSaslAclsOutputArgs, opts ...pulumi.InvokeOption) GetSaslAclsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSaslAclsResultOutput, error) { args := v.(GetSaslAclsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSaslAclsResult - secret, err := ctx.InvokePackageRaw("alicloud:actiontrail/getSaslAcls:getSaslAcls", args, &rv, "", opts...) - if err != nil { - return GetSaslAclsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSaslAclsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSaslAclsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:actiontrail/getSaslAcls:getSaslAcls", args, GetSaslAclsResultOutput{}, options).(GetSaslAclsResultOutput), nil }).(GetSaslAclsResultOutput) } diff --git a/sdk/go/alicloud/actiontrail/getSaslUsers.go b/sdk/go/alicloud/actiontrail/getSaslUsers.go index 9a16d9365c..4f30ad365f 100644 --- a/sdk/go/alicloud/actiontrail/getSaslUsers.go +++ b/sdk/go/alicloud/actiontrail/getSaslUsers.go @@ -77,21 +77,11 @@ type GetSaslUsersResult struct { } func GetSaslUsersOutput(ctx *pulumi.Context, args GetSaslUsersOutputArgs, opts ...pulumi.InvokeOption) GetSaslUsersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSaslUsersResultOutput, error) { args := v.(GetSaslUsersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSaslUsersResult - secret, err := ctx.InvokePackageRaw("alicloud:actiontrail/getSaslUsers:getSaslUsers", args, &rv, "", opts...) - if err != nil { - return GetSaslUsersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSaslUsersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSaslUsersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:actiontrail/getSaslUsers:getSaslUsers", args, GetSaslUsersResultOutput{}, options).(GetSaslUsersResultOutput), nil }).(GetSaslUsersResultOutput) } diff --git a/sdk/go/alicloud/actiontrail/getTopics.go b/sdk/go/alicloud/actiontrail/getTopics.go index 111b8ec4ba..31bb51f8a7 100644 --- a/sdk/go/alicloud/actiontrail/getTopics.go +++ b/sdk/go/alicloud/actiontrail/getTopics.go @@ -90,21 +90,11 @@ type GetTopicsResult struct { } func GetTopicsOutput(ctx *pulumi.Context, args GetTopicsOutputArgs, opts ...pulumi.InvokeOption) GetTopicsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTopicsResultOutput, error) { args := v.(GetTopicsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTopicsResult - secret, err := ctx.InvokePackageRaw("alicloud:actiontrail/getTopics:getTopics", args, &rv, "", opts...) - if err != nil { - return GetTopicsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTopicsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTopicsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:actiontrail/getTopics:getTopics", args, GetTopicsResultOutput{}, options).(GetTopicsResultOutput), nil }).(GetTopicsResultOutput) } diff --git a/sdk/go/alicloud/actiontrail/getTrails.go b/sdk/go/alicloud/actiontrail/getTrails.go index 79bcce27b5..2f77900305 100644 --- a/sdk/go/alicloud/actiontrail/getTrails.go +++ b/sdk/go/alicloud/actiontrail/getTrails.go @@ -90,21 +90,11 @@ type GetTrailsResult struct { } func GetTrailsOutput(ctx *pulumi.Context, args GetTrailsOutputArgs, opts ...pulumi.InvokeOption) GetTrailsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTrailsResultOutput, error) { args := v.(GetTrailsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTrailsResult - secret, err := ctx.InvokePackageRaw("alicloud:actiontrail/getTrails:getTrails", args, &rv, "", opts...) - if err != nil { - return GetTrailsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTrailsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTrailsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:actiontrail/getTrails:getTrails", args, GetTrailsResultOutput{}, options).(GetTrailsResultOutput), nil }).(GetTrailsResultOutput) } diff --git a/sdk/go/alicloud/actiontrail/getTrailsDeprecated.go b/sdk/go/alicloud/actiontrail/getTrailsDeprecated.go index 7fbefe10ae..18ee4191e8 100644 --- a/sdk/go/alicloud/actiontrail/getTrailsDeprecated.go +++ b/sdk/go/alicloud/actiontrail/getTrailsDeprecated.go @@ -58,21 +58,11 @@ type GetTrailsDeprecatedResult struct { } func GetTrailsDeprecatedOutput(ctx *pulumi.Context, args GetTrailsDeprecatedOutputArgs, opts ...pulumi.InvokeOption) GetTrailsDeprecatedResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTrailsDeprecatedResultOutput, error) { args := v.(GetTrailsDeprecatedArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTrailsDeprecatedResult - secret, err := ctx.InvokePackageRaw("alicloud:actiontrail/getTrailsDeprecated:getTrailsDeprecated", args, &rv, "", opts...) - if err != nil { - return GetTrailsDeprecatedResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTrailsDeprecatedResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTrailsDeprecatedResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:actiontrail/getTrailsDeprecated:getTrailsDeprecated", args, GetTrailsDeprecatedResultOutput{}, options).(GetTrailsDeprecatedResultOutput), nil }).(GetTrailsDeprecatedResultOutput) } diff --git a/sdk/go/alicloud/adb/getClusters.go b/sdk/go/alicloud/adb/getClusters.go index 9801d5c126..8c6077cb80 100644 --- a/sdk/go/alicloud/adb/getClusters.go +++ b/sdk/go/alicloud/adb/getClusters.go @@ -102,21 +102,11 @@ type GetClustersResult struct { } func GetClustersOutput(ctx *pulumi.Context, args GetClustersOutputArgs, opts ...pulumi.InvokeOption) GetClustersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetClustersResultOutput, error) { args := v.(GetClustersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetClustersResult - secret, err := ctx.InvokePackageRaw("alicloud:adb/getClusters:getClusters", args, &rv, "", opts...) - if err != nil { - return GetClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:adb/getClusters:getClusters", args, GetClustersResultOutput{}, options).(GetClustersResultOutput), nil }).(GetClustersResultOutput) } diff --git a/sdk/go/alicloud/adb/getDBClusterLakeVersions.go b/sdk/go/alicloud/adb/getDBClusterLakeVersions.go index 53c30b74c5..032dbbf4e0 100644 --- a/sdk/go/alicloud/adb/getDBClusterLakeVersions.go +++ b/sdk/go/alicloud/adb/getDBClusterLakeVersions.go @@ -86,21 +86,11 @@ type GetDBClusterLakeVersionsResult struct { } func GetDBClusterLakeVersionsOutput(ctx *pulumi.Context, args GetDBClusterLakeVersionsOutputArgs, opts ...pulumi.InvokeOption) GetDBClusterLakeVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDBClusterLakeVersionsResultOutput, error) { args := v.(GetDBClusterLakeVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDBClusterLakeVersionsResult - secret, err := ctx.InvokePackageRaw("alicloud:adb/getDBClusterLakeVersions:getDBClusterLakeVersions", args, &rv, "", opts...) - if err != nil { - return GetDBClusterLakeVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDBClusterLakeVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDBClusterLakeVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:adb/getDBClusterLakeVersions:getDBClusterLakeVersions", args, GetDBClusterLakeVersionsResultOutput{}, options).(GetDBClusterLakeVersionsResultOutput), nil }).(GetDBClusterLakeVersionsResultOutput) } diff --git a/sdk/go/alicloud/adb/getDBClusters.go b/sdk/go/alicloud/adb/getDBClusters.go index 4c1a519dcb..60b1c16cf1 100644 --- a/sdk/go/alicloud/adb/getDBClusters.go +++ b/sdk/go/alicloud/adb/getDBClusters.go @@ -101,21 +101,11 @@ type GetDBClustersResult struct { } func GetDBClustersOutput(ctx *pulumi.Context, args GetDBClustersOutputArgs, opts ...pulumi.InvokeOption) GetDBClustersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDBClustersResultOutput, error) { args := v.(GetDBClustersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDBClustersResult - secret, err := ctx.InvokePackageRaw("alicloud:adb/getDBClusters:getDBClusters", args, &rv, "", opts...) - if err != nil { - return GetDBClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDBClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDBClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:adb/getDBClusters:getDBClusters", args, GetDBClustersResultOutput{}, options).(GetDBClustersResultOutput), nil }).(GetDBClustersResultOutput) } diff --git a/sdk/go/alicloud/adb/getResourceGroups.go b/sdk/go/alicloud/adb/getResourceGroups.go index 8167766373..577b78dd8d 100644 --- a/sdk/go/alicloud/adb/getResourceGroups.go +++ b/sdk/go/alicloud/adb/getResourceGroups.go @@ -79,21 +79,11 @@ type GetResourceGroupsResult struct { } func GetResourceGroupsOutput(ctx *pulumi.Context, args GetResourceGroupsOutputArgs, opts ...pulumi.InvokeOption) GetResourceGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetResourceGroupsResultOutput, error) { args := v.(GetResourceGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetResourceGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:adb/getResourceGroups:getResourceGroups", args, &rv, "", opts...) - if err != nil { - return GetResourceGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetResourceGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetResourceGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:adb/getResourceGroups:getResourceGroups", args, GetResourceGroupsResultOutput{}, options).(GetResourceGroupsResultOutput), nil }).(GetResourceGroupsResultOutput) } diff --git a/sdk/go/alicloud/adb/getZones.go b/sdk/go/alicloud/adb/getZones.go index b9d0165c1e..25c8df8cf6 100644 --- a/sdk/go/alicloud/adb/getZones.go +++ b/sdk/go/alicloud/adb/getZones.go @@ -70,21 +70,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:adb/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:adb/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/alb/getAcls.go b/sdk/go/alicloud/alb/getAcls.go index 14b69eab41..1c3641870e 100644 --- a/sdk/go/alicloud/alb/getAcls.go +++ b/sdk/go/alicloud/alb/getAcls.go @@ -95,21 +95,11 @@ type GetAclsResult struct { } func GetAclsOutput(ctx *pulumi.Context, args GetAclsOutputArgs, opts ...pulumi.InvokeOption) GetAclsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAclsResultOutput, error) { args := v.(GetAclsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAclsResult - secret, err := ctx.InvokePackageRaw("alicloud:alb/getAcls:getAcls", args, &rv, "", opts...) - if err != nil { - return GetAclsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAclsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAclsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:alb/getAcls:getAcls", args, GetAclsResultOutput{}, options).(GetAclsResultOutput), nil }).(GetAclsResultOutput) } diff --git a/sdk/go/alicloud/alb/getAscripts.go b/sdk/go/alicloud/alb/getAscripts.go index b62945c2f9..16e1ee7dcd 100644 --- a/sdk/go/alicloud/alb/getAscripts.go +++ b/sdk/go/alicloud/alb/getAscripts.go @@ -89,21 +89,11 @@ type GetAscriptsResult struct { } func GetAscriptsOutput(ctx *pulumi.Context, args GetAscriptsOutputArgs, opts ...pulumi.InvokeOption) GetAscriptsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAscriptsResultOutput, error) { args := v.(GetAscriptsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAscriptsResult - secret, err := ctx.InvokePackageRaw("alicloud:alb/getAscripts:getAscripts", args, &rv, "", opts...) - if err != nil { - return GetAscriptsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAscriptsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAscriptsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:alb/getAscripts:getAscripts", args, GetAscriptsResultOutput{}, options).(GetAscriptsResultOutput), nil }).(GetAscriptsResultOutput) } diff --git a/sdk/go/alicloud/alb/getHealthCheckTemplates.go b/sdk/go/alicloud/alb/getHealthCheckTemplates.go index 5872f29f46..4a811890b5 100644 --- a/sdk/go/alicloud/alb/getHealthCheckTemplates.go +++ b/sdk/go/alicloud/alb/getHealthCheckTemplates.go @@ -90,21 +90,11 @@ type GetHealthCheckTemplatesResult struct { } func GetHealthCheckTemplatesOutput(ctx *pulumi.Context, args GetHealthCheckTemplatesOutputArgs, opts ...pulumi.InvokeOption) GetHealthCheckTemplatesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHealthCheckTemplatesResultOutput, error) { args := v.(GetHealthCheckTemplatesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHealthCheckTemplatesResult - secret, err := ctx.InvokePackageRaw("alicloud:alb/getHealthCheckTemplates:getHealthCheckTemplates", args, &rv, "", opts...) - if err != nil { - return GetHealthCheckTemplatesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHealthCheckTemplatesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHealthCheckTemplatesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:alb/getHealthCheckTemplates:getHealthCheckTemplates", args, GetHealthCheckTemplatesResultOutput{}, options).(GetHealthCheckTemplatesResultOutput), nil }).(GetHealthCheckTemplatesResultOutput) } diff --git a/sdk/go/alicloud/alb/getListeners.go b/sdk/go/alicloud/alb/getListeners.go index d2e478147b..86ab802f24 100644 --- a/sdk/go/alicloud/alb/getListeners.go +++ b/sdk/go/alicloud/alb/getListeners.go @@ -88,21 +88,11 @@ type GetListenersResult struct { } func GetListenersOutput(ctx *pulumi.Context, args GetListenersOutputArgs, opts ...pulumi.InvokeOption) GetListenersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetListenersResultOutput, error) { args := v.(GetListenersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetListenersResult - secret, err := ctx.InvokePackageRaw("alicloud:alb/getListeners:getListeners", args, &rv, "", opts...) - if err != nil { - return GetListenersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetListenersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetListenersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:alb/getListeners:getListeners", args, GetListenersResultOutput{}, options).(GetListenersResultOutput), nil }).(GetListenersResultOutput) } diff --git a/sdk/go/alicloud/alb/getLoadBalancers.go b/sdk/go/alicloud/alb/getLoadBalancers.go index 2e9e685dfa..76d8f3773f 100644 --- a/sdk/go/alicloud/alb/getLoadBalancers.go +++ b/sdk/go/alicloud/alb/getLoadBalancers.go @@ -119,21 +119,11 @@ type GetLoadBalancersResult struct { } func GetLoadBalancersOutput(ctx *pulumi.Context, args GetLoadBalancersOutputArgs, opts ...pulumi.InvokeOption) GetLoadBalancersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetLoadBalancersResultOutput, error) { args := v.(GetLoadBalancersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetLoadBalancersResult - secret, err := ctx.InvokePackageRaw("alicloud:alb/getLoadBalancers:getLoadBalancers", args, &rv, "", opts...) - if err != nil { - return GetLoadBalancersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetLoadBalancersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetLoadBalancersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:alb/getLoadBalancers:getLoadBalancers", args, GetLoadBalancersResultOutput{}, options).(GetLoadBalancersResultOutput), nil }).(GetLoadBalancersResultOutput) } diff --git a/sdk/go/alicloud/alb/getRules.go b/sdk/go/alicloud/alb/getRules.go index fe34458245..9e26c9bb0c 100644 --- a/sdk/go/alicloud/alb/getRules.go +++ b/sdk/go/alicloud/alb/getRules.go @@ -61,21 +61,11 @@ type GetRulesResult struct { } func GetRulesOutput(ctx *pulumi.Context, args GetRulesOutputArgs, opts ...pulumi.InvokeOption) GetRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRulesResultOutput, error) { args := v.(GetRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:alb/getRules:getRules", args, &rv, "", opts...) - if err != nil { - return GetRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:alb/getRules:getRules", args, GetRulesResultOutput{}, options).(GetRulesResultOutput), nil }).(GetRulesResultOutput) } diff --git a/sdk/go/alicloud/alb/getSecurityPolicies.go b/sdk/go/alicloud/alb/getSecurityPolicies.go index 6c6a9cea32..8830760245 100644 --- a/sdk/go/alicloud/alb/getSecurityPolicies.go +++ b/sdk/go/alicloud/alb/getSecurityPolicies.go @@ -94,21 +94,11 @@ type GetSecurityPoliciesResult struct { } func GetSecurityPoliciesOutput(ctx *pulumi.Context, args GetSecurityPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetSecurityPoliciesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSecurityPoliciesResultOutput, error) { args := v.(GetSecurityPoliciesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSecurityPoliciesResult - secret, err := ctx.InvokePackageRaw("alicloud:alb/getSecurityPolicies:getSecurityPolicies", args, &rv, "", opts...) - if err != nil { - return GetSecurityPoliciesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSecurityPoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSecurityPoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:alb/getSecurityPolicies:getSecurityPolicies", args, GetSecurityPoliciesResultOutput{}, options).(GetSecurityPoliciesResultOutput), nil }).(GetSecurityPoliciesResultOutput) } diff --git a/sdk/go/alicloud/alb/getServerGroups.go b/sdk/go/alicloud/alb/getServerGroups.go index 6ffa496b34..dcde2f6057 100644 --- a/sdk/go/alicloud/alb/getServerGroups.go +++ b/sdk/go/alicloud/alb/getServerGroups.go @@ -107,21 +107,11 @@ type GetServerGroupsResult struct { } func GetServerGroupsOutput(ctx *pulumi.Context, args GetServerGroupsOutputArgs, opts ...pulumi.InvokeOption) GetServerGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServerGroupsResultOutput, error) { args := v.(GetServerGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServerGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:alb/getServerGroups:getServerGroups", args, &rv, "", opts...) - if err != nil { - return GetServerGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServerGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServerGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:alb/getServerGroups:getServerGroups", args, GetServerGroupsResultOutput{}, options).(GetServerGroupsResultOutput), nil }).(GetServerGroupsResultOutput) } diff --git a/sdk/go/alicloud/alb/getSystemSecurityPolicies.go b/sdk/go/alicloud/alb/getSystemSecurityPolicies.go index eee496fc82..fb3ea46f81 100644 --- a/sdk/go/alicloud/alb/getSystemSecurityPolicies.go +++ b/sdk/go/alicloud/alb/getSystemSecurityPolicies.go @@ -77,21 +77,11 @@ type GetSystemSecurityPoliciesResult struct { } func GetSystemSecurityPoliciesOutput(ctx *pulumi.Context, args GetSystemSecurityPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetSystemSecurityPoliciesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSystemSecurityPoliciesResultOutput, error) { args := v.(GetSystemSecurityPoliciesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSystemSecurityPoliciesResult - secret, err := ctx.InvokePackageRaw("alicloud:alb/getSystemSecurityPolicies:getSystemSecurityPolicies", args, &rv, "", opts...) - if err != nil { - return GetSystemSecurityPoliciesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSystemSecurityPoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSystemSecurityPoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:alb/getSystemSecurityPolicies:getSystemSecurityPolicies", args, GetSystemSecurityPoliciesResultOutput{}, options).(GetSystemSecurityPoliciesResultOutput), nil }).(GetSystemSecurityPoliciesResultOutput) } diff --git a/sdk/go/alicloud/alb/getZones.go b/sdk/go/alicloud/alb/getZones.go index e8475b5f42..2080fc3e91 100644 --- a/sdk/go/alicloud/alb/getZones.go +++ b/sdk/go/alicloud/alb/getZones.go @@ -67,21 +67,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:alb/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:alb/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/amqp/getBindings.go b/sdk/go/alicloud/amqp/getBindings.go index 0417753ee3..d60651bcad 100644 --- a/sdk/go/alicloud/amqp/getBindings.go +++ b/sdk/go/alicloud/amqp/getBindings.go @@ -75,21 +75,11 @@ type GetBindingsResult struct { } func GetBindingsOutput(ctx *pulumi.Context, args GetBindingsOutputArgs, opts ...pulumi.InvokeOption) GetBindingsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBindingsResultOutput, error) { args := v.(GetBindingsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBindingsResult - secret, err := ctx.InvokePackageRaw("alicloud:amqp/getBindings:getBindings", args, &rv, "", opts...) - if err != nil { - return GetBindingsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBindingsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBindingsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:amqp/getBindings:getBindings", args, GetBindingsResultOutput{}, options).(GetBindingsResultOutput), nil }).(GetBindingsResultOutput) } diff --git a/sdk/go/alicloud/amqp/getExchanges.go b/sdk/go/alicloud/amqp/getExchanges.go index 7d1abee5e6..37dd1be29d 100644 --- a/sdk/go/alicloud/amqp/getExchanges.go +++ b/sdk/go/alicloud/amqp/getExchanges.go @@ -95,21 +95,11 @@ type GetExchangesResult struct { } func GetExchangesOutput(ctx *pulumi.Context, args GetExchangesOutputArgs, opts ...pulumi.InvokeOption) GetExchangesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetExchangesResultOutput, error) { args := v.(GetExchangesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetExchangesResult - secret, err := ctx.InvokePackageRaw("alicloud:amqp/getExchanges:getExchanges", args, &rv, "", opts...) - if err != nil { - return GetExchangesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetExchangesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetExchangesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:amqp/getExchanges:getExchanges", args, GetExchangesResultOutput{}, options).(GetExchangesResultOutput), nil }).(GetExchangesResultOutput) } diff --git a/sdk/go/alicloud/amqp/getInstances.go b/sdk/go/alicloud/amqp/getInstances.go index ea69851d4b..73dde6e69c 100644 --- a/sdk/go/alicloud/amqp/getInstances.go +++ b/sdk/go/alicloud/amqp/getInstances.go @@ -91,21 +91,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:amqp/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:amqp/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/amqp/getQueues.go b/sdk/go/alicloud/amqp/getQueues.go index 6e4ec627f6..2d4e83db93 100644 --- a/sdk/go/alicloud/amqp/getQueues.go +++ b/sdk/go/alicloud/amqp/getQueues.go @@ -95,21 +95,11 @@ type GetQueuesResult struct { } func GetQueuesOutput(ctx *pulumi.Context, args GetQueuesOutputArgs, opts ...pulumi.InvokeOption) GetQueuesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetQueuesResultOutput, error) { args := v.(GetQueuesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetQueuesResult - secret, err := ctx.InvokePackageRaw("alicloud:amqp/getQueues:getQueues", args, &rv, "", opts...) - if err != nil { - return GetQueuesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetQueuesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetQueuesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:amqp/getQueues:getQueues", args, GetQueuesResultOutput{}, options).(GetQueuesResultOutput), nil }).(GetQueuesResultOutput) } diff --git a/sdk/go/alicloud/amqp/getStaticAccounts.go b/sdk/go/alicloud/amqp/getStaticAccounts.go index c5e4ac796c..341f8e4b82 100644 --- a/sdk/go/alicloud/amqp/getStaticAccounts.go +++ b/sdk/go/alicloud/amqp/getStaticAccounts.go @@ -74,21 +74,11 @@ type GetStaticAccountsResult struct { } func GetStaticAccountsOutput(ctx *pulumi.Context, args GetStaticAccountsOutputArgs, opts ...pulumi.InvokeOption) GetStaticAccountsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetStaticAccountsResultOutput, error) { args := v.(GetStaticAccountsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetStaticAccountsResult - secret, err := ctx.InvokePackageRaw("alicloud:amqp/getStaticAccounts:getStaticAccounts", args, &rv, "", opts...) - if err != nil { - return GetStaticAccountsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetStaticAccountsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetStaticAccountsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:amqp/getStaticAccounts:getStaticAccounts", args, GetStaticAccountsResultOutput{}, options).(GetStaticAccountsResultOutput), nil }).(GetStaticAccountsResultOutput) } diff --git a/sdk/go/alicloud/amqp/getVirtualHosts.go b/sdk/go/alicloud/amqp/getVirtualHosts.go index 4dfd3d9688..9c09f5b058 100644 --- a/sdk/go/alicloud/amqp/getVirtualHosts.go +++ b/sdk/go/alicloud/amqp/getVirtualHosts.go @@ -90,21 +90,11 @@ type GetVirtualHostsResult struct { } func GetVirtualHostsOutput(ctx *pulumi.Context, args GetVirtualHostsOutputArgs, opts ...pulumi.InvokeOption) GetVirtualHostsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVirtualHostsResultOutput, error) { args := v.(GetVirtualHostsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVirtualHostsResult - secret, err := ctx.InvokePackageRaw("alicloud:amqp/getVirtualHosts:getVirtualHosts", args, &rv, "", opts...) - if err != nil { - return GetVirtualHostsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVirtualHostsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVirtualHostsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:amqp/getVirtualHosts:getVirtualHosts", args, GetVirtualHostsResultOutput{}, options).(GetVirtualHostsResultOutput), nil }).(GetVirtualHostsResultOutput) } diff --git a/sdk/go/alicloud/apigateway/getApis.go b/sdk/go/alicloud/apigateway/getApis.go index aff0ab9d03..ef8832fb6f 100644 --- a/sdk/go/alicloud/apigateway/getApis.go +++ b/sdk/go/alicloud/apigateway/getApis.go @@ -132,21 +132,11 @@ type GetApisResult struct { } func GetApisOutput(ctx *pulumi.Context, args GetApisOutputArgs, opts ...pulumi.InvokeOption) GetApisResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetApisResultOutput, error) { args := v.(GetApisArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetApisResult - secret, err := ctx.InvokePackageRaw("alicloud:apigateway/getApis:getApis", args, &rv, "", opts...) - if err != nil { - return GetApisResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetApisResultOutput) - if secret { - return pulumi.ToSecret(output).(GetApisResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:apigateway/getApis:getApis", args, GetApisResultOutput{}, options).(GetApisResultOutput), nil }).(GetApisResultOutput) } diff --git a/sdk/go/alicloud/apigateway/getApps.go b/sdk/go/alicloud/apigateway/getApps.go index a30b3f69c0..aa431374ff 100644 --- a/sdk/go/alicloud/apigateway/getApps.go +++ b/sdk/go/alicloud/apigateway/getApps.go @@ -77,21 +77,11 @@ type GetAppsResult struct { } func GetAppsOutput(ctx *pulumi.Context, args GetAppsOutputArgs, opts ...pulumi.InvokeOption) GetAppsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAppsResultOutput, error) { args := v.(GetAppsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAppsResult - secret, err := ctx.InvokePackageRaw("alicloud:apigateway/getApps:getApps", args, &rv, "", opts...) - if err != nil { - return GetAppsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAppsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAppsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:apigateway/getApps:getApps", args, GetAppsResultOutput{}, options).(GetAppsResultOutput), nil }).(GetAppsResultOutput) } diff --git a/sdk/go/alicloud/apigateway/getBackends.go b/sdk/go/alicloud/apigateway/getBackends.go index 0e1b4b41cf..e0a964cc88 100644 --- a/sdk/go/alicloud/apigateway/getBackends.go +++ b/sdk/go/alicloud/apigateway/getBackends.go @@ -77,21 +77,11 @@ type GetBackendsResult struct { } func GetBackendsOutput(ctx *pulumi.Context, args GetBackendsOutputArgs, opts ...pulumi.InvokeOption) GetBackendsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBackendsResultOutput, error) { args := v.(GetBackendsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBackendsResult - secret, err := ctx.InvokePackageRaw("alicloud:apigateway/getBackends:getBackends", args, &rv, "", opts...) - if err != nil { - return GetBackendsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBackendsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBackendsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:apigateway/getBackends:getBackends", args, GetBackendsResultOutput{}, options).(GetBackendsResultOutput), nil }).(GetBackendsResultOutput) } diff --git a/sdk/go/alicloud/apigateway/getGroups.go b/sdk/go/alicloud/apigateway/getGroups.go index b8796d4061..dcea2a64b9 100644 --- a/sdk/go/alicloud/apigateway/getGroups.go +++ b/sdk/go/alicloud/apigateway/getGroups.go @@ -74,21 +74,11 @@ type GetGroupsResult struct { } func GetGroupsOutput(ctx *pulumi.Context, args GetGroupsOutputArgs, opts ...pulumi.InvokeOption) GetGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGroupsResultOutput, error) { args := v.(GetGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:apigateway/getGroups:getGroups", args, &rv, "", opts...) - if err != nil { - return GetGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:apigateway/getGroups:getGroups", args, GetGroupsResultOutput{}, options).(GetGroupsResultOutput), nil }).(GetGroupsResultOutput) } diff --git a/sdk/go/alicloud/apigateway/getLogConfigs.go b/sdk/go/alicloud/apigateway/getLogConfigs.go index cb887b01a1..8aa7d40893 100644 --- a/sdk/go/alicloud/apigateway/getLogConfigs.go +++ b/sdk/go/alicloud/apigateway/getLogConfigs.go @@ -83,21 +83,11 @@ type GetLogConfigsResult struct { } func GetLogConfigsOutput(ctx *pulumi.Context, args GetLogConfigsOutputArgs, opts ...pulumi.InvokeOption) GetLogConfigsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetLogConfigsResultOutput, error) { args := v.(GetLogConfigsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetLogConfigsResult - secret, err := ctx.InvokePackageRaw("alicloud:apigateway/getLogConfigs:getLogConfigs", args, &rv, "", opts...) - if err != nil { - return GetLogConfigsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetLogConfigsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetLogConfigsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:apigateway/getLogConfigs:getLogConfigs", args, GetLogConfigsResultOutput{}, options).(GetLogConfigsResultOutput), nil }).(GetLogConfigsResultOutput) } diff --git a/sdk/go/alicloud/apigateway/getModels.go b/sdk/go/alicloud/apigateway/getModels.go index 1de55441b4..f5dc47b099 100644 --- a/sdk/go/alicloud/apigateway/getModels.go +++ b/sdk/go/alicloud/apigateway/getModels.go @@ -99,21 +99,11 @@ type GetModelsResult struct { } func GetModelsOutput(ctx *pulumi.Context, args GetModelsOutputArgs, opts ...pulumi.InvokeOption) GetModelsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetModelsResultOutput, error) { args := v.(GetModelsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetModelsResult - secret, err := ctx.InvokePackageRaw("alicloud:apigateway/getModels:getModels", args, &rv, "", opts...) - if err != nil { - return GetModelsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetModelsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetModelsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:apigateway/getModels:getModels", args, GetModelsResultOutput{}, options).(GetModelsResultOutput), nil }).(GetModelsResultOutput) } diff --git a/sdk/go/alicloud/apigateway/getPlugins.go b/sdk/go/alicloud/apigateway/getPlugins.go index 2e233f4c33..c0878c7411 100644 --- a/sdk/go/alicloud/apigateway/getPlugins.go +++ b/sdk/go/alicloud/apigateway/getPlugins.go @@ -93,21 +93,11 @@ type GetPluginsResult struct { } func GetPluginsOutput(ctx *pulumi.Context, args GetPluginsOutputArgs, opts ...pulumi.InvokeOption) GetPluginsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPluginsResultOutput, error) { args := v.(GetPluginsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPluginsResult - secret, err := ctx.InvokePackageRaw("alicloud:apigateway/getPlugins:getPlugins", args, &rv, "", opts...) - if err != nil { - return GetPluginsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPluginsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPluginsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:apigateway/getPlugins:getPlugins", args, GetPluginsResultOutput{}, options).(GetPluginsResultOutput), nil }).(GetPluginsResultOutput) } diff --git a/sdk/go/alicloud/apigateway/getService.go b/sdk/go/alicloud/apigateway/getService.go index 963fead48e..a6f5c1e65a 100644 --- a/sdk/go/alicloud/apigateway/getService.go +++ b/sdk/go/alicloud/apigateway/getService.go @@ -70,21 +70,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:apigateway/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:apigateway/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/arms/getAlertContactGroups.go b/sdk/go/alicloud/arms/getAlertContactGroups.go index 0b3b9dccd7..87d1b665f3 100644 --- a/sdk/go/alicloud/arms/getAlertContactGroups.go +++ b/sdk/go/alicloud/arms/getAlertContactGroups.go @@ -84,21 +84,11 @@ type GetAlertContactGroupsResult struct { } func GetAlertContactGroupsOutput(ctx *pulumi.Context, args GetAlertContactGroupsOutputArgs, opts ...pulumi.InvokeOption) GetAlertContactGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAlertContactGroupsResultOutput, error) { args := v.(GetAlertContactGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAlertContactGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:arms/getAlertContactGroups:getAlertContactGroups", args, &rv, "", opts...) - if err != nil { - return GetAlertContactGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAlertContactGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAlertContactGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:arms/getAlertContactGroups:getAlertContactGroups", args, GetAlertContactGroupsResultOutput{}, options).(GetAlertContactGroupsResultOutput), nil }).(GetAlertContactGroupsResultOutput) } diff --git a/sdk/go/alicloud/arms/getAlertContacts.go b/sdk/go/alicloud/arms/getAlertContacts.go index 198997ca2e..73f7830327 100644 --- a/sdk/go/alicloud/arms/getAlertContacts.go +++ b/sdk/go/alicloud/arms/getAlertContacts.go @@ -89,21 +89,11 @@ type GetAlertContactsResult struct { } func GetAlertContactsOutput(ctx *pulumi.Context, args GetAlertContactsOutputArgs, opts ...pulumi.InvokeOption) GetAlertContactsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAlertContactsResultOutput, error) { args := v.(GetAlertContactsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAlertContactsResult - secret, err := ctx.InvokePackageRaw("alicloud:arms/getAlertContacts:getAlertContacts", args, &rv, "", opts...) - if err != nil { - return GetAlertContactsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAlertContactsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAlertContactsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:arms/getAlertContacts:getAlertContacts", args, GetAlertContactsResultOutput{}, options).(GetAlertContactsResultOutput), nil }).(GetAlertContactsResultOutput) } diff --git a/sdk/go/alicloud/arms/getAlertRobots.go b/sdk/go/alicloud/arms/getAlertRobots.go index 6bab275ad7..041ea52514 100644 --- a/sdk/go/alicloud/arms/getAlertRobots.go +++ b/sdk/go/alicloud/arms/getAlertRobots.go @@ -92,21 +92,11 @@ type GetAlertRobotsResult struct { } func GetAlertRobotsOutput(ctx *pulumi.Context, args GetAlertRobotsOutputArgs, opts ...pulumi.InvokeOption) GetAlertRobotsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAlertRobotsResultOutput, error) { args := v.(GetAlertRobotsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAlertRobotsResult - secret, err := ctx.InvokePackageRaw("alicloud:arms/getAlertRobots:getAlertRobots", args, &rv, "", opts...) - if err != nil { - return GetAlertRobotsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAlertRobotsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAlertRobotsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:arms/getAlertRobots:getAlertRobots", args, GetAlertRobotsResultOutput{}, options).(GetAlertRobotsResultOutput), nil }).(GetAlertRobotsResultOutput) } diff --git a/sdk/go/alicloud/arms/getDispatchRules.go b/sdk/go/alicloud/arms/getDispatchRules.go index aaeb804af7..ee61886200 100644 --- a/sdk/go/alicloud/arms/getDispatchRules.go +++ b/sdk/go/alicloud/arms/getDispatchRules.go @@ -152,21 +152,11 @@ type GetDispatchRulesResult struct { } func GetDispatchRulesOutput(ctx *pulumi.Context, args GetDispatchRulesOutputArgs, opts ...pulumi.InvokeOption) GetDispatchRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDispatchRulesResultOutput, error) { args := v.(GetDispatchRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDispatchRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:arms/getDispatchRules:getDispatchRules", args, &rv, "", opts...) - if err != nil { - return GetDispatchRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDispatchRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDispatchRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:arms/getDispatchRules:getDispatchRules", args, GetDispatchRulesResultOutput{}, options).(GetDispatchRulesResultOutput), nil }).(GetDispatchRulesResultOutput) } diff --git a/sdk/go/alicloud/arms/getIntegrationExporters.go b/sdk/go/alicloud/arms/getIntegrationExporters.go index 110b1ea5ee..d4cc7db2b8 100644 --- a/sdk/go/alicloud/arms/getIntegrationExporters.go +++ b/sdk/go/alicloud/arms/getIntegrationExporters.go @@ -84,21 +84,11 @@ type GetIntegrationExportersResult struct { } func GetIntegrationExportersOutput(ctx *pulumi.Context, args GetIntegrationExportersOutputArgs, opts ...pulumi.InvokeOption) GetIntegrationExportersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIntegrationExportersResultOutput, error) { args := v.(GetIntegrationExportersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIntegrationExportersResult - secret, err := ctx.InvokePackageRaw("alicloud:arms/getIntegrationExporters:getIntegrationExporters", args, &rv, "", opts...) - if err != nil { - return GetIntegrationExportersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIntegrationExportersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIntegrationExportersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:arms/getIntegrationExporters:getIntegrationExporters", args, GetIntegrationExportersResultOutput{}, options).(GetIntegrationExportersResultOutput), nil }).(GetIntegrationExportersResultOutput) } diff --git a/sdk/go/alicloud/arms/getPrometheis.go b/sdk/go/alicloud/arms/getPrometheis.go index abba0f9491..858ad3934f 100644 --- a/sdk/go/alicloud/arms/getPrometheis.go +++ b/sdk/go/alicloud/arms/getPrometheis.go @@ -138,21 +138,11 @@ type GetPrometheisResult struct { } func GetPrometheisOutput(ctx *pulumi.Context, args GetPrometheisOutputArgs, opts ...pulumi.InvokeOption) GetPrometheisResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPrometheisResultOutput, error) { args := v.(GetPrometheisArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPrometheisResult - secret, err := ctx.InvokePackageRaw("alicloud:arms/getPrometheis:getPrometheis", args, &rv, "", opts...) - if err != nil { - return GetPrometheisResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPrometheisResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPrometheisResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:arms/getPrometheis:getPrometheis", args, GetPrometheisResultOutput{}, options).(GetPrometheisResultOutput), nil }).(GetPrometheisResultOutput) } diff --git a/sdk/go/alicloud/arms/getPrometheus.go b/sdk/go/alicloud/arms/getPrometheus.go index 364143e5dc..1c319a2f08 100644 --- a/sdk/go/alicloud/arms/getPrometheus.go +++ b/sdk/go/alicloud/arms/getPrometheus.go @@ -136,21 +136,11 @@ type LookupPrometheusResult struct { } func LookupPrometheusOutput(ctx *pulumi.Context, args LookupPrometheusOutputArgs, opts ...pulumi.InvokeOption) LookupPrometheusResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupPrometheusResultOutput, error) { args := v.(LookupPrometheusArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupPrometheusResult - secret, err := ctx.InvokePackageRaw("alicloud:arms/getPrometheus:getPrometheus", args, &rv, "", opts...) - if err != nil { - return LookupPrometheusResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupPrometheusResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupPrometheusResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:arms/getPrometheus:getPrometheus", args, LookupPrometheusResultOutput{}, options).(LookupPrometheusResultOutput), nil }).(LookupPrometheusResultOutput) } diff --git a/sdk/go/alicloud/arms/getPrometheusAlertRules.go b/sdk/go/alicloud/arms/getPrometheusAlertRules.go index 43e2ddcc0c..62fcd2dc22 100644 --- a/sdk/go/alicloud/arms/getPrometheusAlertRules.go +++ b/sdk/go/alicloud/arms/getPrometheusAlertRules.go @@ -98,21 +98,11 @@ type GetPrometheusAlertRulesResult struct { } func GetPrometheusAlertRulesOutput(ctx *pulumi.Context, args GetPrometheusAlertRulesOutputArgs, opts ...pulumi.InvokeOption) GetPrometheusAlertRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPrometheusAlertRulesResultOutput, error) { args := v.(GetPrometheusAlertRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPrometheusAlertRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:arms/getPrometheusAlertRules:getPrometheusAlertRules", args, &rv, "", opts...) - if err != nil { - return GetPrometheusAlertRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPrometheusAlertRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPrometheusAlertRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:arms/getPrometheusAlertRules:getPrometheusAlertRules", args, GetPrometheusAlertRulesResultOutput{}, options).(GetPrometheusAlertRulesResultOutput), nil }).(GetPrometheusAlertRulesResultOutput) } diff --git a/sdk/go/alicloud/arms/getPrometheusMonitorings.go b/sdk/go/alicloud/arms/getPrometheusMonitorings.go index 351918d395..5422e15211 100644 --- a/sdk/go/alicloud/arms/getPrometheusMonitorings.go +++ b/sdk/go/alicloud/arms/getPrometheusMonitorings.go @@ -100,21 +100,11 @@ type GetPrometheusMonitoringsResult struct { } func GetPrometheusMonitoringsOutput(ctx *pulumi.Context, args GetPrometheusMonitoringsOutputArgs, opts ...pulumi.InvokeOption) GetPrometheusMonitoringsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPrometheusMonitoringsResultOutput, error) { args := v.(GetPrometheusMonitoringsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPrometheusMonitoringsResult - secret, err := ctx.InvokePackageRaw("alicloud:arms/getPrometheusMonitorings:getPrometheusMonitorings", args, &rv, "", opts...) - if err != nil { - return GetPrometheusMonitoringsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPrometheusMonitoringsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPrometheusMonitoringsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:arms/getPrometheusMonitorings:getPrometheusMonitorings", args, GetPrometheusMonitoringsResultOutput{}, options).(GetPrometheusMonitoringsResultOutput), nil }).(GetPrometheusMonitoringsResultOutput) } diff --git a/sdk/go/alicloud/arms/getRemoteWrites.go b/sdk/go/alicloud/arms/getRemoteWrites.go index e873ec29ba..981c745921 100644 --- a/sdk/go/alicloud/arms/getRemoteWrites.go +++ b/sdk/go/alicloud/arms/getRemoteWrites.go @@ -94,21 +94,11 @@ type GetRemoteWritesResult struct { } func GetRemoteWritesOutput(ctx *pulumi.Context, args GetRemoteWritesOutputArgs, opts ...pulumi.InvokeOption) GetRemoteWritesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRemoteWritesResultOutput, error) { args := v.(GetRemoteWritesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRemoteWritesResult - secret, err := ctx.InvokePackageRaw("alicloud:arms/getRemoteWrites:getRemoteWrites", args, &rv, "", opts...) - if err != nil { - return GetRemoteWritesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRemoteWritesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRemoteWritesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:arms/getRemoteWrites:getRemoteWrites", args, GetRemoteWritesResultOutput{}, options).(GetRemoteWritesResultOutput), nil }).(GetRemoteWritesResultOutput) } diff --git a/sdk/go/alicloud/bastionhost/getHostAccounts.go b/sdk/go/alicloud/bastionhost/getHostAccounts.go index dc23483ba3..c7b650bc39 100644 --- a/sdk/go/alicloud/bastionhost/getHostAccounts.go +++ b/sdk/go/alicloud/bastionhost/getHostAccounts.go @@ -101,21 +101,11 @@ type GetHostAccountsResult struct { } func GetHostAccountsOutput(ctx *pulumi.Context, args GetHostAccountsOutputArgs, opts ...pulumi.InvokeOption) GetHostAccountsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHostAccountsResultOutput, error) { args := v.(GetHostAccountsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHostAccountsResult - secret, err := ctx.InvokePackageRaw("alicloud:bastionhost/getHostAccounts:getHostAccounts", args, &rv, "", opts...) - if err != nil { - return GetHostAccountsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHostAccountsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHostAccountsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:bastionhost/getHostAccounts:getHostAccounts", args, GetHostAccountsResultOutput{}, options).(GetHostAccountsResultOutput), nil }).(GetHostAccountsResultOutput) } diff --git a/sdk/go/alicloud/bastionhost/getHostGroups.go b/sdk/go/alicloud/bastionhost/getHostGroups.go index dee3fa1a99..e4128e499e 100644 --- a/sdk/go/alicloud/bastionhost/getHostGroups.go +++ b/sdk/go/alicloud/bastionhost/getHostGroups.go @@ -93,21 +93,11 @@ type GetHostGroupsResult struct { } func GetHostGroupsOutput(ctx *pulumi.Context, args GetHostGroupsOutputArgs, opts ...pulumi.InvokeOption) GetHostGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHostGroupsResultOutput, error) { args := v.(GetHostGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHostGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:bastionhost/getHostGroups:getHostGroups", args, &rv, "", opts...) - if err != nil { - return GetHostGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHostGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHostGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:bastionhost/getHostGroups:getHostGroups", args, GetHostGroupsResultOutput{}, options).(GetHostGroupsResultOutput), nil }).(GetHostGroupsResultOutput) } diff --git a/sdk/go/alicloud/bastionhost/getHostShareKeys.go b/sdk/go/alicloud/bastionhost/getHostShareKeys.go index a0ccaffa9a..7c15b3ceda 100644 --- a/sdk/go/alicloud/bastionhost/getHostShareKeys.go +++ b/sdk/go/alicloud/bastionhost/getHostShareKeys.go @@ -93,21 +93,11 @@ type GetHostShareKeysResult struct { } func GetHostShareKeysOutput(ctx *pulumi.Context, args GetHostShareKeysOutputArgs, opts ...pulumi.InvokeOption) GetHostShareKeysResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHostShareKeysResultOutput, error) { args := v.(GetHostShareKeysArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHostShareKeysResult - secret, err := ctx.InvokePackageRaw("alicloud:bastionhost/getHostShareKeys:getHostShareKeys", args, &rv, "", opts...) - if err != nil { - return GetHostShareKeysResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHostShareKeysResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHostShareKeysResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:bastionhost/getHostShareKeys:getHostShareKeys", args, GetHostShareKeysResultOutput{}, options).(GetHostShareKeysResultOutput), nil }).(GetHostShareKeysResultOutput) } diff --git a/sdk/go/alicloud/bastionhost/getHosts.go b/sdk/go/alicloud/bastionhost/getHosts.go index 30862804fb..0033defd5d 100644 --- a/sdk/go/alicloud/bastionhost/getHosts.go +++ b/sdk/go/alicloud/bastionhost/getHosts.go @@ -111,21 +111,11 @@ type GetHostsResult struct { } func GetHostsOutput(ctx *pulumi.Context, args GetHostsOutputArgs, opts ...pulumi.InvokeOption) GetHostsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHostsResultOutput, error) { args := v.(GetHostsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHostsResult - secret, err := ctx.InvokePackageRaw("alicloud:bastionhost/getHosts:getHosts", args, &rv, "", opts...) - if err != nil { - return GetHostsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHostsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHostsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:bastionhost/getHosts:getHosts", args, GetHostsResultOutput{}, options).(GetHostsResultOutput), nil }).(GetHostsResultOutput) } diff --git a/sdk/go/alicloud/bastionhost/getInstances.go b/sdk/go/alicloud/bastionhost/getInstances.go index bd0bf086a0..9dfeb8972d 100644 --- a/sdk/go/alicloud/bastionhost/getInstances.go +++ b/sdk/go/alicloud/bastionhost/getInstances.go @@ -100,21 +100,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:bastionhost/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:bastionhost/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/bastionhost/getUserGroups.go b/sdk/go/alicloud/bastionhost/getUserGroups.go index 82c8b7d1fa..7d33aa54ba 100644 --- a/sdk/go/alicloud/bastionhost/getUserGroups.go +++ b/sdk/go/alicloud/bastionhost/getUserGroups.go @@ -93,21 +93,11 @@ type GetUserGroupsResult struct { } func GetUserGroupsOutput(ctx *pulumi.Context, args GetUserGroupsOutputArgs, opts ...pulumi.InvokeOption) GetUserGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetUserGroupsResultOutput, error) { args := v.(GetUserGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetUserGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:bastionhost/getUserGroups:getUserGroups", args, &rv, "", opts...) - if err != nil { - return GetUserGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetUserGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetUserGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:bastionhost/getUserGroups:getUserGroups", args, GetUserGroupsResultOutput{}, options).(GetUserGroupsResultOutput), nil }).(GetUserGroupsResultOutput) } diff --git a/sdk/go/alicloud/bastionhost/getUsers.go b/sdk/go/alicloud/bastionhost/getUsers.go index dfc3ef485e..9e5c009c9a 100644 --- a/sdk/go/alicloud/bastionhost/getUsers.go +++ b/sdk/go/alicloud/bastionhost/getUsers.go @@ -108,21 +108,11 @@ type GetUsersResult struct { } func GetUsersOutput(ctx *pulumi.Context, args GetUsersOutputArgs, opts ...pulumi.InvokeOption) GetUsersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetUsersResultOutput, error) { args := v.(GetUsersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetUsersResult - secret, err := ctx.InvokePackageRaw("alicloud:bastionhost/getUsers:getUsers", args, &rv, "", opts...) - if err != nil { - return GetUsersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetUsersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetUsersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:bastionhost/getUsers:getUsers", args, GetUsersResultOutput{}, options).(GetUsersResultOutput), nil }).(GetUsersResultOutput) } diff --git a/sdk/go/alicloud/bp/getStudioApplications.go b/sdk/go/alicloud/bp/getStudioApplications.go index 47053f6e83..71cfa7fe8c 100644 --- a/sdk/go/alicloud/bp/getStudioApplications.go +++ b/sdk/go/alicloud/bp/getStudioApplications.go @@ -102,21 +102,11 @@ type GetStudioApplicationsResult struct { } func GetStudioApplicationsOutput(ctx *pulumi.Context, args GetStudioApplicationsOutputArgs, opts ...pulumi.InvokeOption) GetStudioApplicationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetStudioApplicationsResultOutput, error) { args := v.(GetStudioApplicationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetStudioApplicationsResult - secret, err := ctx.InvokePackageRaw("alicloud:bp/getStudioApplications:getStudioApplications", args, &rv, "", opts...) - if err != nil { - return GetStudioApplicationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetStudioApplicationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetStudioApplicationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:bp/getStudioApplications:getStudioApplications", args, GetStudioApplicationsResultOutput{}, options).(GetStudioApplicationsResultOutput), nil }).(GetStudioApplicationsResultOutput) } diff --git a/sdk/go/alicloud/brain/getIndustrialPidLoops.go b/sdk/go/alicloud/brain/getIndustrialPidLoops.go index c1ec6f3765..2c7a0c8f49 100644 --- a/sdk/go/alicloud/brain/getIndustrialPidLoops.go +++ b/sdk/go/alicloud/brain/getIndustrialPidLoops.go @@ -96,21 +96,11 @@ type GetIndustrialPidLoopsResult struct { } func GetIndustrialPidLoopsOutput(ctx *pulumi.Context, args GetIndustrialPidLoopsOutputArgs, opts ...pulumi.InvokeOption) GetIndustrialPidLoopsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIndustrialPidLoopsResultOutput, error) { args := v.(GetIndustrialPidLoopsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIndustrialPidLoopsResult - secret, err := ctx.InvokePackageRaw("alicloud:brain/getIndustrialPidLoops:getIndustrialPidLoops", args, &rv, "", opts...) - if err != nil { - return GetIndustrialPidLoopsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIndustrialPidLoopsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIndustrialPidLoopsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:brain/getIndustrialPidLoops:getIndustrialPidLoops", args, GetIndustrialPidLoopsResultOutput{}, options).(GetIndustrialPidLoopsResultOutput), nil }).(GetIndustrialPidLoopsResultOutput) } diff --git a/sdk/go/alicloud/brain/getIndustrialPidOrganizations.go b/sdk/go/alicloud/brain/getIndustrialPidOrganizations.go index 8e6c604f85..260f06ec5c 100644 --- a/sdk/go/alicloud/brain/getIndustrialPidOrganizations.go +++ b/sdk/go/alicloud/brain/getIndustrialPidOrganizations.go @@ -85,21 +85,11 @@ type GetIndustrialPidOrganizationsResult struct { } func GetIndustrialPidOrganizationsOutput(ctx *pulumi.Context, args GetIndustrialPidOrganizationsOutputArgs, opts ...pulumi.InvokeOption) GetIndustrialPidOrganizationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIndustrialPidOrganizationsResultOutput, error) { args := v.(GetIndustrialPidOrganizationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIndustrialPidOrganizationsResult - secret, err := ctx.InvokePackageRaw("alicloud:brain/getIndustrialPidOrganizations:getIndustrialPidOrganizations", args, &rv, "", opts...) - if err != nil { - return GetIndustrialPidOrganizationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIndustrialPidOrganizationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIndustrialPidOrganizationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:brain/getIndustrialPidOrganizations:getIndustrialPidOrganizations", args, GetIndustrialPidOrganizationsResultOutput{}, options).(GetIndustrialPidOrganizationsResultOutput), nil }).(GetIndustrialPidOrganizationsResultOutput) } diff --git a/sdk/go/alicloud/brain/getIndustrialPidProjects.go b/sdk/go/alicloud/brain/getIndustrialPidProjects.go index 516a411437..7845b562b6 100644 --- a/sdk/go/alicloud/brain/getIndustrialPidProjects.go +++ b/sdk/go/alicloud/brain/getIndustrialPidProjects.go @@ -90,21 +90,11 @@ type GetIndustrialPidProjectsResult struct { } func GetIndustrialPidProjectsOutput(ctx *pulumi.Context, args GetIndustrialPidProjectsOutputArgs, opts ...pulumi.InvokeOption) GetIndustrialPidProjectsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIndustrialPidProjectsResultOutput, error) { args := v.(GetIndustrialPidProjectsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIndustrialPidProjectsResult - secret, err := ctx.InvokePackageRaw("alicloud:brain/getIndustrialPidProjects:getIndustrialPidProjects", args, &rv, "", opts...) - if err != nil { - return GetIndustrialPidProjectsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIndustrialPidProjectsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIndustrialPidProjectsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:brain/getIndustrialPidProjects:getIndustrialPidProjects", args, GetIndustrialPidProjectsResultOutput{}, options).(GetIndustrialPidProjectsResultOutput), nil }).(GetIndustrialPidProjectsResultOutput) } diff --git a/sdk/go/alicloud/brain/getIndustrialSerice.go b/sdk/go/alicloud/brain/getIndustrialSerice.go index 513c9e02d5..77e5dfb893 100644 --- a/sdk/go/alicloud/brain/getIndustrialSerice.go +++ b/sdk/go/alicloud/brain/getIndustrialSerice.go @@ -72,21 +72,11 @@ type GetIndustrialSericeResult struct { } func GetIndustrialSericeOutput(ctx *pulumi.Context, args GetIndustrialSericeOutputArgs, opts ...pulumi.InvokeOption) GetIndustrialSericeResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIndustrialSericeResultOutput, error) { args := v.(GetIndustrialSericeArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIndustrialSericeResult - secret, err := ctx.InvokePackageRaw("alicloud:brain/getIndustrialSerice:getIndustrialSerice", args, &rv, "", opts...) - if err != nil { - return GetIndustrialSericeResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIndustrialSericeResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIndustrialSericeResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:brain/getIndustrialSerice:getIndustrialSerice", args, GetIndustrialSericeResultOutput{}, options).(GetIndustrialSericeResultOutput), nil }).(GetIndustrialSericeResultOutput) } diff --git a/sdk/go/alicloud/bss/getOpenApiPricingModules.go b/sdk/go/alicloud/bss/getOpenApiPricingModules.go index 1d6d96d082..da52ab17e2 100644 --- a/sdk/go/alicloud/bss/getOpenApiPricingModules.go +++ b/sdk/go/alicloud/bss/getOpenApiPricingModules.go @@ -88,21 +88,11 @@ type GetOpenApiPricingModulesResult struct { } func GetOpenApiPricingModulesOutput(ctx *pulumi.Context, args GetOpenApiPricingModulesOutputArgs, opts ...pulumi.InvokeOption) GetOpenApiPricingModulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetOpenApiPricingModulesResultOutput, error) { args := v.(GetOpenApiPricingModulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetOpenApiPricingModulesResult - secret, err := ctx.InvokePackageRaw("alicloud:bss/getOpenApiPricingModules:getOpenApiPricingModules", args, &rv, "", opts...) - if err != nil { - return GetOpenApiPricingModulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetOpenApiPricingModulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetOpenApiPricingModulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:bss/getOpenApiPricingModules:getOpenApiPricingModules", args, GetOpenApiPricingModulesResultOutput{}, options).(GetOpenApiPricingModulesResultOutput), nil }).(GetOpenApiPricingModulesResultOutput) } diff --git a/sdk/go/alicloud/bss/getOpenApiProducts.go b/sdk/go/alicloud/bss/getOpenApiProducts.go index 93bc4f41bb..eba0b92a9c 100644 --- a/sdk/go/alicloud/bss/getOpenApiProducts.go +++ b/sdk/go/alicloud/bss/getOpenApiProducts.go @@ -48,21 +48,11 @@ type GetOpenApiProductsResult struct { } func GetOpenApiProductsOutput(ctx *pulumi.Context, args GetOpenApiProductsOutputArgs, opts ...pulumi.InvokeOption) GetOpenApiProductsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetOpenApiProductsResultOutput, error) { args := v.(GetOpenApiProductsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetOpenApiProductsResult - secret, err := ctx.InvokePackageRaw("alicloud:bss/getOpenApiProducts:getOpenApiProducts", args, &rv, "", opts...) - if err != nil { - return GetOpenApiProductsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetOpenApiProductsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetOpenApiProductsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:bss/getOpenApiProducts:getOpenApiProducts", args, GetOpenApiProductsResultOutput{}, options).(GetOpenApiProductsResultOutput), nil }).(GetOpenApiProductsResultOutput) } diff --git a/sdk/go/alicloud/cas/getCertificates.go b/sdk/go/alicloud/cas/getCertificates.go index a4a5b31012..9d44db8046 100644 --- a/sdk/go/alicloud/cas/getCertificates.go +++ b/sdk/go/alicloud/cas/getCertificates.go @@ -59,21 +59,11 @@ type GetCertificatesResult struct { } func GetCertificatesOutput(ctx *pulumi.Context, args GetCertificatesOutputArgs, opts ...pulumi.InvokeOption) GetCertificatesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCertificatesResultOutput, error) { args := v.(GetCertificatesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCertificatesResult - secret, err := ctx.InvokePackageRaw("alicloud:cas/getCertificates:getCertificates", args, &rv, "", opts...) - if err != nil { - return GetCertificatesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCertificatesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCertificatesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cas/getCertificates:getCertificates", args, GetCertificatesResultOutput{}, options).(GetCertificatesResultOutput), nil }).(GetCertificatesResultOutput) } diff --git a/sdk/go/alicloud/cas/getServiceCertificates.go b/sdk/go/alicloud/cas/getServiceCertificates.go index 977997974b..70c7faf864 100644 --- a/sdk/go/alicloud/cas/getServiceCertificates.go +++ b/sdk/go/alicloud/cas/getServiceCertificates.go @@ -157,21 +157,11 @@ type GetServiceCertificatesResult struct { } func GetServiceCertificatesOutput(ctx *pulumi.Context, args GetServiceCertificatesOutputArgs, opts ...pulumi.InvokeOption) GetServiceCertificatesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceCertificatesResultOutput, error) { args := v.(GetServiceCertificatesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceCertificatesResult - secret, err := ctx.InvokePackageRaw("alicloud:cas/getServiceCertificates:getServiceCertificates", args, &rv, "", opts...) - if err != nil { - return GetServiceCertificatesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceCertificatesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceCertificatesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cas/getServiceCertificates:getServiceCertificates", args, GetServiceCertificatesResultOutput{}, options).(GetServiceCertificatesResultOutput), nil }).(GetServiceCertificatesResultOutput) } diff --git a/sdk/go/alicloud/cassandra/getBackupPlans.go b/sdk/go/alicloud/cassandra/getBackupPlans.go index e39b144fc3..be4c6c3fa9 100644 --- a/sdk/go/alicloud/cassandra/getBackupPlans.go +++ b/sdk/go/alicloud/cassandra/getBackupPlans.go @@ -74,21 +74,11 @@ type GetBackupPlansResult struct { } func GetBackupPlansOutput(ctx *pulumi.Context, args GetBackupPlansOutputArgs, opts ...pulumi.InvokeOption) GetBackupPlansResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBackupPlansResultOutput, error) { args := v.(GetBackupPlansArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBackupPlansResult - secret, err := ctx.InvokePackageRaw("alicloud:cassandra/getBackupPlans:getBackupPlans", args, &rv, "", opts...) - if err != nil { - return GetBackupPlansResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBackupPlansResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBackupPlansResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cassandra/getBackupPlans:getBackupPlans", args, GetBackupPlansResultOutput{}, options).(GetBackupPlansResultOutput), nil }).(GetBackupPlansResultOutput) } diff --git a/sdk/go/alicloud/cassandra/getClusters.go b/sdk/go/alicloud/cassandra/getClusters.go index 5f05ad189e..6dd1c995fa 100644 --- a/sdk/go/alicloud/cassandra/getClusters.go +++ b/sdk/go/alicloud/cassandra/getClusters.go @@ -82,21 +82,11 @@ type GetClustersResult struct { } func GetClustersOutput(ctx *pulumi.Context, args GetClustersOutputArgs, opts ...pulumi.InvokeOption) GetClustersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetClustersResultOutput, error) { args := v.(GetClustersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetClustersResult - secret, err := ctx.InvokePackageRaw("alicloud:cassandra/getClusters:getClusters", args, &rv, "", opts...) - if err != nil { - return GetClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cassandra/getClusters:getClusters", args, GetClustersResultOutput{}, options).(GetClustersResultOutput), nil }).(GetClustersResultOutput) } diff --git a/sdk/go/alicloud/cassandra/getDataCenters.go b/sdk/go/alicloud/cassandra/getDataCenters.go index cd4f52414a..6702b465fd 100644 --- a/sdk/go/alicloud/cassandra/getDataCenters.go +++ b/sdk/go/alicloud/cassandra/getDataCenters.go @@ -83,21 +83,11 @@ type GetDataCentersResult struct { } func GetDataCentersOutput(ctx *pulumi.Context, args GetDataCentersOutputArgs, opts ...pulumi.InvokeOption) GetDataCentersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDataCentersResultOutput, error) { args := v.(GetDataCentersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDataCentersResult - secret, err := ctx.InvokePackageRaw("alicloud:cassandra/getDataCenters:getDataCenters", args, &rv, "", opts...) - if err != nil { - return GetDataCentersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDataCentersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDataCentersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cassandra/getDataCenters:getDataCenters", args, GetDataCentersResultOutput{}, options).(GetDataCentersResultOutput), nil }).(GetDataCentersResultOutput) } diff --git a/sdk/go/alicloud/cassandra/getZones.go b/sdk/go/alicloud/cassandra/getZones.go index f619155dae..cb0e38e7b9 100644 --- a/sdk/go/alicloud/cassandra/getZones.go +++ b/sdk/go/alicloud/cassandra/getZones.go @@ -79,21 +79,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:cassandra/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cassandra/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/cddc/getDedicatedHostAccounts.go b/sdk/go/alicloud/cddc/getDedicatedHostAccounts.go index 1dedac4a4f..98c029a951 100644 --- a/sdk/go/alicloud/cddc/getDedicatedHostAccounts.go +++ b/sdk/go/alicloud/cddc/getDedicatedHostAccounts.go @@ -80,21 +80,11 @@ type GetDedicatedHostAccountsResult struct { } func GetDedicatedHostAccountsOutput(ctx *pulumi.Context, args GetDedicatedHostAccountsOutputArgs, opts ...pulumi.InvokeOption) GetDedicatedHostAccountsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDedicatedHostAccountsResultOutput, error) { args := v.(GetDedicatedHostAccountsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDedicatedHostAccountsResult - secret, err := ctx.InvokePackageRaw("alicloud:cddc/getDedicatedHostAccounts:getDedicatedHostAccounts", args, &rv, "", opts...) - if err != nil { - return GetDedicatedHostAccountsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDedicatedHostAccountsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDedicatedHostAccountsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cddc/getDedicatedHostAccounts:getDedicatedHostAccounts", args, GetDedicatedHostAccountsResultOutput{}, options).(GetDedicatedHostAccountsResultOutput), nil }).(GetDedicatedHostAccountsResultOutput) } diff --git a/sdk/go/alicloud/cddc/getDedicatedHostGroups.go b/sdk/go/alicloud/cddc/getDedicatedHostGroups.go index 789a68db32..6e54aadea7 100644 --- a/sdk/go/alicloud/cddc/getDedicatedHostGroups.go +++ b/sdk/go/alicloud/cddc/getDedicatedHostGroups.go @@ -78,21 +78,11 @@ type GetDedicatedHostGroupsResult struct { } func GetDedicatedHostGroupsOutput(ctx *pulumi.Context, args GetDedicatedHostGroupsOutputArgs, opts ...pulumi.InvokeOption) GetDedicatedHostGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDedicatedHostGroupsResultOutput, error) { args := v.(GetDedicatedHostGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDedicatedHostGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:cddc/getDedicatedHostGroups:getDedicatedHostGroups", args, &rv, "", opts...) - if err != nil { - return GetDedicatedHostGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDedicatedHostGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDedicatedHostGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cddc/getDedicatedHostGroups:getDedicatedHostGroups", args, GetDedicatedHostGroupsResultOutput{}, options).(GetDedicatedHostGroupsResultOutput), nil }).(GetDedicatedHostGroupsResultOutput) } diff --git a/sdk/go/alicloud/cddc/getDedicatedHosts.go b/sdk/go/alicloud/cddc/getDedicatedHosts.go index 81326f2993..53e8f43969 100644 --- a/sdk/go/alicloud/cddc/getDedicatedHosts.go +++ b/sdk/go/alicloud/cddc/getDedicatedHosts.go @@ -148,21 +148,11 @@ type GetDedicatedHostsResult struct { } func GetDedicatedHostsOutput(ctx *pulumi.Context, args GetDedicatedHostsOutputArgs, opts ...pulumi.InvokeOption) GetDedicatedHostsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDedicatedHostsResultOutput, error) { args := v.(GetDedicatedHostsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDedicatedHostsResult - secret, err := ctx.InvokePackageRaw("alicloud:cddc/getDedicatedHosts:getDedicatedHosts", args, &rv, "", opts...) - if err != nil { - return GetDedicatedHostsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDedicatedHostsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDedicatedHostsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cddc/getDedicatedHosts:getDedicatedHosts", args, GetDedicatedHostsResultOutput{}, options).(GetDedicatedHostsResultOutput), nil }).(GetDedicatedHostsResultOutput) } diff --git a/sdk/go/alicloud/cddc/getHostEcsLevelInfos.go b/sdk/go/alicloud/cddc/getHostEcsLevelInfos.go index b12a8c842c..3d84a61c4e 100644 --- a/sdk/go/alicloud/cddc/getHostEcsLevelInfos.go +++ b/sdk/go/alicloud/cddc/getHostEcsLevelInfos.go @@ -51,21 +51,11 @@ type GetHostEcsLevelInfosResult struct { } func GetHostEcsLevelInfosOutput(ctx *pulumi.Context, args GetHostEcsLevelInfosOutputArgs, opts ...pulumi.InvokeOption) GetHostEcsLevelInfosResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHostEcsLevelInfosResultOutput, error) { args := v.(GetHostEcsLevelInfosArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHostEcsLevelInfosResult - secret, err := ctx.InvokePackageRaw("alicloud:cddc/getHostEcsLevelInfos:getHostEcsLevelInfos", args, &rv, "", opts...) - if err != nil { - return GetHostEcsLevelInfosResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHostEcsLevelInfosResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHostEcsLevelInfosResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cddc/getHostEcsLevelInfos:getHostEcsLevelInfos", args, GetHostEcsLevelInfosResultOutput{}, options).(GetHostEcsLevelInfosResultOutput), nil }).(GetHostEcsLevelInfosResultOutput) } diff --git a/sdk/go/alicloud/cddc/getZones.go b/sdk/go/alicloud/cddc/getZones.go index b233f3733f..6dba01b311 100644 --- a/sdk/go/alicloud/cddc/getZones.go +++ b/sdk/go/alicloud/cddc/getZones.go @@ -67,21 +67,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:cddc/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cddc/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/cdn/getBlockedRegions.go b/sdk/go/alicloud/cdn/getBlockedRegions.go index cdd67bffca..70d6c1ed52 100644 --- a/sdk/go/alicloud/cdn/getBlockedRegions.go +++ b/sdk/go/alicloud/cdn/getBlockedRegions.go @@ -67,21 +67,11 @@ type GetBlockedRegionsResult struct { } func GetBlockedRegionsOutput(ctx *pulumi.Context, args GetBlockedRegionsOutputArgs, opts ...pulumi.InvokeOption) GetBlockedRegionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBlockedRegionsResultOutput, error) { args := v.(GetBlockedRegionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBlockedRegionsResult - secret, err := ctx.InvokePackageRaw("alicloud:cdn/getBlockedRegions:getBlockedRegions", args, &rv, "", opts...) - if err != nil { - return GetBlockedRegionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBlockedRegionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBlockedRegionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cdn/getBlockedRegions:getBlockedRegions", args, GetBlockedRegionsResultOutput{}, options).(GetBlockedRegionsResultOutput), nil }).(GetBlockedRegionsResultOutput) } diff --git a/sdk/go/alicloud/cdn/getIpInfo.go b/sdk/go/alicloud/cdn/getIpInfo.go index 928835e3a1..d112abda61 100644 --- a/sdk/go/alicloud/cdn/getIpInfo.go +++ b/sdk/go/alicloud/cdn/getIpInfo.go @@ -71,21 +71,11 @@ type GetIpInfoResult struct { } func GetIpInfoOutput(ctx *pulumi.Context, args GetIpInfoOutputArgs, opts ...pulumi.InvokeOption) GetIpInfoResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIpInfoResultOutput, error) { args := v.(GetIpInfoArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIpInfoResult - secret, err := ctx.InvokePackageRaw("alicloud:cdn/getIpInfo:getIpInfo", args, &rv, "", opts...) - if err != nil { - return GetIpInfoResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIpInfoResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIpInfoResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cdn/getIpInfo:getIpInfo", args, GetIpInfoResultOutput{}, options).(GetIpInfoResultOutput), nil }).(GetIpInfoResultOutput) } diff --git a/sdk/go/alicloud/cdn/getRealTimeLogDeliveries.go b/sdk/go/alicloud/cdn/getRealTimeLogDeliveries.go index ae66ea191d..36727e856a 100644 --- a/sdk/go/alicloud/cdn/getRealTimeLogDeliveries.go +++ b/sdk/go/alicloud/cdn/getRealTimeLogDeliveries.go @@ -73,21 +73,11 @@ type GetRealTimeLogDeliveriesResult struct { } func GetRealTimeLogDeliveriesOutput(ctx *pulumi.Context, args GetRealTimeLogDeliveriesOutputArgs, opts ...pulumi.InvokeOption) GetRealTimeLogDeliveriesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRealTimeLogDeliveriesResultOutput, error) { args := v.(GetRealTimeLogDeliveriesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRealTimeLogDeliveriesResult - secret, err := ctx.InvokePackageRaw("alicloud:cdn/getRealTimeLogDeliveries:getRealTimeLogDeliveries", args, &rv, "", opts...) - if err != nil { - return GetRealTimeLogDeliveriesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRealTimeLogDeliveriesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRealTimeLogDeliveriesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cdn/getRealTimeLogDeliveries:getRealTimeLogDeliveries", args, GetRealTimeLogDeliveriesResultOutput{}, options).(GetRealTimeLogDeliveriesResultOutput), nil }).(GetRealTimeLogDeliveriesResultOutput) } diff --git a/sdk/go/alicloud/cdn/getService.go b/sdk/go/alicloud/cdn/getService.go index f9862c2acc..2d92ca5922 100644 --- a/sdk/go/alicloud/cdn/getService.go +++ b/sdk/go/alicloud/cdn/getService.go @@ -82,21 +82,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:cdn/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cdn/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/cen/getBandwidthLimits.go b/sdk/go/alicloud/cen/getBandwidthLimits.go index e6d6b4ff03..23969186a8 100644 --- a/sdk/go/alicloud/cen/getBandwidthLimits.go +++ b/sdk/go/alicloud/cen/getBandwidthLimits.go @@ -70,21 +70,11 @@ type GetBandwidthLimitsResult struct { } func GetBandwidthLimitsOutput(ctx *pulumi.Context, args GetBandwidthLimitsOutputArgs, opts ...pulumi.InvokeOption) GetBandwidthLimitsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBandwidthLimitsResultOutput, error) { args := v.(GetBandwidthLimitsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBandwidthLimitsResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getBandwidthLimits:getBandwidthLimits", args, &rv, "", opts...) - if err != nil { - return GetBandwidthLimitsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBandwidthLimitsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBandwidthLimitsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getBandwidthLimits:getBandwidthLimits", args, GetBandwidthLimitsResultOutput{}, options).(GetBandwidthLimitsResultOutput), nil }).(GetBandwidthLimitsResultOutput) } diff --git a/sdk/go/alicloud/cen/getBandwidthPackages.go b/sdk/go/alicloud/cen/getBandwidthPackages.go index 35aace21b6..f0a0d8d94c 100644 --- a/sdk/go/alicloud/cen/getBandwidthPackages.go +++ b/sdk/go/alicloud/cen/getBandwidthPackages.go @@ -86,21 +86,11 @@ type GetBandwidthPackagesResult struct { } func GetBandwidthPackagesOutput(ctx *pulumi.Context, args GetBandwidthPackagesOutputArgs, opts ...pulumi.InvokeOption) GetBandwidthPackagesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBandwidthPackagesResultOutput, error) { args := v.(GetBandwidthPackagesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBandwidthPackagesResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getBandwidthPackages:getBandwidthPackages", args, &rv, "", opts...) - if err != nil { - return GetBandwidthPackagesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBandwidthPackagesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBandwidthPackagesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getBandwidthPackages:getBandwidthPackages", args, GetBandwidthPackagesResultOutput{}, options).(GetBandwidthPackagesResultOutput), nil }).(GetBandwidthPackagesResultOutput) } diff --git a/sdk/go/alicloud/cen/getChildInstanceRouteEntryToAttachments.go b/sdk/go/alicloud/cen/getChildInstanceRouteEntryToAttachments.go index 64463d248e..520155063c 100644 --- a/sdk/go/alicloud/cen/getChildInstanceRouteEntryToAttachments.go +++ b/sdk/go/alicloud/cen/getChildInstanceRouteEntryToAttachments.go @@ -88,21 +88,11 @@ type GetChildInstanceRouteEntryToAttachmentsResult struct { } func GetChildInstanceRouteEntryToAttachmentsOutput(ctx *pulumi.Context, args GetChildInstanceRouteEntryToAttachmentsOutputArgs, opts ...pulumi.InvokeOption) GetChildInstanceRouteEntryToAttachmentsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetChildInstanceRouteEntryToAttachmentsResultOutput, error) { args := v.(GetChildInstanceRouteEntryToAttachmentsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetChildInstanceRouteEntryToAttachmentsResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getChildInstanceRouteEntryToAttachments:getChildInstanceRouteEntryToAttachments", args, &rv, "", opts...) - if err != nil { - return GetChildInstanceRouteEntryToAttachmentsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetChildInstanceRouteEntryToAttachmentsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetChildInstanceRouteEntryToAttachmentsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getChildInstanceRouteEntryToAttachments:getChildInstanceRouteEntryToAttachments", args, GetChildInstanceRouteEntryToAttachmentsResultOutput{}, options).(GetChildInstanceRouteEntryToAttachmentsResultOutput), nil }).(GetChildInstanceRouteEntryToAttachmentsResultOutput) } diff --git a/sdk/go/alicloud/cen/getFlowlogs.go b/sdk/go/alicloud/cen/getFlowlogs.go index 30af563f64..cdb4271029 100644 --- a/sdk/go/alicloud/cen/getFlowlogs.go +++ b/sdk/go/alicloud/cen/getFlowlogs.go @@ -188,21 +188,11 @@ type GetFlowlogsResult struct { } func GetFlowlogsOutput(ctx *pulumi.Context, args GetFlowlogsOutputArgs, opts ...pulumi.InvokeOption) GetFlowlogsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFlowlogsResultOutput, error) { args := v.(GetFlowlogsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFlowlogsResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getFlowlogs:getFlowlogs", args, &rv, "", opts...) - if err != nil { - return GetFlowlogsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFlowlogsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFlowlogsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getFlowlogs:getFlowlogs", args, GetFlowlogsResultOutput{}, options).(GetFlowlogsResultOutput), nil }).(GetFlowlogsResultOutput) } diff --git a/sdk/go/alicloud/cen/getInstanceAttachments.go b/sdk/go/alicloud/cen/getInstanceAttachments.go index c523d2fff8..41f138d087 100644 --- a/sdk/go/alicloud/cen/getInstanceAttachments.go +++ b/sdk/go/alicloud/cen/getInstanceAttachments.go @@ -85,21 +85,11 @@ type GetInstanceAttachmentsResult struct { } func GetInstanceAttachmentsOutput(ctx *pulumi.Context, args GetInstanceAttachmentsOutputArgs, opts ...pulumi.InvokeOption) GetInstanceAttachmentsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceAttachmentsResultOutput, error) { args := v.(GetInstanceAttachmentsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceAttachmentsResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getInstanceAttachments:getInstanceAttachments", args, &rv, "", opts...) - if err != nil { - return GetInstanceAttachmentsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceAttachmentsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceAttachmentsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getInstanceAttachments:getInstanceAttachments", args, GetInstanceAttachmentsResultOutput{}, options).(GetInstanceAttachmentsResultOutput), nil }).(GetInstanceAttachmentsResultOutput) } diff --git a/sdk/go/alicloud/cen/getInstances.go b/sdk/go/alicloud/cen/getInstances.go index f6df28f6fe..63f8b369c6 100644 --- a/sdk/go/alicloud/cen/getInstances.go +++ b/sdk/go/alicloud/cen/getInstances.go @@ -85,21 +85,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/cen/getInterRegionTrafficQosPolicies.go b/sdk/go/alicloud/cen/getInterRegionTrafficQosPolicies.go index 48982cc3b0..f8cc5bbdf5 100644 --- a/sdk/go/alicloud/cen/getInterRegionTrafficQosPolicies.go +++ b/sdk/go/alicloud/cen/getInterRegionTrafficQosPolicies.go @@ -111,21 +111,11 @@ type GetInterRegionTrafficQosPoliciesResult struct { } func GetInterRegionTrafficQosPoliciesOutput(ctx *pulumi.Context, args GetInterRegionTrafficQosPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetInterRegionTrafficQosPoliciesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInterRegionTrafficQosPoliciesResultOutput, error) { args := v.(GetInterRegionTrafficQosPoliciesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInterRegionTrafficQosPoliciesResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getInterRegionTrafficQosPolicies:getInterRegionTrafficQosPolicies", args, &rv, "", opts...) - if err != nil { - return GetInterRegionTrafficQosPoliciesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInterRegionTrafficQosPoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInterRegionTrafficQosPoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getInterRegionTrafficQosPolicies:getInterRegionTrafficQosPolicies", args, GetInterRegionTrafficQosPoliciesResultOutput{}, options).(GetInterRegionTrafficQosPoliciesResultOutput), nil }).(GetInterRegionTrafficQosPoliciesResultOutput) } diff --git a/sdk/go/alicloud/cen/getInterRegionTrafficQosQueues.go b/sdk/go/alicloud/cen/getInterRegionTrafficQosQueues.go index 08028e92f0..61c05e1470 100644 --- a/sdk/go/alicloud/cen/getInterRegionTrafficQosQueues.go +++ b/sdk/go/alicloud/cen/getInterRegionTrafficQosQueues.go @@ -82,21 +82,11 @@ type GetInterRegionTrafficQosQueuesResult struct { } func GetInterRegionTrafficQosQueuesOutput(ctx *pulumi.Context, args GetInterRegionTrafficQosQueuesOutputArgs, opts ...pulumi.InvokeOption) GetInterRegionTrafficQosQueuesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInterRegionTrafficQosQueuesResultOutput, error) { args := v.(GetInterRegionTrafficQosQueuesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInterRegionTrafficQosQueuesResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getInterRegionTrafficQosQueues:getInterRegionTrafficQosQueues", args, &rv, "", opts...) - if err != nil { - return GetInterRegionTrafficQosQueuesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInterRegionTrafficQosQueuesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInterRegionTrafficQosQueuesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getInterRegionTrafficQosQueues:getInterRegionTrafficQosQueues", args, GetInterRegionTrafficQosQueuesResultOutput{}, options).(GetInterRegionTrafficQosQueuesResultOutput), nil }).(GetInterRegionTrafficQosQueuesResultOutput) } diff --git a/sdk/go/alicloud/cen/getPrivateZones.go b/sdk/go/alicloud/cen/getPrivateZones.go index 31cdf74b11..d82b772c13 100644 --- a/sdk/go/alicloud/cen/getPrivateZones.go +++ b/sdk/go/alicloud/cen/getPrivateZones.go @@ -90,21 +90,11 @@ type GetPrivateZonesResult struct { } func GetPrivateZonesOutput(ctx *pulumi.Context, args GetPrivateZonesOutputArgs, opts ...pulumi.InvokeOption) GetPrivateZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPrivateZonesResultOutput, error) { args := v.(GetPrivateZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPrivateZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getPrivateZones:getPrivateZones", args, &rv, "", opts...) - if err != nil { - return GetPrivateZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPrivateZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPrivateZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getPrivateZones:getPrivateZones", args, GetPrivateZonesResultOutput{}, options).(GetPrivateZonesResultOutput), nil }).(GetPrivateZonesResultOutput) } diff --git a/sdk/go/alicloud/cen/getRegionRouteEntries.go b/sdk/go/alicloud/cen/getRegionRouteEntries.go index 7a8776b369..abba6793cb 100644 --- a/sdk/go/alicloud/cen/getRegionRouteEntries.go +++ b/sdk/go/alicloud/cen/getRegionRouteEntries.go @@ -71,21 +71,11 @@ type GetRegionRouteEntriesResult struct { } func GetRegionRouteEntriesOutput(ctx *pulumi.Context, args GetRegionRouteEntriesOutputArgs, opts ...pulumi.InvokeOption) GetRegionRouteEntriesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegionRouteEntriesResultOutput, error) { args := v.(GetRegionRouteEntriesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegionRouteEntriesResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getRegionRouteEntries:getRegionRouteEntries", args, &rv, "", opts...) - if err != nil { - return GetRegionRouteEntriesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegionRouteEntriesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegionRouteEntriesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getRegionRouteEntries:getRegionRouteEntries", args, GetRegionRouteEntriesResultOutput{}, options).(GetRegionRouteEntriesResultOutput), nil }).(GetRegionRouteEntriesResultOutput) } diff --git a/sdk/go/alicloud/cen/getRouteEntries.go b/sdk/go/alicloud/cen/getRouteEntries.go index bdb6cfa513..0c860e0e56 100644 --- a/sdk/go/alicloud/cen/getRouteEntries.go +++ b/sdk/go/alicloud/cen/getRouteEntries.go @@ -78,21 +78,11 @@ type GetRouteEntriesResult struct { } func GetRouteEntriesOutput(ctx *pulumi.Context, args GetRouteEntriesOutputArgs, opts ...pulumi.InvokeOption) GetRouteEntriesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRouteEntriesResultOutput, error) { args := v.(GetRouteEntriesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRouteEntriesResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getRouteEntries:getRouteEntries", args, &rv, "", opts...) - if err != nil { - return GetRouteEntriesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRouteEntriesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRouteEntriesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getRouteEntries:getRouteEntries", args, GetRouteEntriesResultOutput{}, options).(GetRouteEntriesResultOutput), nil }).(GetRouteEntriesResultOutput) } diff --git a/sdk/go/alicloud/cen/getRouteMaps.go b/sdk/go/alicloud/cen/getRouteMaps.go index 2e1d92f5a8..12cd5e2f2a 100644 --- a/sdk/go/alicloud/cen/getRouteMaps.go +++ b/sdk/go/alicloud/cen/getRouteMaps.go @@ -97,21 +97,11 @@ type GetRouteMapsResult struct { } func GetRouteMapsOutput(ctx *pulumi.Context, args GetRouteMapsOutputArgs, opts ...pulumi.InvokeOption) GetRouteMapsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRouteMapsResultOutput, error) { args := v.(GetRouteMapsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRouteMapsResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getRouteMaps:getRouteMaps", args, &rv, "", opts...) - if err != nil { - return GetRouteMapsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRouteMapsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRouteMapsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getRouteMaps:getRouteMaps", args, GetRouteMapsResultOutput{}, options).(GetRouteMapsResultOutput), nil }).(GetRouteMapsResultOutput) } diff --git a/sdk/go/alicloud/cen/getRouteServices.go b/sdk/go/alicloud/cen/getRouteServices.go index 3afbac0656..6c21add5a1 100644 --- a/sdk/go/alicloud/cen/getRouteServices.go +++ b/sdk/go/alicloud/cen/getRouteServices.go @@ -95,21 +95,11 @@ type GetRouteServicesResult struct { } func GetRouteServicesOutput(ctx *pulumi.Context, args GetRouteServicesOutputArgs, opts ...pulumi.InvokeOption) GetRouteServicesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRouteServicesResultOutput, error) { args := v.(GetRouteServicesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRouteServicesResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getRouteServices:getRouteServices", args, &rv, "", opts...) - if err != nil { - return GetRouteServicesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRouteServicesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRouteServicesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getRouteServices:getRouteServices", args, GetRouteServicesResultOutput{}, options).(GetRouteServicesResultOutput), nil }).(GetRouteServicesResultOutput) } diff --git a/sdk/go/alicloud/cen/getTrafficMarkingPolicies.go b/sdk/go/alicloud/cen/getTrafficMarkingPolicies.go index 06022be99b..4c3609a8d6 100644 --- a/sdk/go/alicloud/cen/getTrafficMarkingPolicies.go +++ b/sdk/go/alicloud/cen/getTrafficMarkingPolicies.go @@ -95,21 +95,11 @@ type GetTrafficMarkingPoliciesResult struct { } func GetTrafficMarkingPoliciesOutput(ctx *pulumi.Context, args GetTrafficMarkingPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetTrafficMarkingPoliciesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTrafficMarkingPoliciesResultOutput, error) { args := v.(GetTrafficMarkingPoliciesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTrafficMarkingPoliciesResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getTrafficMarkingPolicies:getTrafficMarkingPolicies", args, &rv, "", opts...) - if err != nil { - return GetTrafficMarkingPoliciesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTrafficMarkingPoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTrafficMarkingPoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getTrafficMarkingPolicies:getTrafficMarkingPolicies", args, GetTrafficMarkingPoliciesResultOutput{}, options).(GetTrafficMarkingPoliciesResultOutput), nil }).(GetTrafficMarkingPoliciesResultOutput) } diff --git a/sdk/go/alicloud/cen/getTransitRouteTableAggregations.go b/sdk/go/alicloud/cen/getTransitRouteTableAggregations.go index 6bee4cf5cc..2108e9bafa 100644 --- a/sdk/go/alicloud/cen/getTransitRouteTableAggregations.go +++ b/sdk/go/alicloud/cen/getTransitRouteTableAggregations.go @@ -100,21 +100,11 @@ type GetTransitRouteTableAggregationsResult struct { } func GetTransitRouteTableAggregationsOutput(ctx *pulumi.Context, args GetTransitRouteTableAggregationsOutputArgs, opts ...pulumi.InvokeOption) GetTransitRouteTableAggregationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransitRouteTableAggregationsResultOutput, error) { args := v.(GetTransitRouteTableAggregationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransitRouteTableAggregationsResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getTransitRouteTableAggregations:getTransitRouteTableAggregations", args, &rv, "", opts...) - if err != nil { - return GetTransitRouteTableAggregationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransitRouteTableAggregationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransitRouteTableAggregationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getTransitRouteTableAggregations:getTransitRouteTableAggregations", args, GetTransitRouteTableAggregationsResultOutput{}, options).(GetTransitRouteTableAggregationsResultOutput), nil }).(GetTransitRouteTableAggregationsResultOutput) } diff --git a/sdk/go/alicloud/cen/getTransitRouterAvailableResources.go b/sdk/go/alicloud/cen/getTransitRouterAvailableResources.go index 1688ca6223..934513e445 100644 --- a/sdk/go/alicloud/cen/getTransitRouterAvailableResources.go +++ b/sdk/go/alicloud/cen/getTransitRouterAvailableResources.go @@ -72,21 +72,11 @@ type GetTransitRouterAvailableResourcesResult struct { } func GetTransitRouterAvailableResourcesOutput(ctx *pulumi.Context, args GetTransitRouterAvailableResourcesOutputArgs, opts ...pulumi.InvokeOption) GetTransitRouterAvailableResourcesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransitRouterAvailableResourcesResultOutput, error) { args := v.(GetTransitRouterAvailableResourcesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransitRouterAvailableResourcesResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getTransitRouterAvailableResources:getTransitRouterAvailableResources", args, &rv, "", opts...) - if err != nil { - return GetTransitRouterAvailableResourcesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransitRouterAvailableResourcesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransitRouterAvailableResourcesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getTransitRouterAvailableResources:getTransitRouterAvailableResources", args, GetTransitRouterAvailableResourcesResultOutput{}, options).(GetTransitRouterAvailableResourcesResultOutput), nil }).(GetTransitRouterAvailableResourcesResultOutput) } diff --git a/sdk/go/alicloud/cen/getTransitRouterCidrs.go b/sdk/go/alicloud/cen/getTransitRouterCidrs.go index 129d08d90a..dc1c0a62ed 100644 --- a/sdk/go/alicloud/cen/getTransitRouterCidrs.go +++ b/sdk/go/alicloud/cen/getTransitRouterCidrs.go @@ -92,21 +92,11 @@ type GetTransitRouterCidrsResult struct { } func GetTransitRouterCidrsOutput(ctx *pulumi.Context, args GetTransitRouterCidrsOutputArgs, opts ...pulumi.InvokeOption) GetTransitRouterCidrsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransitRouterCidrsResultOutput, error) { args := v.(GetTransitRouterCidrsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransitRouterCidrsResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getTransitRouterCidrs:getTransitRouterCidrs", args, &rv, "", opts...) - if err != nil { - return GetTransitRouterCidrsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransitRouterCidrsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransitRouterCidrsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getTransitRouterCidrs:getTransitRouterCidrs", args, GetTransitRouterCidrsResultOutput{}, options).(GetTransitRouterCidrsResultOutput), nil }).(GetTransitRouterCidrsResultOutput) } diff --git a/sdk/go/alicloud/cen/getTransitRouterMulticastDomainAssociations.go b/sdk/go/alicloud/cen/getTransitRouterMulticastDomainAssociations.go index 6a77b4bfed..35d142399e 100644 --- a/sdk/go/alicloud/cen/getTransitRouterMulticastDomainAssociations.go +++ b/sdk/go/alicloud/cen/getTransitRouterMulticastDomainAssociations.go @@ -99,21 +99,11 @@ type GetTransitRouterMulticastDomainAssociationsResult struct { } func GetTransitRouterMulticastDomainAssociationsOutput(ctx *pulumi.Context, args GetTransitRouterMulticastDomainAssociationsOutputArgs, opts ...pulumi.InvokeOption) GetTransitRouterMulticastDomainAssociationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransitRouterMulticastDomainAssociationsResultOutput, error) { args := v.(GetTransitRouterMulticastDomainAssociationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransitRouterMulticastDomainAssociationsResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getTransitRouterMulticastDomainAssociations:getTransitRouterMulticastDomainAssociations", args, &rv, "", opts...) - if err != nil { - return GetTransitRouterMulticastDomainAssociationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransitRouterMulticastDomainAssociationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransitRouterMulticastDomainAssociationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getTransitRouterMulticastDomainAssociations:getTransitRouterMulticastDomainAssociations", args, GetTransitRouterMulticastDomainAssociationsResultOutput{}, options).(GetTransitRouterMulticastDomainAssociationsResultOutput), nil }).(GetTransitRouterMulticastDomainAssociationsResultOutput) } diff --git a/sdk/go/alicloud/cen/getTransitRouterMulticastDomainMembers.go b/sdk/go/alicloud/cen/getTransitRouterMulticastDomainMembers.go index 0443043210..300f105fc9 100644 --- a/sdk/go/alicloud/cen/getTransitRouterMulticastDomainMembers.go +++ b/sdk/go/alicloud/cen/getTransitRouterMulticastDomainMembers.go @@ -80,21 +80,11 @@ type GetTransitRouterMulticastDomainMembersResult struct { } func GetTransitRouterMulticastDomainMembersOutput(ctx *pulumi.Context, args GetTransitRouterMulticastDomainMembersOutputArgs, opts ...pulumi.InvokeOption) GetTransitRouterMulticastDomainMembersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransitRouterMulticastDomainMembersResultOutput, error) { args := v.(GetTransitRouterMulticastDomainMembersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransitRouterMulticastDomainMembersResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getTransitRouterMulticastDomainMembers:getTransitRouterMulticastDomainMembers", args, &rv, "", opts...) - if err != nil { - return GetTransitRouterMulticastDomainMembersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransitRouterMulticastDomainMembersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransitRouterMulticastDomainMembersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getTransitRouterMulticastDomainMembers:getTransitRouterMulticastDomainMembers", args, GetTransitRouterMulticastDomainMembersResultOutput{}, options).(GetTransitRouterMulticastDomainMembersResultOutput), nil }).(GetTransitRouterMulticastDomainMembersResultOutput) } diff --git a/sdk/go/alicloud/cen/getTransitRouterMulticastDomainPeerMembers.go b/sdk/go/alicloud/cen/getTransitRouterMulticastDomainPeerMembers.go index e304527359..4cb05168bc 100644 --- a/sdk/go/alicloud/cen/getTransitRouterMulticastDomainPeerMembers.go +++ b/sdk/go/alicloud/cen/getTransitRouterMulticastDomainPeerMembers.go @@ -90,21 +90,11 @@ type GetTransitRouterMulticastDomainPeerMembersResult struct { } func GetTransitRouterMulticastDomainPeerMembersOutput(ctx *pulumi.Context, args GetTransitRouterMulticastDomainPeerMembersOutputArgs, opts ...pulumi.InvokeOption) GetTransitRouterMulticastDomainPeerMembersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransitRouterMulticastDomainPeerMembersResultOutput, error) { args := v.(GetTransitRouterMulticastDomainPeerMembersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransitRouterMulticastDomainPeerMembersResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getTransitRouterMulticastDomainPeerMembers:getTransitRouterMulticastDomainPeerMembers", args, &rv, "", opts...) - if err != nil { - return GetTransitRouterMulticastDomainPeerMembersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransitRouterMulticastDomainPeerMembersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransitRouterMulticastDomainPeerMembersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getTransitRouterMulticastDomainPeerMembers:getTransitRouterMulticastDomainPeerMembers", args, GetTransitRouterMulticastDomainPeerMembersResultOutput{}, options).(GetTransitRouterMulticastDomainPeerMembersResultOutput), nil }).(GetTransitRouterMulticastDomainPeerMembersResultOutput) } diff --git a/sdk/go/alicloud/cen/getTransitRouterMulticastDomainSources.go b/sdk/go/alicloud/cen/getTransitRouterMulticastDomainSources.go index b64099ff62..eee4371df0 100644 --- a/sdk/go/alicloud/cen/getTransitRouterMulticastDomainSources.go +++ b/sdk/go/alicloud/cen/getTransitRouterMulticastDomainSources.go @@ -74,21 +74,11 @@ type GetTransitRouterMulticastDomainSourcesResult struct { } func GetTransitRouterMulticastDomainSourcesOutput(ctx *pulumi.Context, args GetTransitRouterMulticastDomainSourcesOutputArgs, opts ...pulumi.InvokeOption) GetTransitRouterMulticastDomainSourcesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransitRouterMulticastDomainSourcesResultOutput, error) { args := v.(GetTransitRouterMulticastDomainSourcesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransitRouterMulticastDomainSourcesResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getTransitRouterMulticastDomainSources:getTransitRouterMulticastDomainSources", args, &rv, "", opts...) - if err != nil { - return GetTransitRouterMulticastDomainSourcesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransitRouterMulticastDomainSourcesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransitRouterMulticastDomainSourcesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getTransitRouterMulticastDomainSources:getTransitRouterMulticastDomainSources", args, GetTransitRouterMulticastDomainSourcesResultOutput{}, options).(GetTransitRouterMulticastDomainSourcesResultOutput), nil }).(GetTransitRouterMulticastDomainSourcesResultOutput) } diff --git a/sdk/go/alicloud/cen/getTransitRouterMulticastDomains.go b/sdk/go/alicloud/cen/getTransitRouterMulticastDomains.go index 1e65f27612..274c27eefd 100644 --- a/sdk/go/alicloud/cen/getTransitRouterMulticastDomains.go +++ b/sdk/go/alicloud/cen/getTransitRouterMulticastDomains.go @@ -100,21 +100,11 @@ type GetTransitRouterMulticastDomainsResult struct { } func GetTransitRouterMulticastDomainsOutput(ctx *pulumi.Context, args GetTransitRouterMulticastDomainsOutputArgs, opts ...pulumi.InvokeOption) GetTransitRouterMulticastDomainsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransitRouterMulticastDomainsResultOutput, error) { args := v.(GetTransitRouterMulticastDomainsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransitRouterMulticastDomainsResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getTransitRouterMulticastDomains:getTransitRouterMulticastDomains", args, &rv, "", opts...) - if err != nil { - return GetTransitRouterMulticastDomainsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransitRouterMulticastDomainsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransitRouterMulticastDomainsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getTransitRouterMulticastDomains:getTransitRouterMulticastDomains", args, GetTransitRouterMulticastDomainsResultOutput{}, options).(GetTransitRouterMulticastDomainsResultOutput), nil }).(GetTransitRouterMulticastDomainsResultOutput) } diff --git a/sdk/go/alicloud/cen/getTransitRouterPeerAttachments.go b/sdk/go/alicloud/cen/getTransitRouterPeerAttachments.go index 728a16c2ad..fb00b051ef 100644 --- a/sdk/go/alicloud/cen/getTransitRouterPeerAttachments.go +++ b/sdk/go/alicloud/cen/getTransitRouterPeerAttachments.go @@ -63,21 +63,11 @@ type GetTransitRouterPeerAttachmentsResult struct { } func GetTransitRouterPeerAttachmentsOutput(ctx *pulumi.Context, args GetTransitRouterPeerAttachmentsOutputArgs, opts ...pulumi.InvokeOption) GetTransitRouterPeerAttachmentsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransitRouterPeerAttachmentsResultOutput, error) { args := v.(GetTransitRouterPeerAttachmentsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransitRouterPeerAttachmentsResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getTransitRouterPeerAttachments:getTransitRouterPeerAttachments", args, &rv, "", opts...) - if err != nil { - return GetTransitRouterPeerAttachmentsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransitRouterPeerAttachmentsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransitRouterPeerAttachmentsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getTransitRouterPeerAttachments:getTransitRouterPeerAttachments", args, GetTransitRouterPeerAttachmentsResultOutput{}, options).(GetTransitRouterPeerAttachmentsResultOutput), nil }).(GetTransitRouterPeerAttachmentsResultOutput) } diff --git a/sdk/go/alicloud/cen/getTransitRouterPrefixListAssociations.go b/sdk/go/alicloud/cen/getTransitRouterPrefixListAssociations.go index f3e9b3e603..69567cb64a 100644 --- a/sdk/go/alicloud/cen/getTransitRouterPrefixListAssociations.go +++ b/sdk/go/alicloud/cen/getTransitRouterPrefixListAssociations.go @@ -91,21 +91,11 @@ type GetTransitRouterPrefixListAssociationsResult struct { } func GetTransitRouterPrefixListAssociationsOutput(ctx *pulumi.Context, args GetTransitRouterPrefixListAssociationsOutputArgs, opts ...pulumi.InvokeOption) GetTransitRouterPrefixListAssociationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransitRouterPrefixListAssociationsResultOutput, error) { args := v.(GetTransitRouterPrefixListAssociationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransitRouterPrefixListAssociationsResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getTransitRouterPrefixListAssociations:getTransitRouterPrefixListAssociations", args, &rv, "", opts...) - if err != nil { - return GetTransitRouterPrefixListAssociationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransitRouterPrefixListAssociationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransitRouterPrefixListAssociationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getTransitRouterPrefixListAssociations:getTransitRouterPrefixListAssociations", args, GetTransitRouterPrefixListAssociationsResultOutput{}, options).(GetTransitRouterPrefixListAssociationsResultOutput), nil }).(GetTransitRouterPrefixListAssociationsResultOutput) } diff --git a/sdk/go/alicloud/cen/getTransitRouterRouteEntries.go b/sdk/go/alicloud/cen/getTransitRouterRouteEntries.go index 690a80c2a2..81bdcdb294 100644 --- a/sdk/go/alicloud/cen/getTransitRouterRouteEntries.go +++ b/sdk/go/alicloud/cen/getTransitRouterRouteEntries.go @@ -63,21 +63,11 @@ type GetTransitRouterRouteEntriesResult struct { } func GetTransitRouterRouteEntriesOutput(ctx *pulumi.Context, args GetTransitRouterRouteEntriesOutputArgs, opts ...pulumi.InvokeOption) GetTransitRouterRouteEntriesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransitRouterRouteEntriesResultOutput, error) { args := v.(GetTransitRouterRouteEntriesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransitRouterRouteEntriesResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getTransitRouterRouteEntries:getTransitRouterRouteEntries", args, &rv, "", opts...) - if err != nil { - return GetTransitRouterRouteEntriesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransitRouterRouteEntriesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransitRouterRouteEntriesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getTransitRouterRouteEntries:getTransitRouterRouteEntries", args, GetTransitRouterRouteEntriesResultOutput{}, options).(GetTransitRouterRouteEntriesResultOutput), nil }).(GetTransitRouterRouteEntriesResultOutput) } diff --git a/sdk/go/alicloud/cen/getTransitRouterRouteTableAssociations.go b/sdk/go/alicloud/cen/getTransitRouterRouteTableAssociations.go index 3dbf346914..d0d15a221d 100644 --- a/sdk/go/alicloud/cen/getTransitRouterRouteTableAssociations.go +++ b/sdk/go/alicloud/cen/getTransitRouterRouteTableAssociations.go @@ -93,21 +93,11 @@ type GetTransitRouterRouteTableAssociationsResult struct { } func GetTransitRouterRouteTableAssociationsOutput(ctx *pulumi.Context, args GetTransitRouterRouteTableAssociationsOutputArgs, opts ...pulumi.InvokeOption) GetTransitRouterRouteTableAssociationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransitRouterRouteTableAssociationsResultOutput, error) { args := v.(GetTransitRouterRouteTableAssociationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransitRouterRouteTableAssociationsResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getTransitRouterRouteTableAssociations:getTransitRouterRouteTableAssociations", args, &rv, "", opts...) - if err != nil { - return GetTransitRouterRouteTableAssociationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransitRouterRouteTableAssociationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransitRouterRouteTableAssociationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getTransitRouterRouteTableAssociations:getTransitRouterRouteTableAssociations", args, GetTransitRouterRouteTableAssociationsResultOutput{}, options).(GetTransitRouterRouteTableAssociationsResultOutput), nil }).(GetTransitRouterRouteTableAssociationsResultOutput) } diff --git a/sdk/go/alicloud/cen/getTransitRouterRouteTablePropagations.go b/sdk/go/alicloud/cen/getTransitRouterRouteTablePropagations.go index 005a1022c8..ac1a7c8ee0 100644 --- a/sdk/go/alicloud/cen/getTransitRouterRouteTablePropagations.go +++ b/sdk/go/alicloud/cen/getTransitRouterRouteTablePropagations.go @@ -79,21 +79,11 @@ type GetTransitRouterRouteTablePropagationsResult struct { } func GetTransitRouterRouteTablePropagationsOutput(ctx *pulumi.Context, args GetTransitRouterRouteTablePropagationsOutputArgs, opts ...pulumi.InvokeOption) GetTransitRouterRouteTablePropagationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransitRouterRouteTablePropagationsResultOutput, error) { args := v.(GetTransitRouterRouteTablePropagationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransitRouterRouteTablePropagationsResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getTransitRouterRouteTablePropagations:getTransitRouterRouteTablePropagations", args, &rv, "", opts...) - if err != nil { - return GetTransitRouterRouteTablePropagationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransitRouterRouteTablePropagationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransitRouterRouteTablePropagationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getTransitRouterRouteTablePropagations:getTransitRouterRouteTablePropagations", args, GetTransitRouterRouteTablePropagationsResultOutput{}, options).(GetTransitRouterRouteTablePropagationsResultOutput), nil }).(GetTransitRouterRouteTablePropagationsResultOutput) } diff --git a/sdk/go/alicloud/cen/getTransitRouterRouteTables.go b/sdk/go/alicloud/cen/getTransitRouterRouteTables.go index fe514635ac..c177c821f1 100644 --- a/sdk/go/alicloud/cen/getTransitRouterRouteTables.go +++ b/sdk/go/alicloud/cen/getTransitRouterRouteTables.go @@ -120,21 +120,11 @@ type GetTransitRouterRouteTablesResult struct { } func GetTransitRouterRouteTablesOutput(ctx *pulumi.Context, args GetTransitRouterRouteTablesOutputArgs, opts ...pulumi.InvokeOption) GetTransitRouterRouteTablesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransitRouterRouteTablesResultOutput, error) { args := v.(GetTransitRouterRouteTablesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransitRouterRouteTablesResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getTransitRouterRouteTables:getTransitRouterRouteTables", args, &rv, "", opts...) - if err != nil { - return GetTransitRouterRouteTablesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransitRouterRouteTablesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransitRouterRouteTablesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getTransitRouterRouteTables:getTransitRouterRouteTables", args, GetTransitRouterRouteTablesResultOutput{}, options).(GetTransitRouterRouteTablesResultOutput), nil }).(GetTransitRouterRouteTablesResultOutput) } diff --git a/sdk/go/alicloud/cen/getTransitRouterService.go b/sdk/go/alicloud/cen/getTransitRouterService.go index b0dbd08c0a..2f165a46ba 100644 --- a/sdk/go/alicloud/cen/getTransitRouterService.go +++ b/sdk/go/alicloud/cen/getTransitRouterService.go @@ -70,21 +70,11 @@ type GetTransitRouterServiceResult struct { } func GetTransitRouterServiceOutput(ctx *pulumi.Context, args GetTransitRouterServiceOutputArgs, opts ...pulumi.InvokeOption) GetTransitRouterServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransitRouterServiceResultOutput, error) { args := v.(GetTransitRouterServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransitRouterServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getTransitRouterService:getTransitRouterService", args, &rv, "", opts...) - if err != nil { - return GetTransitRouterServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransitRouterServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransitRouterServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getTransitRouterService:getTransitRouterService", args, GetTransitRouterServiceResultOutput{}, options).(GetTransitRouterServiceResultOutput), nil }).(GetTransitRouterServiceResultOutput) } diff --git a/sdk/go/alicloud/cen/getTransitRouterVbrAttachments.go b/sdk/go/alicloud/cen/getTransitRouterVbrAttachments.go index 684b931f9c..f4facd3b1b 100644 --- a/sdk/go/alicloud/cen/getTransitRouterVbrAttachments.go +++ b/sdk/go/alicloud/cen/getTransitRouterVbrAttachments.go @@ -54,21 +54,11 @@ type GetTransitRouterVbrAttachmentsResult struct { } func GetTransitRouterVbrAttachmentsOutput(ctx *pulumi.Context, args GetTransitRouterVbrAttachmentsOutputArgs, opts ...pulumi.InvokeOption) GetTransitRouterVbrAttachmentsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransitRouterVbrAttachmentsResultOutput, error) { args := v.(GetTransitRouterVbrAttachmentsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransitRouterVbrAttachmentsResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getTransitRouterVbrAttachments:getTransitRouterVbrAttachments", args, &rv, "", opts...) - if err != nil { - return GetTransitRouterVbrAttachmentsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransitRouterVbrAttachmentsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransitRouterVbrAttachmentsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getTransitRouterVbrAttachments:getTransitRouterVbrAttachments", args, GetTransitRouterVbrAttachmentsResultOutput{}, options).(GetTransitRouterVbrAttachmentsResultOutput), nil }).(GetTransitRouterVbrAttachmentsResultOutput) } diff --git a/sdk/go/alicloud/cen/getTransitRouterVpcAttachments.go b/sdk/go/alicloud/cen/getTransitRouterVpcAttachments.go index 64d9a34b50..dd59e81057 100644 --- a/sdk/go/alicloud/cen/getTransitRouterVpcAttachments.go +++ b/sdk/go/alicloud/cen/getTransitRouterVpcAttachments.go @@ -164,21 +164,11 @@ type GetTransitRouterVpcAttachmentsResult struct { } func GetTransitRouterVpcAttachmentsOutput(ctx *pulumi.Context, args GetTransitRouterVpcAttachmentsOutputArgs, opts ...pulumi.InvokeOption) GetTransitRouterVpcAttachmentsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransitRouterVpcAttachmentsResultOutput, error) { args := v.(GetTransitRouterVpcAttachmentsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransitRouterVpcAttachmentsResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getTransitRouterVpcAttachments:getTransitRouterVpcAttachments", args, &rv, "", opts...) - if err != nil { - return GetTransitRouterVpcAttachmentsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransitRouterVpcAttachmentsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransitRouterVpcAttachmentsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getTransitRouterVpcAttachments:getTransitRouterVpcAttachments", args, GetTransitRouterVpcAttachmentsResultOutput{}, options).(GetTransitRouterVpcAttachmentsResultOutput), nil }).(GetTransitRouterVpcAttachmentsResultOutput) } diff --git a/sdk/go/alicloud/cen/getTransitRouterVpnAttachments.go b/sdk/go/alicloud/cen/getTransitRouterVpnAttachments.go index 424da35eb4..9414430c64 100644 --- a/sdk/go/alicloud/cen/getTransitRouterVpnAttachments.go +++ b/sdk/go/alicloud/cen/getTransitRouterVpnAttachments.go @@ -83,21 +83,11 @@ type GetTransitRouterVpnAttachmentsResult struct { } func GetTransitRouterVpnAttachmentsOutput(ctx *pulumi.Context, args GetTransitRouterVpnAttachmentsOutputArgs, opts ...pulumi.InvokeOption) GetTransitRouterVpnAttachmentsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransitRouterVpnAttachmentsResultOutput, error) { args := v.(GetTransitRouterVpnAttachmentsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransitRouterVpnAttachmentsResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getTransitRouterVpnAttachments:getTransitRouterVpnAttachments", args, &rv, "", opts...) - if err != nil { - return GetTransitRouterVpnAttachmentsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransitRouterVpnAttachmentsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransitRouterVpnAttachmentsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getTransitRouterVpnAttachments:getTransitRouterVpnAttachments", args, GetTransitRouterVpnAttachmentsResultOutput{}, options).(GetTransitRouterVpnAttachmentsResultOutput), nil }).(GetTransitRouterVpnAttachmentsResultOutput) } diff --git a/sdk/go/alicloud/cen/getTransitRouters.go b/sdk/go/alicloud/cen/getTransitRouters.go index 72238d9437..4d1d8e5d96 100644 --- a/sdk/go/alicloud/cen/getTransitRouters.go +++ b/sdk/go/alicloud/cen/getTransitRouters.go @@ -90,21 +90,11 @@ type GetTransitRoutersResult struct { } func GetTransitRoutersOutput(ctx *pulumi.Context, args GetTransitRoutersOutputArgs, opts ...pulumi.InvokeOption) GetTransitRoutersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransitRoutersResultOutput, error) { args := v.(GetTransitRoutersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransitRoutersResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getTransitRouters:getTransitRouters", args, &rv, "", opts...) - if err != nil { - return GetTransitRoutersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransitRoutersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransitRoutersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getTransitRouters:getTransitRouters", args, GetTransitRoutersResultOutput{}, options).(GetTransitRoutersResultOutput), nil }).(GetTransitRoutersResultOutput) } diff --git a/sdk/go/alicloud/cen/getVbrHealthChecks.go b/sdk/go/alicloud/cen/getVbrHealthChecks.go index 8e3a5354c9..c525489e75 100644 --- a/sdk/go/alicloud/cen/getVbrHealthChecks.go +++ b/sdk/go/alicloud/cen/getVbrHealthChecks.go @@ -57,21 +57,11 @@ type GetVbrHealthChecksResult struct { } func GetVbrHealthChecksOutput(ctx *pulumi.Context, args GetVbrHealthChecksOutputArgs, opts ...pulumi.InvokeOption) GetVbrHealthChecksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVbrHealthChecksResultOutput, error) { args := v.(GetVbrHealthChecksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVbrHealthChecksResult - secret, err := ctx.InvokePackageRaw("alicloud:cen/getVbrHealthChecks:getVbrHealthChecks", args, &rv, "", opts...) - if err != nil { - return GetVbrHealthChecksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVbrHealthChecksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVbrHealthChecksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cen/getVbrHealthChecks:getVbrHealthChecks", args, GetVbrHealthChecksResultOutput{}, options).(GetVbrHealthChecksResultOutput), nil }).(GetVbrHealthChecksResultOutput) } diff --git a/sdk/go/alicloud/cfg/getAggregateCompliancePacks.go b/sdk/go/alicloud/cfg/getAggregateCompliancePacks.go index 8f96208d0c..0daf025ca3 100644 --- a/sdk/go/alicloud/cfg/getAggregateCompliancePacks.go +++ b/sdk/go/alicloud/cfg/getAggregateCompliancePacks.go @@ -91,21 +91,11 @@ type GetAggregateCompliancePacksResult struct { } func GetAggregateCompliancePacksOutput(ctx *pulumi.Context, args GetAggregateCompliancePacksOutputArgs, opts ...pulumi.InvokeOption) GetAggregateCompliancePacksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAggregateCompliancePacksResultOutput, error) { args := v.(GetAggregateCompliancePacksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAggregateCompliancePacksResult - secret, err := ctx.InvokePackageRaw("alicloud:cfg/getAggregateCompliancePacks:getAggregateCompliancePacks", args, &rv, "", opts...) - if err != nil { - return GetAggregateCompliancePacksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAggregateCompliancePacksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAggregateCompliancePacksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cfg/getAggregateCompliancePacks:getAggregateCompliancePacks", args, GetAggregateCompliancePacksResultOutput{}, options).(GetAggregateCompliancePacksResultOutput), nil }).(GetAggregateCompliancePacksResultOutput) } diff --git a/sdk/go/alicloud/cfg/getAggregateConfigRules.go b/sdk/go/alicloud/cfg/getAggregateConfigRules.go index 4f3071c416..21df5866f5 100644 --- a/sdk/go/alicloud/cfg/getAggregateConfigRules.go +++ b/sdk/go/alicloud/cfg/getAggregateConfigRules.go @@ -100,21 +100,11 @@ type GetAggregateConfigRulesResult struct { } func GetAggregateConfigRulesOutput(ctx *pulumi.Context, args GetAggregateConfigRulesOutputArgs, opts ...pulumi.InvokeOption) GetAggregateConfigRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAggregateConfigRulesResultOutput, error) { args := v.(GetAggregateConfigRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAggregateConfigRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:cfg/getAggregateConfigRules:getAggregateConfigRules", args, &rv, "", opts...) - if err != nil { - return GetAggregateConfigRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAggregateConfigRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAggregateConfigRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cfg/getAggregateConfigRules:getAggregateConfigRules", args, GetAggregateConfigRulesResultOutput{}, options).(GetAggregateConfigRulesResultOutput), nil }).(GetAggregateConfigRulesResultOutput) } diff --git a/sdk/go/alicloud/cfg/getAggregateDeliveries.go b/sdk/go/alicloud/cfg/getAggregateDeliveries.go index f708ca692c..3ebc5f9aef 100644 --- a/sdk/go/alicloud/cfg/getAggregateDeliveries.go +++ b/sdk/go/alicloud/cfg/getAggregateDeliveries.go @@ -84,21 +84,11 @@ type GetAggregateDeliveriesResult struct { } func GetAggregateDeliveriesOutput(ctx *pulumi.Context, args GetAggregateDeliveriesOutputArgs, opts ...pulumi.InvokeOption) GetAggregateDeliveriesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAggregateDeliveriesResultOutput, error) { args := v.(GetAggregateDeliveriesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAggregateDeliveriesResult - secret, err := ctx.InvokePackageRaw("alicloud:cfg/getAggregateDeliveries:getAggregateDeliveries", args, &rv, "", opts...) - if err != nil { - return GetAggregateDeliveriesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAggregateDeliveriesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAggregateDeliveriesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cfg/getAggregateDeliveries:getAggregateDeliveries", args, GetAggregateDeliveriesResultOutput{}, options).(GetAggregateDeliveriesResultOutput), nil }).(GetAggregateDeliveriesResultOutput) } diff --git a/sdk/go/alicloud/cfg/getAggregators.go b/sdk/go/alicloud/cfg/getAggregators.go index cb51a6f735..f20c227452 100644 --- a/sdk/go/alicloud/cfg/getAggregators.go +++ b/sdk/go/alicloud/cfg/getAggregators.go @@ -87,21 +87,11 @@ type GetAggregatorsResult struct { } func GetAggregatorsOutput(ctx *pulumi.Context, args GetAggregatorsOutputArgs, opts ...pulumi.InvokeOption) GetAggregatorsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAggregatorsResultOutput, error) { args := v.(GetAggregatorsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAggregatorsResult - secret, err := ctx.InvokePackageRaw("alicloud:cfg/getAggregators:getAggregators", args, &rv, "", opts...) - if err != nil { - return GetAggregatorsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAggregatorsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAggregatorsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cfg/getAggregators:getAggregators", args, GetAggregatorsResultOutput{}, options).(GetAggregatorsResultOutput), nil }).(GetAggregatorsResultOutput) } diff --git a/sdk/go/alicloud/cfg/getCompliancePacks.go b/sdk/go/alicloud/cfg/getCompliancePacks.go index 94930a4d6f..7d10bd6b0a 100644 --- a/sdk/go/alicloud/cfg/getCompliancePacks.go +++ b/sdk/go/alicloud/cfg/getCompliancePacks.go @@ -87,21 +87,11 @@ type GetCompliancePacksResult struct { } func GetCompliancePacksOutput(ctx *pulumi.Context, args GetCompliancePacksOutputArgs, opts ...pulumi.InvokeOption) GetCompliancePacksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCompliancePacksResultOutput, error) { args := v.(GetCompliancePacksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCompliancePacksResult - secret, err := ctx.InvokePackageRaw("alicloud:cfg/getCompliancePacks:getCompliancePacks", args, &rv, "", opts...) - if err != nil { - return GetCompliancePacksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCompliancePacksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCompliancePacksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cfg/getCompliancePacks:getCompliancePacks", args, GetCompliancePacksResultOutput{}, options).(GetCompliancePacksResultOutput), nil }).(GetCompliancePacksResultOutput) } diff --git a/sdk/go/alicloud/cfg/getConfigurationRecorders.go b/sdk/go/alicloud/cfg/getConfigurationRecorders.go index 12dfae65ae..905040d588 100644 --- a/sdk/go/alicloud/cfg/getConfigurationRecorders.go +++ b/sdk/go/alicloud/cfg/getConfigurationRecorders.go @@ -67,21 +67,11 @@ type GetConfigurationRecordersResult struct { } func GetConfigurationRecordersOutput(ctx *pulumi.Context, args GetConfigurationRecordersOutputArgs, opts ...pulumi.InvokeOption) GetConfigurationRecordersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetConfigurationRecordersResultOutput, error) { args := v.(GetConfigurationRecordersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetConfigurationRecordersResult - secret, err := ctx.InvokePackageRaw("alicloud:cfg/getConfigurationRecorders:getConfigurationRecorders", args, &rv, "", opts...) - if err != nil { - return GetConfigurationRecordersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetConfigurationRecordersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetConfigurationRecordersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cfg/getConfigurationRecorders:getConfigurationRecorders", args, GetConfigurationRecordersResultOutput{}, options).(GetConfigurationRecordersResultOutput), nil }).(GetConfigurationRecordersResultOutput) } diff --git a/sdk/go/alicloud/cfg/getDeliveries.go b/sdk/go/alicloud/cfg/getDeliveries.go index 365f8fa536..77c8613a26 100644 --- a/sdk/go/alicloud/cfg/getDeliveries.go +++ b/sdk/go/alicloud/cfg/getDeliveries.go @@ -80,21 +80,11 @@ type GetDeliveriesResult struct { } func GetDeliveriesOutput(ctx *pulumi.Context, args GetDeliveriesOutputArgs, opts ...pulumi.InvokeOption) GetDeliveriesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDeliveriesResultOutput, error) { args := v.(GetDeliveriesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDeliveriesResult - secret, err := ctx.InvokePackageRaw("alicloud:cfg/getDeliveries:getDeliveries", args, &rv, "", opts...) - if err != nil { - return GetDeliveriesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDeliveriesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDeliveriesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cfg/getDeliveries:getDeliveries", args, GetDeliveriesResultOutput{}, options).(GetDeliveriesResultOutput), nil }).(GetDeliveriesResultOutput) } diff --git a/sdk/go/alicloud/cfg/getDeliveryChannels.go b/sdk/go/alicloud/cfg/getDeliveryChannels.go index 18a10b9790..7978b91e3d 100644 --- a/sdk/go/alicloud/cfg/getDeliveryChannels.go +++ b/sdk/go/alicloud/cfg/getDeliveryChannels.go @@ -88,21 +88,11 @@ type GetDeliveryChannelsResult struct { } func GetDeliveryChannelsOutput(ctx *pulumi.Context, args GetDeliveryChannelsOutputArgs, opts ...pulumi.InvokeOption) GetDeliveryChannelsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDeliveryChannelsResultOutput, error) { args := v.(GetDeliveryChannelsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDeliveryChannelsResult - secret, err := ctx.InvokePackageRaw("alicloud:cfg/getDeliveryChannels:getDeliveryChannels", args, &rv, "", opts...) - if err != nil { - return GetDeliveryChannelsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDeliveryChannelsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDeliveryChannelsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cfg/getDeliveryChannels:getDeliveryChannels", args, GetDeliveryChannelsResultOutput{}, options).(GetDeliveryChannelsResultOutput), nil }).(GetDeliveryChannelsResultOutput) } diff --git a/sdk/go/alicloud/cfg/getRules.go b/sdk/go/alicloud/cfg/getRules.go index 399a8b75e1..398a4cd0d9 100644 --- a/sdk/go/alicloud/cfg/getRules.go +++ b/sdk/go/alicloud/cfg/getRules.go @@ -104,21 +104,11 @@ type GetRulesResult struct { } func GetRulesOutput(ctx *pulumi.Context, args GetRulesOutputArgs, opts ...pulumi.InvokeOption) GetRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRulesResultOutput, error) { args := v.(GetRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:cfg/getRules:getRules", args, &rv, "", opts...) - if err != nil { - return GetRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cfg/getRules:getRules", args, GetRulesResultOutput{}, options).(GetRulesResultOutput), nil }).(GetRulesResultOutput) } diff --git a/sdk/go/alicloud/chatbot/getAgents.go b/sdk/go/alicloud/chatbot/getAgents.go index 39bf93fa7f..1dbd3d0b87 100644 --- a/sdk/go/alicloud/chatbot/getAgents.go +++ b/sdk/go/alicloud/chatbot/getAgents.go @@ -81,21 +81,11 @@ type GetAgentsResult struct { } func GetAgentsOutput(ctx *pulumi.Context, args GetAgentsOutputArgs, opts ...pulumi.InvokeOption) GetAgentsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAgentsResultOutput, error) { args := v.(GetAgentsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAgentsResult - secret, err := ctx.InvokePackageRaw("alicloud:chatbot/getAgents:getAgents", args, &rv, "", opts...) - if err != nil { - return GetAgentsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAgentsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAgentsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:chatbot/getAgents:getAgents", args, GetAgentsResultOutput{}, options).(GetAgentsResultOutput), nil }).(GetAgentsResultOutput) } diff --git a/sdk/go/alicloud/clickhouse/getAccounts.go b/sdk/go/alicloud/clickhouse/getAccounts.go index 104a32b0a9..ed36e4b359 100644 --- a/sdk/go/alicloud/clickhouse/getAccounts.go +++ b/sdk/go/alicloud/clickhouse/getAccounts.go @@ -150,21 +150,11 @@ type GetAccountsResult struct { } func GetAccountsOutput(ctx *pulumi.Context, args GetAccountsOutputArgs, opts ...pulumi.InvokeOption) GetAccountsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccountsResultOutput, error) { args := v.(GetAccountsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccountsResult - secret, err := ctx.InvokePackageRaw("alicloud:clickhouse/getAccounts:getAccounts", args, &rv, "", opts...) - if err != nil { - return GetAccountsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccountsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccountsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:clickhouse/getAccounts:getAccounts", args, GetAccountsResultOutput{}, options).(GetAccountsResultOutput), nil }).(GetAccountsResultOutput) } diff --git a/sdk/go/alicloud/clickhouse/getBackupPolicies.go b/sdk/go/alicloud/clickhouse/getBackupPolicies.go index bac9a75f2b..719c55accb 100644 --- a/sdk/go/alicloud/clickhouse/getBackupPolicies.go +++ b/sdk/go/alicloud/clickhouse/getBackupPolicies.go @@ -71,21 +71,11 @@ type GetBackupPoliciesResult struct { } func GetBackupPoliciesOutput(ctx *pulumi.Context, args GetBackupPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetBackupPoliciesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBackupPoliciesResultOutput, error) { args := v.(GetBackupPoliciesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBackupPoliciesResult - secret, err := ctx.InvokePackageRaw("alicloud:clickhouse/getBackupPolicies:getBackupPolicies", args, &rv, "", opts...) - if err != nil { - return GetBackupPoliciesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBackupPoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBackupPoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:clickhouse/getBackupPolicies:getBackupPolicies", args, GetBackupPoliciesResultOutput{}, options).(GetBackupPoliciesResultOutput), nil }).(GetBackupPoliciesResultOutput) } diff --git a/sdk/go/alicloud/clickhouse/getDbClusters.go b/sdk/go/alicloud/clickhouse/getDbClusters.go index b2d2f0507e..55d996baa4 100644 --- a/sdk/go/alicloud/clickhouse/getDbClusters.go +++ b/sdk/go/alicloud/clickhouse/getDbClusters.go @@ -93,21 +93,11 @@ type GetDbClustersResult struct { } func GetDbClustersOutput(ctx *pulumi.Context, args GetDbClustersOutputArgs, opts ...pulumi.InvokeOption) GetDbClustersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDbClustersResultOutput, error) { args := v.(GetDbClustersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDbClustersResult - secret, err := ctx.InvokePackageRaw("alicloud:clickhouse/getDbClusters:getDbClusters", args, &rv, "", opts...) - if err != nil { - return GetDbClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDbClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDbClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:clickhouse/getDbClusters:getDbClusters", args, GetDbClustersResultOutput{}, options).(GetDbClustersResultOutput), nil }).(GetDbClustersResultOutput) } diff --git a/sdk/go/alicloud/clickhouse/getRegions.go b/sdk/go/alicloud/clickhouse/getRegions.go index 5d6d36b76a..5ed8f10fe6 100644 --- a/sdk/go/alicloud/clickhouse/getRegions.go +++ b/sdk/go/alicloud/clickhouse/getRegions.go @@ -79,21 +79,11 @@ type GetRegionsResult struct { } func GetRegionsOutput(ctx *pulumi.Context, args GetRegionsOutputArgs, opts ...pulumi.InvokeOption) GetRegionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegionsResultOutput, error) { args := v.(GetRegionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegionsResult - secret, err := ctx.InvokePackageRaw("alicloud:clickhouse/getRegions:getRegions", args, &rv, "", opts...) - if err != nil { - return GetRegionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:clickhouse/getRegions:getRegions", args, GetRegionsResultOutput{}, options).(GetRegionsResultOutput), nil }).(GetRegionsResultOutput) } diff --git a/sdk/go/alicloud/cloudauth/getFaceConfigs.go b/sdk/go/alicloud/cloudauth/getFaceConfigs.go index 9be570633c..fbe7b94ab2 100644 --- a/sdk/go/alicloud/cloudauth/getFaceConfigs.go +++ b/sdk/go/alicloud/cloudauth/getFaceConfigs.go @@ -84,21 +84,11 @@ type GetFaceConfigsResult struct { } func GetFaceConfigsOutput(ctx *pulumi.Context, args GetFaceConfigsOutputArgs, opts ...pulumi.InvokeOption) GetFaceConfigsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFaceConfigsResultOutput, error) { args := v.(GetFaceConfigsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFaceConfigsResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudauth/getFaceConfigs:getFaceConfigs", args, &rv, "", opts...) - if err != nil { - return GetFaceConfigsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFaceConfigsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFaceConfigsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudauth/getFaceConfigs:getFaceConfigs", args, GetFaceConfigsResultOutput{}, options).(GetFaceConfigsResultOutput), nil }).(GetFaceConfigsResultOutput) } diff --git a/sdk/go/alicloud/cloudconnect/getNetworks.go b/sdk/go/alicloud/cloudconnect/getNetworks.go index ff5cda26f8..251767e843 100644 --- a/sdk/go/alicloud/cloudconnect/getNetworks.go +++ b/sdk/go/alicloud/cloudconnect/getNetworks.go @@ -86,21 +86,11 @@ type GetNetworksResult struct { } func GetNetworksOutput(ctx *pulumi.Context, args GetNetworksOutputArgs, opts ...pulumi.InvokeOption) GetNetworksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNetworksResultOutput, error) { args := v.(GetNetworksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNetworksResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudconnect/getNetworks:getNetworks", args, &rv, "", opts...) - if err != nil { - return GetNetworksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNetworksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNetworksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudconnect/getNetworks:getNetworks", args, GetNetworksResultOutput{}, options).(GetNetworksResultOutput), nil }).(GetNetworksResultOutput) } diff --git a/sdk/go/alicloud/cloudfirewall/getAddressBooks.go b/sdk/go/alicloud/cloudfirewall/getAddressBooks.go index 8a5fdf8095..6e8c937561 100644 --- a/sdk/go/alicloud/cloudfirewall/getAddressBooks.go +++ b/sdk/go/alicloud/cloudfirewall/getAddressBooks.go @@ -102,21 +102,11 @@ type GetAddressBooksResult struct { } func GetAddressBooksOutput(ctx *pulumi.Context, args GetAddressBooksOutputArgs, opts ...pulumi.InvokeOption) GetAddressBooksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAddressBooksResultOutput, error) { args := v.(GetAddressBooksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAddressBooksResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudfirewall/getAddressBooks:getAddressBooks", args, &rv, "", opts...) - if err != nil { - return GetAddressBooksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAddressBooksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAddressBooksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudfirewall/getAddressBooks:getAddressBooks", args, GetAddressBooksResultOutput{}, options).(GetAddressBooksResultOutput), nil }).(GetAddressBooksResultOutput) } diff --git a/sdk/go/alicloud/cloudfirewall/getControlPolicies.go b/sdk/go/alicloud/cloudfirewall/getControlPolicies.go index a66c7c9b9b..e2e205cb02 100644 --- a/sdk/go/alicloud/cloudfirewall/getControlPolicies.go +++ b/sdk/go/alicloud/cloudfirewall/getControlPolicies.go @@ -104,21 +104,11 @@ type GetControlPoliciesResult struct { } func GetControlPoliciesOutput(ctx *pulumi.Context, args GetControlPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetControlPoliciesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetControlPoliciesResultOutput, error) { args := v.(GetControlPoliciesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetControlPoliciesResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudfirewall/getControlPolicies:getControlPolicies", args, &rv, "", opts...) - if err != nil { - return GetControlPoliciesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetControlPoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetControlPoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudfirewall/getControlPolicies:getControlPolicies", args, GetControlPoliciesResultOutput{}, options).(GetControlPoliciesResultOutput), nil }).(GetControlPoliciesResultOutput) } diff --git a/sdk/go/alicloud/cloudfirewall/getInstanceMembers.go b/sdk/go/alicloud/cloudfirewall/getInstanceMembers.go index 6a2a3390e3..337e77d854 100644 --- a/sdk/go/alicloud/cloudfirewall/getInstanceMembers.go +++ b/sdk/go/alicloud/cloudfirewall/getInstanceMembers.go @@ -77,21 +77,11 @@ type GetInstanceMembersResult struct { } func GetInstanceMembersOutput(ctx *pulumi.Context, args GetInstanceMembersOutputArgs, opts ...pulumi.InvokeOption) GetInstanceMembersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceMembersResultOutput, error) { args := v.(GetInstanceMembersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceMembersResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudfirewall/getInstanceMembers:getInstanceMembers", args, &rv, "", opts...) - if err != nil { - return GetInstanceMembersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceMembersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceMembersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudfirewall/getInstanceMembers:getInstanceMembers", args, GetInstanceMembersResultOutput{}, options).(GetInstanceMembersResultOutput), nil }).(GetInstanceMembersResultOutput) } diff --git a/sdk/go/alicloud/cloudfirewall/getInstances.go b/sdk/go/alicloud/cloudfirewall/getInstances.go index c0ca4bcf26..22f45dbbbd 100644 --- a/sdk/go/alicloud/cloudfirewall/getInstances.go +++ b/sdk/go/alicloud/cloudfirewall/getInstances.go @@ -66,21 +66,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudfirewall/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudfirewall/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/cloudfirewall/getVpcFirewallCens.go b/sdk/go/alicloud/cloudfirewall/getVpcFirewallCens.go index 54e7b73d19..c35d9f3350 100644 --- a/sdk/go/alicloud/cloudfirewall/getVpcFirewallCens.go +++ b/sdk/go/alicloud/cloudfirewall/getVpcFirewallCens.go @@ -106,21 +106,11 @@ type GetVpcFirewallCensResult struct { } func GetVpcFirewallCensOutput(ctx *pulumi.Context, args GetVpcFirewallCensOutputArgs, opts ...pulumi.InvokeOption) GetVpcFirewallCensResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVpcFirewallCensResultOutput, error) { args := v.(GetVpcFirewallCensArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVpcFirewallCensResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudfirewall/getVpcFirewallCens:getVpcFirewallCens", args, &rv, "", opts...) - if err != nil { - return GetVpcFirewallCensResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVpcFirewallCensResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVpcFirewallCensResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudfirewall/getVpcFirewallCens:getVpcFirewallCens", args, GetVpcFirewallCensResultOutput{}, options).(GetVpcFirewallCensResultOutput), nil }).(GetVpcFirewallCensResultOutput) } diff --git a/sdk/go/alicloud/cloudfirewall/getVpcFirewallControlPolicies.go b/sdk/go/alicloud/cloudfirewall/getVpcFirewallControlPolicies.go index 686c365c38..4b9068d05c 100644 --- a/sdk/go/alicloud/cloudfirewall/getVpcFirewallControlPolicies.go +++ b/sdk/go/alicloud/cloudfirewall/getVpcFirewallControlPolicies.go @@ -113,21 +113,11 @@ type GetVpcFirewallControlPoliciesResult struct { } func GetVpcFirewallControlPoliciesOutput(ctx *pulumi.Context, args GetVpcFirewallControlPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetVpcFirewallControlPoliciesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVpcFirewallControlPoliciesResultOutput, error) { args := v.(GetVpcFirewallControlPoliciesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVpcFirewallControlPoliciesResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudfirewall/getVpcFirewallControlPolicies:getVpcFirewallControlPolicies", args, &rv, "", opts...) - if err != nil { - return GetVpcFirewallControlPoliciesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVpcFirewallControlPoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVpcFirewallControlPoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudfirewall/getVpcFirewallControlPolicies:getVpcFirewallControlPolicies", args, GetVpcFirewallControlPoliciesResultOutput{}, options).(GetVpcFirewallControlPoliciesResultOutput), nil }).(GetVpcFirewallControlPoliciesResultOutput) } diff --git a/sdk/go/alicloud/cloudfirewall/getVpcFirewalls.go b/sdk/go/alicloud/cloudfirewall/getVpcFirewalls.go index 7b8001680b..3862073796 100644 --- a/sdk/go/alicloud/cloudfirewall/getVpcFirewalls.go +++ b/sdk/go/alicloud/cloudfirewall/getVpcFirewalls.go @@ -108,21 +108,11 @@ type GetVpcFirewallsResult struct { } func GetVpcFirewallsOutput(ctx *pulumi.Context, args GetVpcFirewallsOutputArgs, opts ...pulumi.InvokeOption) GetVpcFirewallsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVpcFirewallsResultOutput, error) { args := v.(GetVpcFirewallsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVpcFirewallsResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudfirewall/getVpcFirewalls:getVpcFirewalls", args, &rv, "", opts...) - if err != nil { - return GetVpcFirewallsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVpcFirewallsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVpcFirewallsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudfirewall/getVpcFirewalls:getVpcFirewalls", args, GetVpcFirewallsResultOutput{}, options).(GetVpcFirewallsResultOutput), nil }).(GetVpcFirewallsResultOutput) } diff --git a/sdk/go/alicloud/cloudmonitor/getServiceHybridDoubleWrites.go b/sdk/go/alicloud/cloudmonitor/getServiceHybridDoubleWrites.go index e6dd0929ce..3fda5cbe74 100644 --- a/sdk/go/alicloud/cloudmonitor/getServiceHybridDoubleWrites.go +++ b/sdk/go/alicloud/cloudmonitor/getServiceHybridDoubleWrites.go @@ -116,21 +116,11 @@ type GetServiceHybridDoubleWritesResult struct { } func GetServiceHybridDoubleWritesOutput(ctx *pulumi.Context, args GetServiceHybridDoubleWritesOutputArgs, opts ...pulumi.InvokeOption) GetServiceHybridDoubleWritesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceHybridDoubleWritesResultOutput, error) { args := v.(GetServiceHybridDoubleWritesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceHybridDoubleWritesResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudmonitor/getServiceHybridDoubleWrites:getServiceHybridDoubleWrites", args, &rv, "", opts...) - if err != nil { - return GetServiceHybridDoubleWritesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceHybridDoubleWritesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceHybridDoubleWritesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudmonitor/getServiceHybridDoubleWrites:getServiceHybridDoubleWrites", args, GetServiceHybridDoubleWritesResultOutput{}, options).(GetServiceHybridDoubleWritesResultOutput), nil }).(GetServiceHybridDoubleWritesResultOutput) } diff --git a/sdk/go/alicloud/cloudsso/getAccessAssignments.go b/sdk/go/alicloud/cloudsso/getAccessAssignments.go index 903f53ca06..63d2fc4583 100644 --- a/sdk/go/alicloud/cloudsso/getAccessAssignments.go +++ b/sdk/go/alicloud/cloudsso/getAccessAssignments.go @@ -92,21 +92,11 @@ type GetAccessAssignmentsResult struct { } func GetAccessAssignmentsOutput(ctx *pulumi.Context, args GetAccessAssignmentsOutputArgs, opts ...pulumi.InvokeOption) GetAccessAssignmentsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccessAssignmentsResultOutput, error) { args := v.(GetAccessAssignmentsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccessAssignmentsResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudsso/getAccessAssignments:getAccessAssignments", args, &rv, "", opts...) - if err != nil { - return GetAccessAssignmentsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccessAssignmentsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccessAssignmentsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudsso/getAccessAssignments:getAccessAssignments", args, GetAccessAssignmentsResultOutput{}, options).(GetAccessAssignmentsResultOutput), nil }).(GetAccessAssignmentsResultOutput) } diff --git a/sdk/go/alicloud/cloudsso/getAccessConfigurations.go b/sdk/go/alicloud/cloudsso/getAccessConfigurations.go index 2eee8b8f77..c583f471a9 100644 --- a/sdk/go/alicloud/cloudsso/getAccessConfigurations.go +++ b/sdk/go/alicloud/cloudsso/getAccessConfigurations.go @@ -95,21 +95,11 @@ type GetAccessConfigurationsResult struct { } func GetAccessConfigurationsOutput(ctx *pulumi.Context, args GetAccessConfigurationsOutputArgs, opts ...pulumi.InvokeOption) GetAccessConfigurationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccessConfigurationsResultOutput, error) { args := v.(GetAccessConfigurationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccessConfigurationsResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudsso/getAccessConfigurations:getAccessConfigurations", args, &rv, "", opts...) - if err != nil { - return GetAccessConfigurationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccessConfigurationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccessConfigurationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudsso/getAccessConfigurations:getAccessConfigurations", args, GetAccessConfigurationsResultOutput{}, options).(GetAccessConfigurationsResultOutput), nil }).(GetAccessConfigurationsResultOutput) } diff --git a/sdk/go/alicloud/cloudsso/getDirectories.go b/sdk/go/alicloud/cloudsso/getDirectories.go index 6c14a67d08..d72d6195df 100644 --- a/sdk/go/alicloud/cloudsso/getDirectories.go +++ b/sdk/go/alicloud/cloudsso/getDirectories.go @@ -89,21 +89,11 @@ type GetDirectoriesResult struct { } func GetDirectoriesOutput(ctx *pulumi.Context, args GetDirectoriesOutputArgs, opts ...pulumi.InvokeOption) GetDirectoriesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDirectoriesResultOutput, error) { args := v.(GetDirectoriesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDirectoriesResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudsso/getDirectories:getDirectories", args, &rv, "", opts...) - if err != nil { - return GetDirectoriesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDirectoriesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDirectoriesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudsso/getDirectories:getDirectories", args, GetDirectoriesResultOutput{}, options).(GetDirectoriesResultOutput), nil }).(GetDirectoriesResultOutput) } diff --git a/sdk/go/alicloud/cloudsso/getGroups.go b/sdk/go/alicloud/cloudsso/getGroups.go index 68d3f23a0c..f8511f7a29 100644 --- a/sdk/go/alicloud/cloudsso/getGroups.go +++ b/sdk/go/alicloud/cloudsso/getGroups.go @@ -95,21 +95,11 @@ type GetGroupsResult struct { } func GetGroupsOutput(ctx *pulumi.Context, args GetGroupsOutputArgs, opts ...pulumi.InvokeOption) GetGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGroupsResultOutput, error) { args := v.(GetGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudsso/getGroups:getGroups", args, &rv, "", opts...) - if err != nil { - return GetGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudsso/getGroups:getGroups", args, GetGroupsResultOutput{}, options).(GetGroupsResultOutput), nil }).(GetGroupsResultOutput) } diff --git a/sdk/go/alicloud/cloudsso/getScimServerCredentials.go b/sdk/go/alicloud/cloudsso/getScimServerCredentials.go index 4162622804..958a1b269d 100644 --- a/sdk/go/alicloud/cloudsso/getScimServerCredentials.go +++ b/sdk/go/alicloud/cloudsso/getScimServerCredentials.go @@ -83,21 +83,11 @@ type GetScimServerCredentialsResult struct { } func GetScimServerCredentialsOutput(ctx *pulumi.Context, args GetScimServerCredentialsOutputArgs, opts ...pulumi.InvokeOption) GetScimServerCredentialsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetScimServerCredentialsResultOutput, error) { args := v.(GetScimServerCredentialsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetScimServerCredentialsResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudsso/getScimServerCredentials:getScimServerCredentials", args, &rv, "", opts...) - if err != nil { - return GetScimServerCredentialsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetScimServerCredentialsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetScimServerCredentialsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudsso/getScimServerCredentials:getScimServerCredentials", args, GetScimServerCredentialsResultOutput{}, options).(GetScimServerCredentialsResultOutput), nil }).(GetScimServerCredentialsResultOutput) } diff --git a/sdk/go/alicloud/cloudsso/getService.go b/sdk/go/alicloud/cloudsso/getService.go index 9a0980232a..b715a716f9 100644 --- a/sdk/go/alicloud/cloudsso/getService.go +++ b/sdk/go/alicloud/cloudsso/getService.go @@ -74,21 +74,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudsso/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudsso/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/cloudsso/getUsers.go b/sdk/go/alicloud/cloudsso/getUsers.go index f0ad7c0d65..03939830b9 100644 --- a/sdk/go/alicloud/cloudsso/getUsers.go +++ b/sdk/go/alicloud/cloudsso/getUsers.go @@ -123,21 +123,11 @@ type GetUsersResult struct { } func GetUsersOutput(ctx *pulumi.Context, args GetUsersOutputArgs, opts ...pulumi.InvokeOption) GetUsersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetUsersResultOutput, error) { args := v.(GetUsersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetUsersResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudsso/getUsers:getUsers", args, &rv, "", opts...) - if err != nil { - return GetUsersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetUsersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetUsersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudsso/getUsers:getUsers", args, GetUsersResultOutput{}, options).(GetUsersResultOutput), nil }).(GetUsersResultOutput) } diff --git a/sdk/go/alicloud/cloudstoragegateway/getExpressSyncs.go b/sdk/go/alicloud/cloudstoragegateway/getExpressSyncs.go index fa0375e70f..1c5ea722cb 100644 --- a/sdk/go/alicloud/cloudstoragegateway/getExpressSyncs.go +++ b/sdk/go/alicloud/cloudstoragegateway/getExpressSyncs.go @@ -80,21 +80,11 @@ type GetExpressSyncsResult struct { } func GetExpressSyncsOutput(ctx *pulumi.Context, args GetExpressSyncsOutputArgs, opts ...pulumi.InvokeOption) GetExpressSyncsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetExpressSyncsResultOutput, error) { args := v.(GetExpressSyncsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetExpressSyncsResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudstoragegateway/getExpressSyncs:getExpressSyncs", args, &rv, "", opts...) - if err != nil { - return GetExpressSyncsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetExpressSyncsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetExpressSyncsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudstoragegateway/getExpressSyncs:getExpressSyncs", args, GetExpressSyncsResultOutput{}, options).(GetExpressSyncsResultOutput), nil }).(GetExpressSyncsResultOutput) } diff --git a/sdk/go/alicloud/cloudstoragegateway/getGatewayBlockVolumes.go b/sdk/go/alicloud/cloudstoragegateway/getGatewayBlockVolumes.go index a5a313ae7b..5932d5e0ac 100644 --- a/sdk/go/alicloud/cloudstoragegateway/getGatewayBlockVolumes.go +++ b/sdk/go/alicloud/cloudstoragegateway/getGatewayBlockVolumes.go @@ -93,21 +93,11 @@ type GetGatewayBlockVolumesResult struct { } func GetGatewayBlockVolumesOutput(ctx *pulumi.Context, args GetGatewayBlockVolumesOutputArgs, opts ...pulumi.InvokeOption) GetGatewayBlockVolumesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGatewayBlockVolumesResultOutput, error) { args := v.(GetGatewayBlockVolumesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGatewayBlockVolumesResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudstoragegateway/getGatewayBlockVolumes:getGatewayBlockVolumes", args, &rv, "", opts...) - if err != nil { - return GetGatewayBlockVolumesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGatewayBlockVolumesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGatewayBlockVolumesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudstoragegateway/getGatewayBlockVolumes:getGatewayBlockVolumes", args, GetGatewayBlockVolumesResultOutput{}, options).(GetGatewayBlockVolumesResultOutput), nil }).(GetGatewayBlockVolumesResultOutput) } diff --git a/sdk/go/alicloud/cloudstoragegateway/getGatewayCacheDisks.go b/sdk/go/alicloud/cloudstoragegateway/getGatewayCacheDisks.go index 496a6fffaf..1fead341be 100644 --- a/sdk/go/alicloud/cloudstoragegateway/getGatewayCacheDisks.go +++ b/sdk/go/alicloud/cloudstoragegateway/getGatewayCacheDisks.go @@ -93,21 +93,11 @@ type GetGatewayCacheDisksResult struct { } func GetGatewayCacheDisksOutput(ctx *pulumi.Context, args GetGatewayCacheDisksOutputArgs, opts ...pulumi.InvokeOption) GetGatewayCacheDisksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGatewayCacheDisksResultOutput, error) { args := v.(GetGatewayCacheDisksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGatewayCacheDisksResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudstoragegateway/getGatewayCacheDisks:getGatewayCacheDisks", args, &rv, "", opts...) - if err != nil { - return GetGatewayCacheDisksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGatewayCacheDisksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGatewayCacheDisksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudstoragegateway/getGatewayCacheDisks:getGatewayCacheDisks", args, GetGatewayCacheDisksResultOutput{}, options).(GetGatewayCacheDisksResultOutput), nil }).(GetGatewayCacheDisksResultOutput) } diff --git a/sdk/go/alicloud/cloudstoragegateway/getGatewayFileShares.go b/sdk/go/alicloud/cloudstoragegateway/getGatewayFileShares.go index 435728e77f..f860da0cda 100644 --- a/sdk/go/alicloud/cloudstoragegateway/getGatewayFileShares.go +++ b/sdk/go/alicloud/cloudstoragegateway/getGatewayFileShares.go @@ -90,21 +90,11 @@ type GetGatewayFileSharesResult struct { } func GetGatewayFileSharesOutput(ctx *pulumi.Context, args GetGatewayFileSharesOutputArgs, opts ...pulumi.InvokeOption) GetGatewayFileSharesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGatewayFileSharesResultOutput, error) { args := v.(GetGatewayFileSharesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGatewayFileSharesResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudstoragegateway/getGatewayFileShares:getGatewayFileShares", args, &rv, "", opts...) - if err != nil { - return GetGatewayFileSharesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGatewayFileSharesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGatewayFileSharesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudstoragegateway/getGatewayFileShares:getGatewayFileShares", args, GetGatewayFileSharesResultOutput{}, options).(GetGatewayFileSharesResultOutput), nil }).(GetGatewayFileSharesResultOutput) } diff --git a/sdk/go/alicloud/cloudstoragegateway/getGatewaySmbUsers.go b/sdk/go/alicloud/cloudstoragegateway/getGatewaySmbUsers.go index c0a016fc7c..5e172d7889 100644 --- a/sdk/go/alicloud/cloudstoragegateway/getGatewaySmbUsers.go +++ b/sdk/go/alicloud/cloudstoragegateway/getGatewaySmbUsers.go @@ -121,21 +121,11 @@ type GetGatewaySmbUsersResult struct { } func GetGatewaySmbUsersOutput(ctx *pulumi.Context, args GetGatewaySmbUsersOutputArgs, opts ...pulumi.InvokeOption) GetGatewaySmbUsersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGatewaySmbUsersResultOutput, error) { args := v.(GetGatewaySmbUsersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGatewaySmbUsersResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudstoragegateway/getGatewaySmbUsers:getGatewaySmbUsers", args, &rv, "", opts...) - if err != nil { - return GetGatewaySmbUsersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGatewaySmbUsersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGatewaySmbUsersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudstoragegateway/getGatewaySmbUsers:getGatewaySmbUsers", args, GetGatewaySmbUsersResultOutput{}, options).(GetGatewaySmbUsersResultOutput), nil }).(GetGatewaySmbUsersResultOutput) } diff --git a/sdk/go/alicloud/cloudstoragegateway/getGateways.go b/sdk/go/alicloud/cloudstoragegateway/getGateways.go index 0ffd62d78c..dce2b041dc 100644 --- a/sdk/go/alicloud/cloudstoragegateway/getGateways.go +++ b/sdk/go/alicloud/cloudstoragegateway/getGateways.go @@ -92,21 +92,11 @@ type GetGatewaysResult struct { } func GetGatewaysOutput(ctx *pulumi.Context, args GetGatewaysOutputArgs, opts ...pulumi.InvokeOption) GetGatewaysResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGatewaysResultOutput, error) { args := v.(GetGatewaysArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGatewaysResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudstoragegateway/getGateways:getGateways", args, &rv, "", opts...) - if err != nil { - return GetGatewaysResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGatewaysResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGatewaysResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudstoragegateway/getGateways:getGateways", args, GetGatewaysResultOutput{}, options).(GetGatewaysResultOutput), nil }).(GetGatewaysResultOutput) } diff --git a/sdk/go/alicloud/cloudstoragegateway/getService.go b/sdk/go/alicloud/cloudstoragegateway/getService.go index 94bdf8b978..f496b7f644 100644 --- a/sdk/go/alicloud/cloudstoragegateway/getService.go +++ b/sdk/go/alicloud/cloudstoragegateway/getService.go @@ -70,21 +70,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudstoragegateway/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudstoragegateway/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/cloudstoragegateway/getStocks.go b/sdk/go/alicloud/cloudstoragegateway/getStocks.go index c1d6ad64e4..248d1717b8 100644 --- a/sdk/go/alicloud/cloudstoragegateway/getStocks.go +++ b/sdk/go/alicloud/cloudstoragegateway/getStocks.go @@ -71,21 +71,11 @@ type GetStocksResult struct { } func GetStocksOutput(ctx *pulumi.Context, args GetStocksOutputArgs, opts ...pulumi.InvokeOption) GetStocksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetStocksResultOutput, error) { args := v.(GetStocksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetStocksResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudstoragegateway/getStocks:getStocks", args, &rv, "", opts...) - if err != nil { - return GetStocksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetStocksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetStocksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudstoragegateway/getStocks:getStocks", args, GetStocksResultOutput{}, options).(GetStocksResultOutput), nil }).(GetStocksResultOutput) } diff --git a/sdk/go/alicloud/cloudstoragegateway/getStorageBundles.go b/sdk/go/alicloud/cloudstoragegateway/getStorageBundles.go index b0b19757b4..82c0cec48b 100644 --- a/sdk/go/alicloud/cloudstoragegateway/getStorageBundles.go +++ b/sdk/go/alicloud/cloudstoragegateway/getStorageBundles.go @@ -47,21 +47,11 @@ type GetStorageBundlesResult struct { } func GetStorageBundlesOutput(ctx *pulumi.Context, args GetStorageBundlesOutputArgs, opts ...pulumi.InvokeOption) GetStorageBundlesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetStorageBundlesResultOutput, error) { args := v.(GetStorageBundlesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetStorageBundlesResult - secret, err := ctx.InvokePackageRaw("alicloud:cloudstoragegateway/getStorageBundles:getStorageBundles", args, &rv, "", opts...) - if err != nil { - return GetStorageBundlesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetStorageBundlesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetStorageBundlesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cloudstoragegateway/getStorageBundles:getStorageBundles", args, GetStorageBundlesResultOutput{}, options).(GetStorageBundlesResultOutput), nil }).(GetStorageBundlesResultOutput) } diff --git a/sdk/go/alicloud/cms/getAlarmContactGroups.go b/sdk/go/alicloud/cms/getAlarmContactGroups.go index 5ebed87e58..ece9167150 100644 --- a/sdk/go/alicloud/cms/getAlarmContactGroups.go +++ b/sdk/go/alicloud/cms/getAlarmContactGroups.go @@ -74,21 +74,11 @@ type GetAlarmContactGroupsResult struct { } func GetAlarmContactGroupsOutput(ctx *pulumi.Context, args GetAlarmContactGroupsOutputArgs, opts ...pulumi.InvokeOption) GetAlarmContactGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAlarmContactGroupsResultOutput, error) { args := v.(GetAlarmContactGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAlarmContactGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:cms/getAlarmContactGroups:getAlarmContactGroups", args, &rv, "", opts...) - if err != nil { - return GetAlarmContactGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAlarmContactGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAlarmContactGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cms/getAlarmContactGroups:getAlarmContactGroups", args, GetAlarmContactGroupsResultOutput{}, options).(GetAlarmContactGroupsResultOutput), nil }).(GetAlarmContactGroupsResultOutput) } diff --git a/sdk/go/alicloud/cms/getAlarmContacts.go b/sdk/go/alicloud/cms/getAlarmContacts.go index dd1dd08cb6..1f3aa40464 100644 --- a/sdk/go/alicloud/cms/getAlarmContacts.go +++ b/sdk/go/alicloud/cms/getAlarmContacts.go @@ -88,21 +88,11 @@ type GetAlarmContactsResult struct { } func GetAlarmContactsOutput(ctx *pulumi.Context, args GetAlarmContactsOutputArgs, opts ...pulumi.InvokeOption) GetAlarmContactsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAlarmContactsResultOutput, error) { args := v.(GetAlarmContactsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAlarmContactsResult - secret, err := ctx.InvokePackageRaw("alicloud:cms/getAlarmContacts:getAlarmContacts", args, &rv, "", opts...) - if err != nil { - return GetAlarmContactsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAlarmContactsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAlarmContactsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cms/getAlarmContacts:getAlarmContacts", args, GetAlarmContactsResultOutput{}, options).(GetAlarmContactsResultOutput), nil }).(GetAlarmContactsResultOutput) } diff --git a/sdk/go/alicloud/cms/getDynamicTagGroups.go b/sdk/go/alicloud/cms/getDynamicTagGroups.go index 4a16728c40..e0014ef48e 100644 --- a/sdk/go/alicloud/cms/getDynamicTagGroups.go +++ b/sdk/go/alicloud/cms/getDynamicTagGroups.go @@ -107,21 +107,11 @@ type GetDynamicTagGroupsResult struct { } func GetDynamicTagGroupsOutput(ctx *pulumi.Context, args GetDynamicTagGroupsOutputArgs, opts ...pulumi.InvokeOption) GetDynamicTagGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDynamicTagGroupsResultOutput, error) { args := v.(GetDynamicTagGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDynamicTagGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:cms/getDynamicTagGroups:getDynamicTagGroups", args, &rv, "", opts...) - if err != nil { - return GetDynamicTagGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDynamicTagGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDynamicTagGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cms/getDynamicTagGroups:getDynamicTagGroups", args, GetDynamicTagGroupsResultOutput{}, options).(GetDynamicTagGroupsResultOutput), nil }).(GetDynamicTagGroupsResultOutput) } diff --git a/sdk/go/alicloud/cms/getEventRules.go b/sdk/go/alicloud/cms/getEventRules.go index 3d91385ee8..2e88b64181 100644 --- a/sdk/go/alicloud/cms/getEventRules.go +++ b/sdk/go/alicloud/cms/getEventRules.go @@ -94,21 +94,11 @@ type GetEventRulesResult struct { } func GetEventRulesOutput(ctx *pulumi.Context, args GetEventRulesOutputArgs, opts ...pulumi.InvokeOption) GetEventRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEventRulesResultOutput, error) { args := v.(GetEventRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEventRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:cms/getEventRules:getEventRules", args, &rv, "", opts...) - if err != nil { - return GetEventRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEventRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEventRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cms/getEventRules:getEventRules", args, GetEventRulesResultOutput{}, options).(GetEventRulesResultOutput), nil }).(GetEventRulesResultOutput) } diff --git a/sdk/go/alicloud/cms/getGroupMetricRules.go b/sdk/go/alicloud/cms/getGroupMetricRules.go index 3622887a49..a168acd997 100644 --- a/sdk/go/alicloud/cms/getGroupMetricRules.go +++ b/sdk/go/alicloud/cms/getGroupMetricRules.go @@ -99,21 +99,11 @@ type GetGroupMetricRulesResult struct { } func GetGroupMetricRulesOutput(ctx *pulumi.Context, args GetGroupMetricRulesOutputArgs, opts ...pulumi.InvokeOption) GetGroupMetricRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGroupMetricRulesResultOutput, error) { args := v.(GetGroupMetricRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGroupMetricRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:cms/getGroupMetricRules:getGroupMetricRules", args, &rv, "", opts...) - if err != nil { - return GetGroupMetricRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGroupMetricRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGroupMetricRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cms/getGroupMetricRules:getGroupMetricRules", args, GetGroupMetricRulesResultOutput{}, options).(GetGroupMetricRulesResultOutput), nil }).(GetGroupMetricRulesResultOutput) } diff --git a/sdk/go/alicloud/cms/getHybridMonitorDatas.go b/sdk/go/alicloud/cms/getHybridMonitorDatas.go index 1828815daf..9cc98a80b6 100644 --- a/sdk/go/alicloud/cms/getHybridMonitorDatas.go +++ b/sdk/go/alicloud/cms/getHybridMonitorDatas.go @@ -86,21 +86,11 @@ type GetHybridMonitorDatasResult struct { } func GetHybridMonitorDatasOutput(ctx *pulumi.Context, args GetHybridMonitorDatasOutputArgs, opts ...pulumi.InvokeOption) GetHybridMonitorDatasResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHybridMonitorDatasResultOutput, error) { args := v.(GetHybridMonitorDatasArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHybridMonitorDatasResult - secret, err := ctx.InvokePackageRaw("alicloud:cms/getHybridMonitorDatas:getHybridMonitorDatas", args, &rv, "", opts...) - if err != nil { - return GetHybridMonitorDatasResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHybridMonitorDatasResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHybridMonitorDatasResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cms/getHybridMonitorDatas:getHybridMonitorDatas", args, GetHybridMonitorDatasResultOutput{}, options).(GetHybridMonitorDatasResultOutput), nil }).(GetHybridMonitorDatasResultOutput) } diff --git a/sdk/go/alicloud/cms/getHybridMonitorFcTasks.go b/sdk/go/alicloud/cms/getHybridMonitorFcTasks.go index 75ba129237..84e1a35a46 100644 --- a/sdk/go/alicloud/cms/getHybridMonitorFcTasks.go +++ b/sdk/go/alicloud/cms/getHybridMonitorFcTasks.go @@ -80,21 +80,11 @@ type GetHybridMonitorFcTasksResult struct { } func GetHybridMonitorFcTasksOutput(ctx *pulumi.Context, args GetHybridMonitorFcTasksOutputArgs, opts ...pulumi.InvokeOption) GetHybridMonitorFcTasksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHybridMonitorFcTasksResultOutput, error) { args := v.(GetHybridMonitorFcTasksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHybridMonitorFcTasksResult - secret, err := ctx.InvokePackageRaw("alicloud:cms/getHybridMonitorFcTasks:getHybridMonitorFcTasks", args, &rv, "", opts...) - if err != nil { - return GetHybridMonitorFcTasksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHybridMonitorFcTasksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHybridMonitorFcTasksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cms/getHybridMonitorFcTasks:getHybridMonitorFcTasks", args, GetHybridMonitorFcTasksResultOutput{}, options).(GetHybridMonitorFcTasksResultOutput), nil }).(GetHybridMonitorFcTasksResultOutput) } diff --git a/sdk/go/alicloud/cms/getHybridMonitorSlsTasks.go b/sdk/go/alicloud/cms/getHybridMonitorSlsTasks.go index 7b217e0691..7ac890e6ad 100644 --- a/sdk/go/alicloud/cms/getHybridMonitorSlsTasks.go +++ b/sdk/go/alicloud/cms/getHybridMonitorSlsTasks.go @@ -83,21 +83,11 @@ type GetHybridMonitorSlsTasksResult struct { } func GetHybridMonitorSlsTasksOutput(ctx *pulumi.Context, args GetHybridMonitorSlsTasksOutputArgs, opts ...pulumi.InvokeOption) GetHybridMonitorSlsTasksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHybridMonitorSlsTasksResultOutput, error) { args := v.(GetHybridMonitorSlsTasksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHybridMonitorSlsTasksResult - secret, err := ctx.InvokePackageRaw("alicloud:cms/getHybridMonitorSlsTasks:getHybridMonitorSlsTasks", args, &rv, "", opts...) - if err != nil { - return GetHybridMonitorSlsTasksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHybridMonitorSlsTasksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHybridMonitorSlsTasksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cms/getHybridMonitorSlsTasks:getHybridMonitorSlsTasks", args, GetHybridMonitorSlsTasksResultOutput{}, options).(GetHybridMonitorSlsTasksResultOutput), nil }).(GetHybridMonitorSlsTasksResultOutput) } diff --git a/sdk/go/alicloud/cms/getMetricRuleBlackLists.go b/sdk/go/alicloud/cms/getMetricRuleBlackLists.go index 64a7d74679..3d2f01462c 100644 --- a/sdk/go/alicloud/cms/getMetricRuleBlackLists.go +++ b/sdk/go/alicloud/cms/getMetricRuleBlackLists.go @@ -96,21 +96,11 @@ type GetMetricRuleBlackListsResult struct { } func GetMetricRuleBlackListsOutput(ctx *pulumi.Context, args GetMetricRuleBlackListsOutputArgs, opts ...pulumi.InvokeOption) GetMetricRuleBlackListsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetMetricRuleBlackListsResultOutput, error) { args := v.(GetMetricRuleBlackListsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetMetricRuleBlackListsResult - secret, err := ctx.InvokePackageRaw("alicloud:cms/getMetricRuleBlackLists:getMetricRuleBlackLists", args, &rv, "", opts...) - if err != nil { - return GetMetricRuleBlackListsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetMetricRuleBlackListsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetMetricRuleBlackListsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cms/getMetricRuleBlackLists:getMetricRuleBlackLists", args, GetMetricRuleBlackListsResultOutput{}, options).(GetMetricRuleBlackListsResultOutput), nil }).(GetMetricRuleBlackListsResultOutput) } diff --git a/sdk/go/alicloud/cms/getMetricRuleTemplates.go b/sdk/go/alicloud/cms/getMetricRuleTemplates.go index 0dc37f85fe..29d2525b89 100644 --- a/sdk/go/alicloud/cms/getMetricRuleTemplates.go +++ b/sdk/go/alicloud/cms/getMetricRuleTemplates.go @@ -110,21 +110,11 @@ type GetMetricRuleTemplatesResult struct { } func GetMetricRuleTemplatesOutput(ctx *pulumi.Context, args GetMetricRuleTemplatesOutputArgs, opts ...pulumi.InvokeOption) GetMetricRuleTemplatesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetMetricRuleTemplatesResultOutput, error) { args := v.(GetMetricRuleTemplatesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetMetricRuleTemplatesResult - secret, err := ctx.InvokePackageRaw("alicloud:cms/getMetricRuleTemplates:getMetricRuleTemplates", args, &rv, "", opts...) - if err != nil { - return GetMetricRuleTemplatesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetMetricRuleTemplatesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetMetricRuleTemplatesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cms/getMetricRuleTemplates:getMetricRuleTemplates", args, GetMetricRuleTemplatesResultOutput{}, options).(GetMetricRuleTemplatesResultOutput), nil }).(GetMetricRuleTemplatesResultOutput) } diff --git a/sdk/go/alicloud/cms/getMonitorGroupInstances.go b/sdk/go/alicloud/cms/getMonitorGroupInstances.go index 125137dd6f..2dce609b31 100644 --- a/sdk/go/alicloud/cms/getMonitorGroupInstances.go +++ b/sdk/go/alicloud/cms/getMonitorGroupInstances.go @@ -39,21 +39,11 @@ type LookupMonitorGroupInstancesResult struct { } func LookupMonitorGroupInstancesOutput(ctx *pulumi.Context, args LookupMonitorGroupInstancesOutputArgs, opts ...pulumi.InvokeOption) LookupMonitorGroupInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupMonitorGroupInstancesResultOutput, error) { args := v.(LookupMonitorGroupInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupMonitorGroupInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:cms/getMonitorGroupInstances:getMonitorGroupInstances", args, &rv, "", opts...) - if err != nil { - return LookupMonitorGroupInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupMonitorGroupInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupMonitorGroupInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cms/getMonitorGroupInstances:getMonitorGroupInstances", args, LookupMonitorGroupInstancesResultOutput{}, options).(LookupMonitorGroupInstancesResultOutput), nil }).(LookupMonitorGroupInstancesResultOutput) } diff --git a/sdk/go/alicloud/cms/getMonitorGroups.go b/sdk/go/alicloud/cms/getMonitorGroups.go index e260d6ccc5..3268a74227 100644 --- a/sdk/go/alicloud/cms/getMonitorGroups.go +++ b/sdk/go/alicloud/cms/getMonitorGroups.go @@ -98,21 +98,11 @@ type GetMonitorGroupsResult struct { } func GetMonitorGroupsOutput(ctx *pulumi.Context, args GetMonitorGroupsOutputArgs, opts ...pulumi.InvokeOption) GetMonitorGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetMonitorGroupsResultOutput, error) { args := v.(GetMonitorGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetMonitorGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:cms/getMonitorGroups:getMonitorGroups", args, &rv, "", opts...) - if err != nil { - return GetMonitorGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetMonitorGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetMonitorGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cms/getMonitorGroups:getMonitorGroups", args, GetMonitorGroupsResultOutput{}, options).(GetMonitorGroupsResultOutput), nil }).(GetMonitorGroupsResultOutput) } diff --git a/sdk/go/alicloud/cms/getNamespaces.go b/sdk/go/alicloud/cms/getNamespaces.go index 2616ff67a5..e151165f03 100644 --- a/sdk/go/alicloud/cms/getNamespaces.go +++ b/sdk/go/alicloud/cms/getNamespaces.go @@ -80,21 +80,11 @@ type GetNamespacesResult struct { } func GetNamespacesOutput(ctx *pulumi.Context, args GetNamespacesOutputArgs, opts ...pulumi.InvokeOption) GetNamespacesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNamespacesResultOutput, error) { args := v.(GetNamespacesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNamespacesResult - secret, err := ctx.InvokePackageRaw("alicloud:cms/getNamespaces:getNamespaces", args, &rv, "", opts...) - if err != nil { - return GetNamespacesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNamespacesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNamespacesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cms/getNamespaces:getNamespaces", args, GetNamespacesResultOutput{}, options).(GetNamespacesResultOutput), nil }).(GetNamespacesResultOutput) } diff --git a/sdk/go/alicloud/cms/getService.go b/sdk/go/alicloud/cms/getService.go index 53437d28c7..8e8f1adb83 100644 --- a/sdk/go/alicloud/cms/getService.go +++ b/sdk/go/alicloud/cms/getService.go @@ -72,21 +72,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:cms/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cms/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/cms/getSiteMonitors.go b/sdk/go/alicloud/cms/getSiteMonitors.go index 6208043d97..f9b9587954 100644 --- a/sdk/go/alicloud/cms/getSiteMonitors.go +++ b/sdk/go/alicloud/cms/getSiteMonitors.go @@ -128,21 +128,11 @@ type GetSiteMonitorsResult struct { } func GetSiteMonitorsOutput(ctx *pulumi.Context, args GetSiteMonitorsOutputArgs, opts ...pulumi.InvokeOption) GetSiteMonitorsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSiteMonitorsResultOutput, error) { args := v.(GetSiteMonitorsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSiteMonitorsResult - secret, err := ctx.InvokePackageRaw("alicloud:cms/getSiteMonitors:getSiteMonitors", args, &rv, "", opts...) - if err != nil { - return GetSiteMonitorsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSiteMonitorsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSiteMonitorsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cms/getSiteMonitors:getSiteMonitors", args, GetSiteMonitorsResultOutput{}, options).(GetSiteMonitorsResultOutput), nil }).(GetSiteMonitorsResultOutput) } diff --git a/sdk/go/alicloud/cms/getSlsGroups.go b/sdk/go/alicloud/cms/getSlsGroups.go index 17e3f68991..f548fbfc2b 100644 --- a/sdk/go/alicloud/cms/getSlsGroups.go +++ b/sdk/go/alicloud/cms/getSlsGroups.go @@ -91,21 +91,11 @@ type GetSlsGroupsResult struct { } func GetSlsGroupsOutput(ctx *pulumi.Context, args GetSlsGroupsOutputArgs, opts ...pulumi.InvokeOption) GetSlsGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSlsGroupsResultOutput, error) { args := v.(GetSlsGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSlsGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:cms/getSlsGroups:getSlsGroups", args, &rv, "", opts...) - if err != nil { - return GetSlsGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSlsGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSlsGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cms/getSlsGroups:getSlsGroups", args, GetSlsGroupsResultOutput{}, options).(GetSlsGroupsResultOutput), nil }).(GetSlsGroupsResultOutput) } diff --git a/sdk/go/alicloud/compute/getNestServiceInstances.go b/sdk/go/alicloud/compute/getNestServiceInstances.go index facadc510a..89c151a16a 100644 --- a/sdk/go/alicloud/compute/getNestServiceInstances.go +++ b/sdk/go/alicloud/compute/getNestServiceInstances.go @@ -97,21 +97,11 @@ type GetNestServiceInstancesResult struct { } func GetNestServiceInstancesOutput(ctx *pulumi.Context, args GetNestServiceInstancesOutputArgs, opts ...pulumi.InvokeOption) GetNestServiceInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNestServiceInstancesResultOutput, error) { args := v.(GetNestServiceInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNestServiceInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:compute/getNestServiceInstances:getNestServiceInstances", args, &rv, "", opts...) - if err != nil { - return GetNestServiceInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNestServiceInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNestServiceInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:compute/getNestServiceInstances:getNestServiceInstances", args, GetNestServiceInstancesResultOutput{}, options).(GetNestServiceInstancesResultOutput), nil }).(GetNestServiceInstancesResultOutput) } diff --git a/sdk/go/alicloud/cr/getChains.go b/sdk/go/alicloud/cr/getChains.go index bbd7ce6930..fbc75884ff 100644 --- a/sdk/go/alicloud/cr/getChains.go +++ b/sdk/go/alicloud/cr/getChains.go @@ -104,21 +104,11 @@ type GetChainsResult struct { } func GetChainsOutput(ctx *pulumi.Context, args GetChainsOutputArgs, opts ...pulumi.InvokeOption) GetChainsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetChainsResultOutput, error) { args := v.(GetChainsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetChainsResult - secret, err := ctx.InvokePackageRaw("alicloud:cr/getChains:getChains", args, &rv, "", opts...) - if err != nil { - return GetChainsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetChainsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetChainsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cr/getChains:getChains", args, GetChainsResultOutput{}, options).(GetChainsResultOutput), nil }).(GetChainsResultOutput) } diff --git a/sdk/go/alicloud/cr/getChartNamespaces.go b/sdk/go/alicloud/cr/getChartNamespaces.go index 8b1c9d3ce0..8225485270 100644 --- a/sdk/go/alicloud/cr/getChartNamespaces.go +++ b/sdk/go/alicloud/cr/getChartNamespaces.go @@ -49,21 +49,11 @@ type GetChartNamespacesResult struct { } func GetChartNamespacesOutput(ctx *pulumi.Context, args GetChartNamespacesOutputArgs, opts ...pulumi.InvokeOption) GetChartNamespacesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetChartNamespacesResultOutput, error) { args := v.(GetChartNamespacesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetChartNamespacesResult - secret, err := ctx.InvokePackageRaw("alicloud:cr/getChartNamespaces:getChartNamespaces", args, &rv, "", opts...) - if err != nil { - return GetChartNamespacesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetChartNamespacesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetChartNamespacesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cr/getChartNamespaces:getChartNamespaces", args, GetChartNamespacesResultOutput{}, options).(GetChartNamespacesResultOutput), nil }).(GetChartNamespacesResultOutput) } diff --git a/sdk/go/alicloud/cr/getChartRepositories.go b/sdk/go/alicloud/cr/getChartRepositories.go index 892f4a424b..c2b8372b53 100644 --- a/sdk/go/alicloud/cr/getChartRepositories.go +++ b/sdk/go/alicloud/cr/getChartRepositories.go @@ -82,21 +82,11 @@ type GetChartRepositoriesResult struct { } func GetChartRepositoriesOutput(ctx *pulumi.Context, args GetChartRepositoriesOutputArgs, opts ...pulumi.InvokeOption) GetChartRepositoriesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetChartRepositoriesResultOutput, error) { args := v.(GetChartRepositoriesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetChartRepositoriesResult - secret, err := ctx.InvokePackageRaw("alicloud:cr/getChartRepositories:getChartRepositories", args, &rv, "", opts...) - if err != nil { - return GetChartRepositoriesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetChartRepositoriesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetChartRepositoriesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cr/getChartRepositories:getChartRepositories", args, GetChartRepositoriesResultOutput{}, options).(GetChartRepositoriesResultOutput), nil }).(GetChartRepositoriesResultOutput) } diff --git a/sdk/go/alicloud/cr/getEndpointAclPolicies.go b/sdk/go/alicloud/cr/getEndpointAclPolicies.go index 3e6517980b..ecbacd2b34 100644 --- a/sdk/go/alicloud/cr/getEndpointAclPolicies.go +++ b/sdk/go/alicloud/cr/getEndpointAclPolicies.go @@ -82,21 +82,11 @@ type GetEndpointAclPoliciesResult struct { } func GetEndpointAclPoliciesOutput(ctx *pulumi.Context, args GetEndpointAclPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetEndpointAclPoliciesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEndpointAclPoliciesResultOutput, error) { args := v.(GetEndpointAclPoliciesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEndpointAclPoliciesResult - secret, err := ctx.InvokePackageRaw("alicloud:cr/getEndpointAclPolicies:getEndpointAclPolicies", args, &rv, "", opts...) - if err != nil { - return GetEndpointAclPoliciesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEndpointAclPoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEndpointAclPoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cr/getEndpointAclPolicies:getEndpointAclPolicies", args, GetEndpointAclPoliciesResultOutput{}, options).(GetEndpointAclPoliciesResultOutput), nil }).(GetEndpointAclPoliciesResultOutput) } diff --git a/sdk/go/alicloud/cr/getEndpointAclService.go b/sdk/go/alicloud/cr/getEndpointAclService.go index f71745c667..fc51277fb2 100644 --- a/sdk/go/alicloud/cr/getEndpointAclService.go +++ b/sdk/go/alicloud/cr/getEndpointAclService.go @@ -85,21 +85,11 @@ type GetEndpointAclServiceResult struct { } func GetEndpointAclServiceOutput(ctx *pulumi.Context, args GetEndpointAclServiceOutputArgs, opts ...pulumi.InvokeOption) GetEndpointAclServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEndpointAclServiceResultOutput, error) { args := v.(GetEndpointAclServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEndpointAclServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:cr/getEndpointAclService:getEndpointAclService", args, &rv, "", opts...) - if err != nil { - return GetEndpointAclServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEndpointAclServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEndpointAclServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cr/getEndpointAclService:getEndpointAclService", args, GetEndpointAclServiceResultOutput{}, options).(GetEndpointAclServiceResultOutput), nil }).(GetEndpointAclServiceResultOutput) } diff --git a/sdk/go/alicloud/cr/getNamespaces.go b/sdk/go/alicloud/cr/getNamespaces.go index f6c0933eb4..fa3497b044 100644 --- a/sdk/go/alicloud/cr/getNamespaces.go +++ b/sdk/go/alicloud/cr/getNamespaces.go @@ -76,21 +76,11 @@ type GetNamespacesResult struct { } func GetNamespacesOutput(ctx *pulumi.Context, args GetNamespacesOutputArgs, opts ...pulumi.InvokeOption) GetNamespacesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNamespacesResultOutput, error) { args := v.(GetNamespacesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNamespacesResult - secret, err := ctx.InvokePackageRaw("alicloud:cr/getNamespaces:getNamespaces", args, &rv, "", opts...) - if err != nil { - return GetNamespacesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNamespacesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNamespacesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cr/getNamespaces:getNamespaces", args, GetNamespacesResultOutput{}, options).(GetNamespacesResultOutput), nil }).(GetNamespacesResultOutput) } diff --git a/sdk/go/alicloud/cr/getRepos.go b/sdk/go/alicloud/cr/getRepos.go index f516991d71..8319dfa4c1 100644 --- a/sdk/go/alicloud/cr/getRepos.go +++ b/sdk/go/alicloud/cr/getRepos.go @@ -83,21 +83,11 @@ type GetReposResult struct { } func GetReposOutput(ctx *pulumi.Context, args GetReposOutputArgs, opts ...pulumi.InvokeOption) GetReposResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetReposResultOutput, error) { args := v.(GetReposArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetReposResult - secret, err := ctx.InvokePackageRaw("alicloud:cr/getRepos:getRepos", args, &rv, "", opts...) - if err != nil { - return GetReposResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetReposResultOutput) - if secret { - return pulumi.ToSecret(output).(GetReposResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cr/getRepos:getRepos", args, GetReposResultOutput{}, options).(GetReposResultOutput), nil }).(GetReposResultOutput) } diff --git a/sdk/go/alicloud/cr/getService.go b/sdk/go/alicloud/cr/getService.go index 2d565a7d97..85d9600100 100644 --- a/sdk/go/alicloud/cr/getService.go +++ b/sdk/go/alicloud/cr/getService.go @@ -74,21 +74,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:cr/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cr/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/cr/getVpcEndpointLinkedVpcs.go b/sdk/go/alicloud/cr/getVpcEndpointLinkedVpcs.go index f7636c824a..be22447ff4 100644 --- a/sdk/go/alicloud/cr/getVpcEndpointLinkedVpcs.go +++ b/sdk/go/alicloud/cr/getVpcEndpointLinkedVpcs.go @@ -90,21 +90,11 @@ type GetVpcEndpointLinkedVpcsResult struct { } func GetVpcEndpointLinkedVpcsOutput(ctx *pulumi.Context, args GetVpcEndpointLinkedVpcsOutputArgs, opts ...pulumi.InvokeOption) GetVpcEndpointLinkedVpcsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVpcEndpointLinkedVpcsResultOutput, error) { args := v.(GetVpcEndpointLinkedVpcsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVpcEndpointLinkedVpcsResult - secret, err := ctx.InvokePackageRaw("alicloud:cr/getVpcEndpointLinkedVpcs:getVpcEndpointLinkedVpcs", args, &rv, "", opts...) - if err != nil { - return GetVpcEndpointLinkedVpcsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVpcEndpointLinkedVpcsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVpcEndpointLinkedVpcsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cr/getVpcEndpointLinkedVpcs:getVpcEndpointLinkedVpcs", args, GetVpcEndpointLinkedVpcsResultOutput{}, options).(GetVpcEndpointLinkedVpcsResultOutput), nil }).(GetVpcEndpointLinkedVpcsResultOutput) } diff --git a/sdk/go/alicloud/cs/getAckService.go b/sdk/go/alicloud/cs/getAckService.go index 535c0e9c71..2ce99dd748 100644 --- a/sdk/go/alicloud/cs/getAckService.go +++ b/sdk/go/alicloud/cs/getAckService.go @@ -74,21 +74,11 @@ type GetAckServiceResult struct { } func GetAckServiceOutput(ctx *pulumi.Context, args GetAckServiceOutputArgs, opts ...pulumi.InvokeOption) GetAckServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAckServiceResultOutput, error) { args := v.(GetAckServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAckServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:cs/getAckService:getAckService", args, &rv, "", opts...) - if err != nil { - return GetAckServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAckServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAckServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cs/getAckService:getAckService", args, GetAckServiceResultOutput{}, options).(GetAckServiceResultOutput), nil }).(GetAckServiceResultOutput) } diff --git a/sdk/go/alicloud/cs/getClusterCredential.go b/sdk/go/alicloud/cs/getClusterCredential.go index 0de31aae6a..1bd15009c3 100644 --- a/sdk/go/alicloud/cs/getClusterCredential.go +++ b/sdk/go/alicloud/cs/getClusterCredential.go @@ -55,21 +55,11 @@ type GetClusterCredentialResult struct { } func GetClusterCredentialOutput(ctx *pulumi.Context, args GetClusterCredentialOutputArgs, opts ...pulumi.InvokeOption) GetClusterCredentialResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetClusterCredentialResultOutput, error) { args := v.(GetClusterCredentialArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetClusterCredentialResult - secret, err := ctx.InvokePackageRaw("alicloud:cs/getClusterCredential:getClusterCredential", args, &rv, "", opts...) - if err != nil { - return GetClusterCredentialResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetClusterCredentialResultOutput) - if secret { - return pulumi.ToSecret(output).(GetClusterCredentialResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cs/getClusterCredential:getClusterCredential", args, GetClusterCredentialResultOutput{}, options).(GetClusterCredentialResultOutput), nil }).(GetClusterCredentialResultOutput) } diff --git a/sdk/go/alicloud/cs/getEdgeKubernetesClusters.go b/sdk/go/alicloud/cs/getEdgeKubernetesClusters.go index 2afcd70c2c..a9a805079a 100644 --- a/sdk/go/alicloud/cs/getEdgeKubernetesClusters.go +++ b/sdk/go/alicloud/cs/getEdgeKubernetesClusters.go @@ -80,21 +80,11 @@ type GetEdgeKubernetesClustersResult struct { } func GetEdgeKubernetesClustersOutput(ctx *pulumi.Context, args GetEdgeKubernetesClustersOutputArgs, opts ...pulumi.InvokeOption) GetEdgeKubernetesClustersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEdgeKubernetesClustersResultOutput, error) { args := v.(GetEdgeKubernetesClustersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEdgeKubernetesClustersResult - secret, err := ctx.InvokePackageRaw("alicloud:cs/getEdgeKubernetesClusters:getEdgeKubernetesClusters", args, &rv, "", opts...) - if err != nil { - return GetEdgeKubernetesClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEdgeKubernetesClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEdgeKubernetesClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cs/getEdgeKubernetesClusters:getEdgeKubernetesClusters", args, GetEdgeKubernetesClustersResultOutput{}, options).(GetEdgeKubernetesClustersResultOutput), nil }).(GetEdgeKubernetesClustersResultOutput) } diff --git a/sdk/go/alicloud/cs/getKubernetesAddonMetadata.go b/sdk/go/alicloud/cs/getKubernetesAddonMetadata.go index 99a8e0ad2e..b15fdad020 100644 --- a/sdk/go/alicloud/cs/getKubernetesAddonMetadata.go +++ b/sdk/go/alicloud/cs/getKubernetesAddonMetadata.go @@ -46,21 +46,11 @@ type GetKubernetesAddonMetadataResult struct { } func GetKubernetesAddonMetadataOutput(ctx *pulumi.Context, args GetKubernetesAddonMetadataOutputArgs, opts ...pulumi.InvokeOption) GetKubernetesAddonMetadataResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKubernetesAddonMetadataResultOutput, error) { args := v.(GetKubernetesAddonMetadataArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKubernetesAddonMetadataResult - secret, err := ctx.InvokePackageRaw("alicloud:cs/getKubernetesAddonMetadata:getKubernetesAddonMetadata", args, &rv, "", opts...) - if err != nil { - return GetKubernetesAddonMetadataResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKubernetesAddonMetadataResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKubernetesAddonMetadataResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cs/getKubernetesAddonMetadata:getKubernetesAddonMetadata", args, GetKubernetesAddonMetadataResultOutput{}, options).(GetKubernetesAddonMetadataResultOutput), nil }).(GetKubernetesAddonMetadataResultOutput) } diff --git a/sdk/go/alicloud/cs/getKubernetesAddons.go b/sdk/go/alicloud/cs/getKubernetesAddons.go index be7fc1f683..f0c4725251 100644 --- a/sdk/go/alicloud/cs/getKubernetesAddons.go +++ b/sdk/go/alicloud/cs/getKubernetesAddons.go @@ -50,21 +50,11 @@ type GetKubernetesAddonsResult struct { } func GetKubernetesAddonsOutput(ctx *pulumi.Context, args GetKubernetesAddonsOutputArgs, opts ...pulumi.InvokeOption) GetKubernetesAddonsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKubernetesAddonsResultOutput, error) { args := v.(GetKubernetesAddonsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKubernetesAddonsResult - secret, err := ctx.InvokePackageRaw("alicloud:cs/getKubernetesAddons:getKubernetesAddons", args, &rv, "", opts...) - if err != nil { - return GetKubernetesAddonsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKubernetesAddonsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKubernetesAddonsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cs/getKubernetesAddons:getKubernetesAddons", args, GetKubernetesAddonsResultOutput{}, options).(GetKubernetesAddonsResultOutput), nil }).(GetKubernetesAddonsResultOutput) } diff --git a/sdk/go/alicloud/cs/getKubernetesClusters.go b/sdk/go/alicloud/cs/getKubernetesClusters.go index f3cc90aaa3..ff682d7610 100644 --- a/sdk/go/alicloud/cs/getKubernetesClusters.go +++ b/sdk/go/alicloud/cs/getKubernetesClusters.go @@ -87,21 +87,11 @@ type GetKubernetesClustersResult struct { } func GetKubernetesClustersOutput(ctx *pulumi.Context, args GetKubernetesClustersOutputArgs, opts ...pulumi.InvokeOption) GetKubernetesClustersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKubernetesClustersResultOutput, error) { args := v.(GetKubernetesClustersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKubernetesClustersResult - secret, err := ctx.InvokePackageRaw("alicloud:cs/getKubernetesClusters:getKubernetesClusters", args, &rv, "", opts...) - if err != nil { - return GetKubernetesClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKubernetesClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKubernetesClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cs/getKubernetesClusters:getKubernetesClusters", args, GetKubernetesClustersResultOutput{}, options).(GetKubernetesClustersResultOutput), nil }).(GetKubernetesClustersResultOutput) } diff --git a/sdk/go/alicloud/cs/getKubernetesPermission.go b/sdk/go/alicloud/cs/getKubernetesPermission.go index ffd71bd3fe..809aa61662 100644 --- a/sdk/go/alicloud/cs/getKubernetesPermission.go +++ b/sdk/go/alicloud/cs/getKubernetesPermission.go @@ -75,21 +75,11 @@ type LookupKubernetesPermissionResult struct { } func LookupKubernetesPermissionOutput(ctx *pulumi.Context, args LookupKubernetesPermissionOutputArgs, opts ...pulumi.InvokeOption) LookupKubernetesPermissionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupKubernetesPermissionResultOutput, error) { args := v.(LookupKubernetesPermissionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupKubernetesPermissionResult - secret, err := ctx.InvokePackageRaw("alicloud:cs/getKubernetesPermission:getKubernetesPermission", args, &rv, "", opts...) - if err != nil { - return LookupKubernetesPermissionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupKubernetesPermissionResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupKubernetesPermissionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cs/getKubernetesPermission:getKubernetesPermission", args, LookupKubernetesPermissionResultOutput{}, options).(LookupKubernetesPermissionResultOutput), nil }).(LookupKubernetesPermissionResultOutput) } diff --git a/sdk/go/alicloud/cs/getKubernetesVersion.go b/sdk/go/alicloud/cs/getKubernetesVersion.go index 452d323cf2..20705cd5fd 100644 --- a/sdk/go/alicloud/cs/getKubernetesVersion.go +++ b/sdk/go/alicloud/cs/getKubernetesVersion.go @@ -160,21 +160,11 @@ type GetKubernetesVersionResult struct { } func GetKubernetesVersionOutput(ctx *pulumi.Context, args GetKubernetesVersionOutputArgs, opts ...pulumi.InvokeOption) GetKubernetesVersionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKubernetesVersionResultOutput, error) { args := v.(GetKubernetesVersionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKubernetesVersionResult - secret, err := ctx.InvokePackageRaw("alicloud:cs/getKubernetesVersion:getKubernetesVersion", args, &rv, "", opts...) - if err != nil { - return GetKubernetesVersionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKubernetesVersionResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKubernetesVersionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cs/getKubernetesVersion:getKubernetesVersion", args, GetKubernetesVersionResultOutput{}, options).(GetKubernetesVersionResultOutput), nil }).(GetKubernetesVersionResultOutput) } diff --git a/sdk/go/alicloud/cs/getManagedKubernetesClusters.go b/sdk/go/alicloud/cs/getManagedKubernetesClusters.go index 8e58940132..3dd0744d2c 100644 --- a/sdk/go/alicloud/cs/getManagedKubernetesClusters.go +++ b/sdk/go/alicloud/cs/getManagedKubernetesClusters.go @@ -86,21 +86,11 @@ type GetManagedKubernetesClustersResult struct { } func GetManagedKubernetesClustersOutput(ctx *pulumi.Context, args GetManagedKubernetesClustersOutputArgs, opts ...pulumi.InvokeOption) GetManagedKubernetesClustersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetManagedKubernetesClustersResultOutput, error) { args := v.(GetManagedKubernetesClustersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetManagedKubernetesClustersResult - secret, err := ctx.InvokePackageRaw("alicloud:cs/getManagedKubernetesClusters:getManagedKubernetesClusters", args, &rv, "", opts...) - if err != nil { - return GetManagedKubernetesClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetManagedKubernetesClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetManagedKubernetesClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cs/getManagedKubernetesClusters:getManagedKubernetesClusters", args, GetManagedKubernetesClustersResultOutput{}, options).(GetManagedKubernetesClustersResultOutput), nil }).(GetManagedKubernetesClustersResultOutput) } diff --git a/sdk/go/alicloud/cs/getRegistryEnterpriseInstances.go b/sdk/go/alicloud/cs/getRegistryEnterpriseInstances.go index 596a73fc61..c216ade5d7 100644 --- a/sdk/go/alicloud/cs/getRegistryEnterpriseInstances.go +++ b/sdk/go/alicloud/cs/getRegistryEnterpriseInstances.go @@ -81,21 +81,11 @@ type GetRegistryEnterpriseInstancesResult struct { } func GetRegistryEnterpriseInstancesOutput(ctx *pulumi.Context, args GetRegistryEnterpriseInstancesOutputArgs, opts ...pulumi.InvokeOption) GetRegistryEnterpriseInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegistryEnterpriseInstancesResultOutput, error) { args := v.(GetRegistryEnterpriseInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegistryEnterpriseInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:cs/getRegistryEnterpriseInstances:getRegistryEnterpriseInstances", args, &rv, "", opts...) - if err != nil { - return GetRegistryEnterpriseInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegistryEnterpriseInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegistryEnterpriseInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cs/getRegistryEnterpriseInstances:getRegistryEnterpriseInstances", args, GetRegistryEnterpriseInstancesResultOutput{}, options).(GetRegistryEnterpriseInstancesResultOutput), nil }).(GetRegistryEnterpriseInstancesResultOutput) } diff --git a/sdk/go/alicloud/cs/getRegistryEnterpriseNamespaces.go b/sdk/go/alicloud/cs/getRegistryEnterpriseNamespaces.go index f71da2f27c..97f0c4b729 100644 --- a/sdk/go/alicloud/cs/getRegistryEnterpriseNamespaces.go +++ b/sdk/go/alicloud/cs/getRegistryEnterpriseNamespaces.go @@ -83,21 +83,11 @@ type GetRegistryEnterpriseNamespacesResult struct { } func GetRegistryEnterpriseNamespacesOutput(ctx *pulumi.Context, args GetRegistryEnterpriseNamespacesOutputArgs, opts ...pulumi.InvokeOption) GetRegistryEnterpriseNamespacesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegistryEnterpriseNamespacesResultOutput, error) { args := v.(GetRegistryEnterpriseNamespacesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegistryEnterpriseNamespacesResult - secret, err := ctx.InvokePackageRaw("alicloud:cs/getRegistryEnterpriseNamespaces:getRegistryEnterpriseNamespaces", args, &rv, "", opts...) - if err != nil { - return GetRegistryEnterpriseNamespacesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegistryEnterpriseNamespacesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegistryEnterpriseNamespacesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cs/getRegistryEnterpriseNamespaces:getRegistryEnterpriseNamespaces", args, GetRegistryEnterpriseNamespacesResultOutput{}, options).(GetRegistryEnterpriseNamespacesResultOutput), nil }).(GetRegistryEnterpriseNamespacesResultOutput) } diff --git a/sdk/go/alicloud/cs/getRegistryEnterpriseRepos.go b/sdk/go/alicloud/cs/getRegistryEnterpriseRepos.go index cda7deb995..18f931dec6 100644 --- a/sdk/go/alicloud/cs/getRegistryEnterpriseRepos.go +++ b/sdk/go/alicloud/cs/getRegistryEnterpriseRepos.go @@ -90,21 +90,11 @@ type GetRegistryEnterpriseReposResult struct { } func GetRegistryEnterpriseReposOutput(ctx *pulumi.Context, args GetRegistryEnterpriseReposOutputArgs, opts ...pulumi.InvokeOption) GetRegistryEnterpriseReposResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegistryEnterpriseReposResultOutput, error) { args := v.(GetRegistryEnterpriseReposArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegistryEnterpriseReposResult - secret, err := ctx.InvokePackageRaw("alicloud:cs/getRegistryEnterpriseRepos:getRegistryEnterpriseRepos", args, &rv, "", opts...) - if err != nil { - return GetRegistryEnterpriseReposResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegistryEnterpriseReposResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegistryEnterpriseReposResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cs/getRegistryEnterpriseRepos:getRegistryEnterpriseRepos", args, GetRegistryEnterpriseReposResultOutput{}, options).(GetRegistryEnterpriseReposResultOutput), nil }).(GetRegistryEnterpriseReposResultOutput) } diff --git a/sdk/go/alicloud/cs/getRegistryEnterpriseSyncRules.go b/sdk/go/alicloud/cs/getRegistryEnterpriseSyncRules.go index 95f305971f..befa602dac 100644 --- a/sdk/go/alicloud/cs/getRegistryEnterpriseSyncRules.go +++ b/sdk/go/alicloud/cs/getRegistryEnterpriseSyncRules.go @@ -95,21 +95,11 @@ type GetRegistryEnterpriseSyncRulesResult struct { } func GetRegistryEnterpriseSyncRulesOutput(ctx *pulumi.Context, args GetRegistryEnterpriseSyncRulesOutputArgs, opts ...pulumi.InvokeOption) GetRegistryEnterpriseSyncRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegistryEnterpriseSyncRulesResultOutput, error) { args := v.(GetRegistryEnterpriseSyncRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegistryEnterpriseSyncRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:cs/getRegistryEnterpriseSyncRules:getRegistryEnterpriseSyncRules", args, &rv, "", opts...) - if err != nil { - return GetRegistryEnterpriseSyncRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegistryEnterpriseSyncRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegistryEnterpriseSyncRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cs/getRegistryEnterpriseSyncRules:getRegistryEnterpriseSyncRules", args, GetRegistryEnterpriseSyncRulesResultOutput{}, options).(GetRegistryEnterpriseSyncRulesResultOutput), nil }).(GetRegistryEnterpriseSyncRulesResultOutput) } diff --git a/sdk/go/alicloud/cs/getServerlessKubernetesClusters.go b/sdk/go/alicloud/cs/getServerlessKubernetesClusters.go index c11fb82723..b963d76d3c 100644 --- a/sdk/go/alicloud/cs/getServerlessKubernetesClusters.go +++ b/sdk/go/alicloud/cs/getServerlessKubernetesClusters.go @@ -87,21 +87,11 @@ type GetServerlessKubernetesClustersResult struct { } func GetServerlessKubernetesClustersOutput(ctx *pulumi.Context, args GetServerlessKubernetesClustersOutputArgs, opts ...pulumi.InvokeOption) GetServerlessKubernetesClustersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServerlessKubernetesClustersResultOutput, error) { args := v.(GetServerlessKubernetesClustersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServerlessKubernetesClustersResult - secret, err := ctx.InvokePackageRaw("alicloud:cs/getServerlessKubernetesClusters:getServerlessKubernetesClusters", args, &rv, "", opts...) - if err != nil { - return GetServerlessKubernetesClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServerlessKubernetesClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServerlessKubernetesClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:cs/getServerlessKubernetesClusters:getServerlessKubernetesClusters", args, GetServerlessKubernetesClustersResultOutput{}, options).(GetServerlessKubernetesClustersResultOutput), nil }).(GetServerlessKubernetesClustersResultOutput) } diff --git a/sdk/go/alicloud/databasefilesystem/getAutoSnapShotPolicies.go b/sdk/go/alicloud/databasefilesystem/getAutoSnapShotPolicies.go index 5e16d49fda..250b9d13f1 100644 --- a/sdk/go/alicloud/databasefilesystem/getAutoSnapShotPolicies.go +++ b/sdk/go/alicloud/databasefilesystem/getAutoSnapShotPolicies.go @@ -80,21 +80,11 @@ type GetAutoSnapShotPoliciesResult struct { } func GetAutoSnapShotPoliciesOutput(ctx *pulumi.Context, args GetAutoSnapShotPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetAutoSnapShotPoliciesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAutoSnapShotPoliciesResultOutput, error) { args := v.(GetAutoSnapShotPoliciesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAutoSnapShotPoliciesResult - secret, err := ctx.InvokePackageRaw("alicloud:databasefilesystem/getAutoSnapShotPolicies:getAutoSnapShotPolicies", args, &rv, "", opts...) - if err != nil { - return GetAutoSnapShotPoliciesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAutoSnapShotPoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAutoSnapShotPoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:databasefilesystem/getAutoSnapShotPolicies:getAutoSnapShotPolicies", args, GetAutoSnapShotPoliciesResultOutput{}, options).(GetAutoSnapShotPoliciesResultOutput), nil }).(GetAutoSnapShotPoliciesResultOutput) } diff --git a/sdk/go/alicloud/databasefilesystem/getInstances.go b/sdk/go/alicloud/databasefilesystem/getInstances.go index 4f41cd7c74..c0bf2cb10d 100644 --- a/sdk/go/alicloud/databasefilesystem/getInstances.go +++ b/sdk/go/alicloud/databasefilesystem/getInstances.go @@ -87,21 +87,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:databasefilesystem/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:databasefilesystem/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/databasefilesystem/getSnapshots.go b/sdk/go/alicloud/databasefilesystem/getSnapshots.go index b2a1ce7c9f..10f0508ff2 100644 --- a/sdk/go/alicloud/databasefilesystem/getSnapshots.go +++ b/sdk/go/alicloud/databasefilesystem/getSnapshots.go @@ -94,21 +94,11 @@ type GetSnapshotsResult struct { } func GetSnapshotsOutput(ctx *pulumi.Context, args GetSnapshotsOutputArgs, opts ...pulumi.InvokeOption) GetSnapshotsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSnapshotsResultOutput, error) { args := v.(GetSnapshotsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSnapshotsResult - secret, err := ctx.InvokePackageRaw("alicloud:databasefilesystem/getSnapshots:getSnapshots", args, &rv, "", opts...) - if err != nil { - return GetSnapshotsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSnapshotsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSnapshotsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:databasefilesystem/getSnapshots:getSnapshots", args, GetSnapshotsResultOutput{}, options).(GetSnapshotsResultOutput), nil }).(GetSnapshotsResultOutput) } diff --git a/sdk/go/alicloud/databasegateway/getGateways.go b/sdk/go/alicloud/databasegateway/getGateways.go index e540d5bbef..f86003be06 100644 --- a/sdk/go/alicloud/databasegateway/getGateways.go +++ b/sdk/go/alicloud/databasegateway/getGateways.go @@ -93,21 +93,11 @@ type GetGatewaysResult struct { } func GetGatewaysOutput(ctx *pulumi.Context, args GetGatewaysOutputArgs, opts ...pulumi.InvokeOption) GetGatewaysResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGatewaysResultOutput, error) { args := v.(GetGatewaysArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGatewaysResult - secret, err := ctx.InvokePackageRaw("alicloud:databasegateway/getGateways:getGateways", args, &rv, "", opts...) - if err != nil { - return GetGatewaysResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGatewaysResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGatewaysResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:databasegateway/getGateways:getGateways", args, GetGatewaysResultOutput{}, options).(GetGatewaysResultOutput), nil }).(GetGatewaysResultOutput) } diff --git a/sdk/go/alicloud/datahub/getService.go b/sdk/go/alicloud/datahub/getService.go index f760653632..cec67d4a76 100644 --- a/sdk/go/alicloud/datahub/getService.go +++ b/sdk/go/alicloud/datahub/getService.go @@ -72,21 +72,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:datahub/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:datahub/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/dataworks/getFolders.go b/sdk/go/alicloud/dataworks/getFolders.go index e1a57b925c..5ddab438b4 100644 --- a/sdk/go/alicloud/dataworks/getFolders.go +++ b/sdk/go/alicloud/dataworks/getFolders.go @@ -91,21 +91,11 @@ type GetFoldersResult struct { } func GetFoldersOutput(ctx *pulumi.Context, args GetFoldersOutputArgs, opts ...pulumi.InvokeOption) GetFoldersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFoldersResultOutput, error) { args := v.(GetFoldersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFoldersResult - secret, err := ctx.InvokePackageRaw("alicloud:dataworks/getFolders:getFolders", args, &rv, "", opts...) - if err != nil { - return GetFoldersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFoldersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFoldersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dataworks/getFolders:getFolders", args, GetFoldersResultOutput{}, options).(GetFoldersResultOutput), nil }).(GetFoldersResultOutput) } diff --git a/sdk/go/alicloud/dataworks/getService.go b/sdk/go/alicloud/dataworks/getService.go index f3c526400f..9c9a450209 100644 --- a/sdk/go/alicloud/dataworks/getService.go +++ b/sdk/go/alicloud/dataworks/getService.go @@ -70,21 +70,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:dataworks/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dataworks/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/dbs/getBackupPlans.go b/sdk/go/alicloud/dbs/getBackupPlans.go index 439208c446..9b291e19c9 100644 --- a/sdk/go/alicloud/dbs/getBackupPlans.go +++ b/sdk/go/alicloud/dbs/getBackupPlans.go @@ -93,21 +93,11 @@ type GetBackupPlansResult struct { } func GetBackupPlansOutput(ctx *pulumi.Context, args GetBackupPlansOutputArgs, opts ...pulumi.InvokeOption) GetBackupPlansResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBackupPlansResultOutput, error) { args := v.(GetBackupPlansArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBackupPlansResult - secret, err := ctx.InvokePackageRaw("alicloud:dbs/getBackupPlans:getBackupPlans", args, &rv, "", opts...) - if err != nil { - return GetBackupPlansResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBackupPlansResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBackupPlansResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dbs/getBackupPlans:getBackupPlans", args, GetBackupPlansResultOutput{}, options).(GetBackupPlansResultOutput), nil }).(GetBackupPlansResultOutput) } diff --git a/sdk/go/alicloud/dcdn/getDomains.go b/sdk/go/alicloud/dcdn/getDomains.go index 5cd175528a..f315085b39 100644 --- a/sdk/go/alicloud/dcdn/getDomains.go +++ b/sdk/go/alicloud/dcdn/getDomains.go @@ -103,21 +103,11 @@ type GetDomainsResult struct { } func GetDomainsOutput(ctx *pulumi.Context, args GetDomainsOutputArgs, opts ...pulumi.InvokeOption) GetDomainsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDomainsResultOutput, error) { args := v.(GetDomainsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDomainsResult - secret, err := ctx.InvokePackageRaw("alicloud:dcdn/getDomains:getDomains", args, &rv, "", opts...) - if err != nil { - return GetDomainsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDomainsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDomainsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dcdn/getDomains:getDomains", args, GetDomainsResultOutput{}, options).(GetDomainsResultOutput), nil }).(GetDomainsResultOutput) } diff --git a/sdk/go/alicloud/dcdn/getIpaDomains.go b/sdk/go/alicloud/dcdn/getIpaDomains.go index 07b7b0071f..147291d837 100644 --- a/sdk/go/alicloud/dcdn/getIpaDomains.go +++ b/sdk/go/alicloud/dcdn/getIpaDomains.go @@ -92,21 +92,11 @@ type GetIpaDomainsResult struct { } func GetIpaDomainsOutput(ctx *pulumi.Context, args GetIpaDomainsOutputArgs, opts ...pulumi.InvokeOption) GetIpaDomainsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIpaDomainsResultOutput, error) { args := v.(GetIpaDomainsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIpaDomainsResult - secret, err := ctx.InvokePackageRaw("alicloud:dcdn/getIpaDomains:getIpaDomains", args, &rv, "", opts...) - if err != nil { - return GetIpaDomainsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIpaDomainsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIpaDomainsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dcdn/getIpaDomains:getIpaDomains", args, GetIpaDomainsResultOutput{}, options).(GetIpaDomainsResultOutput), nil }).(GetIpaDomainsResultOutput) } diff --git a/sdk/go/alicloud/dcdn/getKvAccount.go b/sdk/go/alicloud/dcdn/getKvAccount.go index e898e95c2a..5aeb37a747 100644 --- a/sdk/go/alicloud/dcdn/getKvAccount.go +++ b/sdk/go/alicloud/dcdn/getKvAccount.go @@ -65,21 +65,11 @@ type GetKvAccountResult struct { } func GetKvAccountOutput(ctx *pulumi.Context, args GetKvAccountOutputArgs, opts ...pulumi.InvokeOption) GetKvAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKvAccountResultOutput, error) { args := v.(GetKvAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKvAccountResult - secret, err := ctx.InvokePackageRaw("alicloud:dcdn/getKvAccount:getKvAccount", args, &rv, "", opts...) - if err != nil { - return GetKvAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKvAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKvAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dcdn/getKvAccount:getKvAccount", args, GetKvAccountResultOutput{}, options).(GetKvAccountResultOutput), nil }).(GetKvAccountResultOutput) } diff --git a/sdk/go/alicloud/dcdn/getService.go b/sdk/go/alicloud/dcdn/getService.go index 06f5df432f..f1f03d1463 100644 --- a/sdk/go/alicloud/dcdn/getService.go +++ b/sdk/go/alicloud/dcdn/getService.go @@ -70,21 +70,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:dcdn/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dcdn/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/dcdn/getWafDomains.go b/sdk/go/alicloud/dcdn/getWafDomains.go index a923f419cd..c8af6f23ff 100644 --- a/sdk/go/alicloud/dcdn/getWafDomains.go +++ b/sdk/go/alicloud/dcdn/getWafDomains.go @@ -75,21 +75,11 @@ type GetWafDomainsResult struct { } func GetWafDomainsOutput(ctx *pulumi.Context, args GetWafDomainsOutputArgs, opts ...pulumi.InvokeOption) GetWafDomainsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetWafDomainsResultOutput, error) { args := v.(GetWafDomainsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetWafDomainsResult - secret, err := ctx.InvokePackageRaw("alicloud:dcdn/getWafDomains:getWafDomains", args, &rv, "", opts...) - if err != nil { - return GetWafDomainsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetWafDomainsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetWafDomainsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dcdn/getWafDomains:getWafDomains", args, GetWafDomainsResultOutput{}, options).(GetWafDomainsResultOutput), nil }).(GetWafDomainsResultOutput) } diff --git a/sdk/go/alicloud/dcdn/getWafPolicies.go b/sdk/go/alicloud/dcdn/getWafPolicies.go index 06d47a1875..a17a7ba65e 100644 --- a/sdk/go/alicloud/dcdn/getWafPolicies.go +++ b/sdk/go/alicloud/dcdn/getWafPolicies.go @@ -78,21 +78,11 @@ type GetWafPoliciesResult struct { } func GetWafPoliciesOutput(ctx *pulumi.Context, args GetWafPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetWafPoliciesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetWafPoliciesResultOutput, error) { args := v.(GetWafPoliciesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetWafPoliciesResult - secret, err := ctx.InvokePackageRaw("alicloud:dcdn/getWafPolicies:getWafPolicies", args, &rv, "", opts...) - if err != nil { - return GetWafPoliciesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetWafPoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetWafPoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dcdn/getWafPolicies:getWafPolicies", args, GetWafPoliciesResultOutput{}, options).(GetWafPoliciesResultOutput), nil }).(GetWafPoliciesResultOutput) } diff --git a/sdk/go/alicloud/dcdn/getWafRules.go b/sdk/go/alicloud/dcdn/getWafRules.go index 37e1b2f77e..2450cb44cd 100644 --- a/sdk/go/alicloud/dcdn/getWafRules.go +++ b/sdk/go/alicloud/dcdn/getWafRules.go @@ -77,21 +77,11 @@ type GetWafRulesResult struct { } func GetWafRulesOutput(ctx *pulumi.Context, args GetWafRulesOutputArgs, opts ...pulumi.InvokeOption) GetWafRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetWafRulesResultOutput, error) { args := v.(GetWafRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetWafRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:dcdn/getWafRules:getWafRules", args, &rv, "", opts...) - if err != nil { - return GetWafRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetWafRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetWafRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dcdn/getWafRules:getWafRules", args, GetWafRulesResultOutput{}, options).(GetWafRulesResultOutput), nil }).(GetWafRulesResultOutput) } diff --git a/sdk/go/alicloud/ddos/getDdosBgpInstances.go b/sdk/go/alicloud/ddos/getDdosBgpInstances.go index 35214fe949..a2fa265b98 100644 --- a/sdk/go/alicloud/ddos/getDdosBgpInstances.go +++ b/sdk/go/alicloud/ddos/getDdosBgpInstances.go @@ -92,21 +92,11 @@ type GetDdosBgpInstancesResult struct { } func GetDdosBgpInstancesOutput(ctx *pulumi.Context, args GetDdosBgpInstancesOutputArgs, opts ...pulumi.InvokeOption) GetDdosBgpInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDdosBgpInstancesResultOutput, error) { args := v.(GetDdosBgpInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDdosBgpInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:ddos/getDdosBgpInstances:getDdosBgpInstances", args, &rv, "", opts...) - if err != nil { - return GetDdosBgpInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDdosBgpInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDdosBgpInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ddos/getDdosBgpInstances:getDdosBgpInstances", args, GetDdosBgpInstancesResultOutput{}, options).(GetDdosBgpInstancesResultOutput), nil }).(GetDdosBgpInstancesResultOutput) } diff --git a/sdk/go/alicloud/ddos/getDdosBgpIps.go b/sdk/go/alicloud/ddos/getDdosBgpIps.go index 27e56aaa25..3183107ec4 100644 --- a/sdk/go/alicloud/ddos/getDdosBgpIps.go +++ b/sdk/go/alicloud/ddos/getDdosBgpIps.go @@ -90,21 +90,11 @@ type GetDdosBgpIpsResult struct { } func GetDdosBgpIpsOutput(ctx *pulumi.Context, args GetDdosBgpIpsOutputArgs, opts ...pulumi.InvokeOption) GetDdosBgpIpsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDdosBgpIpsResultOutput, error) { args := v.(GetDdosBgpIpsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDdosBgpIpsResult - secret, err := ctx.InvokePackageRaw("alicloud:ddos/getDdosBgpIps:getDdosBgpIps", args, &rv, "", opts...) - if err != nil { - return GetDdosBgpIpsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDdosBgpIpsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDdosBgpIpsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ddos/getDdosBgpIps:getDdosBgpIps", args, GetDdosBgpIpsResultOutput{}, options).(GetDdosBgpIpsResultOutput), nil }).(GetDdosBgpIpsResultOutput) } diff --git a/sdk/go/alicloud/ddos/getDdosCooDomainResources.go b/sdk/go/alicloud/ddos/getDdosCooDomainResources.go index 62d904e7c5..60f36f827e 100644 --- a/sdk/go/alicloud/ddos/getDdosCooDomainResources.go +++ b/sdk/go/alicloud/ddos/getDdosCooDomainResources.go @@ -79,21 +79,11 @@ type GetDdosCooDomainResourcesResult struct { } func GetDdosCooDomainResourcesOutput(ctx *pulumi.Context, args GetDdosCooDomainResourcesOutputArgs, opts ...pulumi.InvokeOption) GetDdosCooDomainResourcesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDdosCooDomainResourcesResultOutput, error) { args := v.(GetDdosCooDomainResourcesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDdosCooDomainResourcesResult - secret, err := ctx.InvokePackageRaw("alicloud:ddos/getDdosCooDomainResources:getDdosCooDomainResources", args, &rv, "", opts...) - if err != nil { - return GetDdosCooDomainResourcesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDdosCooDomainResourcesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDdosCooDomainResourcesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ddos/getDdosCooDomainResources:getDdosCooDomainResources", args, GetDdosCooDomainResourcesResultOutput{}, options).(GetDdosCooDomainResourcesResultOutput), nil }).(GetDdosCooDomainResourcesResultOutput) } diff --git a/sdk/go/alicloud/ddos/getDdosCooInstances.go b/sdk/go/alicloud/ddos/getDdosCooInstances.go index 175225efcf..986373253e 100644 --- a/sdk/go/alicloud/ddos/getDdosCooInstances.go +++ b/sdk/go/alicloud/ddos/getDdosCooInstances.go @@ -75,21 +75,11 @@ type GetDdosCooInstancesResult struct { } func GetDdosCooInstancesOutput(ctx *pulumi.Context, args GetDdosCooInstancesOutputArgs, opts ...pulumi.InvokeOption) GetDdosCooInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDdosCooInstancesResultOutput, error) { args := v.(GetDdosCooInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDdosCooInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:ddos/getDdosCooInstances:getDdosCooInstances", args, &rv, "", opts...) - if err != nil { - return GetDdosCooInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDdosCooInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDdosCooInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ddos/getDdosCooInstances:getDdosCooInstances", args, GetDdosCooInstancesResultOutput{}, options).(GetDdosCooInstancesResultOutput), nil }).(GetDdosCooInstancesResultOutput) } diff --git a/sdk/go/alicloud/ddos/getDdosCooPorts.go b/sdk/go/alicloud/ddos/getDdosCooPorts.go index 00b7c713b6..f03357922d 100644 --- a/sdk/go/alicloud/ddos/getDdosCooPorts.go +++ b/sdk/go/alicloud/ddos/getDdosCooPorts.go @@ -83,21 +83,11 @@ type GetDdosCooPortsResult struct { } func GetDdosCooPortsOutput(ctx *pulumi.Context, args GetDdosCooPortsOutputArgs, opts ...pulumi.InvokeOption) GetDdosCooPortsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDdosCooPortsResultOutput, error) { args := v.(GetDdosCooPortsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDdosCooPortsResult - secret, err := ctx.InvokePackageRaw("alicloud:ddos/getDdosCooPorts:getDdosCooPorts", args, &rv, "", opts...) - if err != nil { - return GetDdosCooPortsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDdosCooPortsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDdosCooPortsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ddos/getDdosCooPorts:getDdosCooPorts", args, GetDdosCooPortsResultOutput{}, options).(GetDdosCooPortsResultOutput), nil }).(GetDdosCooPortsResultOutput) } diff --git a/sdk/go/alicloud/dds/getMongoInstances.go b/sdk/go/alicloud/dds/getMongoInstances.go index 3ddab53901..87d5a03a09 100644 --- a/sdk/go/alicloud/dds/getMongoInstances.go +++ b/sdk/go/alicloud/dds/getMongoInstances.go @@ -48,21 +48,11 @@ type GetMongoInstancesResult struct { } func GetMongoInstancesOutput(ctx *pulumi.Context, args GetMongoInstancesOutputArgs, opts ...pulumi.InvokeOption) GetMongoInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetMongoInstancesResultOutput, error) { args := v.(GetMongoInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetMongoInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:dds/getMongoInstances:getMongoInstances", args, &rv, "", opts...) - if err != nil { - return GetMongoInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetMongoInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetMongoInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dds/getMongoInstances:getMongoInstances", args, GetMongoInstancesResultOutput{}, options).(GetMongoInstancesResultOutput), nil }).(GetMongoInstancesResultOutput) } diff --git a/sdk/go/alicloud/dfs/getAccessGroups.go b/sdk/go/alicloud/dfs/getAccessGroups.go index 905c8cf172..b6f6aff63e 100644 --- a/sdk/go/alicloud/dfs/getAccessGroups.go +++ b/sdk/go/alicloud/dfs/getAccessGroups.go @@ -92,21 +92,11 @@ type GetAccessGroupsResult struct { } func GetAccessGroupsOutput(ctx *pulumi.Context, args GetAccessGroupsOutputArgs, opts ...pulumi.InvokeOption) GetAccessGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccessGroupsResultOutput, error) { args := v.(GetAccessGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccessGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:dfs/getAccessGroups:getAccessGroups", args, &rv, "", opts...) - if err != nil { - return GetAccessGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccessGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccessGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dfs/getAccessGroups:getAccessGroups", args, GetAccessGroupsResultOutput{}, options).(GetAccessGroupsResultOutput), nil }).(GetAccessGroupsResultOutput) } diff --git a/sdk/go/alicloud/dfs/getAccessRules.go b/sdk/go/alicloud/dfs/getAccessRules.go index 580b9f7f99..4b0bdc4028 100644 --- a/sdk/go/alicloud/dfs/getAccessRules.go +++ b/sdk/go/alicloud/dfs/getAccessRules.go @@ -78,21 +78,11 @@ type GetAccessRulesResult struct { } func GetAccessRulesOutput(ctx *pulumi.Context, args GetAccessRulesOutputArgs, opts ...pulumi.InvokeOption) GetAccessRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccessRulesResultOutput, error) { args := v.(GetAccessRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccessRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:dfs/getAccessRules:getAccessRules", args, &rv, "", opts...) - if err != nil { - return GetAccessRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccessRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccessRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dfs/getAccessRules:getAccessRules", args, GetAccessRulesResultOutput{}, options).(GetAccessRulesResultOutput), nil }).(GetAccessRulesResultOutput) } diff --git a/sdk/go/alicloud/dfs/getFileSystems.go b/sdk/go/alicloud/dfs/getFileSystems.go index dba0fda670..ce64443806 100644 --- a/sdk/go/alicloud/dfs/getFileSystems.go +++ b/sdk/go/alicloud/dfs/getFileSystems.go @@ -84,21 +84,11 @@ type GetFileSystemsResult struct { } func GetFileSystemsOutput(ctx *pulumi.Context, args GetFileSystemsOutputArgs, opts ...pulumi.InvokeOption) GetFileSystemsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFileSystemsResultOutput, error) { args := v.(GetFileSystemsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFileSystemsResult - secret, err := ctx.InvokePackageRaw("alicloud:dfs/getFileSystems:getFileSystems", args, &rv, "", opts...) - if err != nil { - return GetFileSystemsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFileSystemsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFileSystemsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dfs/getFileSystems:getFileSystems", args, GetFileSystemsResultOutput{}, options).(GetFileSystemsResultOutput), nil }).(GetFileSystemsResultOutput) } diff --git a/sdk/go/alicloud/dfs/getMountPoints.go b/sdk/go/alicloud/dfs/getMountPoints.go index fbae6e3c6c..ba63185cb5 100644 --- a/sdk/go/alicloud/dfs/getMountPoints.go +++ b/sdk/go/alicloud/dfs/getMountPoints.go @@ -81,21 +81,11 @@ type GetMountPointsResult struct { } func GetMountPointsOutput(ctx *pulumi.Context, args GetMountPointsOutputArgs, opts ...pulumi.InvokeOption) GetMountPointsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetMountPointsResultOutput, error) { args := v.(GetMountPointsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetMountPointsResult - secret, err := ctx.InvokePackageRaw("alicloud:dfs/getMountPoints:getMountPoints", args, &rv, "", opts...) - if err != nil { - return GetMountPointsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetMountPointsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetMountPointsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dfs/getMountPoints:getMountPoints", args, GetMountPointsResultOutput{}, options).(GetMountPointsResultOutput), nil }).(GetMountPointsResultOutput) } diff --git a/sdk/go/alicloud/dfs/getZones.go b/sdk/go/alicloud/dfs/getZones.go index 63af9daccc..60060fe771 100644 --- a/sdk/go/alicloud/dfs/getZones.go +++ b/sdk/go/alicloud/dfs/getZones.go @@ -65,21 +65,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:dfs/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dfs/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/directmail/getDomains.go b/sdk/go/alicloud/directmail/getDomains.go index ada5a78287..71f0d05d1b 100644 --- a/sdk/go/alicloud/directmail/getDomains.go +++ b/sdk/go/alicloud/directmail/getDomains.go @@ -100,21 +100,11 @@ type GetDomainsResult struct { } func GetDomainsOutput(ctx *pulumi.Context, args GetDomainsOutputArgs, opts ...pulumi.InvokeOption) GetDomainsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDomainsResultOutput, error) { args := v.(GetDomainsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDomainsResult - secret, err := ctx.InvokePackageRaw("alicloud:directmail/getDomains:getDomains", args, &rv, "", opts...) - if err != nil { - return GetDomainsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDomainsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDomainsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:directmail/getDomains:getDomains", args, GetDomainsResultOutput{}, options).(GetDomainsResultOutput), nil }).(GetDomainsResultOutput) } diff --git a/sdk/go/alicloud/directmail/getMailAddresses.go b/sdk/go/alicloud/directmail/getMailAddresses.go index f0778f1152..d6be00add5 100644 --- a/sdk/go/alicloud/directmail/getMailAddresses.go +++ b/sdk/go/alicloud/directmail/getMailAddresses.go @@ -82,21 +82,11 @@ type GetMailAddressesResult struct { } func GetMailAddressesOutput(ctx *pulumi.Context, args GetMailAddressesOutputArgs, opts ...pulumi.InvokeOption) GetMailAddressesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetMailAddressesResultOutput, error) { args := v.(GetMailAddressesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetMailAddressesResult - secret, err := ctx.InvokePackageRaw("alicloud:directmail/getMailAddresses:getMailAddresses", args, &rv, "", opts...) - if err != nil { - return GetMailAddressesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetMailAddressesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetMailAddressesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:directmail/getMailAddresses:getMailAddresses", args, GetMailAddressesResultOutput{}, options).(GetMailAddressesResultOutput), nil }).(GetMailAddressesResultOutput) } diff --git a/sdk/go/alicloud/directmail/getReceivers.go b/sdk/go/alicloud/directmail/getReceivers.go index da7ae01791..833dd6903d 100644 --- a/sdk/go/alicloud/directmail/getReceivers.go +++ b/sdk/go/alicloud/directmail/getReceivers.go @@ -84,21 +84,11 @@ type LookupReceiversResult struct { } func LookupReceiversOutput(ctx *pulumi.Context, args LookupReceiversOutputArgs, opts ...pulumi.InvokeOption) LookupReceiversResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupReceiversResultOutput, error) { args := v.(LookupReceiversArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupReceiversResult - secret, err := ctx.InvokePackageRaw("alicloud:directmail/getReceivers:getReceivers", args, &rv, "", opts...) - if err != nil { - return LookupReceiversResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupReceiversResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupReceiversResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:directmail/getReceivers:getReceivers", args, LookupReceiversResultOutput{}, options).(LookupReceiversResultOutput), nil }).(LookupReceiversResultOutput) } diff --git a/sdk/go/alicloud/directmail/getTags.go b/sdk/go/alicloud/directmail/getTags.go index 7dacb7c065..2c4273a3aa 100644 --- a/sdk/go/alicloud/directmail/getTags.go +++ b/sdk/go/alicloud/directmail/getTags.go @@ -84,21 +84,11 @@ type GetTagsResult struct { } func GetTagsOutput(ctx *pulumi.Context, args GetTagsOutputArgs, opts ...pulumi.InvokeOption) GetTagsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTagsResultOutput, error) { args := v.(GetTagsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTagsResult - secret, err := ctx.InvokePackageRaw("alicloud:directmail/getTags:getTags", args, &rv, "", opts...) - if err != nil { - return GetTagsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTagsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTagsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:directmail/getTags:getTags", args, GetTagsResultOutput{}, options).(GetTagsResultOutput), nil }).(GetTagsResultOutput) } diff --git a/sdk/go/alicloud/dms/getEnterpriseDatabases.go b/sdk/go/alicloud/dms/getEnterpriseDatabases.go index 0e2e5b47c8..1da850bc24 100644 --- a/sdk/go/alicloud/dms/getEnterpriseDatabases.go +++ b/sdk/go/alicloud/dms/getEnterpriseDatabases.go @@ -81,21 +81,11 @@ type GetEnterpriseDatabasesResult struct { } func GetEnterpriseDatabasesOutput(ctx *pulumi.Context, args GetEnterpriseDatabasesOutputArgs, opts ...pulumi.InvokeOption) GetEnterpriseDatabasesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEnterpriseDatabasesResultOutput, error) { args := v.(GetEnterpriseDatabasesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEnterpriseDatabasesResult - secret, err := ctx.InvokePackageRaw("alicloud:dms/getEnterpriseDatabases:getEnterpriseDatabases", args, &rv, "", opts...) - if err != nil { - return GetEnterpriseDatabasesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEnterpriseDatabasesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEnterpriseDatabasesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dms/getEnterpriseDatabases:getEnterpriseDatabases", args, GetEnterpriseDatabasesResultOutput{}, options).(GetEnterpriseDatabasesResultOutput), nil }).(GetEnterpriseDatabasesResultOutput) } diff --git a/sdk/go/alicloud/dms/getEnterpriseInstances.go b/sdk/go/alicloud/dms/getEnterpriseInstances.go index 849efeea22..637a6603f7 100644 --- a/sdk/go/alicloud/dms/getEnterpriseInstances.go +++ b/sdk/go/alicloud/dms/getEnterpriseInstances.go @@ -107,21 +107,11 @@ type GetEnterpriseInstancesResult struct { } func GetEnterpriseInstancesOutput(ctx *pulumi.Context, args GetEnterpriseInstancesOutputArgs, opts ...pulumi.InvokeOption) GetEnterpriseInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEnterpriseInstancesResultOutput, error) { args := v.(GetEnterpriseInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEnterpriseInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:dms/getEnterpriseInstances:getEnterpriseInstances", args, &rv, "", opts...) - if err != nil { - return GetEnterpriseInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEnterpriseInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEnterpriseInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dms/getEnterpriseInstances:getEnterpriseInstances", args, GetEnterpriseInstancesResultOutput{}, options).(GetEnterpriseInstancesResultOutput), nil }).(GetEnterpriseInstancesResultOutput) } diff --git a/sdk/go/alicloud/dms/getEnterpriseLogicDatabases.go b/sdk/go/alicloud/dms/getEnterpriseLogicDatabases.go index 83c6836239..d9e98132b9 100644 --- a/sdk/go/alicloud/dms/getEnterpriseLogicDatabases.go +++ b/sdk/go/alicloud/dms/getEnterpriseLogicDatabases.go @@ -44,21 +44,11 @@ type GetEnterpriseLogicDatabasesResult struct { } func GetEnterpriseLogicDatabasesOutput(ctx *pulumi.Context, args GetEnterpriseLogicDatabasesOutputArgs, opts ...pulumi.InvokeOption) GetEnterpriseLogicDatabasesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEnterpriseLogicDatabasesResultOutput, error) { args := v.(GetEnterpriseLogicDatabasesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEnterpriseLogicDatabasesResult - secret, err := ctx.InvokePackageRaw("alicloud:dms/getEnterpriseLogicDatabases:getEnterpriseLogicDatabases", args, &rv, "", opts...) - if err != nil { - return GetEnterpriseLogicDatabasesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEnterpriseLogicDatabasesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEnterpriseLogicDatabasesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dms/getEnterpriseLogicDatabases:getEnterpriseLogicDatabases", args, GetEnterpriseLogicDatabasesResultOutput{}, options).(GetEnterpriseLogicDatabasesResultOutput), nil }).(GetEnterpriseLogicDatabasesResultOutput) } diff --git a/sdk/go/alicloud/dms/getEnterpriseProxies.go b/sdk/go/alicloud/dms/getEnterpriseProxies.go index d1b61bb6b5..e01c750fb4 100644 --- a/sdk/go/alicloud/dms/getEnterpriseProxies.go +++ b/sdk/go/alicloud/dms/getEnterpriseProxies.go @@ -72,21 +72,11 @@ type GetEnterpriseProxiesResult struct { } func GetEnterpriseProxiesOutput(ctx *pulumi.Context, args GetEnterpriseProxiesOutputArgs, opts ...pulumi.InvokeOption) GetEnterpriseProxiesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEnterpriseProxiesResultOutput, error) { args := v.(GetEnterpriseProxiesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEnterpriseProxiesResult - secret, err := ctx.InvokePackageRaw("alicloud:dms/getEnterpriseProxies:getEnterpriseProxies", args, &rv, "", opts...) - if err != nil { - return GetEnterpriseProxiesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEnterpriseProxiesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEnterpriseProxiesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dms/getEnterpriseProxies:getEnterpriseProxies", args, GetEnterpriseProxiesResultOutput{}, options).(GetEnterpriseProxiesResultOutput), nil }).(GetEnterpriseProxiesResultOutput) } diff --git a/sdk/go/alicloud/dms/getEnterpriseProxyAccesses.go b/sdk/go/alicloud/dms/getEnterpriseProxyAccesses.go index fa6cc215cc..10ef1bfdd7 100644 --- a/sdk/go/alicloud/dms/getEnterpriseProxyAccesses.go +++ b/sdk/go/alicloud/dms/getEnterpriseProxyAccesses.go @@ -86,21 +86,11 @@ type GetEnterpriseProxyAccessesResult struct { } func GetEnterpriseProxyAccessesOutput(ctx *pulumi.Context, args GetEnterpriseProxyAccessesOutputArgs, opts ...pulumi.InvokeOption) GetEnterpriseProxyAccessesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEnterpriseProxyAccessesResultOutput, error) { args := v.(GetEnterpriseProxyAccessesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEnterpriseProxyAccessesResult - secret, err := ctx.InvokePackageRaw("alicloud:dms/getEnterpriseProxyAccesses:getEnterpriseProxyAccesses", args, &rv, "", opts...) - if err != nil { - return GetEnterpriseProxyAccessesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEnterpriseProxyAccessesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEnterpriseProxyAccessesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dms/getEnterpriseProxyAccesses:getEnterpriseProxyAccesses", args, GetEnterpriseProxyAccessesResultOutput{}, options).(GetEnterpriseProxyAccessesResultOutput), nil }).(GetEnterpriseProxyAccessesResultOutput) } diff --git a/sdk/go/alicloud/dms/getEnterpriseUsers.go b/sdk/go/alicloud/dms/getEnterpriseUsers.go index bdf33de990..326074f1b4 100644 --- a/sdk/go/alicloud/dms/getEnterpriseUsers.go +++ b/sdk/go/alicloud/dms/getEnterpriseUsers.go @@ -94,21 +94,11 @@ type GetEnterpriseUsersResult struct { } func GetEnterpriseUsersOutput(ctx *pulumi.Context, args GetEnterpriseUsersOutputArgs, opts ...pulumi.InvokeOption) GetEnterpriseUsersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEnterpriseUsersResultOutput, error) { args := v.(GetEnterpriseUsersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEnterpriseUsersResult - secret, err := ctx.InvokePackageRaw("alicloud:dms/getEnterpriseUsers:getEnterpriseUsers", args, &rv, "", opts...) - if err != nil { - return GetEnterpriseUsersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEnterpriseUsersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEnterpriseUsersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dms/getEnterpriseUsers:getEnterpriseUsers", args, GetEnterpriseUsersResultOutput{}, options).(GetEnterpriseUsersResultOutput), nil }).(GetEnterpriseUsersResultOutput) } diff --git a/sdk/go/alicloud/dms/getUserTenants.go b/sdk/go/alicloud/dms/getUserTenants.go index 5376e985f3..4bd6d3b9cf 100644 --- a/sdk/go/alicloud/dms/getUserTenants.go +++ b/sdk/go/alicloud/dms/getUserTenants.go @@ -78,21 +78,11 @@ type GetUserTenantsResult struct { } func GetUserTenantsOutput(ctx *pulumi.Context, args GetUserTenantsOutputArgs, opts ...pulumi.InvokeOption) GetUserTenantsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetUserTenantsResultOutput, error) { args := v.(GetUserTenantsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetUserTenantsResult - secret, err := ctx.InvokePackageRaw("alicloud:dms/getUserTenants:getUserTenants", args, &rv, "", opts...) - if err != nil { - return GetUserTenantsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetUserTenantsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetUserTenantsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dms/getUserTenants:getUserTenants", args, GetUserTenantsResultOutput{}, options).(GetUserTenantsResultOutput), nil }).(GetUserTenantsResultOutput) } diff --git a/sdk/go/alicloud/dns/getAccessStrategies.go b/sdk/go/alicloud/dns/getAccessStrategies.go index 1a932a3ca7..851cf55b4f 100644 --- a/sdk/go/alicloud/dns/getAccessStrategies.go +++ b/sdk/go/alicloud/dns/getAccessStrategies.go @@ -95,21 +95,11 @@ type GetAccessStrategiesResult struct { } func GetAccessStrategiesOutput(ctx *pulumi.Context, args GetAccessStrategiesOutputArgs, opts ...pulumi.InvokeOption) GetAccessStrategiesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccessStrategiesResultOutput, error) { args := v.(GetAccessStrategiesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccessStrategiesResult - secret, err := ctx.InvokePackageRaw("alicloud:dns/getAccessStrategies:getAccessStrategies", args, &rv, "", opts...) - if err != nil { - return GetAccessStrategiesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccessStrategiesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccessStrategiesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dns/getAccessStrategies:getAccessStrategies", args, GetAccessStrategiesResultOutput{}, options).(GetAccessStrategiesResultOutput), nil }).(GetAccessStrategiesResultOutput) } diff --git a/sdk/go/alicloud/dns/getAddressPools.go b/sdk/go/alicloud/dns/getAddressPools.go index 4274be6c73..f671cbee82 100644 --- a/sdk/go/alicloud/dns/getAddressPools.go +++ b/sdk/go/alicloud/dns/getAddressPools.go @@ -93,21 +93,11 @@ type GetAddressPoolsResult struct { } func GetAddressPoolsOutput(ctx *pulumi.Context, args GetAddressPoolsOutputArgs, opts ...pulumi.InvokeOption) GetAddressPoolsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAddressPoolsResultOutput, error) { args := v.(GetAddressPoolsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAddressPoolsResult - secret, err := ctx.InvokePackageRaw("alicloud:dns/getAddressPools:getAddressPools", args, &rv, "", opts...) - if err != nil { - return GetAddressPoolsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAddressPoolsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAddressPoolsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dns/getAddressPools:getAddressPools", args, GetAddressPoolsResultOutput{}, options).(GetAddressPoolsResultOutput), nil }).(GetAddressPoolsResultOutput) } diff --git a/sdk/go/alicloud/dns/getAlidnsDomainGroups.go b/sdk/go/alicloud/dns/getAlidnsDomainGroups.go index 94f3158d18..b5e1bc41e9 100644 --- a/sdk/go/alicloud/dns/getAlidnsDomainGroups.go +++ b/sdk/go/alicloud/dns/getAlidnsDomainGroups.go @@ -78,21 +78,11 @@ type GetAlidnsDomainGroupsResult struct { } func GetAlidnsDomainGroupsOutput(ctx *pulumi.Context, args GetAlidnsDomainGroupsOutputArgs, opts ...pulumi.InvokeOption) GetAlidnsDomainGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAlidnsDomainGroupsResultOutput, error) { args := v.(GetAlidnsDomainGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAlidnsDomainGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:dns/getAlidnsDomainGroups:getAlidnsDomainGroups", args, &rv, "", opts...) - if err != nil { - return GetAlidnsDomainGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAlidnsDomainGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAlidnsDomainGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dns/getAlidnsDomainGroups:getAlidnsDomainGroups", args, GetAlidnsDomainGroupsResultOutput{}, options).(GetAlidnsDomainGroupsResultOutput), nil }).(GetAlidnsDomainGroupsResultOutput) } diff --git a/sdk/go/alicloud/dns/getAlidnsDomains.go b/sdk/go/alicloud/dns/getAlidnsDomains.go index c464353564..a4baede0c9 100644 --- a/sdk/go/alicloud/dns/getAlidnsDomains.go +++ b/sdk/go/alicloud/dns/getAlidnsDomains.go @@ -117,21 +117,11 @@ type GetAlidnsDomainsResult struct { } func GetAlidnsDomainsOutput(ctx *pulumi.Context, args GetAlidnsDomainsOutputArgs, opts ...pulumi.InvokeOption) GetAlidnsDomainsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAlidnsDomainsResultOutput, error) { args := v.(GetAlidnsDomainsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAlidnsDomainsResult - secret, err := ctx.InvokePackageRaw("alicloud:dns/getAlidnsDomains:getAlidnsDomains", args, &rv, "", opts...) - if err != nil { - return GetAlidnsDomainsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAlidnsDomainsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAlidnsDomainsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dns/getAlidnsDomains:getAlidnsDomains", args, GetAlidnsDomainsResultOutput{}, options).(GetAlidnsDomainsResultOutput), nil }).(GetAlidnsDomainsResultOutput) } diff --git a/sdk/go/alicloud/dns/getAlidnsInstances.go b/sdk/go/alicloud/dns/getAlidnsInstances.go index 065f7887db..2a86499439 100644 --- a/sdk/go/alicloud/dns/getAlidnsInstances.go +++ b/sdk/go/alicloud/dns/getAlidnsInstances.go @@ -82,21 +82,11 @@ type GetAlidnsInstancesResult struct { } func GetAlidnsInstancesOutput(ctx *pulumi.Context, args GetAlidnsInstancesOutputArgs, opts ...pulumi.InvokeOption) GetAlidnsInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAlidnsInstancesResultOutput, error) { args := v.(GetAlidnsInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAlidnsInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:dns/getAlidnsInstances:getAlidnsInstances", args, &rv, "", opts...) - if err != nil { - return GetAlidnsInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAlidnsInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAlidnsInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dns/getAlidnsInstances:getAlidnsInstances", args, GetAlidnsInstancesResultOutput{}, options).(GetAlidnsInstancesResultOutput), nil }).(GetAlidnsInstancesResultOutput) } diff --git a/sdk/go/alicloud/dns/getAlidnsRecords.go b/sdk/go/alicloud/dns/getAlidnsRecords.go index 265e485dc8..ffd8c5e3ce 100644 --- a/sdk/go/alicloud/dns/getAlidnsRecords.go +++ b/sdk/go/alicloud/dns/getAlidnsRecords.go @@ -125,21 +125,11 @@ type GetAlidnsRecordsResult struct { } func GetAlidnsRecordsOutput(ctx *pulumi.Context, args GetAlidnsRecordsOutputArgs, opts ...pulumi.InvokeOption) GetAlidnsRecordsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAlidnsRecordsResultOutput, error) { args := v.(GetAlidnsRecordsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAlidnsRecordsResult - secret, err := ctx.InvokePackageRaw("alicloud:dns/getAlidnsRecords:getAlidnsRecords", args, &rv, "", opts...) - if err != nil { - return GetAlidnsRecordsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAlidnsRecordsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAlidnsRecordsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dns/getAlidnsRecords:getAlidnsRecords", args, GetAlidnsRecordsResultOutput{}, options).(GetAlidnsRecordsResultOutput), nil }).(GetAlidnsRecordsResultOutput) } diff --git a/sdk/go/alicloud/dns/getCustomLines.go b/sdk/go/alicloud/dns/getCustomLines.go index 8e6b458956..a39466cf34 100644 --- a/sdk/go/alicloud/dns/getCustomLines.go +++ b/sdk/go/alicloud/dns/getCustomLines.go @@ -85,21 +85,11 @@ type GetCustomLinesResult struct { } func GetCustomLinesOutput(ctx *pulumi.Context, args GetCustomLinesOutputArgs, opts ...pulumi.InvokeOption) GetCustomLinesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCustomLinesResultOutput, error) { args := v.(GetCustomLinesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCustomLinesResult - secret, err := ctx.InvokePackageRaw("alicloud:dns/getCustomLines:getCustomLines", args, &rv, "", opts...) - if err != nil { - return GetCustomLinesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCustomLinesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCustomLinesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dns/getCustomLines:getCustomLines", args, GetCustomLinesResultOutput{}, options).(GetCustomLinesResultOutput), nil }).(GetCustomLinesResultOutput) } diff --git a/sdk/go/alicloud/dns/getDomainGroups.go b/sdk/go/alicloud/dns/getDomainGroups.go index 8d4d7ce8db..a1d29b06b5 100644 --- a/sdk/go/alicloud/dns/getDomainGroups.go +++ b/sdk/go/alicloud/dns/getDomainGroups.go @@ -41,21 +41,11 @@ type GetDomainGroupsResult struct { } func GetDomainGroupsOutput(ctx *pulumi.Context, args GetDomainGroupsOutputArgs, opts ...pulumi.InvokeOption) GetDomainGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDomainGroupsResultOutput, error) { args := v.(GetDomainGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDomainGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:dns/getDomainGroups:getDomainGroups", args, &rv, "", opts...) - if err != nil { - return GetDomainGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDomainGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDomainGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dns/getDomainGroups:getDomainGroups", args, GetDomainGroupsResultOutput{}, options).(GetDomainGroupsResultOutput), nil }).(GetDomainGroupsResultOutput) } diff --git a/sdk/go/alicloud/dns/getDomainRecords.go b/sdk/go/alicloud/dns/getDomainRecords.go index 9870cf93c8..5c8d5c6223 100644 --- a/sdk/go/alicloud/dns/getDomainRecords.go +++ b/sdk/go/alicloud/dns/getDomainRecords.go @@ -53,21 +53,11 @@ type GetDomainRecordsResult struct { } func GetDomainRecordsOutput(ctx *pulumi.Context, args GetDomainRecordsOutputArgs, opts ...pulumi.InvokeOption) GetDomainRecordsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDomainRecordsResultOutput, error) { args := v.(GetDomainRecordsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDomainRecordsResult - secret, err := ctx.InvokePackageRaw("alicloud:dns/getDomainRecords:getDomainRecords", args, &rv, "", opts...) - if err != nil { - return GetDomainRecordsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDomainRecordsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDomainRecordsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dns/getDomainRecords:getDomainRecords", args, GetDomainRecordsResultOutput{}, options).(GetDomainRecordsResultOutput), nil }).(GetDomainRecordsResultOutput) } diff --git a/sdk/go/alicloud/dns/getDomainTxtGuid.go b/sdk/go/alicloud/dns/getDomainTxtGuid.go index a2638d6383..aa1c842ba1 100644 --- a/sdk/go/alicloud/dns/getDomainTxtGuid.go +++ b/sdk/go/alicloud/dns/getDomainTxtGuid.go @@ -80,21 +80,11 @@ type GetDomainTxtGuidResult struct { } func GetDomainTxtGuidOutput(ctx *pulumi.Context, args GetDomainTxtGuidOutputArgs, opts ...pulumi.InvokeOption) GetDomainTxtGuidResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDomainTxtGuidResultOutput, error) { args := v.(GetDomainTxtGuidArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDomainTxtGuidResult - secret, err := ctx.InvokePackageRaw("alicloud:dns/getDomainTxtGuid:getDomainTxtGuid", args, &rv, "", opts...) - if err != nil { - return GetDomainTxtGuidResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDomainTxtGuidResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDomainTxtGuidResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dns/getDomainTxtGuid:getDomainTxtGuid", args, GetDomainTxtGuidResultOutput{}, options).(GetDomainTxtGuidResultOutput), nil }).(GetDomainTxtGuidResultOutput) } diff --git a/sdk/go/alicloud/dns/getDomains.go b/sdk/go/alicloud/dns/getDomains.go index 0911455b9e..bc4614574d 100644 --- a/sdk/go/alicloud/dns/getDomains.go +++ b/sdk/go/alicloud/dns/getDomains.go @@ -117,21 +117,11 @@ type GetDomainsResult struct { } func GetDomainsOutput(ctx *pulumi.Context, args GetDomainsOutputArgs, opts ...pulumi.InvokeOption) GetDomainsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDomainsResultOutput, error) { args := v.(GetDomainsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDomainsResult - secret, err := ctx.InvokePackageRaw("alicloud:dns/getDomains:getDomains", args, &rv, "", opts...) - if err != nil { - return GetDomainsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDomainsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDomainsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dns/getDomains:getDomains", args, GetDomainsResultOutput{}, options).(GetDomainsResultOutput), nil }).(GetDomainsResultOutput) } diff --git a/sdk/go/alicloud/dns/getGroups.go b/sdk/go/alicloud/dns/getGroups.go index 3f2806fb40..09c7e001e5 100644 --- a/sdk/go/alicloud/dns/getGroups.go +++ b/sdk/go/alicloud/dns/getGroups.go @@ -75,21 +75,11 @@ type GetGroupsResult struct { } func GetGroupsOutput(ctx *pulumi.Context, args GetGroupsOutputArgs, opts ...pulumi.InvokeOption) GetGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGroupsResultOutput, error) { args := v.(GetGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:dns/getGroups:getGroups", args, &rv, "", opts...) - if err != nil { - return GetGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dns/getGroups:getGroups", args, GetGroupsResultOutput{}, options).(GetGroupsResultOutput), nil }).(GetGroupsResultOutput) } diff --git a/sdk/go/alicloud/dns/getGtmInstances.go b/sdk/go/alicloud/dns/getGtmInstances.go index fa764e7afd..ba5cae9cfe 100644 --- a/sdk/go/alicloud/dns/getGtmInstances.go +++ b/sdk/go/alicloud/dns/getGtmInstances.go @@ -73,21 +73,11 @@ type GetGtmInstancesResult struct { } func GetGtmInstancesOutput(ctx *pulumi.Context, args GetGtmInstancesOutputArgs, opts ...pulumi.InvokeOption) GetGtmInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGtmInstancesResultOutput, error) { args := v.(GetGtmInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGtmInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:dns/getGtmInstances:getGtmInstances", args, &rv, "", opts...) - if err != nil { - return GetGtmInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGtmInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGtmInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dns/getGtmInstances:getGtmInstances", args, GetGtmInstancesResultOutput{}, options).(GetGtmInstancesResultOutput), nil }).(GetGtmInstancesResultOutput) } diff --git a/sdk/go/alicloud/dns/getInstances.go b/sdk/go/alicloud/dns/getInstances.go index 60a389c2d6..7cc8642ad9 100644 --- a/sdk/go/alicloud/dns/getInstances.go +++ b/sdk/go/alicloud/dns/getInstances.go @@ -81,21 +81,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:dns/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dns/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/dns/getRecords.go b/sdk/go/alicloud/dns/getRecords.go index c0a9bb24d3..f7cd4849ee 100644 --- a/sdk/go/alicloud/dns/getRecords.go +++ b/sdk/go/alicloud/dns/getRecords.go @@ -102,21 +102,11 @@ type GetRecordsResult struct { } func GetRecordsOutput(ctx *pulumi.Context, args GetRecordsOutputArgs, opts ...pulumi.InvokeOption) GetRecordsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRecordsResultOutput, error) { args := v.(GetRecordsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRecordsResult - secret, err := ctx.InvokePackageRaw("alicloud:dns/getRecords:getRecords", args, &rv, "", opts...) - if err != nil { - return GetRecordsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRecordsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRecordsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dns/getRecords:getRecords", args, GetRecordsResultOutput{}, options).(GetRecordsResultOutput), nil }).(GetRecordsResultOutput) } diff --git a/sdk/go/alicloud/dns/getResolutionLines.go b/sdk/go/alicloud/dns/getResolutionLines.go index aa8ae044ac..e53a7c9f71 100644 --- a/sdk/go/alicloud/dns/getResolutionLines.go +++ b/sdk/go/alicloud/dns/getResolutionLines.go @@ -89,21 +89,11 @@ type GetResolutionLinesResult struct { } func GetResolutionLinesOutput(ctx *pulumi.Context, args GetResolutionLinesOutputArgs, opts ...pulumi.InvokeOption) GetResolutionLinesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetResolutionLinesResultOutput, error) { args := v.(GetResolutionLinesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetResolutionLinesResult - secret, err := ctx.InvokePackageRaw("alicloud:dns/getResolutionLines:getResolutionLines", args, &rv, "", opts...) - if err != nil { - return GetResolutionLinesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetResolutionLinesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetResolutionLinesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dns/getResolutionLines:getResolutionLines", args, GetResolutionLinesResultOutput{}, options).(GetResolutionLinesResultOutput), nil }).(GetResolutionLinesResultOutput) } diff --git a/sdk/go/alicloud/drds/getInstances.go b/sdk/go/alicloud/drds/getInstances.go index 0a2d85a477..a8ae9505db 100644 --- a/sdk/go/alicloud/drds/getInstances.go +++ b/sdk/go/alicloud/drds/getInstances.go @@ -85,21 +85,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:drds/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:drds/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/dts/getConsumerChannels.go b/sdk/go/alicloud/dts/getConsumerChannels.go index d8d8a393fb..789185836d 100644 --- a/sdk/go/alicloud/dts/getConsumerChannels.go +++ b/sdk/go/alicloud/dts/getConsumerChannels.go @@ -72,21 +72,11 @@ type GetConsumerChannelsResult struct { } func GetConsumerChannelsOutput(ctx *pulumi.Context, args GetConsumerChannelsOutputArgs, opts ...pulumi.InvokeOption) GetConsumerChannelsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetConsumerChannelsResultOutput, error) { args := v.(GetConsumerChannelsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetConsumerChannelsResult - secret, err := ctx.InvokePackageRaw("alicloud:dts/getConsumerChannels:getConsumerChannels", args, &rv, "", opts...) - if err != nil { - return GetConsumerChannelsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetConsumerChannelsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetConsumerChannelsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dts/getConsumerChannels:getConsumerChannels", args, GetConsumerChannelsResultOutput{}, options).(GetConsumerChannelsResultOutput), nil }).(GetConsumerChannelsResultOutput) } diff --git a/sdk/go/alicloud/dts/getInstances.go b/sdk/go/alicloud/dts/getInstances.go index f6bf6d2858..5a29a2583b 100644 --- a/sdk/go/alicloud/dts/getInstances.go +++ b/sdk/go/alicloud/dts/getInstances.go @@ -85,21 +85,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:dts/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dts/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/dts/getMigrationJobs.go b/sdk/go/alicloud/dts/getMigrationJobs.go index 6fb8a5053a..ae30414470 100644 --- a/sdk/go/alicloud/dts/getMigrationJobs.go +++ b/sdk/go/alicloud/dts/getMigrationJobs.go @@ -80,21 +80,11 @@ type GetMigrationJobsResult struct { } func GetMigrationJobsOutput(ctx *pulumi.Context, args GetMigrationJobsOutputArgs, opts ...pulumi.InvokeOption) GetMigrationJobsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetMigrationJobsResultOutput, error) { args := v.(GetMigrationJobsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetMigrationJobsResult - secret, err := ctx.InvokePackageRaw("alicloud:dts/getMigrationJobs:getMigrationJobs", args, &rv, "", opts...) - if err != nil { - return GetMigrationJobsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetMigrationJobsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetMigrationJobsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dts/getMigrationJobs:getMigrationJobs", args, GetMigrationJobsResultOutput{}, options).(GetMigrationJobsResultOutput), nil }).(GetMigrationJobsResultOutput) } diff --git a/sdk/go/alicloud/dts/getSubscriptionJobs.go b/sdk/go/alicloud/dts/getSubscriptionJobs.go index 36565efd1b..cb43be1248 100644 --- a/sdk/go/alicloud/dts/getSubscriptionJobs.go +++ b/sdk/go/alicloud/dts/getSubscriptionJobs.go @@ -80,21 +80,11 @@ type GetSubscriptionJobsResult struct { } func GetSubscriptionJobsOutput(ctx *pulumi.Context, args GetSubscriptionJobsOutputArgs, opts ...pulumi.InvokeOption) GetSubscriptionJobsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSubscriptionJobsResultOutput, error) { args := v.(GetSubscriptionJobsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSubscriptionJobsResult - secret, err := ctx.InvokePackageRaw("alicloud:dts/getSubscriptionJobs:getSubscriptionJobs", args, &rv, "", opts...) - if err != nil { - return GetSubscriptionJobsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSubscriptionJobsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSubscriptionJobsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dts/getSubscriptionJobs:getSubscriptionJobs", args, GetSubscriptionJobsResultOutput{}, options).(GetSubscriptionJobsResultOutput), nil }).(GetSubscriptionJobsResultOutput) } diff --git a/sdk/go/alicloud/dts/getSynchronizationJobs.go b/sdk/go/alicloud/dts/getSynchronizationJobs.go index 57978ff4b8..46e0246810 100644 --- a/sdk/go/alicloud/dts/getSynchronizationJobs.go +++ b/sdk/go/alicloud/dts/getSynchronizationJobs.go @@ -77,21 +77,11 @@ type GetSynchronizationJobsResult struct { } func GetSynchronizationJobsOutput(ctx *pulumi.Context, args GetSynchronizationJobsOutputArgs, opts ...pulumi.InvokeOption) GetSynchronizationJobsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSynchronizationJobsResultOutput, error) { args := v.(GetSynchronizationJobsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSynchronizationJobsResult - secret, err := ctx.InvokePackageRaw("alicloud:dts/getSynchronizationJobs:getSynchronizationJobs", args, &rv, "", opts...) - if err != nil { - return GetSynchronizationJobsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSynchronizationJobsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSynchronizationJobsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:dts/getSynchronizationJobs:getSynchronizationJobs", args, GetSynchronizationJobsResultOutput{}, options).(GetSynchronizationJobsResultOutput), nil }).(GetSynchronizationJobsResultOutput) } diff --git a/sdk/go/alicloud/eais/getInstances.go b/sdk/go/alicloud/eais/getInstances.go index a99caa595f..c9a8697ae8 100644 --- a/sdk/go/alicloud/eais/getInstances.go +++ b/sdk/go/alicloud/eais/getInstances.go @@ -52,21 +52,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:eais/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eais/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/ebs/getDedicatedBlockStorageClusters.go b/sdk/go/alicloud/ebs/getDedicatedBlockStorageClusters.go index 320fbaa855..b4bb9ce79f 100644 --- a/sdk/go/alicloud/ebs/getDedicatedBlockStorageClusters.go +++ b/sdk/go/alicloud/ebs/getDedicatedBlockStorageClusters.go @@ -79,21 +79,11 @@ type GetDedicatedBlockStorageClustersResult struct { } func GetDedicatedBlockStorageClustersOutput(ctx *pulumi.Context, args GetDedicatedBlockStorageClustersOutputArgs, opts ...pulumi.InvokeOption) GetDedicatedBlockStorageClustersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDedicatedBlockStorageClustersResultOutput, error) { args := v.(GetDedicatedBlockStorageClustersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDedicatedBlockStorageClustersResult - secret, err := ctx.InvokePackageRaw("alicloud:ebs/getDedicatedBlockStorageClusters:getDedicatedBlockStorageClusters", args, &rv, "", opts...) - if err != nil { - return GetDedicatedBlockStorageClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDedicatedBlockStorageClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDedicatedBlockStorageClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ebs/getDedicatedBlockStorageClusters:getDedicatedBlockStorageClusters", args, GetDedicatedBlockStorageClustersResultOutput{}, options).(GetDedicatedBlockStorageClustersResultOutput), nil }).(GetDedicatedBlockStorageClustersResultOutput) } diff --git a/sdk/go/alicloud/ebs/getDiskReplicaGroups.go b/sdk/go/alicloud/ebs/getDiskReplicaGroups.go index 92fea7b703..537f01fcca 100644 --- a/sdk/go/alicloud/ebs/getDiskReplicaGroups.go +++ b/sdk/go/alicloud/ebs/getDiskReplicaGroups.go @@ -73,21 +73,11 @@ type GetDiskReplicaGroupsResult struct { } func GetDiskReplicaGroupsOutput(ctx *pulumi.Context, args GetDiskReplicaGroupsOutputArgs, opts ...pulumi.InvokeOption) GetDiskReplicaGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDiskReplicaGroupsResultOutput, error) { args := v.(GetDiskReplicaGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDiskReplicaGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:ebs/getDiskReplicaGroups:getDiskReplicaGroups", args, &rv, "", opts...) - if err != nil { - return GetDiskReplicaGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDiskReplicaGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDiskReplicaGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ebs/getDiskReplicaGroups:getDiskReplicaGroups", args, GetDiskReplicaGroupsResultOutput{}, options).(GetDiskReplicaGroupsResultOutput), nil }).(GetDiskReplicaGroupsResultOutput) } diff --git a/sdk/go/alicloud/ebs/getDiskReplicaPairs.go b/sdk/go/alicloud/ebs/getDiskReplicaPairs.go index 7d9a3c70d0..01068f6b96 100644 --- a/sdk/go/alicloud/ebs/getDiskReplicaPairs.go +++ b/sdk/go/alicloud/ebs/getDiskReplicaPairs.go @@ -77,21 +77,11 @@ type GetDiskReplicaPairsResult struct { } func GetDiskReplicaPairsOutput(ctx *pulumi.Context, args GetDiskReplicaPairsOutputArgs, opts ...pulumi.InvokeOption) GetDiskReplicaPairsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDiskReplicaPairsResultOutput, error) { args := v.(GetDiskReplicaPairsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDiskReplicaPairsResult - secret, err := ctx.InvokePackageRaw("alicloud:ebs/getDiskReplicaPairs:getDiskReplicaPairs", args, &rv, "", opts...) - if err != nil { - return GetDiskReplicaPairsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDiskReplicaPairsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDiskReplicaPairsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ebs/getDiskReplicaPairs:getDiskReplicaPairs", args, GetDiskReplicaPairsResultOutput{}, options).(GetDiskReplicaPairsResultOutput), nil }).(GetDiskReplicaPairsResultOutput) } diff --git a/sdk/go/alicloud/ebs/getRegions.go b/sdk/go/alicloud/ebs/getRegions.go index 7b8d1e4a02..14cdc38fe5 100644 --- a/sdk/go/alicloud/ebs/getRegions.go +++ b/sdk/go/alicloud/ebs/getRegions.go @@ -71,21 +71,11 @@ type GetRegionsResult struct { } func GetRegionsOutput(ctx *pulumi.Context, args GetRegionsOutputArgs, opts ...pulumi.InvokeOption) GetRegionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegionsResultOutput, error) { args := v.(GetRegionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegionsResult - secret, err := ctx.InvokePackageRaw("alicloud:ebs/getRegions:getRegions", args, &rv, "", opts...) - if err != nil { - return GetRegionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ebs/getRegions:getRegions", args, GetRegionsResultOutput{}, options).(GetRegionsResultOutput), nil }).(GetRegionsResultOutput) } diff --git a/sdk/go/alicloud/eci/getContainerGroups.go b/sdk/go/alicloud/eci/getContainerGroups.go index 0c5c8fad22..d13ab45eeb 100644 --- a/sdk/go/alicloud/eci/getContainerGroups.go +++ b/sdk/go/alicloud/eci/getContainerGroups.go @@ -102,21 +102,11 @@ type GetContainerGroupsResult struct { } func GetContainerGroupsOutput(ctx *pulumi.Context, args GetContainerGroupsOutputArgs, opts ...pulumi.InvokeOption) GetContainerGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetContainerGroupsResultOutput, error) { args := v.(GetContainerGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetContainerGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:eci/getContainerGroups:getContainerGroups", args, &rv, "", opts...) - if err != nil { - return GetContainerGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetContainerGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetContainerGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eci/getContainerGroups:getContainerGroups", args, GetContainerGroupsResultOutput{}, options).(GetContainerGroupsResultOutput), nil }).(GetContainerGroupsResultOutput) } diff --git a/sdk/go/alicloud/eci/getImageCaches.go b/sdk/go/alicloud/eci/getImageCaches.go index 50c7d5d643..88b14767f2 100644 --- a/sdk/go/alicloud/eci/getImageCaches.go +++ b/sdk/go/alicloud/eci/getImageCaches.go @@ -93,21 +93,11 @@ type GetImageCachesResult struct { } func GetImageCachesOutput(ctx *pulumi.Context, args GetImageCachesOutputArgs, opts ...pulumi.InvokeOption) GetImageCachesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetImageCachesResultOutput, error) { args := v.(GetImageCachesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetImageCachesResult - secret, err := ctx.InvokePackageRaw("alicloud:eci/getImageCaches:getImageCaches", args, &rv, "", opts...) - if err != nil { - return GetImageCachesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetImageCachesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetImageCachesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eci/getImageCaches:getImageCaches", args, GetImageCachesResultOutput{}, options).(GetImageCachesResultOutput), nil }).(GetImageCachesResultOutput) } diff --git a/sdk/go/alicloud/eci/getVirtualNodes.go b/sdk/go/alicloud/eci/getVirtualNodes.go index 597202796e..dd0d4fc7cd 100644 --- a/sdk/go/alicloud/eci/getVirtualNodes.go +++ b/sdk/go/alicloud/eci/getVirtualNodes.go @@ -102,21 +102,11 @@ type GetVirtualNodesResult struct { } func GetVirtualNodesOutput(ctx *pulumi.Context, args GetVirtualNodesOutputArgs, opts ...pulumi.InvokeOption) GetVirtualNodesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVirtualNodesResultOutput, error) { args := v.(GetVirtualNodesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVirtualNodesResult - secret, err := ctx.InvokePackageRaw("alicloud:eci/getVirtualNodes:getVirtualNodes", args, &rv, "", opts...) - if err != nil { - return GetVirtualNodesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVirtualNodesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVirtualNodesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eci/getVirtualNodes:getVirtualNodes", args, GetVirtualNodesResultOutput{}, options).(GetVirtualNodesResultOutput), nil }).(GetVirtualNodesResultOutput) } diff --git a/sdk/go/alicloud/eci/getZones.go b/sdk/go/alicloud/eci/getZones.go index e323c6dc77..dfad861d26 100644 --- a/sdk/go/alicloud/eci/getZones.go +++ b/sdk/go/alicloud/eci/getZones.go @@ -66,21 +66,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:eci/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eci/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/ecp/getInstanceTypes.go b/sdk/go/alicloud/ecp/getInstanceTypes.go index 46cba7a23f..f119376743 100644 --- a/sdk/go/alicloud/ecp/getInstanceTypes.go +++ b/sdk/go/alicloud/ecp/getInstanceTypes.go @@ -66,21 +66,11 @@ type GetInstanceTypesResult struct { } func GetInstanceTypesOutput(ctx *pulumi.Context, args GetInstanceTypesOutputArgs, opts ...pulumi.InvokeOption) GetInstanceTypesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceTypesResultOutput, error) { args := v.(GetInstanceTypesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceTypesResult - secret, err := ctx.InvokePackageRaw("alicloud:ecp/getInstanceTypes:getInstanceTypes", args, &rv, "", opts...) - if err != nil { - return GetInstanceTypesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceTypesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceTypesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecp/getInstanceTypes:getInstanceTypes", args, GetInstanceTypesResultOutput{}, options).(GetInstanceTypesResultOutput), nil }).(GetInstanceTypesResultOutput) } diff --git a/sdk/go/alicloud/ecp/getInstances.go b/sdk/go/alicloud/ecp/getInstances.go index 16bfc9bc18..ff8d084fe5 100644 --- a/sdk/go/alicloud/ecp/getInstances.go +++ b/sdk/go/alicloud/ecp/getInstances.go @@ -151,21 +151,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:ecp/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecp/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/ecp/getKeyPairs.go b/sdk/go/alicloud/ecp/getKeyPairs.go index 7637b0eab9..817eafbcbb 100644 --- a/sdk/go/alicloud/ecp/getKeyPairs.go +++ b/sdk/go/alicloud/ecp/getKeyPairs.go @@ -83,21 +83,11 @@ type GetKeyPairsResult struct { } func GetKeyPairsOutput(ctx *pulumi.Context, args GetKeyPairsOutputArgs, opts ...pulumi.InvokeOption) GetKeyPairsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKeyPairsResultOutput, error) { args := v.(GetKeyPairsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKeyPairsResult - secret, err := ctx.InvokePackageRaw("alicloud:ecp/getKeyPairs:getKeyPairs", args, &rv, "", opts...) - if err != nil { - return GetKeyPairsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKeyPairsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKeyPairsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecp/getKeyPairs:getKeyPairs", args, GetKeyPairsResultOutput{}, options).(GetKeyPairsResultOutput), nil }).(GetKeyPairsResultOutput) } diff --git a/sdk/go/alicloud/ecp/getZones.go b/sdk/go/alicloud/ecp/getZones.go index 7640880dbc..3e2df9fe99 100644 --- a/sdk/go/alicloud/ecp/getZones.go +++ b/sdk/go/alicloud/ecp/getZones.go @@ -66,21 +66,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:ecp/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecp/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/ecs/getActivations.go b/sdk/go/alicloud/ecs/getActivations.go index 5993547b91..97cf80ab8a 100644 --- a/sdk/go/alicloud/ecs/getActivations.go +++ b/sdk/go/alicloud/ecs/getActivations.go @@ -77,21 +77,11 @@ type GetActivationsResult struct { } func GetActivationsOutput(ctx *pulumi.Context, args GetActivationsOutputArgs, opts ...pulumi.InvokeOption) GetActivationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetActivationsResultOutput, error) { args := v.(GetActivationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetActivationsResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getActivations:getActivations", args, &rv, "", opts...) - if err != nil { - return GetActivationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetActivationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetActivationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getActivations:getActivations", args, GetActivationsResultOutput{}, options).(GetActivationsResultOutput), nil }).(GetActivationsResultOutput) } diff --git a/sdk/go/alicloud/ecs/getAutoSnapshotPolicies.go b/sdk/go/alicloud/ecs/getAutoSnapshotPolicies.go index 336b6ed120..fb1b76e13f 100644 --- a/sdk/go/alicloud/ecs/getAutoSnapshotPolicies.go +++ b/sdk/go/alicloud/ecs/getAutoSnapshotPolicies.go @@ -84,21 +84,11 @@ type GetAutoSnapshotPoliciesResult struct { } func GetAutoSnapshotPoliciesOutput(ctx *pulumi.Context, args GetAutoSnapshotPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetAutoSnapshotPoliciesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAutoSnapshotPoliciesResultOutput, error) { args := v.(GetAutoSnapshotPoliciesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAutoSnapshotPoliciesResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getAutoSnapshotPolicies:getAutoSnapshotPolicies", args, &rv, "", opts...) - if err != nil { - return GetAutoSnapshotPoliciesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAutoSnapshotPoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAutoSnapshotPoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getAutoSnapshotPolicies:getAutoSnapshotPolicies", args, GetAutoSnapshotPoliciesResultOutput{}, options).(GetAutoSnapshotPoliciesResultOutput), nil }).(GetAutoSnapshotPoliciesResultOutput) } diff --git a/sdk/go/alicloud/ecs/getCapacityReservations.go b/sdk/go/alicloud/ecs/getCapacityReservations.go index 20d054b192..e9f9d50dbd 100644 --- a/sdk/go/alicloud/ecs/getCapacityReservations.go +++ b/sdk/go/alicloud/ecs/getCapacityReservations.go @@ -105,21 +105,11 @@ type GetCapacityReservationsResult struct { } func GetCapacityReservationsOutput(ctx *pulumi.Context, args GetCapacityReservationsOutputArgs, opts ...pulumi.InvokeOption) GetCapacityReservationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCapacityReservationsResultOutput, error) { args := v.(GetCapacityReservationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCapacityReservationsResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getCapacityReservations:getCapacityReservations", args, &rv, "", opts...) - if err != nil { - return GetCapacityReservationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCapacityReservationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCapacityReservationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getCapacityReservations:getCapacityReservations", args, GetCapacityReservationsResultOutput{}, options).(GetCapacityReservationsResultOutput), nil }).(GetCapacityReservationsResultOutput) } diff --git a/sdk/go/alicloud/ecs/getCommands.go b/sdk/go/alicloud/ecs/getCommands.go index 5f7c1d1a79..a00dfbfda2 100644 --- a/sdk/go/alicloud/ecs/getCommands.go +++ b/sdk/go/alicloud/ecs/getCommands.go @@ -93,21 +93,11 @@ type GetCommandsResult struct { } func GetCommandsOutput(ctx *pulumi.Context, args GetCommandsOutputArgs, opts ...pulumi.InvokeOption) GetCommandsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCommandsResultOutput, error) { args := v.(GetCommandsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCommandsResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getCommands:getCommands", args, &rv, "", opts...) - if err != nil { - return GetCommandsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCommandsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCommandsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getCommands:getCommands", args, GetCommandsResultOutput{}, options).(GetCommandsResultOutput), nil }).(GetCommandsResultOutput) } diff --git a/sdk/go/alicloud/ecs/getDedicatedHosts.go b/sdk/go/alicloud/ecs/getDedicatedHosts.go index 554336a524..8d585bbf00 100644 --- a/sdk/go/alicloud/ecs/getDedicatedHosts.go +++ b/sdk/go/alicloud/ecs/getDedicatedHosts.go @@ -109,21 +109,11 @@ type GetDedicatedHostsResult struct { } func GetDedicatedHostsOutput(ctx *pulumi.Context, args GetDedicatedHostsOutputArgs, opts ...pulumi.InvokeOption) GetDedicatedHostsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDedicatedHostsResultOutput, error) { args := v.(GetDedicatedHostsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDedicatedHostsResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getDedicatedHosts:getDedicatedHosts", args, &rv, "", opts...) - if err != nil { - return GetDedicatedHostsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDedicatedHostsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDedicatedHostsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getDedicatedHosts:getDedicatedHosts", args, GetDedicatedHostsResultOutput{}, options).(GetDedicatedHostsResultOutput), nil }).(GetDedicatedHostsResultOutput) } diff --git a/sdk/go/alicloud/ecs/getDisks.go b/sdk/go/alicloud/ecs/getDisks.go index 8eaa186f71..e719894005 100644 --- a/sdk/go/alicloud/ecs/getDisks.go +++ b/sdk/go/alicloud/ecs/getDisks.go @@ -176,21 +176,11 @@ type GetDisksResult struct { } func GetDisksOutput(ctx *pulumi.Context, args GetDisksOutputArgs, opts ...pulumi.InvokeOption) GetDisksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDisksResultOutput, error) { args := v.(GetDisksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDisksResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getDisks:getDisks", args, &rv, "", opts...) - if err != nil { - return GetDisksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDisksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDisksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getDisks:getDisks", args, GetDisksResultOutput{}, options).(GetDisksResultOutput), nil }).(GetDisksResultOutput) } diff --git a/sdk/go/alicloud/ecs/getEcsDedicatedHostClusters.go b/sdk/go/alicloud/ecs/getEcsDedicatedHostClusters.go index 5f53a8fed1..4b084a9b7b 100644 --- a/sdk/go/alicloud/ecs/getEcsDedicatedHostClusters.go +++ b/sdk/go/alicloud/ecs/getEcsDedicatedHostClusters.go @@ -119,21 +119,11 @@ type GetEcsDedicatedHostClustersResult struct { } func GetEcsDedicatedHostClustersOutput(ctx *pulumi.Context, args GetEcsDedicatedHostClustersOutputArgs, opts ...pulumi.InvokeOption) GetEcsDedicatedHostClustersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEcsDedicatedHostClustersResultOutput, error) { args := v.(GetEcsDedicatedHostClustersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEcsDedicatedHostClustersResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getEcsDedicatedHostClusters:getEcsDedicatedHostClusters", args, &rv, "", opts...) - if err != nil { - return GetEcsDedicatedHostClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEcsDedicatedHostClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEcsDedicatedHostClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getEcsDedicatedHostClusters:getEcsDedicatedHostClusters", args, GetEcsDedicatedHostClustersResultOutput{}, options).(GetEcsDedicatedHostClustersResultOutput), nil }).(GetEcsDedicatedHostClustersResultOutput) } diff --git a/sdk/go/alicloud/ecs/getEcsDeploymentSets.go b/sdk/go/alicloud/ecs/getEcsDeploymentSets.go index 2d62f9500d..864e561447 100644 --- a/sdk/go/alicloud/ecs/getEcsDeploymentSets.go +++ b/sdk/go/alicloud/ecs/getEcsDeploymentSets.go @@ -90,21 +90,11 @@ type GetEcsDeploymentSetsResult struct { } func GetEcsDeploymentSetsOutput(ctx *pulumi.Context, args GetEcsDeploymentSetsOutputArgs, opts ...pulumi.InvokeOption) GetEcsDeploymentSetsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEcsDeploymentSetsResultOutput, error) { args := v.(GetEcsDeploymentSetsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEcsDeploymentSetsResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getEcsDeploymentSets:getEcsDeploymentSets", args, &rv, "", opts...) - if err != nil { - return GetEcsDeploymentSetsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEcsDeploymentSetsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEcsDeploymentSetsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getEcsDeploymentSets:getEcsDeploymentSets", args, GetEcsDeploymentSetsResultOutput{}, options).(GetEcsDeploymentSetsResultOutput), nil }).(GetEcsDeploymentSetsResultOutput) } diff --git a/sdk/go/alicloud/ecs/getEcsDisks.go b/sdk/go/alicloud/ecs/getEcsDisks.go index e4e6ed3636..acf22fd70b 100644 --- a/sdk/go/alicloud/ecs/getEcsDisks.go +++ b/sdk/go/alicloud/ecs/getEcsDisks.go @@ -160,21 +160,11 @@ type GetEcsDisksResult struct { } func GetEcsDisksOutput(ctx *pulumi.Context, args GetEcsDisksOutputArgs, opts ...pulumi.InvokeOption) GetEcsDisksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEcsDisksResultOutput, error) { args := v.(GetEcsDisksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEcsDisksResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getEcsDisks:getEcsDisks", args, &rv, "", opts...) - if err != nil { - return GetEcsDisksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEcsDisksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEcsDisksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getEcsDisks:getEcsDisks", args, GetEcsDisksResultOutput{}, options).(GetEcsDisksResultOutput), nil }).(GetEcsDisksResultOutput) } diff --git a/sdk/go/alicloud/ecs/getEcsImageComponents.go b/sdk/go/alicloud/ecs/getEcsImageComponents.go index d21a5fcec1..f9fd83f7d6 100644 --- a/sdk/go/alicloud/ecs/getEcsImageComponents.go +++ b/sdk/go/alicloud/ecs/getEcsImageComponents.go @@ -98,21 +98,11 @@ type GetEcsImageComponentsResult struct { } func GetEcsImageComponentsOutput(ctx *pulumi.Context, args GetEcsImageComponentsOutputArgs, opts ...pulumi.InvokeOption) GetEcsImageComponentsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEcsImageComponentsResultOutput, error) { args := v.(GetEcsImageComponentsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEcsImageComponentsResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getEcsImageComponents:getEcsImageComponents", args, &rv, "", opts...) - if err != nil { - return GetEcsImageComponentsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEcsImageComponentsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEcsImageComponentsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getEcsImageComponents:getEcsImageComponents", args, GetEcsImageComponentsResultOutput{}, options).(GetEcsImageComponentsResultOutput), nil }).(GetEcsImageComponentsResultOutput) } diff --git a/sdk/go/alicloud/ecs/getEcsImagePipeline.go b/sdk/go/alicloud/ecs/getEcsImagePipeline.go index cc736c671f..b328268adc 100644 --- a/sdk/go/alicloud/ecs/getEcsImagePipeline.go +++ b/sdk/go/alicloud/ecs/getEcsImagePipeline.go @@ -93,21 +93,11 @@ type LookupEcsImagePipelineResult struct { } func LookupEcsImagePipelineOutput(ctx *pulumi.Context, args LookupEcsImagePipelineOutputArgs, opts ...pulumi.InvokeOption) LookupEcsImagePipelineResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupEcsImagePipelineResultOutput, error) { args := v.(LookupEcsImagePipelineArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupEcsImagePipelineResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getEcsImagePipeline:getEcsImagePipeline", args, &rv, "", opts...) - if err != nil { - return LookupEcsImagePipelineResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupEcsImagePipelineResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupEcsImagePipelineResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getEcsImagePipeline:getEcsImagePipeline", args, LookupEcsImagePipelineResultOutput{}, options).(LookupEcsImagePipelineResultOutput), nil }).(LookupEcsImagePipelineResultOutput) } diff --git a/sdk/go/alicloud/ecs/getEcsInvocations.go b/sdk/go/alicloud/ecs/getEcsInvocations.go index 292d96f355..6083f0db07 100644 --- a/sdk/go/alicloud/ecs/getEcsInvocations.go +++ b/sdk/go/alicloud/ecs/getEcsInvocations.go @@ -86,21 +86,11 @@ type GetEcsInvocationsResult struct { } func GetEcsInvocationsOutput(ctx *pulumi.Context, args GetEcsInvocationsOutputArgs, opts ...pulumi.InvokeOption) GetEcsInvocationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEcsInvocationsResultOutput, error) { args := v.(GetEcsInvocationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEcsInvocationsResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getEcsInvocations:getEcsInvocations", args, &rv, "", opts...) - if err != nil { - return GetEcsInvocationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEcsInvocationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEcsInvocationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getEcsInvocations:getEcsInvocations", args, GetEcsInvocationsResultOutput{}, options).(GetEcsInvocationsResultOutput), nil }).(GetEcsInvocationsResultOutput) } diff --git a/sdk/go/alicloud/ecs/getEcsKeyPairs.go b/sdk/go/alicloud/ecs/getEcsKeyPairs.go index 7847737de5..a06897148e 100644 --- a/sdk/go/alicloud/ecs/getEcsKeyPairs.go +++ b/sdk/go/alicloud/ecs/getEcsKeyPairs.go @@ -88,21 +88,11 @@ type GetEcsKeyPairsResult struct { } func GetEcsKeyPairsOutput(ctx *pulumi.Context, args GetEcsKeyPairsOutputArgs, opts ...pulumi.InvokeOption) GetEcsKeyPairsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEcsKeyPairsResultOutput, error) { args := v.(GetEcsKeyPairsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEcsKeyPairsResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getEcsKeyPairs:getEcsKeyPairs", args, &rv, "", opts...) - if err != nil { - return GetEcsKeyPairsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEcsKeyPairsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEcsKeyPairsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getEcsKeyPairs:getEcsKeyPairs", args, GetEcsKeyPairsResultOutput{}, options).(GetEcsKeyPairsResultOutput), nil }).(GetEcsKeyPairsResultOutput) } diff --git a/sdk/go/alicloud/ecs/getEcsLaunchTemplates.go b/sdk/go/alicloud/ecs/getEcsLaunchTemplates.go index e67f28d406..9f4876a62d 100644 --- a/sdk/go/alicloud/ecs/getEcsLaunchTemplates.go +++ b/sdk/go/alicloud/ecs/getEcsLaunchTemplates.go @@ -204,21 +204,11 @@ type GetEcsLaunchTemplatesResult struct { } func GetEcsLaunchTemplatesOutput(ctx *pulumi.Context, args GetEcsLaunchTemplatesOutputArgs, opts ...pulumi.InvokeOption) GetEcsLaunchTemplatesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEcsLaunchTemplatesResultOutput, error) { args := v.(GetEcsLaunchTemplatesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEcsLaunchTemplatesResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getEcsLaunchTemplates:getEcsLaunchTemplates", args, &rv, "", opts...) - if err != nil { - return GetEcsLaunchTemplatesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEcsLaunchTemplatesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEcsLaunchTemplatesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getEcsLaunchTemplates:getEcsLaunchTemplates", args, GetEcsLaunchTemplatesResultOutput{}, options).(GetEcsLaunchTemplatesResultOutput), nil }).(GetEcsLaunchTemplatesResultOutput) } diff --git a/sdk/go/alicloud/ecs/getEcsNetworkInterfacePermissions.go b/sdk/go/alicloud/ecs/getEcsNetworkInterfacePermissions.go index e4eb63066f..e5ce8df397 100644 --- a/sdk/go/alicloud/ecs/getEcsNetworkInterfacePermissions.go +++ b/sdk/go/alicloud/ecs/getEcsNetworkInterfacePermissions.go @@ -85,21 +85,11 @@ type GetEcsNetworkInterfacePermissionsResult struct { } func GetEcsNetworkInterfacePermissionsOutput(ctx *pulumi.Context, args GetEcsNetworkInterfacePermissionsOutputArgs, opts ...pulumi.InvokeOption) GetEcsNetworkInterfacePermissionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEcsNetworkInterfacePermissionsResultOutput, error) { args := v.(GetEcsNetworkInterfacePermissionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEcsNetworkInterfacePermissionsResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getEcsNetworkInterfacePermissions:getEcsNetworkInterfacePermissions", args, &rv, "", opts...) - if err != nil { - return GetEcsNetworkInterfacePermissionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEcsNetworkInterfacePermissionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEcsNetworkInterfacePermissionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getEcsNetworkInterfacePermissions:getEcsNetworkInterfacePermissions", args, GetEcsNetworkInterfacePermissionsResultOutput{}, options).(GetEcsNetworkInterfacePermissionsResultOutput), nil }).(GetEcsNetworkInterfacePermissionsResultOutput) } diff --git a/sdk/go/alicloud/ecs/getEcsNetworkInterfaces.go b/sdk/go/alicloud/ecs/getEcsNetworkInterfaces.go index f9543e67b2..dd4124fe6f 100644 --- a/sdk/go/alicloud/ecs/getEcsNetworkInterfaces.go +++ b/sdk/go/alicloud/ecs/getEcsNetworkInterfaces.go @@ -136,21 +136,11 @@ type GetEcsNetworkInterfacesResult struct { } func GetEcsNetworkInterfacesOutput(ctx *pulumi.Context, args GetEcsNetworkInterfacesOutputArgs, opts ...pulumi.InvokeOption) GetEcsNetworkInterfacesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEcsNetworkInterfacesResultOutput, error) { args := v.(GetEcsNetworkInterfacesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEcsNetworkInterfacesResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getEcsNetworkInterfaces:getEcsNetworkInterfaces", args, &rv, "", opts...) - if err != nil { - return GetEcsNetworkInterfacesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEcsNetworkInterfacesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEcsNetworkInterfacesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getEcsNetworkInterfaces:getEcsNetworkInterfaces", args, GetEcsNetworkInterfacesResultOutput{}, options).(GetEcsNetworkInterfacesResultOutput), nil }).(GetEcsNetworkInterfacesResultOutput) } diff --git a/sdk/go/alicloud/ecs/getEcsPrefixLists.go b/sdk/go/alicloud/ecs/getEcsPrefixLists.go index dfc5a70e7f..a382b79e21 100644 --- a/sdk/go/alicloud/ecs/getEcsPrefixLists.go +++ b/sdk/go/alicloud/ecs/getEcsPrefixLists.go @@ -83,21 +83,11 @@ type GetEcsPrefixListsResult struct { } func GetEcsPrefixListsOutput(ctx *pulumi.Context, args GetEcsPrefixListsOutputArgs, opts ...pulumi.InvokeOption) GetEcsPrefixListsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEcsPrefixListsResultOutput, error) { args := v.(GetEcsPrefixListsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEcsPrefixListsResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getEcsPrefixLists:getEcsPrefixLists", args, &rv, "", opts...) - if err != nil { - return GetEcsPrefixListsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEcsPrefixListsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEcsPrefixListsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getEcsPrefixLists:getEcsPrefixLists", args, GetEcsPrefixListsResultOutput{}, options).(GetEcsPrefixListsResultOutput), nil }).(GetEcsPrefixListsResultOutput) } diff --git a/sdk/go/alicloud/ecs/getEcsSnapshotGroups.go b/sdk/go/alicloud/ecs/getEcsSnapshotGroups.go index c907c1ca06..0542d63294 100644 --- a/sdk/go/alicloud/ecs/getEcsSnapshotGroups.go +++ b/sdk/go/alicloud/ecs/getEcsSnapshotGroups.go @@ -110,21 +110,11 @@ type GetEcsSnapshotGroupsResult struct { } func GetEcsSnapshotGroupsOutput(ctx *pulumi.Context, args GetEcsSnapshotGroupsOutputArgs, opts ...pulumi.InvokeOption) GetEcsSnapshotGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEcsSnapshotGroupsResultOutput, error) { args := v.(GetEcsSnapshotGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEcsSnapshotGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getEcsSnapshotGroups:getEcsSnapshotGroups", args, &rv, "", opts...) - if err != nil { - return GetEcsSnapshotGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEcsSnapshotGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEcsSnapshotGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getEcsSnapshotGroups:getEcsSnapshotGroups", args, GetEcsSnapshotGroupsResultOutput{}, options).(GetEcsSnapshotGroupsResultOutput), nil }).(GetEcsSnapshotGroupsResultOutput) } diff --git a/sdk/go/alicloud/ecs/getEcsSnapshots.go b/sdk/go/alicloud/ecs/getEcsSnapshots.go index a6c497e2b3..cea9402442 100644 --- a/sdk/go/alicloud/ecs/getEcsSnapshots.go +++ b/sdk/go/alicloud/ecs/getEcsSnapshots.go @@ -116,21 +116,11 @@ type GetEcsSnapshotsResult struct { } func GetEcsSnapshotsOutput(ctx *pulumi.Context, args GetEcsSnapshotsOutputArgs, opts ...pulumi.InvokeOption) GetEcsSnapshotsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEcsSnapshotsResultOutput, error) { args := v.(GetEcsSnapshotsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEcsSnapshotsResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getEcsSnapshots:getEcsSnapshots", args, &rv, "", opts...) - if err != nil { - return GetEcsSnapshotsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEcsSnapshotsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEcsSnapshotsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getEcsSnapshots:getEcsSnapshots", args, GetEcsSnapshotsResultOutput{}, options).(GetEcsSnapshotsResultOutput), nil }).(GetEcsSnapshotsResultOutput) } diff --git a/sdk/go/alicloud/ecs/getEcsStorageCapacityUnits.go b/sdk/go/alicloud/ecs/getEcsStorageCapacityUnits.go index 0d797778dd..15314b0efd 100644 --- a/sdk/go/alicloud/ecs/getEcsStorageCapacityUnits.go +++ b/sdk/go/alicloud/ecs/getEcsStorageCapacityUnits.go @@ -83,21 +83,11 @@ type GetEcsStorageCapacityUnitsResult struct { } func GetEcsStorageCapacityUnitsOutput(ctx *pulumi.Context, args GetEcsStorageCapacityUnitsOutputArgs, opts ...pulumi.InvokeOption) GetEcsStorageCapacityUnitsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEcsStorageCapacityUnitsResultOutput, error) { args := v.(GetEcsStorageCapacityUnitsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEcsStorageCapacityUnitsResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getEcsStorageCapacityUnits:getEcsStorageCapacityUnits", args, &rv, "", opts...) - if err != nil { - return GetEcsStorageCapacityUnitsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEcsStorageCapacityUnitsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEcsStorageCapacityUnitsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getEcsStorageCapacityUnits:getEcsStorageCapacityUnits", args, GetEcsStorageCapacityUnitsResultOutput{}, options).(GetEcsStorageCapacityUnitsResultOutput), nil }).(GetEcsStorageCapacityUnitsResultOutput) } diff --git a/sdk/go/alicloud/ecs/getEipAddresses.go b/sdk/go/alicloud/ecs/getEipAddresses.go index 9d12645e55..98dd4918ae 100644 --- a/sdk/go/alicloud/ecs/getEipAddresses.go +++ b/sdk/go/alicloud/ecs/getEipAddresses.go @@ -126,21 +126,11 @@ type GetEipAddressesResult struct { } func GetEipAddressesOutput(ctx *pulumi.Context, args GetEipAddressesOutputArgs, opts ...pulumi.InvokeOption) GetEipAddressesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEipAddressesResultOutput, error) { args := v.(GetEipAddressesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEipAddressesResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getEipAddresses:getEipAddresses", args, &rv, "", opts...) - if err != nil { - return GetEipAddressesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEipAddressesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEipAddressesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getEipAddresses:getEipAddresses", args, GetEipAddressesResultOutput{}, options).(GetEipAddressesResultOutput), nil }).(GetEipAddressesResultOutput) } diff --git a/sdk/go/alicloud/ecs/getEips.go b/sdk/go/alicloud/ecs/getEips.go index 2498a11d3a..0695230fcd 100644 --- a/sdk/go/alicloud/ecs/getEips.go +++ b/sdk/go/alicloud/ecs/getEips.go @@ -119,21 +119,11 @@ type GetEipsResult struct { } func GetEipsOutput(ctx *pulumi.Context, args GetEipsOutputArgs, opts ...pulumi.InvokeOption) GetEipsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEipsResultOutput, error) { args := v.(GetEipsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEipsResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getEips:getEips", args, &rv, "", opts...) - if err != nil { - return GetEipsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEipsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEipsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getEips:getEips", args, GetEipsResultOutput{}, options).(GetEipsResultOutput), nil }).(GetEipsResultOutput) } diff --git a/sdk/go/alicloud/ecs/getElasticityAssurances.go b/sdk/go/alicloud/ecs/getElasticityAssurances.go index b59dbfb686..5d681a4410 100644 --- a/sdk/go/alicloud/ecs/getElasticityAssurances.go +++ b/sdk/go/alicloud/ecs/getElasticityAssurances.go @@ -86,21 +86,11 @@ type GetElasticityAssurancesResult struct { } func GetElasticityAssurancesOutput(ctx *pulumi.Context, args GetElasticityAssurancesOutputArgs, opts ...pulumi.InvokeOption) GetElasticityAssurancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetElasticityAssurancesResultOutput, error) { args := v.(GetElasticityAssurancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetElasticityAssurancesResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getElasticityAssurances:getElasticityAssurances", args, &rv, "", opts...) - if err != nil { - return GetElasticityAssurancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetElasticityAssurancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetElasticityAssurancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getElasticityAssurances:getElasticityAssurances", args, GetElasticityAssurancesResultOutput{}, options).(GetElasticityAssurancesResultOutput), nil }).(GetElasticityAssurancesResultOutput) } diff --git a/sdk/go/alicloud/ecs/getHpcClusters.go b/sdk/go/alicloud/ecs/getHpcClusters.go index 82e686a57f..9d12dda441 100644 --- a/sdk/go/alicloud/ecs/getHpcClusters.go +++ b/sdk/go/alicloud/ecs/getHpcClusters.go @@ -78,21 +78,11 @@ type GetHpcClustersResult struct { } func GetHpcClustersOutput(ctx *pulumi.Context, args GetHpcClustersOutputArgs, opts ...pulumi.InvokeOption) GetHpcClustersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHpcClustersResultOutput, error) { args := v.(GetHpcClustersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHpcClustersResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getHpcClusters:getHpcClusters", args, &rv, "", opts...) - if err != nil { - return GetHpcClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHpcClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHpcClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getHpcClusters:getHpcClusters", args, GetHpcClustersResultOutput{}, options).(GetHpcClustersResultOutput), nil }).(GetHpcClustersResultOutput) } diff --git a/sdk/go/alicloud/ecs/getImages.go b/sdk/go/alicloud/ecs/getImages.go index 9c93a538fb..9ce7b7df2e 100644 --- a/sdk/go/alicloud/ecs/getImages.go +++ b/sdk/go/alicloud/ecs/getImages.go @@ -139,21 +139,11 @@ type GetImagesResult struct { } func GetImagesOutput(ctx *pulumi.Context, args GetImagesOutputArgs, opts ...pulumi.InvokeOption) GetImagesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetImagesResultOutput, error) { args := v.(GetImagesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetImagesResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getImages:getImages", args, &rv, "", opts...) - if err != nil { - return GetImagesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetImagesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetImagesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getImages:getImages", args, GetImagesResultOutput{}, options).(GetImagesResultOutput), nil }).(GetImagesResultOutput) } diff --git a/sdk/go/alicloud/ecs/getInstanceKeywords.go b/sdk/go/alicloud/ecs/getInstanceKeywords.go index 920b5d1656..b388d23ddb 100644 --- a/sdk/go/alicloud/ecs/getInstanceKeywords.go +++ b/sdk/go/alicloud/ecs/getInstanceKeywords.go @@ -73,21 +73,11 @@ type GetInstanceKeywordsResult struct { } func GetInstanceKeywordsOutput(ctx *pulumi.Context, args GetInstanceKeywordsOutputArgs, opts ...pulumi.InvokeOption) GetInstanceKeywordsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceKeywordsResultOutput, error) { args := v.(GetInstanceKeywordsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceKeywordsResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getInstanceKeywords:getInstanceKeywords", args, &rv, "", opts...) - if err != nil { - return GetInstanceKeywordsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceKeywordsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceKeywordsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getInstanceKeywords:getInstanceKeywords", args, GetInstanceKeywordsResultOutput{}, options).(GetInstanceKeywordsResultOutput), nil }).(GetInstanceKeywordsResultOutput) } diff --git a/sdk/go/alicloud/ecs/getInstanceTypeFamilies.go b/sdk/go/alicloud/ecs/getInstanceTypeFamilies.go index 06ce36efb8..8bb9f07b6e 100644 --- a/sdk/go/alicloud/ecs/getInstanceTypeFamilies.go +++ b/sdk/go/alicloud/ecs/getInstanceTypeFamilies.go @@ -82,21 +82,11 @@ type GetInstanceTypeFamiliesResult struct { } func GetInstanceTypeFamiliesOutput(ctx *pulumi.Context, args GetInstanceTypeFamiliesOutputArgs, opts ...pulumi.InvokeOption) GetInstanceTypeFamiliesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceTypeFamiliesResultOutput, error) { args := v.(GetInstanceTypeFamiliesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceTypeFamiliesResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getInstanceTypeFamilies:getInstanceTypeFamilies", args, &rv, "", opts...) - if err != nil { - return GetInstanceTypeFamiliesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceTypeFamiliesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceTypeFamiliesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getInstanceTypeFamilies:getInstanceTypeFamilies", args, GetInstanceTypeFamiliesResultOutput{}, options).(GetInstanceTypeFamiliesResultOutput), nil }).(GetInstanceTypeFamiliesResultOutput) } diff --git a/sdk/go/alicloud/ecs/getInstanceTypes.go b/sdk/go/alicloud/ecs/getInstanceTypes.go index 0256e17ce5..7268fbb93b 100644 --- a/sdk/go/alicloud/ecs/getInstanceTypes.go +++ b/sdk/go/alicloud/ecs/getInstanceTypes.go @@ -213,21 +213,11 @@ type GetInstanceTypesResult struct { } func GetInstanceTypesOutput(ctx *pulumi.Context, args GetInstanceTypesOutputArgs, opts ...pulumi.InvokeOption) GetInstanceTypesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceTypesResultOutput, error) { args := v.(GetInstanceTypesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceTypesResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getInstanceTypes:getInstanceTypes", args, &rv, "", opts...) - if err != nil { - return GetInstanceTypesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceTypesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceTypesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getInstanceTypes:getInstanceTypes", args, GetInstanceTypesResultOutput{}, options).(GetInstanceTypesResultOutput), nil }).(GetInstanceTypesResultOutput) } diff --git a/sdk/go/alicloud/ecs/getInstances.go b/sdk/go/alicloud/ecs/getInstances.go index a7022fc448..b78892288f 100644 --- a/sdk/go/alicloud/ecs/getInstances.go +++ b/sdk/go/alicloud/ecs/getInstances.go @@ -142,21 +142,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/ecs/getKeyPairs.go b/sdk/go/alicloud/ecs/getKeyPairs.go index c0aae0ba41..312b5e5ac6 100644 --- a/sdk/go/alicloud/ecs/getKeyPairs.go +++ b/sdk/go/alicloud/ecs/getKeyPairs.go @@ -93,21 +93,11 @@ type GetKeyPairsResult struct { } func GetKeyPairsOutput(ctx *pulumi.Context, args GetKeyPairsOutputArgs, opts ...pulumi.InvokeOption) GetKeyPairsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKeyPairsResultOutput, error) { args := v.(GetKeyPairsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKeyPairsResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getKeyPairs:getKeyPairs", args, &rv, "", opts...) - if err != nil { - return GetKeyPairsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKeyPairsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKeyPairsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getKeyPairs:getKeyPairs", args, GetKeyPairsResultOutput{}, options).(GetKeyPairsResultOutput), nil }).(GetKeyPairsResultOutput) } diff --git a/sdk/go/alicloud/ecs/getNetworkInterfaces.go b/sdk/go/alicloud/ecs/getNetworkInterfaces.go index dbb2b81757..073a99c0ee 100644 --- a/sdk/go/alicloud/ecs/getNetworkInterfaces.go +++ b/sdk/go/alicloud/ecs/getNetworkInterfaces.go @@ -225,21 +225,11 @@ type GetNetworkInterfacesResult struct { } func GetNetworkInterfacesOutput(ctx *pulumi.Context, args GetNetworkInterfacesOutputArgs, opts ...pulumi.InvokeOption) GetNetworkInterfacesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNetworkInterfacesResultOutput, error) { args := v.(GetNetworkInterfacesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNetworkInterfacesResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getNetworkInterfaces:getNetworkInterfaces", args, &rv, "", opts...) - if err != nil { - return GetNetworkInterfacesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNetworkInterfacesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNetworkInterfacesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getNetworkInterfaces:getNetworkInterfaces", args, GetNetworkInterfacesResultOutput{}, options).(GetNetworkInterfacesResultOutput), nil }).(GetNetworkInterfacesResultOutput) } diff --git a/sdk/go/alicloud/ecs/getSecurityGroupRules.go b/sdk/go/alicloud/ecs/getSecurityGroupRules.go index 0f9a964718..3122c6737b 100644 --- a/sdk/go/alicloud/ecs/getSecurityGroupRules.go +++ b/sdk/go/alicloud/ecs/getSecurityGroupRules.go @@ -115,21 +115,11 @@ type GetSecurityGroupRulesResult struct { } func GetSecurityGroupRulesOutput(ctx *pulumi.Context, args GetSecurityGroupRulesOutputArgs, opts ...pulumi.InvokeOption) GetSecurityGroupRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSecurityGroupRulesResultOutput, error) { args := v.(GetSecurityGroupRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSecurityGroupRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getSecurityGroupRules:getSecurityGroupRules", args, &rv, "", opts...) - if err != nil { - return GetSecurityGroupRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSecurityGroupRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSecurityGroupRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getSecurityGroupRules:getSecurityGroupRules", args, GetSecurityGroupRulesResultOutput{}, options).(GetSecurityGroupRulesResultOutput), nil }).(GetSecurityGroupRulesResultOutput) } diff --git a/sdk/go/alicloud/ecs/getSecurityGroups.go b/sdk/go/alicloud/ecs/getSecurityGroups.go index b535639622..a378e0ea3b 100644 --- a/sdk/go/alicloud/ecs/getSecurityGroups.go +++ b/sdk/go/alicloud/ecs/getSecurityGroups.go @@ -129,21 +129,11 @@ type GetSecurityGroupsResult struct { } func GetSecurityGroupsOutput(ctx *pulumi.Context, args GetSecurityGroupsOutputArgs, opts ...pulumi.InvokeOption) GetSecurityGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSecurityGroupsResultOutput, error) { args := v.(GetSecurityGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSecurityGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getSecurityGroups:getSecurityGroups", args, &rv, "", opts...) - if err != nil { - return GetSecurityGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSecurityGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSecurityGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getSecurityGroups:getSecurityGroups", args, GetSecurityGroupsResultOutput{}, options).(GetSecurityGroupsResultOutput), nil }).(GetSecurityGroupsResultOutput) } diff --git a/sdk/go/alicloud/ecs/getSnapshots.go b/sdk/go/alicloud/ecs/getSnapshots.go index deb57ba510..bf8bdb645f 100644 --- a/sdk/go/alicloud/ecs/getSnapshots.go +++ b/sdk/go/alicloud/ecs/getSnapshots.go @@ -149,21 +149,11 @@ type GetSnapshotsResult struct { } func GetSnapshotsOutput(ctx *pulumi.Context, args GetSnapshotsOutputArgs, opts ...pulumi.InvokeOption) GetSnapshotsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSnapshotsResultOutput, error) { args := v.(GetSnapshotsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSnapshotsResult - secret, err := ctx.InvokePackageRaw("alicloud:ecs/getSnapshots:getSnapshots", args, &rv, "", opts...) - if err != nil { - return GetSnapshotsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSnapshotsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSnapshotsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ecs/getSnapshots:getSnapshots", args, GetSnapshotsResultOutput{}, options).(GetSnapshotsResultOutput), nil }).(GetSnapshotsResultOutput) } diff --git a/sdk/go/alicloud/edas/getApplications.go b/sdk/go/alicloud/edas/getApplications.go index a97ddc8ebc..df6abbb973 100644 --- a/sdk/go/alicloud/edas/getApplications.go +++ b/sdk/go/alicloud/edas/getApplications.go @@ -79,21 +79,11 @@ type GetApplicationsResult struct { } func GetApplicationsOutput(ctx *pulumi.Context, args GetApplicationsOutputArgs, opts ...pulumi.InvokeOption) GetApplicationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetApplicationsResultOutput, error) { args := v.(GetApplicationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetApplicationsResult - secret, err := ctx.InvokePackageRaw("alicloud:edas/getApplications:getApplications", args, &rv, "", opts...) - if err != nil { - return GetApplicationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetApplicationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetApplicationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:edas/getApplications:getApplications", args, GetApplicationsResultOutput{}, options).(GetApplicationsResultOutput), nil }).(GetApplicationsResultOutput) } diff --git a/sdk/go/alicloud/edas/getClusters.go b/sdk/go/alicloud/edas/getClusters.go index 3b3f1c7a18..2ea0fc79b8 100644 --- a/sdk/go/alicloud/edas/getClusters.go +++ b/sdk/go/alicloud/edas/getClusters.go @@ -83,21 +83,11 @@ type GetClustersResult struct { } func GetClustersOutput(ctx *pulumi.Context, args GetClustersOutputArgs, opts ...pulumi.InvokeOption) GetClustersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetClustersResultOutput, error) { args := v.(GetClustersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetClustersResult - secret, err := ctx.InvokePackageRaw("alicloud:edas/getClusters:getClusters", args, &rv, "", opts...) - if err != nil { - return GetClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:edas/getClusters:getClusters", args, GetClustersResultOutput{}, options).(GetClustersResultOutput), nil }).(GetClustersResultOutput) } diff --git a/sdk/go/alicloud/edas/getDeployGroups.go b/sdk/go/alicloud/edas/getDeployGroups.go index 09d9e38326..d661f89484 100644 --- a/sdk/go/alicloud/edas/getDeployGroups.go +++ b/sdk/go/alicloud/edas/getDeployGroups.go @@ -49,21 +49,11 @@ type GetDeployGroupsResult struct { } func GetDeployGroupsOutput(ctx *pulumi.Context, args GetDeployGroupsOutputArgs, opts ...pulumi.InvokeOption) GetDeployGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDeployGroupsResultOutput, error) { args := v.(GetDeployGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDeployGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:edas/getDeployGroups:getDeployGroups", args, &rv, "", opts...) - if err != nil { - return GetDeployGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDeployGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDeployGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:edas/getDeployGroups:getDeployGroups", args, GetDeployGroupsResultOutput{}, options).(GetDeployGroupsResultOutput), nil }).(GetDeployGroupsResultOutput) } diff --git a/sdk/go/alicloud/edas/getNamespaces.go b/sdk/go/alicloud/edas/getNamespaces.go index d69e09549e..5df2bb5d3b 100644 --- a/sdk/go/alicloud/edas/getNamespaces.go +++ b/sdk/go/alicloud/edas/getNamespaces.go @@ -84,21 +84,11 @@ type GetNamespacesResult struct { } func GetNamespacesOutput(ctx *pulumi.Context, args GetNamespacesOutputArgs, opts ...pulumi.InvokeOption) GetNamespacesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNamespacesResultOutput, error) { args := v.(GetNamespacesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNamespacesResult - secret, err := ctx.InvokePackageRaw("alicloud:edas/getNamespaces:getNamespaces", args, &rv, "", opts...) - if err != nil { - return GetNamespacesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNamespacesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNamespacesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:edas/getNamespaces:getNamespaces", args, GetNamespacesResultOutput{}, options).(GetNamespacesResultOutput), nil }).(GetNamespacesResultOutput) } diff --git a/sdk/go/alicloud/edas/getService.go b/sdk/go/alicloud/edas/getService.go index b1c751ee9e..131810bfda 100644 --- a/sdk/go/alicloud/edas/getService.go +++ b/sdk/go/alicloud/edas/getService.go @@ -72,21 +72,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:edas/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:edas/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/eds/getAdConnectorDirectories.go b/sdk/go/alicloud/eds/getAdConnectorDirectories.go index 232e023480..5e02de61c7 100644 --- a/sdk/go/alicloud/eds/getAdConnectorDirectories.go +++ b/sdk/go/alicloud/eds/getAdConnectorDirectories.go @@ -80,21 +80,11 @@ type GetAdConnectorDirectoriesResult struct { } func GetAdConnectorDirectoriesOutput(ctx *pulumi.Context, args GetAdConnectorDirectoriesOutputArgs, opts ...pulumi.InvokeOption) GetAdConnectorDirectoriesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAdConnectorDirectoriesResultOutput, error) { args := v.(GetAdConnectorDirectoriesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAdConnectorDirectoriesResult - secret, err := ctx.InvokePackageRaw("alicloud:eds/getAdConnectorDirectories:getAdConnectorDirectories", args, &rv, "", opts...) - if err != nil { - return GetAdConnectorDirectoriesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAdConnectorDirectoriesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAdConnectorDirectoriesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eds/getAdConnectorDirectories:getAdConnectorDirectories", args, GetAdConnectorDirectoriesResultOutput{}, options).(GetAdConnectorDirectoriesResultOutput), nil }).(GetAdConnectorDirectoriesResultOutput) } diff --git a/sdk/go/alicloud/eds/getAdConnectorOfficeSites.go b/sdk/go/alicloud/eds/getAdConnectorOfficeSites.go index 7b3a188320..ec90008674 100644 --- a/sdk/go/alicloud/eds/getAdConnectorOfficeSites.go +++ b/sdk/go/alicloud/eds/getAdConnectorOfficeSites.go @@ -92,21 +92,11 @@ type GetAdConnectorOfficeSitesResult struct { } func GetAdConnectorOfficeSitesOutput(ctx *pulumi.Context, args GetAdConnectorOfficeSitesOutputArgs, opts ...pulumi.InvokeOption) GetAdConnectorOfficeSitesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAdConnectorOfficeSitesResultOutput, error) { args := v.(GetAdConnectorOfficeSitesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAdConnectorOfficeSitesResult - secret, err := ctx.InvokePackageRaw("alicloud:eds/getAdConnectorOfficeSites:getAdConnectorOfficeSites", args, &rv, "", opts...) - if err != nil { - return GetAdConnectorOfficeSitesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAdConnectorOfficeSitesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAdConnectorOfficeSitesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eds/getAdConnectorOfficeSites:getAdConnectorOfficeSites", args, GetAdConnectorOfficeSitesResultOutput{}, options).(GetAdConnectorOfficeSitesResultOutput), nil }).(GetAdConnectorOfficeSitesResultOutput) } diff --git a/sdk/go/alicloud/eds/getBundles.go b/sdk/go/alicloud/eds/getBundles.go index 495f217e33..127a95e49c 100644 --- a/sdk/go/alicloud/eds/getBundles.go +++ b/sdk/go/alicloud/eds/getBundles.go @@ -79,21 +79,11 @@ type GetBundlesResult struct { } func GetBundlesOutput(ctx *pulumi.Context, args GetBundlesOutputArgs, opts ...pulumi.InvokeOption) GetBundlesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBundlesResultOutput, error) { args := v.(GetBundlesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBundlesResult - secret, err := ctx.InvokePackageRaw("alicloud:eds/getBundles:getBundles", args, &rv, "", opts...) - if err != nil { - return GetBundlesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBundlesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBundlesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eds/getBundles:getBundles", args, GetBundlesResultOutput{}, options).(GetBundlesResultOutput), nil }).(GetBundlesResultOutput) } diff --git a/sdk/go/alicloud/eds/getCommands.go b/sdk/go/alicloud/eds/getCommands.go index c35238258a..87787a9867 100644 --- a/sdk/go/alicloud/eds/getCommands.go +++ b/sdk/go/alicloud/eds/getCommands.go @@ -138,21 +138,11 @@ type GetCommandsResult struct { } func GetCommandsOutput(ctx *pulumi.Context, args GetCommandsOutputArgs, opts ...pulumi.InvokeOption) GetCommandsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCommandsResultOutput, error) { args := v.(GetCommandsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCommandsResult - secret, err := ctx.InvokePackageRaw("alicloud:eds/getCommands:getCommands", args, &rv, "", opts...) - if err != nil { - return GetCommandsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCommandsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCommandsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eds/getCommands:getCommands", args, GetCommandsResultOutput{}, options).(GetCommandsResultOutput), nil }).(GetCommandsResultOutput) } diff --git a/sdk/go/alicloud/eds/getCustomProperties.go b/sdk/go/alicloud/eds/getCustomProperties.go index b81973c7bc..25ab7592d4 100644 --- a/sdk/go/alicloud/eds/getCustomProperties.go +++ b/sdk/go/alicloud/eds/getCustomProperties.go @@ -73,21 +73,11 @@ type GetCustomPropertiesResult struct { } func GetCustomPropertiesOutput(ctx *pulumi.Context, args GetCustomPropertiesOutputArgs, opts ...pulumi.InvokeOption) GetCustomPropertiesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCustomPropertiesResultOutput, error) { args := v.(GetCustomPropertiesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCustomPropertiesResult - secret, err := ctx.InvokePackageRaw("alicloud:eds/getCustomProperties:getCustomProperties", args, &rv, "", opts...) - if err != nil { - return GetCustomPropertiesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCustomPropertiesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCustomPropertiesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eds/getCustomProperties:getCustomProperties", args, GetCustomPropertiesResultOutput{}, options).(GetCustomPropertiesResultOutput), nil }).(GetCustomPropertiesResultOutput) } diff --git a/sdk/go/alicloud/eds/getDesktopTypes.go b/sdk/go/alicloud/eds/getDesktopTypes.go index ea87ad4e0f..e9fbc6e697 100644 --- a/sdk/go/alicloud/eds/getDesktopTypes.go +++ b/sdk/go/alicloud/eds/getDesktopTypes.go @@ -86,21 +86,11 @@ type GetDesktopTypesResult struct { } func GetDesktopTypesOutput(ctx *pulumi.Context, args GetDesktopTypesOutputArgs, opts ...pulumi.InvokeOption) GetDesktopTypesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDesktopTypesResultOutput, error) { args := v.(GetDesktopTypesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDesktopTypesResult - secret, err := ctx.InvokePackageRaw("alicloud:eds/getDesktopTypes:getDesktopTypes", args, &rv, "", opts...) - if err != nil { - return GetDesktopTypesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDesktopTypesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDesktopTypesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eds/getDesktopTypes:getDesktopTypes", args, GetDesktopTypesResultOutput{}, options).(GetDesktopTypesResultOutput), nil }).(GetDesktopTypesResultOutput) } diff --git a/sdk/go/alicloud/eds/getDesktops.go b/sdk/go/alicloud/eds/getDesktops.go index d2c176ea41..19a1b8f729 100644 --- a/sdk/go/alicloud/eds/getDesktops.go +++ b/sdk/go/alicloud/eds/getDesktops.go @@ -158,21 +158,11 @@ type GetDesktopsResult struct { } func GetDesktopsOutput(ctx *pulumi.Context, args GetDesktopsOutputArgs, opts ...pulumi.InvokeOption) GetDesktopsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDesktopsResultOutput, error) { args := v.(GetDesktopsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDesktopsResult - secret, err := ctx.InvokePackageRaw("alicloud:eds/getDesktops:getDesktops", args, &rv, "", opts...) - if err != nil { - return GetDesktopsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDesktopsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDesktopsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eds/getDesktops:getDesktops", args, GetDesktopsResultOutput{}, options).(GetDesktopsResultOutput), nil }).(GetDesktopsResultOutput) } diff --git a/sdk/go/alicloud/eds/getImages.go b/sdk/go/alicloud/eds/getImages.go index fd48280eb7..2aef68a919 100644 --- a/sdk/go/alicloud/eds/getImages.go +++ b/sdk/go/alicloud/eds/getImages.go @@ -152,21 +152,11 @@ type GetImagesResult struct { } func GetImagesOutput(ctx *pulumi.Context, args GetImagesOutputArgs, opts ...pulumi.InvokeOption) GetImagesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetImagesResultOutput, error) { args := v.(GetImagesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetImagesResult - secret, err := ctx.InvokePackageRaw("alicloud:eds/getImages:getImages", args, &rv, "", opts...) - if err != nil { - return GetImagesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetImagesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetImagesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eds/getImages:getImages", args, GetImagesResultOutput{}, options).(GetImagesResultOutput), nil }).(GetImagesResultOutput) } diff --git a/sdk/go/alicloud/eds/getNasFileSystems.go b/sdk/go/alicloud/eds/getNasFileSystems.go index cf4c2110dd..d22569a90f 100644 --- a/sdk/go/alicloud/eds/getNasFileSystems.go +++ b/sdk/go/alicloud/eds/getNasFileSystems.go @@ -104,21 +104,11 @@ type GetNasFileSystemsResult struct { } func GetNasFileSystemsOutput(ctx *pulumi.Context, args GetNasFileSystemsOutputArgs, opts ...pulumi.InvokeOption) GetNasFileSystemsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNasFileSystemsResultOutput, error) { args := v.(GetNasFileSystemsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNasFileSystemsResult - secret, err := ctx.InvokePackageRaw("alicloud:eds/getNasFileSystems:getNasFileSystems", args, &rv, "", opts...) - if err != nil { - return GetNasFileSystemsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNasFileSystemsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNasFileSystemsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eds/getNasFileSystems:getNasFileSystems", args, GetNasFileSystemsResultOutput{}, options).(GetNasFileSystemsResultOutput), nil }).(GetNasFileSystemsResultOutput) } diff --git a/sdk/go/alicloud/eds/getNetworkPackages.go b/sdk/go/alicloud/eds/getNetworkPackages.go index 3767076829..4c68bff67d 100644 --- a/sdk/go/alicloud/eds/getNetworkPackages.go +++ b/sdk/go/alicloud/eds/getNetworkPackages.go @@ -88,21 +88,11 @@ type GetNetworkPackagesResult struct { } func GetNetworkPackagesOutput(ctx *pulumi.Context, args GetNetworkPackagesOutputArgs, opts ...pulumi.InvokeOption) GetNetworkPackagesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNetworkPackagesResultOutput, error) { args := v.(GetNetworkPackagesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNetworkPackagesResult - secret, err := ctx.InvokePackageRaw("alicloud:eds/getNetworkPackages:getNetworkPackages", args, &rv, "", opts...) - if err != nil { - return GetNetworkPackagesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNetworkPackagesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNetworkPackagesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eds/getNetworkPackages:getNetworkPackages", args, GetNetworkPackagesResultOutput{}, options).(GetNetworkPackagesResultOutput), nil }).(GetNetworkPackagesResultOutput) } diff --git a/sdk/go/alicloud/eds/getPolicyGroups.go b/sdk/go/alicloud/eds/getPolicyGroups.go index c73e8e9ee4..fa04395c04 100644 --- a/sdk/go/alicloud/eds/getPolicyGroups.go +++ b/sdk/go/alicloud/eds/getPolicyGroups.go @@ -105,21 +105,11 @@ type GetPolicyGroupsResult struct { } func GetPolicyGroupsOutput(ctx *pulumi.Context, args GetPolicyGroupsOutputArgs, opts ...pulumi.InvokeOption) GetPolicyGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPolicyGroupsResultOutput, error) { args := v.(GetPolicyGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPolicyGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:eds/getPolicyGroups:getPolicyGroups", args, &rv, "", opts...) - if err != nil { - return GetPolicyGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPolicyGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPolicyGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eds/getPolicyGroups:getPolicyGroups", args, GetPolicyGroupsResultOutput{}, options).(GetPolicyGroupsResultOutput), nil }).(GetPolicyGroupsResultOutput) } diff --git a/sdk/go/alicloud/eds/getRamDirectories.go b/sdk/go/alicloud/eds/getRamDirectories.go index 2a0e4081f3..2402b64ebd 100644 --- a/sdk/go/alicloud/eds/getRamDirectories.go +++ b/sdk/go/alicloud/eds/getRamDirectories.go @@ -87,21 +87,11 @@ type GetRamDirectoriesResult struct { } func GetRamDirectoriesOutput(ctx *pulumi.Context, args GetRamDirectoriesOutputArgs, opts ...pulumi.InvokeOption) GetRamDirectoriesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRamDirectoriesResultOutput, error) { args := v.(GetRamDirectoriesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRamDirectoriesResult - secret, err := ctx.InvokePackageRaw("alicloud:eds/getRamDirectories:getRamDirectories", args, &rv, "", opts...) - if err != nil { - return GetRamDirectoriesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRamDirectoriesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRamDirectoriesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eds/getRamDirectories:getRamDirectories", args, GetRamDirectoriesResultOutput{}, options).(GetRamDirectoriesResultOutput), nil }).(GetRamDirectoriesResultOutput) } diff --git a/sdk/go/alicloud/eds/getSimpleOfficeSites.go b/sdk/go/alicloud/eds/getSimpleOfficeSites.go index 651f826147..458f717aea 100644 --- a/sdk/go/alicloud/eds/getSimpleOfficeSites.go +++ b/sdk/go/alicloud/eds/getSimpleOfficeSites.go @@ -81,21 +81,11 @@ type GetSimpleOfficeSitesResult struct { } func GetSimpleOfficeSitesOutput(ctx *pulumi.Context, args GetSimpleOfficeSitesOutputArgs, opts ...pulumi.InvokeOption) GetSimpleOfficeSitesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSimpleOfficeSitesResultOutput, error) { args := v.(GetSimpleOfficeSitesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSimpleOfficeSitesResult - secret, err := ctx.InvokePackageRaw("alicloud:eds/getSimpleOfficeSites:getSimpleOfficeSites", args, &rv, "", opts...) - if err != nil { - return GetSimpleOfficeSitesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSimpleOfficeSitesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSimpleOfficeSitesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eds/getSimpleOfficeSites:getSimpleOfficeSites", args, GetSimpleOfficeSitesResultOutput{}, options).(GetSimpleOfficeSitesResultOutput), nil }).(GetSimpleOfficeSitesResultOutput) } diff --git a/sdk/go/alicloud/eds/getSnapshots.go b/sdk/go/alicloud/eds/getSnapshots.go index dd704dc516..9c3807174c 100644 --- a/sdk/go/alicloud/eds/getSnapshots.go +++ b/sdk/go/alicloud/eds/getSnapshots.go @@ -79,21 +79,11 @@ type GetSnapshotsResult struct { } func GetSnapshotsOutput(ctx *pulumi.Context, args GetSnapshotsOutputArgs, opts ...pulumi.InvokeOption) GetSnapshotsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSnapshotsResultOutput, error) { args := v.(GetSnapshotsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSnapshotsResult - secret, err := ctx.InvokePackageRaw("alicloud:eds/getSnapshots:getSnapshots", args, &rv, "", opts...) - if err != nil { - return GetSnapshotsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSnapshotsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSnapshotsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eds/getSnapshots:getSnapshots", args, GetSnapshotsResultOutput{}, options).(GetSnapshotsResultOutput), nil }).(GetSnapshotsResultOutput) } diff --git a/sdk/go/alicloud/eds/getUsers.go b/sdk/go/alicloud/eds/getUsers.go index 8ed9251f94..6b6836bf93 100644 --- a/sdk/go/alicloud/eds/getUsers.go +++ b/sdk/go/alicloud/eds/getUsers.go @@ -81,21 +81,11 @@ type GetUsersResult struct { } func GetUsersOutput(ctx *pulumi.Context, args GetUsersOutputArgs, opts ...pulumi.InvokeOption) GetUsersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetUsersResultOutput, error) { args := v.(GetUsersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetUsersResult - secret, err := ctx.InvokePackageRaw("alicloud:eds/getUsers:getUsers", args, &rv, "", opts...) - if err != nil { - return GetUsersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetUsersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetUsersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eds/getUsers:getUsers", args, GetUsersResultOutput{}, options).(GetUsersResultOutput), nil }).(GetUsersResultOutput) } diff --git a/sdk/go/alicloud/eds/getZones.go b/sdk/go/alicloud/eds/getZones.go index c8f732b33f..2f80487ff4 100644 --- a/sdk/go/alicloud/eds/getZones.go +++ b/sdk/go/alicloud/eds/getZones.go @@ -67,21 +67,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:eds/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eds/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/eflo/getSubnets.go b/sdk/go/alicloud/eflo/getSubnets.go index 1eb481b2cc..58c640a10b 100644 --- a/sdk/go/alicloud/eflo/getSubnets.go +++ b/sdk/go/alicloud/eflo/getSubnets.go @@ -112,21 +112,11 @@ type GetSubnetsResult struct { } func GetSubnetsOutput(ctx *pulumi.Context, args GetSubnetsOutputArgs, opts ...pulumi.InvokeOption) GetSubnetsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSubnetsResultOutput, error) { args := v.(GetSubnetsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSubnetsResult - secret, err := ctx.InvokePackageRaw("alicloud:eflo/getSubnets:getSubnets", args, &rv, "", opts...) - if err != nil { - return GetSubnetsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSubnetsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSubnetsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eflo/getSubnets:getSubnets", args, GetSubnetsResultOutput{}, options).(GetSubnetsResultOutput), nil }).(GetSubnetsResultOutput) } diff --git a/sdk/go/alicloud/eflo/getVpds.go b/sdk/go/alicloud/eflo/getVpds.go index 33382501b6..57a8b3c341 100644 --- a/sdk/go/alicloud/eflo/getVpds.go +++ b/sdk/go/alicloud/eflo/getVpds.go @@ -101,21 +101,11 @@ type GetVpdsResult struct { } func GetVpdsOutput(ctx *pulumi.Context, args GetVpdsOutputArgs, opts ...pulumi.InvokeOption) GetVpdsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVpdsResultOutput, error) { args := v.(GetVpdsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVpdsResult - secret, err := ctx.InvokePackageRaw("alicloud:eflo/getVpds:getVpds", args, &rv, "", opts...) - if err != nil { - return GetVpdsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVpdsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVpdsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eflo/getVpds:getVpds", args, GetVpdsResultOutput{}, options).(GetVpdsResultOutput), nil }).(GetVpdsResultOutput) } diff --git a/sdk/go/alicloud/ehpc/getClusters.go b/sdk/go/alicloud/ehpc/getClusters.go index 7e4841c27f..1500f3f9a5 100644 --- a/sdk/go/alicloud/ehpc/getClusters.go +++ b/sdk/go/alicloud/ehpc/getClusters.go @@ -93,21 +93,11 @@ type GetClustersResult struct { } func GetClustersOutput(ctx *pulumi.Context, args GetClustersOutputArgs, opts ...pulumi.InvokeOption) GetClustersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetClustersResultOutput, error) { args := v.(GetClustersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetClustersResult - secret, err := ctx.InvokePackageRaw("alicloud:ehpc/getClusters:getClusters", args, &rv, "", opts...) - if err != nil { - return GetClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ehpc/getClusters:getClusters", args, GetClustersResultOutput{}, options).(GetClustersResultOutput), nil }).(GetClustersResultOutput) } diff --git a/sdk/go/alicloud/ehpc/getJobTemplates.go b/sdk/go/alicloud/ehpc/getJobTemplates.go index f1eb33fe01..ca4dc2e4ca 100644 --- a/sdk/go/alicloud/ehpc/getJobTemplates.go +++ b/sdk/go/alicloud/ehpc/getJobTemplates.go @@ -80,21 +80,11 @@ type GetJobTemplatesResult struct { } func GetJobTemplatesOutput(ctx *pulumi.Context, args GetJobTemplatesOutputArgs, opts ...pulumi.InvokeOption) GetJobTemplatesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetJobTemplatesResultOutput, error) { args := v.(GetJobTemplatesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetJobTemplatesResult - secret, err := ctx.InvokePackageRaw("alicloud:ehpc/getJobTemplates:getJobTemplates", args, &rv, "", opts...) - if err != nil { - return GetJobTemplatesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetJobTemplatesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetJobTemplatesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ehpc/getJobTemplates:getJobTemplates", args, GetJobTemplatesResultOutput{}, options).(GetJobTemplatesResultOutput), nil }).(GetJobTemplatesResultOutput) } diff --git a/sdk/go/alicloud/eipanycast/getAnycastEipAddresses.go b/sdk/go/alicloud/eipanycast/getAnycastEipAddresses.go index f5826f9fc2..05797aa10a 100644 --- a/sdk/go/alicloud/eipanycast/getAnycastEipAddresses.go +++ b/sdk/go/alicloud/eipanycast/getAnycastEipAddresses.go @@ -102,21 +102,11 @@ type GetAnycastEipAddressesResult struct { } func GetAnycastEipAddressesOutput(ctx *pulumi.Context, args GetAnycastEipAddressesOutputArgs, opts ...pulumi.InvokeOption) GetAnycastEipAddressesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAnycastEipAddressesResultOutput, error) { args := v.(GetAnycastEipAddressesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAnycastEipAddressesResult - secret, err := ctx.InvokePackageRaw("alicloud:eipanycast/getAnycastEipAddresses:getAnycastEipAddresses", args, &rv, "", opts...) - if err != nil { - return GetAnycastEipAddressesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAnycastEipAddressesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAnycastEipAddressesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eipanycast/getAnycastEipAddresses:getAnycastEipAddresses", args, GetAnycastEipAddressesResultOutput{}, options).(GetAnycastEipAddressesResultOutput), nil }).(GetAnycastEipAddressesResultOutput) } diff --git a/sdk/go/alicloud/elasticsearch/getInstances.go b/sdk/go/alicloud/elasticsearch/getInstances.go index 95601efe61..c2e75d9155 100644 --- a/sdk/go/alicloud/elasticsearch/getInstances.go +++ b/sdk/go/alicloud/elasticsearch/getInstances.go @@ -44,21 +44,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:elasticsearch/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:elasticsearch/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/elasticsearch/getZones.go b/sdk/go/alicloud/elasticsearch/getZones.go index 8e4320ed97..858b265d73 100644 --- a/sdk/go/alicloud/elasticsearch/getZones.go +++ b/sdk/go/alicloud/elasticsearch/getZones.go @@ -70,21 +70,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:elasticsearch/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:elasticsearch/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/emr/getClusters.go b/sdk/go/alicloud/emr/getClusters.go index ef41cb6a7d..8999edce20 100644 --- a/sdk/go/alicloud/emr/getClusters.go +++ b/sdk/go/alicloud/emr/getClusters.go @@ -311,21 +311,11 @@ type GetClustersResult struct { } func GetClustersOutput(ctx *pulumi.Context, args GetClustersOutputArgs, opts ...pulumi.InvokeOption) GetClustersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetClustersResultOutput, error) { args := v.(GetClustersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetClustersResult - secret, err := ctx.InvokePackageRaw("alicloud:emr/getClusters:getClusters", args, &rv, "", opts...) - if err != nil { - return GetClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:emr/getClusters:getClusters", args, GetClustersResultOutput{}, options).(GetClustersResultOutput), nil }).(GetClustersResultOutput) } diff --git a/sdk/go/alicloud/emr/getDiskTypes.go b/sdk/go/alicloud/emr/getDiskTypes.go index 92ee79f2f4..55dfc24ae0 100644 --- a/sdk/go/alicloud/emr/getDiskTypes.go +++ b/sdk/go/alicloud/emr/getDiskTypes.go @@ -89,21 +89,11 @@ type GetDiskTypesResult struct { } func GetDiskTypesOutput(ctx *pulumi.Context, args GetDiskTypesOutputArgs, opts ...pulumi.InvokeOption) GetDiskTypesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDiskTypesResultOutput, error) { args := v.(GetDiskTypesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDiskTypesResult - secret, err := ctx.InvokePackageRaw("alicloud:emr/getDiskTypes:getDiskTypes", args, &rv, "", opts...) - if err != nil { - return GetDiskTypesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDiskTypesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDiskTypesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:emr/getDiskTypes:getDiskTypes", args, GetDiskTypesResultOutput{}, options).(GetDiskTypesResultOutput), nil }).(GetDiskTypesResultOutput) } diff --git a/sdk/go/alicloud/emr/getInstanceTypes.go b/sdk/go/alicloud/emr/getInstanceTypes.go index 24ad9ab8c7..e51e38bd1a 100644 --- a/sdk/go/alicloud/emr/getInstanceTypes.go +++ b/sdk/go/alicloud/emr/getInstanceTypes.go @@ -101,21 +101,11 @@ type GetInstanceTypesResult struct { } func GetInstanceTypesOutput(ctx *pulumi.Context, args GetInstanceTypesOutputArgs, opts ...pulumi.InvokeOption) GetInstanceTypesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceTypesResultOutput, error) { args := v.(GetInstanceTypesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceTypesResult - secret, err := ctx.InvokePackageRaw("alicloud:emr/getInstanceTypes:getInstanceTypes", args, &rv, "", opts...) - if err != nil { - return GetInstanceTypesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceTypesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceTypesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:emr/getInstanceTypes:getInstanceTypes", args, GetInstanceTypesResultOutput{}, options).(GetInstanceTypesResultOutput), nil }).(GetInstanceTypesResultOutput) } diff --git a/sdk/go/alicloud/emr/getMainVersions.go b/sdk/go/alicloud/emr/getMainVersions.go index 75a788b806..e3c3c1e5b9 100644 --- a/sdk/go/alicloud/emr/getMainVersions.go +++ b/sdk/go/alicloud/emr/getMainVersions.go @@ -83,21 +83,11 @@ type GetMainVersionsResult struct { } func GetMainVersionsOutput(ctx *pulumi.Context, args GetMainVersionsOutputArgs, opts ...pulumi.InvokeOption) GetMainVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetMainVersionsResultOutput, error) { args := v.(GetMainVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetMainVersionsResult - secret, err := ctx.InvokePackageRaw("alicloud:emr/getMainVersions:getMainVersions", args, &rv, "", opts...) - if err != nil { - return GetMainVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetMainVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetMainVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:emr/getMainVersions:getMainVersions", args, GetMainVersionsResultOutput{}, options).(GetMainVersionsResultOutput), nil }).(GetMainVersionsResultOutput) } diff --git a/sdk/go/alicloud/emrv2/getClusters.go b/sdk/go/alicloud/emrv2/getClusters.go index b73aee04bc..4b8dda7548 100644 --- a/sdk/go/alicloud/emrv2/getClusters.go +++ b/sdk/go/alicloud/emrv2/getClusters.go @@ -78,21 +78,11 @@ type GetClustersResult struct { } func GetClustersOutput(ctx *pulumi.Context, args GetClustersOutputArgs, opts ...pulumi.InvokeOption) GetClustersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetClustersResultOutput, error) { args := v.(GetClustersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetClustersResult - secret, err := ctx.InvokePackageRaw("alicloud:emrv2/getClusters:getClusters", args, &rv, "", opts...) - if err != nil { - return GetClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:emrv2/getClusters:getClusters", args, GetClustersResultOutput{}, options).(GetClustersResultOutput), nil }).(GetClustersResultOutput) } diff --git a/sdk/go/alicloud/ens/getKeyPairs.go b/sdk/go/alicloud/ens/getKeyPairs.go index 77ccb2d4b1..a38bb5b58a 100644 --- a/sdk/go/alicloud/ens/getKeyPairs.go +++ b/sdk/go/alicloud/ens/getKeyPairs.go @@ -80,21 +80,11 @@ type GetKeyPairsResult struct { } func GetKeyPairsOutput(ctx *pulumi.Context, args GetKeyPairsOutputArgs, opts ...pulumi.InvokeOption) GetKeyPairsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKeyPairsResultOutput, error) { args := v.(GetKeyPairsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKeyPairsResult - secret, err := ctx.InvokePackageRaw("alicloud:ens/getKeyPairs:getKeyPairs", args, &rv, "", opts...) - if err != nil { - return GetKeyPairsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKeyPairsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKeyPairsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ens/getKeyPairs:getKeyPairs", args, GetKeyPairsResultOutput{}, options).(GetKeyPairsResultOutput), nil }).(GetKeyPairsResultOutput) } diff --git a/sdk/go/alicloud/ess/getAlarms.go b/sdk/go/alicloud/ess/getAlarms.go index 0fa1507a70..bd787cde65 100644 --- a/sdk/go/alicloud/ess/getAlarms.go +++ b/sdk/go/alicloud/ess/getAlarms.go @@ -57,21 +57,11 @@ type GetAlarmsResult struct { } func GetAlarmsOutput(ctx *pulumi.Context, args GetAlarmsOutputArgs, opts ...pulumi.InvokeOption) GetAlarmsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAlarmsResultOutput, error) { args := v.(GetAlarmsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAlarmsResult - secret, err := ctx.InvokePackageRaw("alicloud:ess/getAlarms:getAlarms", args, &rv, "", opts...) - if err != nil { - return GetAlarmsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAlarmsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAlarmsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ess/getAlarms:getAlarms", args, GetAlarmsResultOutput{}, options).(GetAlarmsResultOutput), nil }).(GetAlarmsResultOutput) } diff --git a/sdk/go/alicloud/ess/getLifecycleHooks.go b/sdk/go/alicloud/ess/getLifecycleHooks.go index 075391ad90..01f32da14f 100644 --- a/sdk/go/alicloud/ess/getLifecycleHooks.go +++ b/sdk/go/alicloud/ess/getLifecycleHooks.go @@ -81,21 +81,11 @@ type GetLifecycleHooksResult struct { } func GetLifecycleHooksOutput(ctx *pulumi.Context, args GetLifecycleHooksOutputArgs, opts ...pulumi.InvokeOption) GetLifecycleHooksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetLifecycleHooksResultOutput, error) { args := v.(GetLifecycleHooksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetLifecycleHooksResult - secret, err := ctx.InvokePackageRaw("alicloud:ess/getLifecycleHooks:getLifecycleHooks", args, &rv, "", opts...) - if err != nil { - return GetLifecycleHooksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetLifecycleHooksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetLifecycleHooksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ess/getLifecycleHooks:getLifecycleHooks", args, GetLifecycleHooksResultOutput{}, options).(GetLifecycleHooksResultOutput), nil }).(GetLifecycleHooksResultOutput) } diff --git a/sdk/go/alicloud/ess/getNotifications.go b/sdk/go/alicloud/ess/getNotifications.go index 0f01530e17..2ee5fc0b00 100644 --- a/sdk/go/alicloud/ess/getNotifications.go +++ b/sdk/go/alicloud/ess/getNotifications.go @@ -75,21 +75,11 @@ type GetNotificationsResult struct { } func GetNotificationsOutput(ctx *pulumi.Context, args GetNotificationsOutputArgs, opts ...pulumi.InvokeOption) GetNotificationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNotificationsResultOutput, error) { args := v.(GetNotificationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNotificationsResult - secret, err := ctx.InvokePackageRaw("alicloud:ess/getNotifications:getNotifications", args, &rv, "", opts...) - if err != nil { - return GetNotificationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNotificationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNotificationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ess/getNotifications:getNotifications", args, GetNotificationsResultOutput{}, options).(GetNotificationsResultOutput), nil }).(GetNotificationsResultOutput) } diff --git a/sdk/go/alicloud/ess/getScalingConfigurations.go b/sdk/go/alicloud/ess/getScalingConfigurations.go index a6a95288e6..0145629e07 100644 --- a/sdk/go/alicloud/ess/getScalingConfigurations.go +++ b/sdk/go/alicloud/ess/getScalingConfigurations.go @@ -83,21 +83,11 @@ type GetScalingConfigurationsResult struct { } func GetScalingConfigurationsOutput(ctx *pulumi.Context, args GetScalingConfigurationsOutputArgs, opts ...pulumi.InvokeOption) GetScalingConfigurationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetScalingConfigurationsResultOutput, error) { args := v.(GetScalingConfigurationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetScalingConfigurationsResult - secret, err := ctx.InvokePackageRaw("alicloud:ess/getScalingConfigurations:getScalingConfigurations", args, &rv, "", opts...) - if err != nil { - return GetScalingConfigurationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetScalingConfigurationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetScalingConfigurationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ess/getScalingConfigurations:getScalingConfigurations", args, GetScalingConfigurationsResultOutput{}, options).(GetScalingConfigurationsResultOutput), nil }).(GetScalingConfigurationsResultOutput) } diff --git a/sdk/go/alicloud/ess/getScalingGroups.go b/sdk/go/alicloud/ess/getScalingGroups.go index 9615f10c5b..142d3c388d 100644 --- a/sdk/go/alicloud/ess/getScalingGroups.go +++ b/sdk/go/alicloud/ess/getScalingGroups.go @@ -78,21 +78,11 @@ type GetScalingGroupsResult struct { } func GetScalingGroupsOutput(ctx *pulumi.Context, args GetScalingGroupsOutputArgs, opts ...pulumi.InvokeOption) GetScalingGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetScalingGroupsResultOutput, error) { args := v.(GetScalingGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetScalingGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:ess/getScalingGroups:getScalingGroups", args, &rv, "", opts...) - if err != nil { - return GetScalingGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetScalingGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetScalingGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ess/getScalingGroups:getScalingGroups", args, GetScalingGroupsResultOutput{}, options).(GetScalingGroupsResultOutput), nil }).(GetScalingGroupsResultOutput) } diff --git a/sdk/go/alicloud/ess/getScalingRules.go b/sdk/go/alicloud/ess/getScalingRules.go index f5a1201aea..7750f0ae10 100644 --- a/sdk/go/alicloud/ess/getScalingRules.go +++ b/sdk/go/alicloud/ess/getScalingRules.go @@ -87,21 +87,11 @@ type GetScalingRulesResult struct { } func GetScalingRulesOutput(ctx *pulumi.Context, args GetScalingRulesOutputArgs, opts ...pulumi.InvokeOption) GetScalingRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetScalingRulesResultOutput, error) { args := v.(GetScalingRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetScalingRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:ess/getScalingRules:getScalingRules", args, &rv, "", opts...) - if err != nil { - return GetScalingRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetScalingRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetScalingRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ess/getScalingRules:getScalingRules", args, GetScalingRulesResultOutput{}, options).(GetScalingRulesResultOutput), nil }).(GetScalingRulesResultOutput) } diff --git a/sdk/go/alicloud/ess/getScheduledTasks.go b/sdk/go/alicloud/ess/getScheduledTasks.go index b5360302d1..6f6f618920 100644 --- a/sdk/go/alicloud/ess/getScheduledTasks.go +++ b/sdk/go/alicloud/ess/getScheduledTasks.go @@ -84,21 +84,11 @@ type GetScheduledTasksResult struct { } func GetScheduledTasksOutput(ctx *pulumi.Context, args GetScheduledTasksOutputArgs, opts ...pulumi.InvokeOption) GetScheduledTasksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetScheduledTasksResultOutput, error) { args := v.(GetScheduledTasksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetScheduledTasksResult - secret, err := ctx.InvokePackageRaw("alicloud:ess/getScheduledTasks:getScheduledTasks", args, &rv, "", opts...) - if err != nil { - return GetScheduledTasksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetScheduledTasksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetScheduledTasksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ess/getScheduledTasks:getScheduledTasks", args, GetScheduledTasksResultOutput{}, options).(GetScheduledTasksResultOutput), nil }).(GetScheduledTasksResultOutput) } diff --git a/sdk/go/alicloud/eventbridge/getEventBuses.go b/sdk/go/alicloud/eventbridge/getEventBuses.go index 16b6a86622..c9a1327e32 100644 --- a/sdk/go/alicloud/eventbridge/getEventBuses.go +++ b/sdk/go/alicloud/eventbridge/getEventBuses.go @@ -86,21 +86,11 @@ type GetEventBusesResult struct { } func GetEventBusesOutput(ctx *pulumi.Context, args GetEventBusesOutputArgs, opts ...pulumi.InvokeOption) GetEventBusesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEventBusesResultOutput, error) { args := v.(GetEventBusesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEventBusesResult - secret, err := ctx.InvokePackageRaw("alicloud:eventbridge/getEventBuses:getEventBuses", args, &rv, "", opts...) - if err != nil { - return GetEventBusesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEventBusesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEventBusesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eventbridge/getEventBuses:getEventBuses", args, GetEventBusesResultOutput{}, options).(GetEventBusesResultOutput), nil }).(GetEventBusesResultOutput) } diff --git a/sdk/go/alicloud/eventbridge/getEventSources.go b/sdk/go/alicloud/eventbridge/getEventSources.go index d0044f2788..dcc0a13477 100644 --- a/sdk/go/alicloud/eventbridge/getEventSources.go +++ b/sdk/go/alicloud/eventbridge/getEventSources.go @@ -78,21 +78,11 @@ type GetEventSourcesResult struct { } func GetEventSourcesOutput(ctx *pulumi.Context, args GetEventSourcesOutputArgs, opts ...pulumi.InvokeOption) GetEventSourcesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEventSourcesResultOutput, error) { args := v.(GetEventSourcesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEventSourcesResult - secret, err := ctx.InvokePackageRaw("alicloud:eventbridge/getEventSources:getEventSources", args, &rv, "", opts...) - if err != nil { - return GetEventSourcesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEventSourcesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEventSourcesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eventbridge/getEventSources:getEventSources", args, GetEventSourcesResultOutput{}, options).(GetEventSourcesResultOutput), nil }).(GetEventSourcesResultOutput) } diff --git a/sdk/go/alicloud/eventbridge/getRules.go b/sdk/go/alicloud/eventbridge/getRules.go index 0d20dd5424..af5ac95205 100644 --- a/sdk/go/alicloud/eventbridge/getRules.go +++ b/sdk/go/alicloud/eventbridge/getRules.go @@ -88,21 +88,11 @@ type GetRulesResult struct { } func GetRulesOutput(ctx *pulumi.Context, args GetRulesOutputArgs, opts ...pulumi.InvokeOption) GetRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRulesResultOutput, error) { args := v.(GetRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:eventbridge/getRules:getRules", args, &rv, "", opts...) - if err != nil { - return GetRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eventbridge/getRules:getRules", args, GetRulesResultOutput{}, options).(GetRulesResultOutput), nil }).(GetRulesResultOutput) } diff --git a/sdk/go/alicloud/eventbridge/getService.go b/sdk/go/alicloud/eventbridge/getService.go index 9c44fc9721..8863d3f3fd 100644 --- a/sdk/go/alicloud/eventbridge/getService.go +++ b/sdk/go/alicloud/eventbridge/getService.go @@ -72,21 +72,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:eventbridge/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:eventbridge/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/expressconnect/getAccessPoints.go b/sdk/go/alicloud/expressconnect/getAccessPoints.go index 1be09479ba..0c4e6290a7 100644 --- a/sdk/go/alicloud/expressconnect/getAccessPoints.go +++ b/sdk/go/alicloud/expressconnect/getAccessPoints.go @@ -87,21 +87,11 @@ type GetAccessPointsResult struct { } func GetAccessPointsOutput(ctx *pulumi.Context, args GetAccessPointsOutputArgs, opts ...pulumi.InvokeOption) GetAccessPointsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccessPointsResultOutput, error) { args := v.(GetAccessPointsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccessPointsResult - secret, err := ctx.InvokePackageRaw("alicloud:expressconnect/getAccessPoints:getAccessPoints", args, &rv, "", opts...) - if err != nil { - return GetAccessPointsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccessPointsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccessPointsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:expressconnect/getAccessPoints:getAccessPoints", args, GetAccessPointsResultOutput{}, options).(GetAccessPointsResultOutput), nil }).(GetAccessPointsResultOutput) } diff --git a/sdk/go/alicloud/expressconnect/getGrantRuleToCens.go b/sdk/go/alicloud/expressconnect/getGrantRuleToCens.go index 684543d1b0..ddc0cddf66 100644 --- a/sdk/go/alicloud/expressconnect/getGrantRuleToCens.go +++ b/sdk/go/alicloud/expressconnect/getGrantRuleToCens.go @@ -82,21 +82,11 @@ type GetGrantRuleToCensResult struct { } func GetGrantRuleToCensOutput(ctx *pulumi.Context, args GetGrantRuleToCensOutputArgs, opts ...pulumi.InvokeOption) GetGrantRuleToCensResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGrantRuleToCensResultOutput, error) { args := v.(GetGrantRuleToCensArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGrantRuleToCensResult - secret, err := ctx.InvokePackageRaw("alicloud:expressconnect/getGrantRuleToCens:getGrantRuleToCens", args, &rv, "", opts...) - if err != nil { - return GetGrantRuleToCensResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGrantRuleToCensResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGrantRuleToCensResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:expressconnect/getGrantRuleToCens:getGrantRuleToCens", args, GetGrantRuleToCensResultOutput{}, options).(GetGrantRuleToCensResultOutput), nil }).(GetGrantRuleToCensResultOutput) } diff --git a/sdk/go/alicloud/expressconnect/getPhysicalConnectionService.go b/sdk/go/alicloud/expressconnect/getPhysicalConnectionService.go index 95372f98c4..c1038bd79a 100644 --- a/sdk/go/alicloud/expressconnect/getPhysicalConnectionService.go +++ b/sdk/go/alicloud/expressconnect/getPhysicalConnectionService.go @@ -70,21 +70,11 @@ type GetPhysicalConnectionServiceResult struct { } func GetPhysicalConnectionServiceOutput(ctx *pulumi.Context, args GetPhysicalConnectionServiceOutputArgs, opts ...pulumi.InvokeOption) GetPhysicalConnectionServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPhysicalConnectionServiceResultOutput, error) { args := v.(GetPhysicalConnectionServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPhysicalConnectionServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:expressconnect/getPhysicalConnectionService:getPhysicalConnectionService", args, &rv, "", opts...) - if err != nil { - return GetPhysicalConnectionServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPhysicalConnectionServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPhysicalConnectionServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:expressconnect/getPhysicalConnectionService:getPhysicalConnectionService", args, GetPhysicalConnectionServiceResultOutput{}, options).(GetPhysicalConnectionServiceResultOutput), nil }).(GetPhysicalConnectionServiceResultOutput) } diff --git a/sdk/go/alicloud/expressconnect/getPhysicalConnections.go b/sdk/go/alicloud/expressconnect/getPhysicalConnections.go index 4ee54f9d7b..c606ee55ba 100644 --- a/sdk/go/alicloud/expressconnect/getPhysicalConnections.go +++ b/sdk/go/alicloud/expressconnect/getPhysicalConnections.go @@ -90,21 +90,11 @@ type GetPhysicalConnectionsResult struct { } func GetPhysicalConnectionsOutput(ctx *pulumi.Context, args GetPhysicalConnectionsOutputArgs, opts ...pulumi.InvokeOption) GetPhysicalConnectionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPhysicalConnectionsResultOutput, error) { args := v.(GetPhysicalConnectionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPhysicalConnectionsResult - secret, err := ctx.InvokePackageRaw("alicloud:expressconnect/getPhysicalConnections:getPhysicalConnections", args, &rv, "", opts...) - if err != nil { - return GetPhysicalConnectionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPhysicalConnectionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPhysicalConnectionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:expressconnect/getPhysicalConnections:getPhysicalConnections", args, GetPhysicalConnectionsResultOutput{}, options).(GetPhysicalConnectionsResultOutput), nil }).(GetPhysicalConnectionsResultOutput) } diff --git a/sdk/go/alicloud/expressconnect/getRouterInterfaces.go b/sdk/go/alicloud/expressconnect/getRouterInterfaces.go index 723535d716..2450c7c4f9 100644 --- a/sdk/go/alicloud/expressconnect/getRouterInterfaces.go +++ b/sdk/go/alicloud/expressconnect/getRouterInterfaces.go @@ -86,21 +86,11 @@ type GetRouterInterfacesResult struct { } func GetRouterInterfacesOutput(ctx *pulumi.Context, args GetRouterInterfacesOutputArgs, opts ...pulumi.InvokeOption) GetRouterInterfacesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRouterInterfacesResultOutput, error) { args := v.(GetRouterInterfacesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRouterInterfacesResult - secret, err := ctx.InvokePackageRaw("alicloud:expressconnect/getRouterInterfaces:getRouterInterfaces", args, &rv, "", opts...) - if err != nil { - return GetRouterInterfacesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRouterInterfacesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRouterInterfacesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:expressconnect/getRouterInterfaces:getRouterInterfaces", args, GetRouterInterfacesResultOutput{}, options).(GetRouterInterfacesResultOutput), nil }).(GetRouterInterfacesResultOutput) } diff --git a/sdk/go/alicloud/expressconnect/getVbrPconnAssociations.go b/sdk/go/alicloud/expressconnect/getVbrPconnAssociations.go index f2a0902385..6d54626a68 100644 --- a/sdk/go/alicloud/expressconnect/getVbrPconnAssociations.go +++ b/sdk/go/alicloud/expressconnect/getVbrPconnAssociations.go @@ -81,21 +81,11 @@ type GetVbrPconnAssociationsResult struct { } func GetVbrPconnAssociationsOutput(ctx *pulumi.Context, args GetVbrPconnAssociationsOutputArgs, opts ...pulumi.InvokeOption) GetVbrPconnAssociationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVbrPconnAssociationsResultOutput, error) { args := v.(GetVbrPconnAssociationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVbrPconnAssociationsResult - secret, err := ctx.InvokePackageRaw("alicloud:expressconnect/getVbrPconnAssociations:getVbrPconnAssociations", args, &rv, "", opts...) - if err != nil { - return GetVbrPconnAssociationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVbrPconnAssociationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVbrPconnAssociationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:expressconnect/getVbrPconnAssociations:getVbrPconnAssociations", args, GetVbrPconnAssociationsResultOutput{}, options).(GetVbrPconnAssociationsResultOutput), nil }).(GetVbrPconnAssociationsResultOutput) } diff --git a/sdk/go/alicloud/expressconnect/getVirtualBorderRouters.go b/sdk/go/alicloud/expressconnect/getVirtualBorderRouters.go index 2b8d4b4692..000b7f1c81 100644 --- a/sdk/go/alicloud/expressconnect/getVirtualBorderRouters.go +++ b/sdk/go/alicloud/expressconnect/getVirtualBorderRouters.go @@ -107,21 +107,11 @@ type GetVirtualBorderRoutersResult struct { } func GetVirtualBorderRoutersOutput(ctx *pulumi.Context, args GetVirtualBorderRoutersOutputArgs, opts ...pulumi.InvokeOption) GetVirtualBorderRoutersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVirtualBorderRoutersResultOutput, error) { args := v.(GetVirtualBorderRoutersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVirtualBorderRoutersResult - secret, err := ctx.InvokePackageRaw("alicloud:expressconnect/getVirtualBorderRouters:getVirtualBorderRouters", args, &rv, "", opts...) - if err != nil { - return GetVirtualBorderRoutersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVirtualBorderRoutersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVirtualBorderRoutersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:expressconnect/getVirtualBorderRouters:getVirtualBorderRouters", args, GetVirtualBorderRoutersResultOutput{}, options).(GetVirtualBorderRoutersResultOutput), nil }).(GetVirtualBorderRoutersResultOutput) } diff --git a/sdk/go/alicloud/expressconnect/getVirtualPhysicalConnections.go b/sdk/go/alicloud/expressconnect/getVirtualPhysicalConnections.go index 130198b6a4..5dc24b3539 100644 --- a/sdk/go/alicloud/expressconnect/getVirtualPhysicalConnections.go +++ b/sdk/go/alicloud/expressconnect/getVirtualPhysicalConnections.go @@ -79,21 +79,11 @@ type GetVirtualPhysicalConnectionsResult struct { } func GetVirtualPhysicalConnectionsOutput(ctx *pulumi.Context, args GetVirtualPhysicalConnectionsOutputArgs, opts ...pulumi.InvokeOption) GetVirtualPhysicalConnectionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVirtualPhysicalConnectionsResultOutput, error) { args := v.(GetVirtualPhysicalConnectionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVirtualPhysicalConnectionsResult - secret, err := ctx.InvokePackageRaw("alicloud:expressconnect/getVirtualPhysicalConnections:getVirtualPhysicalConnections", args, &rv, "", opts...) - if err != nil { - return GetVirtualPhysicalConnectionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVirtualPhysicalConnectionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVirtualPhysicalConnectionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:expressconnect/getVirtualPhysicalConnections:getVirtualPhysicalConnections", args, GetVirtualPhysicalConnectionsResultOutput{}, options).(GetVirtualPhysicalConnectionsResultOutput), nil }).(GetVirtualPhysicalConnectionsResultOutput) } diff --git a/sdk/go/alicloud/fc/getCustomDomains.go b/sdk/go/alicloud/fc/getCustomDomains.go index 63f44754a2..8d238bafa1 100644 --- a/sdk/go/alicloud/fc/getCustomDomains.go +++ b/sdk/go/alicloud/fc/getCustomDomains.go @@ -76,21 +76,11 @@ type GetCustomDomainsResult struct { } func GetCustomDomainsOutput(ctx *pulumi.Context, args GetCustomDomainsOutputArgs, opts ...pulumi.InvokeOption) GetCustomDomainsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCustomDomainsResultOutput, error) { args := v.(GetCustomDomainsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCustomDomainsResult - secret, err := ctx.InvokePackageRaw("alicloud:fc/getCustomDomains:getCustomDomains", args, &rv, "", opts...) - if err != nil { - return GetCustomDomainsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCustomDomainsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCustomDomainsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:fc/getCustomDomains:getCustomDomains", args, GetCustomDomainsResultOutput{}, options).(GetCustomDomainsResultOutput), nil }).(GetCustomDomainsResultOutput) } diff --git a/sdk/go/alicloud/fc/getFunctions.go b/sdk/go/alicloud/fc/getFunctions.go index d92abf58e6..c317ce64db 100644 --- a/sdk/go/alicloud/fc/getFunctions.go +++ b/sdk/go/alicloud/fc/getFunctions.go @@ -78,21 +78,11 @@ type GetFunctionsResult struct { } func GetFunctionsOutput(ctx *pulumi.Context, args GetFunctionsOutputArgs, opts ...pulumi.InvokeOption) GetFunctionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFunctionsResultOutput, error) { args := v.(GetFunctionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFunctionsResult - secret, err := ctx.InvokePackageRaw("alicloud:fc/getFunctions:getFunctions", args, &rv, "", opts...) - if err != nil { - return GetFunctionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFunctionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFunctionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:fc/getFunctions:getFunctions", args, GetFunctionsResultOutput{}, options).(GetFunctionsResultOutput), nil }).(GetFunctionsResultOutput) } diff --git a/sdk/go/alicloud/fc/getService.go b/sdk/go/alicloud/fc/getService.go index 551858e6cd..b0eb45beaa 100644 --- a/sdk/go/alicloud/fc/getService.go +++ b/sdk/go/alicloud/fc/getService.go @@ -70,21 +70,11 @@ type LookupServiceResult struct { } func LookupServiceOutput(ctx *pulumi.Context, args LookupServiceOutputArgs, opts ...pulumi.InvokeOption) LookupServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupServiceResultOutput, error) { args := v.(LookupServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:fc/getService:getService", args, &rv, "", opts...) - if err != nil { - return LookupServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:fc/getService:getService", args, LookupServiceResultOutput{}, options).(LookupServiceResultOutput), nil }).(LookupServiceResultOutput) } diff --git a/sdk/go/alicloud/fc/getServices.go b/sdk/go/alicloud/fc/getServices.go index e34c59ba6f..11482dfb31 100644 --- a/sdk/go/alicloud/fc/getServices.go +++ b/sdk/go/alicloud/fc/getServices.go @@ -74,21 +74,11 @@ type GetServicesResult struct { } func GetServicesOutput(ctx *pulumi.Context, args GetServicesOutputArgs, opts ...pulumi.InvokeOption) GetServicesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServicesResultOutput, error) { args := v.(GetServicesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServicesResult - secret, err := ctx.InvokePackageRaw("alicloud:fc/getServices:getServices", args, &rv, "", opts...) - if err != nil { - return GetServicesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServicesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServicesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:fc/getServices:getServices", args, GetServicesResultOutput{}, options).(GetServicesResultOutput), nil }).(GetServicesResultOutput) } diff --git a/sdk/go/alicloud/fc/getTriggers.go b/sdk/go/alicloud/fc/getTriggers.go index b0faba4ee3..dae3b737a8 100644 --- a/sdk/go/alicloud/fc/getTriggers.go +++ b/sdk/go/alicloud/fc/getTriggers.go @@ -82,21 +82,11 @@ type GetTriggersResult struct { } func GetTriggersOutput(ctx *pulumi.Context, args GetTriggersOutputArgs, opts ...pulumi.InvokeOption) GetTriggersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTriggersResultOutput, error) { args := v.(GetTriggersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTriggersResult - secret, err := ctx.InvokePackageRaw("alicloud:fc/getTriggers:getTriggers", args, &rv, "", opts...) - if err != nil { - return GetTriggersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTriggersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTriggersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:fc/getTriggers:getTriggers", args, GetTriggersResultOutput{}, options).(GetTriggersResultOutput), nil }).(GetTriggersResultOutput) } diff --git a/sdk/go/alicloud/fc/getZones.go b/sdk/go/alicloud/fc/getZones.go index 2c915378e4..0cfcf00b99 100644 --- a/sdk/go/alicloud/fc/getZones.go +++ b/sdk/go/alicloud/fc/getZones.go @@ -67,21 +67,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:fc/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:fc/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/fnf/getExecutions.go b/sdk/go/alicloud/fnf/getExecutions.go index bc10c5bdba..e1fb110932 100644 --- a/sdk/go/alicloud/fnf/getExecutions.go +++ b/sdk/go/alicloud/fnf/getExecutions.go @@ -88,21 +88,11 @@ type GetExecutionsResult struct { } func GetExecutionsOutput(ctx *pulumi.Context, args GetExecutionsOutputArgs, opts ...pulumi.InvokeOption) GetExecutionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetExecutionsResultOutput, error) { args := v.(GetExecutionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetExecutionsResult - secret, err := ctx.InvokePackageRaw("alicloud:fnf/getExecutions:getExecutions", args, &rv, "", opts...) - if err != nil { - return GetExecutionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetExecutionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetExecutionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:fnf/getExecutions:getExecutions", args, GetExecutionsResultOutput{}, options).(GetExecutionsResultOutput), nil }).(GetExecutionsResultOutput) } diff --git a/sdk/go/alicloud/fnf/getFlows.go b/sdk/go/alicloud/fnf/getFlows.go index 50b2ddfbd7..215e93e2a0 100644 --- a/sdk/go/alicloud/fnf/getFlows.go +++ b/sdk/go/alicloud/fnf/getFlows.go @@ -81,21 +81,11 @@ type GetFlowsResult struct { } func GetFlowsOutput(ctx *pulumi.Context, args GetFlowsOutputArgs, opts ...pulumi.InvokeOption) GetFlowsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFlowsResultOutput, error) { args := v.(GetFlowsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFlowsResult - secret, err := ctx.InvokePackageRaw("alicloud:fnf/getFlows:getFlows", args, &rv, "", opts...) - if err != nil { - return GetFlowsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFlowsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFlowsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:fnf/getFlows:getFlows", args, GetFlowsResultOutput{}, options).(GetFlowsResultOutput), nil }).(GetFlowsResultOutput) } diff --git a/sdk/go/alicloud/fnf/getSchedules.go b/sdk/go/alicloud/fnf/getSchedules.go index f102c550fd..2578e22ba1 100644 --- a/sdk/go/alicloud/fnf/getSchedules.go +++ b/sdk/go/alicloud/fnf/getSchedules.go @@ -85,21 +85,11 @@ type GetSchedulesResult struct { } func GetSchedulesOutput(ctx *pulumi.Context, args GetSchedulesOutputArgs, opts ...pulumi.InvokeOption) GetSchedulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSchedulesResultOutput, error) { args := v.(GetSchedulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSchedulesResult - secret, err := ctx.InvokePackageRaw("alicloud:fnf/getSchedules:getSchedules", args, &rv, "", opts...) - if err != nil { - return GetSchedulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSchedulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSchedulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:fnf/getSchedules:getSchedules", args, GetSchedulesResultOutput{}, options).(GetSchedulesResultOutput), nil }).(GetSchedulesResultOutput) } diff --git a/sdk/go/alicloud/fnf/getService.go b/sdk/go/alicloud/fnf/getService.go index a82ab695f4..4657b4da73 100644 --- a/sdk/go/alicloud/fnf/getService.go +++ b/sdk/go/alicloud/fnf/getService.go @@ -70,21 +70,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:fnf/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:fnf/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/ga/getAcceleratorSpareIpAttachments.go b/sdk/go/alicloud/ga/getAcceleratorSpareIpAttachments.go index f536328998..ee1da16fca 100644 --- a/sdk/go/alicloud/ga/getAcceleratorSpareIpAttachments.go +++ b/sdk/go/alicloud/ga/getAcceleratorSpareIpAttachments.go @@ -81,21 +81,11 @@ type GetAcceleratorSpareIpAttachmentsResult struct { } func GetAcceleratorSpareIpAttachmentsOutput(ctx *pulumi.Context, args GetAcceleratorSpareIpAttachmentsOutputArgs, opts ...pulumi.InvokeOption) GetAcceleratorSpareIpAttachmentsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAcceleratorSpareIpAttachmentsResultOutput, error) { args := v.(GetAcceleratorSpareIpAttachmentsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAcceleratorSpareIpAttachmentsResult - secret, err := ctx.InvokePackageRaw("alicloud:ga/getAcceleratorSpareIpAttachments:getAcceleratorSpareIpAttachments", args, &rv, "", opts...) - if err != nil { - return GetAcceleratorSpareIpAttachmentsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAcceleratorSpareIpAttachmentsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAcceleratorSpareIpAttachmentsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ga/getAcceleratorSpareIpAttachments:getAcceleratorSpareIpAttachments", args, GetAcceleratorSpareIpAttachmentsResultOutput{}, options).(GetAcceleratorSpareIpAttachmentsResultOutput), nil }).(GetAcceleratorSpareIpAttachmentsResultOutput) } diff --git a/sdk/go/alicloud/ga/getAccelerators.go b/sdk/go/alicloud/ga/getAccelerators.go index 1a542035dc..2b0d4432ea 100644 --- a/sdk/go/alicloud/ga/getAccelerators.go +++ b/sdk/go/alicloud/ga/getAccelerators.go @@ -86,21 +86,11 @@ type GetAcceleratorsResult struct { } func GetAcceleratorsOutput(ctx *pulumi.Context, args GetAcceleratorsOutputArgs, opts ...pulumi.InvokeOption) GetAcceleratorsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAcceleratorsResultOutput, error) { args := v.(GetAcceleratorsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAcceleratorsResult - secret, err := ctx.InvokePackageRaw("alicloud:ga/getAccelerators:getAccelerators", args, &rv, "", opts...) - if err != nil { - return GetAcceleratorsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAcceleratorsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAcceleratorsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ga/getAccelerators:getAccelerators", args, GetAcceleratorsResultOutput{}, options).(GetAcceleratorsResultOutput), nil }).(GetAcceleratorsResultOutput) } diff --git a/sdk/go/alicloud/ga/getAcls.go b/sdk/go/alicloud/ga/getAcls.go index 3464b4c873..30b7715416 100644 --- a/sdk/go/alicloud/ga/getAcls.go +++ b/sdk/go/alicloud/ga/getAcls.go @@ -89,21 +89,11 @@ type GetAclsResult struct { } func GetAclsOutput(ctx *pulumi.Context, args GetAclsOutputArgs, opts ...pulumi.InvokeOption) GetAclsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAclsResultOutput, error) { args := v.(GetAclsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAclsResult - secret, err := ctx.InvokePackageRaw("alicloud:ga/getAcls:getAcls", args, &rv, "", opts...) - if err != nil { - return GetAclsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAclsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAclsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ga/getAcls:getAcls", args, GetAclsResultOutput{}, options).(GetAclsResultOutput), nil }).(GetAclsResultOutput) } diff --git a/sdk/go/alicloud/ga/getAdditionalCertificates.go b/sdk/go/alicloud/ga/getAdditionalCertificates.go index 7bef5ba6bf..e75fdef21a 100644 --- a/sdk/go/alicloud/ga/getAdditionalCertificates.go +++ b/sdk/go/alicloud/ga/getAdditionalCertificates.go @@ -82,21 +82,11 @@ type GetAdditionalCertificatesResult struct { } func GetAdditionalCertificatesOutput(ctx *pulumi.Context, args GetAdditionalCertificatesOutputArgs, opts ...pulumi.InvokeOption) GetAdditionalCertificatesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAdditionalCertificatesResultOutput, error) { args := v.(GetAdditionalCertificatesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAdditionalCertificatesResult - secret, err := ctx.InvokePackageRaw("alicloud:ga/getAdditionalCertificates:getAdditionalCertificates", args, &rv, "", opts...) - if err != nil { - return GetAdditionalCertificatesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAdditionalCertificatesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAdditionalCertificatesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ga/getAdditionalCertificates:getAdditionalCertificates", args, GetAdditionalCertificatesResultOutput{}, options).(GetAdditionalCertificatesResultOutput), nil }).(GetAdditionalCertificatesResultOutput) } diff --git a/sdk/go/alicloud/ga/getBandwidthPackages.go b/sdk/go/alicloud/ga/getBandwidthPackages.go index c1fcc248a6..ec35dee3bf 100644 --- a/sdk/go/alicloud/ga/getBandwidthPackages.go +++ b/sdk/go/alicloud/ga/getBandwidthPackages.go @@ -87,21 +87,11 @@ type GetBandwidthPackagesResult struct { } func GetBandwidthPackagesOutput(ctx *pulumi.Context, args GetBandwidthPackagesOutputArgs, opts ...pulumi.InvokeOption) GetBandwidthPackagesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBandwidthPackagesResultOutput, error) { args := v.(GetBandwidthPackagesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBandwidthPackagesResult - secret, err := ctx.InvokePackageRaw("alicloud:ga/getBandwidthPackages:getBandwidthPackages", args, &rv, "", opts...) - if err != nil { - return GetBandwidthPackagesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBandwidthPackagesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBandwidthPackagesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ga/getBandwidthPackages:getBandwidthPackages", args, GetBandwidthPackagesResultOutput{}, options).(GetBandwidthPackagesResultOutput), nil }).(GetBandwidthPackagesResultOutput) } diff --git a/sdk/go/alicloud/ga/getBasicAccelerateIpEndpointRelations.go b/sdk/go/alicloud/ga/getBasicAccelerateIpEndpointRelations.go index e403ff0a0d..01b4380c4b 100644 --- a/sdk/go/alicloud/ga/getBasicAccelerateIpEndpointRelations.go +++ b/sdk/go/alicloud/ga/getBasicAccelerateIpEndpointRelations.go @@ -91,21 +91,11 @@ type GetBasicAccelerateIpEndpointRelationsResult struct { } func GetBasicAccelerateIpEndpointRelationsOutput(ctx *pulumi.Context, args GetBasicAccelerateIpEndpointRelationsOutputArgs, opts ...pulumi.InvokeOption) GetBasicAccelerateIpEndpointRelationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBasicAccelerateIpEndpointRelationsResultOutput, error) { args := v.(GetBasicAccelerateIpEndpointRelationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBasicAccelerateIpEndpointRelationsResult - secret, err := ctx.InvokePackageRaw("alicloud:ga/getBasicAccelerateIpEndpointRelations:getBasicAccelerateIpEndpointRelations", args, &rv, "", opts...) - if err != nil { - return GetBasicAccelerateIpEndpointRelationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBasicAccelerateIpEndpointRelationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBasicAccelerateIpEndpointRelationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ga/getBasicAccelerateIpEndpointRelations:getBasicAccelerateIpEndpointRelations", args, GetBasicAccelerateIpEndpointRelationsResultOutput{}, options).(GetBasicAccelerateIpEndpointRelationsResultOutput), nil }).(GetBasicAccelerateIpEndpointRelationsResultOutput) } diff --git a/sdk/go/alicloud/ga/getBasicAccelerateIps.go b/sdk/go/alicloud/ga/getBasicAccelerateIps.go index e3d41f7006..69af16dac6 100644 --- a/sdk/go/alicloud/ga/getBasicAccelerateIps.go +++ b/sdk/go/alicloud/ga/getBasicAccelerateIps.go @@ -91,21 +91,11 @@ type GetBasicAccelerateIpsResult struct { } func GetBasicAccelerateIpsOutput(ctx *pulumi.Context, args GetBasicAccelerateIpsOutputArgs, opts ...pulumi.InvokeOption) GetBasicAccelerateIpsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBasicAccelerateIpsResultOutput, error) { args := v.(GetBasicAccelerateIpsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBasicAccelerateIpsResult - secret, err := ctx.InvokePackageRaw("alicloud:ga/getBasicAccelerateIps:getBasicAccelerateIps", args, &rv, "", opts...) - if err != nil { - return GetBasicAccelerateIpsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBasicAccelerateIpsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBasicAccelerateIpsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ga/getBasicAccelerateIps:getBasicAccelerateIps", args, GetBasicAccelerateIpsResultOutput{}, options).(GetBasicAccelerateIpsResultOutput), nil }).(GetBasicAccelerateIpsResultOutput) } diff --git a/sdk/go/alicloud/ga/getBasicAccelerators.go b/sdk/go/alicloud/ga/getBasicAccelerators.go index eb868612ed..7a41d46be0 100644 --- a/sdk/go/alicloud/ga/getBasicAccelerators.go +++ b/sdk/go/alicloud/ga/getBasicAccelerators.go @@ -97,21 +97,11 @@ type GetBasicAcceleratorsResult struct { } func GetBasicAcceleratorsOutput(ctx *pulumi.Context, args GetBasicAcceleratorsOutputArgs, opts ...pulumi.InvokeOption) GetBasicAcceleratorsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBasicAcceleratorsResultOutput, error) { args := v.(GetBasicAcceleratorsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBasicAcceleratorsResult - secret, err := ctx.InvokePackageRaw("alicloud:ga/getBasicAccelerators:getBasicAccelerators", args, &rv, "", opts...) - if err != nil { - return GetBasicAcceleratorsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBasicAcceleratorsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBasicAcceleratorsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ga/getBasicAccelerators:getBasicAccelerators", args, GetBasicAcceleratorsResultOutput{}, options).(GetBasicAcceleratorsResultOutput), nil }).(GetBasicAcceleratorsResultOutput) } diff --git a/sdk/go/alicloud/ga/getBasicEndpoints.go b/sdk/go/alicloud/ga/getBasicEndpoints.go index d18e15d444..c6c3898112 100644 --- a/sdk/go/alicloud/ga/getBasicEndpoints.go +++ b/sdk/go/alicloud/ga/getBasicEndpoints.go @@ -107,21 +107,11 @@ type GetBasicEndpointsResult struct { } func GetBasicEndpointsOutput(ctx *pulumi.Context, args GetBasicEndpointsOutputArgs, opts ...pulumi.InvokeOption) GetBasicEndpointsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBasicEndpointsResultOutput, error) { args := v.(GetBasicEndpointsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBasicEndpointsResult - secret, err := ctx.InvokePackageRaw("alicloud:ga/getBasicEndpoints:getBasicEndpoints", args, &rv, "", opts...) - if err != nil { - return GetBasicEndpointsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBasicEndpointsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBasicEndpointsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ga/getBasicEndpoints:getBasicEndpoints", args, GetBasicEndpointsResultOutput{}, options).(GetBasicEndpointsResultOutput), nil }).(GetBasicEndpointsResultOutput) } diff --git a/sdk/go/alicloud/ga/getCustomRoutingEndpointGroupDestinations.go b/sdk/go/alicloud/ga/getCustomRoutingEndpointGroupDestinations.go index fb25468ff4..42e060619f 100644 --- a/sdk/go/alicloud/ga/getCustomRoutingEndpointGroupDestinations.go +++ b/sdk/go/alicloud/ga/getCustomRoutingEndpointGroupDestinations.go @@ -103,21 +103,11 @@ type GetCustomRoutingEndpointGroupDestinationsResult struct { } func GetCustomRoutingEndpointGroupDestinationsOutput(ctx *pulumi.Context, args GetCustomRoutingEndpointGroupDestinationsOutputArgs, opts ...pulumi.InvokeOption) GetCustomRoutingEndpointGroupDestinationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCustomRoutingEndpointGroupDestinationsResultOutput, error) { args := v.(GetCustomRoutingEndpointGroupDestinationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCustomRoutingEndpointGroupDestinationsResult - secret, err := ctx.InvokePackageRaw("alicloud:ga/getCustomRoutingEndpointGroupDestinations:getCustomRoutingEndpointGroupDestinations", args, &rv, "", opts...) - if err != nil { - return GetCustomRoutingEndpointGroupDestinationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCustomRoutingEndpointGroupDestinationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCustomRoutingEndpointGroupDestinationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ga/getCustomRoutingEndpointGroupDestinations:getCustomRoutingEndpointGroupDestinations", args, GetCustomRoutingEndpointGroupDestinationsResultOutput{}, options).(GetCustomRoutingEndpointGroupDestinationsResultOutput), nil }).(GetCustomRoutingEndpointGroupDestinationsResultOutput) } diff --git a/sdk/go/alicloud/ga/getCustomRoutingEndpointGroups.go b/sdk/go/alicloud/ga/getCustomRoutingEndpointGroups.go index dbec41c6c6..310d90ac98 100644 --- a/sdk/go/alicloud/ga/getCustomRoutingEndpointGroups.go +++ b/sdk/go/alicloud/ga/getCustomRoutingEndpointGroups.go @@ -108,21 +108,11 @@ type GetCustomRoutingEndpointGroupsResult struct { } func GetCustomRoutingEndpointGroupsOutput(ctx *pulumi.Context, args GetCustomRoutingEndpointGroupsOutputArgs, opts ...pulumi.InvokeOption) GetCustomRoutingEndpointGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCustomRoutingEndpointGroupsResultOutput, error) { args := v.(GetCustomRoutingEndpointGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCustomRoutingEndpointGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:ga/getCustomRoutingEndpointGroups:getCustomRoutingEndpointGroups", args, &rv, "", opts...) - if err != nil { - return GetCustomRoutingEndpointGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCustomRoutingEndpointGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCustomRoutingEndpointGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ga/getCustomRoutingEndpointGroups:getCustomRoutingEndpointGroups", args, GetCustomRoutingEndpointGroupsResultOutput{}, options).(GetCustomRoutingEndpointGroupsResultOutput), nil }).(GetCustomRoutingEndpointGroupsResultOutput) } diff --git a/sdk/go/alicloud/ga/getCustomRoutingEndpointTrafficPolicies.go b/sdk/go/alicloud/ga/getCustomRoutingEndpointTrafficPolicies.go index 056139812c..c35b39ba1e 100644 --- a/sdk/go/alicloud/ga/getCustomRoutingEndpointTrafficPolicies.go +++ b/sdk/go/alicloud/ga/getCustomRoutingEndpointTrafficPolicies.go @@ -99,21 +99,11 @@ type GetCustomRoutingEndpointTrafficPoliciesResult struct { } func GetCustomRoutingEndpointTrafficPoliciesOutput(ctx *pulumi.Context, args GetCustomRoutingEndpointTrafficPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetCustomRoutingEndpointTrafficPoliciesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCustomRoutingEndpointTrafficPoliciesResultOutput, error) { args := v.(GetCustomRoutingEndpointTrafficPoliciesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCustomRoutingEndpointTrafficPoliciesResult - secret, err := ctx.InvokePackageRaw("alicloud:ga/getCustomRoutingEndpointTrafficPolicies:getCustomRoutingEndpointTrafficPolicies", args, &rv, "", opts...) - if err != nil { - return GetCustomRoutingEndpointTrafficPoliciesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCustomRoutingEndpointTrafficPoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCustomRoutingEndpointTrafficPoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ga/getCustomRoutingEndpointTrafficPolicies:getCustomRoutingEndpointTrafficPolicies", args, GetCustomRoutingEndpointTrafficPoliciesResultOutput{}, options).(GetCustomRoutingEndpointTrafficPoliciesResultOutput), nil }).(GetCustomRoutingEndpointTrafficPoliciesResultOutput) } diff --git a/sdk/go/alicloud/ga/getCustomRoutingEndpoints.go b/sdk/go/alicloud/ga/getCustomRoutingEndpoints.go index cb3249c985..5cce1afa44 100644 --- a/sdk/go/alicloud/ga/getCustomRoutingEndpoints.go +++ b/sdk/go/alicloud/ga/getCustomRoutingEndpoints.go @@ -91,21 +91,11 @@ type GetCustomRoutingEndpointsResult struct { } func GetCustomRoutingEndpointsOutput(ctx *pulumi.Context, args GetCustomRoutingEndpointsOutputArgs, opts ...pulumi.InvokeOption) GetCustomRoutingEndpointsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCustomRoutingEndpointsResultOutput, error) { args := v.(GetCustomRoutingEndpointsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCustomRoutingEndpointsResult - secret, err := ctx.InvokePackageRaw("alicloud:ga/getCustomRoutingEndpoints:getCustomRoutingEndpoints", args, &rv, "", opts...) - if err != nil { - return GetCustomRoutingEndpointsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCustomRoutingEndpointsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCustomRoutingEndpointsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ga/getCustomRoutingEndpoints:getCustomRoutingEndpoints", args, GetCustomRoutingEndpointsResultOutput{}, options).(GetCustomRoutingEndpointsResultOutput), nil }).(GetCustomRoutingEndpointsResultOutput) } diff --git a/sdk/go/alicloud/ga/getCustomRoutingPortMappings.go b/sdk/go/alicloud/ga/getCustomRoutingPortMappings.go index 8795edc97d..4b5db122c9 100644 --- a/sdk/go/alicloud/ga/getCustomRoutingPortMappings.go +++ b/sdk/go/alicloud/ga/getCustomRoutingPortMappings.go @@ -89,21 +89,11 @@ type GetCustomRoutingPortMappingsResult struct { } func GetCustomRoutingPortMappingsOutput(ctx *pulumi.Context, args GetCustomRoutingPortMappingsOutputArgs, opts ...pulumi.InvokeOption) GetCustomRoutingPortMappingsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCustomRoutingPortMappingsResultOutput, error) { args := v.(GetCustomRoutingPortMappingsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCustomRoutingPortMappingsResult - secret, err := ctx.InvokePackageRaw("alicloud:ga/getCustomRoutingPortMappings:getCustomRoutingPortMappings", args, &rv, "", opts...) - if err != nil { - return GetCustomRoutingPortMappingsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCustomRoutingPortMappingsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCustomRoutingPortMappingsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ga/getCustomRoutingPortMappings:getCustomRoutingPortMappings", args, GetCustomRoutingPortMappingsResultOutput{}, options).(GetCustomRoutingPortMappingsResultOutput), nil }).(GetCustomRoutingPortMappingsResultOutput) } diff --git a/sdk/go/alicloud/ga/getDomains.go b/sdk/go/alicloud/ga/getDomains.go index 4ba63f8ae8..cd81098a54 100644 --- a/sdk/go/alicloud/ga/getDomains.go +++ b/sdk/go/alicloud/ga/getDomains.go @@ -120,21 +120,11 @@ type GetDomainsResult struct { } func GetDomainsOutput(ctx *pulumi.Context, args GetDomainsOutputArgs, opts ...pulumi.InvokeOption) GetDomainsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDomainsResultOutput, error) { args := v.(GetDomainsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDomainsResult - secret, err := ctx.InvokePackageRaw("alicloud:ga/getDomains:getDomains", args, &rv, "", opts...) - if err != nil { - return GetDomainsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDomainsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDomainsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ga/getDomains:getDomains", args, GetDomainsResultOutput{}, options).(GetDomainsResultOutput), nil }).(GetDomainsResultOutput) } diff --git a/sdk/go/alicloud/ga/getEndpointGroupIpAddressCidrBlocks.go b/sdk/go/alicloud/ga/getEndpointGroupIpAddressCidrBlocks.go index 715c825dce..79c5506aff 100644 --- a/sdk/go/alicloud/ga/getEndpointGroupIpAddressCidrBlocks.go +++ b/sdk/go/alicloud/ga/getEndpointGroupIpAddressCidrBlocks.go @@ -76,21 +76,11 @@ type GetEndpointGroupIpAddressCidrBlocksResult struct { } func GetEndpointGroupIpAddressCidrBlocksOutput(ctx *pulumi.Context, args GetEndpointGroupIpAddressCidrBlocksOutputArgs, opts ...pulumi.InvokeOption) GetEndpointGroupIpAddressCidrBlocksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEndpointGroupIpAddressCidrBlocksResultOutput, error) { args := v.(GetEndpointGroupIpAddressCidrBlocksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEndpointGroupIpAddressCidrBlocksResult - secret, err := ctx.InvokePackageRaw("alicloud:ga/getEndpointGroupIpAddressCidrBlocks:getEndpointGroupIpAddressCidrBlocks", args, &rv, "", opts...) - if err != nil { - return GetEndpointGroupIpAddressCidrBlocksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEndpointGroupIpAddressCidrBlocksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEndpointGroupIpAddressCidrBlocksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ga/getEndpointGroupIpAddressCidrBlocks:getEndpointGroupIpAddressCidrBlocks", args, GetEndpointGroupIpAddressCidrBlocksResultOutput{}, options).(GetEndpointGroupIpAddressCidrBlocksResultOutput), nil }).(GetEndpointGroupIpAddressCidrBlocksResultOutput) } diff --git a/sdk/go/alicloud/ga/getEndpointGroups.go b/sdk/go/alicloud/ga/getEndpointGroups.go index bda6262956..11cd9874db 100644 --- a/sdk/go/alicloud/ga/getEndpointGroups.go +++ b/sdk/go/alicloud/ga/getEndpointGroups.go @@ -181,21 +181,11 @@ type GetEndpointGroupsResult struct { } func GetEndpointGroupsOutput(ctx *pulumi.Context, args GetEndpointGroupsOutputArgs, opts ...pulumi.InvokeOption) GetEndpointGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEndpointGroupsResultOutput, error) { args := v.(GetEndpointGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEndpointGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:ga/getEndpointGroups:getEndpointGroups", args, &rv, "", opts...) - if err != nil { - return GetEndpointGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEndpointGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEndpointGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ga/getEndpointGroups:getEndpointGroups", args, GetEndpointGroupsResultOutput{}, options).(GetEndpointGroupsResultOutput), nil }).(GetEndpointGroupsResultOutput) } diff --git a/sdk/go/alicloud/ga/getForwardingRules.go b/sdk/go/alicloud/ga/getForwardingRules.go index c78e484cdf..477685a03c 100644 --- a/sdk/go/alicloud/ga/getForwardingRules.go +++ b/sdk/go/alicloud/ga/getForwardingRules.go @@ -84,21 +84,11 @@ type GetForwardingRulesResult struct { } func GetForwardingRulesOutput(ctx *pulumi.Context, args GetForwardingRulesOutputArgs, opts ...pulumi.InvokeOption) GetForwardingRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetForwardingRulesResultOutput, error) { args := v.(GetForwardingRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetForwardingRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:ga/getForwardingRules:getForwardingRules", args, &rv, "", opts...) - if err != nil { - return GetForwardingRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetForwardingRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetForwardingRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ga/getForwardingRules:getForwardingRules", args, GetForwardingRulesResultOutput{}, options).(GetForwardingRulesResultOutput), nil }).(GetForwardingRulesResultOutput) } diff --git a/sdk/go/alicloud/ga/getIpSets.go b/sdk/go/alicloud/ga/getIpSets.go index bf25e9d421..f90be35d30 100644 --- a/sdk/go/alicloud/ga/getIpSets.go +++ b/sdk/go/alicloud/ga/getIpSets.go @@ -80,21 +80,11 @@ type GetIpSetsResult struct { } func GetIpSetsOutput(ctx *pulumi.Context, args GetIpSetsOutputArgs, opts ...pulumi.InvokeOption) GetIpSetsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIpSetsResultOutput, error) { args := v.(GetIpSetsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIpSetsResult - secret, err := ctx.InvokePackageRaw("alicloud:ga/getIpSets:getIpSets", args, &rv, "", opts...) - if err != nil { - return GetIpSetsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIpSetsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIpSetsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ga/getIpSets:getIpSets", args, GetIpSetsResultOutput{}, options).(GetIpSetsResultOutput), nil }).(GetIpSetsResultOutput) } diff --git a/sdk/go/alicloud/ga/getListeners.go b/sdk/go/alicloud/ga/getListeners.go index a8080343dd..6c024c5153 100644 --- a/sdk/go/alicloud/ga/getListeners.go +++ b/sdk/go/alicloud/ga/getListeners.go @@ -85,21 +85,11 @@ type GetListenersResult struct { } func GetListenersOutput(ctx *pulumi.Context, args GetListenersOutputArgs, opts ...pulumi.InvokeOption) GetListenersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetListenersResultOutput, error) { args := v.(GetListenersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetListenersResult - secret, err := ctx.InvokePackageRaw("alicloud:ga/getListeners:getListeners", args, &rv, "", opts...) - if err != nil { - return GetListenersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetListenersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetListenersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ga/getListeners:getListeners", args, GetListenersResultOutput{}, options).(GetListenersResultOutput), nil }).(GetListenersResultOutput) } diff --git a/sdk/go/alicloud/getAccount.go b/sdk/go/alicloud/getAccount.go index faad2a0798..4546ff90ff 100644 --- a/sdk/go/alicloud/getAccount.go +++ b/sdk/go/alicloud/getAccount.go @@ -55,18 +55,8 @@ type GetAccountResult struct { func GetAccountOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetAccountResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetAccountResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccountResult - secret, err := ctx.InvokePackageRaw("alicloud:index/getAccount:getAccount", nil, &rv, "", opts...) - if err != nil { - return GetAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:index/getAccount:getAccount", nil, GetAccountResultOutput{}, options).(GetAccountResultOutput), nil }).(GetAccountResultOutput) } diff --git a/sdk/go/alicloud/getCallerIdentity.go b/sdk/go/alicloud/getCallerIdentity.go index 9212bd88da..3667e6b6e0 100644 --- a/sdk/go/alicloud/getCallerIdentity.go +++ b/sdk/go/alicloud/getCallerIdentity.go @@ -63,18 +63,8 @@ type GetCallerIdentityResult struct { func GetCallerIdentityOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetCallerIdentityResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetCallerIdentityResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCallerIdentityResult - secret, err := ctx.InvokePackageRaw("alicloud:index/getCallerIdentity:getCallerIdentity", nil, &rv, "", opts...) - if err != nil { - return GetCallerIdentityResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCallerIdentityResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCallerIdentityResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:index/getCallerIdentity:getCallerIdentity", nil, GetCallerIdentityResultOutput{}, options).(GetCallerIdentityResultOutput), nil }).(GetCallerIdentityResultOutput) } diff --git a/sdk/go/alicloud/getFileCrc64Checksum.go b/sdk/go/alicloud/getFileCrc64Checksum.go index fdda247b4c..100ca35908 100644 --- a/sdk/go/alicloud/getFileCrc64Checksum.go +++ b/sdk/go/alicloud/getFileCrc64Checksum.go @@ -69,21 +69,11 @@ type GetFileCrc64ChecksumResult struct { } func GetFileCrc64ChecksumOutput(ctx *pulumi.Context, args GetFileCrc64ChecksumOutputArgs, opts ...pulumi.InvokeOption) GetFileCrc64ChecksumResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFileCrc64ChecksumResultOutput, error) { args := v.(GetFileCrc64ChecksumArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFileCrc64ChecksumResult - secret, err := ctx.InvokePackageRaw("alicloud:index/getFileCrc64Checksum:getFileCrc64Checksum", args, &rv, "", opts...) - if err != nil { - return GetFileCrc64ChecksumResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFileCrc64ChecksumResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFileCrc64ChecksumResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:index/getFileCrc64Checksum:getFileCrc64Checksum", args, GetFileCrc64ChecksumResultOutput{}, options).(GetFileCrc64ChecksumResultOutput), nil }).(GetFileCrc64ChecksumResultOutput) } diff --git a/sdk/go/alicloud/getMscSubContactVerificationMessage.go b/sdk/go/alicloud/getMscSubContactVerificationMessage.go index 4f61fe3b72..bf5dd677be 100644 --- a/sdk/go/alicloud/getMscSubContactVerificationMessage.go +++ b/sdk/go/alicloud/getMscSubContactVerificationMessage.go @@ -78,21 +78,11 @@ type GetMscSubContactVerificationMessageResult struct { } func GetMscSubContactVerificationMessageOutput(ctx *pulumi.Context, args GetMscSubContactVerificationMessageOutputArgs, opts ...pulumi.InvokeOption) GetMscSubContactVerificationMessageResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetMscSubContactVerificationMessageResultOutput, error) { args := v.(GetMscSubContactVerificationMessageArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetMscSubContactVerificationMessageResult - secret, err := ctx.InvokePackageRaw("alicloud:index/getMscSubContactVerificationMessage:getMscSubContactVerificationMessage", args, &rv, "", opts...) - if err != nil { - return GetMscSubContactVerificationMessageResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetMscSubContactVerificationMessageResultOutput) - if secret { - return pulumi.ToSecret(output).(GetMscSubContactVerificationMessageResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:index/getMscSubContactVerificationMessage:getMscSubContactVerificationMessage", args, GetMscSubContactVerificationMessageResultOutput{}, options).(GetMscSubContactVerificationMessageResultOutput), nil }).(GetMscSubContactVerificationMessageResultOutput) } diff --git a/sdk/go/alicloud/getMscSubContacts.go b/sdk/go/alicloud/getMscSubContacts.go index 982d1e79a2..ee7d3447cc 100644 --- a/sdk/go/alicloud/getMscSubContacts.go +++ b/sdk/go/alicloud/getMscSubContacts.go @@ -80,21 +80,11 @@ type GetMscSubContactsResult struct { } func GetMscSubContactsOutput(ctx *pulumi.Context, args GetMscSubContactsOutputArgs, opts ...pulumi.InvokeOption) GetMscSubContactsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetMscSubContactsResultOutput, error) { args := v.(GetMscSubContactsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetMscSubContactsResult - secret, err := ctx.InvokePackageRaw("alicloud:index/getMscSubContacts:getMscSubContacts", args, &rv, "", opts...) - if err != nil { - return GetMscSubContactsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetMscSubContactsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetMscSubContactsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:index/getMscSubContacts:getMscSubContacts", args, GetMscSubContactsResultOutput{}, options).(GetMscSubContactsResultOutput), nil }).(GetMscSubContactsResultOutput) } diff --git a/sdk/go/alicloud/getMscSubSubscriptions.go b/sdk/go/alicloud/getMscSubSubscriptions.go index 5ad575e300..d1f5b1ce09 100644 --- a/sdk/go/alicloud/getMscSubSubscriptions.go +++ b/sdk/go/alicloud/getMscSubSubscriptions.go @@ -66,21 +66,11 @@ type GetMscSubSubscriptionsResult struct { } func GetMscSubSubscriptionsOutput(ctx *pulumi.Context, args GetMscSubSubscriptionsOutputArgs, opts ...pulumi.InvokeOption) GetMscSubSubscriptionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetMscSubSubscriptionsResultOutput, error) { args := v.(GetMscSubSubscriptionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetMscSubSubscriptionsResult - secret, err := ctx.InvokePackageRaw("alicloud:index/getMscSubSubscriptions:getMscSubSubscriptions", args, &rv, "", opts...) - if err != nil { - return GetMscSubSubscriptionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetMscSubSubscriptionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetMscSubSubscriptionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:index/getMscSubSubscriptions:getMscSubSubscriptions", args, GetMscSubSubscriptionsResultOutput{}, options).(GetMscSubSubscriptionsResultOutput), nil }).(GetMscSubSubscriptionsResultOutput) } diff --git a/sdk/go/alicloud/getMscSubWebhooks.go b/sdk/go/alicloud/getMscSubWebhooks.go index 7dd3192167..9294523f55 100644 --- a/sdk/go/alicloud/getMscSubWebhooks.go +++ b/sdk/go/alicloud/getMscSubWebhooks.go @@ -84,21 +84,11 @@ type GetMscSubWebhooksResult struct { } func GetMscSubWebhooksOutput(ctx *pulumi.Context, args GetMscSubWebhooksOutputArgs, opts ...pulumi.InvokeOption) GetMscSubWebhooksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetMscSubWebhooksResultOutput, error) { args := v.(GetMscSubWebhooksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetMscSubWebhooksResult - secret, err := ctx.InvokePackageRaw("alicloud:index/getMscSubWebhooks:getMscSubWebhooks", args, &rv, "", opts...) - if err != nil { - return GetMscSubWebhooksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetMscSubWebhooksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetMscSubWebhooksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:index/getMscSubWebhooks:getMscSubWebhooks", args, GetMscSubWebhooksResultOutput{}, options).(GetMscSubWebhooksResultOutput), nil }).(GetMscSubWebhooksResultOutput) } diff --git a/sdk/go/alicloud/getRegions.go b/sdk/go/alicloud/getRegions.go index 090175e859..38fc7ef7d5 100644 --- a/sdk/go/alicloud/getRegions.go +++ b/sdk/go/alicloud/getRegions.go @@ -76,21 +76,11 @@ type GetRegionsResult struct { } func GetRegionsOutput(ctx *pulumi.Context, args GetRegionsOutputArgs, opts ...pulumi.InvokeOption) GetRegionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegionsResultOutput, error) { args := v.(GetRegionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegionsResult - secret, err := ctx.InvokePackageRaw("alicloud:index/getRegions:getRegions", args, &rv, "", opts...) - if err != nil { - return GetRegionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:index/getRegions:getRegions", args, GetRegionsResultOutput{}, options).(GetRegionsResultOutput), nil }).(GetRegionsResultOutput) } diff --git a/sdk/go/alicloud/getZones.go b/sdk/go/alicloud/getZones.go index 89ea725806..2ab13fd955 100644 --- a/sdk/go/alicloud/getZones.go +++ b/sdk/go/alicloud/getZones.go @@ -107,21 +107,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:index/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:index/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/governance/getBaselines.go b/sdk/go/alicloud/governance/getBaselines.go index 760584e4f8..bd4d8c3e6b 100644 --- a/sdk/go/alicloud/governance/getBaselines.go +++ b/sdk/go/alicloud/governance/getBaselines.go @@ -138,21 +138,11 @@ type GetBaselinesResult struct { } func GetBaselinesOutput(ctx *pulumi.Context, args GetBaselinesOutputArgs, opts ...pulumi.InvokeOption) GetBaselinesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBaselinesResultOutput, error) { args := v.(GetBaselinesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBaselinesResult - secret, err := ctx.InvokePackageRaw("alicloud:governance/getBaselines:getBaselines", args, &rv, "", opts...) - if err != nil { - return GetBaselinesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBaselinesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBaselinesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:governance/getBaselines:getBaselines", args, GetBaselinesResultOutput{}, options).(GetBaselinesResultOutput), nil }).(GetBaselinesResultOutput) } diff --git a/sdk/go/alicloud/gpdb/getAccounts.go b/sdk/go/alicloud/gpdb/getAccounts.go index 61e2b25e49..c760497df5 100644 --- a/sdk/go/alicloud/gpdb/getAccounts.go +++ b/sdk/go/alicloud/gpdb/getAccounts.go @@ -93,21 +93,11 @@ type GetAccountsResult struct { } func GetAccountsOutput(ctx *pulumi.Context, args GetAccountsOutputArgs, opts ...pulumi.InvokeOption) GetAccountsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccountsResultOutput, error) { args := v.(GetAccountsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccountsResult - secret, err := ctx.InvokePackageRaw("alicloud:gpdb/getAccounts:getAccounts", args, &rv, "", opts...) - if err != nil { - return GetAccountsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccountsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccountsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:gpdb/getAccounts:getAccounts", args, GetAccountsResultOutput{}, options).(GetAccountsResultOutput), nil }).(GetAccountsResultOutput) } diff --git a/sdk/go/alicloud/gpdb/getDataBackups.go b/sdk/go/alicloud/gpdb/getDataBackups.go index e7bfa04c5c..9dad30e51f 100644 --- a/sdk/go/alicloud/gpdb/getDataBackups.go +++ b/sdk/go/alicloud/gpdb/getDataBackups.go @@ -108,21 +108,11 @@ type GetDataBackupsResult struct { } func GetDataBackupsOutput(ctx *pulumi.Context, args GetDataBackupsOutputArgs, opts ...pulumi.InvokeOption) GetDataBackupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDataBackupsResultOutput, error) { args := v.(GetDataBackupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDataBackupsResult - secret, err := ctx.InvokePackageRaw("alicloud:gpdb/getDataBackups:getDataBackups", args, &rv, "", opts...) - if err != nil { - return GetDataBackupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDataBackupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDataBackupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:gpdb/getDataBackups:getDataBackups", args, GetDataBackupsResultOutput{}, options).(GetDataBackupsResultOutput), nil }).(GetDataBackupsResultOutput) } diff --git a/sdk/go/alicloud/gpdb/getDbInstancePlans.go b/sdk/go/alicloud/gpdb/getDbInstancePlans.go index 75db3bfe87..33c02cd5b4 100644 --- a/sdk/go/alicloud/gpdb/getDbInstancePlans.go +++ b/sdk/go/alicloud/gpdb/getDbInstancePlans.go @@ -98,21 +98,11 @@ type GetDbInstancePlansResult struct { } func GetDbInstancePlansOutput(ctx *pulumi.Context, args GetDbInstancePlansOutputArgs, opts ...pulumi.InvokeOption) GetDbInstancePlansResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDbInstancePlansResultOutput, error) { args := v.(GetDbInstancePlansArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDbInstancePlansResult - secret, err := ctx.InvokePackageRaw("alicloud:gpdb/getDbInstancePlans:getDbInstancePlans", args, &rv, "", opts...) - if err != nil { - return GetDbInstancePlansResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDbInstancePlansResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDbInstancePlansResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:gpdb/getDbInstancePlans:getDbInstancePlans", args, GetDbInstancePlansResultOutput{}, options).(GetDbInstancePlansResultOutput), nil }).(GetDbInstancePlansResultOutput) } diff --git a/sdk/go/alicloud/gpdb/getInstances.go b/sdk/go/alicloud/gpdb/getInstances.go index a3163d54f3..7c129068eb 100644 --- a/sdk/go/alicloud/gpdb/getInstances.go +++ b/sdk/go/alicloud/gpdb/getInstances.go @@ -102,21 +102,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:gpdb/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:gpdb/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/gpdb/getLogBackups.go b/sdk/go/alicloud/gpdb/getLogBackups.go index be440c5aad..d86d0f770b 100644 --- a/sdk/go/alicloud/gpdb/getLogBackups.go +++ b/sdk/go/alicloud/gpdb/getLogBackups.go @@ -96,21 +96,11 @@ type GetLogBackupsResult struct { } func GetLogBackupsOutput(ctx *pulumi.Context, args GetLogBackupsOutputArgs, opts ...pulumi.InvokeOption) GetLogBackupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetLogBackupsResultOutput, error) { args := v.(GetLogBackupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetLogBackupsResult - secret, err := ctx.InvokePackageRaw("alicloud:gpdb/getLogBackups:getLogBackups", args, &rv, "", opts...) - if err != nil { - return GetLogBackupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetLogBackupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetLogBackupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:gpdb/getLogBackups:getLogBackups", args, GetLogBackupsResultOutput{}, options).(GetLogBackupsResultOutput), nil }).(GetLogBackupsResultOutput) } diff --git a/sdk/go/alicloud/gpdb/getZones.go b/sdk/go/alicloud/gpdb/getZones.go index b9188141de..94f3869f7a 100644 --- a/sdk/go/alicloud/gpdb/getZones.go +++ b/sdk/go/alicloud/gpdb/getZones.go @@ -45,21 +45,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:gpdb/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:gpdb/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/graphdatabase/getDbInstances.go b/sdk/go/alicloud/graphdatabase/getDbInstances.go index dab3205a48..8b7293cd1e 100644 --- a/sdk/go/alicloud/graphdatabase/getDbInstances.go +++ b/sdk/go/alicloud/graphdatabase/getDbInstances.go @@ -102,21 +102,11 @@ type GetDbInstancesResult struct { } func GetDbInstancesOutput(ctx *pulumi.Context, args GetDbInstancesOutputArgs, opts ...pulumi.InvokeOption) GetDbInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDbInstancesResultOutput, error) { args := v.(GetDbInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDbInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:graphdatabase/getDbInstances:getDbInstances", args, &rv, "", opts...) - if err != nil { - return GetDbInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDbInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDbInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:graphdatabase/getDbInstances:getDbInstances", args, GetDbInstancesResultOutput{}, options).(GetDbInstancesResultOutput), nil }).(GetDbInstancesResultOutput) } diff --git a/sdk/go/alicloud/gwlb/getZones.go b/sdk/go/alicloud/gwlb/getZones.go index 576385ce2f..9fadcb9bbb 100644 --- a/sdk/go/alicloud/gwlb/getZones.go +++ b/sdk/go/alicloud/gwlb/getZones.go @@ -75,21 +75,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:gwlb/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:gwlb/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/hbase/getInstanceTypes.go b/sdk/go/alicloud/hbase/getInstanceTypes.go index 045163c882..58862b6465 100644 --- a/sdk/go/alicloud/hbase/getInstanceTypes.go +++ b/sdk/go/alicloud/hbase/getInstanceTypes.go @@ -70,21 +70,11 @@ type GetInstanceTypesResult struct { } func GetInstanceTypesOutput(ctx *pulumi.Context, args GetInstanceTypesOutputArgs, opts ...pulumi.InvokeOption) GetInstanceTypesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceTypesResultOutput, error) { args := v.(GetInstanceTypesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceTypesResult - secret, err := ctx.InvokePackageRaw("alicloud:hbase/getInstanceTypes:getInstanceTypes", args, &rv, "", opts...) - if err != nil { - return GetInstanceTypesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceTypesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceTypesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:hbase/getInstanceTypes:getInstanceTypes", args, GetInstanceTypesResultOutput{}, options).(GetInstanceTypesResultOutput), nil }).(GetInstanceTypesResultOutput) } diff --git a/sdk/go/alicloud/hbase/getInstances.go b/sdk/go/alicloud/hbase/getInstances.go index c79e35b202..6470c9c791 100644 --- a/sdk/go/alicloud/hbase/getInstances.go +++ b/sdk/go/alicloud/hbase/getInstances.go @@ -84,21 +84,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:hbase/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:hbase/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/hbase/getZones.go b/sdk/go/alicloud/hbase/getZones.go index fa50e143b9..5bf7361b65 100644 --- a/sdk/go/alicloud/hbase/getZones.go +++ b/sdk/go/alicloud/hbase/getZones.go @@ -72,21 +72,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:hbase/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:hbase/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/hbr/getBackupJobs.go b/sdk/go/alicloud/hbr/getBackupJobs.go index 7d72096a5e..8bec777d5e 100644 --- a/sdk/go/alicloud/hbr/getBackupJobs.go +++ b/sdk/go/alicloud/hbr/getBackupJobs.go @@ -141,21 +141,11 @@ type GetBackupJobsResult struct { } func GetBackupJobsOutput(ctx *pulumi.Context, args GetBackupJobsOutputArgs, opts ...pulumi.InvokeOption) GetBackupJobsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBackupJobsResultOutput, error) { args := v.(GetBackupJobsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBackupJobsResult - secret, err := ctx.InvokePackageRaw("alicloud:hbr/getBackupJobs:getBackupJobs", args, &rv, "", opts...) - if err != nil { - return GetBackupJobsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBackupJobsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBackupJobsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:hbr/getBackupJobs:getBackupJobs", args, GetBackupJobsResultOutput{}, options).(GetBackupJobsResultOutput), nil }).(GetBackupJobsResultOutput) } diff --git a/sdk/go/alicloud/hbr/getEcsBackupClients.go b/sdk/go/alicloud/hbr/getEcsBackupClients.go index 5d6bf67783..452aeccd38 100644 --- a/sdk/go/alicloud/hbr/getEcsBackupClients.go +++ b/sdk/go/alicloud/hbr/getEcsBackupClients.go @@ -88,21 +88,11 @@ type GetEcsBackupClientsResult struct { } func GetEcsBackupClientsOutput(ctx *pulumi.Context, args GetEcsBackupClientsOutputArgs, opts ...pulumi.InvokeOption) GetEcsBackupClientsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEcsBackupClientsResultOutput, error) { args := v.(GetEcsBackupClientsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEcsBackupClientsResult - secret, err := ctx.InvokePackageRaw("alicloud:hbr/getEcsBackupClients:getEcsBackupClients", args, &rv, "", opts...) - if err != nil { - return GetEcsBackupClientsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEcsBackupClientsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEcsBackupClientsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:hbr/getEcsBackupClients:getEcsBackupClients", args, GetEcsBackupClientsResultOutput{}, options).(GetEcsBackupClientsResultOutput), nil }).(GetEcsBackupClientsResultOutput) } diff --git a/sdk/go/alicloud/hbr/getEcsBackupPlans.go b/sdk/go/alicloud/hbr/getEcsBackupPlans.go index 02654af1e0..18b81a7bbf 100644 --- a/sdk/go/alicloud/hbr/getEcsBackupPlans.go +++ b/sdk/go/alicloud/hbr/getEcsBackupPlans.go @@ -81,21 +81,11 @@ type GetEcsBackupPlansResult struct { } func GetEcsBackupPlansOutput(ctx *pulumi.Context, args GetEcsBackupPlansOutputArgs, opts ...pulumi.InvokeOption) GetEcsBackupPlansResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEcsBackupPlansResultOutput, error) { args := v.(GetEcsBackupPlansArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEcsBackupPlansResult - secret, err := ctx.InvokePackageRaw("alicloud:hbr/getEcsBackupPlans:getEcsBackupPlans", args, &rv, "", opts...) - if err != nil { - return GetEcsBackupPlansResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEcsBackupPlansResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEcsBackupPlansResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:hbr/getEcsBackupPlans:getEcsBackupPlans", args, GetEcsBackupPlansResultOutput{}, options).(GetEcsBackupPlansResultOutput), nil }).(GetEcsBackupPlansResultOutput) } diff --git a/sdk/go/alicloud/hbr/getHanaBackupClients.go b/sdk/go/alicloud/hbr/getHanaBackupClients.go index 1602702012..63ea14a61d 100644 --- a/sdk/go/alicloud/hbr/getHanaBackupClients.go +++ b/sdk/go/alicloud/hbr/getHanaBackupClients.go @@ -95,21 +95,11 @@ type GetHanaBackupClientsResult struct { } func GetHanaBackupClientsOutput(ctx *pulumi.Context, args GetHanaBackupClientsOutputArgs, opts ...pulumi.InvokeOption) GetHanaBackupClientsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHanaBackupClientsResultOutput, error) { args := v.(GetHanaBackupClientsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHanaBackupClientsResult - secret, err := ctx.InvokePackageRaw("alicloud:hbr/getHanaBackupClients:getHanaBackupClients", args, &rv, "", opts...) - if err != nil { - return GetHanaBackupClientsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHanaBackupClientsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHanaBackupClientsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:hbr/getHanaBackupClients:getHanaBackupClients", args, GetHanaBackupClientsResultOutput{}, options).(GetHanaBackupClientsResultOutput), nil }).(GetHanaBackupClientsResultOutput) } diff --git a/sdk/go/alicloud/hbr/getHanaBackupPlans.go b/sdk/go/alicloud/hbr/getHanaBackupPlans.go index c8d7e7917a..9c5bd59e19 100644 --- a/sdk/go/alicloud/hbr/getHanaBackupPlans.go +++ b/sdk/go/alicloud/hbr/getHanaBackupPlans.go @@ -91,21 +91,11 @@ type GetHanaBackupPlansResult struct { } func GetHanaBackupPlansOutput(ctx *pulumi.Context, args GetHanaBackupPlansOutputArgs, opts ...pulumi.InvokeOption) GetHanaBackupPlansResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHanaBackupPlansResultOutput, error) { args := v.(GetHanaBackupPlansArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHanaBackupPlansResult - secret, err := ctx.InvokePackageRaw("alicloud:hbr/getHanaBackupPlans:getHanaBackupPlans", args, &rv, "", opts...) - if err != nil { - return GetHanaBackupPlansResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHanaBackupPlansResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHanaBackupPlansResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:hbr/getHanaBackupPlans:getHanaBackupPlans", args, GetHanaBackupPlansResultOutput{}, options).(GetHanaBackupPlansResultOutput), nil }).(GetHanaBackupPlansResultOutput) } diff --git a/sdk/go/alicloud/hbr/getHanaInstances.go b/sdk/go/alicloud/hbr/getHanaInstances.go index 490e6748d7..7cedc1c3b6 100644 --- a/sdk/go/alicloud/hbr/getHanaInstances.go +++ b/sdk/go/alicloud/hbr/getHanaInstances.go @@ -91,21 +91,11 @@ type GetHanaInstancesResult struct { } func GetHanaInstancesOutput(ctx *pulumi.Context, args GetHanaInstancesOutputArgs, opts ...pulumi.InvokeOption) GetHanaInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHanaInstancesResultOutput, error) { args := v.(GetHanaInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHanaInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:hbr/getHanaInstances:getHanaInstances", args, &rv, "", opts...) - if err != nil { - return GetHanaInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHanaInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHanaInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:hbr/getHanaInstances:getHanaInstances", args, GetHanaInstancesResultOutput{}, options).(GetHanaInstancesResultOutput), nil }).(GetHanaInstancesResultOutput) } diff --git a/sdk/go/alicloud/hbr/getNasBackupPlans.go b/sdk/go/alicloud/hbr/getNasBackupPlans.go index a21ab46260..0d8e95f3a0 100644 --- a/sdk/go/alicloud/hbr/getNasBackupPlans.go +++ b/sdk/go/alicloud/hbr/getNasBackupPlans.go @@ -81,21 +81,11 @@ type GetNasBackupPlansResult struct { } func GetNasBackupPlansOutput(ctx *pulumi.Context, args GetNasBackupPlansOutputArgs, opts ...pulumi.InvokeOption) GetNasBackupPlansResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNasBackupPlansResultOutput, error) { args := v.(GetNasBackupPlansArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNasBackupPlansResult - secret, err := ctx.InvokePackageRaw("alicloud:hbr/getNasBackupPlans:getNasBackupPlans", args, &rv, "", opts...) - if err != nil { - return GetNasBackupPlansResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNasBackupPlansResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNasBackupPlansResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:hbr/getNasBackupPlans:getNasBackupPlans", args, GetNasBackupPlansResultOutput{}, options).(GetNasBackupPlansResultOutput), nil }).(GetNasBackupPlansResultOutput) } diff --git a/sdk/go/alicloud/hbr/getOssBackupPlans.go b/sdk/go/alicloud/hbr/getOssBackupPlans.go index 9849b8cece..7c0435dea5 100644 --- a/sdk/go/alicloud/hbr/getOssBackupPlans.go +++ b/sdk/go/alicloud/hbr/getOssBackupPlans.go @@ -81,21 +81,11 @@ type GetOssBackupPlansResult struct { } func GetOssBackupPlansOutput(ctx *pulumi.Context, args GetOssBackupPlansOutputArgs, opts ...pulumi.InvokeOption) GetOssBackupPlansResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetOssBackupPlansResultOutput, error) { args := v.(GetOssBackupPlansArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetOssBackupPlansResult - secret, err := ctx.InvokePackageRaw("alicloud:hbr/getOssBackupPlans:getOssBackupPlans", args, &rv, "", opts...) - if err != nil { - return GetOssBackupPlansResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetOssBackupPlansResultOutput) - if secret { - return pulumi.ToSecret(output).(GetOssBackupPlansResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:hbr/getOssBackupPlans:getOssBackupPlans", args, GetOssBackupPlansResultOutput{}, options).(GetOssBackupPlansResultOutput), nil }).(GetOssBackupPlansResultOutput) } diff --git a/sdk/go/alicloud/hbr/getOtsBackupPlans.go b/sdk/go/alicloud/hbr/getOtsBackupPlans.go index def907cbc3..daa4272e10 100644 --- a/sdk/go/alicloud/hbr/getOtsBackupPlans.go +++ b/sdk/go/alicloud/hbr/getOtsBackupPlans.go @@ -84,21 +84,11 @@ type GetOtsBackupPlansResult struct { } func GetOtsBackupPlansOutput(ctx *pulumi.Context, args GetOtsBackupPlansOutputArgs, opts ...pulumi.InvokeOption) GetOtsBackupPlansResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetOtsBackupPlansResultOutput, error) { args := v.(GetOtsBackupPlansArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetOtsBackupPlansResult - secret, err := ctx.InvokePackageRaw("alicloud:hbr/getOtsBackupPlans:getOtsBackupPlans", args, &rv, "", opts...) - if err != nil { - return GetOtsBackupPlansResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetOtsBackupPlansResultOutput) - if secret { - return pulumi.ToSecret(output).(GetOtsBackupPlansResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:hbr/getOtsBackupPlans:getOtsBackupPlans", args, GetOtsBackupPlansResultOutput{}, options).(GetOtsBackupPlansResultOutput), nil }).(GetOtsBackupPlansResultOutput) } diff --git a/sdk/go/alicloud/hbr/getOtsSnapshots.go b/sdk/go/alicloud/hbr/getOtsSnapshots.go index c11aa56db6..2d6b5fa103 100644 --- a/sdk/go/alicloud/hbr/getOtsSnapshots.go +++ b/sdk/go/alicloud/hbr/getOtsSnapshots.go @@ -73,21 +73,11 @@ type GetOtsSnapshotsResult struct { } func GetOtsSnapshotsOutput(ctx *pulumi.Context, args GetOtsSnapshotsOutputArgs, opts ...pulumi.InvokeOption) GetOtsSnapshotsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetOtsSnapshotsResultOutput, error) { args := v.(GetOtsSnapshotsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetOtsSnapshotsResult - secret, err := ctx.InvokePackageRaw("alicloud:hbr/getOtsSnapshots:getOtsSnapshots", args, &rv, "", opts...) - if err != nil { - return GetOtsSnapshotsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetOtsSnapshotsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetOtsSnapshotsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:hbr/getOtsSnapshots:getOtsSnapshots", args, GetOtsSnapshotsResultOutput{}, options).(GetOtsSnapshotsResultOutput), nil }).(GetOtsSnapshotsResultOutput) } diff --git a/sdk/go/alicloud/hbr/getReplicationVaultRegions.go b/sdk/go/alicloud/hbr/getReplicationVaultRegions.go index 8286649daa..d5b5f3f9e9 100644 --- a/sdk/go/alicloud/hbr/getReplicationVaultRegions.go +++ b/sdk/go/alicloud/hbr/getReplicationVaultRegions.go @@ -66,21 +66,11 @@ type GetReplicationVaultRegionsResult struct { } func GetReplicationVaultRegionsOutput(ctx *pulumi.Context, args GetReplicationVaultRegionsOutputArgs, opts ...pulumi.InvokeOption) GetReplicationVaultRegionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetReplicationVaultRegionsResultOutput, error) { args := v.(GetReplicationVaultRegionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetReplicationVaultRegionsResult - secret, err := ctx.InvokePackageRaw("alicloud:hbr/getReplicationVaultRegions:getReplicationVaultRegions", args, &rv, "", opts...) - if err != nil { - return GetReplicationVaultRegionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetReplicationVaultRegionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetReplicationVaultRegionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:hbr/getReplicationVaultRegions:getReplicationVaultRegions", args, GetReplicationVaultRegionsResultOutput{}, options).(GetReplicationVaultRegionsResultOutput), nil }).(GetReplicationVaultRegionsResultOutput) } diff --git a/sdk/go/alicloud/hbr/getRestoreJobs.go b/sdk/go/alicloud/hbr/getRestoreJobs.go index 0f2d9057d3..a32ab63a1c 100644 --- a/sdk/go/alicloud/hbr/getRestoreJobs.go +++ b/sdk/go/alicloud/hbr/getRestoreJobs.go @@ -102,21 +102,11 @@ type GetRestoreJobsResult struct { } func GetRestoreJobsOutput(ctx *pulumi.Context, args GetRestoreJobsOutputArgs, opts ...pulumi.InvokeOption) GetRestoreJobsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRestoreJobsResultOutput, error) { args := v.(GetRestoreJobsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRestoreJobsResult - secret, err := ctx.InvokePackageRaw("alicloud:hbr/getRestoreJobs:getRestoreJobs", args, &rv, "", opts...) - if err != nil { - return GetRestoreJobsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRestoreJobsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRestoreJobsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:hbr/getRestoreJobs:getRestoreJobs", args, GetRestoreJobsResultOutput{}, options).(GetRestoreJobsResultOutput), nil }).(GetRestoreJobsResultOutput) } diff --git a/sdk/go/alicloud/hbr/getServerBackupPlans.go b/sdk/go/alicloud/hbr/getServerBackupPlans.go index cca2ae4568..cfd7e8aaf9 100644 --- a/sdk/go/alicloud/hbr/getServerBackupPlans.go +++ b/sdk/go/alicloud/hbr/getServerBackupPlans.go @@ -87,21 +87,11 @@ type GetServerBackupPlansResult struct { } func GetServerBackupPlansOutput(ctx *pulumi.Context, args GetServerBackupPlansOutputArgs, opts ...pulumi.InvokeOption) GetServerBackupPlansResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServerBackupPlansResultOutput, error) { args := v.(GetServerBackupPlansArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServerBackupPlansResult - secret, err := ctx.InvokePackageRaw("alicloud:hbr/getServerBackupPlans:getServerBackupPlans", args, &rv, "", opts...) - if err != nil { - return GetServerBackupPlansResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServerBackupPlansResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServerBackupPlansResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:hbr/getServerBackupPlans:getServerBackupPlans", args, GetServerBackupPlansResultOutput{}, options).(GetServerBackupPlansResultOutput), nil }).(GetServerBackupPlansResultOutput) } diff --git a/sdk/go/alicloud/hbr/getService.go b/sdk/go/alicloud/hbr/getService.go index 029bb8a5f9..99aa7079b0 100644 --- a/sdk/go/alicloud/hbr/getService.go +++ b/sdk/go/alicloud/hbr/getService.go @@ -72,21 +72,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:hbr/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:hbr/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/hbr/getSnapshots.go b/sdk/go/alicloud/hbr/getSnapshots.go index d5b96faad0..4646d58428 100644 --- a/sdk/go/alicloud/hbr/getSnapshots.go +++ b/sdk/go/alicloud/hbr/getSnapshots.go @@ -143,21 +143,11 @@ type GetSnapshotsResult struct { } func GetSnapshotsOutput(ctx *pulumi.Context, args GetSnapshotsOutputArgs, opts ...pulumi.InvokeOption) GetSnapshotsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSnapshotsResultOutput, error) { args := v.(GetSnapshotsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSnapshotsResult - secret, err := ctx.InvokePackageRaw("alicloud:hbr/getSnapshots:getSnapshots", args, &rv, "", opts...) - if err != nil { - return GetSnapshotsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSnapshotsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSnapshotsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:hbr/getSnapshots:getSnapshots", args, GetSnapshotsResultOutput{}, options).(GetSnapshotsResultOutput), nil }).(GetSnapshotsResultOutput) } diff --git a/sdk/go/alicloud/hbr/getVaults.go b/sdk/go/alicloud/hbr/getVaults.go index f5efdddb56..4983297752 100644 --- a/sdk/go/alicloud/hbr/getVaults.go +++ b/sdk/go/alicloud/hbr/getVaults.go @@ -83,21 +83,11 @@ type GetVaultsResult struct { } func GetVaultsOutput(ctx *pulumi.Context, args GetVaultsOutputArgs, opts ...pulumi.InvokeOption) GetVaultsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVaultsResultOutput, error) { args := v.(GetVaultsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVaultsResult - secret, err := ctx.InvokePackageRaw("alicloud:hbr/getVaults:getVaults", args, &rv, "", opts...) - if err != nil { - return GetVaultsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVaultsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVaultsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:hbr/getVaults:getVaults", args, GetVaultsResultOutput{}, options).(GetVaultsResultOutput), nil }).(GetVaultsResultOutput) } diff --git a/sdk/go/alicloud/imm/getProjects.go b/sdk/go/alicloud/imm/getProjects.go index a4d18000e8..052fb835ac 100644 --- a/sdk/go/alicloud/imm/getProjects.go +++ b/sdk/go/alicloud/imm/getProjects.go @@ -73,21 +73,11 @@ type GetProjectsResult struct { } func GetProjectsOutput(ctx *pulumi.Context, args GetProjectsOutputArgs, opts ...pulumi.InvokeOption) GetProjectsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProjectsResultOutput, error) { args := v.(GetProjectsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProjectsResult - secret, err := ctx.InvokePackageRaw("alicloud:imm/getProjects:getProjects", args, &rv, "", opts...) - if err != nil { - return GetProjectsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProjectsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProjectsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:imm/getProjects:getProjects", args, GetProjectsResultOutput{}, options).(GetProjectsResultOutput), nil }).(GetProjectsResultOutput) } diff --git a/sdk/go/alicloud/imp/getAppTemplates.go b/sdk/go/alicloud/imp/getAppTemplates.go index 9fd1c761ad..0c8b99589e 100644 --- a/sdk/go/alicloud/imp/getAppTemplates.go +++ b/sdk/go/alicloud/imp/getAppTemplates.go @@ -83,21 +83,11 @@ type GetAppTemplatesResult struct { } func GetAppTemplatesOutput(ctx *pulumi.Context, args GetAppTemplatesOutputArgs, opts ...pulumi.InvokeOption) GetAppTemplatesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAppTemplatesResultOutput, error) { args := v.(GetAppTemplatesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAppTemplatesResult - secret, err := ctx.InvokePackageRaw("alicloud:imp/getAppTemplates:getAppTemplates", args, &rv, "", opts...) - if err != nil { - return GetAppTemplatesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAppTemplatesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAppTemplatesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:imp/getAppTemplates:getAppTemplates", args, GetAppTemplatesResultOutput{}, options).(GetAppTemplatesResultOutput), nil }).(GetAppTemplatesResultOutput) } diff --git a/sdk/go/alicloud/iot/getDeviceGroups.go b/sdk/go/alicloud/iot/getDeviceGroups.go index 59a5d7dd7c..52db976136 100644 --- a/sdk/go/alicloud/iot/getDeviceGroups.go +++ b/sdk/go/alicloud/iot/getDeviceGroups.go @@ -84,21 +84,11 @@ type GetDeviceGroupsResult struct { } func GetDeviceGroupsOutput(ctx *pulumi.Context, args GetDeviceGroupsOutputArgs, opts ...pulumi.InvokeOption) GetDeviceGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDeviceGroupsResultOutput, error) { args := v.(GetDeviceGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDeviceGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:iot/getDeviceGroups:getDeviceGroups", args, &rv, "", opts...) - if err != nil { - return GetDeviceGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDeviceGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDeviceGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:iot/getDeviceGroups:getDeviceGroups", args, GetDeviceGroupsResultOutput{}, options).(GetDeviceGroupsResultOutput), nil }).(GetDeviceGroupsResultOutput) } diff --git a/sdk/go/alicloud/iot/getService.go b/sdk/go/alicloud/iot/getService.go index 25e00b0c8e..c509f18c03 100644 --- a/sdk/go/alicloud/iot/getService.go +++ b/sdk/go/alicloud/iot/getService.go @@ -70,21 +70,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:iot/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:iot/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/kms/getAliases.go b/sdk/go/alicloud/kms/getAliases.go index 8f29771580..408646c3bd 100644 --- a/sdk/go/alicloud/kms/getAliases.go +++ b/sdk/go/alicloud/kms/getAliases.go @@ -80,21 +80,11 @@ type GetAliasesResult struct { } func GetAliasesOutput(ctx *pulumi.Context, args GetAliasesOutputArgs, opts ...pulumi.InvokeOption) GetAliasesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAliasesResultOutput, error) { args := v.(GetAliasesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAliasesResult - secret, err := ctx.InvokePackageRaw("alicloud:kms/getAliases:getAliases", args, &rv, "", opts...) - if err != nil { - return GetAliasesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAliasesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAliasesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:kms/getAliases:getAliases", args, GetAliasesResultOutput{}, options).(GetAliasesResultOutput), nil }).(GetAliasesResultOutput) } diff --git a/sdk/go/alicloud/kms/getCiphertext.go b/sdk/go/alicloud/kms/getCiphertext.go index 5cd8a2698f..3670580ae6 100644 --- a/sdk/go/alicloud/kms/getCiphertext.go +++ b/sdk/go/alicloud/kms/getCiphertext.go @@ -75,21 +75,11 @@ type LookupCiphertextResult struct { } func LookupCiphertextOutput(ctx *pulumi.Context, args LookupCiphertextOutputArgs, opts ...pulumi.InvokeOption) LookupCiphertextResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupCiphertextResultOutput, error) { args := v.(LookupCiphertextArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupCiphertextResult - secret, err := ctx.InvokePackageRaw("alicloud:kms/getCiphertext:getCiphertext", args, &rv, "", opts...) - if err != nil { - return LookupCiphertextResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupCiphertextResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupCiphertextResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:kms/getCiphertext:getCiphertext", args, LookupCiphertextResultOutput{}, options).(LookupCiphertextResultOutput), nil }).(LookupCiphertextResultOutput) } diff --git a/sdk/go/alicloud/kms/getKeyVersions.go b/sdk/go/alicloud/kms/getKeyVersions.go index bac52bd0cb..907581f1bb 100644 --- a/sdk/go/alicloud/kms/getKeyVersions.go +++ b/sdk/go/alicloud/kms/getKeyVersions.go @@ -79,21 +79,11 @@ type GetKeyVersionsResult struct { } func GetKeyVersionsOutput(ctx *pulumi.Context, args GetKeyVersionsOutputArgs, opts ...pulumi.InvokeOption) GetKeyVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKeyVersionsResultOutput, error) { args := v.(GetKeyVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKeyVersionsResult - secret, err := ctx.InvokePackageRaw("alicloud:kms/getKeyVersions:getKeyVersions", args, &rv, "", opts...) - if err != nil { - return GetKeyVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKeyVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKeyVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:kms/getKeyVersions:getKeyVersions", args, GetKeyVersionsResultOutput{}, options).(GetKeyVersionsResultOutput), nil }).(GetKeyVersionsResultOutput) } diff --git a/sdk/go/alicloud/kms/getKeys.go b/sdk/go/alicloud/kms/getKeys.go index 0261de2a82..80550ca01f 100644 --- a/sdk/go/alicloud/kms/getKeys.go +++ b/sdk/go/alicloud/kms/getKeys.go @@ -84,21 +84,11 @@ type GetKeysResult struct { } func GetKeysOutput(ctx *pulumi.Context, args GetKeysOutputArgs, opts ...pulumi.InvokeOption) GetKeysResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKeysResultOutput, error) { args := v.(GetKeysArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKeysResult - secret, err := ctx.InvokePackageRaw("alicloud:kms/getKeys:getKeys", args, &rv, "", opts...) - if err != nil { - return GetKeysResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKeysResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKeysResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:kms/getKeys:getKeys", args, GetKeysResultOutput{}, options).(GetKeysResultOutput), nil }).(GetKeysResultOutput) } diff --git a/sdk/go/alicloud/kms/getPlaintext.go b/sdk/go/alicloud/kms/getPlaintext.go index ade4503773..6341e5c402 100644 --- a/sdk/go/alicloud/kms/getPlaintext.go +++ b/sdk/go/alicloud/kms/getPlaintext.go @@ -83,21 +83,11 @@ type GetPlaintextResult struct { } func GetPlaintextOutput(ctx *pulumi.Context, args GetPlaintextOutputArgs, opts ...pulumi.InvokeOption) GetPlaintextResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPlaintextResultOutput, error) { args := v.(GetPlaintextArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPlaintextResult - secret, err := ctx.InvokePackageRaw("alicloud:kms/getPlaintext:getPlaintext", args, &rv, "", opts...) - if err != nil { - return GetPlaintextResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPlaintextResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPlaintextResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:kms/getPlaintext:getPlaintext", args, GetPlaintextResultOutput{}, options).(GetPlaintextResultOutput), nil }).(GetPlaintextResultOutput) } diff --git a/sdk/go/alicloud/kms/getSecretVersions.go b/sdk/go/alicloud/kms/getSecretVersions.go index 3f4799f4fc..7e4509bb87 100644 --- a/sdk/go/alicloud/kms/getSecretVersions.go +++ b/sdk/go/alicloud/kms/getSecretVersions.go @@ -86,21 +86,11 @@ type GetSecretVersionsResult struct { } func GetSecretVersionsOutput(ctx *pulumi.Context, args GetSecretVersionsOutputArgs, opts ...pulumi.InvokeOption) GetSecretVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSecretVersionsResultOutput, error) { args := v.(GetSecretVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSecretVersionsResult - secret, err := ctx.InvokePackageRaw("alicloud:kms/getSecretVersions:getSecretVersions", args, &rv, "", opts...) - if err != nil { - return GetSecretVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSecretVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSecretVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:kms/getSecretVersions:getSecretVersions", args, GetSecretVersionsResultOutput{}, options).(GetSecretVersionsResultOutput), nil }).(GetSecretVersionsResultOutput) } diff --git a/sdk/go/alicloud/kms/getSecrets.go b/sdk/go/alicloud/kms/getSecrets.go index 8eada3e6ab..d0bb39c0d8 100644 --- a/sdk/go/alicloud/kms/getSecrets.go +++ b/sdk/go/alicloud/kms/getSecrets.go @@ -96,21 +96,11 @@ type GetSecretsResult struct { } func GetSecretsOutput(ctx *pulumi.Context, args GetSecretsOutputArgs, opts ...pulumi.InvokeOption) GetSecretsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSecretsResultOutput, error) { args := v.(GetSecretsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSecretsResult - secret, err := ctx.InvokePackageRaw("alicloud:kms/getSecrets:getSecrets", args, &rv, "", opts...) - if err != nil { - return GetSecretsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSecretsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSecretsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:kms/getSecrets:getSecrets", args, GetSecretsResultOutput{}, options).(GetSecretsResultOutput), nil }).(GetSecretsResultOutput) } diff --git a/sdk/go/alicloud/kms/getService.go b/sdk/go/alicloud/kms/getService.go index 54593e2def..b11994ccbf 100644 --- a/sdk/go/alicloud/kms/getService.go +++ b/sdk/go/alicloud/kms/getService.go @@ -70,21 +70,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:kms/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:kms/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/kvstore/getAccounts.go b/sdk/go/alicloud/kvstore/getAccounts.go index 4e39735b1e..74f5282d26 100644 --- a/sdk/go/alicloud/kvstore/getAccounts.go +++ b/sdk/go/alicloud/kvstore/getAccounts.go @@ -81,21 +81,11 @@ type GetAccountsResult struct { } func GetAccountsOutput(ctx *pulumi.Context, args GetAccountsOutputArgs, opts ...pulumi.InvokeOption) GetAccountsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccountsResultOutput, error) { args := v.(GetAccountsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccountsResult - secret, err := ctx.InvokePackageRaw("alicloud:kvstore/getAccounts:getAccounts", args, &rv, "", opts...) - if err != nil { - return GetAccountsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccountsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccountsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:kvstore/getAccounts:getAccounts", args, GetAccountsResultOutput{}, options).(GetAccountsResultOutput), nil }).(GetAccountsResultOutput) } diff --git a/sdk/go/alicloud/kvstore/getConnections.go b/sdk/go/alicloud/kvstore/getConnections.go index 2504b6d94d..7e1412f554 100644 --- a/sdk/go/alicloud/kvstore/getConnections.go +++ b/sdk/go/alicloud/kvstore/getConnections.go @@ -72,21 +72,11 @@ type GetConnectionsResult struct { } func GetConnectionsOutput(ctx *pulumi.Context, args GetConnectionsOutputArgs, opts ...pulumi.InvokeOption) GetConnectionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetConnectionsResultOutput, error) { args := v.(GetConnectionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetConnectionsResult - secret, err := ctx.InvokePackageRaw("alicloud:kvstore/getConnections:getConnections", args, &rv, "", opts...) - if err != nil { - return GetConnectionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetConnectionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetConnectionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:kvstore/getConnections:getConnections", args, GetConnectionsResultOutput{}, options).(GetConnectionsResultOutput), nil }).(GetConnectionsResultOutput) } diff --git a/sdk/go/alicloud/kvstore/getInstanceClasses.go b/sdk/go/alicloud/kvstore/getInstanceClasses.go index c89d826a34..94052d14a9 100644 --- a/sdk/go/alicloud/kvstore/getInstanceClasses.go +++ b/sdk/go/alicloud/kvstore/getInstanceClasses.go @@ -132,21 +132,11 @@ type GetInstanceClassesResult struct { } func GetInstanceClassesOutput(ctx *pulumi.Context, args GetInstanceClassesOutputArgs, opts ...pulumi.InvokeOption) GetInstanceClassesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceClassesResultOutput, error) { args := v.(GetInstanceClassesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceClassesResult - secret, err := ctx.InvokePackageRaw("alicloud:kvstore/getInstanceClasses:getInstanceClasses", args, &rv, "", opts...) - if err != nil { - return GetInstanceClassesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceClassesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceClassesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:kvstore/getInstanceClasses:getInstanceClasses", args, GetInstanceClassesResultOutput{}, options).(GetInstanceClassesResultOutput), nil }).(GetInstanceClassesResultOutput) } diff --git a/sdk/go/alicloud/kvstore/getInstanceEngines.go b/sdk/go/alicloud/kvstore/getInstanceEngines.go index 09b015acc3..3ef9dbf071 100644 --- a/sdk/go/alicloud/kvstore/getInstanceEngines.go +++ b/sdk/go/alicloud/kvstore/getInstanceEngines.go @@ -93,21 +93,11 @@ type GetInstanceEnginesResult struct { } func GetInstanceEnginesOutput(ctx *pulumi.Context, args GetInstanceEnginesOutputArgs, opts ...pulumi.InvokeOption) GetInstanceEnginesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceEnginesResultOutput, error) { args := v.(GetInstanceEnginesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceEnginesResult - secret, err := ctx.InvokePackageRaw("alicloud:kvstore/getInstanceEngines:getInstanceEngines", args, &rv, "", opts...) - if err != nil { - return GetInstanceEnginesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceEnginesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceEnginesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:kvstore/getInstanceEngines:getInstanceEngines", args, GetInstanceEnginesResultOutput{}, options).(GetInstanceEnginesResultOutput), nil }).(GetInstanceEnginesResultOutput) } diff --git a/sdk/go/alicloud/kvstore/getInstances.go b/sdk/go/alicloud/kvstore/getInstances.go index 33e35ab15f..8a3e12317c 100644 --- a/sdk/go/alicloud/kvstore/getInstances.go +++ b/sdk/go/alicloud/kvstore/getInstances.go @@ -137,21 +137,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:kvstore/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:kvstore/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/kvstore/getPermission.go b/sdk/go/alicloud/kvstore/getPermission.go index 84d717e5c4..fce3129983 100644 --- a/sdk/go/alicloud/kvstore/getPermission.go +++ b/sdk/go/alicloud/kvstore/getPermission.go @@ -70,21 +70,11 @@ type GetPermissionResult struct { } func GetPermissionOutput(ctx *pulumi.Context, args GetPermissionOutputArgs, opts ...pulumi.InvokeOption) GetPermissionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPermissionResultOutput, error) { args := v.(GetPermissionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPermissionResult - secret, err := ctx.InvokePackageRaw("alicloud:kvstore/getPermission:getPermission", args, &rv, "", opts...) - if err != nil { - return GetPermissionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPermissionResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPermissionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:kvstore/getPermission:getPermission", args, GetPermissionResultOutput{}, options).(GetPermissionResultOutput), nil }).(GetPermissionResultOutput) } diff --git a/sdk/go/alicloud/kvstore/getZones.go b/sdk/go/alicloud/kvstore/getZones.go index 91d1503508..a30943ea61 100644 --- a/sdk/go/alicloud/kvstore/getZones.go +++ b/sdk/go/alicloud/kvstore/getZones.go @@ -81,21 +81,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:kvstore/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:kvstore/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/lindorm/getInstances.go b/sdk/go/alicloud/lindorm/getInstances.go index a3e2a26871..113a73c411 100644 --- a/sdk/go/alicloud/lindorm/getInstances.go +++ b/sdk/go/alicloud/lindorm/getInstances.go @@ -92,21 +92,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:lindorm/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:lindorm/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/log/getAlertResource.go b/sdk/go/alicloud/log/getAlertResource.go index d73ee59504..ce80ff1038 100644 --- a/sdk/go/alicloud/log/getAlertResource.go +++ b/sdk/go/alicloud/log/getAlertResource.go @@ -75,21 +75,11 @@ type LookupAlertResourceResult struct { } func LookupAlertResourceOutput(ctx *pulumi.Context, args LookupAlertResourceOutputArgs, opts ...pulumi.InvokeOption) LookupAlertResourceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAlertResourceResultOutput, error) { args := v.(LookupAlertResourceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAlertResourceResult - secret, err := ctx.InvokePackageRaw("alicloud:log/getAlertResource:getAlertResource", args, &rv, "", opts...) - if err != nil { - return LookupAlertResourceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAlertResourceResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAlertResourceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:log/getAlertResource:getAlertResource", args, LookupAlertResourceResultOutput{}, options).(LookupAlertResourceResultOutput), nil }).(LookupAlertResourceResultOutput) } diff --git a/sdk/go/alicloud/log/getProjects.go b/sdk/go/alicloud/log/getProjects.go index a718a94023..0dc649d6ac 100644 --- a/sdk/go/alicloud/log/getProjects.go +++ b/sdk/go/alicloud/log/getProjects.go @@ -49,21 +49,11 @@ type GetProjectsResult struct { } func GetProjectsOutput(ctx *pulumi.Context, args GetProjectsOutputArgs, opts ...pulumi.InvokeOption) GetProjectsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProjectsResultOutput, error) { args := v.(GetProjectsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProjectsResult - secret, err := ctx.InvokePackageRaw("alicloud:log/getProjects:getProjects", args, &rv, "", opts...) - if err != nil { - return GetProjectsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProjectsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProjectsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:log/getProjects:getProjects", args, GetProjectsResultOutput{}, options).(GetProjectsResultOutput), nil }).(GetProjectsResultOutput) } diff --git a/sdk/go/alicloud/log/getService.go b/sdk/go/alicloud/log/getService.go index 71add11f95..8cb12976ad 100644 --- a/sdk/go/alicloud/log/getService.go +++ b/sdk/go/alicloud/log/getService.go @@ -70,21 +70,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:log/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:log/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/log/getStores.go b/sdk/go/alicloud/log/getStores.go index cb4f9029fd..75631e6a12 100644 --- a/sdk/go/alicloud/log/getStores.go +++ b/sdk/go/alicloud/log/getStores.go @@ -80,21 +80,11 @@ type GetStoresResult struct { } func GetStoresOutput(ctx *pulumi.Context, args GetStoresOutputArgs, opts ...pulumi.InvokeOption) GetStoresResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetStoresResultOutput, error) { args := v.(GetStoresArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetStoresResult - secret, err := ctx.InvokePackageRaw("alicloud:log/getStores:getStores", args, &rv, "", opts...) - if err != nil { - return GetStoresResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetStoresResultOutput) - if secret { - return pulumi.ToSecret(output).(GetStoresResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:log/getStores:getStores", args, GetStoresResultOutput{}, options).(GetStoresResultOutput), nil }).(GetStoresResultOutput) } diff --git a/sdk/go/alicloud/marketplace/getProduct.go b/sdk/go/alicloud/marketplace/getProduct.go index 39bc158525..7acc6a5995 100644 --- a/sdk/go/alicloud/marketplace/getProduct.go +++ b/sdk/go/alicloud/marketplace/getProduct.go @@ -72,21 +72,11 @@ type GetProductResult struct { } func GetProductOutput(ctx *pulumi.Context, args GetProductOutputArgs, opts ...pulumi.InvokeOption) GetProductResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProductResultOutput, error) { args := v.(GetProductArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProductResult - secret, err := ctx.InvokePackageRaw("alicloud:marketplace/getProduct:getProduct", args, &rv, "", opts...) - if err != nil { - return GetProductResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProductResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProductResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:marketplace/getProduct:getProduct", args, GetProductResultOutput{}, options).(GetProductResultOutput), nil }).(GetProductResultOutput) } diff --git a/sdk/go/alicloud/marketplace/getProducts.go b/sdk/go/alicloud/marketplace/getProducts.go index 20be26095d..741dfdcf3f 100644 --- a/sdk/go/alicloud/marketplace/getProducts.go +++ b/sdk/go/alicloud/marketplace/getProducts.go @@ -71,21 +71,11 @@ type GetProductsResult struct { } func GetProductsOutput(ctx *pulumi.Context, args GetProductsOutputArgs, opts ...pulumi.InvokeOption) GetProductsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProductsResultOutput, error) { args := v.(GetProductsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProductsResult - secret, err := ctx.InvokePackageRaw("alicloud:marketplace/getProducts:getProducts", args, &rv, "", opts...) - if err != nil { - return GetProductsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProductsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProductsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:marketplace/getProducts:getProducts", args, GetProductsResultOutput{}, options).(GetProductsResultOutput), nil }).(GetProductsResultOutput) } diff --git a/sdk/go/alicloud/maxcompute/getProjects.go b/sdk/go/alicloud/maxcompute/getProjects.go index 768f907571..3754997d72 100644 --- a/sdk/go/alicloud/maxcompute/getProjects.go +++ b/sdk/go/alicloud/maxcompute/getProjects.go @@ -88,21 +88,11 @@ type GetProjectsResult struct { } func GetProjectsOutput(ctx *pulumi.Context, args GetProjectsOutputArgs, opts ...pulumi.InvokeOption) GetProjectsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProjectsResultOutput, error) { args := v.(GetProjectsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProjectsResult - secret, err := ctx.InvokePackageRaw("alicloud:maxcompute/getProjects:getProjects", args, &rv, "", opts...) - if err != nil { - return GetProjectsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProjectsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProjectsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:maxcompute/getProjects:getProjects", args, GetProjectsResultOutput{}, options).(GetProjectsResultOutput), nil }).(GetProjectsResultOutput) } diff --git a/sdk/go/alicloud/maxcompute/getService.go b/sdk/go/alicloud/maxcompute/getService.go index d4b95f2b2b..d58ef10870 100644 --- a/sdk/go/alicloud/maxcompute/getService.go +++ b/sdk/go/alicloud/maxcompute/getService.go @@ -74,21 +74,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:maxcompute/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:maxcompute/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/message/getServiceQueues.go b/sdk/go/alicloud/message/getServiceQueues.go index 79e99767f6..94f88e0587 100644 --- a/sdk/go/alicloud/message/getServiceQueues.go +++ b/sdk/go/alicloud/message/getServiceQueues.go @@ -92,21 +92,11 @@ type GetServiceQueuesResult struct { } func GetServiceQueuesOutput(ctx *pulumi.Context, args GetServiceQueuesOutputArgs, opts ...pulumi.InvokeOption) GetServiceQueuesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceQueuesResultOutput, error) { args := v.(GetServiceQueuesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceQueuesResult - secret, err := ctx.InvokePackageRaw("alicloud:message/getServiceQueues:getServiceQueues", args, &rv, "", opts...) - if err != nil { - return GetServiceQueuesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceQueuesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceQueuesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:message/getServiceQueues:getServiceQueues", args, GetServiceQueuesResultOutput{}, options).(GetServiceQueuesResultOutput), nil }).(GetServiceQueuesResultOutput) } diff --git a/sdk/go/alicloud/message/getServiceSubscriptions.go b/sdk/go/alicloud/message/getServiceSubscriptions.go index 68e5ba27a1..d59e14b500 100644 --- a/sdk/go/alicloud/message/getServiceSubscriptions.go +++ b/sdk/go/alicloud/message/getServiceSubscriptions.go @@ -97,21 +97,11 @@ type GetServiceSubscriptionsResult struct { } func GetServiceSubscriptionsOutput(ctx *pulumi.Context, args GetServiceSubscriptionsOutputArgs, opts ...pulumi.InvokeOption) GetServiceSubscriptionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceSubscriptionsResultOutput, error) { args := v.(GetServiceSubscriptionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceSubscriptionsResult - secret, err := ctx.InvokePackageRaw("alicloud:message/getServiceSubscriptions:getServiceSubscriptions", args, &rv, "", opts...) - if err != nil { - return GetServiceSubscriptionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceSubscriptionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceSubscriptionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:message/getServiceSubscriptions:getServiceSubscriptions", args, GetServiceSubscriptionsResultOutput{}, options).(GetServiceSubscriptionsResultOutput), nil }).(GetServiceSubscriptionsResultOutput) } diff --git a/sdk/go/alicloud/message/getServiceTopics.go b/sdk/go/alicloud/message/getServiceTopics.go index d445ec40b5..e1427a5c55 100644 --- a/sdk/go/alicloud/message/getServiceTopics.go +++ b/sdk/go/alicloud/message/getServiceTopics.go @@ -92,21 +92,11 @@ type GetServiceTopicsResult struct { } func GetServiceTopicsOutput(ctx *pulumi.Context, args GetServiceTopicsOutputArgs, opts ...pulumi.InvokeOption) GetServiceTopicsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceTopicsResultOutput, error) { args := v.(GetServiceTopicsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceTopicsResult - secret, err := ctx.InvokePackageRaw("alicloud:message/getServiceTopics:getServiceTopics", args, &rv, "", opts...) - if err != nil { - return GetServiceTopicsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceTopicsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceTopicsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:message/getServiceTopics:getServiceTopics", args, GetServiceTopicsResultOutput{}, options).(GetServiceTopicsResultOutput), nil }).(GetServiceTopicsResultOutput) } diff --git a/sdk/go/alicloud/mhub/getApps.go b/sdk/go/alicloud/mhub/getApps.go index fae36983f9..32bbbc20d5 100644 --- a/sdk/go/alicloud/mhub/getApps.go +++ b/sdk/go/alicloud/mhub/getApps.go @@ -104,21 +104,11 @@ type GetAppsResult struct { } func GetAppsOutput(ctx *pulumi.Context, args GetAppsOutputArgs, opts ...pulumi.InvokeOption) GetAppsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAppsResultOutput, error) { args := v.(GetAppsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAppsResult - secret, err := ctx.InvokePackageRaw("alicloud:mhub/getApps:getApps", args, &rv, "", opts...) - if err != nil { - return GetAppsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAppsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAppsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:mhub/getApps:getApps", args, GetAppsResultOutput{}, options).(GetAppsResultOutput), nil }).(GetAppsResultOutput) } diff --git a/sdk/go/alicloud/mhub/getProducts.go b/sdk/go/alicloud/mhub/getProducts.go index 18525ba6d5..88fc68fe4d 100644 --- a/sdk/go/alicloud/mhub/getProducts.go +++ b/sdk/go/alicloud/mhub/getProducts.go @@ -92,21 +92,11 @@ type GetProductsResult struct { } func GetProductsOutput(ctx *pulumi.Context, args GetProductsOutputArgs, opts ...pulumi.InvokeOption) GetProductsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProductsResultOutput, error) { args := v.(GetProductsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProductsResult - secret, err := ctx.InvokePackageRaw("alicloud:mhub/getProducts:getProducts", args, &rv, "", opts...) - if err != nil { - return GetProductsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProductsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProductsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:mhub/getProducts:getProducts", args, GetProductsResultOutput{}, options).(GetProductsResultOutput), nil }).(GetProductsResultOutput) } diff --git a/sdk/go/alicloud/mns/getQueues.go b/sdk/go/alicloud/mns/getQueues.go index f8f3ad1278..996882fe95 100644 --- a/sdk/go/alicloud/mns/getQueues.go +++ b/sdk/go/alicloud/mns/getQueues.go @@ -72,21 +72,11 @@ type GetQueuesResult struct { } func GetQueuesOutput(ctx *pulumi.Context, args GetQueuesOutputArgs, opts ...pulumi.InvokeOption) GetQueuesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetQueuesResultOutput, error) { args := v.(GetQueuesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetQueuesResult - secret, err := ctx.InvokePackageRaw("alicloud:mns/getQueues:getQueues", args, &rv, "", opts...) - if err != nil { - return GetQueuesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetQueuesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetQueuesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:mns/getQueues:getQueues", args, GetQueuesResultOutput{}, options).(GetQueuesResultOutput), nil }).(GetQueuesResultOutput) } diff --git a/sdk/go/alicloud/mns/getService.go b/sdk/go/alicloud/mns/getService.go index 21c65ed9dc..4dba01a55f 100644 --- a/sdk/go/alicloud/mns/getService.go +++ b/sdk/go/alicloud/mns/getService.go @@ -72,21 +72,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:mns/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:mns/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/mns/getTopicSubscriptions.go b/sdk/go/alicloud/mns/getTopicSubscriptions.go index ab4d308421..d9b14c234c 100644 --- a/sdk/go/alicloud/mns/getTopicSubscriptions.go +++ b/sdk/go/alicloud/mns/getTopicSubscriptions.go @@ -77,21 +77,11 @@ type GetTopicSubscriptionsResult struct { } func GetTopicSubscriptionsOutput(ctx *pulumi.Context, args GetTopicSubscriptionsOutputArgs, opts ...pulumi.InvokeOption) GetTopicSubscriptionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTopicSubscriptionsResultOutput, error) { args := v.(GetTopicSubscriptionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTopicSubscriptionsResult - secret, err := ctx.InvokePackageRaw("alicloud:mns/getTopicSubscriptions:getTopicSubscriptions", args, &rv, "", opts...) - if err != nil { - return GetTopicSubscriptionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTopicSubscriptionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTopicSubscriptionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:mns/getTopicSubscriptions:getTopicSubscriptions", args, GetTopicSubscriptionsResultOutput{}, options).(GetTopicSubscriptionsResultOutput), nil }).(GetTopicSubscriptionsResultOutput) } diff --git a/sdk/go/alicloud/mns/getTopics.go b/sdk/go/alicloud/mns/getTopics.go index 790ecf7f9c..983064ae12 100644 --- a/sdk/go/alicloud/mns/getTopics.go +++ b/sdk/go/alicloud/mns/getTopics.go @@ -72,21 +72,11 @@ type GetTopicsResult struct { } func GetTopicsOutput(ctx *pulumi.Context, args GetTopicsOutputArgs, opts ...pulumi.InvokeOption) GetTopicsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTopicsResultOutput, error) { args := v.(GetTopicsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTopicsResult - secret, err := ctx.InvokePackageRaw("alicloud:mns/getTopics:getTopics", args, &rv, "", opts...) - if err != nil { - return GetTopicsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTopicsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTopicsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:mns/getTopics:getTopics", args, GetTopicsResultOutput{}, options).(GetTopicsResultOutput), nil }).(GetTopicsResultOutput) } diff --git a/sdk/go/alicloud/mongodb/getAccounts.go b/sdk/go/alicloud/mongodb/getAccounts.go index 01d3941569..63fb81fec4 100644 --- a/sdk/go/alicloud/mongodb/getAccounts.go +++ b/sdk/go/alicloud/mongodb/getAccounts.go @@ -75,21 +75,11 @@ type GetAccountsResult struct { } func GetAccountsOutput(ctx *pulumi.Context, args GetAccountsOutputArgs, opts ...pulumi.InvokeOption) GetAccountsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccountsResultOutput, error) { args := v.(GetAccountsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccountsResult - secret, err := ctx.InvokePackageRaw("alicloud:mongodb/getAccounts:getAccounts", args, &rv, "", opts...) - if err != nil { - return GetAccountsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccountsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccountsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:mongodb/getAccounts:getAccounts", args, GetAccountsResultOutput{}, options).(GetAccountsResultOutput), nil }).(GetAccountsResultOutput) } diff --git a/sdk/go/alicloud/mongodb/getAuditPolicies.go b/sdk/go/alicloud/mongodb/getAuditPolicies.go index 881ed2d9b4..3d25cc5590 100644 --- a/sdk/go/alicloud/mongodb/getAuditPolicies.go +++ b/sdk/go/alicloud/mongodb/getAuditPolicies.go @@ -71,21 +71,11 @@ type GetAuditPoliciesResult struct { } func GetAuditPoliciesOutput(ctx *pulumi.Context, args GetAuditPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetAuditPoliciesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAuditPoliciesResultOutput, error) { args := v.(GetAuditPoliciesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAuditPoliciesResult - secret, err := ctx.InvokePackageRaw("alicloud:mongodb/getAuditPolicies:getAuditPolicies", args, &rv, "", opts...) - if err != nil { - return GetAuditPoliciesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAuditPoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAuditPoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:mongodb/getAuditPolicies:getAuditPolicies", args, GetAuditPoliciesResultOutput{}, options).(GetAuditPoliciesResultOutput), nil }).(GetAuditPoliciesResultOutput) } diff --git a/sdk/go/alicloud/mongodb/getInstances.go b/sdk/go/alicloud/mongodb/getInstances.go index 98bfb1fd38..d024f1ccdf 100644 --- a/sdk/go/alicloud/mongodb/getInstances.go +++ b/sdk/go/alicloud/mongodb/getInstances.go @@ -92,21 +92,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:mongodb/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:mongodb/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/mongodb/getServerlessInstances.go b/sdk/go/alicloud/mongodb/getServerlessInstances.go index cddbf0c906..a1eb1b2129 100644 --- a/sdk/go/alicloud/mongodb/getServerlessInstances.go +++ b/sdk/go/alicloud/mongodb/getServerlessInstances.go @@ -115,21 +115,11 @@ type GetServerlessInstancesResult struct { } func GetServerlessInstancesOutput(ctx *pulumi.Context, args GetServerlessInstancesOutputArgs, opts ...pulumi.InvokeOption) GetServerlessInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServerlessInstancesResultOutput, error) { args := v.(GetServerlessInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServerlessInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:mongodb/getServerlessInstances:getServerlessInstances", args, &rv, "", opts...) - if err != nil { - return GetServerlessInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServerlessInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServerlessInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:mongodb/getServerlessInstances:getServerlessInstances", args, GetServerlessInstancesResultOutput{}, options).(GetServerlessInstancesResultOutput), nil }).(GetServerlessInstancesResultOutput) } diff --git a/sdk/go/alicloud/mongodb/getShardingNetworkPrivateAddresses.go b/sdk/go/alicloud/mongodb/getShardingNetworkPrivateAddresses.go index 4758504eb2..f0f4eb966c 100644 --- a/sdk/go/alicloud/mongodb/getShardingNetworkPrivateAddresses.go +++ b/sdk/go/alicloud/mongodb/getShardingNetworkPrivateAddresses.go @@ -48,21 +48,11 @@ type GetShardingNetworkPrivateAddressesResult struct { } func GetShardingNetworkPrivateAddressesOutput(ctx *pulumi.Context, args GetShardingNetworkPrivateAddressesOutputArgs, opts ...pulumi.InvokeOption) GetShardingNetworkPrivateAddressesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetShardingNetworkPrivateAddressesResultOutput, error) { args := v.(GetShardingNetworkPrivateAddressesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetShardingNetworkPrivateAddressesResult - secret, err := ctx.InvokePackageRaw("alicloud:mongodb/getShardingNetworkPrivateAddresses:getShardingNetworkPrivateAddresses", args, &rv, "", opts...) - if err != nil { - return GetShardingNetworkPrivateAddressesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetShardingNetworkPrivateAddressesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetShardingNetworkPrivateAddressesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:mongodb/getShardingNetworkPrivateAddresses:getShardingNetworkPrivateAddresses", args, GetShardingNetworkPrivateAddressesResultOutput{}, options).(GetShardingNetworkPrivateAddressesResultOutput), nil }).(GetShardingNetworkPrivateAddressesResultOutput) } diff --git a/sdk/go/alicloud/mongodb/getShardingNetworkPublicAddresses.go b/sdk/go/alicloud/mongodb/getShardingNetworkPublicAddresses.go index 431f3f9155..291801c142 100644 --- a/sdk/go/alicloud/mongodb/getShardingNetworkPublicAddresses.go +++ b/sdk/go/alicloud/mongodb/getShardingNetworkPublicAddresses.go @@ -79,21 +79,11 @@ type GetShardingNetworkPublicAddressesResult struct { } func GetShardingNetworkPublicAddressesOutput(ctx *pulumi.Context, args GetShardingNetworkPublicAddressesOutputArgs, opts ...pulumi.InvokeOption) GetShardingNetworkPublicAddressesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetShardingNetworkPublicAddressesResultOutput, error) { args := v.(GetShardingNetworkPublicAddressesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetShardingNetworkPublicAddressesResult - secret, err := ctx.InvokePackageRaw("alicloud:mongodb/getShardingNetworkPublicAddresses:getShardingNetworkPublicAddresses", args, &rv, "", opts...) - if err != nil { - return GetShardingNetworkPublicAddressesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetShardingNetworkPublicAddressesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetShardingNetworkPublicAddressesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:mongodb/getShardingNetworkPublicAddresses:getShardingNetworkPublicAddresses", args, GetShardingNetworkPublicAddressesResultOutput{}, options).(GetShardingNetworkPublicAddressesResultOutput), nil }).(GetShardingNetworkPublicAddressesResultOutput) } diff --git a/sdk/go/alicloud/mongodb/getZones.go b/sdk/go/alicloud/mongodb/getZones.go index e83e995750..ebd708add6 100644 --- a/sdk/go/alicloud/mongodb/getZones.go +++ b/sdk/go/alicloud/mongodb/getZones.go @@ -77,21 +77,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:mongodb/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:mongodb/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/mse/getClusters.go b/sdk/go/alicloud/mse/getClusters.go index 185d005e10..455af51939 100644 --- a/sdk/go/alicloud/mse/getClusters.go +++ b/sdk/go/alicloud/mse/getClusters.go @@ -139,21 +139,11 @@ type GetClustersResult struct { } func GetClustersOutput(ctx *pulumi.Context, args GetClustersOutputArgs, opts ...pulumi.InvokeOption) GetClustersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetClustersResultOutput, error) { args := v.(GetClustersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetClustersResult - secret, err := ctx.InvokePackageRaw("alicloud:mse/getClusters:getClusters", args, &rv, "", opts...) - if err != nil { - return GetClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:mse/getClusters:getClusters", args, GetClustersResultOutput{}, options).(GetClustersResultOutput), nil }).(GetClustersResultOutput) } diff --git a/sdk/go/alicloud/mse/getEngineNamespaces.go b/sdk/go/alicloud/mse/getEngineNamespaces.go index a8b81d2284..b491e81089 100644 --- a/sdk/go/alicloud/mse/getEngineNamespaces.go +++ b/sdk/go/alicloud/mse/getEngineNamespaces.go @@ -135,21 +135,11 @@ type GetEngineNamespacesResult struct { } func GetEngineNamespacesOutput(ctx *pulumi.Context, args GetEngineNamespacesOutputArgs, opts ...pulumi.InvokeOption) GetEngineNamespacesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEngineNamespacesResultOutput, error) { args := v.(GetEngineNamespacesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEngineNamespacesResult - secret, err := ctx.InvokePackageRaw("alicloud:mse/getEngineNamespaces:getEngineNamespaces", args, &rv, "", opts...) - if err != nil { - return GetEngineNamespacesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEngineNamespacesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEngineNamespacesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:mse/getEngineNamespaces:getEngineNamespaces", args, GetEngineNamespacesResultOutput{}, options).(GetEngineNamespacesResultOutput), nil }).(GetEngineNamespacesResultOutput) } diff --git a/sdk/go/alicloud/mse/getGateways.go b/sdk/go/alicloud/mse/getGateways.go index 144003ec16..d079c7651a 100644 --- a/sdk/go/alicloud/mse/getGateways.go +++ b/sdk/go/alicloud/mse/getGateways.go @@ -103,21 +103,11 @@ type GetGatewaysResult struct { } func GetGatewaysOutput(ctx *pulumi.Context, args GetGatewaysOutputArgs, opts ...pulumi.InvokeOption) GetGatewaysResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGatewaysResultOutput, error) { args := v.(GetGatewaysArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGatewaysResult - secret, err := ctx.InvokePackageRaw("alicloud:mse/getGateways:getGateways", args, &rv, "", opts...) - if err != nil { - return GetGatewaysResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGatewaysResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGatewaysResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:mse/getGateways:getGateways", args, GetGatewaysResultOutput{}, options).(GetGatewaysResultOutput), nil }).(GetGatewaysResultOutput) } diff --git a/sdk/go/alicloud/mse/getNacosConfigs.go b/sdk/go/alicloud/mse/getNacosConfigs.go index 23719d0bef..eae0613ca6 100644 --- a/sdk/go/alicloud/mse/getNacosConfigs.go +++ b/sdk/go/alicloud/mse/getNacosConfigs.go @@ -167,21 +167,11 @@ type GetNacosConfigsResult struct { } func GetNacosConfigsOutput(ctx *pulumi.Context, args GetNacosConfigsOutputArgs, opts ...pulumi.InvokeOption) GetNacosConfigsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNacosConfigsResultOutput, error) { args := v.(GetNacosConfigsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNacosConfigsResult - secret, err := ctx.InvokePackageRaw("alicloud:mse/getNacosConfigs:getNacosConfigs", args, &rv, "", opts...) - if err != nil { - return GetNacosConfigsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNacosConfigsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNacosConfigsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:mse/getNacosConfigs:getNacosConfigs", args, GetNacosConfigsResultOutput{}, options).(GetNacosConfigsResultOutput), nil }).(GetNacosConfigsResultOutput) } diff --git a/sdk/go/alicloud/mse/getZnodes.go b/sdk/go/alicloud/mse/getZnodes.go index 0916612ea0..8823c5a74d 100644 --- a/sdk/go/alicloud/mse/getZnodes.go +++ b/sdk/go/alicloud/mse/getZnodes.go @@ -98,21 +98,11 @@ type GetZnodesResult struct { } func GetZnodesOutput(ctx *pulumi.Context, args GetZnodesOutputArgs, opts ...pulumi.InvokeOption) GetZnodesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZnodesResultOutput, error) { args := v.(GetZnodesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZnodesResult - secret, err := ctx.InvokePackageRaw("alicloud:mse/getZnodes:getZnodes", args, &rv, "", opts...) - if err != nil { - return GetZnodesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZnodesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZnodesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:mse/getZnodes:getZnodes", args, GetZnodesResultOutput{}, options).(GetZnodesResultOutput), nil }).(GetZnodesResultOutput) } diff --git a/sdk/go/alicloud/nas/getAccessGroups.go b/sdk/go/alicloud/nas/getAccessGroups.go index e9bfdb1c49..0d3bae253a 100644 --- a/sdk/go/alicloud/nas/getAccessGroups.go +++ b/sdk/go/alicloud/nas/getAccessGroups.go @@ -102,21 +102,11 @@ type GetAccessGroupsResult struct { } func GetAccessGroupsOutput(ctx *pulumi.Context, args GetAccessGroupsOutputArgs, opts ...pulumi.InvokeOption) GetAccessGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccessGroupsResultOutput, error) { args := v.(GetAccessGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccessGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:nas/getAccessGroups:getAccessGroups", args, &rv, "", opts...) - if err != nil { - return GetAccessGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccessGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccessGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:nas/getAccessGroups:getAccessGroups", args, GetAccessGroupsResultOutput{}, options).(GetAccessGroupsResultOutput), nil }).(GetAccessGroupsResultOutput) } diff --git a/sdk/go/alicloud/nas/getAccessRules.go b/sdk/go/alicloud/nas/getAccessRules.go index c7f93296b4..fbeddbe073 100644 --- a/sdk/go/alicloud/nas/getAccessRules.go +++ b/sdk/go/alicloud/nas/getAccessRules.go @@ -59,21 +59,11 @@ type GetAccessRulesResult struct { } func GetAccessRulesOutput(ctx *pulumi.Context, args GetAccessRulesOutputArgs, opts ...pulumi.InvokeOption) GetAccessRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccessRulesResultOutput, error) { args := v.(GetAccessRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccessRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:nas/getAccessRules:getAccessRules", args, &rv, "", opts...) - if err != nil { - return GetAccessRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccessRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccessRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:nas/getAccessRules:getAccessRules", args, GetAccessRulesResultOutput{}, options).(GetAccessRulesResultOutput), nil }).(GetAccessRulesResultOutput) } diff --git a/sdk/go/alicloud/nas/getAutoSnapshotPolicies.go b/sdk/go/alicloud/nas/getAutoSnapshotPolicies.go index c57de9adbf..b358a3e8cf 100644 --- a/sdk/go/alicloud/nas/getAutoSnapshotPolicies.go +++ b/sdk/go/alicloud/nas/getAutoSnapshotPolicies.go @@ -81,21 +81,11 @@ type GetAutoSnapshotPoliciesResult struct { } func GetAutoSnapshotPoliciesOutput(ctx *pulumi.Context, args GetAutoSnapshotPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetAutoSnapshotPoliciesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAutoSnapshotPoliciesResultOutput, error) { args := v.(GetAutoSnapshotPoliciesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAutoSnapshotPoliciesResult - secret, err := ctx.InvokePackageRaw("alicloud:nas/getAutoSnapshotPolicies:getAutoSnapshotPolicies", args, &rv, "", opts...) - if err != nil { - return GetAutoSnapshotPoliciesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAutoSnapshotPoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAutoSnapshotPoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:nas/getAutoSnapshotPolicies:getAutoSnapshotPolicies", args, GetAutoSnapshotPoliciesResultOutput{}, options).(GetAutoSnapshotPoliciesResultOutput), nil }).(GetAutoSnapshotPoliciesResultOutput) } diff --git a/sdk/go/alicloud/nas/getDataFlows.go b/sdk/go/alicloud/nas/getDataFlows.go index 1343c466d8..8009ea3458 100644 --- a/sdk/go/alicloud/nas/getDataFlows.go +++ b/sdk/go/alicloud/nas/getDataFlows.go @@ -89,21 +89,11 @@ type GetDataFlowsResult struct { } func GetDataFlowsOutput(ctx *pulumi.Context, args GetDataFlowsOutputArgs, opts ...pulumi.InvokeOption) GetDataFlowsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDataFlowsResultOutput, error) { args := v.(GetDataFlowsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDataFlowsResult - secret, err := ctx.InvokePackageRaw("alicloud:nas/getDataFlows:getDataFlows", args, &rv, "", opts...) - if err != nil { - return GetDataFlowsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDataFlowsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDataFlowsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:nas/getDataFlows:getDataFlows", args, GetDataFlowsResultOutput{}, options).(GetDataFlowsResultOutput), nil }).(GetDataFlowsResultOutput) } diff --git a/sdk/go/alicloud/nas/getFileSystems.go b/sdk/go/alicloud/nas/getFileSystems.go index e76b8297dd..9f93ab83c5 100644 --- a/sdk/go/alicloud/nas/getFileSystems.go +++ b/sdk/go/alicloud/nas/getFileSystems.go @@ -91,21 +91,11 @@ type GetFileSystemsResult struct { } func GetFileSystemsOutput(ctx *pulumi.Context, args GetFileSystemsOutputArgs, opts ...pulumi.InvokeOption) GetFileSystemsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFileSystemsResultOutput, error) { args := v.(GetFileSystemsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFileSystemsResult - secret, err := ctx.InvokePackageRaw("alicloud:nas/getFileSystems:getFileSystems", args, &rv, "", opts...) - if err != nil { - return GetFileSystemsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFileSystemsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFileSystemsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:nas/getFileSystems:getFileSystems", args, GetFileSystemsResultOutput{}, options).(GetFileSystemsResultOutput), nil }).(GetFileSystemsResultOutput) } diff --git a/sdk/go/alicloud/nas/getFilesets.go b/sdk/go/alicloud/nas/getFilesets.go index 3cf28bde6a..d2973825c4 100644 --- a/sdk/go/alicloud/nas/getFilesets.go +++ b/sdk/go/alicloud/nas/getFilesets.go @@ -81,21 +81,11 @@ type GetFilesetsResult struct { } func GetFilesetsOutput(ctx *pulumi.Context, args GetFilesetsOutputArgs, opts ...pulumi.InvokeOption) GetFilesetsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFilesetsResultOutput, error) { args := v.(GetFilesetsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFilesetsResult - secret, err := ctx.InvokePackageRaw("alicloud:nas/getFilesets:getFilesets", args, &rv, "", opts...) - if err != nil { - return GetFilesetsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFilesetsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFilesetsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:nas/getFilesets:getFilesets", args, GetFilesetsResultOutput{}, options).(GetFilesetsResultOutput), nil }).(GetFilesetsResultOutput) } diff --git a/sdk/go/alicloud/nas/getLifecyclePolicies.go b/sdk/go/alicloud/nas/getLifecyclePolicies.go index 9e66d60029..6a1ffa953c 100644 --- a/sdk/go/alicloud/nas/getLifecyclePolicies.go +++ b/sdk/go/alicloud/nas/getLifecyclePolicies.go @@ -90,21 +90,11 @@ type GetLifecyclePoliciesResult struct { } func GetLifecyclePoliciesOutput(ctx *pulumi.Context, args GetLifecyclePoliciesOutputArgs, opts ...pulumi.InvokeOption) GetLifecyclePoliciesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetLifecyclePoliciesResultOutput, error) { args := v.(GetLifecyclePoliciesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetLifecyclePoliciesResult - secret, err := ctx.InvokePackageRaw("alicloud:nas/getLifecyclePolicies:getLifecyclePolicies", args, &rv, "", opts...) - if err != nil { - return GetLifecyclePoliciesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetLifecyclePoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetLifecyclePoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:nas/getLifecyclePolicies:getLifecyclePolicies", args, GetLifecyclePoliciesResultOutput{}, options).(GetLifecyclePoliciesResultOutput), nil }).(GetLifecyclePoliciesResultOutput) } diff --git a/sdk/go/alicloud/nas/getMountTargets.go b/sdk/go/alicloud/nas/getMountTargets.go index 733368bf7d..791741cdaf 100644 --- a/sdk/go/alicloud/nas/getMountTargets.go +++ b/sdk/go/alicloud/nas/getMountTargets.go @@ -111,21 +111,11 @@ type GetMountTargetsResult struct { } func GetMountTargetsOutput(ctx *pulumi.Context, args GetMountTargetsOutputArgs, opts ...pulumi.InvokeOption) GetMountTargetsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetMountTargetsResultOutput, error) { args := v.(GetMountTargetsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetMountTargetsResult - secret, err := ctx.InvokePackageRaw("alicloud:nas/getMountTargets:getMountTargets", args, &rv, "", opts...) - if err != nil { - return GetMountTargetsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetMountTargetsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetMountTargetsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:nas/getMountTargets:getMountTargets", args, GetMountTargetsResultOutput{}, options).(GetMountTargetsResultOutput), nil }).(GetMountTargetsResultOutput) } diff --git a/sdk/go/alicloud/nas/getProtocols.go b/sdk/go/alicloud/nas/getProtocols.go index ed69a4f93e..2875bb7e65 100644 --- a/sdk/go/alicloud/nas/getProtocols.go +++ b/sdk/go/alicloud/nas/getProtocols.go @@ -75,21 +75,11 @@ type GetProtocolsResult struct { } func GetProtocolsOutput(ctx *pulumi.Context, args GetProtocolsOutputArgs, opts ...pulumi.InvokeOption) GetProtocolsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProtocolsResultOutput, error) { args := v.(GetProtocolsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProtocolsResult - secret, err := ctx.InvokePackageRaw("alicloud:nas/getProtocols:getProtocols", args, &rv, "", opts...) - if err != nil { - return GetProtocolsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProtocolsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProtocolsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:nas/getProtocols:getProtocols", args, GetProtocolsResultOutput{}, options).(GetProtocolsResultOutput), nil }).(GetProtocolsResultOutput) } diff --git a/sdk/go/alicloud/nas/getService.go b/sdk/go/alicloud/nas/getService.go index 757505bf7b..a51b88ef41 100644 --- a/sdk/go/alicloud/nas/getService.go +++ b/sdk/go/alicloud/nas/getService.go @@ -70,21 +70,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:nas/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:nas/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/nas/getSnapshots.go b/sdk/go/alicloud/nas/getSnapshots.go index aab48afd84..c7f1a34f85 100644 --- a/sdk/go/alicloud/nas/getSnapshots.go +++ b/sdk/go/alicloud/nas/getSnapshots.go @@ -89,21 +89,11 @@ type GetSnapshotsResult struct { } func GetSnapshotsOutput(ctx *pulumi.Context, args GetSnapshotsOutputArgs, opts ...pulumi.InvokeOption) GetSnapshotsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSnapshotsResultOutput, error) { args := v.(GetSnapshotsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSnapshotsResult - secret, err := ctx.InvokePackageRaw("alicloud:nas/getSnapshots:getSnapshots", args, &rv, "", opts...) - if err != nil { - return GetSnapshotsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSnapshotsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSnapshotsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:nas/getSnapshots:getSnapshots", args, GetSnapshotsResultOutput{}, options).(GetSnapshotsResultOutput), nil }).(GetSnapshotsResultOutput) } diff --git a/sdk/go/alicloud/nas/getZones.go b/sdk/go/alicloud/nas/getZones.go index 63b51d1e17..c85719fc3d 100644 --- a/sdk/go/alicloud/nas/getZones.go +++ b/sdk/go/alicloud/nas/getZones.go @@ -68,21 +68,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:nas/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:nas/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/nlb/getListeners.go b/sdk/go/alicloud/nlb/getListeners.go index b223fada21..fe53f05ad2 100644 --- a/sdk/go/alicloud/nlb/getListeners.go +++ b/sdk/go/alicloud/nlb/getListeners.go @@ -81,21 +81,11 @@ type GetListenersResult struct { } func GetListenersOutput(ctx *pulumi.Context, args GetListenersOutputArgs, opts ...pulumi.InvokeOption) GetListenersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetListenersResultOutput, error) { args := v.(GetListenersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetListenersResult - secret, err := ctx.InvokePackageRaw("alicloud:nlb/getListeners:getListeners", args, &rv, "", opts...) - if err != nil { - return GetListenersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetListenersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetListenersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:nlb/getListeners:getListeners", args, GetListenersResultOutput{}, options).(GetListenersResultOutput), nil }).(GetListenersResultOutput) } diff --git a/sdk/go/alicloud/nlb/getLoadBalancers.go b/sdk/go/alicloud/nlb/getLoadBalancers.go index 7fd570733a..f50bda7302 100644 --- a/sdk/go/alicloud/nlb/getLoadBalancers.go +++ b/sdk/go/alicloud/nlb/getLoadBalancers.go @@ -116,21 +116,11 @@ type GetLoadBalancersResult struct { } func GetLoadBalancersOutput(ctx *pulumi.Context, args GetLoadBalancersOutputArgs, opts ...pulumi.InvokeOption) GetLoadBalancersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetLoadBalancersResultOutput, error) { args := v.(GetLoadBalancersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetLoadBalancersResult - secret, err := ctx.InvokePackageRaw("alicloud:nlb/getLoadBalancers:getLoadBalancers", args, &rv, "", opts...) - if err != nil { - return GetLoadBalancersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetLoadBalancersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetLoadBalancersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:nlb/getLoadBalancers:getLoadBalancers", args, GetLoadBalancersResultOutput{}, options).(GetLoadBalancersResultOutput), nil }).(GetLoadBalancersResultOutput) } diff --git a/sdk/go/alicloud/nlb/getSecurityPolicies.go b/sdk/go/alicloud/nlb/getSecurityPolicies.go index c3c1a3a953..073f4be8c5 100644 --- a/sdk/go/alicloud/nlb/getSecurityPolicies.go +++ b/sdk/go/alicloud/nlb/getSecurityPolicies.go @@ -91,21 +91,11 @@ type GetSecurityPoliciesResult struct { } func GetSecurityPoliciesOutput(ctx *pulumi.Context, args GetSecurityPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetSecurityPoliciesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSecurityPoliciesResultOutput, error) { args := v.(GetSecurityPoliciesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSecurityPoliciesResult - secret, err := ctx.InvokePackageRaw("alicloud:nlb/getSecurityPolicies:getSecurityPolicies", args, &rv, "", opts...) - if err != nil { - return GetSecurityPoliciesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSecurityPoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSecurityPoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:nlb/getSecurityPolicies:getSecurityPolicies", args, GetSecurityPoliciesResultOutput{}, options).(GetSecurityPoliciesResultOutput), nil }).(GetSecurityPoliciesResultOutput) } diff --git a/sdk/go/alicloud/nlb/getServerGroupServerAttachments.go b/sdk/go/alicloud/nlb/getServerGroupServerAttachments.go index 9162520afc..1fe2804b8f 100644 --- a/sdk/go/alicloud/nlb/getServerGroupServerAttachments.go +++ b/sdk/go/alicloud/nlb/getServerGroupServerAttachments.go @@ -84,21 +84,11 @@ type GetServerGroupServerAttachmentsResult struct { } func GetServerGroupServerAttachmentsOutput(ctx *pulumi.Context, args GetServerGroupServerAttachmentsOutputArgs, opts ...pulumi.InvokeOption) GetServerGroupServerAttachmentsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServerGroupServerAttachmentsResultOutput, error) { args := v.(GetServerGroupServerAttachmentsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServerGroupServerAttachmentsResult - secret, err := ctx.InvokePackageRaw("alicloud:nlb/getServerGroupServerAttachments:getServerGroupServerAttachments", args, &rv, "", opts...) - if err != nil { - return GetServerGroupServerAttachmentsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServerGroupServerAttachmentsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServerGroupServerAttachmentsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:nlb/getServerGroupServerAttachments:getServerGroupServerAttachments", args, GetServerGroupServerAttachmentsResultOutput{}, options).(GetServerGroupServerAttachmentsResultOutput), nil }).(GetServerGroupServerAttachmentsResultOutput) } diff --git a/sdk/go/alicloud/nlb/getServerGroups.go b/sdk/go/alicloud/nlb/getServerGroups.go index 09fedb1f90..926a4b043f 100644 --- a/sdk/go/alicloud/nlb/getServerGroups.go +++ b/sdk/go/alicloud/nlb/getServerGroups.go @@ -94,21 +94,11 @@ type GetServerGroupsResult struct { } func GetServerGroupsOutput(ctx *pulumi.Context, args GetServerGroupsOutputArgs, opts ...pulumi.InvokeOption) GetServerGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServerGroupsResultOutput, error) { args := v.(GetServerGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServerGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:nlb/getServerGroups:getServerGroups", args, &rv, "", opts...) - if err != nil { - return GetServerGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServerGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServerGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:nlb/getServerGroups:getServerGroups", args, GetServerGroupsResultOutput{}, options).(GetServerGroupsResultOutput), nil }).(GetServerGroupsResultOutput) } diff --git a/sdk/go/alicloud/nlb/getZones.go b/sdk/go/alicloud/nlb/getZones.go index 50549a6cab..6e101dc084 100644 --- a/sdk/go/alicloud/nlb/getZones.go +++ b/sdk/go/alicloud/nlb/getZones.go @@ -67,21 +67,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:nlb/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:nlb/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/ocean/getBaseInstances.go b/sdk/go/alicloud/ocean/getBaseInstances.go index 920b441d3e..0740aca233 100644 --- a/sdk/go/alicloud/ocean/getBaseInstances.go +++ b/sdk/go/alicloud/ocean/getBaseInstances.go @@ -101,21 +101,11 @@ type GetBaseInstancesResult struct { } func GetBaseInstancesOutput(ctx *pulumi.Context, args GetBaseInstancesOutputArgs, opts ...pulumi.InvokeOption) GetBaseInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBaseInstancesResultOutput, error) { args := v.(GetBaseInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBaseInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:ocean/getBaseInstances:getBaseInstances", args, &rv, "", opts...) - if err != nil { - return GetBaseInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBaseInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBaseInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ocean/getBaseInstances:getBaseInstances", args, GetBaseInstancesResultOutput{}, options).(GetBaseInstancesResultOutput), nil }).(GetBaseInstancesResultOutput) } diff --git a/sdk/go/alicloud/oos/getApplicationGroups.go b/sdk/go/alicloud/oos/getApplicationGroups.go index 287b0d1160..fe4e538c99 100644 --- a/sdk/go/alicloud/oos/getApplicationGroups.go +++ b/sdk/go/alicloud/oos/getApplicationGroups.go @@ -93,21 +93,11 @@ type GetApplicationGroupsResult struct { } func GetApplicationGroupsOutput(ctx *pulumi.Context, args GetApplicationGroupsOutputArgs, opts ...pulumi.InvokeOption) GetApplicationGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetApplicationGroupsResultOutput, error) { args := v.(GetApplicationGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetApplicationGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:oos/getApplicationGroups:getApplicationGroups", args, &rv, "", opts...) - if err != nil { - return GetApplicationGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetApplicationGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetApplicationGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:oos/getApplicationGroups:getApplicationGroups", args, GetApplicationGroupsResultOutput{}, options).(GetApplicationGroupsResultOutput), nil }).(GetApplicationGroupsResultOutput) } diff --git a/sdk/go/alicloud/oos/getApplications.go b/sdk/go/alicloud/oos/getApplications.go index 82f8d01a9c..79d34753e4 100644 --- a/sdk/go/alicloud/oos/getApplications.go +++ b/sdk/go/alicloud/oos/getApplications.go @@ -83,21 +83,11 @@ type GetApplicationsResult struct { } func GetApplicationsOutput(ctx *pulumi.Context, args GetApplicationsOutputArgs, opts ...pulumi.InvokeOption) GetApplicationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetApplicationsResultOutput, error) { args := v.(GetApplicationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetApplicationsResult - secret, err := ctx.InvokePackageRaw("alicloud:oos/getApplications:getApplications", args, &rv, "", opts...) - if err != nil { - return GetApplicationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetApplicationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetApplicationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:oos/getApplications:getApplications", args, GetApplicationsResultOutput{}, options).(GetApplicationsResultOutput), nil }).(GetApplicationsResultOutput) } diff --git a/sdk/go/alicloud/oos/getExecutions.go b/sdk/go/alicloud/oos/getExecutions.go index fbd0f77d05..3d499fe902 100644 --- a/sdk/go/alicloud/oos/getExecutions.go +++ b/sdk/go/alicloud/oos/getExecutions.go @@ -121,21 +121,11 @@ type GetExecutionsResult struct { } func GetExecutionsOutput(ctx *pulumi.Context, args GetExecutionsOutputArgs, opts ...pulumi.InvokeOption) GetExecutionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetExecutionsResultOutput, error) { args := v.(GetExecutionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetExecutionsResult - secret, err := ctx.InvokePackageRaw("alicloud:oos/getExecutions:getExecutions", args, &rv, "", opts...) - if err != nil { - return GetExecutionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetExecutionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetExecutionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:oos/getExecutions:getExecutions", args, GetExecutionsResultOutput{}, options).(GetExecutionsResultOutput), nil }).(GetExecutionsResultOutput) } diff --git a/sdk/go/alicloud/oos/getParameters.go b/sdk/go/alicloud/oos/getParameters.go index 73a51dcede..5b2d1e82c9 100644 --- a/sdk/go/alicloud/oos/getParameters.go +++ b/sdk/go/alicloud/oos/getParameters.go @@ -126,21 +126,11 @@ type GetParametersResult struct { } func GetParametersOutput(ctx *pulumi.Context, args GetParametersOutputArgs, opts ...pulumi.InvokeOption) GetParametersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetParametersResultOutput, error) { args := v.(GetParametersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetParametersResult - secret, err := ctx.InvokePackageRaw("alicloud:oos/getParameters:getParameters", args, &rv, "", opts...) - if err != nil { - return GetParametersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetParametersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetParametersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:oos/getParameters:getParameters", args, GetParametersResultOutput{}, options).(GetParametersResultOutput), nil }).(GetParametersResultOutput) } diff --git a/sdk/go/alicloud/oos/getPatchBaselines.go b/sdk/go/alicloud/oos/getPatchBaselines.go index 00af81899b..4df3c6d344 100644 --- a/sdk/go/alicloud/oos/getPatchBaselines.go +++ b/sdk/go/alicloud/oos/getPatchBaselines.go @@ -55,21 +55,11 @@ type GetPatchBaselinesResult struct { } func GetPatchBaselinesOutput(ctx *pulumi.Context, args GetPatchBaselinesOutputArgs, opts ...pulumi.InvokeOption) GetPatchBaselinesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPatchBaselinesResultOutput, error) { args := v.(GetPatchBaselinesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPatchBaselinesResult - secret, err := ctx.InvokePackageRaw("alicloud:oos/getPatchBaselines:getPatchBaselines", args, &rv, "", opts...) - if err != nil { - return GetPatchBaselinesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPatchBaselinesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPatchBaselinesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:oos/getPatchBaselines:getPatchBaselines", args, GetPatchBaselinesResultOutput{}, options).(GetPatchBaselinesResultOutput), nil }).(GetPatchBaselinesResultOutput) } diff --git a/sdk/go/alicloud/oos/getSecretParameters.go b/sdk/go/alicloud/oos/getSecretParameters.go index 5416682d47..c1c6e685ba 100644 --- a/sdk/go/alicloud/oos/getSecretParameters.go +++ b/sdk/go/alicloud/oos/getSecretParameters.go @@ -132,21 +132,11 @@ type GetSecretParametersResult struct { } func GetSecretParametersOutput(ctx *pulumi.Context, args GetSecretParametersOutputArgs, opts ...pulumi.InvokeOption) GetSecretParametersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSecretParametersResultOutput, error) { args := v.(GetSecretParametersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSecretParametersResult - secret, err := ctx.InvokePackageRaw("alicloud:oos/getSecretParameters:getSecretParameters", args, &rv, "", opts...) - if err != nil { - return GetSecretParametersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSecretParametersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSecretParametersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:oos/getSecretParameters:getSecretParameters", args, GetSecretParametersResultOutput{}, options).(GetSecretParametersResultOutput), nil }).(GetSecretParametersResultOutput) } diff --git a/sdk/go/alicloud/oos/getStateConfigurations.go b/sdk/go/alicloud/oos/getStateConfigurations.go index 705f65fcd6..9d6ff36890 100644 --- a/sdk/go/alicloud/oos/getStateConfigurations.go +++ b/sdk/go/alicloud/oos/getStateConfigurations.go @@ -75,21 +75,11 @@ type GetStateConfigurationsResult struct { } func GetStateConfigurationsOutput(ctx *pulumi.Context, args GetStateConfigurationsOutputArgs, opts ...pulumi.InvokeOption) GetStateConfigurationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetStateConfigurationsResultOutput, error) { args := v.(GetStateConfigurationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetStateConfigurationsResult - secret, err := ctx.InvokePackageRaw("alicloud:oos/getStateConfigurations:getStateConfigurations", args, &rv, "", opts...) - if err != nil { - return GetStateConfigurationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetStateConfigurationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetStateConfigurationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:oos/getStateConfigurations:getStateConfigurations", args, GetStateConfigurationsResultOutput{}, options).(GetStateConfigurationsResultOutput), nil }).(GetStateConfigurationsResultOutput) } diff --git a/sdk/go/alicloud/oos/getTemplates.go b/sdk/go/alicloud/oos/getTemplates.go index 3ba39b34a8..7bbe8b7752 100644 --- a/sdk/go/alicloud/oos/getTemplates.go +++ b/sdk/go/alicloud/oos/getTemplates.go @@ -116,21 +116,11 @@ type GetTemplatesResult struct { } func GetTemplatesOutput(ctx *pulumi.Context, args GetTemplatesOutputArgs, opts ...pulumi.InvokeOption) GetTemplatesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTemplatesResultOutput, error) { args := v.(GetTemplatesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTemplatesResult - secret, err := ctx.InvokePackageRaw("alicloud:oos/getTemplates:getTemplates", args, &rv, "", opts...) - if err != nil { - return GetTemplatesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTemplatesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTemplatesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:oos/getTemplates:getTemplates", args, GetTemplatesResultOutput{}, options).(GetTemplatesResultOutput), nil }).(GetTemplatesResultOutput) } diff --git a/sdk/go/alicloud/opensearch/getAppGroups.go b/sdk/go/alicloud/opensearch/getAppGroups.go index 5302279af6..d1ea459ee0 100644 --- a/sdk/go/alicloud/opensearch/getAppGroups.go +++ b/sdk/go/alicloud/opensearch/getAppGroups.go @@ -109,21 +109,11 @@ type GetAppGroupsResult struct { } func GetAppGroupsOutput(ctx *pulumi.Context, args GetAppGroupsOutputArgs, opts ...pulumi.InvokeOption) GetAppGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAppGroupsResultOutput, error) { args := v.(GetAppGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAppGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:opensearch/getAppGroups:getAppGroups", args, &rv, "", opts...) - if err != nil { - return GetAppGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAppGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAppGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:opensearch/getAppGroups:getAppGroups", args, GetAppGroupsResultOutput{}, options).(GetAppGroupsResultOutput), nil }).(GetAppGroupsResultOutput) } diff --git a/sdk/go/alicloud/oss/getBucketObjects.go b/sdk/go/alicloud/oss/getBucketObjects.go index 286b87e54f..7714a6ddef 100644 --- a/sdk/go/alicloud/oss/getBucketObjects.go +++ b/sdk/go/alicloud/oss/getBucketObjects.go @@ -75,21 +75,11 @@ type GetBucketObjectsResult struct { } func GetBucketObjectsOutput(ctx *pulumi.Context, args GetBucketObjectsOutputArgs, opts ...pulumi.InvokeOption) GetBucketObjectsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBucketObjectsResultOutput, error) { args := v.(GetBucketObjectsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBucketObjectsResult - secret, err := ctx.InvokePackageRaw("alicloud:oss/getBucketObjects:getBucketObjects", args, &rv, "", opts...) - if err != nil { - return GetBucketObjectsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBucketObjectsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBucketObjectsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:oss/getBucketObjects:getBucketObjects", args, GetBucketObjectsResultOutput{}, options).(GetBucketObjectsResultOutput), nil }).(GetBucketObjectsResultOutput) } diff --git a/sdk/go/alicloud/oss/getBuckets.go b/sdk/go/alicloud/oss/getBuckets.go index 76c60cd60f..4a80e7b65c 100644 --- a/sdk/go/alicloud/oss/getBuckets.go +++ b/sdk/go/alicloud/oss/getBuckets.go @@ -70,21 +70,11 @@ type GetBucketsResult struct { } func GetBucketsOutput(ctx *pulumi.Context, args GetBucketsOutputArgs, opts ...pulumi.InvokeOption) GetBucketsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBucketsResultOutput, error) { args := v.(GetBucketsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBucketsResult - secret, err := ctx.InvokePackageRaw("alicloud:oss/getBuckets:getBuckets", args, &rv, "", opts...) - if err != nil { - return GetBucketsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBucketsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBucketsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:oss/getBuckets:getBuckets", args, GetBucketsResultOutput{}, options).(GetBucketsResultOutput), nil }).(GetBucketsResultOutput) } diff --git a/sdk/go/alicloud/oss/getInstanceAttachments.go b/sdk/go/alicloud/oss/getInstanceAttachments.go index 905c1a1b51..458c585c7d 100644 --- a/sdk/go/alicloud/oss/getInstanceAttachments.go +++ b/sdk/go/alicloud/oss/getInstanceAttachments.go @@ -80,21 +80,11 @@ type GetInstanceAttachmentsResult struct { } func GetInstanceAttachmentsOutput(ctx *pulumi.Context, args GetInstanceAttachmentsOutputArgs, opts ...pulumi.InvokeOption) GetInstanceAttachmentsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceAttachmentsResultOutput, error) { args := v.(GetInstanceAttachmentsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceAttachmentsResult - secret, err := ctx.InvokePackageRaw("alicloud:oss/getInstanceAttachments:getInstanceAttachments", args, &rv, "", opts...) - if err != nil { - return GetInstanceAttachmentsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceAttachmentsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceAttachmentsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:oss/getInstanceAttachments:getInstanceAttachments", args, GetInstanceAttachmentsResultOutput{}, options).(GetInstanceAttachmentsResultOutput), nil }).(GetInstanceAttachmentsResultOutput) } diff --git a/sdk/go/alicloud/oss/getInstances.go b/sdk/go/alicloud/oss/getInstances.go index 13de147e53..1f89a9c1c9 100644 --- a/sdk/go/alicloud/oss/getInstances.go +++ b/sdk/go/alicloud/oss/getInstances.go @@ -105,21 +105,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:oss/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:oss/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/oss/getService.go b/sdk/go/alicloud/oss/getService.go index f687d4ebec..d2ad4cea50 100644 --- a/sdk/go/alicloud/oss/getService.go +++ b/sdk/go/alicloud/oss/getService.go @@ -70,21 +70,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:oss/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:oss/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/oss/getTables.go b/sdk/go/alicloud/oss/getTables.go index 34785038f6..a34b5a6593 100644 --- a/sdk/go/alicloud/oss/getTables.go +++ b/sdk/go/alicloud/oss/getTables.go @@ -57,21 +57,11 @@ type GetTablesResult struct { } func GetTablesOutput(ctx *pulumi.Context, args GetTablesOutputArgs, opts ...pulumi.InvokeOption) GetTablesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTablesResultOutput, error) { args := v.(GetTablesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTablesResult - secret, err := ctx.InvokePackageRaw("alicloud:oss/getTables:getTables", args, &rv, "", opts...) - if err != nil { - return GetTablesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTablesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTablesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:oss/getTables:getTables", args, GetTablesResultOutput{}, options).(GetTablesResultOutput), nil }).(GetTablesResultOutput) } diff --git a/sdk/go/alicloud/ots/getInstanceAttachments.go b/sdk/go/alicloud/ots/getInstanceAttachments.go index 83315b8d39..e5fa2ae5d1 100644 --- a/sdk/go/alicloud/ots/getInstanceAttachments.go +++ b/sdk/go/alicloud/ots/getInstanceAttachments.go @@ -78,21 +78,11 @@ type GetInstanceAttachmentsResult struct { } func GetInstanceAttachmentsOutput(ctx *pulumi.Context, args GetInstanceAttachmentsOutputArgs, opts ...pulumi.InvokeOption) GetInstanceAttachmentsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceAttachmentsResultOutput, error) { args := v.(GetInstanceAttachmentsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceAttachmentsResult - secret, err := ctx.InvokePackageRaw("alicloud:ots/getInstanceAttachments:getInstanceAttachments", args, &rv, "", opts...) - if err != nil { - return GetInstanceAttachmentsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceAttachmentsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceAttachmentsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ots/getInstanceAttachments:getInstanceAttachments", args, GetInstanceAttachmentsResultOutput{}, options).(GetInstanceAttachmentsResultOutput), nil }).(GetInstanceAttachmentsResultOutput) } diff --git a/sdk/go/alicloud/ots/getInstances.go b/sdk/go/alicloud/ots/getInstances.go index f07de8ae3b..d734cc23cd 100644 --- a/sdk/go/alicloud/ots/getInstances.go +++ b/sdk/go/alicloud/ots/getInstances.go @@ -103,21 +103,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:ots/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ots/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/ots/getSearchIndexes.go b/sdk/go/alicloud/ots/getSearchIndexes.go index d41a554720..987265ea71 100644 --- a/sdk/go/alicloud/ots/getSearchIndexes.go +++ b/sdk/go/alicloud/ots/getSearchIndexes.go @@ -59,21 +59,11 @@ type GetSearchIndexesResult struct { } func GetSearchIndexesOutput(ctx *pulumi.Context, args GetSearchIndexesOutputArgs, opts ...pulumi.InvokeOption) GetSearchIndexesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSearchIndexesResultOutput, error) { args := v.(GetSearchIndexesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSearchIndexesResult - secret, err := ctx.InvokePackageRaw("alicloud:ots/getSearchIndexes:getSearchIndexes", args, &rv, "", opts...) - if err != nil { - return GetSearchIndexesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSearchIndexesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSearchIndexesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ots/getSearchIndexes:getSearchIndexes", args, GetSearchIndexesResultOutput{}, options).(GetSearchIndexesResultOutput), nil }).(GetSearchIndexesResultOutput) } diff --git a/sdk/go/alicloud/ots/getSecondaryIndexes.go b/sdk/go/alicloud/ots/getSecondaryIndexes.go index 26e45dd60a..44b77d842a 100644 --- a/sdk/go/alicloud/ots/getSecondaryIndexes.go +++ b/sdk/go/alicloud/ots/getSecondaryIndexes.go @@ -61,21 +61,11 @@ type GetSecondaryIndexesResult struct { } func GetSecondaryIndexesOutput(ctx *pulumi.Context, args GetSecondaryIndexesOutputArgs, opts ...pulumi.InvokeOption) GetSecondaryIndexesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSecondaryIndexesResultOutput, error) { args := v.(GetSecondaryIndexesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSecondaryIndexesResult - secret, err := ctx.InvokePackageRaw("alicloud:ots/getSecondaryIndexes:getSecondaryIndexes", args, &rv, "", opts...) - if err != nil { - return GetSecondaryIndexesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSecondaryIndexesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSecondaryIndexesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ots/getSecondaryIndexes:getSecondaryIndexes", args, GetSecondaryIndexesResultOutput{}, options).(GetSecondaryIndexesResultOutput), nil }).(GetSecondaryIndexesResultOutput) } diff --git a/sdk/go/alicloud/ots/getService.go b/sdk/go/alicloud/ots/getService.go index 8529c71c9f..0a5d205d6e 100644 --- a/sdk/go/alicloud/ots/getService.go +++ b/sdk/go/alicloud/ots/getService.go @@ -70,21 +70,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:ots/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ots/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/ots/getTables.go b/sdk/go/alicloud/ots/getTables.go index d0fd2c2d4e..a915cb9d6b 100644 --- a/sdk/go/alicloud/ots/getTables.go +++ b/sdk/go/alicloud/ots/getTables.go @@ -55,21 +55,11 @@ type GetTablesResult struct { } func GetTablesOutput(ctx *pulumi.Context, args GetTablesOutputArgs, opts ...pulumi.InvokeOption) GetTablesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTablesResultOutput, error) { args := v.(GetTablesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTablesResult - secret, err := ctx.InvokePackageRaw("alicloud:ots/getTables:getTables", args, &rv, "", opts...) - if err != nil { - return GetTablesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTablesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTablesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ots/getTables:getTables", args, GetTablesResultOutput{}, options).(GetTablesResultOutput), nil }).(GetTablesResultOutput) } diff --git a/sdk/go/alicloud/ots/getTunnels.go b/sdk/go/alicloud/ots/getTunnels.go index ecfb4f553a..d1a2961ee5 100644 --- a/sdk/go/alicloud/ots/getTunnels.go +++ b/sdk/go/alicloud/ots/getTunnels.go @@ -89,21 +89,11 @@ type GetTunnelsResult struct { } func GetTunnelsOutput(ctx *pulumi.Context, args GetTunnelsOutputArgs, opts ...pulumi.InvokeOption) GetTunnelsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTunnelsResultOutput, error) { args := v.(GetTunnelsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTunnelsResult - secret, err := ctx.InvokePackageRaw("alicloud:ots/getTunnels:getTunnels", args, &rv, "", opts...) - if err != nil { - return GetTunnelsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTunnelsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTunnelsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ots/getTunnels:getTunnels", args, GetTunnelsResultOutput{}, options).(GetTunnelsResultOutput), nil }).(GetTunnelsResultOutput) } diff --git a/sdk/go/alicloud/polardb/getAccounts.go b/sdk/go/alicloud/polardb/getAccounts.go index 6247e17960..7a872863c5 100644 --- a/sdk/go/alicloud/polardb/getAccounts.go +++ b/sdk/go/alicloud/polardb/getAccounts.go @@ -128,21 +128,11 @@ type GetAccountsResult struct { } func GetAccountsOutput(ctx *pulumi.Context, args GetAccountsOutputArgs, opts ...pulumi.InvokeOption) GetAccountsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccountsResultOutput, error) { args := v.(GetAccountsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccountsResult - secret, err := ctx.InvokePackageRaw("alicloud:polardb/getAccounts:getAccounts", args, &rv, "", opts...) - if err != nil { - return GetAccountsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccountsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccountsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:polardb/getAccounts:getAccounts", args, GetAccountsResultOutput{}, options).(GetAccountsResultOutput), nil }).(GetAccountsResultOutput) } diff --git a/sdk/go/alicloud/polardb/getClusters.go b/sdk/go/alicloud/polardb/getClusters.go index 1542bacd10..bfe91edbe7 100644 --- a/sdk/go/alicloud/polardb/getClusters.go +++ b/sdk/go/alicloud/polardb/getClusters.go @@ -127,21 +127,11 @@ type GetClustersResult struct { } func GetClustersOutput(ctx *pulumi.Context, args GetClustersOutputArgs, opts ...pulumi.InvokeOption) GetClustersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetClustersResultOutput, error) { args := v.(GetClustersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetClustersResult - secret, err := ctx.InvokePackageRaw("alicloud:polardb/getClusters:getClusters", args, &rv, "", opts...) - if err != nil { - return GetClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:polardb/getClusters:getClusters", args, GetClustersResultOutput{}, options).(GetClustersResultOutput), nil }).(GetClustersResultOutput) } diff --git a/sdk/go/alicloud/polardb/getDatabases.go b/sdk/go/alicloud/polardb/getDatabases.go index 5d62c4465b..c03d459e61 100644 --- a/sdk/go/alicloud/polardb/getDatabases.go +++ b/sdk/go/alicloud/polardb/getDatabases.go @@ -130,21 +130,11 @@ type GetDatabasesResult struct { } func GetDatabasesOutput(ctx *pulumi.Context, args GetDatabasesOutputArgs, opts ...pulumi.InvokeOption) GetDatabasesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDatabasesResultOutput, error) { args := v.(GetDatabasesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDatabasesResult - secret, err := ctx.InvokePackageRaw("alicloud:polardb/getDatabases:getDatabases", args, &rv, "", opts...) - if err != nil { - return GetDatabasesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDatabasesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDatabasesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:polardb/getDatabases:getDatabases", args, GetDatabasesResultOutput{}, options).(GetDatabasesResultOutput), nil }).(GetDatabasesResultOutput) } diff --git a/sdk/go/alicloud/polardb/getEndpoints.go b/sdk/go/alicloud/polardb/getEndpoints.go index 42f593ee82..3d0610fa53 100644 --- a/sdk/go/alicloud/polardb/getEndpoints.go +++ b/sdk/go/alicloud/polardb/getEndpoints.go @@ -112,21 +112,11 @@ type GetEndpointsResult struct { } func GetEndpointsOutput(ctx *pulumi.Context, args GetEndpointsOutputArgs, opts ...pulumi.InvokeOption) GetEndpointsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEndpointsResultOutput, error) { args := v.(GetEndpointsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEndpointsResult - secret, err := ctx.InvokePackageRaw("alicloud:polardb/getEndpoints:getEndpoints", args, &rv, "", opts...) - if err != nil { - return GetEndpointsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEndpointsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEndpointsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:polardb/getEndpoints:getEndpoints", args, GetEndpointsResultOutput{}, options).(GetEndpointsResultOutput), nil }).(GetEndpointsResultOutput) } diff --git a/sdk/go/alicloud/polardb/getGlobalDatabaseNetworks.go b/sdk/go/alicloud/polardb/getGlobalDatabaseNetworks.go index bf58b2a659..751f5bcf1c 100644 --- a/sdk/go/alicloud/polardb/getGlobalDatabaseNetworks.go +++ b/sdk/go/alicloud/polardb/getGlobalDatabaseNetworks.go @@ -143,21 +143,11 @@ type GetGlobalDatabaseNetworksResult struct { } func GetGlobalDatabaseNetworksOutput(ctx *pulumi.Context, args GetGlobalDatabaseNetworksOutputArgs, opts ...pulumi.InvokeOption) GetGlobalDatabaseNetworksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGlobalDatabaseNetworksResultOutput, error) { args := v.(GetGlobalDatabaseNetworksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGlobalDatabaseNetworksResult - secret, err := ctx.InvokePackageRaw("alicloud:polardb/getGlobalDatabaseNetworks:getGlobalDatabaseNetworks", args, &rv, "", opts...) - if err != nil { - return GetGlobalDatabaseNetworksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGlobalDatabaseNetworksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGlobalDatabaseNetworksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:polardb/getGlobalDatabaseNetworks:getGlobalDatabaseNetworks", args, GetGlobalDatabaseNetworksResultOutput{}, options).(GetGlobalDatabaseNetworksResultOutput), nil }).(GetGlobalDatabaseNetworksResultOutput) } diff --git a/sdk/go/alicloud/polardb/getNodeClasses.go b/sdk/go/alicloud/polardb/getNodeClasses.go index 23f93cd6bf..399bd83e20 100644 --- a/sdk/go/alicloud/polardb/getNodeClasses.go +++ b/sdk/go/alicloud/polardb/getNodeClasses.go @@ -93,21 +93,11 @@ type GetNodeClassesResult struct { } func GetNodeClassesOutput(ctx *pulumi.Context, args GetNodeClassesOutputArgs, opts ...pulumi.InvokeOption) GetNodeClassesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNodeClassesResultOutput, error) { args := v.(GetNodeClassesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNodeClassesResult - secret, err := ctx.InvokePackageRaw("alicloud:polardb/getNodeClasses:getNodeClasses", args, &rv, "", opts...) - if err != nil { - return GetNodeClassesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNodeClassesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNodeClassesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:polardb/getNodeClasses:getNodeClasses", args, GetNodeClassesResultOutput{}, options).(GetNodeClassesResultOutput), nil }).(GetNodeClassesResultOutput) } diff --git a/sdk/go/alicloud/polardb/getParameterGroups.go b/sdk/go/alicloud/polardb/getParameterGroups.go index 0eeb6d5f46..090dd3442d 100644 --- a/sdk/go/alicloud/polardb/getParameterGroups.go +++ b/sdk/go/alicloud/polardb/getParameterGroups.go @@ -99,21 +99,11 @@ type GetParameterGroupsResult struct { } func GetParameterGroupsOutput(ctx *pulumi.Context, args GetParameterGroupsOutputArgs, opts ...pulumi.InvokeOption) GetParameterGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetParameterGroupsResultOutput, error) { args := v.(GetParameterGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetParameterGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:polardb/getParameterGroups:getParameterGroups", args, &rv, "", opts...) - if err != nil { - return GetParameterGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetParameterGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetParameterGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:polardb/getParameterGroups:getParameterGroups", args, GetParameterGroupsResultOutput{}, options).(GetParameterGroupsResultOutput), nil }).(GetParameterGroupsResultOutput) } diff --git a/sdk/go/alicloud/polardb/getZones.go b/sdk/go/alicloud/polardb/getZones.go index 32d51332db..e3576c35f3 100644 --- a/sdk/go/alicloud/polardb/getZones.go +++ b/sdk/go/alicloud/polardb/getZones.go @@ -70,21 +70,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:polardb/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:polardb/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/privatelink/getService.go b/sdk/go/alicloud/privatelink/getService.go index e9d78d42b0..7222119428 100644 --- a/sdk/go/alicloud/privatelink/getService.go +++ b/sdk/go/alicloud/privatelink/getService.go @@ -70,21 +70,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:privatelink/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:privatelink/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/privatelink/getVpcEndpointConnections.go b/sdk/go/alicloud/privatelink/getVpcEndpointConnections.go index 67ada064e3..76d87b37bd 100644 --- a/sdk/go/alicloud/privatelink/getVpcEndpointConnections.go +++ b/sdk/go/alicloud/privatelink/getVpcEndpointConnections.go @@ -82,21 +82,11 @@ type GetVpcEndpointConnectionsResult struct { } func GetVpcEndpointConnectionsOutput(ctx *pulumi.Context, args GetVpcEndpointConnectionsOutputArgs, opts ...pulumi.InvokeOption) GetVpcEndpointConnectionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVpcEndpointConnectionsResultOutput, error) { args := v.(GetVpcEndpointConnectionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVpcEndpointConnectionsResult - secret, err := ctx.InvokePackageRaw("alicloud:privatelink/getVpcEndpointConnections:getVpcEndpointConnections", args, &rv, "", opts...) - if err != nil { - return GetVpcEndpointConnectionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVpcEndpointConnectionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVpcEndpointConnectionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:privatelink/getVpcEndpointConnections:getVpcEndpointConnections", args, GetVpcEndpointConnectionsResultOutput{}, options).(GetVpcEndpointConnectionsResultOutput), nil }).(GetVpcEndpointConnectionsResultOutput) } diff --git a/sdk/go/alicloud/privatelink/getVpcEndpointServiceResources.go b/sdk/go/alicloud/privatelink/getVpcEndpointServiceResources.go index da6dab03e0..4759fcd5f8 100644 --- a/sdk/go/alicloud/privatelink/getVpcEndpointServiceResources.go +++ b/sdk/go/alicloud/privatelink/getVpcEndpointServiceResources.go @@ -72,21 +72,11 @@ type GetVpcEndpointServiceResourcesResult struct { } func GetVpcEndpointServiceResourcesOutput(ctx *pulumi.Context, args GetVpcEndpointServiceResourcesOutputArgs, opts ...pulumi.InvokeOption) GetVpcEndpointServiceResourcesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVpcEndpointServiceResourcesResultOutput, error) { args := v.(GetVpcEndpointServiceResourcesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVpcEndpointServiceResourcesResult - secret, err := ctx.InvokePackageRaw("alicloud:privatelink/getVpcEndpointServiceResources:getVpcEndpointServiceResources", args, &rv, "", opts...) - if err != nil { - return GetVpcEndpointServiceResourcesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVpcEndpointServiceResourcesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVpcEndpointServiceResourcesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:privatelink/getVpcEndpointServiceResources:getVpcEndpointServiceResources", args, GetVpcEndpointServiceResourcesResultOutput{}, options).(GetVpcEndpointServiceResourcesResultOutput), nil }).(GetVpcEndpointServiceResourcesResultOutput) } diff --git a/sdk/go/alicloud/privatelink/getVpcEndpointServiceUsers.go b/sdk/go/alicloud/privatelink/getVpcEndpointServiceUsers.go index 2ac6ec695f..70af9d23a9 100644 --- a/sdk/go/alicloud/privatelink/getVpcEndpointServiceUsers.go +++ b/sdk/go/alicloud/privatelink/getVpcEndpointServiceUsers.go @@ -75,21 +75,11 @@ type GetVpcEndpointServiceUsersResult struct { } func GetVpcEndpointServiceUsersOutput(ctx *pulumi.Context, args GetVpcEndpointServiceUsersOutputArgs, opts ...pulumi.InvokeOption) GetVpcEndpointServiceUsersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVpcEndpointServiceUsersResultOutput, error) { args := v.(GetVpcEndpointServiceUsersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVpcEndpointServiceUsersResult - secret, err := ctx.InvokePackageRaw("alicloud:privatelink/getVpcEndpointServiceUsers:getVpcEndpointServiceUsers", args, &rv, "", opts...) - if err != nil { - return GetVpcEndpointServiceUsersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVpcEndpointServiceUsersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVpcEndpointServiceUsersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:privatelink/getVpcEndpointServiceUsers:getVpcEndpointServiceUsers", args, GetVpcEndpointServiceUsersResultOutput{}, options).(GetVpcEndpointServiceUsersResultOutput), nil }).(GetVpcEndpointServiceUsersResultOutput) } diff --git a/sdk/go/alicloud/privatelink/getVpcEndpointServices.go b/sdk/go/alicloud/privatelink/getVpcEndpointServices.go index 63dad9b73c..0f17ee8610 100644 --- a/sdk/go/alicloud/privatelink/getVpcEndpointServices.go +++ b/sdk/go/alicloud/privatelink/getVpcEndpointServices.go @@ -106,21 +106,11 @@ type GetVpcEndpointServicesResult struct { } func GetVpcEndpointServicesOutput(ctx *pulumi.Context, args GetVpcEndpointServicesOutputArgs, opts ...pulumi.InvokeOption) GetVpcEndpointServicesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVpcEndpointServicesResultOutput, error) { args := v.(GetVpcEndpointServicesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVpcEndpointServicesResult - secret, err := ctx.InvokePackageRaw("alicloud:privatelink/getVpcEndpointServices:getVpcEndpointServices", args, &rv, "", opts...) - if err != nil { - return GetVpcEndpointServicesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVpcEndpointServicesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVpcEndpointServicesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:privatelink/getVpcEndpointServices:getVpcEndpointServices", args, GetVpcEndpointServicesResultOutput{}, options).(GetVpcEndpointServicesResultOutput), nil }).(GetVpcEndpointServicesResultOutput) } diff --git a/sdk/go/alicloud/privatelink/getVpcEndpointZones.go b/sdk/go/alicloud/privatelink/getVpcEndpointZones.go index b517e12b44..539df217c3 100644 --- a/sdk/go/alicloud/privatelink/getVpcEndpointZones.go +++ b/sdk/go/alicloud/privatelink/getVpcEndpointZones.go @@ -75,21 +75,11 @@ type GetVpcEndpointZonesResult struct { } func GetVpcEndpointZonesOutput(ctx *pulumi.Context, args GetVpcEndpointZonesOutputArgs, opts ...pulumi.InvokeOption) GetVpcEndpointZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVpcEndpointZonesResultOutput, error) { args := v.(GetVpcEndpointZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVpcEndpointZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:privatelink/getVpcEndpointZones:getVpcEndpointZones", args, &rv, "", opts...) - if err != nil { - return GetVpcEndpointZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVpcEndpointZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVpcEndpointZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:privatelink/getVpcEndpointZones:getVpcEndpointZones", args, GetVpcEndpointZonesResultOutput{}, options).(GetVpcEndpointZonesResultOutput), nil }).(GetVpcEndpointZonesResultOutput) } diff --git a/sdk/go/alicloud/privatelink/getVpcEndpoints.go b/sdk/go/alicloud/privatelink/getVpcEndpoints.go index ac3206ab86..4c00403a07 100644 --- a/sdk/go/alicloud/privatelink/getVpcEndpoints.go +++ b/sdk/go/alicloud/privatelink/getVpcEndpoints.go @@ -96,21 +96,11 @@ type GetVpcEndpointsResult struct { } func GetVpcEndpointsOutput(ctx *pulumi.Context, args GetVpcEndpointsOutputArgs, opts ...pulumi.InvokeOption) GetVpcEndpointsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVpcEndpointsResultOutput, error) { args := v.(GetVpcEndpointsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVpcEndpointsResult - secret, err := ctx.InvokePackageRaw("alicloud:privatelink/getVpcEndpoints:getVpcEndpoints", args, &rv, "", opts...) - if err != nil { - return GetVpcEndpointsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVpcEndpointsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVpcEndpointsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:privatelink/getVpcEndpoints:getVpcEndpoints", args, GetVpcEndpointsResultOutput{}, options).(GetVpcEndpointsResultOutput), nil }).(GetVpcEndpointsResultOutput) } diff --git a/sdk/go/alicloud/pvtz/getEndpoints.go b/sdk/go/alicloud/pvtz/getEndpoints.go index 3476d74e02..461826f87f 100644 --- a/sdk/go/alicloud/pvtz/getEndpoints.go +++ b/sdk/go/alicloud/pvtz/getEndpoints.go @@ -87,21 +87,11 @@ type GetEndpointsResult struct { } func GetEndpointsOutput(ctx *pulumi.Context, args GetEndpointsOutputArgs, opts ...pulumi.InvokeOption) GetEndpointsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEndpointsResultOutput, error) { args := v.(GetEndpointsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEndpointsResult - secret, err := ctx.InvokePackageRaw("alicloud:pvtz/getEndpoints:getEndpoints", args, &rv, "", opts...) - if err != nil { - return GetEndpointsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEndpointsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEndpointsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:pvtz/getEndpoints:getEndpoints", args, GetEndpointsResultOutput{}, options).(GetEndpointsResultOutput), nil }).(GetEndpointsResultOutput) } diff --git a/sdk/go/alicloud/pvtz/getResolverZones.go b/sdk/go/alicloud/pvtz/getResolverZones.go index 8bbc8d96f0..1e23e25f4b 100644 --- a/sdk/go/alicloud/pvtz/getResolverZones.go +++ b/sdk/go/alicloud/pvtz/getResolverZones.go @@ -71,21 +71,11 @@ type GetResolverZonesResult struct { } func GetResolverZonesOutput(ctx *pulumi.Context, args GetResolverZonesOutputArgs, opts ...pulumi.InvokeOption) GetResolverZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetResolverZonesResultOutput, error) { args := v.(GetResolverZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetResolverZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:pvtz/getResolverZones:getResolverZones", args, &rv, "", opts...) - if err != nil { - return GetResolverZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetResolverZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetResolverZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:pvtz/getResolverZones:getResolverZones", args, GetResolverZonesResultOutput{}, options).(GetResolverZonesResultOutput), nil }).(GetResolverZonesResultOutput) } diff --git a/sdk/go/alicloud/pvtz/getRules.go b/sdk/go/alicloud/pvtz/getRules.go index bca8e8b336..d94210d682 100644 --- a/sdk/go/alicloud/pvtz/getRules.go +++ b/sdk/go/alicloud/pvtz/getRules.go @@ -83,21 +83,11 @@ type GetRulesResult struct { } func GetRulesOutput(ctx *pulumi.Context, args GetRulesOutputArgs, opts ...pulumi.InvokeOption) GetRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRulesResultOutput, error) { args := v.(GetRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:pvtz/getRules:getRules", args, &rv, "", opts...) - if err != nil { - return GetRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:pvtz/getRules:getRules", args, GetRulesResultOutput{}, options).(GetRulesResultOutput), nil }).(GetRulesResultOutput) } diff --git a/sdk/go/alicloud/pvtz/getService.go b/sdk/go/alicloud/pvtz/getService.go index 972eef45df..80b0c78703 100644 --- a/sdk/go/alicloud/pvtz/getService.go +++ b/sdk/go/alicloud/pvtz/getService.go @@ -70,21 +70,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:pvtz/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:pvtz/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/pvtz/getZoneRecords.go b/sdk/go/alicloud/pvtz/getZoneRecords.go index 4b57171c18..87c93b9d1a 100644 --- a/sdk/go/alicloud/pvtz/getZoneRecords.go +++ b/sdk/go/alicloud/pvtz/getZoneRecords.go @@ -96,21 +96,11 @@ type GetZoneRecordsResult struct { } func GetZoneRecordsOutput(ctx *pulumi.Context, args GetZoneRecordsOutputArgs, opts ...pulumi.InvokeOption) GetZoneRecordsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZoneRecordsResultOutput, error) { args := v.(GetZoneRecordsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZoneRecordsResult - secret, err := ctx.InvokePackageRaw("alicloud:pvtz/getZoneRecords:getZoneRecords", args, &rv, "", opts...) - if err != nil { - return GetZoneRecordsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZoneRecordsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZoneRecordsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:pvtz/getZoneRecords:getZoneRecords", args, GetZoneRecordsResultOutput{}, options).(GetZoneRecordsResultOutput), nil }).(GetZoneRecordsResultOutput) } diff --git a/sdk/go/alicloud/pvtz/getZones.go b/sdk/go/alicloud/pvtz/getZones.go index 16b71016b9..90dc4ff066 100644 --- a/sdk/go/alicloud/pvtz/getZones.go +++ b/sdk/go/alicloud/pvtz/getZones.go @@ -97,21 +97,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:pvtz/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:pvtz/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/quickbi/getUsers.go b/sdk/go/alicloud/quickbi/getUsers.go index 4b9a861bb6..61ade92ac0 100644 --- a/sdk/go/alicloud/quickbi/getUsers.go +++ b/sdk/go/alicloud/quickbi/getUsers.go @@ -79,21 +79,11 @@ type GetUsersResult struct { } func GetUsersOutput(ctx *pulumi.Context, args GetUsersOutputArgs, opts ...pulumi.InvokeOption) GetUsersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetUsersResultOutput, error) { args := v.(GetUsersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetUsersResult - secret, err := ctx.InvokePackageRaw("alicloud:quickbi/getUsers:getUsers", args, &rv, "", opts...) - if err != nil { - return GetUsersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetUsersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetUsersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:quickbi/getUsers:getUsers", args, GetUsersResultOutput{}, options).(GetUsersResultOutput), nil }).(GetUsersResultOutput) } diff --git a/sdk/go/alicloud/quotas/getApplicationInfos.go b/sdk/go/alicloud/quotas/getApplicationInfos.go index 448a742746..53bd8580c0 100644 --- a/sdk/go/alicloud/quotas/getApplicationInfos.go +++ b/sdk/go/alicloud/quotas/getApplicationInfos.go @@ -51,21 +51,11 @@ type GetApplicationInfosResult struct { } func GetApplicationInfosOutput(ctx *pulumi.Context, args GetApplicationInfosOutputArgs, opts ...pulumi.InvokeOption) GetApplicationInfosResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetApplicationInfosResultOutput, error) { args := v.(GetApplicationInfosArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetApplicationInfosResult - secret, err := ctx.InvokePackageRaw("alicloud:quotas/getApplicationInfos:getApplicationInfos", args, &rv, "", opts...) - if err != nil { - return GetApplicationInfosResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetApplicationInfosResultOutput) - if secret { - return pulumi.ToSecret(output).(GetApplicationInfosResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:quotas/getApplicationInfos:getApplicationInfos", args, GetApplicationInfosResultOutput{}, options).(GetApplicationInfosResultOutput), nil }).(GetApplicationInfosResultOutput) } diff --git a/sdk/go/alicloud/quotas/getQuotaAlarms.go b/sdk/go/alicloud/quotas/getQuotaAlarms.go index 05f637648f..e025b69047 100644 --- a/sdk/go/alicloud/quotas/getQuotaAlarms.go +++ b/sdk/go/alicloud/quotas/getQuotaAlarms.go @@ -93,21 +93,11 @@ type GetQuotaAlarmsResult struct { } func GetQuotaAlarmsOutput(ctx *pulumi.Context, args GetQuotaAlarmsOutputArgs, opts ...pulumi.InvokeOption) GetQuotaAlarmsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetQuotaAlarmsResultOutput, error) { args := v.(GetQuotaAlarmsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetQuotaAlarmsResult - secret, err := ctx.InvokePackageRaw("alicloud:quotas/getQuotaAlarms:getQuotaAlarms", args, &rv, "", opts...) - if err != nil { - return GetQuotaAlarmsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetQuotaAlarmsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetQuotaAlarmsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:quotas/getQuotaAlarms:getQuotaAlarms", args, GetQuotaAlarmsResultOutput{}, options).(GetQuotaAlarmsResultOutput), nil }).(GetQuotaAlarmsResultOutput) } diff --git a/sdk/go/alicloud/quotas/getQuotaApplications.go b/sdk/go/alicloud/quotas/getQuotaApplications.go index 1330ed8f95..7312344f99 100644 --- a/sdk/go/alicloud/quotas/getQuotaApplications.go +++ b/sdk/go/alicloud/quotas/getQuotaApplications.go @@ -111,21 +111,11 @@ type GetQuotaApplicationsResult struct { } func GetQuotaApplicationsOutput(ctx *pulumi.Context, args GetQuotaApplicationsOutputArgs, opts ...pulumi.InvokeOption) GetQuotaApplicationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetQuotaApplicationsResultOutput, error) { args := v.(GetQuotaApplicationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetQuotaApplicationsResult - secret, err := ctx.InvokePackageRaw("alicloud:quotas/getQuotaApplications:getQuotaApplications", args, &rv, "", opts...) - if err != nil { - return GetQuotaApplicationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetQuotaApplicationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetQuotaApplicationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:quotas/getQuotaApplications:getQuotaApplications", args, GetQuotaApplicationsResultOutput{}, options).(GetQuotaApplicationsResultOutput), nil }).(GetQuotaApplicationsResultOutput) } diff --git a/sdk/go/alicloud/quotas/getQuotas.go b/sdk/go/alicloud/quotas/getQuotas.go index cdc4b8065e..eb4e78431c 100644 --- a/sdk/go/alicloud/quotas/getQuotas.go +++ b/sdk/go/alicloud/quotas/getQuotas.go @@ -98,21 +98,11 @@ type GetQuotasResult struct { } func GetQuotasOutput(ctx *pulumi.Context, args GetQuotasOutputArgs, opts ...pulumi.InvokeOption) GetQuotasResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetQuotasResultOutput, error) { args := v.(GetQuotasArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetQuotasResult - secret, err := ctx.InvokePackageRaw("alicloud:quotas/getQuotas:getQuotas", args, &rv, "", opts...) - if err != nil { - return GetQuotasResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetQuotasResultOutput) - if secret { - return pulumi.ToSecret(output).(GetQuotasResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:quotas/getQuotas:getQuotas", args, GetQuotasResultOutput{}, options).(GetQuotasResultOutput), nil }).(GetQuotasResultOutput) } diff --git a/sdk/go/alicloud/quotas/getTemplateApplications.go b/sdk/go/alicloud/quotas/getTemplateApplications.go index e5abe7ddce..7906fca252 100644 --- a/sdk/go/alicloud/quotas/getTemplateApplications.go +++ b/sdk/go/alicloud/quotas/getTemplateApplications.go @@ -127,21 +127,11 @@ type LookupTemplateApplicationsResult struct { } func LookupTemplateApplicationsOutput(ctx *pulumi.Context, args LookupTemplateApplicationsOutputArgs, opts ...pulumi.InvokeOption) LookupTemplateApplicationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTemplateApplicationsResultOutput, error) { args := v.(LookupTemplateApplicationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTemplateApplicationsResult - secret, err := ctx.InvokePackageRaw("alicloud:quotas/getTemplateApplications:getTemplateApplications", args, &rv, "", opts...) - if err != nil { - return LookupTemplateApplicationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTemplateApplicationsResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTemplateApplicationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:quotas/getTemplateApplications:getTemplateApplications", args, LookupTemplateApplicationsResultOutput{}, options).(LookupTemplateApplicationsResultOutput), nil }).(LookupTemplateApplicationsResultOutput) } diff --git a/sdk/go/alicloud/ram/getAccountAlias.go b/sdk/go/alicloud/ram/getAccountAlias.go index 51d4d6cdb8..d10b899c8e 100644 --- a/sdk/go/alicloud/ram/getAccountAlias.go +++ b/sdk/go/alicloud/ram/getAccountAlias.go @@ -67,21 +67,11 @@ type LookupAccountAliasResult struct { } func LookupAccountAliasOutput(ctx *pulumi.Context, args LookupAccountAliasOutputArgs, opts ...pulumi.InvokeOption) LookupAccountAliasResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAccountAliasResultOutput, error) { args := v.(LookupAccountAliasArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAccountAliasResult - secret, err := ctx.InvokePackageRaw("alicloud:ram/getAccountAlias:getAccountAlias", args, &rv, "", opts...) - if err != nil { - return LookupAccountAliasResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAccountAliasResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAccountAliasResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ram/getAccountAlias:getAccountAlias", args, LookupAccountAliasResultOutput{}, options).(LookupAccountAliasResultOutput), nil }).(LookupAccountAliasResultOutput) } diff --git a/sdk/go/alicloud/ram/getAccountAliases.go b/sdk/go/alicloud/ram/getAccountAliases.go index 616eec2a46..0878f390e6 100644 --- a/sdk/go/alicloud/ram/getAccountAliases.go +++ b/sdk/go/alicloud/ram/getAccountAliases.go @@ -35,21 +35,11 @@ type GetAccountAliasesResult struct { } func GetAccountAliasesOutput(ctx *pulumi.Context, args GetAccountAliasesOutputArgs, opts ...pulumi.InvokeOption) GetAccountAliasesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccountAliasesResultOutput, error) { args := v.(GetAccountAliasesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccountAliasesResult - secret, err := ctx.InvokePackageRaw("alicloud:ram/getAccountAliases:getAccountAliases", args, &rv, "", opts...) - if err != nil { - return GetAccountAliasesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccountAliasesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccountAliasesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ram/getAccountAliases:getAccountAliases", args, GetAccountAliasesResultOutput{}, options).(GetAccountAliasesResultOutput), nil }).(GetAccountAliasesResultOutput) } diff --git a/sdk/go/alicloud/ram/getGroups.go b/sdk/go/alicloud/ram/getGroups.go index 7720245d5e..79e0959438 100644 --- a/sdk/go/alicloud/ram/getGroups.go +++ b/sdk/go/alicloud/ram/getGroups.go @@ -83,21 +83,11 @@ type GetGroupsResult struct { } func GetGroupsOutput(ctx *pulumi.Context, args GetGroupsOutputArgs, opts ...pulumi.InvokeOption) GetGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGroupsResultOutput, error) { args := v.(GetGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:ram/getGroups:getGroups", args, &rv, "", opts...) - if err != nil { - return GetGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ram/getGroups:getGroups", args, GetGroupsResultOutput{}, options).(GetGroupsResultOutput), nil }).(GetGroupsResultOutput) } diff --git a/sdk/go/alicloud/ram/getPolicies.go b/sdk/go/alicloud/ram/getPolicies.go index fdaa66b693..8aa8d79dec 100644 --- a/sdk/go/alicloud/ram/getPolicies.go +++ b/sdk/go/alicloud/ram/getPolicies.go @@ -95,21 +95,11 @@ type GetPoliciesResult struct { } func GetPoliciesOutput(ctx *pulumi.Context, args GetPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetPoliciesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPoliciesResultOutput, error) { args := v.(GetPoliciesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPoliciesResult - secret, err := ctx.InvokePackageRaw("alicloud:ram/getPolicies:getPolicies", args, &rv, "", opts...) - if err != nil { - return GetPoliciesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ram/getPolicies:getPolicies", args, GetPoliciesResultOutput{}, options).(GetPoliciesResultOutput), nil }).(GetPoliciesResultOutput) } diff --git a/sdk/go/alicloud/ram/getPolicyDocument.go b/sdk/go/alicloud/ram/getPolicyDocument.go index 0bcb320af5..ab0fdda9bb 100644 --- a/sdk/go/alicloud/ram/getPolicyDocument.go +++ b/sdk/go/alicloud/ram/getPolicyDocument.go @@ -346,21 +346,11 @@ type GetPolicyDocumentResult struct { } func GetPolicyDocumentOutput(ctx *pulumi.Context, args GetPolicyDocumentOutputArgs, opts ...pulumi.InvokeOption) GetPolicyDocumentResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPolicyDocumentResultOutput, error) { args := v.(GetPolicyDocumentArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPolicyDocumentResult - secret, err := ctx.InvokePackageRaw("alicloud:ram/getPolicyDocument:getPolicyDocument", args, &rv, "", opts...) - if err != nil { - return GetPolicyDocumentResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPolicyDocumentResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPolicyDocumentResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ram/getPolicyDocument:getPolicyDocument", args, GetPolicyDocumentResultOutput{}, options).(GetPolicyDocumentResultOutput), nil }).(GetPolicyDocumentResultOutput) } diff --git a/sdk/go/alicloud/ram/getRoles.go b/sdk/go/alicloud/ram/getRoles.go index fd089b50db..9901122da1 100644 --- a/sdk/go/alicloud/ram/getRoles.go +++ b/sdk/go/alicloud/ram/getRoles.go @@ -85,21 +85,11 @@ type GetRolesResult struct { } func GetRolesOutput(ctx *pulumi.Context, args GetRolesOutputArgs, opts ...pulumi.InvokeOption) GetRolesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRolesResultOutput, error) { args := v.(GetRolesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRolesResult - secret, err := ctx.InvokePackageRaw("alicloud:ram/getRoles:getRoles", args, &rv, "", opts...) - if err != nil { - return GetRolesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRolesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRolesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ram/getRoles:getRoles", args, GetRolesResultOutput{}, options).(GetRolesResultOutput), nil }).(GetRolesResultOutput) } diff --git a/sdk/go/alicloud/ram/getSamlProviders.go b/sdk/go/alicloud/ram/getSamlProviders.go index 8d70c4fa16..39115d2d7d 100644 --- a/sdk/go/alicloud/ram/getSamlProviders.go +++ b/sdk/go/alicloud/ram/getSamlProviders.go @@ -83,21 +83,11 @@ type GetSamlProvidersResult struct { } func GetSamlProvidersOutput(ctx *pulumi.Context, args GetSamlProvidersOutputArgs, opts ...pulumi.InvokeOption) GetSamlProvidersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSamlProvidersResultOutput, error) { args := v.(GetSamlProvidersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSamlProvidersResult - secret, err := ctx.InvokePackageRaw("alicloud:ram/getSamlProviders:getSamlProviders", args, &rv, "", opts...) - if err != nil { - return GetSamlProvidersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSamlProvidersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSamlProvidersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ram/getSamlProviders:getSamlProviders", args, GetSamlProvidersResultOutput{}, options).(GetSamlProvidersResultOutput), nil }).(GetSamlProvidersResultOutput) } diff --git a/sdk/go/alicloud/ram/getUsers.go b/sdk/go/alicloud/ram/getUsers.go index 137d02c4de..ae9211ac83 100644 --- a/sdk/go/alicloud/ram/getUsers.go +++ b/sdk/go/alicloud/ram/getUsers.go @@ -150,21 +150,11 @@ type GetUsersResult struct { } func GetUsersOutput(ctx *pulumi.Context, args GetUsersOutputArgs, opts ...pulumi.InvokeOption) GetUsersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetUsersResultOutput, error) { args := v.(GetUsersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetUsersResult - secret, err := ctx.InvokePackageRaw("alicloud:ram/getUsers:getUsers", args, &rv, "", opts...) - if err != nil { - return GetUsersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetUsersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetUsersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ram/getUsers:getUsers", args, GetUsersResultOutput{}, options).(GetUsersResultOutput), nil }).(GetUsersResultOutput) } diff --git a/sdk/go/alicloud/rdc/getOrganizations.go b/sdk/go/alicloud/rdc/getOrganizations.go index d50b58f521..e167b1f416 100644 --- a/sdk/go/alicloud/rdc/getOrganizations.go +++ b/sdk/go/alicloud/rdc/getOrganizations.go @@ -99,21 +99,11 @@ type GetOrganizationsResult struct { } func GetOrganizationsOutput(ctx *pulumi.Context, args GetOrganizationsOutputArgs, opts ...pulumi.InvokeOption) GetOrganizationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetOrganizationsResultOutput, error) { args := v.(GetOrganizationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetOrganizationsResult - secret, err := ctx.InvokePackageRaw("alicloud:rdc/getOrganizations:getOrganizations", args, &rv, "", opts...) - if err != nil { - return GetOrganizationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetOrganizationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetOrganizationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:rdc/getOrganizations:getOrganizations", args, GetOrganizationsResultOutput{}, options).(GetOrganizationsResultOutput), nil }).(GetOrganizationsResultOutput) } diff --git a/sdk/go/alicloud/rds/getAccounts.go b/sdk/go/alicloud/rds/getAccounts.go index 92c243fac2..921dab4e41 100644 --- a/sdk/go/alicloud/rds/getAccounts.go +++ b/sdk/go/alicloud/rds/getAccounts.go @@ -82,21 +82,11 @@ type GetAccountsResult struct { } func GetAccountsOutput(ctx *pulumi.Context, args GetAccountsOutputArgs, opts ...pulumi.InvokeOption) GetAccountsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccountsResultOutput, error) { args := v.(GetAccountsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccountsResult - secret, err := ctx.InvokePackageRaw("alicloud:rds/getAccounts:getAccounts", args, &rv, "", opts...) - if err != nil { - return GetAccountsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccountsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccountsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:rds/getAccounts:getAccounts", args, GetAccountsResultOutput{}, options).(GetAccountsResultOutput), nil }).(GetAccountsResultOutput) } diff --git a/sdk/go/alicloud/rds/getCharacterSetNames.go b/sdk/go/alicloud/rds/getCharacterSetNames.go index ee250c3a7e..ee0368aba7 100644 --- a/sdk/go/alicloud/rds/getCharacterSetNames.go +++ b/sdk/go/alicloud/rds/getCharacterSetNames.go @@ -69,21 +69,11 @@ type GetCharacterSetNamesResult struct { } func GetCharacterSetNamesOutput(ctx *pulumi.Context, args GetCharacterSetNamesOutputArgs, opts ...pulumi.InvokeOption) GetCharacterSetNamesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCharacterSetNamesResultOutput, error) { args := v.(GetCharacterSetNamesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCharacterSetNamesResult - secret, err := ctx.InvokePackageRaw("alicloud:rds/getCharacterSetNames:getCharacterSetNames", args, &rv, "", opts...) - if err != nil { - return GetCharacterSetNamesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCharacterSetNamesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCharacterSetNamesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:rds/getCharacterSetNames:getCharacterSetNames", args, GetCharacterSetNamesResultOutput{}, options).(GetCharacterSetNamesResultOutput), nil }).(GetCharacterSetNamesResultOutput) } diff --git a/sdk/go/alicloud/rds/getClassDetails.go b/sdk/go/alicloud/rds/getClassDetails.go index 8f3acdafdf..aa04665fad 100644 --- a/sdk/go/alicloud/rds/getClassDetails.go +++ b/sdk/go/alicloud/rds/getClassDetails.go @@ -119,21 +119,11 @@ type GetClassDetailsResult struct { } func GetClassDetailsOutput(ctx *pulumi.Context, args GetClassDetailsOutputArgs, opts ...pulumi.InvokeOption) GetClassDetailsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetClassDetailsResultOutput, error) { args := v.(GetClassDetailsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetClassDetailsResult - secret, err := ctx.InvokePackageRaw("alicloud:rds/getClassDetails:getClassDetails", args, &rv, "", opts...) - if err != nil { - return GetClassDetailsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetClassDetailsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetClassDetailsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:rds/getClassDetails:getClassDetails", args, GetClassDetailsResultOutput{}, options).(GetClassDetailsResultOutput), nil }).(GetClassDetailsResultOutput) } diff --git a/sdk/go/alicloud/rds/getCollationTimeZones.go b/sdk/go/alicloud/rds/getCollationTimeZones.go index ef189a8170..a6f94d26c7 100644 --- a/sdk/go/alicloud/rds/getCollationTimeZones.go +++ b/sdk/go/alicloud/rds/getCollationTimeZones.go @@ -72,21 +72,11 @@ type GetCollationTimeZonesResult struct { } func GetCollationTimeZonesOutput(ctx *pulumi.Context, args GetCollationTimeZonesOutputArgs, opts ...pulumi.InvokeOption) GetCollationTimeZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCollationTimeZonesResultOutput, error) { args := v.(GetCollationTimeZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCollationTimeZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:rds/getCollationTimeZones:getCollationTimeZones", args, &rv, "", opts...) - if err != nil { - return GetCollationTimeZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCollationTimeZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCollationTimeZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:rds/getCollationTimeZones:getCollationTimeZones", args, GetCollationTimeZonesResultOutput{}, options).(GetCollationTimeZonesResultOutput), nil }).(GetCollationTimeZonesResultOutput) } diff --git a/sdk/go/alicloud/rds/getCrossRegionBackups.go b/sdk/go/alicloud/rds/getCrossRegionBackups.go index 376a66f061..7c75bfcbb9 100644 --- a/sdk/go/alicloud/rds/getCrossRegionBackups.go +++ b/sdk/go/alicloud/rds/getCrossRegionBackups.go @@ -96,21 +96,11 @@ type GetCrossRegionBackupsResult struct { } func GetCrossRegionBackupsOutput(ctx *pulumi.Context, args GetCrossRegionBackupsOutputArgs, opts ...pulumi.InvokeOption) GetCrossRegionBackupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCrossRegionBackupsResultOutput, error) { args := v.(GetCrossRegionBackupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCrossRegionBackupsResult - secret, err := ctx.InvokePackageRaw("alicloud:rds/getCrossRegionBackups:getCrossRegionBackups", args, &rv, "", opts...) - if err != nil { - return GetCrossRegionBackupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCrossRegionBackupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCrossRegionBackupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:rds/getCrossRegionBackups:getCrossRegionBackups", args, GetCrossRegionBackupsResultOutput{}, options).(GetCrossRegionBackupsResultOutput), nil }).(GetCrossRegionBackupsResultOutput) } diff --git a/sdk/go/alicloud/rds/getCrossRegions.go b/sdk/go/alicloud/rds/getCrossRegions.go index 3d6821b94f..7b8595189c 100644 --- a/sdk/go/alicloud/rds/getCrossRegions.go +++ b/sdk/go/alicloud/rds/getCrossRegions.go @@ -67,21 +67,11 @@ type GetCrossRegionsResult struct { } func GetCrossRegionsOutput(ctx *pulumi.Context, args GetCrossRegionsOutputArgs, opts ...pulumi.InvokeOption) GetCrossRegionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCrossRegionsResultOutput, error) { args := v.(GetCrossRegionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCrossRegionsResult - secret, err := ctx.InvokePackageRaw("alicloud:rds/getCrossRegions:getCrossRegions", args, &rv, "", opts...) - if err != nil { - return GetCrossRegionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCrossRegionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCrossRegionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:rds/getCrossRegions:getCrossRegions", args, GetCrossRegionsResultOutput{}, options).(GetCrossRegionsResultOutput), nil }).(GetCrossRegionsResultOutput) } diff --git a/sdk/go/alicloud/rds/getInstanceClassInfos.go b/sdk/go/alicloud/rds/getInstanceClassInfos.go index a255ab897e..f22bf3c85a 100644 --- a/sdk/go/alicloud/rds/getInstanceClassInfos.go +++ b/sdk/go/alicloud/rds/getInstanceClassInfos.go @@ -96,21 +96,11 @@ type GetInstanceClassInfosResult struct { } func GetInstanceClassInfosOutput(ctx *pulumi.Context, args GetInstanceClassInfosOutputArgs, opts ...pulumi.InvokeOption) GetInstanceClassInfosResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceClassInfosResultOutput, error) { args := v.(GetInstanceClassInfosArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceClassInfosResult - secret, err := ctx.InvokePackageRaw("alicloud:rds/getInstanceClassInfos:getInstanceClassInfos", args, &rv, "", opts...) - if err != nil { - return GetInstanceClassInfosResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceClassInfosResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceClassInfosResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:rds/getInstanceClassInfos:getInstanceClassInfos", args, GetInstanceClassInfosResultOutput{}, options).(GetInstanceClassInfosResultOutput), nil }).(GetInstanceClassInfosResultOutput) } diff --git a/sdk/go/alicloud/rds/getInstanceClasses.go b/sdk/go/alicloud/rds/getInstanceClasses.go index 5928cc2508..aee76208ef 100644 --- a/sdk/go/alicloud/rds/getInstanceClasses.go +++ b/sdk/go/alicloud/rds/getInstanceClasses.go @@ -121,21 +121,11 @@ type GetInstanceClassesResult struct { } func GetInstanceClassesOutput(ctx *pulumi.Context, args GetInstanceClassesOutputArgs, opts ...pulumi.InvokeOption) GetInstanceClassesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceClassesResultOutput, error) { args := v.(GetInstanceClassesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceClassesResult - secret, err := ctx.InvokePackageRaw("alicloud:rds/getInstanceClasses:getInstanceClasses", args, &rv, "", opts...) - if err != nil { - return GetInstanceClassesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceClassesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceClassesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:rds/getInstanceClasses:getInstanceClasses", args, GetInstanceClassesResultOutput{}, options).(GetInstanceClassesResultOutput), nil }).(GetInstanceClassesResultOutput) } diff --git a/sdk/go/alicloud/rds/getInstanceEngines.go b/sdk/go/alicloud/rds/getInstanceEngines.go index 1c0035c895..a08680a49e 100644 --- a/sdk/go/alicloud/rds/getInstanceEngines.go +++ b/sdk/go/alicloud/rds/getInstanceEngines.go @@ -96,21 +96,11 @@ type GetInstanceEnginesResult struct { } func GetInstanceEnginesOutput(ctx *pulumi.Context, args GetInstanceEnginesOutputArgs, opts ...pulumi.InvokeOption) GetInstanceEnginesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceEnginesResultOutput, error) { args := v.(GetInstanceEnginesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceEnginesResult - secret, err := ctx.InvokePackageRaw("alicloud:rds/getInstanceEngines:getInstanceEngines", args, &rv, "", opts...) - if err != nil { - return GetInstanceEnginesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceEnginesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceEnginesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:rds/getInstanceEngines:getInstanceEngines", args, GetInstanceEnginesResultOutput{}, options).(GetInstanceEnginesResultOutput), nil }).(GetInstanceEnginesResultOutput) } diff --git a/sdk/go/alicloud/rds/getInstances.go b/sdk/go/alicloud/rds/getInstances.go index e6f3331299..34615e82d2 100644 --- a/sdk/go/alicloud/rds/getInstances.go +++ b/sdk/go/alicloud/rds/getInstances.go @@ -118,21 +118,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:rds/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:rds/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/rds/getModifyParameterLogs.go b/sdk/go/alicloud/rds/getModifyParameterLogs.go index b0016649f7..e5e1b3fcba 100644 --- a/sdk/go/alicloud/rds/getModifyParameterLogs.go +++ b/sdk/go/alicloud/rds/getModifyParameterLogs.go @@ -78,21 +78,11 @@ type GetModifyParameterLogsResult struct { } func GetModifyParameterLogsOutput(ctx *pulumi.Context, args GetModifyParameterLogsOutputArgs, opts ...pulumi.InvokeOption) GetModifyParameterLogsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetModifyParameterLogsResultOutput, error) { args := v.(GetModifyParameterLogsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetModifyParameterLogsResult - secret, err := ctx.InvokePackageRaw("alicloud:rds/getModifyParameterLogs:getModifyParameterLogs", args, &rv, "", opts...) - if err != nil { - return GetModifyParameterLogsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetModifyParameterLogsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetModifyParameterLogsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:rds/getModifyParameterLogs:getModifyParameterLogs", args, GetModifyParameterLogsResultOutput{}, options).(GetModifyParameterLogsResultOutput), nil }).(GetModifyParameterLogsResultOutput) } diff --git a/sdk/go/alicloud/rds/getRdsBackups.go b/sdk/go/alicloud/rds/getRdsBackups.go index 75ab8a2567..3d6be47388 100644 --- a/sdk/go/alicloud/rds/getRdsBackups.go +++ b/sdk/go/alicloud/rds/getRdsBackups.go @@ -86,21 +86,11 @@ type GetRdsBackupsResult struct { } func GetRdsBackupsOutput(ctx *pulumi.Context, args GetRdsBackupsOutputArgs, opts ...pulumi.InvokeOption) GetRdsBackupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRdsBackupsResultOutput, error) { args := v.(GetRdsBackupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRdsBackupsResult - secret, err := ctx.InvokePackageRaw("alicloud:rds/getRdsBackups:getRdsBackups", args, &rv, "", opts...) - if err != nil { - return GetRdsBackupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRdsBackupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRdsBackupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:rds/getRdsBackups:getRdsBackups", args, GetRdsBackupsResultOutput{}, options).(GetRdsBackupsResultOutput), nil }).(GetRdsBackupsResultOutput) } diff --git a/sdk/go/alicloud/rds/getRdsParameterGroups.go b/sdk/go/alicloud/rds/getRdsParameterGroups.go index e6c8f02bc0..827950b2d1 100644 --- a/sdk/go/alicloud/rds/getRdsParameterGroups.go +++ b/sdk/go/alicloud/rds/getRdsParameterGroups.go @@ -42,21 +42,11 @@ type GetRdsParameterGroupsResult struct { } func GetRdsParameterGroupsOutput(ctx *pulumi.Context, args GetRdsParameterGroupsOutputArgs, opts ...pulumi.InvokeOption) GetRdsParameterGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRdsParameterGroupsResultOutput, error) { args := v.(GetRdsParameterGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRdsParameterGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:rds/getRdsParameterGroups:getRdsParameterGroups", args, &rv, "", opts...) - if err != nil { - return GetRdsParameterGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRdsParameterGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRdsParameterGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:rds/getRdsParameterGroups:getRdsParameterGroups", args, GetRdsParameterGroupsResultOutput{}, options).(GetRdsParameterGroupsResultOutput), nil }).(GetRdsParameterGroupsResultOutput) } diff --git a/sdk/go/alicloud/rds/getSlots.go b/sdk/go/alicloud/rds/getSlots.go index c88aa565fc..fb28ea8ace 100644 --- a/sdk/go/alicloud/rds/getSlots.go +++ b/sdk/go/alicloud/rds/getSlots.go @@ -75,21 +75,11 @@ type GetSlotsResult struct { } func GetSlotsOutput(ctx *pulumi.Context, args GetSlotsOutputArgs, opts ...pulumi.InvokeOption) GetSlotsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSlotsResultOutput, error) { args := v.(GetSlotsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSlotsResult - secret, err := ctx.InvokePackageRaw("alicloud:rds/getSlots:getSlots", args, &rv, "", opts...) - if err != nil { - return GetSlotsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSlotsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSlotsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:rds/getSlots:getSlots", args, GetSlotsResultOutput{}, options).(GetSlotsResultOutput), nil }).(GetSlotsResultOutput) } diff --git a/sdk/go/alicloud/rds/getZones.go b/sdk/go/alicloud/rds/getZones.go index 657d7d2e6a..1dcc084b7f 100644 --- a/sdk/go/alicloud/rds/getZones.go +++ b/sdk/go/alicloud/rds/getZones.go @@ -96,21 +96,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:rds/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:rds/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/resourcemanager/getAccountDeletionCheckTask.go b/sdk/go/alicloud/resourcemanager/getAccountDeletionCheckTask.go index c235726c67..28f4074a8e 100644 --- a/sdk/go/alicloud/resourcemanager/getAccountDeletionCheckTask.go +++ b/sdk/go/alicloud/resourcemanager/getAccountDeletionCheckTask.go @@ -77,21 +77,11 @@ type GetAccountDeletionCheckTaskResult struct { } func GetAccountDeletionCheckTaskOutput(ctx *pulumi.Context, args GetAccountDeletionCheckTaskOutputArgs, opts ...pulumi.InvokeOption) GetAccountDeletionCheckTaskResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccountDeletionCheckTaskResultOutput, error) { args := v.(GetAccountDeletionCheckTaskArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccountDeletionCheckTaskResult - secret, err := ctx.InvokePackageRaw("alicloud:resourcemanager/getAccountDeletionCheckTask:getAccountDeletionCheckTask", args, &rv, "", opts...) - if err != nil { - return GetAccountDeletionCheckTaskResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccountDeletionCheckTaskResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccountDeletionCheckTaskResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:resourcemanager/getAccountDeletionCheckTask:getAccountDeletionCheckTask", args, GetAccountDeletionCheckTaskResultOutput{}, options).(GetAccountDeletionCheckTaskResultOutput), nil }).(GetAccountDeletionCheckTaskResultOutput) } diff --git a/sdk/go/alicloud/resourcemanager/getAccounts.go b/sdk/go/alicloud/resourcemanager/getAccounts.go index b92e38593e..e8c9b88943 100644 --- a/sdk/go/alicloud/resourcemanager/getAccounts.go +++ b/sdk/go/alicloud/resourcemanager/getAccounts.go @@ -76,21 +76,11 @@ type GetAccountsResult struct { } func GetAccountsOutput(ctx *pulumi.Context, args GetAccountsOutputArgs, opts ...pulumi.InvokeOption) GetAccountsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccountsResultOutput, error) { args := v.(GetAccountsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccountsResult - secret, err := ctx.InvokePackageRaw("alicloud:resourcemanager/getAccounts:getAccounts", args, &rv, "", opts...) - if err != nil { - return GetAccountsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccountsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccountsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:resourcemanager/getAccounts:getAccounts", args, GetAccountsResultOutput{}, options).(GetAccountsResultOutput), nil }).(GetAccountsResultOutput) } diff --git a/sdk/go/alicloud/resourcemanager/getControlPolicies.go b/sdk/go/alicloud/resourcemanager/getControlPolicies.go index ad6c1fbf27..6c41e57a5f 100644 --- a/sdk/go/alicloud/resourcemanager/getControlPolicies.go +++ b/sdk/go/alicloud/resourcemanager/getControlPolicies.go @@ -87,21 +87,11 @@ type GetControlPoliciesResult struct { } func GetControlPoliciesOutput(ctx *pulumi.Context, args GetControlPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetControlPoliciesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetControlPoliciesResultOutput, error) { args := v.(GetControlPoliciesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetControlPoliciesResult - secret, err := ctx.InvokePackageRaw("alicloud:resourcemanager/getControlPolicies:getControlPolicies", args, &rv, "", opts...) - if err != nil { - return GetControlPoliciesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetControlPoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetControlPoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:resourcemanager/getControlPolicies:getControlPolicies", args, GetControlPoliciesResultOutput{}, options).(GetControlPoliciesResultOutput), nil }).(GetControlPoliciesResultOutput) } diff --git a/sdk/go/alicloud/resourcemanager/getControlPolicyAttachments.go b/sdk/go/alicloud/resourcemanager/getControlPolicyAttachments.go index 72d6150c6f..e1660fdfef 100644 --- a/sdk/go/alicloud/resourcemanager/getControlPolicyAttachments.go +++ b/sdk/go/alicloud/resourcemanager/getControlPolicyAttachments.go @@ -78,21 +78,11 @@ type GetControlPolicyAttachmentsResult struct { } func GetControlPolicyAttachmentsOutput(ctx *pulumi.Context, args GetControlPolicyAttachmentsOutputArgs, opts ...pulumi.InvokeOption) GetControlPolicyAttachmentsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetControlPolicyAttachmentsResultOutput, error) { args := v.(GetControlPolicyAttachmentsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetControlPolicyAttachmentsResult - secret, err := ctx.InvokePackageRaw("alicloud:resourcemanager/getControlPolicyAttachments:getControlPolicyAttachments", args, &rv, "", opts...) - if err != nil { - return GetControlPolicyAttachmentsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetControlPolicyAttachmentsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetControlPolicyAttachmentsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:resourcemanager/getControlPolicyAttachments:getControlPolicyAttachments", args, GetControlPolicyAttachmentsResultOutput{}, options).(GetControlPolicyAttachmentsResultOutput), nil }).(GetControlPolicyAttachmentsResultOutput) } diff --git a/sdk/go/alicloud/resourcemanager/getDelegatedAdministrators.go b/sdk/go/alicloud/resourcemanager/getDelegatedAdministrators.go index 41cce245aa..a13112f0eb 100644 --- a/sdk/go/alicloud/resourcemanager/getDelegatedAdministrators.go +++ b/sdk/go/alicloud/resourcemanager/getDelegatedAdministrators.go @@ -80,21 +80,11 @@ type GetDelegatedAdministratorsResult struct { } func GetDelegatedAdministratorsOutput(ctx *pulumi.Context, args GetDelegatedAdministratorsOutputArgs, opts ...pulumi.InvokeOption) GetDelegatedAdministratorsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDelegatedAdministratorsResultOutput, error) { args := v.(GetDelegatedAdministratorsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDelegatedAdministratorsResult - secret, err := ctx.InvokePackageRaw("alicloud:resourcemanager/getDelegatedAdministrators:getDelegatedAdministrators", args, &rv, "", opts...) - if err != nil { - return GetDelegatedAdministratorsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDelegatedAdministratorsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDelegatedAdministratorsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:resourcemanager/getDelegatedAdministrators:getDelegatedAdministrators", args, GetDelegatedAdministratorsResultOutput{}, options).(GetDelegatedAdministratorsResultOutput), nil }).(GetDelegatedAdministratorsResultOutput) } diff --git a/sdk/go/alicloud/resourcemanager/getFolders.go b/sdk/go/alicloud/resourcemanager/getFolders.go index b4b59b4179..6adb9d7477 100644 --- a/sdk/go/alicloud/resourcemanager/getFolders.go +++ b/sdk/go/alicloud/resourcemanager/getFolders.go @@ -100,21 +100,11 @@ type GetFoldersResult struct { } func GetFoldersOutput(ctx *pulumi.Context, args GetFoldersOutputArgs, opts ...pulumi.InvokeOption) GetFoldersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFoldersResultOutput, error) { args := v.(GetFoldersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFoldersResult - secret, err := ctx.InvokePackageRaw("alicloud:resourcemanager/getFolders:getFolders", args, &rv, "", opts...) - if err != nil { - return GetFoldersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFoldersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFoldersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:resourcemanager/getFolders:getFolders", args, GetFoldersResultOutput{}, options).(GetFoldersResultOutput), nil }).(GetFoldersResultOutput) } diff --git a/sdk/go/alicloud/resourcemanager/getHandshakes.go b/sdk/go/alicloud/resourcemanager/getHandshakes.go index dff55604fc..9c42e31ce5 100644 --- a/sdk/go/alicloud/resourcemanager/getHandshakes.go +++ b/sdk/go/alicloud/resourcemanager/getHandshakes.go @@ -76,21 +76,11 @@ type GetHandshakesResult struct { } func GetHandshakesOutput(ctx *pulumi.Context, args GetHandshakesOutputArgs, opts ...pulumi.InvokeOption) GetHandshakesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHandshakesResultOutput, error) { args := v.(GetHandshakesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHandshakesResult - secret, err := ctx.InvokePackageRaw("alicloud:resourcemanager/getHandshakes:getHandshakes", args, &rv, "", opts...) - if err != nil { - return GetHandshakesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHandshakesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHandshakesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:resourcemanager/getHandshakes:getHandshakes", args, GetHandshakesResultOutput{}, options).(GetHandshakesResultOutput), nil }).(GetHandshakesResultOutput) } diff --git a/sdk/go/alicloud/resourcemanager/getPolicies.go b/sdk/go/alicloud/resourcemanager/getPolicies.go index 9dea33dc93..84c0e32c8d 100644 --- a/sdk/go/alicloud/resourcemanager/getPolicies.go +++ b/sdk/go/alicloud/resourcemanager/getPolicies.go @@ -53,21 +53,11 @@ type GetPoliciesResult struct { } func GetPoliciesOutput(ctx *pulumi.Context, args GetPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetPoliciesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPoliciesResultOutput, error) { args := v.(GetPoliciesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPoliciesResult - secret, err := ctx.InvokePackageRaw("alicloud:resourcemanager/getPolicies:getPolicies", args, &rv, "", opts...) - if err != nil { - return GetPoliciesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:resourcemanager/getPolicies:getPolicies", args, GetPoliciesResultOutput{}, options).(GetPoliciesResultOutput), nil }).(GetPoliciesResultOutput) } diff --git a/sdk/go/alicloud/resourcemanager/getPolicyAttachments.go b/sdk/go/alicloud/resourcemanager/getPolicyAttachments.go index 825f801b96..4e3afb8b72 100644 --- a/sdk/go/alicloud/resourcemanager/getPolicyAttachments.go +++ b/sdk/go/alicloud/resourcemanager/getPolicyAttachments.go @@ -90,21 +90,11 @@ type GetPolicyAttachmentsResult struct { } func GetPolicyAttachmentsOutput(ctx *pulumi.Context, args GetPolicyAttachmentsOutputArgs, opts ...pulumi.InvokeOption) GetPolicyAttachmentsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPolicyAttachmentsResultOutput, error) { args := v.(GetPolicyAttachmentsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPolicyAttachmentsResult - secret, err := ctx.InvokePackageRaw("alicloud:resourcemanager/getPolicyAttachments:getPolicyAttachments", args, &rv, "", opts...) - if err != nil { - return GetPolicyAttachmentsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPolicyAttachmentsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPolicyAttachmentsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:resourcemanager/getPolicyAttachments:getPolicyAttachments", args, GetPolicyAttachmentsResultOutput{}, options).(GetPolicyAttachmentsResultOutput), nil }).(GetPolicyAttachmentsResultOutput) } diff --git a/sdk/go/alicloud/resourcemanager/getPolicyVersions.go b/sdk/go/alicloud/resourcemanager/getPolicyVersions.go index 030ef4640c..8eb2ecbfc3 100644 --- a/sdk/go/alicloud/resourcemanager/getPolicyVersions.go +++ b/sdk/go/alicloud/resourcemanager/getPolicyVersions.go @@ -81,21 +81,11 @@ type GetPolicyVersionsResult struct { } func GetPolicyVersionsOutput(ctx *pulumi.Context, args GetPolicyVersionsOutputArgs, opts ...pulumi.InvokeOption) GetPolicyVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPolicyVersionsResultOutput, error) { args := v.(GetPolicyVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPolicyVersionsResult - secret, err := ctx.InvokePackageRaw("alicloud:resourcemanager/getPolicyVersions:getPolicyVersions", args, &rv, "", opts...) - if err != nil { - return GetPolicyVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPolicyVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPolicyVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:resourcemanager/getPolicyVersions:getPolicyVersions", args, GetPolicyVersionsResultOutput{}, options).(GetPolicyVersionsResultOutput), nil }).(GetPolicyVersionsResultOutput) } diff --git a/sdk/go/alicloud/resourcemanager/getResourceDirectories.go b/sdk/go/alicloud/resourcemanager/getResourceDirectories.go index 85a19f788f..b216e64cdd 100644 --- a/sdk/go/alicloud/resourcemanager/getResourceDirectories.go +++ b/sdk/go/alicloud/resourcemanager/getResourceDirectories.go @@ -65,21 +65,11 @@ type GetResourceDirectoriesResult struct { } func GetResourceDirectoriesOutput(ctx *pulumi.Context, args GetResourceDirectoriesOutputArgs, opts ...pulumi.InvokeOption) GetResourceDirectoriesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetResourceDirectoriesResultOutput, error) { args := v.(GetResourceDirectoriesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetResourceDirectoriesResult - secret, err := ctx.InvokePackageRaw("alicloud:resourcemanager/getResourceDirectories:getResourceDirectories", args, &rv, "", opts...) - if err != nil { - return GetResourceDirectoriesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetResourceDirectoriesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetResourceDirectoriesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:resourcemanager/getResourceDirectories:getResourceDirectories", args, GetResourceDirectoriesResultOutput{}, options).(GetResourceDirectoriesResultOutput), nil }).(GetResourceDirectoriesResultOutput) } diff --git a/sdk/go/alicloud/resourcemanager/getResourceGroups.go b/sdk/go/alicloud/resourcemanager/getResourceGroups.go index 311f76c4e7..54e5cee827 100644 --- a/sdk/go/alicloud/resourcemanager/getResourceGroups.go +++ b/sdk/go/alicloud/resourcemanager/getResourceGroups.go @@ -85,21 +85,11 @@ type GetResourceGroupsResult struct { } func GetResourceGroupsOutput(ctx *pulumi.Context, args GetResourceGroupsOutputArgs, opts ...pulumi.InvokeOption) GetResourceGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetResourceGroupsResultOutput, error) { args := v.(GetResourceGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetResourceGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:resourcemanager/getResourceGroups:getResourceGroups", args, &rv, "", opts...) - if err != nil { - return GetResourceGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetResourceGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetResourceGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:resourcemanager/getResourceGroups:getResourceGroups", args, GetResourceGroupsResultOutput{}, options).(GetResourceGroupsResultOutput), nil }).(GetResourceGroupsResultOutput) } diff --git a/sdk/go/alicloud/resourcemanager/getResourceShares.go b/sdk/go/alicloud/resourcemanager/getResourceShares.go index 83363f1df8..2e0682dfcb 100644 --- a/sdk/go/alicloud/resourcemanager/getResourceShares.go +++ b/sdk/go/alicloud/resourcemanager/getResourceShares.go @@ -88,21 +88,11 @@ type GetResourceSharesResult struct { } func GetResourceSharesOutput(ctx *pulumi.Context, args GetResourceSharesOutputArgs, opts ...pulumi.InvokeOption) GetResourceSharesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetResourceSharesResultOutput, error) { args := v.(GetResourceSharesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetResourceSharesResult - secret, err := ctx.InvokePackageRaw("alicloud:resourcemanager/getResourceShares:getResourceShares", args, &rv, "", opts...) - if err != nil { - return GetResourceSharesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetResourceSharesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetResourceSharesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:resourcemanager/getResourceShares:getResourceShares", args, GetResourceSharesResultOutput{}, options).(GetResourceSharesResultOutput), nil }).(GetResourceSharesResultOutput) } diff --git a/sdk/go/alicloud/resourcemanager/getRoles.go b/sdk/go/alicloud/resourcemanager/getRoles.go index 2043081484..74b6e0d7b2 100644 --- a/sdk/go/alicloud/resourcemanager/getRoles.go +++ b/sdk/go/alicloud/resourcemanager/getRoles.go @@ -79,21 +79,11 @@ type GetRolesResult struct { } func GetRolesOutput(ctx *pulumi.Context, args GetRolesOutputArgs, opts ...pulumi.InvokeOption) GetRolesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRolesResultOutput, error) { args := v.(GetRolesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRolesResult - secret, err := ctx.InvokePackageRaw("alicloud:resourcemanager/getRoles:getRoles", args, &rv, "", opts...) - if err != nil { - return GetRolesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRolesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRolesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:resourcemanager/getRoles:getRoles", args, GetRolesResultOutput{}, options).(GetRolesResultOutput), nil }).(GetRolesResultOutput) } diff --git a/sdk/go/alicloud/resourcemanager/getSharedResources.go b/sdk/go/alicloud/resourcemanager/getSharedResources.go index 2c4a21c1c4..3b3bad2e80 100644 --- a/sdk/go/alicloud/resourcemanager/getSharedResources.go +++ b/sdk/go/alicloud/resourcemanager/getSharedResources.go @@ -51,21 +51,11 @@ type GetSharedResourcesResult struct { } func GetSharedResourcesOutput(ctx *pulumi.Context, args GetSharedResourcesOutputArgs, opts ...pulumi.InvokeOption) GetSharedResourcesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSharedResourcesResultOutput, error) { args := v.(GetSharedResourcesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSharedResourcesResult - secret, err := ctx.InvokePackageRaw("alicloud:resourcemanager/getSharedResources:getSharedResources", args, &rv, "", opts...) - if err != nil { - return GetSharedResourcesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSharedResourcesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSharedResourcesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:resourcemanager/getSharedResources:getSharedResources", args, GetSharedResourcesResultOutput{}, options).(GetSharedResourcesResultOutput), nil }).(GetSharedResourcesResultOutput) } diff --git a/sdk/go/alicloud/resourcemanager/getSharedTargets.go b/sdk/go/alicloud/resourcemanager/getSharedTargets.go index 5c755ec08a..c220f3818c 100644 --- a/sdk/go/alicloud/resourcemanager/getSharedTargets.go +++ b/sdk/go/alicloud/resourcemanager/getSharedTargets.go @@ -110,21 +110,11 @@ type GetSharedTargetsResult struct { } func GetSharedTargetsOutput(ctx *pulumi.Context, args GetSharedTargetsOutputArgs, opts ...pulumi.InvokeOption) GetSharedTargetsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSharedTargetsResultOutput, error) { args := v.(GetSharedTargetsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSharedTargetsResult - secret, err := ctx.InvokePackageRaw("alicloud:resourcemanager/getSharedTargets:getSharedTargets", args, &rv, "", opts...) - if err != nil { - return GetSharedTargetsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSharedTargetsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSharedTargetsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:resourcemanager/getSharedTargets:getSharedTargets", args, GetSharedTargetsResultOutput{}, options).(GetSharedTargetsResultOutput), nil }).(GetSharedTargetsResultOutput) } diff --git a/sdk/go/alicloud/rocketmq/getGroups.go b/sdk/go/alicloud/rocketmq/getGroups.go index b9c92332c7..b3f9e46727 100644 --- a/sdk/go/alicloud/rocketmq/getGroups.go +++ b/sdk/go/alicloud/rocketmq/getGroups.go @@ -63,21 +63,11 @@ type GetGroupsResult struct { } func GetGroupsOutput(ctx *pulumi.Context, args GetGroupsOutputArgs, opts ...pulumi.InvokeOption) GetGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGroupsResultOutput, error) { args := v.(GetGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:rocketmq/getGroups:getGroups", args, &rv, "", opts...) - if err != nil { - return GetGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:rocketmq/getGroups:getGroups", args, GetGroupsResultOutput{}, options).(GetGroupsResultOutput), nil }).(GetGroupsResultOutput) } diff --git a/sdk/go/alicloud/rocketmq/getInstances.go b/sdk/go/alicloud/rocketmq/getInstances.go index afe4733106..c4591f5d08 100644 --- a/sdk/go/alicloud/rocketmq/getInstances.go +++ b/sdk/go/alicloud/rocketmq/getInstances.go @@ -103,21 +103,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:rocketmq/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:rocketmq/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/rocketmq/getService.go b/sdk/go/alicloud/rocketmq/getService.go index 494707d757..5f43447a2b 100644 --- a/sdk/go/alicloud/rocketmq/getService.go +++ b/sdk/go/alicloud/rocketmq/getService.go @@ -70,21 +70,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:rocketmq/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:rocketmq/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/rocketmq/getTopics.go b/sdk/go/alicloud/rocketmq/getTopics.go index ad354f4f99..838ea1c4e7 100644 --- a/sdk/go/alicloud/rocketmq/getTopics.go +++ b/sdk/go/alicloud/rocketmq/getTopics.go @@ -111,21 +111,11 @@ type GetTopicsResult struct { } func GetTopicsOutput(ctx *pulumi.Context, args GetTopicsOutputArgs, opts ...pulumi.InvokeOption) GetTopicsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTopicsResultOutput, error) { args := v.(GetTopicsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTopicsResult - secret, err := ctx.InvokePackageRaw("alicloud:rocketmq/getTopics:getTopics", args, &rv, "", opts...) - if err != nil { - return GetTopicsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTopicsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTopicsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:rocketmq/getTopics:getTopics", args, GetTopicsResultOutput{}, options).(GetTopicsResultOutput), nil }).(GetTopicsResultOutput) } diff --git a/sdk/go/alicloud/ros/getChangeSets.go b/sdk/go/alicloud/ros/getChangeSets.go index a2d6d23628..ea828641fe 100644 --- a/sdk/go/alicloud/ros/getChangeSets.go +++ b/sdk/go/alicloud/ros/getChangeSets.go @@ -91,21 +91,11 @@ type GetChangeSetsResult struct { } func GetChangeSetsOutput(ctx *pulumi.Context, args GetChangeSetsOutputArgs, opts ...pulumi.InvokeOption) GetChangeSetsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetChangeSetsResultOutput, error) { args := v.(GetChangeSetsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetChangeSetsResult - secret, err := ctx.InvokePackageRaw("alicloud:ros/getChangeSets:getChangeSets", args, &rv, "", opts...) - if err != nil { - return GetChangeSetsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetChangeSetsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetChangeSetsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ros/getChangeSets:getChangeSets", args, GetChangeSetsResultOutput{}, options).(GetChangeSetsResultOutput), nil }).(GetChangeSetsResultOutput) } diff --git a/sdk/go/alicloud/ros/getRegions.go b/sdk/go/alicloud/ros/getRegions.go index 403be1d66c..4057b0edce 100644 --- a/sdk/go/alicloud/ros/getRegions.go +++ b/sdk/go/alicloud/ros/getRegions.go @@ -66,21 +66,11 @@ type GetRegionsResult struct { } func GetRegionsOutput(ctx *pulumi.Context, args GetRegionsOutputArgs, opts ...pulumi.InvokeOption) GetRegionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegionsResultOutput, error) { args := v.(GetRegionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegionsResult - secret, err := ctx.InvokePackageRaw("alicloud:ros/getRegions:getRegions", args, &rv, "", opts...) - if err != nil { - return GetRegionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ros/getRegions:getRegions", args, GetRegionsResultOutput{}, options).(GetRegionsResultOutput), nil }).(GetRegionsResultOutput) } diff --git a/sdk/go/alicloud/ros/getStackGroups.go b/sdk/go/alicloud/ros/getStackGroups.go index dd6f2d3f5f..6d1af2ebf4 100644 --- a/sdk/go/alicloud/ros/getStackGroups.go +++ b/sdk/go/alicloud/ros/getStackGroups.go @@ -84,21 +84,11 @@ type GetStackGroupsResult struct { } func GetStackGroupsOutput(ctx *pulumi.Context, args GetStackGroupsOutputArgs, opts ...pulumi.InvokeOption) GetStackGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetStackGroupsResultOutput, error) { args := v.(GetStackGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetStackGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:ros/getStackGroups:getStackGroups", args, &rv, "", opts...) - if err != nil { - return GetStackGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetStackGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetStackGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ros/getStackGroups:getStackGroups", args, GetStackGroupsResultOutput{}, options).(GetStackGroupsResultOutput), nil }).(GetStackGroupsResultOutput) } diff --git a/sdk/go/alicloud/ros/getStackInstances.go b/sdk/go/alicloud/ros/getStackInstances.go index 978aaeba1a..0a9f7c2451 100644 --- a/sdk/go/alicloud/ros/getStackInstances.go +++ b/sdk/go/alicloud/ros/getStackInstances.go @@ -123,21 +123,11 @@ type GetStackInstancesResult struct { } func GetStackInstancesOutput(ctx *pulumi.Context, args GetStackInstancesOutputArgs, opts ...pulumi.InvokeOption) GetStackInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetStackInstancesResultOutput, error) { args := v.(GetStackInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetStackInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:ros/getStackInstances:getStackInstances", args, &rv, "", opts...) - if err != nil { - return GetStackInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetStackInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetStackInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ros/getStackInstances:getStackInstances", args, GetStackInstancesResultOutput{}, options).(GetStackInstancesResultOutput), nil }).(GetStackInstancesResultOutput) } diff --git a/sdk/go/alicloud/ros/getStacks.go b/sdk/go/alicloud/ros/getStacks.go index 22f73c5d4b..5794b1c173 100644 --- a/sdk/go/alicloud/ros/getStacks.go +++ b/sdk/go/alicloud/ros/getStacks.go @@ -96,21 +96,11 @@ type GetStacksResult struct { } func GetStacksOutput(ctx *pulumi.Context, args GetStacksOutputArgs, opts ...pulumi.InvokeOption) GetStacksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetStacksResultOutput, error) { args := v.(GetStacksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetStacksResult - secret, err := ctx.InvokePackageRaw("alicloud:ros/getStacks:getStacks", args, &rv, "", opts...) - if err != nil { - return GetStacksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetStacksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetStacksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ros/getStacks:getStacks", args, GetStacksResultOutput{}, options).(GetStacksResultOutput), nil }).(GetStacksResultOutput) } diff --git a/sdk/go/alicloud/ros/getTemplateScratches.go b/sdk/go/alicloud/ros/getTemplateScratches.go index 8804752715..95900ff173 100644 --- a/sdk/go/alicloud/ros/getTemplateScratches.go +++ b/sdk/go/alicloud/ros/getTemplateScratches.go @@ -96,21 +96,11 @@ type GetTemplateScratchesResult struct { } func GetTemplateScratchesOutput(ctx *pulumi.Context, args GetTemplateScratchesOutputArgs, opts ...pulumi.InvokeOption) GetTemplateScratchesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTemplateScratchesResultOutput, error) { args := v.(GetTemplateScratchesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTemplateScratchesResult - secret, err := ctx.InvokePackageRaw("alicloud:ros/getTemplateScratches:getTemplateScratches", args, &rv, "", opts...) - if err != nil { - return GetTemplateScratchesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTemplateScratchesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTemplateScratchesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ros/getTemplateScratches:getTemplateScratches", args, GetTemplateScratchesResultOutput{}, options).(GetTemplateScratchesResultOutput), nil }).(GetTemplateScratchesResultOutput) } diff --git a/sdk/go/alicloud/ros/getTemplates.go b/sdk/go/alicloud/ros/getTemplates.go index 60ee84a604..84ab86f383 100644 --- a/sdk/go/alicloud/ros/getTemplates.go +++ b/sdk/go/alicloud/ros/getTemplates.go @@ -90,21 +90,11 @@ type GetTemplatesResult struct { } func GetTemplatesOutput(ctx *pulumi.Context, args GetTemplatesOutputArgs, opts ...pulumi.InvokeOption) GetTemplatesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTemplatesResultOutput, error) { args := v.(GetTemplatesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTemplatesResult - secret, err := ctx.InvokePackageRaw("alicloud:ros/getTemplates:getTemplates", args, &rv, "", opts...) - if err != nil { - return GetTemplatesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTemplatesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTemplatesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:ros/getTemplates:getTemplates", args, GetTemplatesResultOutput{}, options).(GetTemplatesResultOutput), nil }).(GetTemplatesResultOutput) } diff --git a/sdk/go/alicloud/sae/getApplicationScalingRules.go b/sdk/go/alicloud/sae/getApplicationScalingRules.go index 0f266c0e98..a08cc5d9a6 100644 --- a/sdk/go/alicloud/sae/getApplicationScalingRules.go +++ b/sdk/go/alicloud/sae/getApplicationScalingRules.go @@ -78,21 +78,11 @@ type GetApplicationScalingRulesResult struct { } func GetApplicationScalingRulesOutput(ctx *pulumi.Context, args GetApplicationScalingRulesOutputArgs, opts ...pulumi.InvokeOption) GetApplicationScalingRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetApplicationScalingRulesResultOutput, error) { args := v.(GetApplicationScalingRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetApplicationScalingRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:sae/getApplicationScalingRules:getApplicationScalingRules", args, &rv, "", opts...) - if err != nil { - return GetApplicationScalingRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetApplicationScalingRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetApplicationScalingRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:sae/getApplicationScalingRules:getApplicationScalingRules", args, GetApplicationScalingRulesResultOutput{}, options).(GetApplicationScalingRulesResultOutput), nil }).(GetApplicationScalingRulesResultOutput) } diff --git a/sdk/go/alicloud/sae/getApplications.go b/sdk/go/alicloud/sae/getApplications.go index 1da95dee7e..ec7c36bd24 100644 --- a/sdk/go/alicloud/sae/getApplications.go +++ b/sdk/go/alicloud/sae/getApplications.go @@ -149,21 +149,11 @@ type GetApplicationsResult struct { } func GetApplicationsOutput(ctx *pulumi.Context, args GetApplicationsOutputArgs, opts ...pulumi.InvokeOption) GetApplicationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetApplicationsResultOutput, error) { args := v.(GetApplicationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetApplicationsResult - secret, err := ctx.InvokePackageRaw("alicloud:sae/getApplications:getApplications", args, &rv, "", opts...) - if err != nil { - return GetApplicationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetApplicationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetApplicationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:sae/getApplications:getApplications", args, GetApplicationsResultOutput{}, options).(GetApplicationsResultOutput), nil }).(GetApplicationsResultOutput) } diff --git a/sdk/go/alicloud/sae/getConfigMaps.go b/sdk/go/alicloud/sae/getConfigMaps.go index d29e8db1cf..8e02f3f05a 100644 --- a/sdk/go/alicloud/sae/getConfigMaps.go +++ b/sdk/go/alicloud/sae/getConfigMaps.go @@ -110,21 +110,11 @@ type GetConfigMapsResult struct { } func GetConfigMapsOutput(ctx *pulumi.Context, args GetConfigMapsOutputArgs, opts ...pulumi.InvokeOption) GetConfigMapsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetConfigMapsResultOutput, error) { args := v.(GetConfigMapsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetConfigMapsResult - secret, err := ctx.InvokePackageRaw("alicloud:sae/getConfigMaps:getConfigMaps", args, &rv, "", opts...) - if err != nil { - return GetConfigMapsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetConfigMapsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetConfigMapsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:sae/getConfigMaps:getConfigMaps", args, GetConfigMapsResultOutput{}, options).(GetConfigMapsResultOutput), nil }).(GetConfigMapsResultOutput) } diff --git a/sdk/go/alicloud/sae/getGreyTagRoutes.go b/sdk/go/alicloud/sae/getGreyTagRoutes.go index a95427899a..01ec8582e3 100644 --- a/sdk/go/alicloud/sae/getGreyTagRoutes.go +++ b/sdk/go/alicloud/sae/getGreyTagRoutes.go @@ -79,21 +79,11 @@ type GetGreyTagRoutesResult struct { } func GetGreyTagRoutesOutput(ctx *pulumi.Context, args GetGreyTagRoutesOutputArgs, opts ...pulumi.InvokeOption) GetGreyTagRoutesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGreyTagRoutesResultOutput, error) { args := v.(GetGreyTagRoutesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGreyTagRoutesResult - secret, err := ctx.InvokePackageRaw("alicloud:sae/getGreyTagRoutes:getGreyTagRoutes", args, &rv, "", opts...) - if err != nil { - return GetGreyTagRoutesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGreyTagRoutesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGreyTagRoutesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:sae/getGreyTagRoutes:getGreyTagRoutes", args, GetGreyTagRoutesResultOutput{}, options).(GetGreyTagRoutesResultOutput), nil }).(GetGreyTagRoutesResultOutput) } diff --git a/sdk/go/alicloud/sae/getIngresses.go b/sdk/go/alicloud/sae/getIngresses.go index 17beb7332c..241f3d7c26 100644 --- a/sdk/go/alicloud/sae/getIngresses.go +++ b/sdk/go/alicloud/sae/getIngresses.go @@ -48,21 +48,11 @@ type GetIngressesResult struct { } func GetIngressesOutput(ctx *pulumi.Context, args GetIngressesOutputArgs, opts ...pulumi.InvokeOption) GetIngressesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIngressesResultOutput, error) { args := v.(GetIngressesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIngressesResult - secret, err := ctx.InvokePackageRaw("alicloud:sae/getIngresses:getIngresses", args, &rv, "", opts...) - if err != nil { - return GetIngressesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIngressesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIngressesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:sae/getIngresses:getIngresses", args, GetIngressesResultOutput{}, options).(GetIngressesResultOutput), nil }).(GetIngressesResultOutput) } diff --git a/sdk/go/alicloud/sae/getInstanceSpecifications.go b/sdk/go/alicloud/sae/getInstanceSpecifications.go index 6c4cdf002d..e9893ef4c9 100644 --- a/sdk/go/alicloud/sae/getInstanceSpecifications.go +++ b/sdk/go/alicloud/sae/getInstanceSpecifications.go @@ -69,21 +69,11 @@ type GetInstanceSpecificationsResult struct { } func GetInstanceSpecificationsOutput(ctx *pulumi.Context, args GetInstanceSpecificationsOutputArgs, opts ...pulumi.InvokeOption) GetInstanceSpecificationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceSpecificationsResultOutput, error) { args := v.(GetInstanceSpecificationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceSpecificationsResult - secret, err := ctx.InvokePackageRaw("alicloud:sae/getInstanceSpecifications:getInstanceSpecifications", args, &rv, "", opts...) - if err != nil { - return GetInstanceSpecificationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceSpecificationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceSpecificationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:sae/getInstanceSpecifications:getInstanceSpecifications", args, GetInstanceSpecificationsResultOutput{}, options).(GetInstanceSpecificationsResultOutput), nil }).(GetInstanceSpecificationsResultOutput) } diff --git a/sdk/go/alicloud/sae/getNamespaces.go b/sdk/go/alicloud/sae/getNamespaces.go index 63465c65f5..b2eddee33f 100644 --- a/sdk/go/alicloud/sae/getNamespaces.go +++ b/sdk/go/alicloud/sae/getNamespaces.go @@ -75,21 +75,11 @@ type GetNamespacesResult struct { } func GetNamespacesOutput(ctx *pulumi.Context, args GetNamespacesOutputArgs, opts ...pulumi.InvokeOption) GetNamespacesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNamespacesResultOutput, error) { args := v.(GetNamespacesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNamespacesResult - secret, err := ctx.InvokePackageRaw("alicloud:sae/getNamespaces:getNamespaces", args, &rv, "", opts...) - if err != nil { - return GetNamespacesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNamespacesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNamespacesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:sae/getNamespaces:getNamespaces", args, GetNamespacesResultOutput{}, options).(GetNamespacesResultOutput), nil }).(GetNamespacesResultOutput) } diff --git a/sdk/go/alicloud/sae/getService.go b/sdk/go/alicloud/sae/getService.go index 00cbbc8cee..52b5cbbdff 100644 --- a/sdk/go/alicloud/sae/getService.go +++ b/sdk/go/alicloud/sae/getService.go @@ -72,21 +72,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:sae/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:sae/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/sag/getAcls.go b/sdk/go/alicloud/sag/getAcls.go index 6f9d143a49..96ccf96950 100644 --- a/sdk/go/alicloud/sag/getAcls.go +++ b/sdk/go/alicloud/sag/getAcls.go @@ -86,21 +86,11 @@ type GetAclsResult struct { } func GetAclsOutput(ctx *pulumi.Context, args GetAclsOutputArgs, opts ...pulumi.InvokeOption) GetAclsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAclsResultOutput, error) { args := v.(GetAclsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAclsResult - secret, err := ctx.InvokePackageRaw("alicloud:sag/getAcls:getAcls", args, &rv, "", opts...) - if err != nil { - return GetAclsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAclsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAclsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:sag/getAcls:getAcls", args, GetAclsResultOutput{}, options).(GetAclsResultOutput), nil }).(GetAclsResultOutput) } diff --git a/sdk/go/alicloud/sag/getSmartagFlowLogs.go b/sdk/go/alicloud/sag/getSmartagFlowLogs.go index 663fde76c8..e6e4e82b2c 100644 --- a/sdk/go/alicloud/sag/getSmartagFlowLogs.go +++ b/sdk/go/alicloud/sag/getSmartagFlowLogs.go @@ -94,21 +94,11 @@ type GetSmartagFlowLogsResult struct { } func GetSmartagFlowLogsOutput(ctx *pulumi.Context, args GetSmartagFlowLogsOutputArgs, opts ...pulumi.InvokeOption) GetSmartagFlowLogsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSmartagFlowLogsResultOutput, error) { args := v.(GetSmartagFlowLogsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSmartagFlowLogsResult - secret, err := ctx.InvokePackageRaw("alicloud:sag/getSmartagFlowLogs:getSmartagFlowLogs", args, &rv, "", opts...) - if err != nil { - return GetSmartagFlowLogsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSmartagFlowLogsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSmartagFlowLogsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:sag/getSmartagFlowLogs:getSmartagFlowLogs", args, GetSmartagFlowLogsResultOutput{}, options).(GetSmartagFlowLogsResultOutput), nil }).(GetSmartagFlowLogsResultOutput) } diff --git a/sdk/go/alicloud/scdn/getDomains.go b/sdk/go/alicloud/scdn/getDomains.go index 9ec9b3d9a5..977b92048f 100644 --- a/sdk/go/alicloud/scdn/getDomains.go +++ b/sdk/go/alicloud/scdn/getDomains.go @@ -84,21 +84,11 @@ type GetDomainsResult struct { } func GetDomainsOutput(ctx *pulumi.Context, args GetDomainsOutputArgs, opts ...pulumi.InvokeOption) GetDomainsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDomainsResultOutput, error) { args := v.(GetDomainsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDomainsResult - secret, err := ctx.InvokePackageRaw("alicloud:scdn/getDomains:getDomains", args, &rv, "", opts...) - if err != nil { - return GetDomainsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDomainsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDomainsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:scdn/getDomains:getDomains", args, GetDomainsResultOutput{}, options).(GetDomainsResultOutput), nil }).(GetDomainsResultOutput) } diff --git a/sdk/go/alicloud/schedulerx/getNamespaces.go b/sdk/go/alicloud/schedulerx/getNamespaces.go index f96e91fd99..0bff22bd7f 100644 --- a/sdk/go/alicloud/schedulerx/getNamespaces.go +++ b/sdk/go/alicloud/schedulerx/getNamespaces.go @@ -80,21 +80,11 @@ type GetNamespacesResult struct { } func GetNamespacesOutput(ctx *pulumi.Context, args GetNamespacesOutputArgs, opts ...pulumi.InvokeOption) GetNamespacesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNamespacesResultOutput, error) { args := v.(GetNamespacesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNamespacesResult - secret, err := ctx.InvokePackageRaw("alicloud:schedulerx/getNamespaces:getNamespaces", args, &rv, "", opts...) - if err != nil { - return GetNamespacesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNamespacesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNamespacesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:schedulerx/getNamespaces:getNamespaces", args, GetNamespacesResultOutput{}, options).(GetNamespacesResultOutput), nil }).(GetNamespacesResultOutput) } diff --git a/sdk/go/alicloud/sddp/getConfigs.go b/sdk/go/alicloud/sddp/getConfigs.go index d6b3d69bfb..82229e7c9e 100644 --- a/sdk/go/alicloud/sddp/getConfigs.go +++ b/sdk/go/alicloud/sddp/getConfigs.go @@ -80,21 +80,11 @@ type GetConfigsResult struct { } func GetConfigsOutput(ctx *pulumi.Context, args GetConfigsOutputArgs, opts ...pulumi.InvokeOption) GetConfigsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetConfigsResultOutput, error) { args := v.(GetConfigsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetConfigsResult - secret, err := ctx.InvokePackageRaw("alicloud:sddp/getConfigs:getConfigs", args, &rv, "", opts...) - if err != nil { - return GetConfigsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetConfigsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetConfigsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:sddp/getConfigs:getConfigs", args, GetConfigsResultOutput{}, options).(GetConfigsResultOutput), nil }).(GetConfigsResultOutput) } diff --git a/sdk/go/alicloud/sddp/getDataLimits.go b/sdk/go/alicloud/sddp/getDataLimits.go index cfa5a73dda..f79aced953 100644 --- a/sdk/go/alicloud/sddp/getDataLimits.go +++ b/sdk/go/alicloud/sddp/getDataLimits.go @@ -75,21 +75,11 @@ type GetDataLimitsResult struct { } func GetDataLimitsOutput(ctx *pulumi.Context, args GetDataLimitsOutputArgs, opts ...pulumi.InvokeOption) GetDataLimitsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDataLimitsResultOutput, error) { args := v.(GetDataLimitsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDataLimitsResult - secret, err := ctx.InvokePackageRaw("alicloud:sddp/getDataLimits:getDataLimits", args, &rv, "", opts...) - if err != nil { - return GetDataLimitsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDataLimitsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDataLimitsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:sddp/getDataLimits:getDataLimits", args, GetDataLimitsResultOutput{}, options).(GetDataLimitsResultOutput), nil }).(GetDataLimitsResultOutput) } diff --git a/sdk/go/alicloud/sddp/getInstances.go b/sdk/go/alicloud/sddp/getInstances.go index 283008994f..249976b84f 100644 --- a/sdk/go/alicloud/sddp/getInstances.go +++ b/sdk/go/alicloud/sddp/getInstances.go @@ -66,21 +66,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:sddp/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:sddp/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/sddp/getRules.go b/sdk/go/alicloud/sddp/getRules.go index d90c885f26..2e75297248 100644 --- a/sdk/go/alicloud/sddp/getRules.go +++ b/sdk/go/alicloud/sddp/getRules.go @@ -113,21 +113,11 @@ type GetRulesResult struct { } func GetRulesOutput(ctx *pulumi.Context, args GetRulesOutputArgs, opts ...pulumi.InvokeOption) GetRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRulesResultOutput, error) { args := v.(GetRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:sddp/getRules:getRules", args, &rv, "", opts...) - if err != nil { - return GetRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:sddp/getRules:getRules", args, GetRulesResultOutput{}, options).(GetRulesResultOutput), nil }).(GetRulesResultOutput) } diff --git a/sdk/go/alicloud/securitycenter/getGroups.go b/sdk/go/alicloud/securitycenter/getGroups.go index 631c8ac917..848d697457 100644 --- a/sdk/go/alicloud/securitycenter/getGroups.go +++ b/sdk/go/alicloud/securitycenter/getGroups.go @@ -75,21 +75,11 @@ type GetGroupsResult struct { } func GetGroupsOutput(ctx *pulumi.Context, args GetGroupsOutputArgs, opts ...pulumi.InvokeOption) GetGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGroupsResultOutput, error) { args := v.(GetGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:securitycenter/getGroups:getGroups", args, &rv, "", opts...) - if err != nil { - return GetGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:securitycenter/getGroups:getGroups", args, GetGroupsResultOutput{}, options).(GetGroupsResultOutput), nil }).(GetGroupsResultOutput) } diff --git a/sdk/go/alicloud/selectdb/getDbClusters.go b/sdk/go/alicloud/selectdb/getDbClusters.go index 9e7ffa01ed..e15fc3ba80 100644 --- a/sdk/go/alicloud/selectdb/getDbClusters.go +++ b/sdk/go/alicloud/selectdb/getDbClusters.go @@ -122,21 +122,11 @@ type GetDbClustersResult struct { } func GetDbClustersOutput(ctx *pulumi.Context, args GetDbClustersOutputArgs, opts ...pulumi.InvokeOption) GetDbClustersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDbClustersResultOutput, error) { args := v.(GetDbClustersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDbClustersResult - secret, err := ctx.InvokePackageRaw("alicloud:selectdb/getDbClusters:getDbClusters", args, &rv, "", opts...) - if err != nil { - return GetDbClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDbClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDbClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:selectdb/getDbClusters:getDbClusters", args, GetDbClustersResultOutput{}, options).(GetDbClustersResultOutput), nil }).(GetDbClustersResultOutput) } diff --git a/sdk/go/alicloud/selectdb/getDbInstances.go b/sdk/go/alicloud/selectdb/getDbInstances.go index 115062a6f7..f085b66c9b 100644 --- a/sdk/go/alicloud/selectdb/getDbInstances.go +++ b/sdk/go/alicloud/selectdb/getDbInstances.go @@ -117,21 +117,11 @@ type GetDbInstancesResult struct { } func GetDbInstancesOutput(ctx *pulumi.Context, args GetDbInstancesOutputArgs, opts ...pulumi.InvokeOption) GetDbInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDbInstancesResultOutput, error) { args := v.(GetDbInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDbInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:selectdb/getDbInstances:getDbInstances", args, &rv, "", opts...) - if err != nil { - return GetDbInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDbInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDbInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:selectdb/getDbInstances:getDbInstances", args, GetDbInstancesResultOutput{}, options).(GetDbInstancesResultOutput), nil }).(GetDbInstancesResultOutput) } diff --git a/sdk/go/alicloud/servicecatalog/getEndUserProducts.go b/sdk/go/alicloud/servicecatalog/getEndUserProducts.go index 1662742fbb..9921f8f5a7 100644 --- a/sdk/go/alicloud/servicecatalog/getEndUserProducts.go +++ b/sdk/go/alicloud/servicecatalog/getEndUserProducts.go @@ -84,21 +84,11 @@ type GetEndUserProductsResult struct { } func GetEndUserProductsOutput(ctx *pulumi.Context, args GetEndUserProductsOutputArgs, opts ...pulumi.InvokeOption) GetEndUserProductsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEndUserProductsResultOutput, error) { args := v.(GetEndUserProductsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEndUserProductsResult - secret, err := ctx.InvokePackageRaw("alicloud:servicecatalog/getEndUserProducts:getEndUserProducts", args, &rv, "", opts...) - if err != nil { - return GetEndUserProductsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEndUserProductsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEndUserProductsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:servicecatalog/getEndUserProducts:getEndUserProducts", args, GetEndUserProductsResultOutput{}, options).(GetEndUserProductsResultOutput), nil }).(GetEndUserProductsResultOutput) } diff --git a/sdk/go/alicloud/servicecatalog/getLaunchOptions.go b/sdk/go/alicloud/servicecatalog/getLaunchOptions.go index 7f0be1b476..a7eb241ddb 100644 --- a/sdk/go/alicloud/servicecatalog/getLaunchOptions.go +++ b/sdk/go/alicloud/servicecatalog/getLaunchOptions.go @@ -88,21 +88,11 @@ type GetLaunchOptionsResult struct { } func GetLaunchOptionsOutput(ctx *pulumi.Context, args GetLaunchOptionsOutputArgs, opts ...pulumi.InvokeOption) GetLaunchOptionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetLaunchOptionsResultOutput, error) { args := v.(GetLaunchOptionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetLaunchOptionsResult - secret, err := ctx.InvokePackageRaw("alicloud:servicecatalog/getLaunchOptions:getLaunchOptions", args, &rv, "", opts...) - if err != nil { - return GetLaunchOptionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetLaunchOptionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetLaunchOptionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:servicecatalog/getLaunchOptions:getLaunchOptions", args, GetLaunchOptionsResultOutput{}, options).(GetLaunchOptionsResultOutput), nil }).(GetLaunchOptionsResultOutput) } diff --git a/sdk/go/alicloud/servicecatalog/getPortfolios.go b/sdk/go/alicloud/servicecatalog/getPortfolios.go index c8299c7847..1328b56eaa 100644 --- a/sdk/go/alicloud/servicecatalog/getPortfolios.go +++ b/sdk/go/alicloud/servicecatalog/getPortfolios.go @@ -93,21 +93,11 @@ type GetPortfoliosResult struct { } func GetPortfoliosOutput(ctx *pulumi.Context, args GetPortfoliosOutputArgs, opts ...pulumi.InvokeOption) GetPortfoliosResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPortfoliosResultOutput, error) { args := v.(GetPortfoliosArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPortfoliosResult - secret, err := ctx.InvokePackageRaw("alicloud:servicecatalog/getPortfolios:getPortfolios", args, &rv, "", opts...) - if err != nil { - return GetPortfoliosResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPortfoliosResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPortfoliosResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:servicecatalog/getPortfolios:getPortfolios", args, GetPortfoliosResultOutput{}, options).(GetPortfoliosResultOutput), nil }).(GetPortfoliosResultOutput) } diff --git a/sdk/go/alicloud/servicecatalog/getProductAsEndUsers.go b/sdk/go/alicloud/servicecatalog/getProductAsEndUsers.go index c3061323c1..2fe0fcafca 100644 --- a/sdk/go/alicloud/servicecatalog/getProductAsEndUsers.go +++ b/sdk/go/alicloud/servicecatalog/getProductAsEndUsers.go @@ -81,21 +81,11 @@ type GetProductAsEndUsersResult struct { } func GetProductAsEndUsersOutput(ctx *pulumi.Context, args GetProductAsEndUsersOutputArgs, opts ...pulumi.InvokeOption) GetProductAsEndUsersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProductAsEndUsersResultOutput, error) { args := v.(GetProductAsEndUsersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProductAsEndUsersResult - secret, err := ctx.InvokePackageRaw("alicloud:servicecatalog/getProductAsEndUsers:getProductAsEndUsers", args, &rv, "", opts...) - if err != nil { - return GetProductAsEndUsersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProductAsEndUsersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProductAsEndUsersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:servicecatalog/getProductAsEndUsers:getProductAsEndUsers", args, GetProductAsEndUsersResultOutput{}, options).(GetProductAsEndUsersResultOutput), nil }).(GetProductAsEndUsersResultOutput) } diff --git a/sdk/go/alicloud/servicecatalog/getProductVersions.go b/sdk/go/alicloud/servicecatalog/getProductVersions.go index 455c95f205..0834f68d49 100644 --- a/sdk/go/alicloud/servicecatalog/getProductVersions.go +++ b/sdk/go/alicloud/servicecatalog/getProductVersions.go @@ -84,21 +84,11 @@ type GetProductVersionsResult struct { } func GetProductVersionsOutput(ctx *pulumi.Context, args GetProductVersionsOutputArgs, opts ...pulumi.InvokeOption) GetProductVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProductVersionsResultOutput, error) { args := v.(GetProductVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProductVersionsResult - secret, err := ctx.InvokePackageRaw("alicloud:servicecatalog/getProductVersions:getProductVersions", args, &rv, "", opts...) - if err != nil { - return GetProductVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProductVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProductVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:servicecatalog/getProductVersions:getProductVersions", args, GetProductVersionsResultOutput{}, options).(GetProductVersionsResultOutput), nil }).(GetProductVersionsResultOutput) } diff --git a/sdk/go/alicloud/servicecatalog/getProvisionedProducts.go b/sdk/go/alicloud/servicecatalog/getProvisionedProducts.go index 6262f8de51..743acca39b 100644 --- a/sdk/go/alicloud/servicecatalog/getProvisionedProducts.go +++ b/sdk/go/alicloud/servicecatalog/getProvisionedProducts.go @@ -101,21 +101,11 @@ type GetProvisionedProductsResult struct { } func GetProvisionedProductsOutput(ctx *pulumi.Context, args GetProvisionedProductsOutputArgs, opts ...pulumi.InvokeOption) GetProvisionedProductsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProvisionedProductsResultOutput, error) { args := v.(GetProvisionedProductsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProvisionedProductsResult - secret, err := ctx.InvokePackageRaw("alicloud:servicecatalog/getProvisionedProducts:getProvisionedProducts", args, &rv, "", opts...) - if err != nil { - return GetProvisionedProductsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProvisionedProductsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProvisionedProductsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:servicecatalog/getProvisionedProducts:getProvisionedProducts", args, GetProvisionedProductsResultOutput{}, options).(GetProvisionedProductsResultOutput), nil }).(GetProvisionedProductsResultOutput) } diff --git a/sdk/go/alicloud/servicemesh/getExtensionProviders.go b/sdk/go/alicloud/servicemesh/getExtensionProviders.go index 98fc196af7..bc37e65f60 100644 --- a/sdk/go/alicloud/servicemesh/getExtensionProviders.go +++ b/sdk/go/alicloud/servicemesh/getExtensionProviders.go @@ -98,21 +98,11 @@ type GetExtensionProvidersResult struct { } func GetExtensionProvidersOutput(ctx *pulumi.Context, args GetExtensionProvidersOutputArgs, opts ...pulumi.InvokeOption) GetExtensionProvidersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetExtensionProvidersResultOutput, error) { args := v.(GetExtensionProvidersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetExtensionProvidersResult - secret, err := ctx.InvokePackageRaw("alicloud:servicemesh/getExtensionProviders:getExtensionProviders", args, &rv, "", opts...) - if err != nil { - return GetExtensionProvidersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetExtensionProvidersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetExtensionProvidersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:servicemesh/getExtensionProviders:getExtensionProviders", args, GetExtensionProvidersResultOutput{}, options).(GetExtensionProvidersResultOutput), nil }).(GetExtensionProvidersResultOutput) } diff --git a/sdk/go/alicloud/servicemesh/getServiceMeshes.go b/sdk/go/alicloud/servicemesh/getServiceMeshes.go index 546220515c..f1a516d381 100644 --- a/sdk/go/alicloud/servicemesh/getServiceMeshes.go +++ b/sdk/go/alicloud/servicemesh/getServiceMeshes.go @@ -55,21 +55,11 @@ type GetServiceMeshesResult struct { } func GetServiceMeshesOutput(ctx *pulumi.Context, args GetServiceMeshesOutputArgs, opts ...pulumi.InvokeOption) GetServiceMeshesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceMeshesResultOutput, error) { args := v.(GetServiceMeshesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceMeshesResult - secret, err := ctx.InvokePackageRaw("alicloud:servicemesh/getServiceMeshes:getServiceMeshes", args, &rv, "", opts...) - if err != nil { - return GetServiceMeshesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceMeshesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceMeshesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:servicemesh/getServiceMeshes:getServiceMeshes", args, GetServiceMeshesResultOutput{}, options).(GetServiceMeshesResultOutput), nil }).(GetServiceMeshesResultOutput) } diff --git a/sdk/go/alicloud/servicemesh/getVersions.go b/sdk/go/alicloud/servicemesh/getVersions.go index d79d02a16d..c61d090024 100644 --- a/sdk/go/alicloud/servicemesh/getVersions.go +++ b/sdk/go/alicloud/servicemesh/getVersions.go @@ -76,21 +76,11 @@ type GetVersionsResult struct { } func GetVersionsOutput(ctx *pulumi.Context, args GetVersionsOutputArgs, opts ...pulumi.InvokeOption) GetVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVersionsResultOutput, error) { args := v.(GetVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVersionsResult - secret, err := ctx.InvokePackageRaw("alicloud:servicemesh/getVersions:getVersions", args, &rv, "", opts...) - if err != nil { - return GetVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:servicemesh/getVersions:getVersions", args, GetVersionsResultOutput{}, options).(GetVersionsResultOutput), nil }).(GetVersionsResultOutput) } diff --git a/sdk/go/alicloud/simpleapplicationserver/getImages.go b/sdk/go/alicloud/simpleapplicationserver/getImages.go index 079c7546ff..eb905f671a 100644 --- a/sdk/go/alicloud/simpleapplicationserver/getImages.go +++ b/sdk/go/alicloud/simpleapplicationserver/getImages.go @@ -47,21 +47,11 @@ type GetImagesResult struct { } func GetImagesOutput(ctx *pulumi.Context, args GetImagesOutputArgs, opts ...pulumi.InvokeOption) GetImagesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetImagesResultOutput, error) { args := v.(GetImagesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetImagesResult - secret, err := ctx.InvokePackageRaw("alicloud:simpleapplicationserver/getImages:getImages", args, &rv, "", opts...) - if err != nil { - return GetImagesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetImagesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetImagesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:simpleapplicationserver/getImages:getImages", args, GetImagesResultOutput{}, options).(GetImagesResultOutput), nil }).(GetImagesResultOutput) } diff --git a/sdk/go/alicloud/simpleapplicationserver/getInstances.go b/sdk/go/alicloud/simpleapplicationserver/getInstances.go index 686aa91563..869f18080c 100644 --- a/sdk/go/alicloud/simpleapplicationserver/getInstances.go +++ b/sdk/go/alicloud/simpleapplicationserver/getInstances.go @@ -90,21 +90,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:simpleapplicationserver/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:simpleapplicationserver/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/simpleapplicationserver/getServerCustomImages.go b/sdk/go/alicloud/simpleapplicationserver/getServerCustomImages.go index 3c0e38cefb..53fc90a97f 100644 --- a/sdk/go/alicloud/simpleapplicationserver/getServerCustomImages.go +++ b/sdk/go/alicloud/simpleapplicationserver/getServerCustomImages.go @@ -84,21 +84,11 @@ type GetServerCustomImagesResult struct { } func GetServerCustomImagesOutput(ctx *pulumi.Context, args GetServerCustomImagesOutputArgs, opts ...pulumi.InvokeOption) GetServerCustomImagesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServerCustomImagesResultOutput, error) { args := v.(GetServerCustomImagesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServerCustomImagesResult - secret, err := ctx.InvokePackageRaw("alicloud:simpleapplicationserver/getServerCustomImages:getServerCustomImages", args, &rv, "", opts...) - if err != nil { - return GetServerCustomImagesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServerCustomImagesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServerCustomImagesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:simpleapplicationserver/getServerCustomImages:getServerCustomImages", args, GetServerCustomImagesResultOutput{}, options).(GetServerCustomImagesResultOutput), nil }).(GetServerCustomImagesResultOutput) } diff --git a/sdk/go/alicloud/simpleapplicationserver/getServerDisks.go b/sdk/go/alicloud/simpleapplicationserver/getServerDisks.go index 4e50673bcf..9e76baf993 100644 --- a/sdk/go/alicloud/simpleapplicationserver/getServerDisks.go +++ b/sdk/go/alicloud/simpleapplicationserver/getServerDisks.go @@ -114,21 +114,11 @@ type GetServerDisksResult struct { } func GetServerDisksOutput(ctx *pulumi.Context, args GetServerDisksOutputArgs, opts ...pulumi.InvokeOption) GetServerDisksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServerDisksResultOutput, error) { args := v.(GetServerDisksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServerDisksResult - secret, err := ctx.InvokePackageRaw("alicloud:simpleapplicationserver/getServerDisks:getServerDisks", args, &rv, "", opts...) - if err != nil { - return GetServerDisksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServerDisksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServerDisksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:simpleapplicationserver/getServerDisks:getServerDisks", args, GetServerDisksResultOutput{}, options).(GetServerDisksResultOutput), nil }).(GetServerDisksResultOutput) } diff --git a/sdk/go/alicloud/simpleapplicationserver/getServerFirewallRules.go b/sdk/go/alicloud/simpleapplicationserver/getServerFirewallRules.go index c0d379f31c..7a66fe3cb3 100644 --- a/sdk/go/alicloud/simpleapplicationserver/getServerFirewallRules.go +++ b/sdk/go/alicloud/simpleapplicationserver/getServerFirewallRules.go @@ -78,21 +78,11 @@ type GetServerFirewallRulesResult struct { } func GetServerFirewallRulesOutput(ctx *pulumi.Context, args GetServerFirewallRulesOutputArgs, opts ...pulumi.InvokeOption) GetServerFirewallRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServerFirewallRulesResultOutput, error) { args := v.(GetServerFirewallRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServerFirewallRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:simpleapplicationserver/getServerFirewallRules:getServerFirewallRules", args, &rv, "", opts...) - if err != nil { - return GetServerFirewallRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServerFirewallRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServerFirewallRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:simpleapplicationserver/getServerFirewallRules:getServerFirewallRules", args, GetServerFirewallRulesResultOutput{}, options).(GetServerFirewallRulesResultOutput), nil }).(GetServerFirewallRulesResultOutput) } diff --git a/sdk/go/alicloud/simpleapplicationserver/getServerPlans.go b/sdk/go/alicloud/simpleapplicationserver/getServerPlans.go index 07b8d2944f..3b368465ec 100644 --- a/sdk/go/alicloud/simpleapplicationserver/getServerPlans.go +++ b/sdk/go/alicloud/simpleapplicationserver/getServerPlans.go @@ -93,21 +93,11 @@ type GetServerPlansResult struct { } func GetServerPlansOutput(ctx *pulumi.Context, args GetServerPlansOutputArgs, opts ...pulumi.InvokeOption) GetServerPlansResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServerPlansResultOutput, error) { args := v.(GetServerPlansArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServerPlansResult - secret, err := ctx.InvokePackageRaw("alicloud:simpleapplicationserver/getServerPlans:getServerPlans", args, &rv, "", opts...) - if err != nil { - return GetServerPlansResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServerPlansResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServerPlansResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:simpleapplicationserver/getServerPlans:getServerPlans", args, GetServerPlansResultOutput{}, options).(GetServerPlansResultOutput), nil }).(GetServerPlansResultOutput) } diff --git a/sdk/go/alicloud/simpleapplicationserver/getServerSnapshots.go b/sdk/go/alicloud/simpleapplicationserver/getServerSnapshots.go index 96cf3f09d1..d34d1916d4 100644 --- a/sdk/go/alicloud/simpleapplicationserver/getServerSnapshots.go +++ b/sdk/go/alicloud/simpleapplicationserver/getServerSnapshots.go @@ -113,21 +113,11 @@ type GetServerSnapshotsResult struct { } func GetServerSnapshotsOutput(ctx *pulumi.Context, args GetServerSnapshotsOutputArgs, opts ...pulumi.InvokeOption) GetServerSnapshotsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServerSnapshotsResultOutput, error) { args := v.(GetServerSnapshotsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServerSnapshotsResult - secret, err := ctx.InvokePackageRaw("alicloud:simpleapplicationserver/getServerSnapshots:getServerSnapshots", args, &rv, "", opts...) - if err != nil { - return GetServerSnapshotsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServerSnapshotsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServerSnapshotsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:simpleapplicationserver/getServerSnapshots:getServerSnapshots", args, GetServerSnapshotsResultOutput{}, options).(GetServerSnapshotsResultOutput), nil }).(GetServerSnapshotsResultOutput) } diff --git a/sdk/go/alicloud/slb/getAcls.go b/sdk/go/alicloud/slb/getAcls.go index a0e0e75210..65cac8a9d0 100644 --- a/sdk/go/alicloud/slb/getAcls.go +++ b/sdk/go/alicloud/slb/getAcls.go @@ -96,21 +96,11 @@ type GetAclsResult struct { } func GetAclsOutput(ctx *pulumi.Context, args GetAclsOutputArgs, opts ...pulumi.InvokeOption) GetAclsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAclsResultOutput, error) { args := v.(GetAclsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAclsResult - secret, err := ctx.InvokePackageRaw("alicloud:slb/getAcls:getAcls", args, &rv, "", opts...) - if err != nil { - return GetAclsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAclsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAclsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:slb/getAcls:getAcls", args, GetAclsResultOutput{}, options).(GetAclsResultOutput), nil }).(GetAclsResultOutput) } diff --git a/sdk/go/alicloud/slb/getApplicationLoadBalancers.go b/sdk/go/alicloud/slb/getApplicationLoadBalancers.go index e4a038fb27..5992de1283 100644 --- a/sdk/go/alicloud/slb/getApplicationLoadBalancers.go +++ b/sdk/go/alicloud/slb/getApplicationLoadBalancers.go @@ -151,21 +151,11 @@ type GetApplicationLoadBalancersResult struct { } func GetApplicationLoadBalancersOutput(ctx *pulumi.Context, args GetApplicationLoadBalancersOutputArgs, opts ...pulumi.InvokeOption) GetApplicationLoadBalancersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetApplicationLoadBalancersResultOutput, error) { args := v.(GetApplicationLoadBalancersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetApplicationLoadBalancersResult - secret, err := ctx.InvokePackageRaw("alicloud:slb/getApplicationLoadBalancers:getApplicationLoadBalancers", args, &rv, "", opts...) - if err != nil { - return GetApplicationLoadBalancersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetApplicationLoadBalancersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetApplicationLoadBalancersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:slb/getApplicationLoadBalancers:getApplicationLoadBalancers", args, GetApplicationLoadBalancersResultOutput{}, options).(GetApplicationLoadBalancersResultOutput), nil }).(GetApplicationLoadBalancersResultOutput) } diff --git a/sdk/go/alicloud/slb/getAttachments.go b/sdk/go/alicloud/slb/getAttachments.go index 012f0f6a08..9f264f4895 100644 --- a/sdk/go/alicloud/slb/getAttachments.go +++ b/sdk/go/alicloud/slb/getAttachments.go @@ -71,21 +71,11 @@ type GetAttachmentsResult struct { } func GetAttachmentsOutput(ctx *pulumi.Context, args GetAttachmentsOutputArgs, opts ...pulumi.InvokeOption) GetAttachmentsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAttachmentsResultOutput, error) { args := v.(GetAttachmentsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAttachmentsResult - secret, err := ctx.InvokePackageRaw("alicloud:slb/getAttachments:getAttachments", args, &rv, "", opts...) - if err != nil { - return GetAttachmentsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAttachmentsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAttachmentsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:slb/getAttachments:getAttachments", args, GetAttachmentsResultOutput{}, options).(GetAttachmentsResultOutput), nil }).(GetAttachmentsResultOutput) } diff --git a/sdk/go/alicloud/slb/getBackendServers.go b/sdk/go/alicloud/slb/getBackendServers.go index 0c14081650..182da22939 100644 --- a/sdk/go/alicloud/slb/getBackendServers.go +++ b/sdk/go/alicloud/slb/getBackendServers.go @@ -72,21 +72,11 @@ type GetBackendServersResult struct { } func GetBackendServersOutput(ctx *pulumi.Context, args GetBackendServersOutputArgs, opts ...pulumi.InvokeOption) GetBackendServersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBackendServersResultOutput, error) { args := v.(GetBackendServersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBackendServersResult - secret, err := ctx.InvokePackageRaw("alicloud:slb/getBackendServers:getBackendServers", args, &rv, "", opts...) - if err != nil { - return GetBackendServersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBackendServersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBackendServersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:slb/getBackendServers:getBackendServers", args, GetBackendServersResultOutput{}, options).(GetBackendServersResultOutput), nil }).(GetBackendServersResultOutput) } diff --git a/sdk/go/alicloud/slb/getCaCertificates.go b/sdk/go/alicloud/slb/getCaCertificates.go index b3ded1061e..3fbe3e894b 100644 --- a/sdk/go/alicloud/slb/getCaCertificates.go +++ b/sdk/go/alicloud/slb/getCaCertificates.go @@ -80,21 +80,11 @@ type GetCaCertificatesResult struct { } func GetCaCertificatesOutput(ctx *pulumi.Context, args GetCaCertificatesOutputArgs, opts ...pulumi.InvokeOption) GetCaCertificatesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCaCertificatesResultOutput, error) { args := v.(GetCaCertificatesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCaCertificatesResult - secret, err := ctx.InvokePackageRaw("alicloud:slb/getCaCertificates:getCaCertificates", args, &rv, "", opts...) - if err != nil { - return GetCaCertificatesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCaCertificatesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCaCertificatesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:slb/getCaCertificates:getCaCertificates", args, GetCaCertificatesResultOutput{}, options).(GetCaCertificatesResultOutput), nil }).(GetCaCertificatesResultOutput) } diff --git a/sdk/go/alicloud/slb/getDomainExtensions.go b/sdk/go/alicloud/slb/getDomainExtensions.go index ac44dadb42..6d15b511f7 100644 --- a/sdk/go/alicloud/slb/getDomainExtensions.go +++ b/sdk/go/alicloud/slb/getDomainExtensions.go @@ -78,21 +78,11 @@ type GetDomainExtensionsResult struct { } func GetDomainExtensionsOutput(ctx *pulumi.Context, args GetDomainExtensionsOutputArgs, opts ...pulumi.InvokeOption) GetDomainExtensionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDomainExtensionsResultOutput, error) { args := v.(GetDomainExtensionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDomainExtensionsResult - secret, err := ctx.InvokePackageRaw("alicloud:slb/getDomainExtensions:getDomainExtensions", args, &rv, "", opts...) - if err != nil { - return GetDomainExtensionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDomainExtensionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDomainExtensionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:slb/getDomainExtensions:getDomainExtensions", args, GetDomainExtensionsResultOutput{}, options).(GetDomainExtensionsResultOutput), nil }).(GetDomainExtensionsResultOutput) } diff --git a/sdk/go/alicloud/slb/getListeners.go b/sdk/go/alicloud/slb/getListeners.go index 1925607004..996ca92816 100644 --- a/sdk/go/alicloud/slb/getListeners.go +++ b/sdk/go/alicloud/slb/getListeners.go @@ -104,21 +104,11 @@ type GetListenersResult struct { } func GetListenersOutput(ctx *pulumi.Context, args GetListenersOutputArgs, opts ...pulumi.InvokeOption) GetListenersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetListenersResultOutput, error) { args := v.(GetListenersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetListenersResult - secret, err := ctx.InvokePackageRaw("alicloud:slb/getListeners:getListeners", args, &rv, "", opts...) - if err != nil { - return GetListenersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetListenersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetListenersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:slb/getListeners:getListeners", args, GetListenersResultOutput{}, options).(GetListenersResultOutput), nil }).(GetListenersResultOutput) } diff --git a/sdk/go/alicloud/slb/getLoadBalancers.go b/sdk/go/alicloud/slb/getLoadBalancers.go index daeaec5159..f2d09b8752 100644 --- a/sdk/go/alicloud/slb/getLoadBalancers.go +++ b/sdk/go/alicloud/slb/getLoadBalancers.go @@ -160,21 +160,11 @@ type GetLoadBalancersResult struct { } func GetLoadBalancersOutput(ctx *pulumi.Context, args GetLoadBalancersOutputArgs, opts ...pulumi.InvokeOption) GetLoadBalancersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetLoadBalancersResultOutput, error) { args := v.(GetLoadBalancersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetLoadBalancersResult - secret, err := ctx.InvokePackageRaw("alicloud:slb/getLoadBalancers:getLoadBalancers", args, &rv, "", opts...) - if err != nil { - return GetLoadBalancersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetLoadBalancersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetLoadBalancersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:slb/getLoadBalancers:getLoadBalancers", args, GetLoadBalancersResultOutput{}, options).(GetLoadBalancersResultOutput), nil }).(GetLoadBalancersResultOutput) } diff --git a/sdk/go/alicloud/slb/getMasterSlaveServerGroups.go b/sdk/go/alicloud/slb/getMasterSlaveServerGroups.go index 78acfdd848..5af09d1c07 100644 --- a/sdk/go/alicloud/slb/getMasterSlaveServerGroups.go +++ b/sdk/go/alicloud/slb/getMasterSlaveServerGroups.go @@ -52,21 +52,11 @@ type GetMasterSlaveServerGroupsResult struct { } func GetMasterSlaveServerGroupsOutput(ctx *pulumi.Context, args GetMasterSlaveServerGroupsOutputArgs, opts ...pulumi.InvokeOption) GetMasterSlaveServerGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetMasterSlaveServerGroupsResultOutput, error) { args := v.(GetMasterSlaveServerGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetMasterSlaveServerGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:slb/getMasterSlaveServerGroups:getMasterSlaveServerGroups", args, &rv, "", opts...) - if err != nil { - return GetMasterSlaveServerGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetMasterSlaveServerGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetMasterSlaveServerGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:slb/getMasterSlaveServerGroups:getMasterSlaveServerGroups", args, GetMasterSlaveServerGroupsResultOutput{}, options).(GetMasterSlaveServerGroupsResultOutput), nil }).(GetMasterSlaveServerGroupsResultOutput) } diff --git a/sdk/go/alicloud/slb/getRules.go b/sdk/go/alicloud/slb/getRules.go index e0dcde4516..a617cb0713 100644 --- a/sdk/go/alicloud/slb/getRules.go +++ b/sdk/go/alicloud/slb/getRules.go @@ -148,21 +148,11 @@ type GetRulesResult struct { } func GetRulesOutput(ctx *pulumi.Context, args GetRulesOutputArgs, opts ...pulumi.InvokeOption) GetRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRulesResultOutput, error) { args := v.(GetRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:slb/getRules:getRules", args, &rv, "", opts...) - if err != nil { - return GetRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:slb/getRules:getRules", args, GetRulesResultOutput{}, options).(GetRulesResultOutput), nil }).(GetRulesResultOutput) } diff --git a/sdk/go/alicloud/slb/getServerCertificates.go b/sdk/go/alicloud/slb/getServerCertificates.go index e136ad7e6b..76afc77374 100644 --- a/sdk/go/alicloud/slb/getServerCertificates.go +++ b/sdk/go/alicloud/slb/getServerCertificates.go @@ -80,21 +80,11 @@ type GetServerCertificatesResult struct { } func GetServerCertificatesOutput(ctx *pulumi.Context, args GetServerCertificatesOutputArgs, opts ...pulumi.InvokeOption) GetServerCertificatesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServerCertificatesResultOutput, error) { args := v.(GetServerCertificatesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServerCertificatesResult - secret, err := ctx.InvokePackageRaw("alicloud:slb/getServerCertificates:getServerCertificates", args, &rv, "", opts...) - if err != nil { - return GetServerCertificatesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServerCertificatesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServerCertificatesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:slb/getServerCertificates:getServerCertificates", args, GetServerCertificatesResultOutput{}, options).(GetServerCertificatesResultOutput), nil }).(GetServerCertificatesResultOutput) } diff --git a/sdk/go/alicloud/slb/getServerGroups.go b/sdk/go/alicloud/slb/getServerGroups.go index 4f482a5de2..53edba809c 100644 --- a/sdk/go/alicloud/slb/getServerGroups.go +++ b/sdk/go/alicloud/slb/getServerGroups.go @@ -120,21 +120,11 @@ type GetServerGroupsResult struct { } func GetServerGroupsOutput(ctx *pulumi.Context, args GetServerGroupsOutputArgs, opts ...pulumi.InvokeOption) GetServerGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServerGroupsResultOutput, error) { args := v.(GetServerGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServerGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:slb/getServerGroups:getServerGroups", args, &rv, "", opts...) - if err != nil { - return GetServerGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServerGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServerGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:slb/getServerGroups:getServerGroups", args, GetServerGroupsResultOutput{}, options).(GetServerGroupsResultOutput), nil }).(GetServerGroupsResultOutput) } diff --git a/sdk/go/alicloud/slb/getTlsCipherPolicies.go b/sdk/go/alicloud/slb/getTlsCipherPolicies.go index d53a6054e8..f17b896818 100644 --- a/sdk/go/alicloud/slb/getTlsCipherPolicies.go +++ b/sdk/go/alicloud/slb/getTlsCipherPolicies.go @@ -94,21 +94,11 @@ type GetTlsCipherPoliciesResult struct { } func GetTlsCipherPoliciesOutput(ctx *pulumi.Context, args GetTlsCipherPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetTlsCipherPoliciesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTlsCipherPoliciesResultOutput, error) { args := v.(GetTlsCipherPoliciesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTlsCipherPoliciesResult - secret, err := ctx.InvokePackageRaw("alicloud:slb/getTlsCipherPolicies:getTlsCipherPolicies", args, &rv, "", opts...) - if err != nil { - return GetTlsCipherPoliciesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTlsCipherPoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTlsCipherPoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:slb/getTlsCipherPolicies:getTlsCipherPolicies", args, GetTlsCipherPoliciesResultOutput{}, options).(GetTlsCipherPoliciesResultOutput), nil }).(GetTlsCipherPoliciesResultOutput) } diff --git a/sdk/go/alicloud/slb/getZones.go b/sdk/go/alicloud/slb/getZones.go index 76df5fd61f..ceae6d872f 100644 --- a/sdk/go/alicloud/slb/getZones.go +++ b/sdk/go/alicloud/slb/getZones.go @@ -92,21 +92,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:slb/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:slb/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/tag/getMetaTags.go b/sdk/go/alicloud/tag/getMetaTags.go index f576c3c5e1..29930982c1 100644 --- a/sdk/go/alicloud/tag/getMetaTags.go +++ b/sdk/go/alicloud/tag/getMetaTags.go @@ -71,21 +71,11 @@ type GetMetaTagsResult struct { } func GetMetaTagsOutput(ctx *pulumi.Context, args GetMetaTagsOutputArgs, opts ...pulumi.InvokeOption) GetMetaTagsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetMetaTagsResultOutput, error) { args := v.(GetMetaTagsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetMetaTagsResult - secret, err := ctx.InvokePackageRaw("alicloud:tag/getMetaTags:getMetaTags", args, &rv, "", opts...) - if err != nil { - return GetMetaTagsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetMetaTagsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetMetaTagsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:tag/getMetaTags:getMetaTags", args, GetMetaTagsResultOutput{}, options).(GetMetaTagsResultOutput), nil }).(GetMetaTagsResultOutput) } diff --git a/sdk/go/alicloud/threatdetection/getAntiBruteForceRules.go b/sdk/go/alicloud/threatdetection/getAntiBruteForceRules.go index 200463c6de..b854ea4bcf 100644 --- a/sdk/go/alicloud/threatdetection/getAntiBruteForceRules.go +++ b/sdk/go/alicloud/threatdetection/getAntiBruteForceRules.go @@ -96,21 +96,11 @@ type GetAntiBruteForceRulesResult struct { } func GetAntiBruteForceRulesOutput(ctx *pulumi.Context, args GetAntiBruteForceRulesOutputArgs, opts ...pulumi.InvokeOption) GetAntiBruteForceRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAntiBruteForceRulesResultOutput, error) { args := v.(GetAntiBruteForceRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAntiBruteForceRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:threatdetection/getAntiBruteForceRules:getAntiBruteForceRules", args, &rv, "", opts...) - if err != nil { - return GetAntiBruteForceRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAntiBruteForceRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAntiBruteForceRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:threatdetection/getAntiBruteForceRules:getAntiBruteForceRules", args, GetAntiBruteForceRulesResultOutput{}, options).(GetAntiBruteForceRulesResultOutput), nil }).(GetAntiBruteForceRulesResultOutput) } diff --git a/sdk/go/alicloud/threatdetection/getAssets.go b/sdk/go/alicloud/threatdetection/getAssets.go index 4b8a4e591c..390ee7176d 100644 --- a/sdk/go/alicloud/threatdetection/getAssets.go +++ b/sdk/go/alicloud/threatdetection/getAssets.go @@ -95,21 +95,11 @@ type GetAssetsResult struct { } func GetAssetsOutput(ctx *pulumi.Context, args GetAssetsOutputArgs, opts ...pulumi.InvokeOption) GetAssetsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAssetsResultOutput, error) { args := v.(GetAssetsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAssetsResult - secret, err := ctx.InvokePackageRaw("alicloud:threatdetection/getAssets:getAssets", args, &rv, "", opts...) - if err != nil { - return GetAssetsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAssetsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAssetsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:threatdetection/getAssets:getAssets", args, GetAssetsResultOutput{}, options).(GetAssetsResultOutput), nil }).(GetAssetsResultOutput) } diff --git a/sdk/go/alicloud/threatdetection/getBackupPolicies.go b/sdk/go/alicloud/threatdetection/getBackupPolicies.go index 5c27ad8d29..52d049b194 100644 --- a/sdk/go/alicloud/threatdetection/getBackupPolicies.go +++ b/sdk/go/alicloud/threatdetection/getBackupPolicies.go @@ -100,21 +100,11 @@ type GetBackupPoliciesResult struct { } func GetBackupPoliciesOutput(ctx *pulumi.Context, args GetBackupPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetBackupPoliciesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBackupPoliciesResultOutput, error) { args := v.(GetBackupPoliciesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBackupPoliciesResult - secret, err := ctx.InvokePackageRaw("alicloud:threatdetection/getBackupPolicies:getBackupPolicies", args, &rv, "", opts...) - if err != nil { - return GetBackupPoliciesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBackupPoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBackupPoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:threatdetection/getBackupPolicies:getBackupPolicies", args, GetBackupPoliciesResultOutput{}, options).(GetBackupPoliciesResultOutput), nil }).(GetBackupPoliciesResultOutput) } diff --git a/sdk/go/alicloud/threatdetection/getBaselineStrategies.go b/sdk/go/alicloud/threatdetection/getBaselineStrategies.go index e6ac0f3e94..7e5524bdc1 100644 --- a/sdk/go/alicloud/threatdetection/getBaselineStrategies.go +++ b/sdk/go/alicloud/threatdetection/getBaselineStrategies.go @@ -98,21 +98,11 @@ type GetBaselineStrategiesResult struct { } func GetBaselineStrategiesOutput(ctx *pulumi.Context, args GetBaselineStrategiesOutputArgs, opts ...pulumi.InvokeOption) GetBaselineStrategiesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBaselineStrategiesResultOutput, error) { args := v.(GetBaselineStrategiesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBaselineStrategiesResult - secret, err := ctx.InvokePackageRaw("alicloud:threatdetection/getBaselineStrategies:getBaselineStrategies", args, &rv, "", opts...) - if err != nil { - return GetBaselineStrategiesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBaselineStrategiesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBaselineStrategiesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:threatdetection/getBaselineStrategies:getBaselineStrategies", args, GetBaselineStrategiesResultOutput{}, options).(GetBaselineStrategiesResultOutput), nil }).(GetBaselineStrategiesResultOutput) } diff --git a/sdk/go/alicloud/threatdetection/getHoneyPots.go b/sdk/go/alicloud/threatdetection/getHoneyPots.go index b3657a7346..4c9c31f44e 100644 --- a/sdk/go/alicloud/threatdetection/getHoneyPots.go +++ b/sdk/go/alicloud/threatdetection/getHoneyPots.go @@ -95,21 +95,11 @@ type GetHoneyPotsResult struct { } func GetHoneyPotsOutput(ctx *pulumi.Context, args GetHoneyPotsOutputArgs, opts ...pulumi.InvokeOption) GetHoneyPotsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHoneyPotsResultOutput, error) { args := v.(GetHoneyPotsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHoneyPotsResult - secret, err := ctx.InvokePackageRaw("alicloud:threatdetection/getHoneyPots:getHoneyPots", args, &rv, "", opts...) - if err != nil { - return GetHoneyPotsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHoneyPotsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHoneyPotsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:threatdetection/getHoneyPots:getHoneyPots", args, GetHoneyPotsResultOutput{}, options).(GetHoneyPotsResultOutput), nil }).(GetHoneyPotsResultOutput) } diff --git a/sdk/go/alicloud/threatdetection/getHoneypotImages.go b/sdk/go/alicloud/threatdetection/getHoneypotImages.go index 2d7e8575f3..6412fa5ed0 100644 --- a/sdk/go/alicloud/threatdetection/getHoneypotImages.go +++ b/sdk/go/alicloud/threatdetection/getHoneypotImages.go @@ -81,21 +81,11 @@ type GetHoneypotImagesResult struct { } func GetHoneypotImagesOutput(ctx *pulumi.Context, args GetHoneypotImagesOutputArgs, opts ...pulumi.InvokeOption) GetHoneypotImagesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHoneypotImagesResultOutput, error) { args := v.(GetHoneypotImagesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHoneypotImagesResult - secret, err := ctx.InvokePackageRaw("alicloud:threatdetection/getHoneypotImages:getHoneypotImages", args, &rv, "", opts...) - if err != nil { - return GetHoneypotImagesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHoneypotImagesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHoneypotImagesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:threatdetection/getHoneypotImages:getHoneypotImages", args, GetHoneypotImagesResultOutput{}, options).(GetHoneypotImagesResultOutput), nil }).(GetHoneypotImagesResultOutput) } diff --git a/sdk/go/alicloud/threatdetection/getHoneypotNodes.go b/sdk/go/alicloud/threatdetection/getHoneypotNodes.go index 31f6530319..31db551bca 100644 --- a/sdk/go/alicloud/threatdetection/getHoneypotNodes.go +++ b/sdk/go/alicloud/threatdetection/getHoneypotNodes.go @@ -88,21 +88,11 @@ type GetHoneypotNodesResult struct { } func GetHoneypotNodesOutput(ctx *pulumi.Context, args GetHoneypotNodesOutputArgs, opts ...pulumi.InvokeOption) GetHoneypotNodesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHoneypotNodesResultOutput, error) { args := v.(GetHoneypotNodesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHoneypotNodesResult - secret, err := ctx.InvokePackageRaw("alicloud:threatdetection/getHoneypotNodes:getHoneypotNodes", args, &rv, "", opts...) - if err != nil { - return GetHoneypotNodesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHoneypotNodesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHoneypotNodesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:threatdetection/getHoneypotNodes:getHoneypotNodes", args, GetHoneypotNodesResultOutput{}, options).(GetHoneypotNodesResultOutput), nil }).(GetHoneypotNodesResultOutput) } diff --git a/sdk/go/alicloud/threatdetection/getHoneypotPresets.go b/sdk/go/alicloud/threatdetection/getHoneypotPresets.go index 56292bec71..ee6e1b432a 100644 --- a/sdk/go/alicloud/threatdetection/getHoneypotPresets.go +++ b/sdk/go/alicloud/threatdetection/getHoneypotPresets.go @@ -99,21 +99,11 @@ type GetHoneypotPresetsResult struct { } func GetHoneypotPresetsOutput(ctx *pulumi.Context, args GetHoneypotPresetsOutputArgs, opts ...pulumi.InvokeOption) GetHoneypotPresetsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHoneypotPresetsResultOutput, error) { args := v.(GetHoneypotPresetsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHoneypotPresetsResult - secret, err := ctx.InvokePackageRaw("alicloud:threatdetection/getHoneypotPresets:getHoneypotPresets", args, &rv, "", opts...) - if err != nil { - return GetHoneypotPresetsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHoneypotPresetsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHoneypotPresetsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:threatdetection/getHoneypotPresets:getHoneypotPresets", args, GetHoneypotPresetsResultOutput{}, options).(GetHoneypotPresetsResultOutput), nil }).(GetHoneypotPresetsResultOutput) } diff --git a/sdk/go/alicloud/threatdetection/getHoneypotProbes.go b/sdk/go/alicloud/threatdetection/getHoneypotProbes.go index fe424fd17f..59f53cdca7 100644 --- a/sdk/go/alicloud/threatdetection/getHoneypotProbes.go +++ b/sdk/go/alicloud/threatdetection/getHoneypotProbes.go @@ -117,21 +117,11 @@ type GetHoneypotProbesResult struct { } func GetHoneypotProbesOutput(ctx *pulumi.Context, args GetHoneypotProbesOutputArgs, opts ...pulumi.InvokeOption) GetHoneypotProbesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHoneypotProbesResultOutput, error) { args := v.(GetHoneypotProbesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHoneypotProbesResult - secret, err := ctx.InvokePackageRaw("alicloud:threatdetection/getHoneypotProbes:getHoneypotProbes", args, &rv, "", opts...) - if err != nil { - return GetHoneypotProbesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHoneypotProbesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHoneypotProbesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:threatdetection/getHoneypotProbes:getHoneypotProbes", args, GetHoneypotProbesResultOutput{}, options).(GetHoneypotProbesResultOutput), nil }).(GetHoneypotProbesResultOutput) } diff --git a/sdk/go/alicloud/threatdetection/getInstances.go b/sdk/go/alicloud/threatdetection/getInstances.go index 6993ef56e0..45a7d9f904 100644 --- a/sdk/go/alicloud/threatdetection/getInstances.go +++ b/sdk/go/alicloud/threatdetection/getInstances.go @@ -82,21 +82,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:threatdetection/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:threatdetection/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/threatdetection/getLogShipper.go b/sdk/go/alicloud/threatdetection/getLogShipper.go index 0ede746896..9ae679b472 100644 --- a/sdk/go/alicloud/threatdetection/getLogShipper.go +++ b/sdk/go/alicloud/threatdetection/getLogShipper.go @@ -82,21 +82,11 @@ type GetLogShipperResult struct { } func GetLogShipperOutput(ctx *pulumi.Context, args GetLogShipperOutputArgs, opts ...pulumi.InvokeOption) GetLogShipperResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetLogShipperResultOutput, error) { args := v.(GetLogShipperArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetLogShipperResult - secret, err := ctx.InvokePackageRaw("alicloud:threatdetection/getLogShipper:getLogShipper", args, &rv, "", opts...) - if err != nil { - return GetLogShipperResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetLogShipperResultOutput) - if secret { - return pulumi.ToSecret(output).(GetLogShipperResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:threatdetection/getLogShipper:getLogShipper", args, GetLogShipperResultOutput{}, options).(GetLogShipperResultOutput), nil }).(GetLogShipperResultOutput) } diff --git a/sdk/go/alicloud/threatdetection/getVulWhitelists.go b/sdk/go/alicloud/threatdetection/getVulWhitelists.go index 85b62e2dfc..c0ccf02d61 100644 --- a/sdk/go/alicloud/threatdetection/getVulWhitelists.go +++ b/sdk/go/alicloud/threatdetection/getVulWhitelists.go @@ -78,21 +78,11 @@ type GetVulWhitelistsResult struct { } func GetVulWhitelistsOutput(ctx *pulumi.Context, args GetVulWhitelistsOutputArgs, opts ...pulumi.InvokeOption) GetVulWhitelistsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVulWhitelistsResultOutput, error) { args := v.(GetVulWhitelistsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVulWhitelistsResult - secret, err := ctx.InvokePackageRaw("alicloud:threatdetection/getVulWhitelists:getVulWhitelists", args, &rv, "", opts...) - if err != nil { - return GetVulWhitelistsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVulWhitelistsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVulWhitelistsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:threatdetection/getVulWhitelists:getVulWhitelists", args, GetVulWhitelistsResultOutput{}, options).(GetVulWhitelistsResultOutput), nil }).(GetVulWhitelistsResultOutput) } diff --git a/sdk/go/alicloud/threatdetection/getWebLockConfigs.go b/sdk/go/alicloud/threatdetection/getWebLockConfigs.go index 307e225719..df1440ce6f 100644 --- a/sdk/go/alicloud/threatdetection/getWebLockConfigs.go +++ b/sdk/go/alicloud/threatdetection/getWebLockConfigs.go @@ -87,21 +87,11 @@ type GetWebLockConfigsResult struct { } func GetWebLockConfigsOutput(ctx *pulumi.Context, args GetWebLockConfigsOutputArgs, opts ...pulumi.InvokeOption) GetWebLockConfigsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetWebLockConfigsResultOutput, error) { args := v.(GetWebLockConfigsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetWebLockConfigsResult - secret, err := ctx.InvokePackageRaw("alicloud:threatdetection/getWebLockConfigs:getWebLockConfigs", args, &rv, "", opts...) - if err != nil { - return GetWebLockConfigsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetWebLockConfigsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetWebLockConfigsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:threatdetection/getWebLockConfigs:getWebLockConfigs", args, GetWebLockConfigsResultOutput{}, options).(GetWebLockConfigsResultOutput), nil }).(GetWebLockConfigsResultOutput) } diff --git a/sdk/go/alicloud/tsdb/getInstances.go b/sdk/go/alicloud/tsdb/getInstances.go index 59cf269c02..c14b164c0a 100644 --- a/sdk/go/alicloud/tsdb/getInstances.go +++ b/sdk/go/alicloud/tsdb/getInstances.go @@ -91,21 +91,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:tsdb/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:tsdb/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/tsdb/getZones.go b/sdk/go/alicloud/tsdb/getZones.go index 3d2afdfb66..6b33712d66 100644 --- a/sdk/go/alicloud/tsdb/getZones.go +++ b/sdk/go/alicloud/tsdb/getZones.go @@ -67,21 +67,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:tsdb/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:tsdb/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/alicloud/videosurveillance/getService.go b/sdk/go/alicloud/videosurveillance/getService.go index 8de5d9ca7b..638159bdca 100644 --- a/sdk/go/alicloud/videosurveillance/getService.go +++ b/sdk/go/alicloud/videosurveillance/getService.go @@ -72,21 +72,11 @@ type GetServiceResult struct { } func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:videosurveillance/getService:getService", args, &rv, "", opts...) - if err != nil { - return GetServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:videosurveillance/getService:getService", args, GetServiceResultOutput{}, options).(GetServiceResultOutput), nil }).(GetServiceResultOutput) } diff --git a/sdk/go/alicloud/videosurveillance/getSystemGroups.go b/sdk/go/alicloud/videosurveillance/getSystemGroups.go index d6141bcf02..7f07cce59a 100644 --- a/sdk/go/alicloud/videosurveillance/getSystemGroups.go +++ b/sdk/go/alicloud/videosurveillance/getSystemGroups.go @@ -93,21 +93,11 @@ type GetSystemGroupsResult struct { } func GetSystemGroupsOutput(ctx *pulumi.Context, args GetSystemGroupsOutputArgs, opts ...pulumi.InvokeOption) GetSystemGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSystemGroupsResultOutput, error) { args := v.(GetSystemGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSystemGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:videosurveillance/getSystemGroups:getSystemGroups", args, &rv, "", opts...) - if err != nil { - return GetSystemGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSystemGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSystemGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:videosurveillance/getSystemGroups:getSystemGroups", args, GetSystemGroupsResultOutput{}, options).(GetSystemGroupsResultOutput), nil }).(GetSystemGroupsResultOutput) } diff --git a/sdk/go/alicloud/vod/getDomains.go b/sdk/go/alicloud/vod/getDomains.go index e42a34a035..91378c6024 100644 --- a/sdk/go/alicloud/vod/getDomains.go +++ b/sdk/go/alicloud/vod/getDomains.go @@ -109,21 +109,11 @@ type GetDomainsResult struct { } func GetDomainsOutput(ctx *pulumi.Context, args GetDomainsOutputArgs, opts ...pulumi.InvokeOption) GetDomainsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDomainsResultOutput, error) { args := v.(GetDomainsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDomainsResult - secret, err := ctx.InvokePackageRaw("alicloud:vod/getDomains:getDomains", args, &rv, "", opts...) - if err != nil { - return GetDomainsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDomainsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDomainsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vod/getDomains:getDomains", args, GetDomainsResultOutput{}, options).(GetDomainsResultOutput), nil }).(GetDomainsResultOutput) } diff --git a/sdk/go/alicloud/vpc/getBgpGroups.go b/sdk/go/alicloud/vpc/getBgpGroups.go index 98324b0a3f..0726a70e3f 100644 --- a/sdk/go/alicloud/vpc/getBgpGroups.go +++ b/sdk/go/alicloud/vpc/getBgpGroups.go @@ -90,21 +90,11 @@ type GetBgpGroupsResult struct { } func GetBgpGroupsOutput(ctx *pulumi.Context, args GetBgpGroupsOutputArgs, opts ...pulumi.InvokeOption) GetBgpGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBgpGroupsResultOutput, error) { args := v.(GetBgpGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBgpGroupsResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getBgpGroups:getBgpGroups", args, &rv, "", opts...) - if err != nil { - return GetBgpGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBgpGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBgpGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getBgpGroups:getBgpGroups", args, GetBgpGroupsResultOutput{}, options).(GetBgpGroupsResultOutput), nil }).(GetBgpGroupsResultOutput) } diff --git a/sdk/go/alicloud/vpc/getBgpNetworks.go b/sdk/go/alicloud/vpc/getBgpNetworks.go index d74921bc3f..d4ababaa7f 100644 --- a/sdk/go/alicloud/vpc/getBgpNetworks.go +++ b/sdk/go/alicloud/vpc/getBgpNetworks.go @@ -93,21 +93,11 @@ type GetBgpNetworksResult struct { } func GetBgpNetworksOutput(ctx *pulumi.Context, args GetBgpNetworksOutputArgs, opts ...pulumi.InvokeOption) GetBgpNetworksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBgpNetworksResultOutput, error) { args := v.(GetBgpNetworksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBgpNetworksResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getBgpNetworks:getBgpNetworks", args, &rv, "", opts...) - if err != nil { - return GetBgpNetworksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBgpNetworksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBgpNetworksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getBgpNetworks:getBgpNetworks", args, GetBgpNetworksResultOutput{}, options).(GetBgpNetworksResultOutput), nil }).(GetBgpNetworksResultOutput) } diff --git a/sdk/go/alicloud/vpc/getBgpPeers.go b/sdk/go/alicloud/vpc/getBgpPeers.go index 758e955aaa..6e3e873063 100644 --- a/sdk/go/alicloud/vpc/getBgpPeers.go +++ b/sdk/go/alicloud/vpc/getBgpPeers.go @@ -104,21 +104,11 @@ type GetBgpPeersResult struct { } func GetBgpPeersOutput(ctx *pulumi.Context, args GetBgpPeersOutputArgs, opts ...pulumi.InvokeOption) GetBgpPeersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBgpPeersResultOutput, error) { args := v.(GetBgpPeersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBgpPeersResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getBgpPeers:getBgpPeers", args, &rv, "", opts...) - if err != nil { - return GetBgpPeersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBgpPeersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBgpPeersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getBgpPeers:getBgpPeers", args, GetBgpPeersResultOutput{}, options).(GetBgpPeersResultOutput), nil }).(GetBgpPeersResultOutput) } diff --git a/sdk/go/alicloud/vpc/getCommonBandwidthPackages.go b/sdk/go/alicloud/vpc/getCommonBandwidthPackages.go index 04fbde995d..a43106a52f 100644 --- a/sdk/go/alicloud/vpc/getCommonBandwidthPackages.go +++ b/sdk/go/alicloud/vpc/getCommonBandwidthPackages.go @@ -109,21 +109,11 @@ type GetCommonBandwidthPackagesResult struct { } func GetCommonBandwidthPackagesOutput(ctx *pulumi.Context, args GetCommonBandwidthPackagesOutputArgs, opts ...pulumi.InvokeOption) GetCommonBandwidthPackagesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCommonBandwidthPackagesResultOutput, error) { args := v.(GetCommonBandwidthPackagesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCommonBandwidthPackagesResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getCommonBandwidthPackages:getCommonBandwidthPackages", args, &rv, "", opts...) - if err != nil { - return GetCommonBandwidthPackagesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCommonBandwidthPackagesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCommonBandwidthPackagesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getCommonBandwidthPackages:getCommonBandwidthPackages", args, GetCommonBandwidthPackagesResultOutput{}, options).(GetCommonBandwidthPackagesResultOutput), nil }).(GetCommonBandwidthPackagesResultOutput) } diff --git a/sdk/go/alicloud/vpc/getDhcpOptionsSets.go b/sdk/go/alicloud/vpc/getDhcpOptionsSets.go index b950d63e60..8215245af3 100644 --- a/sdk/go/alicloud/vpc/getDhcpOptionsSets.go +++ b/sdk/go/alicloud/vpc/getDhcpOptionsSets.go @@ -120,21 +120,11 @@ type GetDhcpOptionsSetsResult struct { } func GetDhcpOptionsSetsOutput(ctx *pulumi.Context, args GetDhcpOptionsSetsOutputArgs, opts ...pulumi.InvokeOption) GetDhcpOptionsSetsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDhcpOptionsSetsResultOutput, error) { args := v.(GetDhcpOptionsSetsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDhcpOptionsSetsResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getDhcpOptionsSets:getDhcpOptionsSets", args, &rv, "", opts...) - if err != nil { - return GetDhcpOptionsSetsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDhcpOptionsSetsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDhcpOptionsSetsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getDhcpOptionsSets:getDhcpOptionsSets", args, GetDhcpOptionsSetsResultOutput{}, options).(GetDhcpOptionsSetsResultOutput), nil }).(GetDhcpOptionsSetsResultOutput) } diff --git a/sdk/go/alicloud/vpc/getEnhancedNatAvailableZones.go b/sdk/go/alicloud/vpc/getEnhancedNatAvailableZones.go index 6ae3bfd0e1..8092baaab7 100644 --- a/sdk/go/alicloud/vpc/getEnhancedNatAvailableZones.go +++ b/sdk/go/alicloud/vpc/getEnhancedNatAvailableZones.go @@ -36,21 +36,11 @@ type GetEnhancedNatAvailableZonesResult struct { } func GetEnhancedNatAvailableZonesOutput(ctx *pulumi.Context, args GetEnhancedNatAvailableZonesOutputArgs, opts ...pulumi.InvokeOption) GetEnhancedNatAvailableZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEnhancedNatAvailableZonesResultOutput, error) { args := v.(GetEnhancedNatAvailableZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEnhancedNatAvailableZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getEnhancedNatAvailableZones:getEnhancedNatAvailableZones", args, &rv, "", opts...) - if err != nil { - return GetEnhancedNatAvailableZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEnhancedNatAvailableZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEnhancedNatAvailableZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getEnhancedNatAvailableZones:getEnhancedNatAvailableZones", args, GetEnhancedNatAvailableZonesResultOutput{}, options).(GetEnhancedNatAvailableZonesResultOutput), nil }).(GetEnhancedNatAvailableZonesResultOutput) } diff --git a/sdk/go/alicloud/vpc/getFlowLogService.go b/sdk/go/alicloud/vpc/getFlowLogService.go index ea62df5425..46fa2e4d5d 100644 --- a/sdk/go/alicloud/vpc/getFlowLogService.go +++ b/sdk/go/alicloud/vpc/getFlowLogService.go @@ -72,21 +72,11 @@ type GetFlowLogServiceResult struct { } func GetFlowLogServiceOutput(ctx *pulumi.Context, args GetFlowLogServiceOutputArgs, opts ...pulumi.InvokeOption) GetFlowLogServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFlowLogServiceResultOutput, error) { args := v.(GetFlowLogServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFlowLogServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getFlowLogService:getFlowLogService", args, &rv, "", opts...) - if err != nil { - return GetFlowLogServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFlowLogServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFlowLogServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getFlowLogService:getFlowLogService", args, GetFlowLogServiceResultOutput{}, options).(GetFlowLogServiceResultOutput), nil }).(GetFlowLogServiceResultOutput) } diff --git a/sdk/go/alicloud/vpc/getForwardEntries.go b/sdk/go/alicloud/vpc/getForwardEntries.go index 8ecf4239d3..6debaeb201 100644 --- a/sdk/go/alicloud/vpc/getForwardEntries.go +++ b/sdk/go/alicloud/vpc/getForwardEntries.go @@ -167,21 +167,11 @@ type GetForwardEntriesResult struct { } func GetForwardEntriesOutput(ctx *pulumi.Context, args GetForwardEntriesOutputArgs, opts ...pulumi.InvokeOption) GetForwardEntriesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetForwardEntriesResultOutput, error) { args := v.(GetForwardEntriesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetForwardEntriesResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getForwardEntries:getForwardEntries", args, &rv, "", opts...) - if err != nil { - return GetForwardEntriesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetForwardEntriesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetForwardEntriesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getForwardEntries:getForwardEntries", args, GetForwardEntriesResultOutput{}, options).(GetForwardEntriesResultOutput), nil }).(GetForwardEntriesResultOutput) } diff --git a/sdk/go/alicloud/vpc/getHavips.go b/sdk/go/alicloud/vpc/getHavips.go index 755148e843..eed98082ca 100644 --- a/sdk/go/alicloud/vpc/getHavips.go +++ b/sdk/go/alicloud/vpc/getHavips.go @@ -81,21 +81,11 @@ type GetHavipsResult struct { } func GetHavipsOutput(ctx *pulumi.Context, args GetHavipsOutputArgs, opts ...pulumi.InvokeOption) GetHavipsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHavipsResultOutput, error) { args := v.(GetHavipsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHavipsResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getHavips:getHavips", args, &rv, "", opts...) - if err != nil { - return GetHavipsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHavipsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHavipsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getHavips:getHavips", args, GetHavipsResultOutput{}, options).(GetHavipsResultOutput), nil }).(GetHavipsResultOutput) } diff --git a/sdk/go/alicloud/vpc/getIpsecServers.go b/sdk/go/alicloud/vpc/getIpsecServers.go index 1132eb1ec1..2d3e8b99c0 100644 --- a/sdk/go/alicloud/vpc/getIpsecServers.go +++ b/sdk/go/alicloud/vpc/getIpsecServers.go @@ -90,21 +90,11 @@ type GetIpsecServersResult struct { } func GetIpsecServersOutput(ctx *pulumi.Context, args GetIpsecServersOutputArgs, opts ...pulumi.InvokeOption) GetIpsecServersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIpsecServersResultOutput, error) { args := v.(GetIpsecServersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIpsecServersResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getIpsecServers:getIpsecServers", args, &rv, "", opts...) - if err != nil { - return GetIpsecServersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIpsecServersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIpsecServersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getIpsecServers:getIpsecServers", args, GetIpsecServersResultOutput{}, options).(GetIpsecServersResultOutput), nil }).(GetIpsecServersResultOutput) } diff --git a/sdk/go/alicloud/vpc/getIpv4Gateways.go b/sdk/go/alicloud/vpc/getIpv4Gateways.go index 6ace6274a5..503de6735b 100644 --- a/sdk/go/alicloud/vpc/getIpv4Gateways.go +++ b/sdk/go/alicloud/vpc/getIpv4Gateways.go @@ -89,21 +89,11 @@ type GetIpv4GatewaysResult struct { } func GetIpv4GatewaysOutput(ctx *pulumi.Context, args GetIpv4GatewaysOutputArgs, opts ...pulumi.InvokeOption) GetIpv4GatewaysResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIpv4GatewaysResultOutput, error) { args := v.(GetIpv4GatewaysArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIpv4GatewaysResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getIpv4Gateways:getIpv4Gateways", args, &rv, "", opts...) - if err != nil { - return GetIpv4GatewaysResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIpv4GatewaysResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIpv4GatewaysResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getIpv4Gateways:getIpv4Gateways", args, GetIpv4GatewaysResultOutput{}, options).(GetIpv4GatewaysResultOutput), nil }).(GetIpv4GatewaysResultOutput) } diff --git a/sdk/go/alicloud/vpc/getIpv6Addresses.go b/sdk/go/alicloud/vpc/getIpv6Addresses.go index c221be9ef6..270e500518 100644 --- a/sdk/go/alicloud/vpc/getIpv6Addresses.go +++ b/sdk/go/alicloud/vpc/getIpv6Addresses.go @@ -106,21 +106,11 @@ type GetIpv6AddressesResult struct { } func GetIpv6AddressesOutput(ctx *pulumi.Context, args GetIpv6AddressesOutputArgs, opts ...pulumi.InvokeOption) GetIpv6AddressesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIpv6AddressesResultOutput, error) { args := v.(GetIpv6AddressesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIpv6AddressesResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getIpv6Addresses:getIpv6Addresses", args, &rv, "", opts...) - if err != nil { - return GetIpv6AddressesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIpv6AddressesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIpv6AddressesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getIpv6Addresses:getIpv6Addresses", args, GetIpv6AddressesResultOutput{}, options).(GetIpv6AddressesResultOutput), nil }).(GetIpv6AddressesResultOutput) } diff --git a/sdk/go/alicloud/vpc/getIpv6EgressRules.go b/sdk/go/alicloud/vpc/getIpv6EgressRules.go index d271cb0fd0..2aff515acc 100644 --- a/sdk/go/alicloud/vpc/getIpv6EgressRules.go +++ b/sdk/go/alicloud/vpc/getIpv6EgressRules.go @@ -115,21 +115,11 @@ type GetIpv6EgressRulesResult struct { } func GetIpv6EgressRulesOutput(ctx *pulumi.Context, args GetIpv6EgressRulesOutputArgs, opts ...pulumi.InvokeOption) GetIpv6EgressRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIpv6EgressRulesResultOutput, error) { args := v.(GetIpv6EgressRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIpv6EgressRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getIpv6EgressRules:getIpv6EgressRules", args, &rv, "", opts...) - if err != nil { - return GetIpv6EgressRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIpv6EgressRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIpv6EgressRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getIpv6EgressRules:getIpv6EgressRules", args, GetIpv6EgressRulesResultOutput{}, options).(GetIpv6EgressRulesResultOutput), nil }).(GetIpv6EgressRulesResultOutput) } diff --git a/sdk/go/alicloud/vpc/getIpv6Gateways.go b/sdk/go/alicloud/vpc/getIpv6Gateways.go index ed8c8b7fc5..ef36db45d0 100644 --- a/sdk/go/alicloud/vpc/getIpv6Gateways.go +++ b/sdk/go/alicloud/vpc/getIpv6Gateways.go @@ -113,21 +113,11 @@ type GetIpv6GatewaysResult struct { } func GetIpv6GatewaysOutput(ctx *pulumi.Context, args GetIpv6GatewaysOutputArgs, opts ...pulumi.InvokeOption) GetIpv6GatewaysResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIpv6GatewaysResultOutput, error) { args := v.(GetIpv6GatewaysArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIpv6GatewaysResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getIpv6Gateways:getIpv6Gateways", args, &rv, "", opts...) - if err != nil { - return GetIpv6GatewaysResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIpv6GatewaysResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIpv6GatewaysResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getIpv6Gateways:getIpv6Gateways", args, GetIpv6GatewaysResultOutput{}, options).(GetIpv6GatewaysResultOutput), nil }).(GetIpv6GatewaysResultOutput) } diff --git a/sdk/go/alicloud/vpc/getIpv6InternetBandwidths.go b/sdk/go/alicloud/vpc/getIpv6InternetBandwidths.go index e40e849cb2..8674b172fc 100644 --- a/sdk/go/alicloud/vpc/getIpv6InternetBandwidths.go +++ b/sdk/go/alicloud/vpc/getIpv6InternetBandwidths.go @@ -103,21 +103,11 @@ type GetIpv6InternetBandwidthsResult struct { } func GetIpv6InternetBandwidthsOutput(ctx *pulumi.Context, args GetIpv6InternetBandwidthsOutputArgs, opts ...pulumi.InvokeOption) GetIpv6InternetBandwidthsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIpv6InternetBandwidthsResultOutput, error) { args := v.(GetIpv6InternetBandwidthsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIpv6InternetBandwidthsResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getIpv6InternetBandwidths:getIpv6InternetBandwidths", args, &rv, "", opts...) - if err != nil { - return GetIpv6InternetBandwidthsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIpv6InternetBandwidthsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIpv6InternetBandwidthsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getIpv6InternetBandwidths:getIpv6InternetBandwidths", args, GetIpv6InternetBandwidthsResultOutput{}, options).(GetIpv6InternetBandwidthsResultOutput), nil }).(GetIpv6InternetBandwidthsResultOutput) } diff --git a/sdk/go/alicloud/vpc/getNatGateways.go b/sdk/go/alicloud/vpc/getNatGateways.go index 383305b7b4..d3602410c7 100644 --- a/sdk/go/alicloud/vpc/getNatGateways.go +++ b/sdk/go/alicloud/vpc/getNatGateways.go @@ -92,21 +92,11 @@ type GetNatGatewaysResult struct { } func GetNatGatewaysOutput(ctx *pulumi.Context, args GetNatGatewaysOutputArgs, opts ...pulumi.InvokeOption) GetNatGatewaysResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNatGatewaysResultOutput, error) { args := v.(GetNatGatewaysArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNatGatewaysResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getNatGateways:getNatGateways", args, &rv, "", opts...) - if err != nil { - return GetNatGatewaysResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNatGatewaysResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNatGatewaysResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getNatGateways:getNatGateways", args, GetNatGatewaysResultOutput{}, options).(GetNatGatewaysResultOutput), nil }).(GetNatGatewaysResultOutput) } diff --git a/sdk/go/alicloud/vpc/getNatIpCidrs.go b/sdk/go/alicloud/vpc/getNatIpCidrs.go index 9d90671d0d..cbec79d283 100644 --- a/sdk/go/alicloud/vpc/getNatIpCidrs.go +++ b/sdk/go/alicloud/vpc/getNatIpCidrs.go @@ -130,21 +130,11 @@ type GetNatIpCidrsResult struct { } func GetNatIpCidrsOutput(ctx *pulumi.Context, args GetNatIpCidrsOutputArgs, opts ...pulumi.InvokeOption) GetNatIpCidrsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNatIpCidrsResultOutput, error) { args := v.(GetNatIpCidrsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNatIpCidrsResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getNatIpCidrs:getNatIpCidrs", args, &rv, "", opts...) - if err != nil { - return GetNatIpCidrsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNatIpCidrsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNatIpCidrsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getNatIpCidrs:getNatIpCidrs", args, GetNatIpCidrsResultOutput{}, options).(GetNatIpCidrsResultOutput), nil }).(GetNatIpCidrsResultOutput) } diff --git a/sdk/go/alicloud/vpc/getNatIps.go b/sdk/go/alicloud/vpc/getNatIps.go index 8e8fa27b46..23cd66803b 100644 --- a/sdk/go/alicloud/vpc/getNatIps.go +++ b/sdk/go/alicloud/vpc/getNatIps.go @@ -147,21 +147,11 @@ type GetNatIpsResult struct { } func GetNatIpsOutput(ctx *pulumi.Context, args GetNatIpsOutputArgs, opts ...pulumi.InvokeOption) GetNatIpsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNatIpsResultOutput, error) { args := v.(GetNatIpsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNatIpsResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getNatIps:getNatIps", args, &rv, "", opts...) - if err != nil { - return GetNatIpsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNatIpsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNatIpsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getNatIps:getNatIps", args, GetNatIpsResultOutput{}, options).(GetNatIpsResultOutput), nil }).(GetNatIpsResultOutput) } diff --git a/sdk/go/alicloud/vpc/getNetworkAcls.go b/sdk/go/alicloud/vpc/getNetworkAcls.go index 4e0328ea4f..9853fc5b55 100644 --- a/sdk/go/alicloud/vpc/getNetworkAcls.go +++ b/sdk/go/alicloud/vpc/getNetworkAcls.go @@ -93,21 +93,11 @@ type GetNetworkAclsResult struct { } func GetNetworkAclsOutput(ctx *pulumi.Context, args GetNetworkAclsOutputArgs, opts ...pulumi.InvokeOption) GetNetworkAclsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNetworkAclsResultOutput, error) { args := v.(GetNetworkAclsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNetworkAclsResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getNetworkAcls:getNetworkAcls", args, &rv, "", opts...) - if err != nil { - return GetNetworkAclsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNetworkAclsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNetworkAclsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getNetworkAcls:getNetworkAcls", args, GetNetworkAclsResultOutput{}, options).(GetNetworkAclsResultOutput), nil }).(GetNetworkAclsResultOutput) } diff --git a/sdk/go/alicloud/vpc/getNetworks.go b/sdk/go/alicloud/vpc/getNetworks.go index 498158e20e..0d565cd4d5 100644 --- a/sdk/go/alicloud/vpc/getNetworks.go +++ b/sdk/go/alicloud/vpc/getNetworks.go @@ -119,21 +119,11 @@ type GetNetworksResult struct { } func GetNetworksOutput(ctx *pulumi.Context, args GetNetworksOutputArgs, opts ...pulumi.InvokeOption) GetNetworksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNetworksResultOutput, error) { args := v.(GetNetworksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNetworksResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getNetworks:getNetworks", args, &rv, "", opts...) - if err != nil { - return GetNetworksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNetworksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNetworksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getNetworks:getNetworks", args, GetNetworksResultOutput{}, options).(GetNetworksResultOutput), nil }).(GetNetworksResultOutput) } diff --git a/sdk/go/alicloud/vpc/getPbrRouteEntries.go b/sdk/go/alicloud/vpc/getPbrRouteEntries.go index 860d0a8422..e8c1a04c68 100644 --- a/sdk/go/alicloud/vpc/getPbrRouteEntries.go +++ b/sdk/go/alicloud/vpc/getPbrRouteEntries.go @@ -77,21 +77,11 @@ type GetPbrRouteEntriesResult struct { } func GetPbrRouteEntriesOutput(ctx *pulumi.Context, args GetPbrRouteEntriesOutputArgs, opts ...pulumi.InvokeOption) GetPbrRouteEntriesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPbrRouteEntriesResultOutput, error) { args := v.(GetPbrRouteEntriesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPbrRouteEntriesResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getPbrRouteEntries:getPbrRouteEntries", args, &rv, "", opts...) - if err != nil { - return GetPbrRouteEntriesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPbrRouteEntriesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPbrRouteEntriesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getPbrRouteEntries:getPbrRouteEntries", args, GetPbrRouteEntriesResultOutput{}, options).(GetPbrRouteEntriesResultOutput), nil }).(GetPbrRouteEntriesResultOutput) } diff --git a/sdk/go/alicloud/vpc/getPeerConnections.go b/sdk/go/alicloud/vpc/getPeerConnections.go index 35ac159180..9afea0df7a 100644 --- a/sdk/go/alicloud/vpc/getPeerConnections.go +++ b/sdk/go/alicloud/vpc/getPeerConnections.go @@ -89,21 +89,11 @@ type GetPeerConnectionsResult struct { } func GetPeerConnectionsOutput(ctx *pulumi.Context, args GetPeerConnectionsOutputArgs, opts ...pulumi.InvokeOption) GetPeerConnectionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPeerConnectionsResultOutput, error) { args := v.(GetPeerConnectionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPeerConnectionsResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getPeerConnections:getPeerConnections", args, &rv, "", opts...) - if err != nil { - return GetPeerConnectionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPeerConnectionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPeerConnectionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getPeerConnections:getPeerConnections", args, GetPeerConnectionsResultOutput{}, options).(GetPeerConnectionsResultOutput), nil }).(GetPeerConnectionsResultOutput) } diff --git a/sdk/go/alicloud/vpc/getPrefixLists.go b/sdk/go/alicloud/vpc/getPrefixLists.go index 3a87063198..2394ad7c55 100644 --- a/sdk/go/alicloud/vpc/getPrefixLists.go +++ b/sdk/go/alicloud/vpc/getPrefixLists.go @@ -86,21 +86,11 @@ type GetPrefixListsResult struct { } func GetPrefixListsOutput(ctx *pulumi.Context, args GetPrefixListsOutputArgs, opts ...pulumi.InvokeOption) GetPrefixListsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPrefixListsResultOutput, error) { args := v.(GetPrefixListsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPrefixListsResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getPrefixLists:getPrefixLists", args, &rv, "", opts...) - if err != nil { - return GetPrefixListsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPrefixListsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPrefixListsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getPrefixLists:getPrefixLists", args, GetPrefixListsResultOutput{}, options).(GetPrefixListsResultOutput), nil }).(GetPrefixListsResultOutput) } diff --git a/sdk/go/alicloud/vpc/getPublicIpAddressPoolCidrBlocks.go b/sdk/go/alicloud/vpc/getPublicIpAddressPoolCidrBlocks.go index d132122be4..f74b47b2b9 100644 --- a/sdk/go/alicloud/vpc/getPublicIpAddressPoolCidrBlocks.go +++ b/sdk/go/alicloud/vpc/getPublicIpAddressPoolCidrBlocks.go @@ -97,21 +97,11 @@ type GetPublicIpAddressPoolCidrBlocksResult struct { } func GetPublicIpAddressPoolCidrBlocksOutput(ctx *pulumi.Context, args GetPublicIpAddressPoolCidrBlocksOutputArgs, opts ...pulumi.InvokeOption) GetPublicIpAddressPoolCidrBlocksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPublicIpAddressPoolCidrBlocksResultOutput, error) { args := v.(GetPublicIpAddressPoolCidrBlocksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPublicIpAddressPoolCidrBlocksResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getPublicIpAddressPoolCidrBlocks:getPublicIpAddressPoolCidrBlocks", args, &rv, "", opts...) - if err != nil { - return GetPublicIpAddressPoolCidrBlocksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPublicIpAddressPoolCidrBlocksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPublicIpAddressPoolCidrBlocksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getPublicIpAddressPoolCidrBlocks:getPublicIpAddressPoolCidrBlocks", args, GetPublicIpAddressPoolCidrBlocksResultOutput{}, options).(GetPublicIpAddressPoolCidrBlocksResultOutput), nil }).(GetPublicIpAddressPoolCidrBlocksResultOutput) } diff --git a/sdk/go/alicloud/vpc/getPublicIpAddressPools.go b/sdk/go/alicloud/vpc/getPublicIpAddressPools.go index 81adce67d2..446bc2da69 100644 --- a/sdk/go/alicloud/vpc/getPublicIpAddressPools.go +++ b/sdk/go/alicloud/vpc/getPublicIpAddressPools.go @@ -96,21 +96,11 @@ type GetPublicIpAddressPoolsResult struct { } func GetPublicIpAddressPoolsOutput(ctx *pulumi.Context, args GetPublicIpAddressPoolsOutputArgs, opts ...pulumi.InvokeOption) GetPublicIpAddressPoolsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPublicIpAddressPoolsResultOutput, error) { args := v.(GetPublicIpAddressPoolsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPublicIpAddressPoolsResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getPublicIpAddressPools:getPublicIpAddressPools", args, &rv, "", opts...) - if err != nil { - return GetPublicIpAddressPoolsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPublicIpAddressPoolsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPublicIpAddressPoolsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getPublicIpAddressPools:getPublicIpAddressPools", args, GetPublicIpAddressPoolsResultOutput{}, options).(GetPublicIpAddressPoolsResultOutput), nil }).(GetPublicIpAddressPoolsResultOutput) } diff --git a/sdk/go/alicloud/vpc/getRouteEntries.go b/sdk/go/alicloud/vpc/getRouteEntries.go index 8525ad5860..86636daa27 100644 --- a/sdk/go/alicloud/vpc/getRouteEntries.go +++ b/sdk/go/alicloud/vpc/getRouteEntries.go @@ -172,21 +172,11 @@ type GetRouteEntriesResult struct { } func GetRouteEntriesOutput(ctx *pulumi.Context, args GetRouteEntriesOutputArgs, opts ...pulumi.InvokeOption) GetRouteEntriesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRouteEntriesResultOutput, error) { args := v.(GetRouteEntriesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRouteEntriesResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getRouteEntries:getRouteEntries", args, &rv, "", opts...) - if err != nil { - return GetRouteEntriesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRouteEntriesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRouteEntriesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getRouteEntries:getRouteEntries", args, GetRouteEntriesResultOutput{}, options).(GetRouteEntriesResultOutput), nil }).(GetRouteEntriesResultOutput) } diff --git a/sdk/go/alicloud/vpc/getRouteTables.go b/sdk/go/alicloud/vpc/getRouteTables.go index 186d7b5f11..3f0b7eced7 100644 --- a/sdk/go/alicloud/vpc/getRouteTables.go +++ b/sdk/go/alicloud/vpc/getRouteTables.go @@ -134,21 +134,11 @@ type GetRouteTablesResult struct { } func GetRouteTablesOutput(ctx *pulumi.Context, args GetRouteTablesOutputArgs, opts ...pulumi.InvokeOption) GetRouteTablesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRouteTablesResultOutput, error) { args := v.(GetRouteTablesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRouteTablesResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getRouteTables:getRouteTables", args, &rv, "", opts...) - if err != nil { - return GetRouteTablesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRouteTablesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRouteTablesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getRouteTables:getRouteTables", args, GetRouteTablesResultOutput{}, options).(GetRouteTablesResultOutput), nil }).(GetRouteTablesResultOutput) } diff --git a/sdk/go/alicloud/vpc/getRouterInterfaces.go b/sdk/go/alicloud/vpc/getRouterInterfaces.go index 74d1a6cef8..f8ff918d4a 100644 --- a/sdk/go/alicloud/vpc/getRouterInterfaces.go +++ b/sdk/go/alicloud/vpc/getRouterInterfaces.go @@ -107,21 +107,11 @@ type GetRouterInterfacesResult struct { } func GetRouterInterfacesOutput(ctx *pulumi.Context, args GetRouterInterfacesOutputArgs, opts ...pulumi.InvokeOption) GetRouterInterfacesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRouterInterfacesResultOutput, error) { args := v.(GetRouterInterfacesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRouterInterfacesResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getRouterInterfaces:getRouterInterfaces", args, &rv, "", opts...) - if err != nil { - return GetRouterInterfacesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRouterInterfacesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRouterInterfacesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getRouterInterfaces:getRouterInterfaces", args, GetRouterInterfacesResultOutput{}, options).(GetRouterInterfacesResultOutput), nil }).(GetRouterInterfacesResultOutput) } diff --git a/sdk/go/alicloud/vpc/getSnatEntries.go b/sdk/go/alicloud/vpc/getSnatEntries.go index ed7c1fc1bc..c85cbe7b01 100644 --- a/sdk/go/alicloud/vpc/getSnatEntries.go +++ b/sdk/go/alicloud/vpc/getSnatEntries.go @@ -153,21 +153,11 @@ type GetSnatEntriesResult struct { } func GetSnatEntriesOutput(ctx *pulumi.Context, args GetSnatEntriesOutputArgs, opts ...pulumi.InvokeOption) GetSnatEntriesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSnatEntriesResultOutput, error) { args := v.(GetSnatEntriesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSnatEntriesResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getSnatEntries:getSnatEntries", args, &rv, "", opts...) - if err != nil { - return GetSnatEntriesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSnatEntriesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSnatEntriesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getSnatEntries:getSnatEntries", args, GetSnatEntriesResultOutput{}, options).(GetSnatEntriesResultOutput), nil }).(GetSnatEntriesResultOutput) } diff --git a/sdk/go/alicloud/vpc/getSslVpnClientCerts.go b/sdk/go/alicloud/vpc/getSslVpnClientCerts.go index 3cd6df594c..b1990744cf 100644 --- a/sdk/go/alicloud/vpc/getSslVpnClientCerts.go +++ b/sdk/go/alicloud/vpc/getSslVpnClientCerts.go @@ -82,21 +82,11 @@ type GetSslVpnClientCertsResult struct { } func GetSslVpnClientCertsOutput(ctx *pulumi.Context, args GetSslVpnClientCertsOutputArgs, opts ...pulumi.InvokeOption) GetSslVpnClientCertsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSslVpnClientCertsResultOutput, error) { args := v.(GetSslVpnClientCertsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSslVpnClientCertsResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getSslVpnClientCerts:getSslVpnClientCerts", args, &rv, "", opts...) - if err != nil { - return GetSslVpnClientCertsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSslVpnClientCertsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSslVpnClientCertsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getSslVpnClientCerts:getSslVpnClientCerts", args, GetSslVpnClientCertsResultOutput{}, options).(GetSslVpnClientCertsResultOutput), nil }).(GetSslVpnClientCertsResultOutput) } diff --git a/sdk/go/alicloud/vpc/getSslVpnServers.go b/sdk/go/alicloud/vpc/getSslVpnServers.go index 5c15431936..63270ff457 100644 --- a/sdk/go/alicloud/vpc/getSslVpnServers.go +++ b/sdk/go/alicloud/vpc/getSslVpnServers.go @@ -82,21 +82,11 @@ type GetSslVpnServersResult struct { } func GetSslVpnServersOutput(ctx *pulumi.Context, args GetSslVpnServersOutputArgs, opts ...pulumi.InvokeOption) GetSslVpnServersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSslVpnServersResultOutput, error) { args := v.(GetSslVpnServersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSslVpnServersResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getSslVpnServers:getSslVpnServers", args, &rv, "", opts...) - if err != nil { - return GetSslVpnServersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSslVpnServersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSslVpnServersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getSslVpnServers:getSslVpnServers", args, GetSslVpnServersResultOutput{}, options).(GetSslVpnServersResultOutput), nil }).(GetSslVpnServersResultOutput) } diff --git a/sdk/go/alicloud/vpc/getSwitches.go b/sdk/go/alicloud/vpc/getSwitches.go index b40b12f600..bfb130ae91 100644 --- a/sdk/go/alicloud/vpc/getSwitches.go +++ b/sdk/go/alicloud/vpc/getSwitches.go @@ -139,21 +139,11 @@ type GetSwitchesResult struct { } func GetSwitchesOutput(ctx *pulumi.Context, args GetSwitchesOutputArgs, opts ...pulumi.InvokeOption) GetSwitchesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSwitchesResultOutput, error) { args := v.(GetSwitchesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSwitchesResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getSwitches:getSwitches", args, &rv, "", opts...) - if err != nil { - return GetSwitchesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSwitchesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSwitchesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getSwitches:getSwitches", args, GetSwitchesResultOutput{}, options).(GetSwitchesResultOutput), nil }).(GetSwitchesResultOutput) } diff --git a/sdk/go/alicloud/vpc/getTrafficMirrorFilterEgressRules.go b/sdk/go/alicloud/vpc/getTrafficMirrorFilterEgressRules.go index b26e4f8081..4ebb68e9b8 100644 --- a/sdk/go/alicloud/vpc/getTrafficMirrorFilterEgressRules.go +++ b/sdk/go/alicloud/vpc/getTrafficMirrorFilterEgressRules.go @@ -91,21 +91,11 @@ type GetTrafficMirrorFilterEgressRulesResult struct { } func GetTrafficMirrorFilterEgressRulesOutput(ctx *pulumi.Context, args GetTrafficMirrorFilterEgressRulesOutputArgs, opts ...pulumi.InvokeOption) GetTrafficMirrorFilterEgressRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTrafficMirrorFilterEgressRulesResultOutput, error) { args := v.(GetTrafficMirrorFilterEgressRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTrafficMirrorFilterEgressRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getTrafficMirrorFilterEgressRules:getTrafficMirrorFilterEgressRules", args, &rv, "", opts...) - if err != nil { - return GetTrafficMirrorFilterEgressRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTrafficMirrorFilterEgressRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTrafficMirrorFilterEgressRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getTrafficMirrorFilterEgressRules:getTrafficMirrorFilterEgressRules", args, GetTrafficMirrorFilterEgressRulesResultOutput{}, options).(GetTrafficMirrorFilterEgressRulesResultOutput), nil }).(GetTrafficMirrorFilterEgressRulesResultOutput) } diff --git a/sdk/go/alicloud/vpc/getTrafficMirrorFilterIngressRules.go b/sdk/go/alicloud/vpc/getTrafficMirrorFilterIngressRules.go index ff0b7b5c3f..375cff0b3f 100644 --- a/sdk/go/alicloud/vpc/getTrafficMirrorFilterIngressRules.go +++ b/sdk/go/alicloud/vpc/getTrafficMirrorFilterIngressRules.go @@ -91,21 +91,11 @@ type GetTrafficMirrorFilterIngressRulesResult struct { } func GetTrafficMirrorFilterIngressRulesOutput(ctx *pulumi.Context, args GetTrafficMirrorFilterIngressRulesOutputArgs, opts ...pulumi.InvokeOption) GetTrafficMirrorFilterIngressRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTrafficMirrorFilterIngressRulesResultOutput, error) { args := v.(GetTrafficMirrorFilterIngressRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTrafficMirrorFilterIngressRulesResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getTrafficMirrorFilterIngressRules:getTrafficMirrorFilterIngressRules", args, &rv, "", opts...) - if err != nil { - return GetTrafficMirrorFilterIngressRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTrafficMirrorFilterIngressRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTrafficMirrorFilterIngressRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getTrafficMirrorFilterIngressRules:getTrafficMirrorFilterIngressRules", args, GetTrafficMirrorFilterIngressRulesResultOutput{}, options).(GetTrafficMirrorFilterIngressRulesResultOutput), nil }).(GetTrafficMirrorFilterIngressRulesResultOutput) } diff --git a/sdk/go/alicloud/vpc/getTrafficMirrorFilters.go b/sdk/go/alicloud/vpc/getTrafficMirrorFilters.go index 6575d93070..91602908ed 100644 --- a/sdk/go/alicloud/vpc/getTrafficMirrorFilters.go +++ b/sdk/go/alicloud/vpc/getTrafficMirrorFilters.go @@ -104,21 +104,11 @@ type GetTrafficMirrorFiltersResult struct { } func GetTrafficMirrorFiltersOutput(ctx *pulumi.Context, args GetTrafficMirrorFiltersOutputArgs, opts ...pulumi.InvokeOption) GetTrafficMirrorFiltersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTrafficMirrorFiltersResultOutput, error) { args := v.(GetTrafficMirrorFiltersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTrafficMirrorFiltersResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getTrafficMirrorFilters:getTrafficMirrorFilters", args, &rv, "", opts...) - if err != nil { - return GetTrafficMirrorFiltersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTrafficMirrorFiltersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTrafficMirrorFiltersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getTrafficMirrorFilters:getTrafficMirrorFilters", args, GetTrafficMirrorFiltersResultOutput{}, options).(GetTrafficMirrorFiltersResultOutput), nil }).(GetTrafficMirrorFiltersResultOutput) } diff --git a/sdk/go/alicloud/vpc/getTrafficMirrorService.go b/sdk/go/alicloud/vpc/getTrafficMirrorService.go index 1e90db799e..3cc97361bb 100644 --- a/sdk/go/alicloud/vpc/getTrafficMirrorService.go +++ b/sdk/go/alicloud/vpc/getTrafficMirrorService.go @@ -72,21 +72,11 @@ type GetTrafficMirrorServiceResult struct { } func GetTrafficMirrorServiceOutput(ctx *pulumi.Context, args GetTrafficMirrorServiceOutputArgs, opts ...pulumi.InvokeOption) GetTrafficMirrorServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTrafficMirrorServiceResultOutput, error) { args := v.(GetTrafficMirrorServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTrafficMirrorServiceResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getTrafficMirrorService:getTrafficMirrorService", args, &rv, "", opts...) - if err != nil { - return GetTrafficMirrorServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTrafficMirrorServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTrafficMirrorServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getTrafficMirrorService:getTrafficMirrorService", args, GetTrafficMirrorServiceResultOutput{}, options).(GetTrafficMirrorServiceResultOutput), nil }).(GetTrafficMirrorServiceResultOutput) } diff --git a/sdk/go/alicloud/vpc/getTrafficMirrorSessions.go b/sdk/go/alicloud/vpc/getTrafficMirrorSessions.go index dced37bcbb..0ec1230d20 100644 --- a/sdk/go/alicloud/vpc/getTrafficMirrorSessions.go +++ b/sdk/go/alicloud/vpc/getTrafficMirrorSessions.go @@ -175,21 +175,11 @@ type GetTrafficMirrorSessionsResult struct { } func GetTrafficMirrorSessionsOutput(ctx *pulumi.Context, args GetTrafficMirrorSessionsOutputArgs, opts ...pulumi.InvokeOption) GetTrafficMirrorSessionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTrafficMirrorSessionsResultOutput, error) { args := v.(GetTrafficMirrorSessionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTrafficMirrorSessionsResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getTrafficMirrorSessions:getTrafficMirrorSessions", args, &rv, "", opts...) - if err != nil { - return GetTrafficMirrorSessionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTrafficMirrorSessionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTrafficMirrorSessionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getTrafficMirrorSessions:getTrafficMirrorSessions", args, GetTrafficMirrorSessionsResultOutput{}, options).(GetTrafficMirrorSessionsResultOutput), nil }).(GetTrafficMirrorSessionsResultOutput) } diff --git a/sdk/go/alicloud/vpc/getVpcFlowLogs.go b/sdk/go/alicloud/vpc/getVpcFlowLogs.go index 56587bf69a..7e7465c32e 100644 --- a/sdk/go/alicloud/vpc/getVpcFlowLogs.go +++ b/sdk/go/alicloud/vpc/getVpcFlowLogs.go @@ -102,21 +102,11 @@ type GetVpcFlowLogsResult struct { } func GetVpcFlowLogsOutput(ctx *pulumi.Context, args GetVpcFlowLogsOutputArgs, opts ...pulumi.InvokeOption) GetVpcFlowLogsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVpcFlowLogsResultOutput, error) { args := v.(GetVpcFlowLogsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVpcFlowLogsResult - secret, err := ctx.InvokePackageRaw("alicloud:vpc/getVpcFlowLogs:getVpcFlowLogs", args, &rv, "", opts...) - if err != nil { - return GetVpcFlowLogsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVpcFlowLogsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVpcFlowLogsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpc/getVpcFlowLogs:getVpcFlowLogs", args, GetVpcFlowLogsResultOutput{}, options).(GetVpcFlowLogsResultOutput), nil }).(GetVpcFlowLogsResultOutput) } diff --git a/sdk/go/alicloud/vpn/getConnections.go b/sdk/go/alicloud/vpn/getConnections.go index 2cee2006e8..167b90292a 100644 --- a/sdk/go/alicloud/vpn/getConnections.go +++ b/sdk/go/alicloud/vpn/getConnections.go @@ -88,21 +88,11 @@ type GetConnectionsResult struct { } func GetConnectionsOutput(ctx *pulumi.Context, args GetConnectionsOutputArgs, opts ...pulumi.InvokeOption) GetConnectionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetConnectionsResultOutput, error) { args := v.(GetConnectionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetConnectionsResult - secret, err := ctx.InvokePackageRaw("alicloud:vpn/getConnections:getConnections", args, &rv, "", opts...) - if err != nil { - return GetConnectionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetConnectionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetConnectionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpn/getConnections:getConnections", args, GetConnectionsResultOutput{}, options).(GetConnectionsResultOutput), nil }).(GetConnectionsResultOutput) } diff --git a/sdk/go/alicloud/vpn/getCustomerGateways.go b/sdk/go/alicloud/vpn/getCustomerGateways.go index 0583681e0c..489990fb8a 100644 --- a/sdk/go/alicloud/vpn/getCustomerGateways.go +++ b/sdk/go/alicloud/vpn/getCustomerGateways.go @@ -78,21 +78,11 @@ type GetCustomerGatewaysResult struct { } func GetCustomerGatewaysOutput(ctx *pulumi.Context, args GetCustomerGatewaysOutputArgs, opts ...pulumi.InvokeOption) GetCustomerGatewaysResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCustomerGatewaysResultOutput, error) { args := v.(GetCustomerGatewaysArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCustomerGatewaysResult - secret, err := ctx.InvokePackageRaw("alicloud:vpn/getCustomerGateways:getCustomerGateways", args, &rv, "", opts...) - if err != nil { - return GetCustomerGatewaysResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCustomerGatewaysResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCustomerGatewaysResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpn/getCustomerGateways:getCustomerGateways", args, GetCustomerGatewaysResultOutput{}, options).(GetCustomerGatewaysResultOutput), nil }).(GetCustomerGatewaysResultOutput) } diff --git a/sdk/go/alicloud/vpn/getGatewayVcoRoutes.go b/sdk/go/alicloud/vpn/getGatewayVcoRoutes.go index a2a7cc504d..da476c5a6e 100644 --- a/sdk/go/alicloud/vpn/getGatewayVcoRoutes.go +++ b/sdk/go/alicloud/vpn/getGatewayVcoRoutes.go @@ -178,21 +178,11 @@ type GetGatewayVcoRoutesResult struct { } func GetGatewayVcoRoutesOutput(ctx *pulumi.Context, args GetGatewayVcoRoutesOutputArgs, opts ...pulumi.InvokeOption) GetGatewayVcoRoutesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGatewayVcoRoutesResultOutput, error) { args := v.(GetGatewayVcoRoutesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGatewayVcoRoutesResult - secret, err := ctx.InvokePackageRaw("alicloud:vpn/getGatewayVcoRoutes:getGatewayVcoRoutes", args, &rv, "", opts...) - if err != nil { - return GetGatewayVcoRoutesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGatewayVcoRoutesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGatewayVcoRoutesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpn/getGatewayVcoRoutes:getGatewayVcoRoutes", args, GetGatewayVcoRoutesResultOutput{}, options).(GetGatewayVcoRoutesResultOutput), nil }).(GetGatewayVcoRoutesResultOutput) } diff --git a/sdk/go/alicloud/vpn/getGatewayVpnAttachments.go b/sdk/go/alicloud/vpn/getGatewayVpnAttachments.go index f584b49573..7aa7e9a578 100644 --- a/sdk/go/alicloud/vpn/getGatewayVpnAttachments.go +++ b/sdk/go/alicloud/vpn/getGatewayVpnAttachments.go @@ -95,21 +95,11 @@ type GetGatewayVpnAttachmentsResult struct { } func GetGatewayVpnAttachmentsOutput(ctx *pulumi.Context, args GetGatewayVpnAttachmentsOutputArgs, opts ...pulumi.InvokeOption) GetGatewayVpnAttachmentsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGatewayVpnAttachmentsResultOutput, error) { args := v.(GetGatewayVpnAttachmentsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGatewayVpnAttachmentsResult - secret, err := ctx.InvokePackageRaw("alicloud:vpn/getGatewayVpnAttachments:getGatewayVpnAttachments", args, &rv, "", opts...) - if err != nil { - return GetGatewayVpnAttachmentsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGatewayVpnAttachmentsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGatewayVpnAttachmentsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpn/getGatewayVpnAttachments:getGatewayVpnAttachments", args, GetGatewayVpnAttachmentsResultOutput{}, options).(GetGatewayVpnAttachmentsResultOutput), nil }).(GetGatewayVpnAttachmentsResultOutput) } diff --git a/sdk/go/alicloud/vpn/getGatewayZones.go b/sdk/go/alicloud/vpn/getGatewayZones.go index 181c8fe088..37b2ac31e3 100644 --- a/sdk/go/alicloud/vpn/getGatewayZones.go +++ b/sdk/go/alicloud/vpn/getGatewayZones.go @@ -81,21 +81,11 @@ type GetGatewayZonesResult struct { } func GetGatewayZonesOutput(ctx *pulumi.Context, args GetGatewayZonesOutputArgs, opts ...pulumi.InvokeOption) GetGatewayZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGatewayZonesResultOutput, error) { args := v.(GetGatewayZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGatewayZonesResult - secret, err := ctx.InvokePackageRaw("alicloud:vpn/getGatewayZones:getGatewayZones", args, &rv, "", opts...) - if err != nil { - return GetGatewayZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGatewayZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGatewayZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpn/getGatewayZones:getGatewayZones", args, GetGatewayZonesResultOutput{}, options).(GetGatewayZonesResultOutput), nil }).(GetGatewayZonesResultOutput) } diff --git a/sdk/go/alicloud/vpn/getGateways.go b/sdk/go/alicloud/vpn/getGateways.go index 45327eb838..b2997c649e 100644 --- a/sdk/go/alicloud/vpn/getGateways.go +++ b/sdk/go/alicloud/vpn/getGateways.go @@ -72,21 +72,11 @@ type GetGatewaysResult struct { } func GetGatewaysOutput(ctx *pulumi.Context, args GetGatewaysOutputArgs, opts ...pulumi.InvokeOption) GetGatewaysResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGatewaysResultOutput, error) { args := v.(GetGatewaysArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGatewaysResult - secret, err := ctx.InvokePackageRaw("alicloud:vpn/getGateways:getGateways", args, &rv, "", opts...) - if err != nil { - return GetGatewaysResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGatewaysResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGatewaysResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:vpn/getGateways:getGateways", args, GetGatewaysResultOutput{}, options).(GetGatewaysResultOutput), nil }).(GetGatewaysResultOutput) } diff --git a/sdk/go/alicloud/waf/getCertificates.go b/sdk/go/alicloud/waf/getCertificates.go index c8641e07ed..0b6648ac40 100644 --- a/sdk/go/alicloud/waf/getCertificates.go +++ b/sdk/go/alicloud/waf/getCertificates.go @@ -85,21 +85,11 @@ type GetCertificatesResult struct { } func GetCertificatesOutput(ctx *pulumi.Context, args GetCertificatesOutputArgs, opts ...pulumi.InvokeOption) GetCertificatesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCertificatesResultOutput, error) { args := v.(GetCertificatesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCertificatesResult - secret, err := ctx.InvokePackageRaw("alicloud:waf/getCertificates:getCertificates", args, &rv, "", opts...) - if err != nil { - return GetCertificatesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCertificatesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCertificatesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:waf/getCertificates:getCertificates", args, GetCertificatesResultOutput{}, options).(GetCertificatesResultOutput), nil }).(GetCertificatesResultOutput) } diff --git a/sdk/go/alicloud/waf/getDomains.go b/sdk/go/alicloud/waf/getDomains.go index 586ebb1983..3d362275f4 100644 --- a/sdk/go/alicloud/waf/getDomains.go +++ b/sdk/go/alicloud/waf/getDomains.go @@ -87,21 +87,11 @@ type GetDomainsResult struct { } func GetDomainsOutput(ctx *pulumi.Context, args GetDomainsOutputArgs, opts ...pulumi.InvokeOption) GetDomainsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDomainsResultOutput, error) { args := v.(GetDomainsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDomainsResult - secret, err := ctx.InvokePackageRaw("alicloud:waf/getDomains:getDomains", args, &rv, "", opts...) - if err != nil { - return GetDomainsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDomainsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDomainsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:waf/getDomains:getDomains", args, GetDomainsResultOutput{}, options).(GetDomainsResultOutput), nil }).(GetDomainsResultOutput) } diff --git a/sdk/go/alicloud/waf/getInstances.go b/sdk/go/alicloud/waf/getInstances.go index 2e50856762..44948166ad 100644 --- a/sdk/go/alicloud/waf/getInstances.go +++ b/sdk/go/alicloud/waf/getInstances.go @@ -88,21 +88,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:waf/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:waf/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/wafv3/getDomains.go b/sdk/go/alicloud/wafv3/getDomains.go index 5c281b4247..35e7fc06cf 100644 --- a/sdk/go/alicloud/wafv3/getDomains.go +++ b/sdk/go/alicloud/wafv3/getDomains.go @@ -104,21 +104,11 @@ type GetDomainsResult struct { } func GetDomainsOutput(ctx *pulumi.Context, args GetDomainsOutputArgs, opts ...pulumi.InvokeOption) GetDomainsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDomainsResultOutput, error) { args := v.(GetDomainsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDomainsResult - secret, err := ctx.InvokePackageRaw("alicloud:wafv3/getDomains:getDomains", args, &rv, "", opts...) - if err != nil { - return GetDomainsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDomainsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDomainsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:wafv3/getDomains:getDomains", args, GetDomainsResultOutput{}, options).(GetDomainsResultOutput), nil }).(GetDomainsResultOutput) } diff --git a/sdk/go/alicloud/wafv3/getInstances.go b/sdk/go/alicloud/wafv3/getInstances.go index 55b897b3df..1ab44b4e38 100644 --- a/sdk/go/alicloud/wafv3/getInstances.go +++ b/sdk/go/alicloud/wafv3/getInstances.go @@ -67,21 +67,11 @@ type GetInstancesResult struct { } func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstancesResultOutput, error) { args := v.(GetInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:wafv3/getInstances:getInstances", args, &rv, "", opts...) - if err != nil { - return GetInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:wafv3/getInstances:getInstances", args, GetInstancesResultOutput{}, options).(GetInstancesResultOutput), nil }).(GetInstancesResultOutput) } diff --git a/sdk/go/alicloud/yundun/getBastionHostInstances.go b/sdk/go/alicloud/yundun/getBastionHostInstances.go index 48686d19c5..a81de08b7e 100644 --- a/sdk/go/alicloud/yundun/getBastionHostInstances.go +++ b/sdk/go/alicloud/yundun/getBastionHostInstances.go @@ -42,21 +42,11 @@ type GetBastionHostInstancesResult struct { } func GetBastionHostInstancesOutput(ctx *pulumi.Context, args GetBastionHostInstancesOutputArgs, opts ...pulumi.InvokeOption) GetBastionHostInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBastionHostInstancesResultOutput, error) { args := v.(GetBastionHostInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBastionHostInstancesResult - secret, err := ctx.InvokePackageRaw("alicloud:yundun/getBastionHostInstances:getBastionHostInstances", args, &rv, "", opts...) - if err != nil { - return GetBastionHostInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBastionHostInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBastionHostInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:yundun/getBastionHostInstances:getBastionHostInstances", args, GetBastionHostInstancesResultOutput{}, options).(GetBastionHostInstancesResultOutput), nil }).(GetBastionHostInstancesResultOutput) } diff --git a/sdk/go/alicloud/yundun/getDBAuditInstance.go b/sdk/go/alicloud/yundun/getDBAuditInstance.go index e48824a38e..cd08c6d59b 100644 --- a/sdk/go/alicloud/yundun/getDBAuditInstance.go +++ b/sdk/go/alicloud/yundun/getDBAuditInstance.go @@ -42,21 +42,11 @@ type LookupDBAuditInstanceResult struct { } func LookupDBAuditInstanceOutput(ctx *pulumi.Context, args LookupDBAuditInstanceOutputArgs, opts ...pulumi.InvokeOption) LookupDBAuditInstanceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDBAuditInstanceResultOutput, error) { args := v.(LookupDBAuditInstanceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDBAuditInstanceResult - secret, err := ctx.InvokePackageRaw("alicloud:yundun/getDBAuditInstance:getDBAuditInstance", args, &rv, "", opts...) - if err != nil { - return LookupDBAuditInstanceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDBAuditInstanceResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDBAuditInstanceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("alicloud:yundun/getDBAuditInstance:getDBAuditInstance", args, LookupDBAuditInstanceResultOutput{}, options).(LookupDBAuditInstanceResultOutput), nil }).(LookupDBAuditInstanceResultOutput) } diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index 6653d2357a..504df3ba15 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -44,7 +44,7 @@ repositories { dependencies { implementation("com.google.code.findbugs:jsr305:3.0.2") implementation("com.google.code.gson:gson:2.8.9") - implementation("com.pulumi:pulumi:0.18.0") + implementation("com.pulumi:pulumi:0.20.0") } task sourcesJar(type: Jar) { diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/AlicloudFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/AlicloudFunctions.java index 39a2ae0941..11bcf33da3 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/AlicloudFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/AlicloudFunctions.java @@ -31,6 +31,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.resources.InvokeArgs; import java.util.concurrent.CompletableFuture; @@ -235,6 +236,46 @@ public static CompletableFuture getAccountPlain(InvokeArgs arg public static Output getAccount(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:index/getAccount:getAccount", TypeShape.of(GetAccountResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides information about the current account. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var current = AlicloudFunctions.getAccount();
+     * 
+     *         ctx.export("currentAccountId", current.applyValue(getAccountResult -> getAccountResult.id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccount(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:index/getAccount:getAccount", TypeShape.of(GetAccountResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides information about the current account. * @@ -485,6 +526,48 @@ public static CompletableFuture getCallerIdentityPlain( public static Output getCallerIdentity(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:index/getCallerIdentity:getCallerIdentity", TypeShape.of(GetCallerIdentityResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the identity of the current user. + * + * > **NOTE:** Available in 1.65.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var current = AlicloudFunctions.getCallerIdentity();
+     * 
+     *         ctx.export("currentUserArn", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCallerIdentity(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:index/getCallerIdentity:getCallerIdentity", TypeShape.of(GetCallerIdentityResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the identity of the current user. * @@ -662,6 +745,51 @@ public static CompletableFuture getFileCrc64Checksum public static Output getFileCrc64Checksum(GetFileCrc64ChecksumArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:index/getFileCrc64Checksum:getFileCrc64Checksum", TypeShape.of(GetFileCrc64ChecksumResult.class), args, Utilities.withVersion(options)); } + /** + * This data source compute file crc64 checksum. + * + * > **NOTE:** Available in 1.59.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetFileCrc64ChecksumArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = AlicloudFunctions.getFileCrc64Checksum(GetFileCrc64ChecksumArgs.builder()
+     *             .filename("exampleFileName")
+     *             .build());
+     * 
+     *         ctx.export("fileCrc64Checksum", defualt.checksum());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getFileCrc64Checksum(GetFileCrc64ChecksumArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:index/getFileCrc64Checksum:getFileCrc64Checksum", TypeShape.of(GetFileCrc64ChecksumResult.class), args, Utilities.withVersion(options)); + } /** * This data source compute file crc64 checksum. * @@ -869,6 +997,60 @@ public static CompletableFuture getMs public static Output getMscSubContactVerificationMessage(GetMscSubContactVerificationMessageArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:index/getMscSubContactVerificationMessage:getMscSubContactVerificationMessage", TypeShape.of(GetMscSubContactVerificationMessageResult.class), args, Utilities.withVersion(options)); } + /** + * > **NOTE:** Available in v1.156.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.MscSubContract;
+     * import com.pulumi.alicloud.MscSubContractArgs;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetMscSubContactVerificationMessageArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App }{{@code
+     *     public static void main(String[] args) }{{@code
+     *         Pulumi.run(App::stack);
+     *     }}{@code
+     * 
+     *     public static void stack(Context ctx) }{{@code
+     *         var defaultMscSubContract = new MscSubContract("defaultMscSubContract", MscSubContractArgs.builder()
+     *             .contactName("example_value")
+     *             .position("CEO")
+     *             .email("123}{@literal @}{@code 163.com")
+     *             .mobile("153xxxxx906")
+     *             .build());
+     * 
+     *         final var default = AlicloudFunctions.getMscSubContactVerificationMessage(GetMscSubContactVerificationMessageArgs.builder()
+     *             .contactId(defaultMscSubContract.id())
+     *             .type(1)
+     *             .build());
+     * 
+     *     }}{@code
+     * }}{@code
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getMscSubContactVerificationMessage(GetMscSubContactVerificationMessageArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:index/getMscSubContactVerificationMessage:getMscSubContactVerificationMessage", TypeShape.of(GetMscSubContactVerificationMessageResult.class), args, Utilities.withVersion(options)); + } /** * > **NOTE:** Available in v1.156.0+. * @@ -1173,6 +1355,56 @@ public static CompletableFuture getMscSubContactsPlain( public static Output getMscSubContacts(GetMscSubContactsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:index/getMscSubContacts:getMscSubContacts", TypeShape.of(GetMscSubContactsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Message Center Contacts of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.132.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetMscSubContactsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = AlicloudFunctions.getMscSubContacts();
+     * 
+     *         ctx.export("mscSubContactId1", ids.applyValue(getMscSubContactsResult -> getMscSubContactsResult.contacts()[0].id()));
+     *         final var nameRegex = AlicloudFunctions.getMscSubContacts(GetMscSubContactsArgs.builder()
+     *             .nameRegex("^my-Contact")
+     *             .build());
+     * 
+     *         ctx.export("mscSubContactId2", nameRegex.applyValue(getMscSubContactsResult -> getMscSubContactsResult.contacts()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getMscSubContacts(GetMscSubContactsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:index/getMscSubContacts:getMscSubContacts", TypeShape.of(GetMscSubContactsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Message Center Contacts of the current Alibaba Cloud user. * @@ -1448,6 +1680,51 @@ public static CompletableFuture getMscSubSubscript public static Output getMscSubSubscriptions(GetMscSubSubscriptionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:index/getMscSubSubscriptions:getMscSubSubscriptions", TypeShape.of(GetMscSubSubscriptionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Message Center Subscriptions of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.135.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetMscSubSubscriptionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = AlicloudFunctions.getMscSubSubscriptions();
+     * 
+     *         ctx.export("mscSubSubscriptionId1", default_.subscriptions()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getMscSubSubscriptions(GetMscSubSubscriptionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:index/getMscSubSubscriptions:getMscSubSubscriptions", TypeShape.of(GetMscSubSubscriptionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Message Center Subscriptions of the current Alibaba Cloud user. * @@ -1753,6 +2030,58 @@ public static CompletableFuture getMscSubWebhooksPlain( public static Output getMscSubWebhooks(GetMscSubWebhooksArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:index/getMscSubWebhooks:getMscSubWebhooks", TypeShape.of(GetMscSubWebhooksResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Msc Sub Webhooks of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.141.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetMscSubWebhooksArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = AlicloudFunctions.getMscSubWebhooks(GetMscSubWebhooksArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("mscSubWebhookId1", ids.applyValue(getMscSubWebhooksResult -> getMscSubWebhooksResult.webhooks()[0].id()));
+     *         final var nameRegex = AlicloudFunctions.getMscSubWebhooks(GetMscSubWebhooksArgs.builder()
+     *             .nameRegex("^my-Webhook")
+     *             .build());
+     * 
+     *         ctx.export("mscSubWebhookId2", nameRegex.applyValue(getMscSubWebhooksResult -> getMscSubWebhooksResult.webhooks()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getMscSubWebhooks(GetMscSubWebhooksArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:index/getMscSubWebhooks:getMscSubWebhooks", TypeShape.of(GetMscSubWebhooksResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Msc Sub Webhooks of the current Alibaba Cloud user. * @@ -2020,6 +2349,49 @@ public static CompletableFuture getRegionsPlain(GetRegionsPlai public static Output getRegions(GetRegionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:index/getRegions:getRegions", TypeShape.of(GetRegionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Alibaba Cloud regions. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetRegionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var currentRegionDs = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
+     *             .current(true)
+     *             .build());
+     * 
+     *         ctx.export("currentRegionId", currentRegionDs.applyValue(getRegionsResult -> getRegionsResult.regions()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRegions(GetRegionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:index/getRegions:getRegions", TypeShape.of(GetRegionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Alibaba Cloud regions. * @@ -2293,6 +2665,52 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:index/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides availability zones that can be accessed by an Alibaba Cloud account within the region configured in the provider. + * + * > **NOTE:** If one zone is sold out, it will not be exported. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var zonesDs = AlicloudFunctions.getZones(GetZonesArgs.builder()
+     *             .availableInstanceType("ecs.n4.large")
+     *             .availableDiskCategory("cloud_ssd")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:index/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides availability zones that can be accessed by an Alibaba Cloud account within the region configured in the provider. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/Utilities.java b/sdk/java/src/main/java/com/pulumi/alicloud/Utilities.java index db3bb20c3d..c4c8746759 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/Utilities.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) return Optional.empty(); } - public static InvokeOptions withVersion(@Nullable InvokeOptions options) { - if (options != null && options.getVersion().isPresent()) { - return options; - } - return new InvokeOptions( - options == null ? null : options.getParent().orElse(null), - options == null ? null : options.getProvider().orElse(null), - getVersion() - ); + public static InvokeOptions withVersion(@Nullable InvokeOptions options) { + if (options != null && options.getVersion().isPresent()) { + return options; + } + return new InvokeOptions( + options == null ? null : options.getParent().orElse(null), + options == null ? null : options.getProvider().orElse(null), + getVersion() + ); + } + + public static InvokeOutputOptions withVersion(@Nullable InvokeOutputOptions options) { + if (options != null && options.getVersion().isPresent()) { + return options; } + return new InvokeOutputOptions( + options == null ? null : options.getParent().orElse(null), + options == null ? null : options.getProvider().orElse(null), + getVersion(), + options == null ? null : options.getDependsOn() + ); + } private static final java.lang.String version; public static java.lang.String getVersion() { diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/actiontrail/ActiontrailFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/actiontrail/ActiontrailFunctions.java index f6b2bf66af..1ef4a0e706 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/actiontrail/ActiontrailFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/actiontrail/ActiontrailFunctions.java @@ -33,6 +33,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.resources.InvokeArgs; import java.util.concurrent.CompletableFuture; @@ -178,6 +179,53 @@ public static CompletableFuture getConsumerGroupsPlain( public static Output getConsumerGroups(GetConsumerGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:actiontrail/getConsumerGroups:getConsumerGroups", TypeShape.of(GetConsumerGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of ALIKAFKA Consumer Groups in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in 1.56.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.actiontrail.ActiontrailFunctions;
+     * import com.pulumi.alicloud.actiontrail.inputs.GetConsumerGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var consumerGroupsDs = ActiontrailFunctions.getConsumerGroups(GetConsumerGroupsArgs.builder()
+     *             .instanceId("xxx")
+     *             .consumerIdRegex("CID-alikafkaGroupDatasourceName")
+     *             .outputFile("consumerGroups.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstGroupName", consumerGroupsDs.applyValue(getConsumerGroupsResult -> getConsumerGroupsResult.consumerIds()[0]));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getConsumerGroups(GetConsumerGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:actiontrail/getConsumerGroups:getConsumerGroups", TypeShape.of(GetConsumerGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of ALIKAFKA Consumer Groups in an Alibaba Cloud account according to the specified filters. * @@ -445,6 +493,50 @@ public static CompletableFuture getGlobalEve public static Output getGlobalEventsStorageRegion(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:actiontrail/getGlobalEventsStorageRegion:getGlobalEventsStorageRegion", TypeShape.of(GetGlobalEventsStorageRegionResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Actiontrail Global Events Storage Region of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.201.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.actiontrail.ActiontrailFunctions;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ActiontrailFunctions.getGlobalEventsStorageRegion();
+     * 
+     *         ctx.export("alicloudActiontrailGlobalEventsStorageRegion1", default_.storageRegion());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGlobalEventsStorageRegion(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:actiontrail/getGlobalEventsStorageRegion:getGlobalEventsStorageRegion", TypeShape.of(GetGlobalEventsStorageRegionResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Actiontrail Global Events Storage Region of the current Alibaba Cloud user. * @@ -754,6 +846,59 @@ public static CompletableFuture getHistoryDelivery public static Output getHistoryDeliveryJobs(GetHistoryDeliveryJobsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:actiontrail/getHistoryDeliveryJobs:getHistoryDeliveryJobs", TypeShape.of(GetHistoryDeliveryJobsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Actiontrail History Delivery Jobs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.139.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.actiontrail.ActiontrailFunctions;
+     * import com.pulumi.alicloud.actiontrail.inputs.GetHistoryDeliveryJobsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = ActiontrailFunctions.getHistoryDeliveryJobs(GetHistoryDeliveryJobsArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("actiontrailHistoryDeliveryJobId1", ids.applyValue(getHistoryDeliveryJobsResult -> getHistoryDeliveryJobsResult.jobs()[0].id()));
+     *         final var status = ActiontrailFunctions.getHistoryDeliveryJobs(GetHistoryDeliveryJobsArgs.builder()
+     *             .ids("example_id")
+     *             .status("2")
+     *             .build());
+     * 
+     *         ctx.export("actiontrailHistoryDeliveryJobId2", status.applyValue(getHistoryDeliveryJobsResult -> getHistoryDeliveryJobsResult.jobs()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHistoryDeliveryJobs(GetHistoryDeliveryJobsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:actiontrail/getHistoryDeliveryJobs:getHistoryDeliveryJobs", TypeShape.of(GetHistoryDeliveryJobsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Actiontrail History Delivery Jobs of the current Alibaba Cloud user. * @@ -1207,6 +1352,86 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:actiontrail/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of ALIKAFKA Instances in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in 1.59.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetZonesArgs;
+     * import com.pulumi.alicloud.vpc.Network;
+     * import com.pulumi.alicloud.vpc.NetworkArgs;
+     * import com.pulumi.alicloud.vpc.Switch;
+     * import com.pulumi.alicloud.vpc.SwitchArgs;
+     * import com.pulumi.alicloud.alikafka.Instance;
+     * import com.pulumi.alicloud.alikafka.InstanceArgs;
+     * import com.pulumi.alicloud.actiontrail.ActiontrailFunctions;
+     * import com.pulumi.alicloud.actiontrail.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var instanceName = config.get("instanceName").orElse("alikafkaInstanceName");
+     *         final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
+     *             .availableResourceCreation("VSwitch")
+     *             .build());
+     * 
+     *         var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
+     *             .cidrBlock("172.16.0.0/12")
+     *             .build());
+     * 
+     *         var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
+     *             .vpcId(defaultNetwork.id())
+     *             .cidrBlock("172.16.0.0/24")
+     *             .zoneId(default_.zones()[0].id())
+     *             .build());
+     * 
+     *         var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
+     *             .name(instanceName)
+     *             .partitionNum("50")
+     *             .diskType("1")
+     *             .diskSize("500")
+     *             .deployType("4")
+     *             .ioMax("20")
+     *             .vswitchId(defaultSwitch.id())
+     *             .build());
+     * 
+     *         final var instancesDs = ActiontrailFunctions.getInstances(GetInstancesArgs.builder()
+     *             .nameRegex("alikafkaInstanceName")
+     *             .outputFile("instances.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstInstanceName", instancesDs.applyValue(getInstancesResult -> getInstancesResult.instances()[0].name()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:actiontrail/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of ALIKAFKA Instances in an Alibaba Cloud account according to the specified filters. * @@ -1434,6 +1659,55 @@ public static CompletableFuture getSaslAclsPlain(GetSaslAclsP public static Output getSaslAcls(GetSaslAclsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:actiontrail/getSaslAcls:getSaslAcls", TypeShape.of(GetSaslAclsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of ALIKAFKA Sasl acls in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in 1.66.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.actiontrail.ActiontrailFunctions;
+     * import com.pulumi.alicloud.actiontrail.inputs.GetSaslAclsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var saslAclsDs = ActiontrailFunctions.getSaslAcls(GetSaslAclsArgs.builder()
+     *             .instanceId("xxx")
+     *             .username("username")
+     *             .aclResourceType("Topic")
+     *             .aclResourceName("testTopic")
+     *             .outputFile("saslAcls.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstSaslAclUsername", saslAclsDs.applyValue(getSaslAclsResult -> getSaslAclsResult.acls()[0].username()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSaslAcls(GetSaslAclsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:actiontrail/getSaslAcls:getSaslAcls", TypeShape.of(GetSaslAclsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of ALIKAFKA Sasl acls in an Alibaba Cloud account according to the specified filters. * @@ -1624,6 +1898,53 @@ public static CompletableFuture getSaslUsersPlain(GetSaslUse public static Output getSaslUsers(GetSaslUsersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:actiontrail/getSaslUsers:getSaslUsers", TypeShape.of(GetSaslUsersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of ALIKAFKA Sasl users in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in 1.66.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.actiontrail.ActiontrailFunctions;
+     * import com.pulumi.alicloud.actiontrail.inputs.GetSaslUsersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var saslUsersDs = ActiontrailFunctions.getSaslUsers(GetSaslUsersArgs.builder()
+     *             .instanceId("xxx")
+     *             .nameRegex("username")
+     *             .outputFile("saslUsers.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstSaslUsername", saslUsersDs.applyValue(getSaslUsersResult -> getSaslUsersResult.users()[0].username()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSaslUsers(GetSaslUsersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:actiontrail/getSaslUsers:getSaslUsers", TypeShape.of(GetSaslUsersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of ALIKAFKA Sasl users in an Alibaba Cloud account according to the specified filters. * @@ -1812,6 +2133,53 @@ public static CompletableFuture getTopicsPlain(GetTopicsPlainAr public static Output getTopics(GetTopicsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:actiontrail/getTopics:getTopics", TypeShape.of(GetTopicsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of ALIKAFKA Topics in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in 1.56.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.actiontrail.ActiontrailFunctions;
+     * import com.pulumi.alicloud.actiontrail.inputs.GetTopicsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var topicsDs = ActiontrailFunctions.getTopics(GetTopicsArgs.builder()
+     *             .instanceId("xxx")
+     *             .nameRegex("alikafkaTopicName")
+     *             .outputFile("topics.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstTopicName", topicsDs.applyValue(getTopicsResult -> getTopicsResult.topics()[0].topic()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTopics(GetTopicsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:actiontrail/getTopics:getTopics", TypeShape.of(GetTopicsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of ALIKAFKA Topics in an Alibaba Cloud account according to the specified filters. * @@ -2084,6 +2452,51 @@ public static CompletableFuture getTrailsPlain(GetTrailsPlainAr public static Output getTrails(GetTrailsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:actiontrail/getTrails:getTrails", TypeShape.of(GetTrailsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of ActionTrail Trails in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in 1.95.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.actiontrail.ActiontrailFunctions;
+     * import com.pulumi.alicloud.actiontrail.inputs.GetTrailsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ActiontrailFunctions.getTrails(GetTrailsArgs.builder()
+     *             .nameRegex("tf-testacc-actiontrail")
+     *             .build());
+     * 
+     *         ctx.export("trailName", default_.trails()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTrails(GetTrailsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:actiontrail/getTrails:getTrails", TypeShape.of(GetTrailsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of ActionTrail Trails in an Alibaba Cloud account according to the specified filters. * @@ -2204,6 +2617,19 @@ public static Output getTrailsDeprecated(GetTrailsDep * */ @Deprecated /* DataSource has been renamed to `getTrails` */ + public static Output getTrailsDeprecated(GetTrailsDeprecatedArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:actiontrail/getTrailsDeprecated:getTrailsDeprecated", TypeShape.of(GetTrailsDeprecatedResult.class), args, Utilities.withVersion(options)); + } + /** + * > **DEPRECATED:** This datasource has been renamed to alicloud.actiontrail.getTrails from version 1.95.0. + * + * This data source provides a list of action trail of the current Alibaba Cloud user. + * + * @deprecated + * DataSource has been renamed to `getTrails` + * + */ + @Deprecated /* DataSource has been renamed to `getTrails` */ public static CompletableFuture getTrailsDeprecatedPlain(GetTrailsDeprecatedPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:actiontrail/getTrailsDeprecated:getTrailsDeprecated", TypeShape.of(GetTrailsDeprecatedResult.class), args, Utilities.withVersion(options)); } diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/adb/AdbFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/adb/AdbFunctions.java index 207d833044..991fb0dbed 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/adb/AdbFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/adb/AdbFunctions.java @@ -23,6 +23,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class AdbFunctions { @@ -271,6 +272,55 @@ public static CompletableFuture getClustersPlain(GetClustersP public static Output getClusters(GetClustersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:adb/getClusters:getClusters", TypeShape.of(GetClustersResult.class), args, Utilities.withVersion(options)); } + /** + * The `alicloud.adb.getClusters` data source provides a collection of ADB clusters available in Alibaba Cloud account. + * Filters support regular expression for the cluster description, searches by tags, and other filters which are listed below. + * + * > **DEPRECATED:** This resource has been deprecated from version `1.121.0`. Please use new datasource alicloud_adb_db_clusters. + * + * > **NOTE:** Available in v1.71.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.adb.AdbFunctions;
+     * import com.pulumi.alicloud.adb.inputs.GetClustersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var adbClustersDs = AdbFunctions.getClusters(GetClustersArgs.builder()
+     *             .descriptionRegex("am-\\w+")
+     *             .status("Running")
+     *             .build());
+     * 
+     *         ctx.export("firstAdbClusterId", adbClustersDs.applyValue(getClustersResult -> getClustersResult.clusters()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getClusters(GetClustersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:adb/getClusters:getClusters", TypeShape.of(GetClustersResult.class), args, Utilities.withVersion(options)); + } /** * The `alicloud.adb.getClusters` data source provides a collection of ADB clusters available in Alibaba Cloud account. * Filters support regular expression for the cluster description, searches by tags, and other filters which are listed below. @@ -555,6 +605,53 @@ public static CompletableFuture getDBClusterLake public static Output getDBClusterLakeVersions(GetDBClusterLakeVersionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:adb/getDBClusterLakeVersions:getDBClusterLakeVersions", TypeShape.of(GetDBClusterLakeVersionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Adb DBCluster Lake Versions of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.190.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.adb.AdbFunctions;
+     * import com.pulumi.alicloud.adb.inputs.GetDBClusterLakeVersionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = AdbFunctions.getDBClusterLakeVersions(GetDBClusterLakeVersionsArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("adbDbClusterLakeVersionId1", ids.applyValue(getDBClusterLakeVersionsResult -> getDBClusterLakeVersionsResult.versions()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDBClusterLakeVersions(GetDBClusterLakeVersionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:adb/getDBClusterLakeVersions:getDBClusterLakeVersions", TypeShape.of(GetDBClusterLakeVersionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Adb DBCluster Lake Versions of the current Alibaba Cloud user. * @@ -837,6 +934,53 @@ public static CompletableFuture getDBClustersPlain(GetDBClu public static Output getDBClusters(GetDBClustersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:adb/getDBClusters:getDBClusters", TypeShape.of(GetDBClustersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Adb DBClusters of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.121.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.adb.AdbFunctions;
+     * import com.pulumi.alicloud.adb.inputs.GetDBClustersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = AdbFunctions.getDBClusters(GetDBClustersArgs.builder()
+     *             .descriptionRegex("example")
+     *             .build());
+     * 
+     *         ctx.export("firstAdbDbClusterId", example.applyValue(getDBClustersResult -> getDBClustersResult.clusters()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDBClusters(GetDBClustersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:adb/getDBClusters:getDBClusters", TypeShape.of(GetDBClustersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Adb DBClusters of the current Alibaba Cloud user. * @@ -1022,6 +1166,52 @@ public static CompletableFuture getResourceGroupsPlain( public static Output getResourceGroups(GetResourceGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:adb/getResourceGroups:getResourceGroups", TypeShape.of(GetResourceGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Adb Resource Group available to the user.[What is Resource Group](https://www.alibabacloud.com/help/en/analyticdb-for-mysql/developer-reference/api-adb-2019-03-15-describedbresourcegroup) + * + * > **NOTE:** Available since v1.195.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.adb.AdbFunctions;
+     * import com.pulumi.alicloud.adb.inputs.GetResourceGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = AdbFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
+     *             .dbClusterId("am-bp1a16357gty69185")
+     *             .groupName("TESTOPENAPI")
+     *             .build());
+     * 
+     *         ctx.export("alicloudAdbResourceGroupExampleId", default_.groups()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getResourceGroups(GetResourceGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:adb/getResourceGroups:getResourceGroups", TypeShape.of(GetResourceGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Adb Resource Group available to the user.[What is Resource Group](https://www.alibabacloud.com/help/en/analyticdb-for-mysql/developer-reference/api-adb-2019-03-15-describedbresourcegroup) * @@ -1283,6 +1473,49 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:adb/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides availability zones for ADB that can be accessed by an Alibaba Cloud account within the region configured in the provider. + * + * > **NOTE:** Available in v1.73.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.adb.AdbFunctions;
+     * import com.pulumi.alicloud.adb.inputs.GetZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var zonesIds = AdbFunctions.getZones();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:adb/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides availability zones for ADB that can be accessed by an Alibaba Cloud account within the region configured in the provider. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/alb/AlbFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/alb/AlbFunctions.java index 99c3a3d087..a3eb8c7d6a 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/alb/AlbFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/alb/AlbFunctions.java @@ -38,6 +38,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class AlbFunctions { @@ -291,6 +292,56 @@ public static CompletableFuture getAclsPlain(GetAclsPlainArgs arg public static Output getAcls(GetAclsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:alb/getAcls:getAcls", TypeShape.of(GetAclsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Application Load Balancer (ALB) Acls of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.133.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.alb.AlbFunctions;
+     * import com.pulumi.alicloud.alb.inputs.GetAclsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = AlbFunctions.getAcls();
+     * 
+     *         ctx.export("albAclId1", ids.applyValue(getAclsResult -> getAclsResult.acls()[0].id()));
+     *         final var nameRegex = AlbFunctions.getAcls(GetAclsArgs.builder()
+     *             .nameRegex("^my-Acl")
+     *             .build());
+     * 
+     *         ctx.export("albAclId2", nameRegex.applyValue(getAclsResult -> getAclsResult.acls()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAcls(GetAclsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:alb/getAcls:getAcls", TypeShape.of(GetAclsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Application Load Balancer (ALB) Acls of the current Alibaba Cloud user. * @@ -581,6 +632,54 @@ public static CompletableFuture getAscriptsPlain(GetAscriptsP public static Output getAscripts(GetAscriptsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:alb/getAscripts:getAscripts", TypeShape.of(GetAscriptsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Alb Ascript available to the user. + * + * > **NOTE:** Available in 1.195.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.alb.AlbFunctions;
+     * import com.pulumi.alicloud.alb.inputs.GetAscriptsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = AlbFunctions.getAscripts(GetAscriptsArgs.builder()
+     *             .ids(defaultAlicloudAlbAscript.id())
+     *             .nameRegex(defaultAlicloudAlbAscript.name())
+     *             .ascriptName("test")
+     *             .listenerId(listenerId)
+     *             .build());
+     * 
+     *         ctx.export("alicloudAlbAscriptExampleId", default_.ascripts()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAscripts(GetAscriptsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:alb/getAscripts:getAscripts", TypeShape.of(GetAscriptsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Alb Ascript available to the user. * @@ -889,6 +988,58 @@ public static CompletableFuture getHealthCheckTem public static Output getHealthCheckTemplates(GetHealthCheckTemplatesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:alb/getHealthCheckTemplates:getHealthCheckTemplates", TypeShape.of(GetHealthCheckTemplatesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Alb Health Check Templates of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.134.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.alb.AlbFunctions;
+     * import com.pulumi.alicloud.alb.inputs.GetHealthCheckTemplatesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = AlbFunctions.getHealthCheckTemplates(GetHealthCheckTemplatesArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("albHealthCheckTemplateId1", ids.applyValue(getHealthCheckTemplatesResult -> getHealthCheckTemplatesResult.templates()[0].id()));
+     *         final var nameRegex = AlbFunctions.getHealthCheckTemplates(GetHealthCheckTemplatesArgs.builder()
+     *             .nameRegex("^my-HealthCheckTemplate")
+     *             .build());
+     * 
+     *         ctx.export("albHealthCheckTemplateId2", nameRegex.applyValue(getHealthCheckTemplatesResult -> getHealthCheckTemplatesResult.templates()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHealthCheckTemplates(GetHealthCheckTemplatesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:alb/getHealthCheckTemplates:getHealthCheckTemplates", TypeShape.of(GetHealthCheckTemplatesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Alb Health Check Templates of the current Alibaba Cloud user. * @@ -1176,6 +1327,53 @@ public static CompletableFuture getListenersPlain(GetListene public static Output getListeners(GetListenersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:alb/getListeners:getListeners", TypeShape.of(GetListenersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Application Load Balancer (ALB) Listeners of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.133.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.alb.AlbFunctions;
+     * import com.pulumi.alicloud.alb.inputs.GetListenersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = AlbFunctions.getListeners(GetListenersArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("albListenerId1", ids.applyValue(getListenersResult -> getListenersResult.listeners()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getListeners(GetListenersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:alb/getListeners:getListeners", TypeShape.of(GetListenersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Application Load Balancer (ALB) Listeners of the current Alibaba Cloud user. * @@ -1473,6 +1671,56 @@ public static CompletableFuture getLoadBalancersPlain(Ge public static Output getLoadBalancers(GetLoadBalancersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:alb/getLoadBalancers:getLoadBalancers", TypeShape.of(GetLoadBalancersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Alb Load Balancers of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.132.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.alb.AlbFunctions;
+     * import com.pulumi.alicloud.alb.inputs.GetLoadBalancersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = AlbFunctions.getLoadBalancers();
+     * 
+     *         ctx.export("albLoadBalancerId1", ids.applyValue(getLoadBalancersResult -> getLoadBalancersResult.balancers()[0].id()));
+     *         final var nameRegex = AlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
+     *             .nameRegex("^my-LoadBalancer")
+     *             .build());
+     * 
+     *         ctx.export("albLoadBalancerId2", nameRegex.applyValue(getLoadBalancersResult -> getLoadBalancersResult.balancers()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getLoadBalancers(GetLoadBalancersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:alb/getLoadBalancers:getLoadBalancers", TypeShape.of(GetLoadBalancersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Alb Load Balancers of the current Alibaba Cloud user. * @@ -1568,6 +1816,15 @@ public static CompletableFuture getRulesPlain(GetRulesPlainArgs public static Output getRules(GetRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:alb/getRules:getRules", TypeShape.of(GetRulesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Alb Rules of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.133.0. + * + */ + public static Output getRules(GetRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:alb/getRules:getRules", TypeShape.of(GetRulesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Alb Rules of the current Alibaba Cloud user. * @@ -1827,6 +2084,56 @@ public static CompletableFuture getSecurityPoliciesPl public static Output getSecurityPolicies(GetSecurityPoliciesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:alb/getSecurityPolicies:getSecurityPolicies", TypeShape.of(GetSecurityPoliciesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Alb Security Policies of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.130.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.alb.AlbFunctions;
+     * import com.pulumi.alicloud.alb.inputs.GetSecurityPoliciesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = AlbFunctions.getSecurityPolicies();
+     * 
+     *         ctx.export("albSecurityPolicyId1", ids.applyValue(getSecurityPoliciesResult -> getSecurityPoliciesResult.policies()[0].id()));
+     *         final var nameRegex = AlbFunctions.getSecurityPolicies(GetSecurityPoliciesArgs.builder()
+     *             .nameRegex("^my-SecurityPolicy")
+     *             .build());
+     * 
+     *         ctx.export("albSecurityPolicyId2", nameRegex.applyValue(getSecurityPoliciesResult -> getSecurityPoliciesResult.policies()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSecurityPolicies(GetSecurityPoliciesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:alb/getSecurityPolicies:getSecurityPolicies", TypeShape.of(GetSecurityPoliciesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Alb Security Policies of the current Alibaba Cloud user. * @@ -2127,6 +2434,56 @@ public static CompletableFuture getServerGroupsPlain(GetS public static Output getServerGroups(GetServerGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:alb/getServerGroups:getServerGroups", TypeShape.of(GetServerGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Alb Server Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.131.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.alb.AlbFunctions;
+     * import com.pulumi.alicloud.alb.inputs.GetServerGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = AlbFunctions.getServerGroups();
+     * 
+     *         ctx.export("albServerGroupId1", ids.applyValue(getServerGroupsResult -> getServerGroupsResult.groups()[0].id()));
+     *         final var nameRegex = AlbFunctions.getServerGroups(GetServerGroupsArgs.builder()
+     *             .nameRegex("^my-ServerGroup")
+     *             .build());
+     * 
+     *         ctx.export("albServerGroupId2", nameRegex.applyValue(getServerGroupsResult -> getServerGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServerGroups(GetServerGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:alb/getServerGroups:getServerGroups", TypeShape.of(GetServerGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Alb Server Groups of the current Alibaba Cloud user. * @@ -2412,6 +2769,53 @@ public static CompletableFuture getSystemSecuri public static Output getSystemSecurityPolicies(GetSystemSecurityPoliciesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:alb/getSystemSecurityPolicies:getSystemSecurityPolicies", TypeShape.of(GetSystemSecurityPoliciesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the ALB System Security Policies of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.183.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.alb.AlbFunctions;
+     * import com.pulumi.alicloud.alb.inputs.GetSystemSecurityPoliciesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var defaults = AlbFunctions.getSystemSecurityPolicies(GetSystemSecurityPoliciesArgs.builder()
+     *             .ids("tls_cipher_policy_1_0")
+     *             .build());
+     * 
+     *         ctx.export("albSystemSecurityPolicyId1", defaults.applyValue(getSystemSecurityPoliciesResult -> getSystemSecurityPoliciesResult.policies()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSystemSecurityPolicies(GetSystemSecurityPoliciesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:alb/getSystemSecurityPolicies:getSystemSecurityPolicies", TypeShape.of(GetSystemSecurityPoliciesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the ALB System Security Policies of the current Alibaba Cloud user. * @@ -2684,6 +3088,51 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:alb/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the available zones with the Application Load Balancer (ALB) Instance of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.132.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.alb.AlbFunctions;
+     * import com.pulumi.alicloud.alb.inputs.GetZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = AlbFunctions.getZones();
+     * 
+     *         ctx.export("firstAlbZonesId", example.applyValue(getZonesResult -> getZonesResult.zones()[0].zoneId()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:alb/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the available zones with the Application Load Balancer (ALB) Instance of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/amqp/AmqpFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/amqp/AmqpFunctions.java index 775b123123..78d440e859 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/amqp/AmqpFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/amqp/AmqpFunctions.java @@ -26,6 +26,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class AmqpFunctions { @@ -170,6 +171,53 @@ public static CompletableFuture getBindingsPlain(GetBindingsP public static Output getBindings(GetBindingsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:amqp/getBindings:getBindings", TypeShape.of(GetBindingsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Amqp Bindings of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.135.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.amqp.AmqpFunctions;
+     * import com.pulumi.alicloud.amqp.inputs.GetBindingsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var examples = AmqpFunctions.getBindings(GetBindingsArgs.builder()
+     *             .instanceId("amqp-cn-xxxxx")
+     *             .virtualHostName("my-vh")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBindings(GetBindingsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:amqp/getBindings:getBindings", TypeShape.of(GetBindingsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Amqp Bindings of the current Alibaba Cloud user. * @@ -391,6 +439,64 @@ public static CompletableFuture getExchangesPlain(GetExchang public static Output getExchanges(GetExchangesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:amqp/getExchanges:getExchanges", TypeShape.of(GetExchangesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Amqp Exchanges of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.128.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.amqp.AmqpFunctions;
+     * import com.pulumi.alicloud.amqp.inputs.GetExchangesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = AmqpFunctions.getExchanges(GetExchangesArgs.builder()
+     *             .instanceId("amqp-abc12345")
+     *             .virtualHostName("my-VirtualHost")
+     *             .ids(            
+     *                 "my-Exchange-1",
+     *                 "my-Exchange-2")
+     *             .build());
+     * 
+     *         ctx.export("amqpExchangeId1", ids.applyValue(getExchangesResult -> getExchangesResult.exchanges()[0].id()));
+     *         final var nameRegex = AmqpFunctions.getExchanges(GetExchangesArgs.builder()
+     *             .instanceId("amqp-abc12345")
+     *             .virtualHostName("my-VirtualHost")
+     *             .nameRegex("^my-Exchange")
+     *             .build());
+     * 
+     *         ctx.export("amqpExchangeId2", nameRegex.applyValue(getExchangesResult -> getExchangesResult.exchanges()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getExchanges(GetExchangesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:amqp/getExchanges:getExchanges", TypeShape.of(GetExchangesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Amqp Exchanges of the current Alibaba Cloud user. * @@ -719,6 +825,60 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:amqp/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Amqp Instances of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.128.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.amqp.AmqpFunctions;
+     * import com.pulumi.alicloud.amqp.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = AmqpFunctions.getInstances(GetInstancesArgs.builder()
+     *             .ids(            
+     *                 "amqp-abc12345",
+     *                 "amqp-abc34567")
+     *             .build());
+     * 
+     *         ctx.export("amqpInstanceId1", ids.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *         final var nameRegex = AmqpFunctions.getInstances(GetInstancesArgs.builder()
+     *             .nameRegex("^my-Instance")
+     *             .build());
+     * 
+     *         ctx.export("amqpInstanceId2", nameRegex.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:amqp/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Amqp Instances of the current Alibaba Cloud user. * @@ -947,6 +1107,64 @@ public static CompletableFuture getQueuesPlain(GetQueuesPlainAr public static Output getQueues(GetQueuesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:amqp/getQueues:getQueues", TypeShape.of(GetQueuesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Amqp Queues of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.127.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.amqp.AmqpFunctions;
+     * import com.pulumi.alicloud.amqp.inputs.GetQueuesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = AmqpFunctions.getQueues(GetQueuesArgs.builder()
+     *             .instanceId("amqp-abc12345")
+     *             .virtualHostName("my-VirtualHost")
+     *             .ids(            
+     *                 "my-Queue-1",
+     *                 "my-Queue-2")
+     *             .build());
+     * 
+     *         ctx.export("amqpQueueId1", ids.applyValue(getQueuesResult -> getQueuesResult.queues()[0].id()));
+     *         final var nameRegex = AmqpFunctions.getQueues(GetQueuesArgs.builder()
+     *             .instanceId("amqp-abc12345")
+     *             .virtualHostName("my-VirtualHost")
+     *             .nameRegex("^my-Queue")
+     *             .build());
+     * 
+     *         ctx.export("amqpQueueId2", nameRegex.applyValue(getQueuesResult -> getQueuesResult.queues()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getQueues(GetQueuesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:amqp/getQueues:getQueues", TypeShape.of(GetQueuesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Amqp Queues of the current Alibaba Cloud user. * @@ -1230,6 +1448,51 @@ public static CompletableFuture getStaticAccountsPlain( public static Output getStaticAccounts(GetStaticAccountsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:amqp/getStaticAccounts:getStaticAccounts", TypeShape.of(GetStaticAccountsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Amqp Static Account available to the user.[What is Static Account](https://help.aliyun.com/document_detail/184399.html) + * + * > **NOTE:** Available in 1.195.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.amqp.AmqpFunctions;
+     * import com.pulumi.alicloud.amqp.inputs.GetStaticAccountsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = AmqpFunctions.getStaticAccounts(GetStaticAccountsArgs.builder()
+     *             .instanceId("amqp-cn-0ju2y01zs001")
+     *             .build());
+     * 
+     *         ctx.export("alicloudAmqpStaticAccountExampleId", default_.accounts()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getStaticAccounts(GetStaticAccountsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:amqp/getStaticAccounts:getStaticAccounts", TypeShape.of(GetStaticAccountsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Amqp Static Account available to the user.[What is Static Account](https://help.aliyun.com/document_detail/184399.html) * @@ -1443,6 +1706,62 @@ public static CompletableFuture getVirtualHostsPlain(GetV public static Output getVirtualHosts(GetVirtualHostsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:amqp/getVirtualHosts:getVirtualHosts", TypeShape.of(GetVirtualHostsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Amqp Virtual Hosts of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.126.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.amqp.AmqpFunctions;
+     * import com.pulumi.alicloud.amqp.inputs.GetVirtualHostsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = AmqpFunctions.getVirtualHosts(GetVirtualHostsArgs.builder()
+     *             .instanceId("amqp-abc12345")
+     *             .ids(            
+     *                 "my-VirtualHost-1",
+     *                 "my-VirtualHost-2")
+     *             .build());
+     * 
+     *         ctx.export("amqpVirtualHostId1", ids.applyValue(getVirtualHostsResult -> getVirtualHostsResult.hosts()[0].id()));
+     *         final var nameRegex = AmqpFunctions.getVirtualHosts(GetVirtualHostsArgs.builder()
+     *             .instanceId("amqp-abc12345")
+     *             .nameRegex("^my-VirtualHost")
+     *             .build());
+     * 
+     *         ctx.export("amqpVirtualHostId2", nameRegex.applyValue(getVirtualHostsResult -> getVirtualHostsResult.hosts()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVirtualHosts(GetVirtualHostsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:amqp/getVirtualHosts:getVirtualHosts", TypeShape.of(GetVirtualHostsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Amqp Virtual Hosts of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/apigateway/ApigatewayFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/apigateway/ApigatewayFunctions.java index 7359826fe8..55c83455f2 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/apigateway/ApigatewayFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/apigateway/ApigatewayFunctions.java @@ -32,6 +32,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class ApigatewayFunctions { @@ -485,6 +486,96 @@ public static CompletableFuture getApisPlain(GetApisPlainArgs arg public static Output getApis(GetApisArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:apigateway/getApis:getApis", TypeShape.of(GetApisResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Api Gateway APIs of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.22.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.apigateway.Group;
+     * import com.pulumi.alicloud.apigateway.GroupArgs;
+     * import com.pulumi.alicloud.apigateway.Api;
+     * import com.pulumi.alicloud.apigateway.ApiArgs;
+     * import com.pulumi.alicloud.apigateway.inputs.ApiRequestConfigArgs;
+     * import com.pulumi.alicloud.apigateway.inputs.ApiHttpServiceConfigArgs;
+     * import com.pulumi.alicloud.apigateway.inputs.ApiRequestParameterArgs;
+     * import com.pulumi.alicloud.apigateway.ApigatewayFunctions;
+     * import com.pulumi.alicloud.apigateway.inputs.GetApisArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("terraform-example");
+     *         var default_ = new Group("default", GroupArgs.builder()
+     *             .name(name)
+     *             .description(name)
+     *             .build());
+     * 
+     *         var defaultApi = new Api("defaultApi", ApiArgs.builder()
+     *             .groupId(default_.id())
+     *             .name(name)
+     *             .description(name)
+     *             .authType("APP")
+     *             .serviceType("HTTP")
+     *             .requestConfig(ApiRequestConfigArgs.builder()
+     *                 .protocol("HTTP")
+     *                 .method("GET")
+     *                 .path("/test/path")
+     *                 .mode("MAPPING")
+     *                 .build())
+     *             .httpServiceConfig(ApiHttpServiceConfigArgs.builder()
+     *                 .address("http://apigateway-backend.alicloudapi.com:8080")
+     *                 .method("GET")
+     *                 .path("/web/cloudapi")
+     *                 .timeout(20)
+     *                 .aoneName("cloudapi-openapi")
+     *                 .build())
+     *             .requestParameters(ApiRequestParameterArgs.builder()
+     *                 .name(name)
+     *                 .type("STRING")
+     *                 .required("OPTIONAL")
+     *                 .in("QUERY")
+     *                 .inService("QUERY")
+     *                 .nameService(name)
+     *                 .build())
+     *             .build());
+     * 
+     *         final var ids = ApigatewayFunctions.getApis(GetApisArgs.builder()
+     *             .ids(defaultApi.id())
+     *             .build());
+     * 
+     *         ctx.export("apiGatewayApisId0", ids.applyValue(getApisResult -> getApisResult).applyValue(ids -> ids.applyValue(getApisResult -> getApisResult.apis()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getApis(GetApisArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:apigateway/getApis:getApis", TypeShape.of(GetApisResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Api Gateway APIs of the current Alibaba Cloud user. * @@ -790,6 +881,49 @@ public static CompletableFuture getAppsPlain(GetAppsPlainArgs arg public static Output getApps(GetAppsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:apigateway/getApps:getApps", TypeShape.of(GetAppsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the apps of the current Alibaba Cloud user. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.apigateway.ApigatewayFunctions;
+     * import com.pulumi.alicloud.apigateway.inputs.GetAppsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var dataApigatway = ApigatewayFunctions.getApps(GetAppsArgs.builder()
+     *             .outputFile("outapps")
+     *             .build());
+     * 
+     *         ctx.export("firstAppId", dataApigatway.applyValue(getAppsResult -> getAppsResult.apps()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getApps(GetAppsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:apigateway/getApps:getApps", TypeShape.of(GetAppsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the apps of the current Alibaba Cloud user. * @@ -1058,6 +1192,51 @@ public static CompletableFuture getBackendsPlain(GetBackendsP public static Output getBackends(GetBackendsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:apigateway/getBackends:getBackends", TypeShape.of(GetBackendsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Api Gateway Backends of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.181.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.apigateway.ApigatewayFunctions;
+     * import com.pulumi.alicloud.apigateway.inputs.GetBackendsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = ApigatewayFunctions.getBackends();
+     * 
+     *         ctx.export("apiGatewayBackendId1", ids.applyValue(getBackendsResult -> getBackendsResult.backends()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBackends(GetBackendsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:apigateway/getBackends:getBackends", TypeShape.of(GetBackendsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Api Gateway Backends of the current Alibaba Cloud user. * @@ -1318,6 +1497,49 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr public static Output getGroups(GetGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:apigateway/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the api groups of the current Alibaba Cloud user. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.apigateway.ApigatewayFunctions;
+     * import com.pulumi.alicloud.apigateway.inputs.GetGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var dataApigatway = ApigatewayFunctions.getGroups(GetGroupsArgs.builder()
+     *             .outputFile("outgroups")
+     *             .build());
+     * 
+     *         ctx.export("firstGroupId", dataApigatway.applyValue(getGroupsResult -> getGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGroups(GetGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:apigateway/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the api groups of the current Alibaba Cloud user. * @@ -1621,6 +1843,58 @@ public static CompletableFuture getLogConfigsPlain(GetLogCo public static Output getLogConfigs(GetLogConfigsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:apigateway/getLogConfigs:getLogConfigs", TypeShape.of(GetLogConfigsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Api Gateway Log Configs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.185.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.apigateway.ApigatewayFunctions;
+     * import com.pulumi.alicloud.apigateway.inputs.GetLogConfigsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = ApigatewayFunctions.getLogConfigs(GetLogConfigsArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("apiGatewayLogConfigId1", ids.applyValue(getLogConfigsResult -> getLogConfigsResult.configs()[0].id()));
+     *         final var logType = ApigatewayFunctions.getLogConfigs(GetLogConfigsArgs.builder()
+     *             .logType("PROVIDER")
+     *             .build());
+     * 
+     *         ctx.export("apiGatewayLogConfigId2", logType.applyValue(getLogConfigsResult -> getLogConfigsResult.configs()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getLogConfigs(GetLogConfigsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:apigateway/getLogConfigs:getLogConfigs", TypeShape.of(GetLogConfigsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Api Gateway Log Configs of the current Alibaba Cloud user. * @@ -1832,6 +2106,59 @@ public static CompletableFuture getModelsPlain(GetModelsPlainAr public static Output getModels(GetModelsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:apigateway/getModels:getModels", TypeShape.of(GetModelsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Api Gateway Models of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.187.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.apigateway.ApigatewayFunctions;
+     * import com.pulumi.alicloud.apigateway.inputs.GetModelsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = ApigatewayFunctions.getModels(GetModelsArgs.builder()
+     *             .ids("example_id")
+     *             .groupId("example_group_id")
+     *             .build());
+     * 
+     *         ctx.export("apiGatewayModelId1", ids.applyValue(getModelsResult -> getModelsResult.models()[0].id()));
+     *         final var groupId = ApigatewayFunctions.getModels(GetModelsArgs.builder()
+     *             .groupId("example_group_id")
+     *             .build());
+     * 
+     *         ctx.export("apiGatewayModelId2", groupId.applyValue(getModelsResult -> getModelsResult.models()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getModels(GetModelsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:apigateway/getModels:getModels", TypeShape.of(GetModelsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Api Gateway Models of the current Alibaba Cloud user. * @@ -2135,6 +2462,56 @@ public static CompletableFuture getPluginsPlain(GetPluginsPlai public static Output getPlugins(GetPluginsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:apigateway/getPlugins:getPlugins", TypeShape.of(GetPluginsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Api Gateway Plugins of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.187.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.apigateway.ApigatewayFunctions;
+     * import com.pulumi.alicloud.apigateway.inputs.GetPluginsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = ApigatewayFunctions.getPlugins();
+     * 
+     *         ctx.export("apiGatewayPluginId1", ids.applyValue(getPluginsResult -> getPluginsResult.plugins()[0].id()));
+     *         final var nameRegex = ApigatewayFunctions.getPlugins(GetPluginsArgs.builder()
+     *             .nameRegex("^my-Plugin")
+     *             .build());
+     * 
+     *         ctx.export("apiGatewayPluginId2", nameRegex.applyValue(getPluginsResult -> getPluginsResult.plugins()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPlugins(GetPluginsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:apigateway/getPlugins:getPlugins", TypeShape.of(GetPluginsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Api Gateway Plugins of the current Alibaba Cloud user. * @@ -2415,6 +2792,52 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:apigateway/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can enable API gateway service automatically. If the service has been enabled, it will return `Opened`. + * + * For information about API Gateway and how to use it, see [What is API Gateway](https://www.alibabacloud.com/help/product/29462.htm). + * + * > **NOTE:** Available in v1.96.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.apigateway.ApigatewayFunctions;
+     * import com.pulumi.alicloud.apigateway.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = ApigatewayFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:apigateway/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can enable API gateway service automatically. If the service has been enabled, it will return `Opened`. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/arms/ArmsFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/arms/ArmsFunctions.java index d02cc1f45c..a0511e8250 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/arms/ArmsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/arms/ArmsFunctions.java @@ -38,6 +38,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class ArmsFunctions { @@ -276,6 +277,53 @@ public static CompletableFuture getAlertContactGrou public static Output getAlertContactGroups(GetAlertContactGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:arms/getAlertContactGroups:getAlertContactGroups", TypeShape.of(GetAlertContactGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Arms Alert Contact Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.131.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.arms.ArmsFunctions;
+     * import com.pulumi.alicloud.arms.inputs.GetAlertContactGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var nameRegex = ArmsFunctions.getAlertContactGroups(GetAlertContactGroupsArgs.builder()
+     *             .nameRegex("^my-AlertContactGroup")
+     *             .build());
+     * 
+     *         ctx.export("armsAlertContactGroupId", nameRegex.applyValue(getAlertContactGroupsResult -> getAlertContactGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAlertContactGroups(GetAlertContactGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:arms/getAlertContactGroups:getAlertContactGroups", TypeShape.of(GetAlertContactGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Arms Alert Contact Groups of the current Alibaba Cloud user. * @@ -573,6 +621,56 @@ public static CompletableFuture getAlertContactsPlain(Ge public static Output getAlertContacts(GetAlertContactsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:arms/getAlertContacts:getAlertContacts", TypeShape.of(GetAlertContactsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Arms Alert Contacts of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.129.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.arms.ArmsFunctions;
+     * import com.pulumi.alicloud.arms.inputs.GetAlertContactsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = ArmsFunctions.getAlertContacts();
+     * 
+     *         ctx.export("armsAlertContactId1", ids.applyValue(getAlertContactsResult -> getAlertContactsResult.contacts()[0].id()));
+     *         final var nameRegex = ArmsFunctions.getAlertContacts(GetAlertContactsArgs.builder()
+     *             .nameRegex("^my-AlertContact")
+     *             .build());
+     * 
+     *         ctx.export("armsAlertContactId2", nameRegex.applyValue(getAlertContactsResult -> getAlertContactsResult.contacts()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAlertContacts(GetAlertContactsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:arms/getAlertContacts:getAlertContacts", TypeShape.of(GetAlertContactsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Arms Alert Contacts of the current Alibaba Cloud user. * @@ -898,6 +996,61 @@ public static CompletableFuture getAlertRobotsPlain(GetAle public static Output getAlertRobots(GetAlertRobotsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:arms/getAlertRobots:getAlertRobots", TypeShape.of(GetAlertRobotsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Arms Alert Robots of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.237.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.arms.AlertRobot;
+     * import com.pulumi.alicloud.arms.AlertRobotArgs;
+     * import com.pulumi.alicloud.arms.ArmsFunctions;
+     * import com.pulumi.alicloud.arms.inputs.GetAlertRobotsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var default_ = new AlertRobot("default", AlertRobotArgs.builder()
+     *             .alertRobotName("my-AlertRobot")
+     *             .robotType("wechat")
+     *             .robotAddr("https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=1c704e23")
+     *             .build());
+     * 
+     *         final var nameRegex = ArmsFunctions.getAlertRobots(GetAlertRobotsArgs.builder()
+     *             .alertRobotName(default_.alertRobotName())
+     *             .build());
+     * 
+     *         ctx.export("armsAlertRobotId", nameRegex.applyValue(getAlertRobotsResult -> getAlertRobotsResult).applyValue(nameRegex -> nameRegex.applyValue(getAlertRobotsResult -> getAlertRobotsResult.robots()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAlertRobots(GetAlertRobotsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:arms/getAlertRobots:getAlertRobots", TypeShape.of(GetAlertRobotsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Arms Alert Robots of the current Alibaba Cloud user. * @@ -1463,6 +1616,108 @@ public static CompletableFuture getDispatchRulesPlain(Ge public static Output getDispatchRules(GetDispatchRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:arms/getDispatchRules:getDispatchRules", TypeShape.of(GetDispatchRulesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Arms Dispatch Rules of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.136.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.arms.AlertContact;
+     * import com.pulumi.alicloud.arms.AlertContactArgs;
+     * import com.pulumi.alicloud.arms.AlertContactGroup;
+     * import com.pulumi.alicloud.arms.AlertContactGroupArgs;
+     * import com.pulumi.alicloud.arms.DispatchRule;
+     * import com.pulumi.alicloud.arms.DispatchRuleArgs;
+     * import com.pulumi.alicloud.arms.inputs.DispatchRuleGroupRuleArgs;
+     * import com.pulumi.alicloud.arms.inputs.DispatchRuleLabelMatchExpressionGridArgs;
+     * import com.pulumi.alicloud.arms.inputs.DispatchRuleNotifyRuleArgs;
+     * import com.pulumi.alicloud.arms.ArmsFunctions;
+     * import com.pulumi.alicloud.arms.inputs.GetDispatchRulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App }{{@code
+     *     public static void main(String[] args) }{{@code
+     *         Pulumi.run(App::stack);
+     *     }}{@code
+     * 
+     *     public static void stack(Context ctx) }{{@code
+     *         var default_ = new AlertContact("default", AlertContactArgs.builder()
+     *             .alertContactName("example_value")
+     *             .email("example_value}{@literal @}{@code aaa.com")
+     *             .build());
+     * 
+     *         var defaultAlertContactGroup = new AlertContactGroup("defaultAlertContactGroup", AlertContactGroupArgs.builder()
+     *             .alertContactGroupName("example_value")
+     *             .contactIds(default_.id())
+     *             .build());
+     * 
+     *         var defaultDispatchRule = new DispatchRule("defaultDispatchRule", DispatchRuleArgs.builder()
+     *             .dispatchRuleName("example_value")
+     *             .dispatchType("CREATE_ALERT")
+     *             .groupRules(DispatchRuleGroupRuleArgs.builder()
+     *                 .groupWaitTime(5)
+     *                 .groupInterval(15)
+     *                 .repeatInterval(100)
+     *                 .groupingFields("alertname")
+     *                 .build())
+     *             .labelMatchExpressionGrids(DispatchRuleLabelMatchExpressionGridArgs.builder()
+     *                 .labelMatchExpressionGroups(DispatchRuleLabelMatchExpressionGridLabelMatchExpressionGroupArgs.builder()
+     *                     .labelMatchExpressions(DispatchRuleLabelMatchExpressionGridLabelMatchExpressionGroupLabelMatchExpressionArgs.builder()
+     *                         .key("_aliyun_arms_involvedObject_kind")
+     *                         .value("app")
+     *                         .operator("eq")
+     *                         .build())
+     *                     .build())
+     *                 .build())
+     *             .notifyRules(DispatchRuleNotifyRuleArgs.builder()
+     *                 .notifyObjects(                
+     *                     DispatchRuleNotifyRuleNotifyObjectArgs.builder()
+     *                         .notifyObjectId(default_.id())
+     *                         .notifyType("ARMS_CONTACT")
+     *                         .name("example_value")
+     *                         .build(),
+     *                     DispatchRuleNotifyRuleNotifyObjectArgs.builder()
+     *                         .notifyObjectId(defaultAlertContactGroup.id())
+     *                         .notifyType("ARMS_CONTACT_GROUP")
+     *                         .name("example_value")
+     *                         .build())
+     *                 .notifyChannels(                
+     *                     "dingTalk",
+     *                     "wechat")
+     *                 .notifyStartTime("10:00")
+     *                 .notifyEndTime("23:00")
+     *                 .build())
+     *             .build());
+     * 
+     *         final var ids = ArmsFunctions.getDispatchRules();
+     * 
+     *         ctx.export("armsDispatchRuleId1", ids.applyValue(getDispatchRulesResult -> getDispatchRulesResult.rules()[0].id()));
+     *     }}{@code
+     * }}{@code
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDispatchRules(GetDispatchRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:arms/getDispatchRules:getDispatchRules", TypeShape.of(GetDispatchRulesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Arms Dispatch Rules of the current Alibaba Cloud user. * @@ -1738,19 +1993,244 @@ public static Output getIntegrationExporters(GetI * import java.nio.file.Files; * import java.nio.file.Paths; * - * public class App { - * public static void main(String[] args) { - * Pulumi.run(App::stack); - * } + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * final var ids = ArmsFunctions.getIntegrationExporters(GetIntegrationExportersArgs.builder() + * .ids("example_id") + * .clusterId("your_cluster_id") + * .integrationType("kafka") + * .build()); + * + * ctx.export("armsIntegrationExportersId1", ids.applyValue(getIntegrationExportersResult -> getIntegrationExportersResult.integrationExporters()[0].id())); + * } + * } + * } + * + * <!--End PulumiCodeChooser --> + * + */ + public static Output getIntegrationExporters(GetIntegrationExportersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:arms/getIntegrationExporters:getIntegrationExporters", TypeShape.of(GetIntegrationExportersResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Arms Integration Exporters of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.203.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.arms.ArmsFunctions;
+     * import com.pulumi.alicloud.arms.inputs.GetIntegrationExportersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = ArmsFunctions.getIntegrationExporters(GetIntegrationExportersArgs.builder()
+     *             .ids("example_id")
+     *             .clusterId("your_cluster_id")
+     *             .integrationType("kafka")
+     *             .build());
+     * 
+     *         ctx.export("armsIntegrationExportersId1", ids.applyValue(getIntegrationExportersResult -> getIntegrationExportersResult.integrationExporters()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getIntegrationExportersPlain(GetIntegrationExportersPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:arms/getIntegrationExporters:getIntegrationExporters", TypeShape.of(GetIntegrationExportersResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Arms Prometheis of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.203.0. + * + * > **DEPRECATED:** This resource has been renamed to alicloud.ecs.EcsDisk from version 1.214.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
+     * import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
+     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
+     * import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
+     * import com.pulumi.alicloud.ecs.SecurityGroup;
+     * import com.pulumi.alicloud.ecs.SecurityGroupArgs;
+     * import com.pulumi.alicloud.arms.Prometheus;
+     * import com.pulumi.alicloud.arms.PrometheusArgs;
+     * import com.pulumi.alicloud.arms.ArmsFunctions;
+     * import com.pulumi.alicloud.arms.inputs.GetPrometheisArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("tf-example");
+     *         final var default = VpcFunctions.getNetworks(GetNetworksArgs.builder()
+     *             .nameRegex("default-NODELETING")
+     *             .build());
+     * 
+     *         final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
+     *             .vpcId(default_.ids()[0])
+     *             .build());
+     * 
+     *         final var defaultGetResourceGroups = ResourcemanagerFunctions.getResourceGroups();
+     * 
+     *         var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
+     *             .vpcId(default_.ids()[0])
+     *             .build());
+     * 
+     *         var defaultPrometheus = new Prometheus("defaultPrometheus", PrometheusArgs.builder()
+     *             .clusterType("ecs")
+     *             .grafanaInstanceId("free")
+     *             .vpcId(default_.ids()[0])
+     *             .vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
+     *             .securityGroupId(defaultSecurityGroup.id())
+     *             .clusterName(String.format("%s-%s", name,default_.ids()[0]))
+     *             .resourceGroupId(defaultGetResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[1].id()))
+     *             .tags(Map.ofEntries(
+     *                 Map.entry("Created", "TF"),
+     *                 Map.entry("For", "Prometheus")
+     *             ))
+     *             .build());
+     * 
+     *         final var nameRegex = ArmsFunctions.getPrometheis(GetPrometheisArgs.builder()
+     *             .nameRegex(defaultPrometheus.clusterName())
+     *             .build());
+     * 
+     *         ctx.export("armsPrometheisId", nameRegex.applyValue(getPrometheisResult -> getPrometheisResult).applyValue(nameRegex -> nameRegex.applyValue(getPrometheisResult -> getPrometheisResult.prometheis()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPrometheis() { + return getPrometheis(GetPrometheisArgs.Empty, InvokeOptions.Empty); + } + /** + * This data source provides the Arms Prometheis of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.203.0. + * + * > **DEPRECATED:** This resource has been renamed to alicloud.ecs.EcsDisk from version 1.214.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
+     * import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
+     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
+     * import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
+     * import com.pulumi.alicloud.ecs.SecurityGroup;
+     * import com.pulumi.alicloud.ecs.SecurityGroupArgs;
+     * import com.pulumi.alicloud.arms.Prometheus;
+     * import com.pulumi.alicloud.arms.PrometheusArgs;
+     * import com.pulumi.alicloud.arms.ArmsFunctions;
+     * import com.pulumi.alicloud.arms.inputs.GetPrometheisArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("tf-example");
+     *         final var default = VpcFunctions.getNetworks(GetNetworksArgs.builder()
+     *             .nameRegex("default-NODELETING")
+     *             .build());
+     * 
+     *         final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
+     *             .vpcId(default_.ids()[0])
+     *             .build());
      * 
-     *     public static void stack(Context ctx) {
-     *         final var ids = ArmsFunctions.getIntegrationExporters(GetIntegrationExportersArgs.builder()
-     *             .ids("example_id")
-     *             .clusterId("your_cluster_id")
-     *             .integrationType("kafka")
+     *         final var defaultGetResourceGroups = ResourcemanagerFunctions.getResourceGroups();
+     * 
+     *         var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
+     *             .vpcId(default_.ids()[0])
      *             .build());
      * 
-     *         ctx.export("armsIntegrationExportersId1", ids.applyValue(getIntegrationExportersResult -> getIntegrationExportersResult.integrationExporters()[0].id()));
+     *         var defaultPrometheus = new Prometheus("defaultPrometheus", PrometheusArgs.builder()
+     *             .clusterType("ecs")
+     *             .grafanaInstanceId("free")
+     *             .vpcId(default_.ids()[0])
+     *             .vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
+     *             .securityGroupId(defaultSecurityGroup.id())
+     *             .clusterName(String.format("%s-%s", name,default_.ids()[0]))
+     *             .resourceGroupId(defaultGetResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[1].id()))
+     *             .tags(Map.ofEntries(
+     *                 Map.entry("Created", "TF"),
+     *                 Map.entry("For", "Prometheus")
+     *             ))
+     *             .build());
+     * 
+     *         final var nameRegex = ArmsFunctions.getPrometheis(GetPrometheisArgs.builder()
+     *             .nameRegex(defaultPrometheus.clusterName())
+     *             .build());
+     * 
+     *         ctx.export("armsPrometheisId", nameRegex.applyValue(getPrometheisResult -> getPrometheisResult).applyValue(nameRegex -> nameRegex.applyValue(getPrometheisResult -> getPrometheisResult.prometheis()[0].id())));
      *     }
      * }
      * }
@@ -1758,8 +2238,8 @@ public static Output getIntegrationExporters(GetI
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getIntegrationExportersPlain(GetIntegrationExportersPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("alicloud:arms/getIntegrationExporters:getIntegrationExporters", TypeShape.of(GetIntegrationExportersResult.class), args, Utilities.withVersion(options));
+    public static CompletableFuture getPrometheisPlain() {
+        return getPrometheisPlain(GetPrometheisPlainArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Arms Prometheis of the current Alibaba Cloud user.
@@ -1846,8 +2326,8 @@ public static CompletableFuture getIntegrationExp
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getPrometheis() {
-        return getPrometheis(GetPrometheisArgs.Empty, InvokeOptions.Empty);
+    public static Output getPrometheis(GetPrometheisArgs args) {
+        return getPrometheis(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Arms Prometheis of the current Alibaba Cloud user.
@@ -1934,8 +2414,8 @@ public static Output getPrometheis() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getPrometheisPlain() {
-        return getPrometheisPlain(GetPrometheisPlainArgs.Empty, InvokeOptions.Empty);
+    public static CompletableFuture getPrometheisPlain(GetPrometheisPlainArgs args) {
+        return getPrometheisPlain(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Arms Prometheis of the current Alibaba Cloud user.
@@ -2022,8 +2502,8 @@ public static CompletableFuture getPrometheisPlain() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getPrometheis(GetPrometheisArgs args) {
-        return getPrometheis(args, InvokeOptions.Empty);
+    public static Output getPrometheis(GetPrometheisArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("alicloud:arms/getPrometheis:getPrometheis", TypeShape.of(GetPrometheisResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides the Arms Prometheis of the current Alibaba Cloud user.
@@ -2110,8 +2590,8 @@ public static Output getPrometheis(GetPrometheisArgs args)
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getPrometheisPlain(GetPrometheisPlainArgs args) {
-        return getPrometheisPlain(args, InvokeOptions.Empty);
+    public static Output getPrometheis(GetPrometheisArgs args, InvokeOutputOptions options) {
+        return Deployment.getInstance().invoke("alicloud:arms/getPrometheis:getPrometheis", TypeShape.of(GetPrometheisResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides the Arms Prometheis of the current Alibaba Cloud user.
@@ -2198,15 +2678,13 @@ public static CompletableFuture getPrometheisPlain(GetProme
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getPrometheis(GetPrometheisArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("alicloud:arms/getPrometheis:getPrometheis", TypeShape.of(GetPrometheisResult.class), args, Utilities.withVersion(options));
+    public static CompletableFuture getPrometheisPlain(GetPrometheisPlainArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invokeAsync("alicloud:arms/getPrometheis:getPrometheis", TypeShape.of(GetPrometheisResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * This data source provides the Arms Prometheis of the current Alibaba Cloud user.
-     * 
-     * > **NOTE:** Available since v1.203.0.
+     * This data source provides the Arms Prometheus of the current Alibaba Cloud user.
      * 
-     * > **DEPRECATED:** This resource has been renamed to alicloud.ecs.EcsDisk from version 1.214.0.
+     * > **NOTE:** Available since v1.214.0.
      * 
      * ## Example Usage
      * 
@@ -2230,7 +2708,7 @@ public static Output getPrometheis(GetPrometheisArgs args,
      * import com.pulumi.alicloud.arms.Prometheus;
      * import com.pulumi.alicloud.arms.PrometheusArgs;
      * import com.pulumi.alicloud.arms.ArmsFunctions;
-     * import com.pulumi.alicloud.arms.inputs.GetPrometheisArgs;
+     * import com.pulumi.alicloud.arms.inputs.GetPrometheusArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2274,11 +2752,11 @@ public static Output getPrometheis(GetPrometheisArgs args,
      *             ))
      *             .build());
      * 
-     *         final var nameRegex = ArmsFunctions.getPrometheis(GetPrometheisArgs.builder()
+     *         final var nameRegex = ArmsFunctions.getPrometheus(GetPrometheusArgs.builder()
      *             .nameRegex(defaultPrometheus.clusterName())
      *             .build());
      * 
-     *         ctx.export("armsPrometheisId", nameRegex.applyValue(getPrometheisResult -> getPrometheisResult).applyValue(nameRegex -> nameRegex.applyValue(getPrometheisResult -> getPrometheisResult.prometheis()[0].id())));
+     *         ctx.export("armsPrometheusId", nameRegex.applyValue(getPrometheusResult -> getPrometheusResult).applyValue(nameRegex -> nameRegex.applyValue(getPrometheusResult -> getPrometheusResult.prometheis()[0].id())));
      *     }
      * }
      * }
@@ -2286,8 +2764,8 @@ public static Output getPrometheis(GetPrometheisArgs args,
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getPrometheisPlain(GetPrometheisPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("alicloud:arms/getPrometheis:getPrometheis", TypeShape.of(GetPrometheisResult.class), args, Utilities.withVersion(options));
+    public static Output getPrometheus() {
+        return getPrometheus(GetPrometheusArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Arms Prometheus of the current Alibaba Cloud user.
@@ -2372,8 +2850,8 @@ public static CompletableFuture getPrometheisPlain(GetProme
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getPrometheus() {
-        return getPrometheus(GetPrometheusArgs.Empty, InvokeOptions.Empty);
+    public static CompletableFuture getPrometheusPlain() {
+        return getPrometheusPlain(GetPrometheusPlainArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Arms Prometheus of the current Alibaba Cloud user.
@@ -2458,8 +2936,8 @@ public static Output getPrometheus() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getPrometheusPlain() {
-        return getPrometheusPlain(GetPrometheusPlainArgs.Empty, InvokeOptions.Empty);
+    public static Output getPrometheus(GetPrometheusArgs args) {
+        return getPrometheus(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Arms Prometheus of the current Alibaba Cloud user.
@@ -2544,8 +3022,8 @@ public static CompletableFuture getPrometheusPlain() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getPrometheus(GetPrometheusArgs args) {
-        return getPrometheus(args, InvokeOptions.Empty);
+    public static CompletableFuture getPrometheusPlain(GetPrometheusPlainArgs args) {
+        return getPrometheusPlain(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Arms Prometheus of the current Alibaba Cloud user.
@@ -2630,8 +3108,8 @@ public static Output getPrometheus(GetPrometheusArgs args)
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getPrometheusPlain(GetPrometheusPlainArgs args) {
-        return getPrometheusPlain(args, InvokeOptions.Empty);
+    public static Output getPrometheus(GetPrometheusArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("alicloud:arms/getPrometheus:getPrometheus", TypeShape.of(GetPrometheusResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides the Arms Prometheus of the current Alibaba Cloud user.
@@ -2716,7 +3194,7 @@ public static CompletableFuture getPrometheusPlain(GetProme
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getPrometheus(GetPrometheusArgs args, InvokeOptions options) {
+    public static Output getPrometheus(GetPrometheusArgs args, InvokeOutputOptions options) {
         return Deployment.getInstance().invoke("alicloud:arms/getPrometheus:getPrometheus", TypeShape.of(GetPrometheusResult.class), args, Utilities.withVersion(options));
     }
     /**
@@ -2973,6 +3451,62 @@ public static CompletableFuture getPrometheusAler
     public static Output getPrometheusAlertRules(GetPrometheusAlertRulesArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("alicloud:arms/getPrometheusAlertRules:getPrometheusAlertRules", TypeShape.of(GetPrometheusAlertRulesResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * This data source provides the Arms Prometheus Alert Rules of the current Alibaba Cloud user.
+     * 
+     * > **NOTE:** Available in v1.136.0+.
+     * 
+     * ## Example Usage
+     * 
+     * Basic Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.arms.ArmsFunctions;
+     * import com.pulumi.alicloud.arms.inputs.GetPrometheusAlertRulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = ArmsFunctions.getPrometheusAlertRules(GetPrometheusAlertRulesArgs.builder()
+     *             .clusterId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("armsPrometheusAlertRuleId1", ids.applyValue(getPrometheusAlertRulesResult -> getPrometheusAlertRulesResult.rules()[0].id()));
+     *         final var nameRegex = ArmsFunctions.getPrometheusAlertRules(GetPrometheusAlertRulesArgs.builder()
+     *             .clusterId("example_value")
+     *             .nameRegex("^my-PrometheusAlertRule")
+     *             .build());
+     * 
+     *         ctx.export("armsPrometheusAlertRuleId2", nameRegex.applyValue(getPrometheusAlertRulesResult -> getPrometheusAlertRulesResult.rules()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPrometheusAlertRules(GetPrometheusAlertRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:arms/getPrometheusAlertRules:getPrometheusAlertRules", TypeShape.of(GetPrometheusAlertRulesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Arms Prometheus Alert Rules of the current Alibaba Cloud user. * @@ -3191,6 +3725,60 @@ public static CompletableFuture getPrometheusMon public static Output getPrometheusMonitorings(GetPrometheusMonitoringsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:arms/getPrometheusMonitorings:getPrometheusMonitorings", TypeShape.of(GetPrometheusMonitoringsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Arms Prometheus Monitorings of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.210.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.arms.ArmsFunctions;
+     * import com.pulumi.alicloud.arms.inputs.GetPrometheusMonitoringsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = ArmsFunctions.getPrometheusMonitorings(GetPrometheusMonitoringsArgs.builder()
+     *             .clusterId("your_cluster_id")
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("armsPrometheusMonitoringsId1", ids.applyValue(getPrometheusMonitoringsResult -> getPrometheusMonitoringsResult.prometheusMonitorings()[0].id()));
+     *         final var nameRegex = ArmsFunctions.getPrometheusMonitorings(GetPrometheusMonitoringsArgs.builder()
+     *             .clusterId("your_cluster_id")
+     *             .nameRegex("tf-example")
+     *             .build());
+     * 
+     *         ctx.export("armsPrometheusMonitoringsId2", nameRegex.applyValue(getPrometheusMonitoringsResult -> getPrometheusMonitoringsResult.prometheusMonitorings()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPrometheusMonitorings(GetPrometheusMonitoringsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:arms/getPrometheusMonitorings:getPrometheusMonitorings", TypeShape.of(GetPrometheusMonitoringsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Arms Prometheus Monitorings of the current Alibaba Cloud user. * @@ -3413,6 +4001,62 @@ public static CompletableFuture getRemoteWritesPlain(GetR public static Output getRemoteWrites(GetRemoteWritesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:arms/getRemoteWrites:getRemoteWrites", TypeShape.of(GetRemoteWritesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Arms Remote Writes of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.204.0. + * + * > **DEPRECATED:** This resource has been deprecated since v1.228.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.arms.ArmsFunctions;
+     * import com.pulumi.alicloud.arms.inputs.GetRemoteWritesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = ArmsFunctions.getRemoteWrites(GetRemoteWritesArgs.builder()
+     *             .ids("example_id")
+     *             .clusterId("your_cluster_id")
+     *             .build());
+     * 
+     *         ctx.export("armsRemoteWritesId1", ids.applyValue(getRemoteWritesResult -> getRemoteWritesResult.remoteWrites()[0].id()));
+     *         final var nameRegex = ArmsFunctions.getRemoteWrites(GetRemoteWritesArgs.builder()
+     *             .nameRegex("tf-example")
+     *             .clusterId("your_cluster_id")
+     *             .build());
+     * 
+     *         ctx.export("armsRemoteWritesId2", nameRegex.applyValue(getRemoteWritesResult -> getRemoteWritesResult.remoteWrites()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRemoteWrites(GetRemoteWritesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:arms/getRemoteWrites:getRemoteWrites", TypeShape.of(GetRemoteWritesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Arms Remote Writes of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/bastionhost/BastionhostFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/bastionhost/BastionhostFunctions.java index 861fdf73a2..ee5cf3e8f9 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/bastionhost/BastionhostFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/bastionhost/BastionhostFunctions.java @@ -29,6 +29,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class BastionhostFunctions { @@ -206,6 +207,64 @@ public static CompletableFuture getHostAccountsPlain(GetH public static Output getHostAccounts(GetHostAccountsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:bastionhost/getHostAccounts:getHostAccounts", TypeShape.of(GetHostAccountsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Bastionhost Host Accounts of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.135.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.bastionhost.BastionhostFunctions;
+     * import com.pulumi.alicloud.bastionhost.inputs.GetHostAccountsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = BastionhostFunctions.getHostAccounts(GetHostAccountsArgs.builder()
+     *             .hostId("15")
+     *             .instanceId("example_value")
+     *             .ids(            
+     *                 "1",
+     *                 "2")
+     *             .build());
+     * 
+     *         ctx.export("bastionhostHostAccountId1", ids.applyValue(getHostAccountsResult -> getHostAccountsResult.accounts()[0].id()));
+     *         final var nameRegex = BastionhostFunctions.getHostAccounts(GetHostAccountsArgs.builder()
+     *             .hostId("15")
+     *             .instanceId("example_value")
+     *             .nameRegex("^my-HostAccount")
+     *             .build());
+     * 
+     *         ctx.export("bastionhostHostAccountId2", nameRegex.applyValue(getHostAccountsResult -> getHostAccountsResult.accounts()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHostAccounts(GetHostAccountsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:bastionhost/getHostAccounts:getHostAccounts", TypeShape.of(GetHostAccountsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Bastionhost Host Accounts of the current Alibaba Cloud user. * @@ -432,6 +491,62 @@ public static CompletableFuture getHostGroupsPlain(GetHostG public static Output getHostGroups(GetHostGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:bastionhost/getHostGroups:getHostGroups", TypeShape.of(GetHostGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Bastionhost Host Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.134.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.bastionhost.BastionhostFunctions;
+     * import com.pulumi.alicloud.bastionhost.inputs.GetHostGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = BastionhostFunctions.getHostGroups(GetHostGroupsArgs.builder()
+     *             .instanceId("bastionhost-cn-tl3xxxxxxx")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("bastionhostHostGroupId1", ids.applyValue(getHostGroupsResult -> getHostGroupsResult.groups()[0].id()));
+     *         final var nameRegex = BastionhostFunctions.getHostGroups(GetHostGroupsArgs.builder()
+     *             .instanceId("bastionhost-cn-tl3xxxxxxx")
+     *             .nameRegex("^my-HostGroup")
+     *             .build());
+     * 
+     *         ctx.export("bastionhostHostGroupId2", nameRegex.applyValue(getHostGroupsResult -> getHostGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHostGroups(GetHostGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:bastionhost/getHostGroups:getHostGroups", TypeShape.of(GetHostGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Bastionhost Host Groups of the current Alibaba Cloud user. * @@ -656,6 +771,62 @@ public static CompletableFuture getHostShareKeysPlain(Ge public static Output getHostShareKeys(GetHostShareKeysArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:bastionhost/getHostShareKeys:getHostShareKeys", TypeShape.of(GetHostShareKeysResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Bastionhost Host Share Keys of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.165.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.bastionhost.BastionhostFunctions;
+     * import com.pulumi.alicloud.bastionhost.inputs.GetHostShareKeysArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = BastionhostFunctions.getHostShareKeys(GetHostShareKeysArgs.builder()
+     *             .instanceId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("bastionhostHostShareKeyId1", ids.applyValue(getHostShareKeysResult -> getHostShareKeysResult.keys()[0].id()));
+     *         final var nameRegex = BastionhostFunctions.getHostShareKeys(GetHostShareKeysArgs.builder()
+     *             .instanceId("example_value")
+     *             .nameRegex("^my-HostShareKey")
+     *             .build());
+     * 
+     *         ctx.export("bastionhostHostShareKeyId2", nameRegex.applyValue(getHostShareKeysResult -> getHostShareKeysResult.keys()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHostShareKeys(GetHostShareKeysArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:bastionhost/getHostShareKeys:getHostShareKeys", TypeShape.of(GetHostShareKeysResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Bastionhost Host Share Keys of the current Alibaba Cloud user. * @@ -880,6 +1051,62 @@ public static CompletableFuture getHostsPlain(GetHostsPlainArgs public static Output getHosts(GetHostsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:bastionhost/getHosts:getHosts", TypeShape.of(GetHostsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Bastionhost Hosts of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.135.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.bastionhost.BastionhostFunctions;
+     * import com.pulumi.alicloud.bastionhost.inputs.GetHostsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = BastionhostFunctions.getHosts(GetHostsArgs.builder()
+     *             .instanceId("example_value")
+     *             .ids(            
+     *                 "1",
+     *                 "2")
+     *             .build());
+     * 
+     *         ctx.export("bastionhostHostId1", ids.applyValue(getHostsResult -> getHostsResult.hosts()[0].id()));
+     *         final var nameRegex = BastionhostFunctions.getHosts(GetHostsArgs.builder()
+     *             .instanceId("example_value")
+     *             .nameRegex("^my-Host")
+     *             .build());
+     * 
+     *         ctx.export("bastionhostHostId2", nameRegex.applyValue(getHostsResult -> getHostsResult.hosts()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHosts(GetHostsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:bastionhost/getHosts:getHosts", TypeShape.of(GetHostsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Bastionhost Hosts of the current Alibaba Cloud user. * @@ -1171,6 +1398,53 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:bastionhost/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * > **NOTE:** From the version 1.132.0, the data source has been renamed to `alicloud.bastionhost.getInstances`. + * + * This data source provides a list of cloud Bastionhost instances in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in 1.63.0+ . + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.bastionhost.BastionhostFunctions;
+     * import com.pulumi.alicloud.bastionhost.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var instance = BastionhostFunctions.getInstances(GetInstancesArgs.builder()
+     *             .descriptionRegex("^bastionhost")
+     *             .build());
+     * 
+     *         ctx.export("instance", instanceAlicloudBastionhostInstances.stream().map(element -> element.id()).collect(toList()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:bastionhost/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * > **NOTE:** From the version 1.132.0, the data source has been renamed to `alicloud.bastionhost.getInstances`. * @@ -1386,6 +1660,62 @@ public static CompletableFuture getUserGroupsPlain(GetUserG public static Output getUserGroups(GetUserGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:bastionhost/getUserGroups:getUserGroups", TypeShape.of(GetUserGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Bastionhost User Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.132.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.bastionhost.BastionhostFunctions;
+     * import com.pulumi.alicloud.bastionhost.inputs.GetUserGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = BastionhostFunctions.getUserGroups(GetUserGroupsArgs.builder()
+     *             .instanceId("bastionhost-cn-xxxx")
+     *             .ids(            
+     *                 "1",
+     *                 "2")
+     *             .build());
+     * 
+     *         ctx.export("bastionhostUserGroupId1", ids.applyValue(getUserGroupsResult -> getUserGroupsResult.groups()[0].id()));
+     *         final var nameRegex = BastionhostFunctions.getUserGroups(GetUserGroupsArgs.builder()
+     *             .instanceId("bastionhost-cn-xxxx")
+     *             .nameRegex("^my-UserGroup")
+     *             .build());
+     * 
+     *         ctx.export("bastionhostUserGroupId2", nameRegex.applyValue(getUserGroupsResult -> getUserGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getUserGroups(GetUserGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:bastionhost/getUserGroups:getUserGroups", TypeShape.of(GetUserGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Bastionhost User Groups of the current Alibaba Cloud user. * @@ -1610,6 +1940,62 @@ public static CompletableFuture getUsersPlain(GetUsersPlainArgs public static Output getUsers(GetUsersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:bastionhost/getUsers:getUsers", TypeShape.of(GetUsersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Bastionhost Users of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.133.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.bastionhost.BastionhostFunctions;
+     * import com.pulumi.alicloud.bastionhost.inputs.GetUsersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = BastionhostFunctions.getUsers(GetUsersArgs.builder()
+     *             .instanceId("example_value")
+     *             .ids(            
+     *                 "1",
+     *                 "10")
+     *             .build());
+     * 
+     *         ctx.export("bastionhostUserId1", ids.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
+     *         final var nameRegex = BastionhostFunctions.getUsers(GetUsersArgs.builder()
+     *             .instanceId("example_value")
+     *             .nameRegex("^my-User")
+     *             .build());
+     * 
+     *         ctx.export("bastionhostUserId2", nameRegex.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getUsers(GetUsersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:bastionhost/getUsers:getUsers", TypeShape.of(GetUsersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Bastionhost Users of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/bp/BpFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/bp/BpFunctions.java index 2fc3da2b3d..0ff1a29c79 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/bp/BpFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/bp/BpFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class BpFunctions { @@ -274,6 +275,58 @@ public static CompletableFuture getStudioApplicatio public static Output getStudioApplications(GetStudioApplicationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:bp/getStudioApplications:getStudioApplications", TypeShape.of(GetStudioApplicationsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cloud Architect Design Tools (BPStudio) Applications of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.192.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.bp.BpFunctions;
+     * import com.pulumi.alicloud.bp.inputs.GetStudioApplicationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = BpFunctions.getStudioApplications(GetStudioApplicationsArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("bpStudioApplicationId1", ids.applyValue(getStudioApplicationsResult -> getStudioApplicationsResult.applications()[0].id()));
+     *         final var nameRegex = BpFunctions.getStudioApplications(GetStudioApplicationsArgs.builder()
+     *             .nameRegex("^my-Application")
+     *             .build());
+     * 
+     *         ctx.export("bpStudioApplicationId2", nameRegex.applyValue(getStudioApplicationsResult -> getStudioApplicationsResult.applications()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getStudioApplications(GetStudioApplicationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:bp/getStudioApplications:getStudioApplications", TypeShape.of(GetStudioApplicationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cloud Architect Design Tools (BPStudio) Applications of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/brain/BrainFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/brain/BrainFunctions.java index 416985a7fc..333e63361b 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/brain/BrainFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/brain/BrainFunctions.java @@ -20,6 +20,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class BrainFunctions { @@ -176,6 +177,57 @@ public static CompletableFuture getIndustrialPidLoo public static Output getIndustrialPidLoops(GetIndustrialPidLoopsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:brain/getIndustrialPidLoops:getIndustrialPidLoops", TypeShape.of(GetIndustrialPidLoopsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Brain Industrial Pid Loops of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.117.0. + * + * > **DEPRECATED:** This data source has been deprecated from version `1.229.1`. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.brain.BrainFunctions;
+     * import com.pulumi.alicloud.brain.inputs.GetIndustrialPidLoopsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = BrainFunctions.getIndustrialPidLoops(GetIndustrialPidLoopsArgs.builder()
+     *             .pidProjectId("856c6b8f-ca63-40a4-xxxx-xxxx")
+     *             .ids("742a3d4e-d8b0-47c8-xxxx-xxxx")
+     *             .nameRegex("tf-testACC")
+     *             .build());
+     * 
+     *         ctx.export("firstBrainIndustrialPidLoopId", example.applyValue(getIndustrialPidLoopsResult -> getIndustrialPidLoopsResult.loops()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getIndustrialPidLoops(GetIndustrialPidLoopsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:brain/getIndustrialPidLoops:getIndustrialPidLoops", TypeShape.of(GetIndustrialPidLoopsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Brain Industrial Pid Loops of the current Alibaba Cloud user. * @@ -477,6 +529,56 @@ public static CompletableFuture getIndustri public static Output getIndustrialPidOrganizations(GetIndustrialPidOrganizationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:brain/getIndustrialPidOrganizations:getIndustrialPidOrganizations", TypeShape.of(GetIndustrialPidOrganizationsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Brain Industrial Pid Organizations of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.113.0. + * + * > **DEPRECATED:** This data source has been deprecated from version `1.229.1`. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.brain.BrainFunctions;
+     * import com.pulumi.alicloud.brain.inputs.GetIndustrialPidOrganizationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = BrainFunctions.getIndustrialPidOrganizations(GetIndustrialPidOrganizationsArgs.builder()
+     *             .ids("3e74e684-cbb5-xxxx")
+     *             .nameRegex("tf-testAcc")
+     *             .build());
+     * 
+     *         ctx.export("firstBrainIndustrialPidOrganizationId", example.applyValue(getIndustrialPidOrganizationsResult -> getIndustrialPidOrganizationsResult.organizations()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getIndustrialPidOrganizations(GetIndustrialPidOrganizationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:brain/getIndustrialPidOrganizations:getIndustrialPidOrganizations", TypeShape.of(GetIndustrialPidOrganizationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Brain Industrial Pid Organizations of the current Alibaba Cloud user. * @@ -777,6 +879,56 @@ public static CompletableFuture getIndustrialPid public static Output getIndustrialPidProjects(GetIndustrialPidProjectsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:brain/getIndustrialPidProjects:getIndustrialPidProjects", TypeShape.of(GetIndustrialPidProjectsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Brain Industrial Pid Projects of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.113.0. + * + * > **DEPRECATED:** This data source has been deprecated from version `1.229.1`. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.brain.BrainFunctions;
+     * import com.pulumi.alicloud.brain.inputs.GetIndustrialPidProjectsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = BrainFunctions.getIndustrialPidProjects(GetIndustrialPidProjectsArgs.builder()
+     *             .ids("3e74e684-cbb5-xxxx")
+     *             .nameRegex("tf-testAcc")
+     *             .build());
+     * 
+     *         ctx.export("firstBrainIndustrialPidProjectId", example.applyValue(getIndustrialPidProjectsResult -> getIndustrialPidProjectsResult.projects()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getIndustrialPidProjects(GetIndustrialPidProjectsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:brain/getIndustrialPidProjects:getIndustrialPidProjects", TypeShape.of(GetIndustrialPidProjectsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Brain Industrial Pid Projects of the current Alibaba Cloud user. * @@ -1067,6 +1219,54 @@ public static CompletableFuture getIndustrialSericePl public static Output getIndustrialSerice(GetIndustrialSericeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:brain/getIndustrialSerice:getIndustrialSerice", TypeShape.of(GetIndustrialSericeResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open Brain Industrial service automatically. If the service has been opened, it will return opened. + * + * > **NOTE:** Available since v1.115.0. + * + * > **NOTE:** The Brain Industrial service is not support in the international site. + * + * > **DEPRECATED:** This data source has been deprecated from version `1.229.1`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.brain.BrainFunctions;
+     * import com.pulumi.alicloud.brain.inputs.GetIndustrialSericeArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = BrainFunctions.getIndustrialSerice(GetIndustrialSericeArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getIndustrialSerice(GetIndustrialSericeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:brain/getIndustrialSerice:getIndustrialSerice", TypeShape.of(GetIndustrialSericeResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open Brain Industrial service automatically. If the service has been opened, it will return opened. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/bss/BssFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/bss/BssFunctions.java index f4769d6769..5510c7d07d 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/bss/BssFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/bss/BssFunctions.java @@ -14,6 +14,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class BssFunctions { @@ -161,6 +162,54 @@ public static CompletableFuture getOpenApiPricin public static Output getOpenApiPricingModules(GetOpenApiPricingModulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:bss/getOpenApiPricingModules:getOpenApiPricingModules", TypeShape.of(GetOpenApiPricingModulesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Bss Open Api Pricing Module available to the user.[What is Pricing Module](https://www.alibabacloud.com/help/en/boa/latest/api-bssopenapi-2017-12-14-describepricingmodule) + * + * > **NOTE:** Available since v1.195.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.bss.BssFunctions;
+     * import com.pulumi.alicloud.bss.inputs.GetOpenApiPricingModulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = BssFunctions.getOpenApiPricingModules(GetOpenApiPricingModulesArgs.builder()
+     *             .nameRegex("国内月均日峰值带宽")
+     *             .productCode("cdn")
+     *             .productType("CDN")
+     *             .subscriptionType("PayAsYouGo")
+     *             .build());
+     * 
+     *         ctx.export("alicloudBssOpenapiPricingModuleExampleId", default_.modules()[0].code());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getOpenApiPricingModules(GetOpenApiPricingModulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:bss/getOpenApiPricingModules:getOpenApiPricingModules", TypeShape.of(GetOpenApiPricingModulesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Bss Open Api Pricing Module available to the user.[What is Pricing Module](https://www.alibabacloud.com/help/en/boa/latest/api-bssopenapi-2017-12-14-describepricingmodule) * @@ -254,6 +303,15 @@ public static CompletableFuture getOpenApiProductsPlai public static Output getOpenApiProducts(GetOpenApiProductsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:bss/getOpenApiProducts:getOpenApiProducts", TypeShape.of(GetOpenApiProductsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Bss Open Api Product available to the user.[What is Product](https://www.alibabacloud.com/help/en/boa/latest/api-bssopenapi-2017-12-14-queryproductlist) + * + * > **NOTE:** Available since v1.195.0. + * + */ + public static Output getOpenApiProducts(GetOpenApiProductsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:bss/getOpenApiProducts:getOpenApiProducts", TypeShape.of(GetOpenApiProductsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Bss Open Api Product available to the user.[What is Product](https://www.alibabacloud.com/help/en/boa/latest/api-bssopenapi-2017-12-14-queryproductlist) * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/cas/CasFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/cas/CasFunctions.java index d34a33eb99..4a0d2e8559 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/cas/CasFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/cas/CasFunctions.java @@ -14,6 +14,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class CasFunctions { @@ -92,6 +93,19 @@ public static Output getCertificates(GetCertificatesArgs * */ @Deprecated /* This resource has been deprecated in favour of getServiceCertificates */ + public static Output getCertificates(GetCertificatesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cas/getCertificates:getCertificates", TypeShape.of(GetCertificatesResult.class), args, Utilities.withVersion(options)); + } + /** + * > **DEPRECATED:** This datasource has been deprecated from version `1.129.0`. Please use new datasource alicloud_ssl_certificates_service_certificates. + * + * This data source provides a list of CAS Certificates in an Alibaba Cloud account according to the specified filters. + * + * @deprecated + * This resource has been deprecated in favour of getServiceCertificates + * + */ + @Deprecated /* This resource has been deprecated in favour of getServiceCertificates */ public static CompletableFuture getCertificatesPlain(GetCertificatesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:cas/getCertificates:getCertificates", TypeShape.of(GetCertificatesResult.class), args, Utilities.withVersion(options)); } @@ -740,6 +754,114 @@ public static Output getServiceCertificates(GetSer * <!--End PulumiCodeChooser --> * */ + public static Output getServiceCertificates(GetServiceCertificatesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cas/getServiceCertificates:getServiceCertificates", TypeShape.of(GetServiceCertificatesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Ssl Certificates Service Certificates of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.129.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cas.ServiceCertificate;
+     * import com.pulumi.alicloud.cas.ServiceCertificateArgs;
+     * import com.pulumi.alicloud.cas.CasFunctions;
+     * import com.pulumi.alicloud.cas.inputs.GetServiceCertificatesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("terraform-example");
+     *         var default_ = new ServiceCertificate("default", ServiceCertificateArgs.builder()
+     *             .certificateName(name)
+     *             .cert("""
+     * -----BEGIN CERTIFICATE-----
+     * MIIDeDCCAmCgAwIBAgIEN3ZT6zANBgkqhkiG9w0BAQsFADBVMQswCQYDVQQGEwJD
+     * TjEVMBMGA1UEAwwMKi50ZnRlc3QudG9wMRAwDgYDVQQIDAdCZWlKaW5nMRAwDgYD
+     * VQQHDAdCZWlKaW5nMQswCQYDVQQKDAJBQTAeFw0yMzA4MjgwNjQ5NDNaFw0yNTA4
+     * MjcwNjQ5NDNaMFUxCzAJBgNVBAYTAkNOMRUwEwYDVQQDDAwqLnRmdGVzdC50b3Ax
+     * EDAOBgNVBAgMB0JlaUppbmcxEDAOBgNVBAcMB0JlaUppbmcxCzAJBgNVBAoMAkFB
+     * MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzkk9NJUH7PLSQK4RRrGQ
+     * Y5dVsftkhnKh9HhI6yrnlowWIDPS1PZHOU/5gQ7xPUPGdKQV5S7x8wROnAaXEimx
+     * N4GdQw25pGhRJvlwme9fzJJiSe6lG49NCxmuBiEdJAzPKaTPpK1cG1f1TqdgCfHR
+     * HAL6Jxb3ylHG2LlTNFLXikubUi5RT6/9C8psr713Zm4HveCI/cx0WdgZ+fmsc9ft
+     * rkIB1DdyV1kQ51m8r2rLi3J7aC5ggGOiex/VlGSd4e6SOQLpdQEdDbodtOJ4LgVk
+     * +arFNCMinUWIOPGFzXhdm6lssPbh4MOBrz8c/M9TcF4hoMn5/o/9johZIZ/DOvXt
+     * ZQIDAQABo1AwTjAdBgNVHQ4EFgQUOnWiddgeZj17IeysatqhE361o5YwHwYDVR0j
+     * BBgwFoAUOnWiddgeZj17IeysatqhE361o5YwDAYDVR0TBAUwAwEB/zANBgkqhkiG
+     * 9w0BAQsFAAOCAQEAfh3cnOszHM/5wXjY7BIkmgDOReksS+87ibhBz7T2ddZj+yCF
+     * 9GdIBzXCiHpQFXpW8a3kc3I7l3nGfMTkmF6ld3ot/6SXP17QKJwxtvUA4ib8QkWD
+     * S7FT+UcHCUHv42Sh1e5uAlQ5pMSul7iKcR7jwlwZGZ0905HOqrmdyUGJ+Ud2uZWD
+     * AC0dJF6Bv9VhNtci8Imp05PaPH09deXLZu8LRrKRZFy9qLW5R6Swv7nzxckOAqDk
+     * TTc40xwvQROekWUyxeJL7xaHuylUHE0bxsiIfx5bZsBizRjprIwGlj85CSPuTZyP
+     * DPfaiZAN/61h5HNAnxLltOZfqabKYYw7l9LBDg==
+     * -----END CERTIFICATE-----
+     *             """)
+     *             .key("""
+     * -----BEGIN PRIVATE KEY-----
+     * MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDOST00lQfs8tJA
+     * rhFGsZBjl1Wx+2SGcqH0eEjrKueWjBYgM9LU9kc5T/mBDvE9Q8Z0pBXlLvHzBE6c
+     * BpcSKbE3gZ1DDbmkaFEm+XCZ71/MkmJJ7qUbj00LGa4GIR0kDM8ppM+krVwbV/VO
+     * p2AJ8dEcAvonFvfKUcbYuVM0UteKS5tSLlFPr/0LymyvvXdmbge94Ij9zHRZ2Bn5
+     * +axz1+2uQgHUN3JXWRDnWbyvasuLcntoLmCAY6J7H9WUZJ3h7pI5Aul1AR0Nuh20
+     * 4nguBWT5qsU0IyKdRYg48YXNeF2bqWyw9uHgw4GvPxz8z1NwXiGgyfn+j/2OiFkh
+     * n8M69e1lAgMBAAECggEAevPgTTT+0lYwx2h416ACJboP09O5KQGuUl5XaAPcoTjB
+     * /1OkOFbKQPjQCAJ1+0QoR2F9w2plv6kziX/MD4FWJXVV3J+TpNCgfhBy8u1gNjiR
+     * 6Osa8gBJtXIK7ZBTJCeWWoXnVYoWuh2FEupkLck6D+4eV6oy6x4u3QIo+6jc24n9
+     * dIXQG6/v/Iao34kB0LUdp/4WNaUDvfI6NDhEwchpKE95dtWIDlIN/YhfiYAdjrnl
+     * YmH2VDbAGgsdEiHP4wLZfjgsGPPDGS0+qBHoSiJGH0E6wWEZdAE4TsYGRFsO86n3
+     * LfjEPFGfPlcnZe2cTTe3kmyKq/DTjxtu2rh3I8o2CQKBgQD/5Xe7cenaOBefzPlx
+     * GOEsB+qv49UmzEPOXDNZe9hmAawuuuxPUM+xlE++P+mEgQm1LPT4WWgtFLPVuwmx
+     * ncxt4CJNZh+ZGFyAZ4dm4M4ZhIBXNonyIP+yGyAJUUVF9Iy3TYcJNiGzv2Rx9JRQ
+     * XWJMQnTDILmZbmU+ltTea7/zqwKBgQDOXqCqb17MuLt7OcKWSgthm79OlaOdzZvl
+     * i9qU6VzZKG7Axc5gA9yq6tHp3vWPI4bNdvwqIIa/nzVILjGA5fcYFbRN+7gHwo8s
+     * rNAgi5PAoKWqQRovyJRY9Eq/sn6l1jbJZAOUAMZMWDm8z89OqK7PNQSIAtfFSneo
+     * 2QxJkGeTLwKBgGJkafBB8af9b1/7YWISLepPNPbihH/BhMThAMGEdAVs2TaymtA4
+     * g1OFck/1pSVUtFXcbmjbf8ntruQcYbLQuNz6lFXsUXP9QPwCUrbE85ouL2bZSps2
+     * AvsJoPzUKe2nBUAp6CUrkjPaAJYsc6ae8X/fAaRRfeu33ef9+OV4yrq3AoGAYFZo
+     * ZmfrN2Kdkt7Z6dLTEVPlsMfGQ6pyNmxdM9rkzzNC0JcGymfDIb7RE35T3+hTy6La
+     * AMiCXv3xn6qAzY2NFh87tpPlyymWMOLTnf3Kkcfszlfp45idOBGCu46V9NDVbppT
+     * 2UmrSIR/H5dbTXsNcAlt/hhlpeInjhkU1VqmH10CgYEA7Kk+QhWq705SczpWjm5J
+     * 9kHqfFzJLwAWNBduiia0WypgPhLe/4wT1rYQkBtKMVKrgFo7Cvi4YKlrtlDnXyeU
+     * CIFqfEL5NriQelqrFsvgHsmD+MpvDoSWm5C8IrTubtlNyWUzXSVT4OIwzPobzPqG
+     * LILJ+e7bLw8RrM0HfgFnl8c=
+     * -----END PRIVATE KEY-----
+     *             """)
+     *             .build());
+     * 
+     *         final var ids = CasFunctions.getServiceCertificates(GetServiceCertificatesArgs.builder()
+     *             .ids(default_.id())
+     *             .build());
+     * 
+     *         ctx.export("sslCertificatesServiceCertificatesId0", ids.applyValue(getServiceCertificatesResult -> getServiceCertificatesResult).applyValue(ids -> ids.applyValue(getServiceCertificatesResult -> getServiceCertificatesResult.certificates()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ public static CompletableFuture getServiceCertificatesPlain(GetServiceCertificatesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:cas/getServiceCertificates:getServiceCertificates", TypeShape.of(GetServiceCertificatesResult.class), args, Utilities.withVersion(options)); } diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/cassandra/CassandraFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/cassandra/CassandraFunctions.java index 70d1bc0a34..9f67aaf22e 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/cassandra/CassandraFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/cassandra/CassandraFunctions.java @@ -20,6 +20,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class CassandraFunctions { @@ -170,6 +171,55 @@ public static CompletableFuture getBackupPlansPlain(GetBac public static Output getBackupPlans(GetBackupPlansArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cassandra/getBackupPlans:getBackupPlans", TypeShape.of(GetBackupPlansResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cassandra Backup Plans of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.128.0+. + * + * > **DEPRECATED:** This data source has been [deprecated](https://www.alibabacloud.com/help/en/apsaradb-for-cassandra/latest/cassandra-delisting-notice) from version `1.220.0`. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cassandra.CassandraFunctions;
+     * import com.pulumi.alicloud.cassandra.inputs.GetBackupPlansArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = CassandraFunctions.getBackupPlans(GetBackupPlansArgs.builder()
+     *             .clusterId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("firstCassandraBackupPlanId", example.applyValue(getBackupPlansResult -> getBackupPlansResult.plans()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBackupPlans(GetBackupPlansArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cassandra/getBackupPlans:getBackupPlans", TypeShape.of(GetBackupPlansResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cassandra Backup Plans of the current Alibaba Cloud user. * @@ -454,6 +504,53 @@ public static CompletableFuture getClustersPlain(GetClustersP public static Output getClusters(GetClustersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cassandra/getClusters:getClusters", TypeShape.of(GetClustersResult.class), args, Utilities.withVersion(options)); } + /** + * The `alicloud.cassandra.getClusters` data source provides a collection of Cassandra clusters available in Alicloud account. + * Filters support regular expression for the cluster name, ids or tags. + * + * > **NOTE:** Available in 1.88.0+. + * + * > **DEPRECATED:** This data source has been [deprecated](https://www.alibabacloud.com/help/en/apsaradb-for-cassandra/latest/cassandra-delisting-notice) from version `1.220.0`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cassandra.CassandraFunctions;
+     * import com.pulumi.alicloud.cassandra.inputs.GetClustersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var cassandra = CassandraFunctions.getClusters(GetClustersArgs.builder()
+     *             .nameRegex("tf_testAccCassandra")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getClusters(GetClustersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cassandra/getClusters:getClusters", TypeShape.of(GetClustersResult.class), args, Utilities.withVersion(options)); + } /** * The `alicloud.cassandra.getClusters` data source provides a collection of Cassandra clusters available in Alicloud account. * Filters support regular expression for the cluster name, ids or tags. @@ -645,6 +742,54 @@ public static CompletableFuture getDataCentersPlain(GetDat public static Output getDataCenters(GetDataCentersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cassandra/getDataCenters:getDataCenters", TypeShape.of(GetDataCentersResult.class), args, Utilities.withVersion(options)); } + /** + * The `alicloud.cassandra.getDataCenters` data source provides a collection of Cassandra Data Centers available in Alicloud account. + * Filters support regular expression for the cluster name or ids. + * + * > **NOTE:** Available in 1.88.0+. + * + * > **DEPRECATED:** This data source has been [deprecated](https://www.alibabacloud.com/help/en/apsaradb-for-cassandra/latest/cassandra-delisting-notice) from version `1.220.0`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cassandra.CassandraFunctions;
+     * import com.pulumi.alicloud.cassandra.inputs.GetDataCentersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var cassandra = CassandraFunctions.getDataCenters(GetDataCentersArgs.builder()
+     *             .nameRegex("tf_testAccCassandra_dc")
+     *             .clusterId("cds-xxxxx")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDataCenters(GetDataCentersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cassandra/getDataCenters:getDataCenters", TypeShape.of(GetDataCentersResult.class), args, Utilities.withVersion(options)); + } /** * The `alicloud.cassandra.getDataCenters` data source provides a collection of Cassandra Data Centers available in Alicloud account. * Filters support regular expression for the cluster name or ids. @@ -953,6 +1098,58 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cassandra/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides availability zones for Cassandra that can be accessed by an Alibaba Cloud account within the region configured in the provider. + * + * > **NOTE:** Available in v1.88.0+. + * + * > **DEPRECATED:** This data source has been [deprecated](https://www.alibabacloud.com/help/en/apsaradb-for-cassandra/latest/cassandra-delisting-notice) from version `1.220.0`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cassandra.CassandraFunctions;
+     * import com.pulumi.alicloud.cassandra.inputs.GetZonesArgs;
+     * import com.pulumi.alicloud.cassandra.Cluster;
+     * import com.pulumi.alicloud.cassandra.ClusterArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var zonesIds = CassandraFunctions.getZones();
+     * 
+     *         // Create an Cassandra cluster with the first matched zone
+     *         var cassandra = new Cluster("cassandra", ClusterArgs.builder()
+     *             .zoneId(zonesIds.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cassandra/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides availability zones for Cassandra that can be accessed by an Alibaba Cloud account within the region configured in the provider. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/cddc/CddcFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/cddc/CddcFunctions.java index 14fc9857b8..1cea13d6b4 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/cddc/CddcFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/cddc/CddcFunctions.java @@ -23,6 +23,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class CddcFunctions { @@ -251,6 +252,51 @@ public static CompletableFuture getDedicatedHost public static Output getDedicatedHostAccounts(GetDedicatedHostAccountsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cddc/getDedicatedHostAccounts:getDedicatedHostAccounts", TypeShape.of(GetDedicatedHostAccountsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cddc Dedicated Host Accounts of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.148.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cddc.CddcFunctions;
+     * import com.pulumi.alicloud.cddc.inputs.GetDedicatedHostAccountsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CddcFunctions.getDedicatedHostAccounts();
+     * 
+     *         ctx.export("cddcDedicatedHostAccountId1", ids.applyValue(getDedicatedHostAccountsResult -> getDedicatedHostAccountsResult.accounts()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDedicatedHostAccounts(GetDedicatedHostAccountsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cddc/getDedicatedHostAccounts:getDedicatedHostAccounts", TypeShape.of(GetDedicatedHostAccountsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cddc Dedicated Host Accounts of the current Alibaba Cloud user. * @@ -531,6 +577,53 @@ public static CompletableFuture getDedicatedHostGr public static Output getDedicatedHostGroups(GetDedicatedHostGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cddc/getDedicatedHostGroups:getDedicatedHostGroups", TypeShape.of(GetDedicatedHostGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cddc Dedicated Host Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.132.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cddc.CddcFunctions;
+     * import com.pulumi.alicloud.cddc.inputs.GetDedicatedHostGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = CddcFunctions.getDedicatedHostGroups(GetDedicatedHostGroupsArgs.builder()
+     *             .engine("MongoDB")
+     *             .build());
+     * 
+     *         ctx.export("cddcDedicatedHostGroupId", default_.id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDedicatedHostGroups(GetDedicatedHostGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cddc/getDedicatedHostGroups:getDedicatedHostGroups", TypeShape.of(GetDedicatedHostGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cddc Dedicated Host Groups of the current Alibaba Cloud user. * @@ -836,6 +929,92 @@ public static CompletableFuture getDedicatedHostsPlain( public static Output getDedicatedHosts(GetDedicatedHostsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cddc/getDedicatedHosts:getDedicatedHosts", TypeShape.of(GetDedicatedHostsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cddc Dedicated Hosts of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.147.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cddc.CddcFunctions;
+     * import com.pulumi.alicloud.cddc.inputs.GetDedicatedHostsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CddcFunctions.getDedicatedHosts(GetDedicatedHostsArgs.builder()
+     *             .dedicatedHostGroupId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("cddcDedicatedHostId1", ids.applyValue(getDedicatedHostsResult -> getDedicatedHostsResult.hosts()[0].id()));
+     *         final var status = CddcFunctions.getDedicatedHosts(GetDedicatedHostsArgs.builder()
+     *             .dedicatedHostGroupId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .status("1")
+     *             .build());
+     * 
+     *         ctx.export("cddcDedicatedHostId2", status.applyValue(getDedicatedHostsResult -> getDedicatedHostsResult.hosts()[0].id()));
+     *         final var zoneId = CddcFunctions.getDedicatedHosts(GetDedicatedHostsArgs.builder()
+     *             .dedicatedHostGroupId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .zoneId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("cddcDedicatedHostId3", zoneId.applyValue(getDedicatedHostsResult -> getDedicatedHostsResult.hosts()[0].id()));
+     *         final var allocationStatus = CddcFunctions.getDedicatedHosts(GetDedicatedHostsArgs.builder()
+     *             .dedicatedHostGroupId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .allocationStatus("Allocatable")
+     *             .build());
+     * 
+     *         ctx.export("cddcDedicatedHostId4", allocationStatus.applyValue(getDedicatedHostsResult -> getDedicatedHostsResult.hosts()[0].id()));
+     *         final var hostType = CddcFunctions.getDedicatedHosts(GetDedicatedHostsArgs.builder()
+     *             .dedicatedHostGroupId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .hostType("dhg_cloud_ssd")
+     *             .build());
+     * 
+     *         ctx.export("cddcDedicatedHostId5", hostType.applyValue(getDedicatedHostsResult -> getDedicatedHostsResult.hosts()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDedicatedHosts(GetDedicatedHostsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cddc/getDedicatedHosts:getDedicatedHosts", TypeShape.of(GetDedicatedHostsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cddc Dedicated Hosts of the current Alibaba Cloud user. * @@ -949,6 +1128,15 @@ public static CompletableFuture getHostEcsLevelInfos public static Output getHostEcsLevelInfos(GetHostEcsLevelInfosArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cddc/getHostEcsLevelInfos:getHostEcsLevelInfos", TypeShape.of(GetHostEcsLevelInfosResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cddc Host Ecs Level Infos of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.147.0+. + * + */ + public static Output getHostEcsLevelInfos(GetHostEcsLevelInfosArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cddc/getHostEcsLevelInfos:getHostEcsLevelInfos", TypeShape.of(GetHostEcsLevelInfosResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cddc Host Ecs Level Infos of the current Alibaba Cloud user. * @@ -1183,6 +1371,51 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cddc/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cddc Zones of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.147.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cddc.CddcFunctions;
+     * import com.pulumi.alicloud.cddc.inputs.GetZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = CddcFunctions.getZones();
+     * 
+     *         ctx.export("cddcZonesId1", example.applyValue(getZonesResult -> getZonesResult.zones()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cddc/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cddc Zones of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/cdn/CdnFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/cdn/CdnFunctions.java index bec85fc675..1d10f1d538 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/cdn/CdnFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/cdn/CdnFunctions.java @@ -20,6 +20,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class CdnFunctions { @@ -161,6 +162,52 @@ public static CompletableFuture getBlockedRegionsPlain( public static Output getBlockedRegions(GetBlockedRegionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cdn/getBlockedRegions:getBlockedRegions", TypeShape.of(GetBlockedRegionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cdn blocked regions. + * + * > **NOTE:** Available in v1.173.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cdn.CdnFunctions;
+     * import com.pulumi.alicloud.cdn.inputs.GetBlockedRegionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = CdnFunctions.getBlockedRegions(GetBlockedRegionsArgs.builder()
+     *             .language("zh")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBlockedRegions(GetBlockedRegionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cdn/getBlockedRegions:getBlockedRegions", TypeShape.of(GetBlockedRegionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cdn blocked regions. * @@ -345,6 +392,52 @@ public static CompletableFuture getIpInfoPlain(GetIpInfoPlainAr public static Output getIpInfo(GetIpInfoArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cdn/getIpInfo:getIpInfo", TypeShape.of(GetIpInfoResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the function of verifying whether an IP is a CDN node. + * + * > **NOTE:** Available in v1.153.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cdn.CdnFunctions;
+     * import com.pulumi.alicloud.cdn.inputs.GetIpInfoArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ipTest = CdnFunctions.getIpInfo(GetIpInfoArgs.builder()
+     *             .ip("114.114.114.114")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getIpInfo(GetIpInfoArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cdn/getIpInfo:getIpInfo", TypeShape.of(GetIpInfoResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the function of verifying whether an IP is a CDN node. * @@ -532,6 +625,53 @@ public static CompletableFuture getRealTimeLogDe public static Output getRealTimeLogDeliveries(GetRealTimeLogDeliveriesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cdn/getRealTimeLogDeliveries:getRealTimeLogDeliveries", TypeShape.of(GetRealTimeLogDeliveriesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cdn Real Time Log Deliveries of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.134.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cdn.CdnFunctions;
+     * import com.pulumi.alicloud.cdn.inputs.GetRealTimeLogDeliveriesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = CdnFunctions.getRealTimeLogDeliveries(GetRealTimeLogDeliveriesArgs.builder()
+     *             .domain("example_value")
+     *             .build());
+     * 
+     *         ctx.export("cdnRealTimeLogDelivery1", example.applyValue(getRealTimeLogDeliveriesResult -> getRealTimeLogDeliveriesResult.deliveries()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRealTimeLogDeliveries(GetRealTimeLogDeliveriesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cdn/getRealTimeLogDeliveries:getRealTimeLogDeliveries", TypeShape.of(GetRealTimeLogDeliveriesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cdn Real Time Log Deliveries of the current Alibaba Cloud user. * @@ -814,6 +954,53 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cdn/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can enable CDN service automatically. If the service has been enabled, it will return `Opened`. + * + * For information about CDN and how to use it, see [What is CDN](https://www.alibabacloud.com/help/product/27099.htm). + * + * > **NOTE:** Available since v1.98.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cdn.CdnFunctions;
+     * import com.pulumi.alicloud.cdn.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = CdnFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .internetChargeType("PayByTraffic")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cdn/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can enable CDN service automatically. If the service has been enabled, it will return `Opened`. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/cen/CenFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/cen/CenFunctions.java index 6ab02a3600..e29e5b4086 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/cen/CenFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/cen/CenFunctions.java @@ -110,6 +110,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class CenFunctions { @@ -328,6 +329,49 @@ public static CompletableFuture getBandwidthLimitsPlai public static Output getBandwidthLimits(GetBandwidthLimitsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getBandwidthLimits:getBandwidthLimits", TypeShape.of(GetBandwidthLimitsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides CEN Bandwidth Limits available to the user. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetBandwidthLimitsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var bwl = CenFunctions.getBandwidthLimits(GetBandwidthLimitsArgs.builder()
+     *             .instanceIds("cen-id1")
+     *             .build());
+     * 
+     *         ctx.export("firstCenBandwidthLimitsLocalRegionId", bwl.applyValue(getBandwidthLimitsResult -> getBandwidthLimitsResult.limits()[0].localRegionId()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBandwidthLimits(GetBandwidthLimitsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getBandwidthLimits:getBandwidthLimits", TypeShape.of(GetBandwidthLimitsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides CEN Bandwidth Limits available to the user. * @@ -591,6 +635,50 @@ public static CompletableFuture getBandwidthPackages public static Output getBandwidthPackages(GetBandwidthPackagesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getBandwidthPackages:getBandwidthPackages", TypeShape.of(GetBandwidthPackagesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides CEN Bandwidth Packages available to the user. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetBandwidthPackagesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = CenFunctions.getBandwidthPackages(GetBandwidthPackagesArgs.builder()
+     *             .instanceId("cen-id1")
+     *             .nameRegex("^foo")
+     *             .build());
+     * 
+     *         ctx.export("firstCenBandwidthPackageId", example.applyValue(getBandwidthPackagesResult -> getBandwidthPackagesResult.packages()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBandwidthPackages(GetBandwidthPackagesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getBandwidthPackages:getBandwidthPackages", TypeShape.of(GetBandwidthPackagesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides CEN Bandwidth Packages available to the user. * @@ -773,6 +861,52 @@ public static CompletableFuture g public static Output getChildInstanceRouteEntryToAttachments(GetChildInstanceRouteEntryToAttachmentsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getChildInstanceRouteEntryToAttachments:getChildInstanceRouteEntryToAttachments", TypeShape.of(GetChildInstanceRouteEntryToAttachmentsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Cen Child Instance Route Entry To Attachment available to the user.[What is Child Instance Route Entry To Attachment](https://www.alibabacloud.com/help/en/cen/developer-reference/api-cbn-2017-09-12-createcenchildinstancerouteentrytoattachment) + * + * > **NOTE:** Available in 1.195.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetChildInstanceRouteEntryToAttachmentsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = CenFunctions.getChildInstanceRouteEntryToAttachments(GetChildInstanceRouteEntryToAttachmentsArgs.builder()
+     *             .childInstanceRouteTableId("vtb-t4nt0z5xxbti85c78nkzy")
+     *             .transitRouterAttachmentId("tr-attach-f1fd1y50rql00emvej")
+     *             .build());
+     * 
+     *         ctx.export("alicloudCenChildInstanceRouteEntryToAttachmentExampleId", default_.attachments()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getChildInstanceRouteEntryToAttachments(GetChildInstanceRouteEntryToAttachmentsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getChildInstanceRouteEntryToAttachments:getChildInstanceRouteEntryToAttachments", TypeShape.of(GetChildInstanceRouteEntryToAttachmentsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Cen Child Instance Route Entry To Attachment available to the user.[What is Child Instance Route Entry To Attachment](https://www.alibabacloud.com/help/en/cen/developer-reference/api-cbn-2017-09-12-createcenchildinstancerouteentrytoattachment) * @@ -1416,16 +1550,18 @@ public static Output getFlowlogs(GetFlowlogsArgs args, Invoke * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getFlowlogsPlain(GetFlowlogsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:cen/getFlowlogs:getFlowlogs", TypeShape.of(GetFlowlogsResult.class), args, Utilities.withVersion(options)); + public static Output getFlowlogs(GetFlowlogsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getFlowlogs:getFlowlogs", TypeShape.of(GetFlowlogsResult.class), args, Utilities.withVersion(options)); } /** - * This data source provides Cen Instance Attachments of the current Alibaba Cloud User. + * This data source provides CEN flow logs available to the user. * - * > **NOTE:** Available in v1.97.0+. + * > **NOTE:** Available since v1.78.0. * * ## Example Usage * + * Basic Usage + * * <!--Start PulumiCodeChooser --> *
      * {@code
@@ -1434,8 +1570,20 @@ public static CompletableFuture getFlowlogsPlain(GetFlowlogsP
      * import com.pulumi.Context;
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
+     * import com.pulumi.random.integer;
+     * import com.pulumi.random.IntegerArgs;
+     * import com.pulumi.alicloud.cen.Instance;
+     * import com.pulumi.alicloud.cen.InstanceArgs;
+     * import com.pulumi.alicloud.cen.TransitRouter;
+     * import com.pulumi.alicloud.cen.TransitRouterArgs;
+     * import com.pulumi.alicloud.log.Project;
+     * import com.pulumi.alicloud.log.ProjectArgs;
+     * import com.pulumi.alicloud.log.Store;
+     * import com.pulumi.alicloud.log.StoreArgs;
+     * import com.pulumi.alicloud.cen.FlowLog;
+     * import com.pulumi.alicloud.cen.FlowLogArgs;
      * import com.pulumi.alicloud.cen.CenFunctions;
-     * import com.pulumi.alicloud.cen.inputs.GetInstanceAttachmentsArgs;
+     * import com.pulumi.alicloud.cen.inputs.GetFlowlogsArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1449,11 +1597,52 @@ public static CompletableFuture getFlowlogsPlain(GetFlowlogsP
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var example = CenFunctions.getInstanceAttachments(GetInstanceAttachmentsArgs.builder()
-     *             .instanceId("cen-o40h17ll9w********")
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("tf-example");
+     *         var defaultInteger = new Integer("defaultInteger", IntegerArgs.builder()
+     *             .min(10000)
+     *             .max(99999)
      *             .build());
      * 
-     *         ctx.export("theFirstAttachmentedInstanceId", example.applyValue(getInstanceAttachmentsResult -> getInstanceAttachmentsResult.attachments()[0].childInstanceId()));
+     *         var defaultc5kxyC = new Instance("defaultc5kxyC", InstanceArgs.builder()
+     *             .cenInstanceName(name)
+     *             .build());
+     * 
+     *         var defaultVw2U9u = new TransitRouter("defaultVw2U9u", TransitRouterArgs.builder()
+     *             .cenId(defaultc5kxyC.id())
+     *             .build());
+     * 
+     *         var defaultProject = new Project("defaultProject", ProjectArgs.builder()
+     *             .projectName(String.format("%s-%s", name,defaultInteger.result()))
+     *             .description("terraform-example")
+     *             .build());
+     * 
+     *         var defaultStore = new Store("defaultStore", StoreArgs.builder()
+     *             .projectName(defaultProject.projectName())
+     *             .logstoreName(String.format("%s-%s", name,defaultInteger.result()))
+     *             .shardCount(3)
+     *             .autoSplit(true)
+     *             .maxSplitShardCount(60)
+     *             .appendMeta(true)
+     *             .build());
+     * 
+     *         var defaultFlowLog = new FlowLog("defaultFlowLog", FlowLogArgs.builder()
+     *             .projectName(defaultStore.projectName())
+     *             .flowLogName(String.format("%s-%s", name,defaultInteger.result()))
+     *             .logFormatString("${srcaddr}${dstaddr}${bytes}")
+     *             .cenId(defaultc5kxyC.id())
+     *             .logStoreName(defaultStore.logstoreName())
+     *             .interval("600")
+     *             .status("Active")
+     *             .transitRouterId(defaultVw2U9u.transitRouterId())
+     *             .description("flowlog-resource-example-1")
+     *             .build());
+     * 
+     *         final var default = CenFunctions.getFlowlogs(GetFlowlogsArgs.builder()
+     *             .ids(defaultFlowLog.id())
+     *             .build());
+     * 
+     *         ctx.export("firstCenFlowlogId", default_.applyValue(default_ -> default_.flowlogs()[0].id()));
      *     }
      * }
      * }
@@ -1461,8 +1650,8 @@ public static CompletableFuture getFlowlogsPlain(GetFlowlogsP
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getInstanceAttachments(GetInstanceAttachmentsArgs args) {
-        return getInstanceAttachments(args, InvokeOptions.Empty);
+    public static CompletableFuture getFlowlogsPlain(GetFlowlogsPlainArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invokeAsync("alicloud:cen/getFlowlogs:getFlowlogs", TypeShape.of(GetFlowlogsResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides Cen Instance Attachments of the current Alibaba Cloud User.
@@ -1506,8 +1695,8 @@ public static Output getInstanceAttachments(GetIns
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getInstanceAttachmentsPlain(GetInstanceAttachmentsPlainArgs args) {
-        return getInstanceAttachmentsPlain(args, InvokeOptions.Empty);
+    public static Output getInstanceAttachments(GetInstanceAttachmentsArgs args) {
+        return getInstanceAttachments(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides Cen Instance Attachments of the current Alibaba Cloud User.
@@ -1551,8 +1740,8 @@ public static CompletableFuture getInstanceAttachm
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getInstanceAttachments(GetInstanceAttachmentsArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("alicloud:cen/getInstanceAttachments:getInstanceAttachments", TypeShape.of(GetInstanceAttachmentsResult.class), args, Utilities.withVersion(options));
+    public static CompletableFuture getInstanceAttachmentsPlain(GetInstanceAttachmentsPlainArgs args) {
+        return getInstanceAttachmentsPlain(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides Cen Instance Attachments of the current Alibaba Cloud User.
@@ -1596,11 +1785,13 @@ public static Output getInstanceAttachments(GetIns
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getInstanceAttachmentsPlain(GetInstanceAttachmentsPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("alicloud:cen/getInstanceAttachments:getInstanceAttachments", TypeShape.of(GetInstanceAttachmentsResult.class), args, Utilities.withVersion(options));
+    public static Output getInstanceAttachments(GetInstanceAttachmentsArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("alicloud:cen/getInstanceAttachments:getInstanceAttachments", TypeShape.of(GetInstanceAttachmentsResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * This data source provides CEN instances available to the user.
+     * This data source provides Cen Instance Attachments of the current Alibaba Cloud User.
+     * 
+     * > **NOTE:** Available in v1.97.0+.
      * 
      * ## Example Usage
      * 
@@ -1613,7 +1804,7 @@ public static CompletableFuture getInstanceAttachm
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.alicloud.cen.CenFunctions;
-     * import com.pulumi.alicloud.cen.inputs.GetInstancesArgs;
+     * import com.pulumi.alicloud.cen.inputs.GetInstanceAttachmentsArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1627,12 +1818,11 @@ public static CompletableFuture getInstanceAttachm
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var cenInstancesDs = CenFunctions.getInstances(GetInstancesArgs.builder()
-     *             .ids("cen-id1")
-     *             .nameRegex("^foo")
+     *         final var example = CenFunctions.getInstanceAttachments(GetInstanceAttachmentsArgs.builder()
+     *             .instanceId("cen-o40h17ll9w********")
      *             .build());
      * 
-     *         ctx.export("firstCenInstanceId", cenInstancesDs.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *         ctx.export("theFirstAttachmentedInstanceId", example.applyValue(getInstanceAttachmentsResult -> getInstanceAttachmentsResult.attachments()[0].childInstanceId()));
      *     }
      * }
      * }
@@ -1640,11 +1830,13 @@ public static CompletableFuture getInstanceAttachm
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getInstances() {
-        return getInstances(GetInstancesArgs.Empty, InvokeOptions.Empty);
+    public static Output getInstanceAttachments(GetInstanceAttachmentsArgs args, InvokeOutputOptions options) {
+        return Deployment.getInstance().invoke("alicloud:cen/getInstanceAttachments:getInstanceAttachments", TypeShape.of(GetInstanceAttachmentsResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * This data source provides CEN instances available to the user.
+     * This data source provides Cen Instance Attachments of the current Alibaba Cloud User.
+     * 
+     * > **NOTE:** Available in v1.97.0+.
      * 
      * ## Example Usage
      * 
@@ -1657,7 +1849,7 @@ public static Output getInstances() {
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.alicloud.cen.CenFunctions;
-     * import com.pulumi.alicloud.cen.inputs.GetInstancesArgs;
+     * import com.pulumi.alicloud.cen.inputs.GetInstanceAttachmentsArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1671,12 +1863,11 @@ public static Output getInstances() {
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var cenInstancesDs = CenFunctions.getInstances(GetInstancesArgs.builder()
-     *             .ids("cen-id1")
-     *             .nameRegex("^foo")
+     *         final var example = CenFunctions.getInstanceAttachments(GetInstanceAttachmentsArgs.builder()
+     *             .instanceId("cen-o40h17ll9w********")
      *             .build());
      * 
-     *         ctx.export("firstCenInstanceId", cenInstancesDs.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *         ctx.export("theFirstAttachmentedInstanceId", example.applyValue(getInstanceAttachmentsResult -> getInstanceAttachmentsResult.attachments()[0].childInstanceId()));
      *     }
      * }
      * }
@@ -1684,8 +1875,8 @@ public static Output getInstances() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getInstancesPlain() {
-        return getInstancesPlain(GetInstancesPlainArgs.Empty, InvokeOptions.Empty);
+    public static CompletableFuture getInstanceAttachmentsPlain(GetInstanceAttachmentsPlainArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invokeAsync("alicloud:cen/getInstanceAttachments:getInstanceAttachments", TypeShape.of(GetInstanceAttachmentsResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides CEN instances available to the user.
@@ -1728,8 +1919,8 @@ public static CompletableFuture getInstancesPlain() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getInstances(GetInstancesArgs args) {
-        return getInstances(args, InvokeOptions.Empty);
+    public static Output getInstances() {
+        return getInstances(GetInstancesArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * This data source provides CEN instances available to the user.
@@ -1772,9 +1963,97 @@ public static Output getInstances(GetInstancesArgs args) {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getInstancesPlain(GetInstancesPlainArgs args) {
-        return getInstancesPlain(args, InvokeOptions.Empty);
-    }
+    public static CompletableFuture getInstancesPlain() {
+        return getInstancesPlain(GetInstancesPlainArgs.Empty, InvokeOptions.Empty);
+    }
+    /**
+     * This data source provides CEN instances available to the user.
+     * 
+     * ## Example Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var cenInstancesDs = CenFunctions.getInstances(GetInstancesArgs.builder()
+     *             .ids("cen-id1")
+     *             .nameRegex("^foo")
+     *             .build());
+     * 
+     *         ctx.export("firstCenInstanceId", cenInstancesDs.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args) { + return getInstances(args, InvokeOptions.Empty); + } + /** + * This data source provides CEN instances available to the user. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var cenInstancesDs = CenFunctions.getInstances(GetInstancesArgs.builder()
+     *             .ids("cen-id1")
+     *             .nameRegex("^foo")
+     *             .build());
+     * 
+     *         ctx.export("firstCenInstanceId", cenInstancesDs.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getInstancesPlain(GetInstancesPlainArgs args) { + return getInstancesPlain(args, InvokeOptions.Empty); + } /** * This data source provides CEN instances available to the user. * @@ -1819,6 +2098,50 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides CEN instances available to the user. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var cenInstancesDs = CenFunctions.getInstances(GetInstancesArgs.builder()
+     *             .ids("cen-id1")
+     *             .nameRegex("^foo")
+     *             .build());
+     * 
+     *         ctx.export("firstCenInstanceId", cenInstancesDs.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides CEN instances available to the user. * @@ -2031,6 +2354,62 @@ public static CompletableFuture getInter public static Output getInterRegionTrafficQosPolicies(GetInterRegionTrafficQosPoliciesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getInterRegionTrafficQosPolicies:getInterRegionTrafficQosPolicies", TypeShape.of(GetInterRegionTrafficQosPoliciesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cen Inter Region Traffic Qos Policies of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.195.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetInterRegionTrafficQosPoliciesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CenFunctions.getInterRegionTrafficQosPolicies(GetInterRegionTrafficQosPoliciesArgs.builder()
+     *             .ids("example_id")
+     *             .transitRouterId("your_transit_router_id")
+     *             .transitRouterAttachmentId("your_transit_router_attachment_id")
+     *             .build());
+     * 
+     *         ctx.export("cenInterRegionTrafficQosPolicyId0", ids.applyValue(getInterRegionTrafficQosPoliciesResult -> getInterRegionTrafficQosPoliciesResult.policies()[0].id()));
+     *         final var nameRegex = CenFunctions.getInterRegionTrafficQosPolicies(GetInterRegionTrafficQosPoliciesArgs.builder()
+     *             .nameRegex("^my-name")
+     *             .transitRouterId("your_transit_router_id")
+     *             .transitRouterAttachmentId("your_transit_router_attachment_id")
+     *             .build());
+     * 
+     *         ctx.export("cenInterRegionTrafficQosPolicyId1", nameRegex.applyValue(getInterRegionTrafficQosPoliciesResult -> getInterRegionTrafficQosPoliciesResult.policies()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInterRegionTrafficQosPolicies(GetInterRegionTrafficQosPoliciesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getInterRegionTrafficQosPolicies:getInterRegionTrafficQosPolicies", TypeShape.of(GetInterRegionTrafficQosPoliciesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cen Inter Region Traffic Qos Policies of the current Alibaba Cloud user. * @@ -2228,6 +2607,53 @@ public static CompletableFuture getInterRe public static Output getInterRegionTrafficQosQueues(GetInterRegionTrafficQosQueuesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getInterRegionTrafficQosQueues:getInterRegionTrafficQosQueues", TypeShape.of(GetInterRegionTrafficQosQueuesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Cen Inter Region Traffic Qos Queue available to the user. + * + * > **NOTE:** Available in 1.195.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetInterRegionTrafficQosQueuesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = CenFunctions.getInterRegionTrafficQosQueues(GetInterRegionTrafficQosQueuesArgs.builder()
+     *             .ids(defaultAlicloudCenInterRegionTrafficQosQueue.id())
+     *             .nameRegex(defaultAlicloudCenInterRegionTrafficQosQueue.name())
+     *             .trafficQosPolicyId("qos-xxxxxxx")
+     *             .build());
+     * 
+     *         ctx.export("alicloudCenInterRegionTrafficQosQueueExampleId", default_.queues()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInterRegionTrafficQosQueues(GetInterRegionTrafficQosQueuesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getInterRegionTrafficQosQueues:getInterRegionTrafficQosQueues", TypeShape.of(GetInterRegionTrafficQosQueuesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Cen Inter Region Traffic Qos Queue available to the user. * @@ -2416,6 +2842,53 @@ public static CompletableFuture getPrivateZonesPlain(GetP public static Output getPrivateZones(GetPrivateZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getPrivateZones:getPrivateZones", TypeShape.of(GetPrivateZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides CEN Private Zones available to the user. + * + * > **NOTE:** Available in v1.88.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetPrivateZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var this = CenFunctions.getPrivateZones(GetPrivateZonesArgs.builder()
+     *             .cenId("cen-o40h17ll9w********")
+     *             .ids("cn-hangzhou")
+     *             .status("Active")
+     *             .build());
+     * 
+     *         ctx.export("firstCenPrivateZonesId", this_.zones()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPrivateZones(GetPrivateZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getPrivateZones:getPrivateZones", TypeShape.of(GetPrivateZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides CEN Private Zones available to the user. * @@ -2595,6 +3068,50 @@ public static CompletableFuture getRegionRouteEntri public static Output getRegionRouteEntries(GetRegionRouteEntriesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getRegionRouteEntries:getRegionRouteEntries", TypeShape.of(GetRegionRouteEntriesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides CEN Regional Route Entries available to the user. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetRegionRouteEntriesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var entry = CenFunctions.getRegionRouteEntries(GetRegionRouteEntriesArgs.builder()
+     *             .instanceId("cen-id1")
+     *             .regionId("cn-beijing")
+     *             .build());
+     * 
+     *         ctx.export("firstRegionRouteEntriesRouteEntryCidrBlock", entry.applyValue(getRegionRouteEntriesResult -> getRegionRouteEntriesResult.entries()[0].cidrBlock()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRegionRouteEntries(GetRegionRouteEntriesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getRegionRouteEntries:getRegionRouteEntries", TypeShape.of(GetRegionRouteEntriesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides CEN Regional Route Entries available to the user. * @@ -2771,6 +3288,50 @@ public static CompletableFuture getRouteEntriesPlain(GetR public static Output getRouteEntries(GetRouteEntriesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getRouteEntries:getRouteEntries", TypeShape.of(GetRouteEntriesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides CEN Route Entries available to the user. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetRouteEntriesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var entry = CenFunctions.getRouteEntries(GetRouteEntriesArgs.builder()
+     *             .instanceId("cen-id1")
+     *             .routeTableId("vtb-id1")
+     *             .build());
+     * 
+     *         ctx.export("firstRouteEntriesRouteEntryCidrBlock", entry.applyValue(getRouteEntriesResult -> getRouteEntriesResult.entries()[0].cidrBlock()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRouteEntries(GetRouteEntriesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getRouteEntries:getRouteEntries", TypeShape.of(GetRouteEntriesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides CEN Route Entries available to the user. * @@ -2862,8 +3423,58 @@ public static CompletableFuture getRouteEntriesPlain(GetR * <!--End PulumiCodeChooser --> * */ - public static Output getRouteMaps(GetRouteMapsArgs args) { - return getRouteMaps(args, InvokeOptions.Empty); + public static Output getRouteMaps(GetRouteMapsArgs args) { + return getRouteMaps(args, InvokeOptions.Empty); + } + /** + * This data source provides CEN Route Maps available to the user. + * + * > **NOTE:** Available in v1.87.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetRouteMapsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var this = CenFunctions.getRouteMaps(GetRouteMapsArgs.builder()
+     *             .cenId("cen-ihdlgo87ai********")
+     *             .ids("cen-ihdlgo87ai:cenrmap-bnh97kb3mn********")
+     *             .descriptionRegex("datasource_test")
+     *             .cenRegionId("cn-hangzhou")
+     *             .transmitDirection("RegionIn")
+     *             .status("Active")
+     *             .build());
+     * 
+     *         ctx.export("firstCenRouteMapId", this_.maps()[0].routeMapId());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getRouteMapsPlain(GetRouteMapsPlainArgs args) { + return getRouteMapsPlain(args, InvokeOptions.Empty); } /** * This data source provides CEN Route Maps available to the user. @@ -2912,8 +3523,8 @@ public static Output getRouteMaps(GetRouteMapsArgs args) { * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getRouteMapsPlain(GetRouteMapsPlainArgs args) { - return getRouteMapsPlain(args, InvokeOptions.Empty); + public static Output getRouteMaps(GetRouteMapsArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getRouteMaps:getRouteMaps", TypeShape.of(GetRouteMapsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides CEN Route Maps available to the user. @@ -2962,7 +3573,7 @@ public static CompletableFuture getRouteMapsPlain(GetRouteMa * <!--End PulumiCodeChooser --> * */ - public static Output getRouteMaps(GetRouteMapsArgs args, InvokeOptions options) { + public static Output getRouteMaps(GetRouteMapsArgs args, InvokeOutputOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getRouteMaps:getRouteMaps", TypeShape.of(GetRouteMapsResult.class), args, Utilities.withVersion(options)); } /** @@ -3156,6 +3767,53 @@ public static CompletableFuture getRouteServicesPlain(Ge public static Output getRouteServices(GetRouteServicesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getRouteServices:getRouteServices", TypeShape.of(GetRouteServicesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides CEN Route Service available to the user. + * + * > **NOTE:** Available in v1.102.0+ + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetRouteServicesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = CenFunctions.getRouteServices(GetRouteServicesArgs.builder()
+     *             .cenId("cen-7qthudw0ll6jmc****")
+     *             .build());
+     * 
+     *         ctx.export("firstCenRouteServiceId", example.applyValue(getRouteServicesResult -> getRouteServicesResult.services()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRouteServices(GetRouteServicesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getRouteServices:getRouteServices", TypeShape.of(GetRouteServicesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides CEN Route Service available to the user. * @@ -3371,6 +4029,62 @@ public static CompletableFuture getTrafficMarki public static Output getTrafficMarkingPolicies(GetTrafficMarkingPoliciesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getTrafficMarkingPolicies:getTrafficMarkingPolicies", TypeShape.of(GetTrafficMarkingPoliciesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cen Traffic Marking Policies of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.173.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetTrafficMarkingPoliciesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CenFunctions.getTrafficMarkingPolicies(GetTrafficMarkingPoliciesArgs.builder()
+     *             .transitRouterId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("cenTrafficMarkingPolicyId1", ids.applyValue(getTrafficMarkingPoliciesResult -> getTrafficMarkingPoliciesResult.policies()[0].id()));
+     *         final var nameRegex = CenFunctions.getTrafficMarkingPolicies(GetTrafficMarkingPoliciesArgs.builder()
+     *             .transitRouterId("example_value")
+     *             .nameRegex("^my-TrafficMarkingPolicy")
+     *             .build());
+     * 
+     *         ctx.export("cenTrafficMarkingPolicyId2", nameRegex.applyValue(getTrafficMarkingPoliciesResult -> getTrafficMarkingPoliciesResult.policies()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTrafficMarkingPolicies(GetTrafficMarkingPoliciesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getTrafficMarkingPolicies:getTrafficMarkingPolicies", TypeShape.of(GetTrafficMarkingPoliciesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cen Traffic Marking Policies of the current Alibaba Cloud user. * @@ -3589,6 +4303,60 @@ public static CompletableFuture getTrans public static Output getTransitRouteTableAggregations(GetTransitRouteTableAggregationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getTransitRouteTableAggregations:getTransitRouteTableAggregations", TypeShape.of(GetTransitRouteTableAggregationsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cen Transit Route Table Aggregations of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.202.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetTransitRouteTableAggregationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CenFunctions.getTransitRouteTableAggregations(GetTransitRouteTableAggregationsArgs.builder()
+     *             .ids("example_id")
+     *             .transitRouteTableId("your_transit_route_table_id")
+     *             .build());
+     * 
+     *         ctx.export("cenTransitRouterMulticastDomainId0", ids.applyValue(getTransitRouteTableAggregationsResult -> getTransitRouteTableAggregationsResult.transitRouteTableAggregations()[0].id()));
+     *         final var nameRegex = CenFunctions.getTransitRouteTableAggregations(GetTransitRouteTableAggregationsArgs.builder()
+     *             .nameRegex("^my-name")
+     *             .transitRouteTableId("your_transit_route_table_id")
+     *             .build());
+     * 
+     *         ctx.export("cenTransitRouterMulticastDomainId1", nameRegex.applyValue(getTransitRouteTableAggregationsResult -> getTransitRouteTableAggregationsResult.transitRouteTableAggregations()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTransitRouteTableAggregations(GetTransitRouteTableAggregationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getTransitRouteTableAggregations:getTransitRouteTableAggregations", TypeShape.of(GetTransitRouteTableAggregationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cen Transit Route Table Aggregations of the current Alibaba Cloud user. * @@ -3876,7 +4644,99 @@ public static Output getTransitRouterA /** * This data source provides the CEN Transit Router Available Resources of the current Alibaba Cloud user. * - * > **NOTE:** Available since v1.163.0. + * > **NOTE:** Available since v1.163.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetTransitRouterAvailableResourcesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CenFunctions.getTransitRouterAvailableResources();
+     * 
+     *         ctx.export("masterId", ids.applyValue(getTransitRouterAvailableResourcesResult -> getTransitRouterAvailableResourcesResult.resources()[0].masterZones()[0]));
+     *         ctx.export("slaveId", ids.applyValue(getTransitRouterAvailableResourcesResult -> getTransitRouterAvailableResourcesResult.resources()[0].slaveZones()[0]));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTransitRouterAvailableResources(GetTransitRouterAvailableResourcesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterAvailableResources:getTransitRouterAvailableResources", TypeShape.of(GetTransitRouterAvailableResourcesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the CEN Transit Router Available Resources of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.163.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetTransitRouterAvailableResourcesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CenFunctions.getTransitRouterAvailableResources();
+     * 
+     *         ctx.export("masterId", ids.applyValue(getTransitRouterAvailableResourcesResult -> getTransitRouterAvailableResourcesResult.resources()[0].masterZones()[0]));
+     *         ctx.export("slaveId", ids.applyValue(getTransitRouterAvailableResourcesResult -> getTransitRouterAvailableResourcesResult.resources()[0].slaveZones()[0]));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getTransitRouterAvailableResourcesPlain(GetTransitRouterAvailableResourcesPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:cen/getTransitRouterAvailableResources:getTransitRouterAvailableResources", TypeShape.of(GetTransitRouterAvailableResourcesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Cen Transit Router Cidrs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.193.0+. * * ## Example Usage * @@ -3891,7 +4751,7 @@ public static Output getTransitRouterA * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.alicloud.cen.CenFunctions; - * import com.pulumi.alicloud.cen.inputs.GetTransitRouterAvailableResourcesArgs; + * import com.pulumi.alicloud.cen.inputs.GetTransitRouterCidrsArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -3905,10 +4765,18 @@ public static Output getTransitRouterA * } * * public static void stack(Context ctx) { - * final var ids = CenFunctions.getTransitRouterAvailableResources(); + * final var ids = CenFunctions.getTransitRouterCidrs(GetTransitRouterCidrsArgs.builder() + * .ids("example_id") + * .transitRouterId("tr-6ehx7q2jze8ch5ji0****") + * .build()); * - * ctx.export("masterId", ids.applyValue(getTransitRouterAvailableResourcesResult -> getTransitRouterAvailableResourcesResult.resources()[0].masterZones()[0])); - * ctx.export("slaveId", ids.applyValue(getTransitRouterAvailableResourcesResult -> getTransitRouterAvailableResourcesResult.resources()[0].slaveZones()[0])); + * ctx.export("cenTransitRouterCidrId0", ids.applyValue(getTransitRouterCidrsResult -> getTransitRouterCidrsResult.cidrs()[0].id())); + * final var nameRegex = CenFunctions.getTransitRouterCidrs(GetTransitRouterCidrsArgs.builder() + * .nameRegex("^my-name") + * .transitRouterId("tr-6ehx7q2jze8ch5ji0****") + * .build()); + * + * ctx.export("cenTransitRouterCidrId1", nameRegex.applyValue(getTransitRouterCidrsResult -> getTransitRouterCidrsResult.cidrs()[0].id())); * } * } * } @@ -3916,8 +4784,8 @@ public static Output getTransitRouterA * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getTransitRouterAvailableResourcesPlain(GetTransitRouterAvailableResourcesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:cen/getTransitRouterAvailableResources:getTransitRouterAvailableResources", TypeShape.of(GetTransitRouterAvailableResourcesResult.class), args, Utilities.withVersion(options)); + public static Output getTransitRouterCidrs(GetTransitRouterCidrsArgs args) { + return getTransitRouterCidrs(args, InvokeOptions.Empty); } /** * This data source provides the Cen Transit Router Cidrs of the current Alibaba Cloud user. @@ -3970,8 +4838,8 @@ public static CompletableFuture getTra * <!--End PulumiCodeChooser --> * */ - public static Output getTransitRouterCidrs(GetTransitRouterCidrsArgs args) { - return getTransitRouterCidrs(args, InvokeOptions.Empty); + public static CompletableFuture getTransitRouterCidrsPlain(GetTransitRouterCidrsPlainArgs args) { + return getTransitRouterCidrsPlain(args, InvokeOptions.Empty); } /** * This data source provides the Cen Transit Router Cidrs of the current Alibaba Cloud user. @@ -4024,8 +4892,8 @@ public static Output getTransitRouterCidrs(GetTrans * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getTransitRouterCidrsPlain(GetTransitRouterCidrsPlainArgs args) { - return getTransitRouterCidrsPlain(args, InvokeOptions.Empty); + public static Output getTransitRouterCidrs(GetTransitRouterCidrsArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterCidrs:getTransitRouterCidrs", TypeShape.of(GetTransitRouterCidrsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Cen Transit Router Cidrs of the current Alibaba Cloud user. @@ -4078,7 +4946,7 @@ public static CompletableFuture getTransitRouterCid * <!--End PulumiCodeChooser --> * */ - public static Output getTransitRouterCidrs(GetTransitRouterCidrsArgs args, InvokeOptions options) { + public static Output getTransitRouterCidrs(GetTransitRouterCidrsArgs args, InvokeOutputOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterCidrs:getTransitRouterCidrs", TypeShape.of(GetTransitRouterCidrsResult.class), args, Utilities.withVersion(options)); } /** @@ -4279,6 +5147,54 @@ public static CompletableFuture getTransitRouterMulticastDomainAssociations(GetTransitRouterMulticastDomainAssociationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterMulticastDomainAssociations:getTransitRouterMulticastDomainAssociations", TypeShape.of(GetTransitRouterMulticastDomainAssociationsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cen Transit Router Multicast Domain Associations of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.195.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetTransitRouterMulticastDomainAssociationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CenFunctions.getTransitRouterMulticastDomainAssociations(GetTransitRouterMulticastDomainAssociationsArgs.builder()
+     *             .ids("example_id")
+     *             .transitRouterMulticastDomainId("your_transit_router_multicast_domain_id")
+     *             .build());
+     * 
+     *         ctx.export("cenTransitRouterMulticastDomainId0", ids.applyValue(getTransitRouterMulticastDomainAssociationsResult -> getTransitRouterMulticastDomainAssociationsResult.associations()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTransitRouterMulticastDomainAssociations(GetTransitRouterMulticastDomainAssociationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterMulticastDomainAssociations:getTransitRouterMulticastDomainAssociations", TypeShape.of(GetTransitRouterMulticastDomainAssociationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cen Transit Router Multicast Domain Associations of the current Alibaba Cloud user. * @@ -4468,6 +5384,53 @@ public static CompletableFuture ge public static Output getTransitRouterMulticastDomainMembers(GetTransitRouterMulticastDomainMembersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterMulticastDomainMembers:getTransitRouterMulticastDomainMembers", TypeShape.of(GetTransitRouterMulticastDomainMembersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Cen Transit Router Multicast Domain Member available to the user. [What is Transit Router Multicast Domain Member](https://www.alibabacloud.com/help/en/cen/developer-reference/api-cbn-2017-09-12-registertransitroutermulticastgroupmembers) + * + * > **NOTE:** Available since v1.195.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetTransitRouterMulticastDomainMembersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = CenFunctions.getTransitRouterMulticastDomainMembers(GetTransitRouterMulticastDomainMembersArgs.builder()
+     *             .transitRouterMulticastDomainId("tr-mcast-domain-2d9oq455uk533zfr29")
+     *             .build());
+     * 
+     *         ctx.export("alicloudCenTransitRouterMulticastDomainMemberExampleId", default_.members()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTransitRouterMulticastDomainMembers(GetTransitRouterMulticastDomainMembersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterMulticastDomainMembers:getTransitRouterMulticastDomainMembers", TypeShape.of(GetTransitRouterMulticastDomainMembersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Cen Transit Router Multicast Domain Member available to the user. [What is Transit Router Multicast Domain Member](https://www.alibabacloud.com/help/en/cen/developer-reference/api-cbn-2017-09-12-registertransitroutermulticastgroupmembers) * @@ -4656,6 +5619,53 @@ public static CompletableFuture getTransitRouterMulticastDomainPeerMembers(GetTransitRouterMulticastDomainPeerMembersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterMulticastDomainPeerMembers:getTransitRouterMulticastDomainPeerMembers", TypeShape.of(GetTransitRouterMulticastDomainPeerMembersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Cen Transit Router Multicast Domain Peer Member available to the user. [What is Transit Router Multicast Domain Peer Member](https://www.alibabacloud.com/help/en/cen/developer-reference/api-cbn-2017-09-12-registertransitroutermulticastgroupmembers) + * + * > **NOTE:** Available since v1.195.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetTransitRouterMulticastDomainPeerMembersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = CenFunctions.getTransitRouterMulticastDomainPeerMembers(GetTransitRouterMulticastDomainPeerMembersArgs.builder()
+     *             .transitRouterMulticastDomainId("tr-mcast-domain-2d9oq455uk533zfrxx")
+     *             .build());
+     * 
+     *         ctx.export("alicloudCenTransitRouterMulticastDomainPeerMemberExampleId", default_.members()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTransitRouterMulticastDomainPeerMembers(GetTransitRouterMulticastDomainPeerMembersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterMulticastDomainPeerMembers:getTransitRouterMulticastDomainPeerMembers", TypeShape.of(GetTransitRouterMulticastDomainPeerMembersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Cen Transit Router Multicast Domain Peer Member available to the user. [What is Transit Router Multicast Domain Peer Member](https://www.alibabacloud.com/help/en/cen/developer-reference/api-cbn-2017-09-12-registertransitroutermulticastgroupmembers) * @@ -4839,12 +5849,104 @@ public static Output getTransitRou return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterMulticastDomainSources:getTransitRouterMulticastDomainSources", TypeShape.of(GetTransitRouterMulticastDomainSourcesResult.class), args, Utilities.withVersion(options)); } /** - * This data source provides Cen Transit Router Multicast Domain Source available to the user.[What is Transit Router Multicast Domain Source](https://www.alibabacloud.com/help/en/cen/developer-reference/api-cbn-2017-09-12-registertransitroutermulticastgroupsources) + * This data source provides Cen Transit Router Multicast Domain Source available to the user.[What is Transit Router Multicast Domain Source](https://www.alibabacloud.com/help/en/cen/developer-reference/api-cbn-2017-09-12-registertransitroutermulticastgroupsources) + * + * > **NOTE:** Available since v1.195.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetTransitRouterMulticastDomainSourcesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = CenFunctions.getTransitRouterMulticastDomainSources(GetTransitRouterMulticastDomainSourcesArgs.builder()
+     *             .transitRouterMulticastDomainId("tr-mcast-domain-xxxxxx")
+     *             .build());
+     * 
+     *         ctx.export("alicloudCenTransitRouterMulticastDomainSourceExampleId", default_.sources()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTransitRouterMulticastDomainSources(GetTransitRouterMulticastDomainSourcesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterMulticastDomainSources:getTransitRouterMulticastDomainSources", TypeShape.of(GetTransitRouterMulticastDomainSourcesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides Cen Transit Router Multicast Domain Source available to the user.[What is Transit Router Multicast Domain Source](https://www.alibabacloud.com/help/en/cen/developer-reference/api-cbn-2017-09-12-registertransitroutermulticastgroupsources) + * + * > **NOTE:** Available since v1.195.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetTransitRouterMulticastDomainSourcesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = CenFunctions.getTransitRouterMulticastDomainSources(GetTransitRouterMulticastDomainSourcesArgs.builder()
+     *             .transitRouterMulticastDomainId("tr-mcast-domain-xxxxxx")
+     *             .build());
+     * 
+     *         ctx.export("alicloudCenTransitRouterMulticastDomainSourceExampleId", default_.sources()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getTransitRouterMulticastDomainSourcesPlain(GetTransitRouterMulticastDomainSourcesPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:cen/getTransitRouterMulticastDomainSources:getTransitRouterMulticastDomainSources", TypeShape.of(GetTransitRouterMulticastDomainSourcesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Cen Transit Router Multicast Domains of the current Alibaba Cloud user. * - * > **NOTE:** Available since v1.195.0. + * > **NOTE:** Available in v1.195.0+. * * ## Example Usage * + * Basic Usage + * * <!--Start PulumiCodeChooser --> *
      * {@code
@@ -4854,7 +5956,7 @@ public static Output getTransitRou
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.alicloud.cen.CenFunctions;
-     * import com.pulumi.alicloud.cen.inputs.GetTransitRouterMulticastDomainSourcesArgs;
+     * import com.pulumi.alicloud.cen.inputs.GetTransitRouterMulticastDomainsArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -4868,11 +5970,18 @@ public static Output getTransitRou
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var default = CenFunctions.getTransitRouterMulticastDomainSources(GetTransitRouterMulticastDomainSourcesArgs.builder()
-     *             .transitRouterMulticastDomainId("tr-mcast-domain-xxxxxx")
+     *         final var ids = CenFunctions.getTransitRouterMulticastDomains(GetTransitRouterMulticastDomainsArgs.builder()
+     *             .ids("example_id")
+     *             .transitRouterId("your_transit_router_id")
      *             .build());
      * 
-     *         ctx.export("alicloudCenTransitRouterMulticastDomainSourceExampleId", default_.sources()[0].id());
+     *         ctx.export("cenTransitRouterMulticastDomainId0", ids.applyValue(getTransitRouterMulticastDomainsResult -> getTransitRouterMulticastDomainsResult.domains()[0].id()));
+     *         final var nameRegex = CenFunctions.getTransitRouterMulticastDomains(GetTransitRouterMulticastDomainsArgs.builder()
+     *             .nameRegex("^my-name")
+     *             .transitRouterId("your_transit_router_id")
+     *             .build());
+     * 
+     *         ctx.export("cenTransitRouterMulticastDomainId1", nameRegex.applyValue(getTransitRouterMulticastDomainsResult -> getTransitRouterMulticastDomainsResult.domains()[0].id()));
      *     }
      * }
      * }
@@ -4880,8 +5989,8 @@ public static Output getTransitRou
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getTransitRouterMulticastDomainSourcesPlain(GetTransitRouterMulticastDomainSourcesPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("alicloud:cen/getTransitRouterMulticastDomainSources:getTransitRouterMulticastDomainSources", TypeShape.of(GetTransitRouterMulticastDomainSourcesResult.class), args, Utilities.withVersion(options));
+    public static Output getTransitRouterMulticastDomains(GetTransitRouterMulticastDomainsArgs args) {
+        return getTransitRouterMulticastDomains(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Cen Transit Router Multicast Domains of the current Alibaba Cloud user.
@@ -4934,8 +6043,8 @@ public static CompletableFuture ge
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getTransitRouterMulticastDomains(GetTransitRouterMulticastDomainsArgs args) {
-        return getTransitRouterMulticastDomains(args, InvokeOptions.Empty);
+    public static CompletableFuture getTransitRouterMulticastDomainsPlain(GetTransitRouterMulticastDomainsPlainArgs args) {
+        return getTransitRouterMulticastDomainsPlain(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Cen Transit Router Multicast Domains of the current Alibaba Cloud user.
@@ -4988,8 +6097,8 @@ public static Output getTransitRouterMul
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getTransitRouterMulticastDomainsPlain(GetTransitRouterMulticastDomainsPlainArgs args) {
-        return getTransitRouterMulticastDomainsPlain(args, InvokeOptions.Empty);
+    public static Output getTransitRouterMulticastDomains(GetTransitRouterMulticastDomainsArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterMulticastDomains:getTransitRouterMulticastDomains", TypeShape.of(GetTransitRouterMulticastDomainsResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides the Cen Transit Router Multicast Domains of the current Alibaba Cloud user.
@@ -5042,7 +6151,7 @@ public static CompletableFuture getTrans
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getTransitRouterMulticastDomains(GetTransitRouterMulticastDomainsArgs args, InvokeOptions options) {
+    public static Output getTransitRouterMulticastDomains(GetTransitRouterMulticastDomainsArgs args, InvokeOutputOptions options) {
         return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterMulticastDomains:getTransitRouterMulticastDomains", TypeShape.of(GetTransitRouterMulticastDomainsResult.class), args, Utilities.withVersion(options));
     }
     /**
@@ -5126,6 +6235,15 @@ public static CompletableFuture getTransi
     public static Output getTransitRouterPeerAttachments(GetTransitRouterPeerAttachmentsArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterPeerAttachments:getTransitRouterPeerAttachments", TypeShape.of(GetTransitRouterPeerAttachmentsResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * This data source provides CEN Transit Router peer attachments available to the user.
+     * 
+     * > **NOTE:** Available in 1.128.0+
+     * 
+     */
+    public static Output getTransitRouterPeerAttachments(GetTransitRouterPeerAttachmentsArgs args, InvokeOutputOptions options) {
+        return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterPeerAttachments:getTransitRouterPeerAttachments", TypeShape.of(GetTransitRouterPeerAttachmentsResult.class), args, Utilities.withVersion(options));
+    }
     /**
      * This data source provides CEN Transit Router peer attachments available to the user.
      * 
@@ -5279,6 +6397,54 @@ public static CompletableFuture ge
     public static Output getTransitRouterPrefixListAssociations(GetTransitRouterPrefixListAssociationsArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterPrefixListAssociations:getTransitRouterPrefixListAssociations", TypeShape.of(GetTransitRouterPrefixListAssociationsResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * This data source provides the Cen Transit Router Prefix List Associations of the current Alibaba Cloud user.
+     * 
+     * > **NOTE:** Available in v1.188.0+.
+     * 
+     * ## Example Usage
+     * 
+     * Basic Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetTransitRouterPrefixListAssociationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = CenFunctions.getTransitRouterPrefixListAssociations(GetTransitRouterPrefixListAssociationsArgs.builder()
+     *             .transitRouterId("tr-6ehx7q2jze8ch5ji0****")
+     *             .transitRouterTableId("vtb-6ehgc262hr170qgyc****")
+     *             .build());
+     * 
+     *         ctx.export("cenTransitRouterPrefixListAssociationId", default_.associations()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTransitRouterPrefixListAssociations(GetTransitRouterPrefixListAssociationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterPrefixListAssociations:getTransitRouterPrefixListAssociations", TypeShape.of(GetTransitRouterPrefixListAssociationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cen Transit Router Prefix List Associations of the current Alibaba Cloud user. * @@ -5354,6 +6520,15 @@ public static CompletableFuture getTransitRo public static Output getTransitRouterRouteEntries(GetTransitRouterRouteEntriesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterRouteEntries:getTransitRouterRouteEntries", TypeShape.of(GetTransitRouterRouteEntriesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides CEN Transit Router Route Entries available to the user.[What is Cen Transit Router Route Entries](https://help.aliyun.com/document_detail/260941.html) + * + * > **NOTE:** Available in 1.126.0+ + * + */ + public static Output getTransitRouterRouteEntries(GetTransitRouterRouteEntriesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterRouteEntries:getTransitRouterRouteEntries", TypeShape.of(GetTransitRouterRouteEntriesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides CEN Transit Router Route Entries available to the user.[What is Cen Transit Router Route Entries](https://help.aliyun.com/document_detail/260941.html) * @@ -5588,6 +6763,51 @@ public static CompletableFuture ge public static Output getTransitRouterRouteTableAssociations(GetTransitRouterRouteTableAssociationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterRouteTableAssociations:getTransitRouterRouteTableAssociations", TypeShape.of(GetTransitRouterRouteTableAssociationsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides CEN Transit Router Route Table Associations available to the user.[What is Cen Transit Router Route Table Associations](https://help.aliyun.com/document_detail/261243.html) + * + * > **NOTE:** Available in 1.126.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetTransitRouterRouteTableAssociationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = CenFunctions.getTransitRouterRouteTableAssociations(GetTransitRouterRouteTableAssociationsArgs.builder()
+     *             .transitRouterRouteTableId("rtb-id1")
+     *             .build());
+     * 
+     *         ctx.export("firstTransitRouterPeerAttachmentsTransitRouterAttachmentResourceType", default_.associations()[0].resourceType());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTransitRouterRouteTableAssociations(GetTransitRouterRouteTableAssociationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterRouteTableAssociations:getTransitRouterRouteTableAssociations", TypeShape.of(GetTransitRouterRouteTableAssociationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides CEN Transit Router Route Table Associations available to the user.[What is Cen Transit Router Route Table Associations](https://help.aliyun.com/document_detail/261243.html) * @@ -5768,6 +6988,51 @@ public static CompletableFuture ge public static Output getTransitRouterRouteTablePropagations(GetTransitRouterRouteTablePropagationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterRouteTablePropagations:getTransitRouterRouteTablePropagations", TypeShape.of(GetTransitRouterRouteTablePropagationsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides CEN Transit Router Route Table Propagations available to the user.[What is Cen Transit Router Route Table Propagations](https://help.aliyun.com/document_detail/261245.html) + * + * > **NOTE:** Available in 1.126.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetTransitRouterRouteTablePropagationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = CenFunctions.getTransitRouterRouteTablePropagations(GetTransitRouterRouteTablePropagationsArgs.builder()
+     *             .transitRouterRouteTableId("rtb-id1")
+     *             .build());
+     * 
+     *         ctx.export("firstTransitRouterPeerAttachmentsTransitRouterAttachmentResourceType", default_.propagations()[0].resourceType());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTransitRouterRouteTablePropagations(GetTransitRouterRouteTablePropagationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterRouteTablePropagations:getTransitRouterRouteTablePropagations", TypeShape.of(GetTransitRouterRouteTablePropagationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides CEN Transit Router Route Table Propagations available to the user.[What is Cen Transit Router Route Table Propagations](https://help.aliyun.com/document_detail/261245.html) * @@ -6017,7 +7282,76 @@ public static CompletableFuture getTransitRou * <!--End PulumiCodeChooser --> * */ - public static Output getTransitRouterRouteTables(GetTransitRouterRouteTablesArgs args, InvokeOptions options) { + public static Output getTransitRouterRouteTables(GetTransitRouterRouteTablesArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterRouteTables:getTransitRouterRouteTables", TypeShape.of(GetTransitRouterRouteTablesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides CEN Transit Router Route Tables available to the user.[What is Cen Transit Router Route Tables](https://www.alibabacloud.com/help/en/cen/developer-reference/api-cbn-2017-09-12-listtransitrouterroutetables) + * + * > **NOTE:** Available since v1.126.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.Instance;
+     * import com.pulumi.alicloud.cen.InstanceArgs;
+     * import com.pulumi.alicloud.cen.TransitRouter;
+     * import com.pulumi.alicloud.cen.TransitRouterArgs;
+     * import com.pulumi.alicloud.cen.TransitRouterRouteTable;
+     * import com.pulumi.alicloud.cen.TransitRouterRouteTableArgs;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetTransitRouterRouteTablesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("tf-example");
+     *         var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
+     *             .cenInstanceName(name)
+     *             .protectionLevel("REDUCED")
+     *             .build());
+     * 
+     *         var defaultTransitRouter = new TransitRouter("defaultTransitRouter", TransitRouterArgs.builder()
+     *             .cenId(defaultInstance.id())
+     *             .transitRouterName(name)
+     *             .build());
+     * 
+     *         var defaultTransitRouterRouteTable = new TransitRouterRouteTable("defaultTransitRouterRouteTable", TransitRouterRouteTableArgs.builder()
+     *             .transitRouterId(defaultTransitRouter.transitRouterId())
+     *             .transitRouterRouteTableDescription("desp")
+     *             .transitRouterRouteTableName(name)
+     *             .build());
+     * 
+     *         final var default = CenFunctions.getTransitRouterRouteTables(GetTransitRouterRouteTablesArgs.builder()
+     *             .transitRouterId(defaultTransitRouter.transitRouterId())
+     *             .build());
+     * 
+     *         ctx.export("firstTransitRouterRouteTableType", default_.applyValue(default_ -> default_.tables()[0].transitRouterRouteTableType()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTransitRouterRouteTables(GetTransitRouterRouteTablesArgs args, InvokeOutputOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterRouteTables:getTransitRouterRouteTables", TypeShape.of(GetTransitRouterRouteTablesResult.class), args, Utilities.withVersion(options)); } /** @@ -6319,6 +7653,52 @@ public static CompletableFuture getTransitRouterS public static Output getTransitRouterService(GetTransitRouterServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterService:getTransitRouterService", TypeShape.of(GetTransitRouterServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open CEN Transit Router Service automatically. If the service has been opened, it will return opened. + * + * For information about CEN and how to use it, see [What is CEN](https://www.alibabacloud.com/help/en/doc-detail/59870.htm). + * + * > **NOTE:** Available since v1.139.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetTransitRouterServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = CenFunctions.getTransitRouterService(GetTransitRouterServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTransitRouterService(GetTransitRouterServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterService:getTransitRouterService", TypeShape.of(GetTransitRouterServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open CEN Transit Router Service automatically. If the service has been opened, it will return opened. * @@ -6392,6 +7772,15 @@ public static CompletableFuture getTransit public static Output getTransitRouterVbrAttachments(GetTransitRouterVbrAttachmentsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterVbrAttachments:getTransitRouterVbrAttachments", TypeShape.of(GetTransitRouterVbrAttachmentsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides CEN Transit Router VBR Attachments available to the user.[What is Cen Transit Router VBR Attachments](https://help.aliyun.com/document_detail/261226.html) + * + * > **NOTE:** Available in 1.126.0+ + * + */ + public static Output getTransitRouterVbrAttachments(GetTransitRouterVbrAttachmentsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterVbrAttachments:getTransitRouterVbrAttachments", TypeShape.of(GetTransitRouterVbrAttachmentsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides CEN Transit Router VBR Attachments available to the user.[What is Cen Transit Router VBR Attachments](https://help.aliyun.com/document_detail/261226.html) * @@ -6814,6 +8203,110 @@ public static Output getTransitRouterVpcAt * <!--End PulumiCodeChooser --> * */ + public static Output getTransitRouterVpcAttachments(GetTransitRouterVpcAttachmentsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterVpcAttachments:getTransitRouterVpcAttachments", TypeShape.of(GetTransitRouterVpcAttachmentsResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the CEN Transit Router VPC Attachments of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.126.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetZonesArgs;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
+     * import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
+     * import com.pulumi.alicloud.cen.Instance;
+     * import com.pulumi.alicloud.cen.InstanceArgs;
+     * import com.pulumi.alicloud.cen.TransitRouter;
+     * import com.pulumi.alicloud.cen.TransitRouterArgs;
+     * import com.pulumi.alicloud.cen.TransitRouterVpcAttachment;
+     * import com.pulumi.alicloud.cen.TransitRouterVpcAttachmentArgs;
+     * import com.pulumi.alicloud.cen.inputs.TransitRouterVpcAttachmentZoneMappingArgs;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetTransitRouterVpcAttachmentsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("terraform-example");
+     *         final var default = AlicloudFunctions.getZones();
+     * 
+     *         final var defaultGetNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
+     *             .nameRegex("^default-NODELETING$")
+     *             .build());
+     * 
+     *         final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
+     *             .vpcId(defaultGetNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
+     *             .zoneId(default_.ids()[0])
+     *             .build());
+     * 
+     *         final var defaultMaster = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
+     *             .vpcId(defaultGetNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
+     *             .zoneId(default_.ids()[1])
+     *             .build());
+     * 
+     *         var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
+     *             .cenInstanceName(name)
+     *             .protectionLevel("REDUCED")
+     *             .build());
+     * 
+     *         var defaultTransitRouter = new TransitRouter("defaultTransitRouter", TransitRouterArgs.builder()
+     *             .cenId(defaultInstance.id())
+     *             .build());
+     * 
+     *         var defaultTransitRouterVpcAttachment = new TransitRouterVpcAttachment("defaultTransitRouterVpcAttachment", TransitRouterVpcAttachmentArgs.builder()
+     *             .cenId(defaultInstance.id())
+     *             .vpcId(defaultGetNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
+     *             .transitRouterId(defaultTransitRouter.transitRouterId())
+     *             .transitRouterAttachmentName(name)
+     *             .transitRouterAttachmentDescription(name)
+     *             .zoneMappings(            
+     *                 TransitRouterVpcAttachmentZoneMappingArgs.builder()
+     *                     .vswitchId(defaultMaster.applyValue(getSwitchesResult -> getSwitchesResult.vswitches()[0].id()))
+     *                     .zoneId(defaultMaster.applyValue(getSwitchesResult -> getSwitchesResult.vswitches()[0].zoneId()))
+     *                     .build(),
+     *                 TransitRouterVpcAttachmentZoneMappingArgs.builder()
+     *                     .vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.vswitches()[0].id()))
+     *                     .zoneId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.vswitches()[0].zoneId()))
+     *                     .build())
+     *             .build());
+     * 
+     *         final var ids = CenFunctions.getTransitRouterVpcAttachments(GetTransitRouterVpcAttachmentsArgs.builder()
+     *             .ids(defaultTransitRouterVpcAttachment.id())
+     *             .cenId(defaultInstance.id())
+     *             .build());
+     * 
+     *         ctx.export("cenTransitRouterVpcAttachmentsId0", ids.applyValue(getTransitRouterVpcAttachmentsResult -> getTransitRouterVpcAttachmentsResult).applyValue(ids -> ids.applyValue(getTransitRouterVpcAttachmentsResult -> getTransitRouterVpcAttachmentsResult.attachments()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ public static CompletableFuture getTransitRouterVpcAttachmentsPlain(GetTransitRouterVpcAttachmentsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:cen/getTransitRouterVpcAttachments:getTransitRouterVpcAttachments", TypeShape.of(GetTransitRouterVpcAttachmentsResult.class), args, Utilities.withVersion(options)); } @@ -6958,6 +8451,53 @@ public static CompletableFuture getTransit public static Output getTransitRouterVpnAttachments(GetTransitRouterVpnAttachmentsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterVpnAttachments:getTransitRouterVpnAttachments", TypeShape.of(GetTransitRouterVpnAttachmentsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cen Transit Router Vpn Attachments of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.183.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetTransitRouterVpnAttachmentsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CenFunctions.getTransitRouterVpnAttachments(GetTransitRouterVpnAttachmentsArgs.builder()
+     *             .cenId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("cenTransitRouterVpnAttachmentId1", ids.applyValue(getTransitRouterVpnAttachmentsResult -> getTransitRouterVpnAttachmentsResult.attachments()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTransitRouterVpnAttachments(GetTransitRouterVpnAttachmentsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getTransitRouterVpnAttachments:getTransitRouterVpnAttachments", TypeShape.of(GetTransitRouterVpnAttachmentsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cen Transit Router Vpn Attachments of the current Alibaba Cloud user. * @@ -7140,6 +8680,51 @@ public static CompletableFuture getTransitRoutersPlain( public static Output getTransitRouters(GetTransitRoutersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getTransitRouters:getTransitRouters", TypeShape.of(GetTransitRoutersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides CEN Transit Routers available to the user.[What is Cen Transit Routers](https://help.aliyun.com/document_detail/261219.html) + * + * > **NOTE:** Available in 1.126.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetTransitRoutersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = CenFunctions.getTransitRouters(GetTransitRoutersArgs.builder()
+     *             .cenId("cen-id1")
+     *             .build());
+     * 
+     *         ctx.export("firstTransitRoutersType", default_.transitRouters()[0].type());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTransitRouters(GetTransitRoutersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getTransitRouters:getTransitRouters", TypeShape.of(GetTransitRoutersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides CEN Transit Routers available to the user.[What is Cen Transit Routers](https://help.aliyun.com/document_detail/261219.html) * @@ -7212,6 +8797,15 @@ public static CompletableFuture getVbrHealthChecksPlai public static Output getVbrHealthChecks(GetVbrHealthChecksArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cen/getVbrHealthChecks:getVbrHealthChecks", TypeShape.of(GetVbrHealthChecksResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides CEN VBR Health Checks available to the user. + * + * > **NOTE:** Available in 1.98.0+ + * + */ + public static Output getVbrHealthChecks(GetVbrHealthChecksArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cen/getVbrHealthChecks:getVbrHealthChecks", TypeShape.of(GetVbrHealthChecksResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides CEN VBR Health Checks available to the user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/cfg/CfgFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/cfg/CfgFunctions.java index 4171641867..f463b85238 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/cfg/CfgFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/cfg/CfgFunctions.java @@ -35,6 +35,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class CfgFunctions { @@ -185,6 +186,55 @@ public static CompletableFuture getAggregateC public static Output getAggregateCompliancePacks(GetAggregateCompliancePacksArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cfg/getAggregateCompliancePacks:getAggregateCompliancePacks", TypeShape.of(GetAggregateCompliancePacksResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Config Aggregate Compliance Packs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.124.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cfg.CfgFunctions;
+     * import com.pulumi.alicloud.cfg.inputs.GetAggregateCompliancePacksArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = CfgFunctions.getAggregateCompliancePacks(GetAggregateCompliancePacksArgs.builder()
+     *             .aggregatorId("ca-3a9b626622af001d****")
+     *             .ids("cp-152a626622af00bc****")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstConfigAggregateCompliancePackId", example.applyValue(getAggregateCompliancePacksResult -> getAggregateCompliancePacksResult.packs()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAggregateCompliancePacks(GetAggregateCompliancePacksArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cfg/getAggregateCompliancePacks:getAggregateCompliancePacks", TypeShape.of(GetAggregateCompliancePacksResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Config Aggregate Compliance Packs of the current Alibaba Cloud user. * @@ -381,6 +431,55 @@ public static CompletableFuture getAggregateConfi public static Output getAggregateConfigRules(GetAggregateConfigRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cfg/getAggregateConfigRules:getAggregateConfigRules", TypeShape.of(GetAggregateConfigRulesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Config Aggregate Config Rules of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.124.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cfg.CfgFunctions;
+     * import com.pulumi.alicloud.cfg.inputs.GetAggregateConfigRulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = CfgFunctions.getAggregateConfigRules(GetAggregateConfigRulesArgs.builder()
+     *             .aggregatorId("ca-3a9b626622af001d****")
+     *             .ids("cr-5154626622af0034****")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstConfigAggregateConfigRuleId", example.applyValue(getAggregateConfigRulesResult -> getAggregateConfigRulesResult.rules()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAggregateConfigRules(GetAggregateConfigRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cfg/getAggregateConfigRules:getAggregateConfigRules", TypeShape.of(GetAggregateConfigRulesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Config Aggregate Config Rules of the current Alibaba Cloud user. * @@ -580,6 +679,56 @@ public static CompletableFuture getAggregateDelive public static Output getAggregateDeliveries(GetAggregateDeliveriesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cfg/getAggregateDeliveries:getAggregateDeliveries", TypeShape.of(GetAggregateDeliveriesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Config Aggregate Deliveries of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.172.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cfg.CfgFunctions;
+     * import com.pulumi.alicloud.cfg.inputs.GetAggregateDeliveriesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CfgFunctions.getAggregateDeliveries(GetAggregateDeliveriesArgs.builder()
+     *             .aggregatorId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("configAggregateDeliveryId1", ids.applyValue(getAggregateDeliveriesResult -> getAggregateDeliveriesResult.deliveries()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAggregateDeliveries(GetAggregateDeliveriesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cfg/getAggregateDeliveries:getAggregateDeliveries", TypeShape.of(GetAggregateDeliveriesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Config Aggregate Deliveries of the current Alibaba Cloud user. * @@ -870,6 +1019,54 @@ public static CompletableFuture getAggregatorsPlain(GetAgg public static Output getAggregators(GetAggregatorsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cfg/getAggregators:getAggregators", TypeShape.of(GetAggregatorsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Config Aggregators of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.124.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cfg.CfgFunctions;
+     * import com.pulumi.alicloud.cfg.inputs.GetAggregatorsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = CfgFunctions.getAggregators(GetAggregatorsArgs.builder()
+     *             .ids("ca-3ce2626622af0005****")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstConfigAggregatorId", example.applyValue(getAggregatorsResult -> getAggregatorsResult.aggregators()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAggregators(GetAggregatorsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cfg/getAggregators:getAggregators", TypeShape.of(GetAggregatorsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Config Aggregators of the current Alibaba Cloud user. * @@ -1158,6 +1355,54 @@ public static CompletableFuture getCompliancePacksPlai public static Output getCompliancePacks(GetCompliancePacksArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cfg/getCompliancePacks:getCompliancePacks", TypeShape.of(GetCompliancePacksResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Config Compliance Packs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.124.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cfg.CfgFunctions;
+     * import com.pulumi.alicloud.cfg.inputs.GetCompliancePacksArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = CfgFunctions.getCompliancePacks(GetCompliancePacksArgs.builder()
+     *             .ids("cp-152a626622af00bc****")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstConfigCompliancePackId", example.applyValue(getCompliancePacksResult -> getCompliancePacksResult.packs()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCompliancePacks(GetCompliancePacksArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cfg/getCompliancePacks:getCompliancePacks", TypeShape.of(GetCompliancePacksResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Config Compliance Packs of the current Alibaba Cloud user. * @@ -1431,6 +1676,51 @@ public static CompletableFuture getConfiguratio public static Output getConfigurationRecorders(GetConfigurationRecordersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cfg/getConfigurationRecorders:getConfigurationRecorders", TypeShape.of(GetConfigurationRecordersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Config Configuration Recorders of the current Alibaba Cloud user. + * + * > **NOTE:** Available in 1.99.0+. + * + * > **NOTE:** The Cloud Config region only support `cn-shanghai` and `ap-southeast-1`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cfg.CfgFunctions;
+     * import com.pulumi.alicloud.cfg.inputs.GetConfigurationRecordersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = CfgFunctions.getConfigurationRecorders();
+     * 
+     *         ctx.export("listOfResourceTypes", this_.recorders()[0].resourceTypes());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getConfigurationRecorders(GetConfigurationRecordersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cfg/getConfigurationRecorders:getConfigurationRecorders", TypeShape.of(GetConfigurationRecordersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Config Configuration Recorders of the current Alibaba Cloud user. * @@ -1711,6 +2001,53 @@ public static CompletableFuture getDeliveriesPlain(GetDeliv public static Output getDeliveries(GetDeliveriesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cfg/getDeliveries:getDeliveries", TypeShape.of(GetDeliveriesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Config Deliveries of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.171.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cfg.CfgFunctions;
+     * import com.pulumi.alicloud.cfg.inputs.GetDeliveriesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CfgFunctions.getDeliveries(GetDeliveriesArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("configDeliveryId1", ids.applyValue(getDeliveriesResult -> getDeliveriesResult.deliveries()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDeliveries(GetDeliveriesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cfg/getDeliveries:getDeliveries", TypeShape.of(GetDeliveriesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Config Deliveries of the current Alibaba Cloud user. * @@ -2013,6 +2350,57 @@ public static CompletableFuture getDeliveryChannelsPl public static Output getDeliveryChannels(GetDeliveryChannelsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cfg/getDeliveryChannels:getDeliveryChannels", TypeShape.of(GetDeliveryChannelsResult.class), args, Utilities.withVersion(options)); } + /** + * > **DEPRECATED:** This resource is based on Config's old version OpenAPI, and it has been deprecated from version `1.173.0`. + * Please use new datasource alicloud.cfg.getDeliveries instead. + * + * This data source provides the Config Delivery Channels of the current Alibaba Cloud user. + * + * > **NOTE:** Available in 1.99.0+. + * + * > **NOTE:** The Cloud Config region only support `cn-shanghai` and `ap-southeast-1`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cfg.CfgFunctions;
+     * import com.pulumi.alicloud.cfg.inputs.GetDeliveryChannelsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = CfgFunctions.getDeliveryChannels(GetDeliveryChannelsArgs.builder()
+     *             .ids("cdc-49a2ad756057********")
+     *             .nameRegex("tftest")
+     *             .build());
+     * 
+     *         ctx.export("firstConfigDeliveryChannelId", example.applyValue(getDeliveryChannelsResult -> getDeliveryChannelsResult.channels()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDeliveryChannels(GetDeliveryChannelsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cfg/getDeliveryChannels:getDeliveryChannels", TypeShape.of(GetDeliveryChannelsResult.class), args, Utilities.withVersion(options)); + } /** * > **DEPRECATED:** This resource is based on Config's old version OpenAPI, and it has been deprecated from version `1.173.0`. * Please use new datasource alicloud.cfg.getDeliveries instead. @@ -2304,6 +2692,54 @@ public static CompletableFuture getRulesPlain(GetRulesPlainArgs public static Output getRules(GetRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cfg/getRules:getRules", TypeShape.of(GetRulesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Config Rules of the current Alibaba Cloud user. + * + * > **NOTE:** Available in 1.99.0+. + * + * > **NOTE:** The Cloud Config region only support `cn-shanghai` and `ap-southeast-1`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cfg.CfgFunctions;
+     * import com.pulumi.alicloud.cfg.inputs.GetRulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = CfgFunctions.getRules(GetRulesArgs.builder()
+     *             .ids("cr-ed4bad756057********")
+     *             .nameRegex("tftest")
+     *             .build());
+     * 
+     *         ctx.export("firstConfigRuleId", example.applyValue(getRulesResult -> getRulesResult.rules()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRules(GetRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cfg/getRules:getRules", TypeShape.of(GetRulesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Config Rules of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/chatbot/ChatbotFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/chatbot/ChatbotFunctions.java index dce4979f3f..2215da9241 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/chatbot/ChatbotFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/chatbot/ChatbotFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class ChatbotFunctions { @@ -239,6 +240,51 @@ public static CompletableFuture getAgentsPlain(GetAgentsPlainAr public static Output getAgents(GetAgentsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:chatbot/getAgents:getAgents", TypeShape.of(GetAgentsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Chatbot Agents of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.203.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.chatbot.ChatbotFunctions;
+     * import com.pulumi.alicloud.chatbot.inputs.GetAgentsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var nameRegex = ChatbotFunctions.getAgents(GetAgentsArgs.builder()
+     *             .nameRegex("^my-Agent")
+     *             .build());
+     * 
+     *         ctx.export("alicloudChatbotAgentsId1", nameRegex.applyValue(getAgentsResult -> getAgentsResult.agents()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAgents(GetAgentsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:chatbot/getAgents:getAgents", TypeShape.of(GetAgentsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Chatbot Agents of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/clickhouse/ClickhouseFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/clickhouse/ClickhouseFunctions.java index 7766570746..cb8ad168e8 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/clickhouse/ClickhouseFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/clickhouse/ClickhouseFunctions.java @@ -20,6 +20,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class ClickhouseFunctions { @@ -320,6 +321,105 @@ public static CompletableFuture getAccountsPlain(GetAccountsP public static Output getAccounts(GetAccountsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:clickhouse/getAccounts:getAccounts", TypeShape.of(GetAccountsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Click House Accounts of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.134.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.clickhouse.ClickhouseFunctions;
+     * import com.pulumi.alicloud.clickhouse.inputs.GetRegionsArgs;
+     * import com.pulumi.alicloud.vpc.Network;
+     * import com.pulumi.alicloud.vpc.NetworkArgs;
+     * import com.pulumi.alicloud.vpc.Switch;
+     * import com.pulumi.alicloud.vpc.SwitchArgs;
+     * import com.pulumi.alicloud.clickhouse.DbCluster;
+     * import com.pulumi.alicloud.clickhouse.DbClusterArgs;
+     * import com.pulumi.alicloud.clickhouse.Account;
+     * import com.pulumi.alicloud.clickhouse.AccountArgs;
+     * import com.pulumi.alicloud.clickhouse.inputs.GetAccountsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("oneaccountname");
+     *         final var pwd = config.get("pwd").orElse("Tf-onepwd");
+     *         final var type = config.get("type").orElse("Normal");
+     *         final var default = ClickhouseFunctions.getRegions(GetRegionsArgs.builder()
+     *             .current(true)
+     *             .build());
+     * 
+     *         var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
+     *             .vpcName(name)
+     *             .cidrBlock("10.4.0.0/16")
+     *             .build());
+     * 
+     *         var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
+     *             .vswitchName(name)
+     *             .cidrBlock("10.4.0.0/24")
+     *             .vpcId(defaultNetwork.id())
+     *             .zoneId(default_.regions()[0].zoneIds()[0].zoneId())
+     *             .build());
+     * 
+     *         var defaultDbCluster = new DbCluster("defaultDbCluster", DbClusterArgs.builder()
+     *             .dbClusterVersion("22.8.5.29")
+     *             .category("Basic")
+     *             .dbClusterClass("S8")
+     *             .dbClusterNetworkType("vpc")
+     *             .dbClusterDescription(name)
+     *             .dbNodeGroupCount("1")
+     *             .paymentType("PayAsYouGo")
+     *             .dbNodeStorage("500")
+     *             .storageType("cloud_essd")
+     *             .vswitchId(defaultSwitch.id())
+     *             .vpcId(defaultNetwork.id())
+     *             .build());
+     * 
+     *         var defaultAccount = new Account("defaultAccount", AccountArgs.builder()
+     *             .dbClusterId(defaultDbCluster.id())
+     *             .accountDescription("your_description")
+     *             .accountName(name)
+     *             .accountPassword(pwd)
+     *             .type(type)
+     *             .build());
+     * 
+     *         final var defaultGetAccounts = ClickhouseFunctions.getAccounts(GetAccountsArgs.builder()
+     *             .ids(defaultAccount.id())
+     *             .dbClusterId(defaultDbCluster.id())
+     *             .build());
+     * 
+     *         ctx.export("accountId", defaultGetAccounts.applyValue(getAccountsResult -> getAccountsResult).applyValue(defaultGetAccounts -> defaultGetAccounts.applyValue(getAccountsResult -> getAccountsResult.ids()[0])));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccounts(GetAccountsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:clickhouse/getAccounts:getAccounts", TypeShape.of(GetAccountsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Click House Accounts of the current Alibaba Cloud user. * @@ -560,6 +660,53 @@ public static CompletableFuture getBackupPoliciesPlain( public static Output getBackupPolicies(GetBackupPoliciesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:clickhouse/getBackupPolicies:getBackupPolicies", TypeShape.of(GetBackupPoliciesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Click House Backup Policies of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.147.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.clickhouse.ClickhouseFunctions;
+     * import com.pulumi.alicloud.clickhouse.inputs.GetBackupPoliciesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = ClickhouseFunctions.getBackupPolicies(GetBackupPoliciesArgs.builder()
+     *             .dbClusterId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("clickHouseBackupPolicyId1", example.applyValue(getBackupPoliciesResult -> getBackupPoliciesResult.policies()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBackupPolicies(GetBackupPoliciesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:clickhouse/getBackupPolicies:getBackupPolicies", TypeShape.of(GetBackupPoliciesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Click House Backup Policies of the current Alibaba Cloud user. * @@ -912,6 +1059,67 @@ public static CompletableFuture getDbClustersPlain(GetDbClu public static Output getDbClusters(GetDbClustersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:clickhouse/getDbClusters:getDbClusters", TypeShape.of(GetDbClustersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Click House DBCluster of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.134.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.clickhouse.DbCluster;
+     * import com.pulumi.alicloud.clickhouse.DbClusterArgs;
+     * import com.pulumi.alicloud.clickhouse.ClickhouseFunctions;
+     * import com.pulumi.alicloud.clickhouse.inputs.GetDbClustersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var defaultDbCluster = new DbCluster("defaultDbCluster", DbClusterArgs.builder()
+     *             .dbClusterVersion("20.3.10.75")
+     *             .category("Basic")
+     *             .dbClusterClass("S8")
+     *             .dbClusterNetworkType("vpc")
+     *             .dbNodeGroupCount("1")
+     *             .paymentType("PayAsYouGo")
+     *             .dbNodeStorage("500")
+     *             .storageType("cloud_essd")
+     *             .vswitchId("your_vswitch_id")
+     *             .build());
+     * 
+     *         final var default = ClickhouseFunctions.getDbClusters(GetDbClustersArgs.builder()
+     *             .ids(defaultDbCluster.id())
+     *             .build());
+     * 
+     *         ctx.export("dbCluster", default_.applyValue(default_ -> default_.ids()[0]));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDbClusters(GetDbClustersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:clickhouse/getDbClusters:getDbClusters", TypeShape.of(GetDbClustersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Click House DBCluster of the current Alibaba Cloud user. * @@ -1223,6 +1431,56 @@ public static CompletableFuture getRegionsPlain(GetRegionsPlai public static Output getRegions(GetRegionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:clickhouse/getRegions:getRegions", TypeShape.of(GetRegionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Click House Regions of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.138.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.clickhouse.ClickhouseFunctions;
+     * import com.pulumi.alicloud.clickhouse.inputs.GetRegionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default1 = ClickhouseFunctions.getRegions(GetRegionsArgs.builder()
+     *             .current(true)
+     *             .build());
+     * 
+     *         final var default2 = ClickhouseFunctions.getRegions(GetRegionsArgs.builder()
+     *             .regionId("cn-hangzhou")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRegions(GetRegionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:clickhouse/getRegions:getRegions", TypeShape.of(GetRegionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Click House Regions of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/cloudauth/CloudauthFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/cloudauth/CloudauthFunctions.java index d504e2998b..2913760129 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/cloudauth/CloudauthFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/cloudauth/CloudauthFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class CloudauthFunctions { @@ -289,6 +290,61 @@ public static CompletableFuture getFaceConfigsPlain(GetFac public static Output getFaceConfigs(GetFaceConfigsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudauth/getFaceConfigs:getFaceConfigs", TypeShape.of(GetFaceConfigsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cloudauth Face Configs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.137.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudauth.FaceConfig;
+     * import com.pulumi.alicloud.cloudauth.FaceConfigArgs;
+     * import com.pulumi.alicloud.cloudauth.CloudauthFunctions;
+     * import com.pulumi.alicloud.cloudauth.inputs.GetFaceConfigsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var defaultFaceConfig = new FaceConfig("defaultFaceConfig", FaceConfigArgs.builder()
+     *             .bizName("example-value")
+     *             .bizType("example-value")
+     *             .build());
+     * 
+     *         final var default = CloudauthFunctions.getFaceConfigs(GetFaceConfigsArgs.builder()
+     *             .ids(defaultFaceConfig.id())
+     *             .nameRegex(defaultFaceConfig.bizName())
+     *             .build());
+     * 
+     *         ctx.export("faceConfig", default_.applyValue(default_ -> default_.configs()[0]));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getFaceConfigs(GetFaceConfigsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudauth/getFaceConfigs:getFaceConfigs", TypeShape.of(GetFaceConfigsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cloudauth Face Configs of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/cloudconnect/CloudconnectFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/cloudconnect/CloudconnectFunctions.java index 440bd852bb..f28882c396 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/cloudconnect/CloudconnectFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/cloudconnect/CloudconnectFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class CloudconnectFunctions { @@ -294,6 +295,62 @@ public static CompletableFuture getNetworksPlain(GetNetworksP public static Output getNetworks(GetNetworksArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudconnect/getNetworks:getNetworks", TypeShape.of(GetNetworksResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Cloud Connect Networks available to the user. + * + * > **NOTE:** Available in 1.59.0+ + * + * > **NOTE:** Only the following regions support create Cloud Connect Network. [`cn-shanghai`, `cn-shanghai-finance-1`, `cn-hongkong`, `ap-southeast-1`, `ap-southeast-3`, `ap-southeast-5`, `ap-northeast-1`, `eu-central-1`] + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudconnect.CloudconnectFunctions;
+     * import com.pulumi.alicloud.cloudconnect.inputs.GetNetworksArgs;
+     * import com.pulumi.alicloud.cloudconnect.Network;
+     * import com.pulumi.alicloud.cloudconnect.NetworkArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = CloudconnectFunctions.getNetworks(GetNetworksArgs.builder()
+     *             .ids(defaultAlicloudCloudConnectNetworks.id())
+     *             .nameRegex("^tf-testAcc.*")
+     *             .build());
+     * 
+     *         var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
+     *             .name("tf-testAccCloudConnectNetworkName")
+     *             .description("tf-testAccCloudConnectNetworkDescription")
+     *             .cidrBlock("192.168.0.0/24")
+     *             .isDefault(true)
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNetworks(GetNetworksArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudconnect/getNetworks:getNetworks", TypeShape.of(GetNetworksResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Cloud Connect Networks available to the user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/cloudfirewall/CloudfirewallFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/cloudfirewall/CloudfirewallFunctions.java index 65be87c2d3..edb664e65f 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/cloudfirewall/CloudfirewallFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/cloudfirewall/CloudfirewallFunctions.java @@ -29,6 +29,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class CloudfirewallFunctions { @@ -337,6 +338,67 @@ public static CompletableFuture getAddressBooksPlain(GetA public static Output getAddressBooks(GetAddressBooksArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudfirewall/getAddressBooks:getAddressBooks", TypeShape.of(GetAddressBooksResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cloud Firewall Address Books of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.178.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudfirewall.AddressBook;
+     * import com.pulumi.alicloud.cloudfirewall.AddressBookArgs;
+     * import com.pulumi.alicloud.cloudfirewall.CloudfirewallFunctions;
+     * import com.pulumi.alicloud.cloudfirewall.inputs.GetAddressBooksArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("tf-example");
+     *         var default_ = new AddressBook("default", AddressBookArgs.builder()
+     *             .groupName(name)
+     *             .groupType("ip")
+     *             .description("tf-description")
+     *             .autoAddTagEcs(0)
+     *             .addressLists(            
+     *                 "10.21.0.0/16",
+     *                 "10.168.0.0/16")
+     *             .build());
+     * 
+     *         final var ids = CloudfirewallFunctions.getAddressBooks(GetAddressBooksArgs.builder()
+     *             .ids(default_.id())
+     *             .build());
+     * 
+     *         ctx.export("cloudFirewallAddressBookId1", ids.applyValue(getAddressBooksResult -> getAddressBooksResult).applyValue(ids -> ids.applyValue(getAddressBooksResult -> getAddressBooksResult.books()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAddressBooks(GetAddressBooksArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudfirewall/getAddressBooks:getAddressBooks", TypeShape.of(GetAddressBooksResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cloud Firewall Address Books of the current Alibaba Cloud user. * @@ -536,6 +598,52 @@ public static CompletableFuture getControlPoliciesPlai public static Output getControlPolicies(GetControlPoliciesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudfirewall/getControlPolicies:getControlPolicies", TypeShape.of(GetControlPoliciesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cloud Firewall Control Policies of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.129.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudfirewall.CloudfirewallFunctions;
+     * import com.pulumi.alicloud.cloudfirewall.inputs.GetControlPoliciesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = CloudfirewallFunctions.getControlPolicies(GetControlPoliciesArgs.builder()
+     *             .direction("in")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getControlPolicies(GetControlPoliciesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudfirewall/getControlPolicies:getControlPolicies", TypeShape.of(GetControlPoliciesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cloud Firewall Control Policies of the current Alibaba Cloud user. * @@ -807,6 +915,51 @@ public static CompletableFuture getInstanceMembersPlai public static Output getInstanceMembers(GetInstanceMembersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudfirewall/getInstanceMembers:getInstanceMembers", TypeShape.of(GetInstanceMembersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Cloud Firewall Instance Member available to the user.[What is Instance Member](https://help.aliyun.com/document_detail/261237.html) + * + * > **NOTE:** Available in 1.194.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudfirewall.CloudfirewallFunctions;
+     * import com.pulumi.alicloud.cloudfirewall.inputs.GetInstanceMembersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = CloudfirewallFunctions.getInstanceMembers(GetInstanceMembersArgs.builder()
+     *             .ids(defaultAlicloudCloudFirewallInstanceMember.id())
+     *             .build());
+     * 
+     *         ctx.export("alicloudCloudFirewallInstanceMemberExampleId", default_.members()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceMembers(GetInstanceMembersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudfirewall/getInstanceMembers:getInstanceMembers", TypeShape.of(GetInstanceMembersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Cloud Firewall Instance Member available to the user.[What is Instance Member](https://help.aliyun.com/document_detail/261237.html) * @@ -1077,6 +1230,51 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudfirewall/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cloud Firewall Instances of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.139.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudfirewall.CloudfirewallFunctions;
+     * import com.pulumi.alicloud.cloudfirewall.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CloudfirewallFunctions.getInstances();
+     * 
+     *         ctx.export("cloudFirewallInstanceId1", ids.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudfirewall/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cloud Firewall Instances of the current Alibaba Cloud user. * @@ -1367,6 +1565,55 @@ public static CompletableFuture getVpcFirewallCensPlai public static Output getVpcFirewallCens(GetVpcFirewallCensArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudfirewall/getVpcFirewallCens:getVpcFirewallCens", TypeShape.of(GetVpcFirewallCensResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Cloud Firewall Vpc Firewall Cen available to the user.[What is Vpc Firewall Cen](https://www.alibabacloud.com/help/en/cloud-firewall/latest/describevpcfirewallcenlist) + * + * > **NOTE:** Available in 1.194.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudfirewall.CloudfirewallFunctions;
+     * import com.pulumi.alicloud.cloudfirewall.inputs.GetVpcFirewallCensArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = CloudfirewallFunctions.getVpcFirewallCens(GetVpcFirewallCensArgs.builder()
+     *             .ids(defaultAlicloudCloudFirewallVpcFirewallCen.id())
+     *             .cenId("cen-cjok7uyb5w2b27573v")
+     *             .memberUid("1415189284827022")
+     *             .status("closed")
+     *             .vpcFirewallName("tf-test")
+     *             .build());
+     * 
+     *         ctx.export("alicloudCloudFirewallVpcFirewallCenExampleId", default_.cens()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVpcFirewallCens(GetVpcFirewallCensArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudfirewall/getVpcFirewallCens:getVpcFirewallCens", TypeShape.of(GetVpcFirewallCensResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Cloud Firewall Vpc Firewall Cen available to the user.[What is Vpc Firewall Cen](https://www.alibabacloud.com/help/en/cloud-firewall/latest/describevpcfirewallcenlist) * @@ -1566,6 +1813,56 @@ public static CompletableFuture getVpcFirew public static Output getVpcFirewallControlPolicies(GetVpcFirewallControlPoliciesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudfirewall/getVpcFirewallControlPolicies:getVpcFirewallControlPolicies", TypeShape.of(GetVpcFirewallControlPoliciesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cloud Firewall Vpc Firewall Control Policies of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.194.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudfirewall.CloudfirewallFunctions;
+     * import com.pulumi.alicloud.cloudfirewall.inputs.GetVpcFirewallControlPoliciesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CloudfirewallFunctions.getVpcFirewallControlPolicies(GetVpcFirewallControlPoliciesArgs.builder()
+     *             .vpcFirewallId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("alicloudCloudFirewallVpcFirewallControlPoliciesId1", ids.applyValue(getVpcFirewallControlPoliciesResult -> getVpcFirewallControlPoliciesResult.policies()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVpcFirewallControlPolicies(GetVpcFirewallControlPoliciesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudfirewall/getVpcFirewallControlPolicies:getVpcFirewallControlPolicies", TypeShape.of(GetVpcFirewallControlPoliciesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cloud Firewall Vpc Firewall Control Policies of the current Alibaba Cloud user. * @@ -1856,6 +2153,54 @@ public static CompletableFuture getVpcFirewallsPlain(GetV public static Output getVpcFirewalls(GetVpcFirewallsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudfirewall/getVpcFirewalls:getVpcFirewalls", TypeShape.of(GetVpcFirewallsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Cloud Firewall Vpc Firewall available to the user.[What is Vpc Firewall](https://help.aliyun.com/document_detail/342932.html) + * + * > **NOTE:** Available in 1.194.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudfirewall.CloudfirewallFunctions;
+     * import com.pulumi.alicloud.cloudfirewall.inputs.GetVpcFirewallsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = CloudfirewallFunctions.getVpcFirewalls(GetVpcFirewallsArgs.builder()
+     *             .ids("id-example")
+     *             .memberUid("1415189284827022")
+     *             .status("closed")
+     *             .vpcFirewallName("tf-test")
+     *             .build());
+     * 
+     *         ctx.export("alicloudCfwVpcFirewallExampleId", default_.firewalls()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVpcFirewalls(GetVpcFirewallsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudfirewall/getVpcFirewalls:getVpcFirewalls", TypeShape.of(GetVpcFirewallsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Cloud Firewall Vpc Firewall available to the user.[What is Vpc Firewall](https://help.aliyun.com/document_detail/342932.html) * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/cloudmonitor/CloudmonitorFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/cloudmonitor/CloudmonitorFunctions.java index 85a8b96239..b7d5612356 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/cloudmonitor/CloudmonitorFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/cloudmonitor/CloudmonitorFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class CloudmonitorFunctions { @@ -359,6 +360,75 @@ public static CompletableFuture getServiceHy public static Output getServiceHybridDoubleWrites(GetServiceHybridDoubleWritesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudmonitor/getServiceHybridDoubleWrites:getServiceHybridDoubleWrites", TypeShape.of(GetServiceHybridDoubleWritesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cloud Monitor Service Hybrid Double Writes of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.220.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.cms.Namespace;
+     * import com.pulumi.alicloud.cms.NamespaceArgs;
+     * import com.pulumi.alicloud.cloudmonitor.ServiceHybridDoubleWrite;
+     * import com.pulumi.alicloud.cloudmonitor.ServiceHybridDoubleWriteArgs;
+     * import com.pulumi.alicloud.cloudmonitor.CloudmonitorFunctions;
+     * import com.pulumi.alicloud.cloudmonitor.inputs.GetServiceHybridDoubleWritesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = AlicloudFunctions.getAccount();
+     * 
+     *         var source = new Namespace("source", NamespaceArgs.builder()
+     *             .namespace("your-source-namespace")
+     *             .build());
+     * 
+     *         var defaultNamespace = new Namespace("defaultNamespace", NamespaceArgs.builder()
+     *             .namespace("your-namespace")
+     *             .build());
+     * 
+     *         var defaultServiceHybridDoubleWrite = new ServiceHybridDoubleWrite("defaultServiceHybridDoubleWrite", ServiceHybridDoubleWriteArgs.builder()
+     *             .sourceNamespace(source.id())
+     *             .sourceUserId(default_.id())
+     *             .namespace(defaultNamespace.id())
+     *             .userId(default_.id())
+     *             .build());
+     * 
+     *         final var ids = CloudmonitorFunctions.getServiceHybridDoubleWrites(GetServiceHybridDoubleWritesArgs.builder()
+     *             .ids(defaultServiceHybridDoubleWrite.id())
+     *             .build());
+     * 
+     *         ctx.export("cloudMonitorServiceHybridDoubleWritesId1", ids.applyValue(getServiceHybridDoubleWritesResult -> getServiceHybridDoubleWritesResult).applyValue(ids -> ids.applyValue(getServiceHybridDoubleWritesResult -> getServiceHybridDoubleWritesResult.hybridDoubleWrites()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServiceHybridDoubleWrites(GetServiceHybridDoubleWritesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudmonitor/getServiceHybridDoubleWrites:getServiceHybridDoubleWrites", TypeShape.of(GetServiceHybridDoubleWritesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cloud Monitor Service Hybrid Double Writes of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/cloudsso/CloudssoFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/cloudsso/CloudssoFunctions.java index 0996c959bd..e114d80870 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/cloudsso/CloudssoFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/cloudsso/CloudssoFunctions.java @@ -29,6 +29,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class CloudssoFunctions { @@ -188,6 +189,58 @@ public static CompletableFuture getAccessAssignments public static Output getAccessAssignments(GetAccessAssignmentsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudsso/getAccessAssignments:getAccessAssignments", TypeShape.of(GetAccessAssignmentsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cloud Sso Access Assignments of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.193.0+. + * + * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
+     * import com.pulumi.alicloud.cloudsso.inputs.GetAccessAssignmentsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CloudssoFunctions.getAccessAssignments(GetAccessAssignmentsArgs.builder()
+     *             .directoryId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("cloudSsoAccessAssignmentId1", ids.applyValue(getAccessAssignmentsResult -> getAccessAssignmentsResult.assignments()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccessAssignments(GetAccessAssignmentsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudsso/getAccessAssignments:getAccessAssignments", TypeShape.of(GetAccessAssignmentsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cloud Sso Access Assignments of the current Alibaba Cloud user. * @@ -414,6 +467,64 @@ public static CompletableFuture getAccessConfigur public static Output getAccessConfigurations(GetAccessConfigurationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudsso/getAccessConfigurations:getAccessConfigurations", TypeShape.of(GetAccessConfigurationsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cloud Sso Access Configurations of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.140.0+. + * + * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
+     * import com.pulumi.alicloud.cloudsso.inputs.GetAccessConfigurationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CloudssoFunctions.getAccessConfigurations(GetAccessConfigurationsArgs.builder()
+     *             .directoryId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("cloudSsoAccessConfigurationId1", ids.applyValue(getAccessConfigurationsResult -> getAccessConfigurationsResult.configurations()[0].id()));
+     *         final var nameRegex = CloudssoFunctions.getAccessConfigurations(GetAccessConfigurationsArgs.builder()
+     *             .directoryId("example_value")
+     *             .nameRegex("^my-AccessConfiguration")
+     *             .build());
+     * 
+     *         ctx.export("cloudSsoAccessConfigurationId2", nameRegex.applyValue(getAccessConfigurationsResult -> getAccessConfigurationsResult.configurations()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccessConfigurations(GetAccessConfigurationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudsso/getAccessConfigurations:getAccessConfigurations", TypeShape.of(GetAccessConfigurationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cloud Sso Access Configurations of the current Alibaba Cloud user. * @@ -742,6 +853,60 @@ public static CompletableFuture getDirectoriesPlain(GetDir public static Output getDirectories(GetDirectoriesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudsso/getDirectories:getDirectories", TypeShape.of(GetDirectoriesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cloud Sso Directories of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.135.0+. + * + * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
+     * import com.pulumi.alicloud.cloudsso.inputs.GetDirectoriesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CloudssoFunctions.getDirectories(GetDirectoriesArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("cloudSsoDirectoryId1", ids.applyValue(getDirectoriesResult -> getDirectoriesResult.directories()[0].id()));
+     *         final var nameRegex = CloudssoFunctions.getDirectories(GetDirectoriesArgs.builder()
+     *             .nameRegex("^my-Directory")
+     *             .build());
+     * 
+     *         ctx.export("cloudSsoDirectoryId2", nameRegex.applyValue(getDirectoriesResult -> getDirectoriesResult.directories()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDirectories(GetDirectoriesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudsso/getDirectories:getDirectories", TypeShape.of(GetDirectoriesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cloud Sso Directories of the current Alibaba Cloud user. * @@ -970,6 +1135,64 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr public static Output getGroups(GetGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudsso/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cloud Sso Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.138.0+. + * + * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
+     * import com.pulumi.alicloud.cloudsso.inputs.GetGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CloudssoFunctions.getGroups(GetGroupsArgs.builder()
+     *             .directoryId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("cloudSsoGroupId1", ids.applyValue(getGroupsResult -> getGroupsResult.groups()[0].id()));
+     *         final var nameRegex = CloudssoFunctions.getGroups(GetGroupsArgs.builder()
+     *             .directoryId("example_value")
+     *             .nameRegex("^my-Group")
+     *             .build());
+     * 
+     *         ctx.export("cloudSsoGroupId2", nameRegex.applyValue(getGroupsResult -> getGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGroups(GetGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudsso/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cloud Sso Groups of the current Alibaba Cloud user. * @@ -1184,6 +1407,58 @@ public static CompletableFuture getScimServerCre public static Output getScimServerCredentials(GetScimServerCredentialsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudsso/getScimServerCredentials:getScimServerCredentials", TypeShape.of(GetScimServerCredentialsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cloud Sso Scim Server Credentials of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.138.0+. + * + * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
+     * import com.pulumi.alicloud.cloudsso.inputs.GetScimServerCredentialsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CloudssoFunctions.getScimServerCredentials(GetScimServerCredentialsArgs.builder()
+     *             .directoryId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("cloudSsoScimServerCredentialId1", ids.applyValue(getScimServerCredentialsResult -> getScimServerCredentialsResult.credentials()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getScimServerCredentials(GetScimServerCredentialsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudsso/getScimServerCredentials:getScimServerCredentials", TypeShape.of(GetScimServerCredentialsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cloud Sso Scim Server Credentials of the current Alibaba Cloud user. * @@ -1386,6 +1661,56 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudsso/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open Cloud Sso Service automatically. + * + * For information about Cloud SSO and how to use it, see [What is Cloud SSO](https://www.alibabacloud.com/help/en/doc-detail/262819.html). + * + * > **NOTE:** Available in v1.148.0+. + * + * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
+     * import com.pulumi.alicloud.cloudsso.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = CloudssoFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudsso/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open Cloud Sso Service automatically. * @@ -1652,6 +1977,78 @@ public static CompletableFuture getUsersPlain(GetUsersPlainArgs public static Output getUsers(GetUsersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudsso/getUsers:getUsers", TypeShape.of(GetUsersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cloud Sso Users of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.140.0+. + * + * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
+     * import com.pulumi.alicloud.cloudsso.inputs.GetUsersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CloudssoFunctions.getUsers(GetUsersArgs.builder()
+     *             .directoryId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("cloudSsoUserId1", ids.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
+     *         final var nameRegex = CloudssoFunctions.getUsers(GetUsersArgs.builder()
+     *             .directoryId("example_value")
+     *             .nameRegex("^my-User")
+     *             .build());
+     * 
+     *         ctx.export("cloudSsoUserId2", nameRegex.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
+     *         final var provisionType = CloudssoFunctions.getUsers(GetUsersArgs.builder()
+     *             .directoryId("example_value")
+     *             .ids("example_value-1")
+     *             .provisionType("Manual")
+     *             .build());
+     * 
+     *         ctx.export("cloudSsoUserId3", provisionType.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
+     *         final var status = CloudssoFunctions.getUsers(GetUsersArgs.builder()
+     *             .directoryId("example_value")
+     *             .ids("example_value-1")
+     *             .status("Enabled")
+     *             .build());
+     * 
+     *         ctx.export("cloudSsoUserId4", status.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getUsers(GetUsersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudsso/getUsers:getUsers", TypeShape.of(GetUsersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cloud Sso Users of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/cloudstoragegateway/CloudstoragegatewayFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/cloudstoragegateway/CloudstoragegatewayFunctions.java index 850df8a159..48d54ac7d6 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/cloudstoragegateway/CloudstoragegatewayFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/cloudstoragegateway/CloudstoragegatewayFunctions.java @@ -35,6 +35,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class CloudstoragegatewayFunctions { @@ -288,6 +289,56 @@ public static CompletableFuture getExpressSyncsPlain(GetE public static Output getExpressSyncs(GetExpressSyncsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudstoragegateway/getExpressSyncs:getExpressSyncs", TypeShape.of(GetExpressSyncsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cloud Storage Gateway Express Syncs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.144.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudstoragegateway.CloudstoragegatewayFunctions;
+     * import com.pulumi.alicloud.cloudstoragegateway.inputs.GetExpressSyncsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CloudstoragegatewayFunctions.getExpressSyncs();
+     * 
+     *         ctx.export("cloudStorageGatewayExpressSyncId1", ids.applyValue(getExpressSyncsResult -> getExpressSyncsResult.syncs()[0].id()));
+     *         final var nameRegex = CloudstoragegatewayFunctions.getExpressSyncs(GetExpressSyncsArgs.builder()
+     *             .nameRegex("^my-ExpressSync")
+     *             .build());
+     * 
+     *         ctx.export("cloudStorageGatewayExpressSyncId2", nameRegex.applyValue(getExpressSyncsResult -> getExpressSyncsResult.syncs()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getExpressSyncs(GetExpressSyncsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudstoragegateway/getExpressSyncs:getExpressSyncs", TypeShape.of(GetExpressSyncsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cloud Storage Gateway Express Syncs of the current Alibaba Cloud user. * @@ -506,6 +557,62 @@ public static CompletableFuture getGatewayBlockVol public static Output getGatewayBlockVolumes(GetGatewayBlockVolumesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudstoragegateway/getGatewayBlockVolumes:getGatewayBlockVolumes", TypeShape.of(GetGatewayBlockVolumesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cloud Storage Gateway Gateway Block Volumes of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.144.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudstoragegateway.CloudstoragegatewayFunctions;
+     * import com.pulumi.alicloud.cloudstoragegateway.inputs.GetGatewayBlockVolumesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CloudstoragegatewayFunctions.getGatewayBlockVolumes(GetGatewayBlockVolumesArgs.builder()
+     *             .gatewayId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("cloudStorageGatewayGatewayBlockVolumeId1", ids.applyValue(getGatewayBlockVolumesResult -> getGatewayBlockVolumesResult.volumes()[0].id()));
+     *         final var nameRegex = CloudstoragegatewayFunctions.getGatewayBlockVolumes(GetGatewayBlockVolumesArgs.builder()
+     *             .gatewayId("example_value")
+     *             .nameRegex("^my-GatewayBlockVolume")
+     *             .build());
+     * 
+     *         ctx.export("cloudStorageGatewayGatewayBlockVolumeId2", nameRegex.applyValue(getGatewayBlockVolumesResult -> getGatewayBlockVolumesResult.volumes()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGatewayBlockVolumes(GetGatewayBlockVolumesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudstoragegateway/getGatewayBlockVolumes:getGatewayBlockVolumes", TypeShape.of(GetGatewayBlockVolumesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cloud Storage Gateway Gateway Block Volumes of the current Alibaba Cloud user. * @@ -739,6 +846,65 @@ public static CompletableFuture getGatewayCacheDisks public static Output getGatewayCacheDisks(GetGatewayCacheDisksArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudstoragegateway/getGatewayCacheDisks:getGatewayCacheDisks", TypeShape.of(GetGatewayCacheDisksResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cloud Storage Gateway Gateway Cache Disks of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.144.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudstoragegateway.CloudstoragegatewayFunctions;
+     * import com.pulumi.alicloud.cloudstoragegateway.inputs.GetGatewayCacheDisksArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CloudstoragegatewayFunctions.getGatewayCacheDisks(GetGatewayCacheDisksArgs.builder()
+     *             .gatewayId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("cloudStorageGatewayGatewayCacheDiskId1", ids.applyValue(getGatewayCacheDisksResult -> getGatewayCacheDisksResult.disks()[0].id()));
+     *         final var status = CloudstoragegatewayFunctions.getGatewayCacheDisks(GetGatewayCacheDisksArgs.builder()
+     *             .gatewayId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .status("0")
+     *             .build());
+     * 
+     *         ctx.export("cloudStorageGatewayGatewayCacheDiskId2", status.applyValue(getGatewayCacheDisksResult -> getGatewayCacheDisksResult.disks()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGatewayCacheDisks(GetGatewayCacheDisksArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudstoragegateway/getGatewayCacheDisks:getGatewayCacheDisks", TypeShape.of(GetGatewayCacheDisksResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cloud Storage Gateway Gateway Cache Disks of the current Alibaba Cloud user. * @@ -966,6 +1132,62 @@ public static CompletableFuture getGatewayFileShares public static Output getGatewayFileShares(GetGatewayFileSharesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudstoragegateway/getGatewayFileShares:getGatewayFileShares", TypeShape.of(GetGatewayFileSharesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cloud Storage Gateway Gateway File Shares of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.144.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudstoragegateway.CloudstoragegatewayFunctions;
+     * import com.pulumi.alicloud.cloudstoragegateway.inputs.GetGatewayFileSharesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CloudstoragegatewayFunctions.getGatewayFileShares(GetGatewayFileSharesArgs.builder()
+     *             .gatewayId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("cloudStorageGatewayGatewayFileShareId1", ids.applyValue(getGatewayFileSharesResult -> getGatewayFileSharesResult.shares()[0].id()));
+     *         final var nameRegex = CloudstoragegatewayFunctions.getGatewayFileShares(GetGatewayFileSharesArgs.builder()
+     *             .gatewayId("example_value")
+     *             .nameRegex("^my-GatewayFileShare")
+     *             .build());
+     * 
+     *         ctx.export("cloudStorageGatewayGatewayFileShareId2", nameRegex.applyValue(getGatewayFileSharesResult -> getGatewayFileSharesResult.shares()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGatewayFileShares(GetGatewayFileSharesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudstoragegateway/getGatewayFileShares:getGatewayFileShares", TypeShape.of(GetGatewayFileSharesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cloud Storage Gateway Gateway File Shares of the current Alibaba Cloud user. * @@ -1286,6 +1508,94 @@ public static CompletableFuture getGatewaySmbUsersPlai public static Output getGatewaySmbUsers(GetGatewaySmbUsersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudstoragegateway/getGatewaySmbUsers:getGatewaySmbUsers", TypeShape.of(GetGatewaySmbUsersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cloud Storage Gateway Gateway SMB Users of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.142.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
+     * import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
+     * import com.pulumi.alicloud.cloudstoragegateway.StorageBundle;
+     * import com.pulumi.alicloud.cloudstoragegateway.StorageBundleArgs;
+     * import com.pulumi.alicloud.cloudstoragegateway.Gateway;
+     * import com.pulumi.alicloud.cloudstoragegateway.GatewayArgs;
+     * import com.pulumi.alicloud.cloudstoragegateway.GatewaySmbUser;
+     * import com.pulumi.alicloud.cloudstoragegateway.GatewaySmbUserArgs;
+     * import com.pulumi.alicloud.cloudstoragegateway.CloudstoragegatewayFunctions;
+     * import com.pulumi.alicloud.cloudstoragegateway.inputs.GetGatewaySmbUsersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = VpcFunctions.getNetworks(GetNetworksArgs.builder()
+     *             .nameRegex("default-NODELETING")
+     *             .build());
+     * 
+     *         final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
+     *             .vpcId(default_.ids()[0])
+     *             .build());
+     * 
+     *         var example = new StorageBundle("example", StorageBundleArgs.builder()
+     *             .storageBundleName("example_value")
+     *             .build());
+     * 
+     *         var defaultGateway = new Gateway("defaultGateway", GatewayArgs.builder()
+     *             .description("tf-acctestDesalone")
+     *             .gatewayClass("Standard")
+     *             .type("File")
+     *             .paymentType("PayAsYouGo")
+     *             .vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
+     *             .releaseAfterExpiration(false)
+     *             .publicNetworkBandwidth(40)
+     *             .storageBundleId(example.id())
+     *             .location("Cloud")
+     *             .gatewayName("example_value")
+     *             .build());
+     * 
+     *         var defaultGatewaySmbUser = new GatewaySmbUser("defaultGatewaySmbUser", GatewaySmbUserArgs.builder()
+     *             .username("your_username")
+     *             .password("password")
+     *             .gatewayId(defaultGateway.id())
+     *             .build());
+     * 
+     *         final var ids = CloudstoragegatewayFunctions.getGatewaySmbUsers(GetGatewaySmbUsersArgs.builder()
+     *             .gatewayId(defaultGateway.id())
+     *             .ids(defaultGatewaySmbUser.id())
+     *             .build());
+     * 
+     *         ctx.export("cloudStorageGatewayGatewaySmbUserId1", ids.applyValue(getGatewaySmbUsersResult -> getGatewaySmbUsersResult).applyValue(ids -> ids.applyValue(getGatewaySmbUsersResult -> getGatewaySmbUsersResult.users()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGatewaySmbUsers(GetGatewaySmbUsersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudstoragegateway/getGatewaySmbUsers:getGatewaySmbUsers", TypeShape.of(GetGatewaySmbUsersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cloud Storage Gateway Gateway SMB Users of the current Alibaba Cloud user. * @@ -1536,6 +1846,60 @@ public static CompletableFuture getGatewaysPlain(GetGatewaysP public static Output getGateways(GetGatewaysArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudstoragegateway/getGateways:getGateways", TypeShape.of(GetGatewaysResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cloud Storage Gateway Gateways of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.132.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudstoragegateway.StorageBundle;
+     * import com.pulumi.alicloud.cloudstoragegateway.StorageBundleArgs;
+     * import com.pulumi.alicloud.cloudstoragegateway.CloudstoragegatewayFunctions;
+     * import com.pulumi.alicloud.cloudstoragegateway.inputs.GetGatewaysArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var example = new StorageBundle("example", StorageBundleArgs.builder()
+     *             .storageBundleName("example_value")
+     *             .build());
+     * 
+     *         final var nameRegex = CloudstoragegatewayFunctions.getGateways(GetGatewaysArgs.builder()
+     *             .storageBundleId(example.id())
+     *             .nameRegex("^my-Gateway")
+     *             .build());
+     * 
+     *         ctx.export("cloudStorageGatewayGatewayId", nameRegex.applyValue(getGatewaysResult -> getGatewaysResult).applyValue(nameRegex -> nameRegex.applyValue(getGatewaysResult -> getGatewaysResult.gateways()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGateways(GetGatewaysArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudstoragegateway/getGateways:getGateways", TypeShape.of(GetGatewaysResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cloud Storage Gateway Gateways of the current Alibaba Cloud user. * @@ -1820,6 +2184,52 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudstoragegateway/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open Cloud Storage Gateway service automatically. If the service has been opened, it will return opened. + * + * For information about Cloud Storage Gateway and how to use it, see [What is Cloud Storage Gateway](https://www.alibabacloud.com/help/en/product/53923.htm). + * + * > **NOTE:** Available in v1.117.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudstoragegateway.CloudstoragegatewayFunctions;
+     * import com.pulumi.alicloud.cloudstoragegateway.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = CloudstoragegatewayFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudstoragegateway/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open Cloud Storage Gateway service automatically. If the service has been opened, it will return opened. * @@ -2101,6 +2511,53 @@ public static CompletableFuture getStocksPlain(GetStocksPlainAr public static Output getStocks(GetStocksArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudstoragegateway/getStocks:getStocks", TypeShape.of(GetStocksResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cloud Storage Gateway Stocks of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.144.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cloudstoragegateway.CloudstoragegatewayFunctions;
+     * import com.pulumi.alicloud.cloudstoragegateway.inputs.GetStocksArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = CloudstoragegatewayFunctions.getStocks(GetStocksArgs.builder()
+     *             .gatewayClass("Advanced")
+     *             .build());
+     * 
+     *         ctx.export("zoneId", default_.stocks()[0].zoneId());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getStocks(GetStocksArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudstoragegateway/getStocks:getStocks", TypeShape.of(GetStocksResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cloud Storage Gateway Stocks of the current Alibaba Cloud user. * @@ -2157,6 +2614,9 @@ public static CompletableFuture getStorageBundlesPlain( public static Output getStorageBundles(GetStorageBundlesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudstoragegateway/getStorageBundles:getStorageBundles", TypeShape.of(GetStorageBundlesResult.class), args, Utilities.withVersion(options)); } + public static Output getStorageBundles(GetStorageBundlesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cloudstoragegateway/getStorageBundles:getStorageBundles", TypeShape.of(GetStorageBundlesResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getStorageBundlesPlain(GetStorageBundlesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:cloudstoragegateway/getStorageBundles:getStorageBundles", TypeShape.of(GetStorageBundlesResult.class), args, Utilities.withVersion(options)); } diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/cms/CmsFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/cms/CmsFunctions.java index d2961da02a..b6a1c7a728 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/cms/CmsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/cms/CmsFunctions.java @@ -56,6 +56,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class CmsFunctions { @@ -289,6 +290,52 @@ public static CompletableFuture getAlarmContactGrou public static Output getAlarmContactGroups(GetAlarmContactGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cms/getAlarmContactGroups:getAlarmContactGroups", TypeShape.of(GetAlarmContactGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the CMS Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.101.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cms.CmsFunctions;
+     * import com.pulumi.alicloud.cms.inputs.GetAlarmContactGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = CmsFunctions.getAlarmContactGroups(GetAlarmContactGroupsArgs.builder()
+     *             .nameRegex("tf-testacc")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAlarmContactGroups(GetAlarmContactGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cms/getAlarmContactGroups:getAlarmContactGroups", TypeShape.of(GetAlarmContactGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the CMS Groups of the current Alibaba Cloud user. * @@ -570,6 +617,53 @@ public static CompletableFuture getAlarmContactsPlain(Ge public static Output getAlarmContacts(GetAlarmContactsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cms/getAlarmContacts:getAlarmContacts", TypeShape.of(GetAlarmContactsResult.class), args, Utilities.withVersion(options)); } + /** + * Provides a list of alarm contact owned by an Alibaba Cloud account. + * + * > **NOTE:** Available in v1.99.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cms.CmsFunctions;
+     * import com.pulumi.alicloud.cms.inputs.GetAlarmContactsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = CmsFunctions.getAlarmContacts(GetAlarmContactsArgs.builder()
+     *             .ids("tf-testAccCmsAlarmContact")
+     *             .build());
+     * 
+     *         ctx.export("first-contact", this_.contacts());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAlarmContacts(GetAlarmContactsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cms/getAlarmContacts:getAlarmContacts", TypeShape.of(GetAlarmContactsResult.class), args, Utilities.withVersion(options)); + } /** * Provides a list of alarm contact owned by an Alibaba Cloud account. * @@ -962,6 +1056,75 @@ public static CompletableFuture getDynamicTagGroupsPl public static Output getDynamicTagGroups(GetDynamicTagGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cms/getDynamicTagGroups:getDynamicTagGroups", TypeShape.of(GetDynamicTagGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cms Dynamic Tag Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.142.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cms.AlarmContactGroup;
+     * import com.pulumi.alicloud.cms.AlarmContactGroupArgs;
+     * import com.pulumi.alicloud.cms.DynamicTagGroup;
+     * import com.pulumi.alicloud.cms.DynamicTagGroupArgs;
+     * import com.pulumi.alicloud.cms.inputs.DynamicTagGroupMatchExpressArgs;
+     * import com.pulumi.alicloud.cms.CmsFunctions;
+     * import com.pulumi.alicloud.cms.inputs.GetDynamicTagGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("example_value");
+     *         var default_ = new AlarmContactGroup("default", AlarmContactGroupArgs.builder()
+     *             .alarmContactGroupName(name)
+     *             .describe("example_value")
+     *             .enableSubscribed(true)
+     *             .build());
+     * 
+     *         var defaultDynamicTagGroup = new DynamicTagGroup("defaultDynamicTagGroup", DynamicTagGroupArgs.builder()
+     *             .contactGroupLists(default_.id())
+     *             .tagKey("your_tag_key")
+     *             .matchExpresses(DynamicTagGroupMatchExpressArgs.builder()
+     *                 .tagValue("your_tag_value")
+     *                 .tagValueMatchFunction("all")
+     *                 .build())
+     *             .build());
+     * 
+     *         final var ids = CmsFunctions.getDynamicTagGroups(GetDynamicTagGroupsArgs.builder()
+     *             .ids(defaultDynamicTagGroup.id())
+     *             .build());
+     * 
+     *         ctx.export("cmsDynamicTagGroupId1", ids.applyValue(getDynamicTagGroupsResult -> getDynamicTagGroupsResult).applyValue(ids -> ids.applyValue(getDynamicTagGroupsResult -> getDynamicTagGroupsResult.groups()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDynamicTagGroups(GetDynamicTagGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cms/getDynamicTagGroups:getDynamicTagGroups", TypeShape.of(GetDynamicTagGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cms Dynamic Tag Groups of the current Alibaba Cloud user. * @@ -1291,6 +1454,58 @@ public static CompletableFuture getEventRulesPlain(GetEvent public static Output getEventRules(GetEventRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cms/getEventRules:getEventRules", TypeShape.of(GetEventRulesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cms Event Rules of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.182.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cms.CmsFunctions;
+     * import com.pulumi.alicloud.cms.inputs.GetEventRulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CmsFunctions.getEventRules(GetEventRulesArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("cmsEventRuleId1", ids.applyValue(getEventRulesResult -> getEventRulesResult.rules()[0].id()));
+     *         final var nameRegex = CmsFunctions.getEventRules(GetEventRulesArgs.builder()
+     *             .nameRegex("^my-EventRule")
+     *             .build());
+     * 
+     *         ctx.export("cmsEventRuleId2", nameRegex.applyValue(getEventRulesResult -> getEventRulesResult.rules()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEventRules(GetEventRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cms/getEventRules:getEventRules", TypeShape.of(GetEventRulesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cms Event Rules of the current Alibaba Cloud user. * @@ -1628,13 +1843,13 @@ public static Output getGroupMetricRules(GetGroupMetr * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getGroupMetricRulesPlain(GetGroupMetricRulesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:cms/getGroupMetricRules:getGroupMetricRules", TypeShape.of(GetGroupMetricRulesResult.class), args, Utilities.withVersion(options)); + public static Output getGroupMetricRules(GetGroupMetricRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cms/getGroupMetricRules:getGroupMetricRules", TypeShape.of(GetGroupMetricRulesResult.class), args, Utilities.withVersion(options)); } /** - * This data source provides the Cms Hybrid Monitor Datas of the current Alibaba Cloud user. + * This data source provides the Cms Group Metric Rules of the current Alibaba Cloud user. * - * > **NOTE:** Available in v1.177.0+. + * > **NOTE:** Available in v1.104.0+. * * ## Example Usage * @@ -1649,7 +1864,7 @@ public static CompletableFuture getGroupMetricRulesPl * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.alicloud.cms.CmsFunctions; - * import com.pulumi.alicloud.cms.inputs.GetHybridMonitorDatasArgs; + * import com.pulumi.alicloud.cms.inputs.GetGroupMetricRulesArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -1663,14 +1878,12 @@ public static CompletableFuture getGroupMetricRulesPl * } * * public static void stack(Context ctx) { - * final var default = CmsFunctions.getHybridMonitorDatas(GetHybridMonitorDatasArgs.builder() - * .namespace("example_value") - * .promSql("AliyunEcs_cpu_total") - * .start("1657505665") - * .end("1657520065") + * final var example = CmsFunctions.getGroupMetricRules(GetGroupMetricRulesArgs.builder() + * .ids("4a9a8978-a9cc-55ca-aa7c-530ccd91ae57") + * .nameRegex("the_resource_name") * .build()); * - * ctx.export("cmsMetricRuleTemplateId1", default_.datas()[0]); + * ctx.export("firstCmsGroupMetricRuleId", example.applyValue(getGroupMetricRulesResult -> getGroupMetricRulesResult.rules()[0].id())); * } * } * } @@ -1678,8 +1891,8 @@ public static CompletableFuture getGroupMetricRulesPl * <!--End PulumiCodeChooser --> * */ - public static Output getHybridMonitorDatas(GetHybridMonitorDatasArgs args) { - return getHybridMonitorDatas(args, InvokeOptions.Empty); + public static CompletableFuture getGroupMetricRulesPlain(GetGroupMetricRulesPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:cms/getGroupMetricRules:getGroupMetricRules", TypeShape.of(GetGroupMetricRulesResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Cms Hybrid Monitor Datas of the current Alibaba Cloud user. @@ -1728,8 +1941,8 @@ public static Output getHybridMonitorDatas(GetHybri * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getHybridMonitorDatasPlain(GetHybridMonitorDatasPlainArgs args) { - return getHybridMonitorDatasPlain(args, InvokeOptions.Empty); + public static Output getHybridMonitorDatas(GetHybridMonitorDatasArgs args) { + return getHybridMonitorDatas(args, InvokeOptions.Empty); } /** * This data source provides the Cms Hybrid Monitor Datas of the current Alibaba Cloud user. @@ -1778,8 +1991,8 @@ public static CompletableFuture getHybridMonitorDat * <!--End PulumiCodeChooser --> * */ - public static Output getHybridMonitorDatas(GetHybridMonitorDatasArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("alicloud:cms/getHybridMonitorDatas:getHybridMonitorDatas", TypeShape.of(GetHybridMonitorDatasResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getHybridMonitorDatasPlain(GetHybridMonitorDatasPlainArgs args) { + return getHybridMonitorDatasPlain(args, InvokeOptions.Empty); } /** * This data source provides the Cms Hybrid Monitor Datas of the current Alibaba Cloud user. @@ -1828,13 +2041,13 @@ public static Output getHybridMonitorDatas(GetHybri * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getHybridMonitorDatasPlain(GetHybridMonitorDatasPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:cms/getHybridMonitorDatas:getHybridMonitorDatas", TypeShape.of(GetHybridMonitorDatasResult.class), args, Utilities.withVersion(options)); + public static Output getHybridMonitorDatas(GetHybridMonitorDatasArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:cms/getHybridMonitorDatas:getHybridMonitorDatas", TypeShape.of(GetHybridMonitorDatasResult.class), args, Utilities.withVersion(options)); } /** - * This data source provides the Cms Hybrid Monitor Fc Tasks of the current Alibaba Cloud user. + * This data source provides the Cms Hybrid Monitor Datas of the current Alibaba Cloud user. * - * > **NOTE:** Available in v1.179.0+. + * > **NOTE:** Available in v1.177.0+. * * ## Example Usage * @@ -1849,7 +2062,7 @@ public static CompletableFuture getHybridMonitorDat * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.alicloud.cms.CmsFunctions; - * import com.pulumi.alicloud.cms.inputs.GetHybridMonitorFcTasksArgs; + * import com.pulumi.alicloud.cms.inputs.GetHybridMonitorDatasArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -1863,11 +2076,111 @@ public static CompletableFuture getHybridMonitorDat * } * * public static void stack(Context ctx) { - * final var ids = CmsFunctions.getHybridMonitorFcTasks(GetHybridMonitorFcTasksArgs.builder() - * .ids("example_value") - * .build()); - * - * ctx.export("cmsHybridMonitorFcTaskId1", ids.applyValue(getHybridMonitorFcTasksResult -> getHybridMonitorFcTasksResult.tasks()[0].id())); + * final var default = CmsFunctions.getHybridMonitorDatas(GetHybridMonitorDatasArgs.builder() + * .namespace("example_value") + * .promSql("AliyunEcs_cpu_total") + * .start("1657505665") + * .end("1657520065") + * .build()); + * + * ctx.export("cmsMetricRuleTemplateId1", default_.datas()[0]); + * } + * } + * } + *
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHybridMonitorDatas(GetHybridMonitorDatasArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cms/getHybridMonitorDatas:getHybridMonitorDatas", TypeShape.of(GetHybridMonitorDatasResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Cms Hybrid Monitor Datas of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.177.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cms.CmsFunctions;
+     * import com.pulumi.alicloud.cms.inputs.GetHybridMonitorDatasArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = CmsFunctions.getHybridMonitorDatas(GetHybridMonitorDatasArgs.builder()
+     *             .namespace("example_value")
+     *             .promSql("AliyunEcs_cpu_total")
+     *             .start("1657505665")
+     *             .end("1657520065")
+     *             .build());
+     * 
+     *         ctx.export("cmsMetricRuleTemplateId1", default_.datas()[0]);
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getHybridMonitorDatasPlain(GetHybridMonitorDatasPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:cms/getHybridMonitorDatas:getHybridMonitorDatas", TypeShape.of(GetHybridMonitorDatasResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Cms Hybrid Monitor Fc Tasks of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.179.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cms.CmsFunctions;
+     * import com.pulumi.alicloud.cms.inputs.GetHybridMonitorFcTasksArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CmsFunctions.getHybridMonitorFcTasks(GetHybridMonitorFcTasksArgs.builder()
+     *             .ids("example_value")
+     *             .build());
+     * 
+     *         ctx.export("cmsHybridMonitorFcTaskId1", ids.applyValue(getHybridMonitorFcTasksResult -> getHybridMonitorFcTasksResult.tasks()[0].id()));
      *     }
      * }
      * }
@@ -2066,6 +2379,53 @@ public static CompletableFuture getHybridMonitorF
     public static Output getHybridMonitorFcTasks(GetHybridMonitorFcTasksArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("alicloud:cms/getHybridMonitorFcTasks:getHybridMonitorFcTasks", TypeShape.of(GetHybridMonitorFcTasksResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * This data source provides the Cms Hybrid Monitor Fc Tasks of the current Alibaba Cloud user.
+     * 
+     * > **NOTE:** Available in v1.179.0+.
+     * 
+     * ## Example Usage
+     * 
+     * Basic Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cms.CmsFunctions;
+     * import com.pulumi.alicloud.cms.inputs.GetHybridMonitorFcTasksArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CmsFunctions.getHybridMonitorFcTasks(GetHybridMonitorFcTasksArgs.builder()
+     *             .ids("example_value")
+     *             .build());
+     * 
+     *         ctx.export("cmsHybridMonitorFcTaskId1", ids.applyValue(getHybridMonitorFcTasksResult -> getHybridMonitorFcTasksResult.tasks()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHybridMonitorFcTasks(GetHybridMonitorFcTasksArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cms/getHybridMonitorFcTasks:getHybridMonitorFcTasks", TypeShape.of(GetHybridMonitorFcTasksResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cms Hybrid Monitor Fc Tasks of the current Alibaba Cloud user. * @@ -2348,6 +2708,53 @@ public static CompletableFuture getHybridMonitor public static Output getHybridMonitorSlsTasks(GetHybridMonitorSlsTasksArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cms/getHybridMonitorSlsTasks:getHybridMonitorSlsTasks", TypeShape.of(GetHybridMonitorSlsTasksResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cms Hybrid Monitor Sls Tasks of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.179.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cms.CmsFunctions;
+     * import com.pulumi.alicloud.cms.inputs.GetHybridMonitorSlsTasksArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CmsFunctions.getHybridMonitorSlsTasks(GetHybridMonitorSlsTasksArgs.builder()
+     *             .ids("example_value")
+     *             .build());
+     * 
+     *         ctx.export("cmsHybridMonitorSlsTaskId1", ids.applyValue(getHybridMonitorSlsTasksResult -> getHybridMonitorSlsTasksResult.tasks()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHybridMonitorSlsTasks(GetHybridMonitorSlsTasksArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cms/getHybridMonitorSlsTasks:getHybridMonitorSlsTasks", TypeShape.of(GetHybridMonitorSlsTasksResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cms Hybrid Monitor Sls Tasks of the current Alibaba Cloud user. * @@ -2630,6 +3037,53 @@ public static CompletableFuture getMetricRuleBlac public static Output getMetricRuleBlackLists(GetMetricRuleBlackListsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cms/getMetricRuleBlackLists:getMetricRuleBlackLists", TypeShape.of(GetMetricRuleBlackListsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Cloud Monitor Service Metric Rule Black List available to the user.[What is Metric Rule Black List](https://www.alibabacloud.com/help/en/cloudmonitor/latest/describemetricruleblacklist) + * + * > **NOTE:** Available in 1.194.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cms.CmsFunctions;
+     * import com.pulumi.alicloud.cms.inputs.GetMetricRuleBlackListsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = CmsFunctions.getMetricRuleBlackLists(GetMetricRuleBlackListsArgs.builder()
+     *             .ids(defaultAlicloudCmsMetricRuleBlackLists.id())
+     *             .category("ecs")
+     *             .namespace("acs_ecs_dashboard")
+     *             .build());
+     * 
+     *         ctx.export("alicloudCmsRuleBlackListExampleId", lists[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getMetricRuleBlackLists(GetMetricRuleBlackListsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cms/getMetricRuleBlackLists:getMetricRuleBlackLists", TypeShape.of(GetMetricRuleBlackListsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Cloud Monitor Service Metric Rule Black List available to the user.[What is Metric Rule Black List](https://www.alibabacloud.com/help/en/cloudmonitor/latest/describemetricruleblacklist) * @@ -2987,6 +3441,68 @@ public static CompletableFuture getMetricRuleTempl public static Output getMetricRuleTemplates(GetMetricRuleTemplatesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cms/getMetricRuleTemplates:getMetricRuleTemplates", TypeShape.of(GetMetricRuleTemplatesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cms Metric Rule Templates of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.134.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cms.CmsFunctions;
+     * import com.pulumi.alicloud.cms.inputs.GetMetricRuleTemplatesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CmsFunctions.getMetricRuleTemplates(GetMetricRuleTemplatesArgs.builder()
+     *             .ids("example_value")
+     *             .build());
+     * 
+     *         ctx.export("cmsMetricRuleTemplateId1", ids.applyValue(getMetricRuleTemplatesResult -> getMetricRuleTemplatesResult.templates()[0].id()));
+     *         final var nameRegex = CmsFunctions.getMetricRuleTemplates(GetMetricRuleTemplatesArgs.builder()
+     *             .nameRegex("^my-MetricRuleTemplate")
+     *             .build());
+     * 
+     *         ctx.export("cmsMetricRuleTemplateId2", nameRegex.applyValue(getMetricRuleTemplatesResult -> getMetricRuleTemplatesResult.templates()[0].id()));
+     *         final var keyword = CmsFunctions.getMetricRuleTemplates(GetMetricRuleTemplatesArgs.builder()
+     *             .keyword("^my-MetricRuleTemplate")
+     *             .build());
+     * 
+     *         ctx.export("cmsMetricRuleTemplateId3", nameRegex.applyValue(getMetricRuleTemplatesResult -> getMetricRuleTemplatesResult.templates()[0].id()));
+     *         final var templateId = CmsFunctions.getMetricRuleTemplates(GetMetricRuleTemplatesArgs.builder()
+     *             .templateId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("cmsMetricRuleTemplateId4", nameRegex.applyValue(getMetricRuleTemplatesResult -> getMetricRuleTemplatesResult.templates()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getMetricRuleTemplates(GetMetricRuleTemplatesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cms/getMetricRuleTemplates:getMetricRuleTemplates", TypeShape.of(GetMetricRuleTemplatesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cms Metric Rule Templates of the current Alibaba Cloud user. * @@ -3058,6 +3574,9 @@ public static CompletableFuture getMonitorGroupI public static Output getMonitorGroupInstances(GetMonitorGroupInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cms/getMonitorGroupInstances:getMonitorGroupInstances", TypeShape.of(GetMonitorGroupInstancesResult.class), args, Utilities.withVersion(options)); } + public static Output getMonitorGroupInstances(GetMonitorGroupInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cms/getMonitorGroupInstances:getMonitorGroupInstances", TypeShape.of(GetMonitorGroupInstancesResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getMonitorGroupInstancesPlain(GetMonitorGroupInstancesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:cms/getMonitorGroupInstances:getMonitorGroupInstances", TypeShape.of(GetMonitorGroupInstancesResult.class), args, Utilities.withVersion(options)); } @@ -3106,8 +3625,56 @@ public static CompletableFuture getMonitorGroupI * <!--End PulumiCodeChooser --> * */ - public static Output getMonitorGroups() { - return getMonitorGroups(GetMonitorGroupsArgs.Empty, InvokeOptions.Empty); + public static Output getMonitorGroups() { + return getMonitorGroups(GetMonitorGroupsArgs.Empty, InvokeOptions.Empty); + } + /** + * This data source provides the Cms Monitor Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.113.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cms.CmsFunctions;
+     * import com.pulumi.alicloud.cms.inputs.GetMonitorGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = CmsFunctions.getMonitorGroups(GetMonitorGroupsArgs.builder()
+     *             .ids("example_value")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstCmsMonitorGroupId", example.applyValue(getMonitorGroupsResult -> getMonitorGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getMonitorGroupsPlain() { + return getMonitorGroupsPlain(GetMonitorGroupsPlainArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Cms Monitor Groups of the current Alibaba Cloud user. @@ -3154,8 +3721,8 @@ public static Output getMonitorGroups() { * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getMonitorGroupsPlain() { - return getMonitorGroupsPlain(GetMonitorGroupsPlainArgs.Empty, InvokeOptions.Empty); + public static Output getMonitorGroups(GetMonitorGroupsArgs args) { + return getMonitorGroups(args, InvokeOptions.Empty); } /** * This data source provides the Cms Monitor Groups of the current Alibaba Cloud user. @@ -3202,8 +3769,8 @@ public static CompletableFuture getMonitorGroupsPlain() * <!--End PulumiCodeChooser --> * */ - public static Output getMonitorGroups(GetMonitorGroupsArgs args) { - return getMonitorGroups(args, InvokeOptions.Empty); + public static CompletableFuture getMonitorGroupsPlain(GetMonitorGroupsPlainArgs args) { + return getMonitorGroupsPlain(args, InvokeOptions.Empty); } /** * This data source provides the Cms Monitor Groups of the current Alibaba Cloud user. @@ -3250,8 +3817,8 @@ public static Output getMonitorGroups(GetMonitorGroupsAr * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getMonitorGroupsPlain(GetMonitorGroupsPlainArgs args) { - return getMonitorGroupsPlain(args, InvokeOptions.Empty); + public static Output getMonitorGroups(GetMonitorGroupsArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:cms/getMonitorGroups:getMonitorGroups", TypeShape.of(GetMonitorGroupsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Cms Monitor Groups of the current Alibaba Cloud user. @@ -3298,7 +3865,7 @@ public static CompletableFuture getMonitorGroupsPlain(Ge * <!--End PulumiCodeChooser --> * */ - public static Output getMonitorGroups(GetMonitorGroupsArgs args, InvokeOptions options) { + public static Output getMonitorGroups(GetMonitorGroupsArgs args, InvokeOutputOptions options) { return Deployment.getInstance().invoke("alicloud:cms/getMonitorGroups:getMonitorGroups", TypeShape.of(GetMonitorGroupsResult.class), args, Utilities.withVersion(options)); } /** @@ -3584,6 +4151,53 @@ public static CompletableFuture getNamespacesPlain(GetNames public static Output getNamespaces(GetNamespacesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cms/getNamespaces:getNamespaces", TypeShape.of(GetNamespacesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cms Namespaces of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.171.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cms.CmsFunctions;
+     * import com.pulumi.alicloud.cms.inputs.GetNamespacesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CmsFunctions.getNamespaces(GetNamespacesArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("cmsNamespaceId1", ids.applyValue(getNamespacesResult -> getNamespacesResult.namespaces()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNamespaces(GetNamespacesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cms/getNamespaces:getNamespaces", TypeShape.of(GetNamespacesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cms Namespaces of the current Alibaba Cloud user. * @@ -3871,6 +4485,54 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cms/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open CMS service automatically. If the service has been opened, it will return opened. + * + * For information about CMS and how to use it, see [What is CMS](https://help.aliyun.com/product/28572.html). + * + * > **NOTE:** Available in v1.111.0+ + * + * > **DEPRECATED:** This data source has been deprecated from version `1.219.0`. The Cloud Monitor Service is no longer needed to open in the product dimension and the OpenAPI has been taken [offline](https://api.alibabacloud.com/api/Cms/2019-01-01/OpenCmsService). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cms.CmsFunctions;
+     * import com.pulumi.alicloud.cms.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = CmsFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cms/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open CMS service automatically. If the service has been opened, it will return opened. * @@ -4349,6 +5011,92 @@ public static CompletableFuture getSiteMonitorsPlain(GetS public static Output getSiteMonitors(GetSiteMonitorsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cms/getSiteMonitors:getSiteMonitors", TypeShape.of(GetSiteMonitorsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Cloud Monitor Service Site Monitor available to the user.[What is Site Monitor](https://www.alibabacloud.com/help/en/) + * + * > **NOTE:** Available since v1.224.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.random.integer;
+     * import com.pulumi.random.IntegerArgs;
+     * import com.pulumi.alicloud.cms.SiteMonitor;
+     * import com.pulumi.alicloud.cms.SiteMonitorArgs;
+     * import com.pulumi.alicloud.cms.inputs.SiteMonitorIspCityArgs;
+     * import com.pulumi.alicloud.cms.CmsFunctions;
+     * import com.pulumi.alicloud.cms.inputs.GetSiteMonitorsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("tf_example");
+     *         var defaultInteger = new Integer("defaultInteger", IntegerArgs.builder()
+     *             .min(10000)
+     *             .max(99999)
+     *             .build());
+     * 
+     *         var defaultSiteMonitor = new SiteMonitor("defaultSiteMonitor", SiteMonitorArgs.builder()
+     *             .address("http://www.alibabacloud.com")
+     *             .taskName(String.format("terraform-example-%s", defaultInteger.result()))
+     *             .taskType("HTTP")
+     *             .interval(5)
+     *             .ispCities(SiteMonitorIspCityArgs.builder()
+     *                 .city("546")
+     *                 .isp("465")
+     *                 .build())
+     *             .optionsJson("""
+     * {
+     *     "http_method": "get",
+     *     "waitTime_after_completion": null,
+     *     "ipv6_task": false,
+     *     "diagnosis_ping": false,
+     *     "diagnosis_mtr": false,
+     *     "assertions": [
+     *         {
+     *             "operator": "lessThan",
+     *             "type": "response_time",
+     *             "target": 1000
+     *         }
+     *     ],
+     *     "time_out": 30000
+     * }
+     *             """)
+     *             .build());
+     * 
+     *         final var default = CmsFunctions.getSiteMonitors(GetSiteMonitorsArgs.builder()
+     *             .ids(defaultSiteMonitor.id())
+     *             .taskType("HTTP")
+     *             .build());
+     * 
+     *         ctx.export("alicloudCmsSiteMonitorExampleId", default_.applyValue(default_ -> default_.monitors()[0].taskId()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSiteMonitors(GetSiteMonitorsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cms/getSiteMonitors:getSiteMonitors", TypeShape.of(GetSiteMonitorsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Cloud Monitor Service Site Monitor available to the user.[What is Site Monitor](https://www.alibabacloud.com/help/en/) * @@ -4695,6 +5443,58 @@ public static CompletableFuture getSlsGroupsPlain(GetSlsGrou public static Output getSlsGroups(GetSlsGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cms/getSlsGroups:getSlsGroups", TypeShape.of(GetSlsGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cms Sls Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.171.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cms.CmsFunctions;
+     * import com.pulumi.alicloud.cms.inputs.GetSlsGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CmsFunctions.getSlsGroups(GetSlsGroupsArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("cmsSlsGroupId1", ids.applyValue(getSlsGroupsResult -> getSlsGroupsResult.groups()[0].id()));
+     *         final var nameRegex = CmsFunctions.getSlsGroups(GetSlsGroupsArgs.builder()
+     *             .nameRegex("^my-SlsGroup")
+     *             .build());
+     * 
+     *         ctx.export("cmsSlsGroupId2", nameRegex.applyValue(getSlsGroupsResult -> getSlsGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSlsGroups(GetSlsGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cms/getSlsGroups:getSlsGroups", TypeShape.of(GetSlsGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cms Sls Groups of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/compute/ComputeFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/compute/ComputeFunctions.java index ebfbb145e1..69b400b831 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/compute/ComputeFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/compute/ComputeFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class ComputeFunctions { @@ -274,6 +275,58 @@ public static CompletableFuture getNestServiceIns public static Output getNestServiceInstances(GetNestServiceInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:compute/getNestServiceInstances:getNestServiceInstances", TypeShape.of(GetNestServiceInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Compute Nest Service Instances of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.205.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.compute.ComputeFunctions;
+     * import com.pulumi.alicloud.compute.inputs.GetNestServiceInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = ComputeFunctions.getNestServiceInstances(GetNestServiceInstancesArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("armsPrometheisId1", ids.applyValue(getNestServiceInstancesResult -> getNestServiceInstancesResult.serviceInstances()[0].id()));
+     *         final var nameRegex = ComputeFunctions.getNestServiceInstances(GetNestServiceInstancesArgs.builder()
+     *             .nameRegex("tf-example")
+     *             .build());
+     * 
+     *         ctx.export("armsPrometheisId2", nameRegex.applyValue(getNestServiceInstancesResult -> getNestServiceInstancesResult.serviceInstances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNestServiceInstances(GetNestServiceInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:compute/getNestServiceInstances:getNestServiceInstances", TypeShape.of(GetNestServiceInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Compute Nest Service Instances of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/cr/CrFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/cr/CrFunctions.java index 17d6b022a7..bc414619b5 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/cr/CrFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/cr/CrFunctions.java @@ -35,6 +35,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class CrFunctions { @@ -212,6 +213,64 @@ public static CompletableFuture getChainsPlain(GetChainsPlainAr public static Output getChains(GetChainsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cr/getChains:getChains", TypeShape.of(GetChainsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cr Chains of the current Alibaba Cloud user. + * + * For information about CR Chains and how to use it, see [What is Chain](https://www.alibabacloud.com/help/en/doc-detail/357821.html). + * + * > **NOTE:** Available in v1.161.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cr.CrFunctions;
+     * import com.pulumi.alicloud.cr.inputs.GetChainsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CrFunctions.getChains(GetChainsArgs.builder()
+     *             .instanceId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("crChainId1", ids.applyValue(getChainsResult -> getChainsResult.chains()[0].id()));
+     *         final var nameRegex = CrFunctions.getChains(GetChainsArgs.builder()
+     *             .instanceId("example_value")
+     *             .nameRegex("^my-Chain")
+     *             .build());
+     * 
+     *         ctx.export("crChainId2", nameRegex.applyValue(getChainsResult -> getChainsResult.chains()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getChains(GetChainsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cr/getChains:getChains", TypeShape.of(GetChainsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cr Chains of the current Alibaba Cloud user. * @@ -297,6 +356,15 @@ public static CompletableFuture getChartNamespacesPlai public static Output getChartNamespaces(GetChartNamespacesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cr/getChartNamespaces:getChartNamespaces", TypeShape.of(GetChartNamespacesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cr Chart Namespaces of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.149.0+. + * + */ + public static Output getChartNamespaces(GetChartNamespacesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cr/getChartNamespaces:getChartNamespaces", TypeShape.of(GetChartNamespacesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cr Chart Namespaces of the current Alibaba Cloud user. * @@ -456,6 +524,56 @@ public static CompletableFuture getChartRepositories public static Output getChartRepositories(GetChartRepositoriesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cr/getChartRepositories:getChartRepositories", TypeShape.of(GetChartRepositoriesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cr Chart Repositories of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.149.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cr.CrFunctions;
+     * import com.pulumi.alicloud.cr.inputs.GetChartRepositoriesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CrFunctions.getChartRepositories(GetChartRepositoriesArgs.builder()
+     *             .instanceId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("crChartRepositoryId1", default_.ids()[0]);
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getChartRepositories(GetChartRepositoriesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cr/getChartRepositories:getChartRepositories", TypeShape.of(GetChartRepositoriesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cr Chart Repositories of the current Alibaba Cloud user. * @@ -659,6 +777,57 @@ public static CompletableFuture getEndpointAclPoli public static Output getEndpointAclPolicies(GetEndpointAclPoliciesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cr/getEndpointAclPolicies:getEndpointAclPolicies", TypeShape.of(GetEndpointAclPoliciesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Cr Endpoint Acl Policies of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.139.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cr.CrFunctions;
+     * import com.pulumi.alicloud.cr.inputs.GetEndpointAclPoliciesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CrFunctions.getEndpointAclPolicies(GetEndpointAclPoliciesArgs.builder()
+     *             .instanceId("example_value")
+     *             .endpointType("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("crEndpointAclPolicyId1", ids.applyValue(getEndpointAclPoliciesResult -> getEndpointAclPoliciesResult.policies()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEndpointAclPolicies(GetEndpointAclPoliciesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cr/getEndpointAclPolicies:getEndpointAclPolicies", TypeShape.of(GetEndpointAclPoliciesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Cr Endpoint Acl Policies of the current Alibaba Cloud user. * @@ -863,6 +1032,57 @@ public static CompletableFuture getEndpointAclServi public static Output getEndpointAclService(GetEndpointAclServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cr/getEndpointAclService:getEndpointAclService", TypeShape.of(GetEndpointAclServiceResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the CR Endpoint Acl Service of the current Alibaba Cloud user. + * + * For information about Event Bridge and how to use it, see [What is CR Endpoint Acl](https://www.alibabacloud.com/help/en/doc-detail/142246.htm). + * + * > **NOTE:** Available in v1.139.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cr.CrFunctions;
+     * import com.pulumi.alicloud.cr.inputs.GetEndpointAclServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = CrFunctions.getEndpointAclService(GetEndpointAclServiceArgs.builder()
+     *             .endpointType("internet")
+     *             .enable(true)
+     *             .instanceId("example_id")
+     *             .moduleName("Registry")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEndpointAclService(GetEndpointAclServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cr/getEndpointAclService:getEndpointAclService", TypeShape.of(GetEndpointAclServiceResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the CR Endpoint Acl Service of the current Alibaba Cloud user. * @@ -1149,6 +1369,53 @@ public static CompletableFuture getNamespacesPlain(GetNames public static Output getNamespaces(GetNamespacesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cr/getNamespaces:getNamespaces", TypeShape.of(GetNamespacesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list Container Registry namespaces on Alibaba Cloud. + * + * > **NOTE:** Available in v1.35.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cr.CrFunctions;
+     * import com.pulumi.alicloud.cr.inputs.GetNamespacesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var myNamespaces = CrFunctions.getNamespaces(GetNamespacesArgs.builder()
+     *             .nameRegex("my-namespace")
+     *             .outputFile("my-namespace-json")
+     *             .build());
+     * 
+     *         ctx.export("output", myNamespaces.applyValue(getNamespacesResult -> getNamespacesResult.namespaces()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNamespaces(GetNamespacesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cr/getNamespaces:getNamespaces", TypeShape.of(GetNamespacesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list Container Registry namespaces on Alibaba Cloud. * @@ -1431,6 +1698,53 @@ public static CompletableFuture getReposPlain(GetReposPlainArgs public static Output getRepos(GetReposArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cr/getRepos:getRepos", TypeShape.of(GetReposResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list Container Registry repositories on Alibaba Cloud. + * + * > **NOTE:** Available in v1.35.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cr.CrFunctions;
+     * import com.pulumi.alicloud.cr.inputs.GetReposArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var myRepos = CrFunctions.getRepos(GetReposArgs.builder()
+     *             .nameRegex("my-repos")
+     *             .outputFile("my-repo-json")
+     *             .build());
+     * 
+     *         ctx.export("output", myRepos.applyValue(getReposResult -> getReposResult.repos()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRepos(GetReposArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cr/getRepos:getRepos", TypeShape.of(GetReposResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list Container Registry repositories on Alibaba Cloud. * @@ -1619,6 +1933,53 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cr/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open Container Registry (CR) service automatically. If the service has been opened, it will return opened. + * + * For information about Container Registry (CR) and how to use it, see [What is Container Registry (CR)](https://www.alibabacloud.com/help/en/doc-detail/142759.htm). + * + * > **NOTE:** Available in v1.116.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cr.CrFunctions;
+     * import com.pulumi.alicloud.cr.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = CrFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .password("1111aaaa")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cr/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open Container Registry (CR) service automatically. If the service has been opened, it will return opened. * @@ -1813,6 +2174,55 @@ public static CompletableFuture getVpcEndpointLi public static Output getVpcEndpointLinkedVpcs(GetVpcEndpointLinkedVpcsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cr/getVpcEndpointLinkedVpcs:getVpcEndpointLinkedVpcs", TypeShape.of(GetVpcEndpointLinkedVpcsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the CR Vpc Endpoint Linked Vpcs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.199.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cr.CrFunctions;
+     * import com.pulumi.alicloud.cr.inputs.GetVpcEndpointLinkedVpcsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = CrFunctions.getVpcEndpointLinkedVpcs(GetVpcEndpointLinkedVpcsArgs.builder()
+     *             .ids("example_id")
+     *             .instanceId("your_cr_instance_id")
+     *             .moduleName("Registry")
+     *             .build());
+     * 
+     *         ctx.export("alicloudCrVpcEndpointLinkedVpcsId1", ids.applyValue(getVpcEndpointLinkedVpcsResult -> getVpcEndpointLinkedVpcsResult.vpcEndpointLinkedVpcs()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVpcEndpointLinkedVpcs(GetVpcEndpointLinkedVpcsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cr/getVpcEndpointLinkedVpcs:getVpcEndpointLinkedVpcs", TypeShape.of(GetVpcEndpointLinkedVpcsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the CR Vpc Endpoint Linked Vpcs of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/cs/CsFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/cs/CsFunctions.java index 5b2732a371..6c25815d15 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/cs/CsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/cs/CsFunctions.java @@ -50,6 +50,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class CsFunctions { @@ -194,6 +195,53 @@ public static CompletableFuture getAckServicePlain(GetAckSe public static Output getAckService(GetAckServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cs/getAckService:getAckService", TypeShape.of(GetAckServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open Container Service (CS) service automatically. If the service has been opened, it will return opened. + * + * For information about Container Service (CS) and how to use it, see [What is Container Service (CS)](https://www.alibabacloud.com/help/en/product/85222.htm). + * + * > **NOTE:** Available in v1.113.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cs.CsFunctions;
+     * import com.pulumi.alicloud.cs.inputs.GetAckServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = CsFunctions.getAckService(GetAckServiceArgs.builder()
+     *             .enable("On")
+     *             .type("propayasgo")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAckService(GetAckServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cs/getAckService:getAckService", TypeShape.of(GetAckServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open Container Service (CS) service automatically. If the service has been opened, it will return opened. * @@ -274,6 +322,17 @@ public static CompletableFuture getClusterCredential public static Output getClusterCredential(GetClusterCredentialArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cs/getClusterCredential:getClusterCredential", TypeShape.of(GetClusterCredentialResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Container Service cluster credential on Alibaba Cloud. + * + * > **NOTE:** Available since v1.187.0 + * + * > **NOTE:** This datasource can be used on all kinds of ACK clusters, including managed clusters, imported kubernetes clusters, serverless clusters and edge clusters. Please make sure that the target cluster is not in the failed state before using this datasource, since the api server of clusters in the failed state cannot be accessed. + * + */ + public static Output getClusterCredential(GetClusterCredentialArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cs/getClusterCredential:getClusterCredential", TypeShape.of(GetClusterCredentialResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Container Service cluster credential on Alibaba Cloud. * @@ -520,6 +579,53 @@ public static CompletableFuture getEdgeKubernet public static Output getEdgeKubernetesClusters(GetEdgeKubernetesClustersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cs/getEdgeKubernetesClusters:getEdgeKubernetesClusters", TypeShape.of(GetEdgeKubernetesClustersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list Container Service Edge Kubernetes Clusters on Alibaba Cloud. + * + * > **NOTE:** Available in v1.103.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cs.CsFunctions;
+     * import com.pulumi.alicloud.cs.inputs.GetEdgeKubernetesClustersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var k8sClusters = CsFunctions.getEdgeKubernetesClusters(GetEdgeKubernetesClustersArgs.builder()
+     *             .nameRegex("my-first-k8s")
+     *             .outputFile("my-first-k8s-json")
+     *             .build());
+     * 
+     *         ctx.export("output", k8sClusters.applyValue(getEdgeKubernetesClustersResult -> getEdgeKubernetesClustersResult.clusters()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEdgeKubernetesClusters(GetEdgeKubernetesClustersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cs/getEdgeKubernetesClusters:getEdgeKubernetesClusters", TypeShape.of(GetEdgeKubernetesClustersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list Container Service Edge Kubernetes Clusters on Alibaba Cloud. * @@ -594,6 +700,15 @@ public static CompletableFuture getKubernetesA public static Output getKubernetesAddonMetadata(GetKubernetesAddonMetadataArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cs/getKubernetesAddonMetadata:getKubernetesAddonMetadata", TypeShape.of(GetKubernetesAddonMetadataResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides metadata of kubernetes cluster addons. + * + * > **NOTE:** Available in 1.166.0+. + * + */ + public static Output getKubernetesAddonMetadata(GetKubernetesAddonMetadataArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cs/getKubernetesAddonMetadata:getKubernetesAddonMetadata", TypeShape.of(GetKubernetesAddonMetadataResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides metadata of kubernetes cluster addons. * @@ -633,6 +748,16 @@ public static CompletableFuture getKubernetesAddonsPl public static Output getKubernetesAddons(GetKubernetesAddonsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cs/getKubernetesAddons:getKubernetesAddons", TypeShape.of(GetKubernetesAddonsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of available addons that the cluster can install. + * + * > **NOTE:** Available since v1.150.0. + * **NOTE:** From version v1.166.0, support for returning custom configuration of kubernetes cluster addon. + * + */ + public static Output getKubernetesAddons(GetKubernetesAddonsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cs/getKubernetesAddons:getKubernetesAddons", TypeShape.of(GetKubernetesAddonsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of available addons that the cluster can install. * @@ -893,6 +1018,56 @@ public static CompletableFuture getKubernetesCluste public static Output getKubernetesClusters(GetKubernetesClustersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cs/getKubernetesClusters:getKubernetesClusters", TypeShape.of(GetKubernetesClustersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list Container Service Kubernetes Clusters on Alibaba Cloud. + * + * > **NOTE:** Available since v1.34.0+. + * + * > **NOTE:** From version 1.177.0+, We supported batch export of clusters' kube config information by `kube_config_file_prefix`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cs.CsFunctions;
+     * import com.pulumi.alicloud.cs.inputs.GetKubernetesClustersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var k8sClusters = CsFunctions.getKubernetesClusters(GetKubernetesClustersArgs.builder()
+     *             .nameRegex("my-first-k8s")
+     *             .outputFile("my-first-k8s-json")
+     *             .kubeConfigFilePrefix("~/.kube/k8s")
+     *             .build());
+     * 
+     *         ctx.export("output", k8sClusters.applyValue(getKubernetesClustersResult -> getKubernetesClustersResult.clusters()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getKubernetesClusters(GetKubernetesClustersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cs/getKubernetesClusters:getKubernetesClusters", TypeShape.of(GetKubernetesClustersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list Container Service Kubernetes Clusters on Alibaba Cloud. * @@ -1096,6 +1271,57 @@ public static CompletableFuture getKubernetesPerm public static Output getKubernetesPermission(GetKubernetesPermissionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cs/getKubernetesPermission:getKubernetesPermission", TypeShape.of(GetKubernetesPermissionResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of Ram user permissions. + * + * > **NOTE:** Available since v1.122.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ram.RamFunctions;
+     * import com.pulumi.alicloud.ram.inputs.GetUsersArgs;
+     * import com.pulumi.alicloud.cs.CsFunctions;
+     * import com.pulumi.alicloud.cs.inputs.GetKubernetesPermissionArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var default = RamFunctions.getUsers();
+     * 
+     *         // permissions
+     *         final var defaultGetKubernetesPermission = CsFunctions.getKubernetesPermission(GetKubernetesPermissionArgs.builder()
+     *             .uid(default_.users()[0].id())
+     *             .build());
+     * 
+     *         ctx.export("permissions", defaultGetKubernetesPermission.applyValue(getKubernetesPermissionResult -> getKubernetesPermissionResult.permissions()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getKubernetesPermission(GetKubernetesPermissionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cs/getKubernetesPermission:getKubernetesPermission", TypeShape.of(GetKubernetesPermissionResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of Ram user permissions. * @@ -1780,15 +2006,13 @@ public static Output getKubernetesVersion(GetKuberne * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getKubernetesVersionPlain(GetKubernetesVersionPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:cs/getKubernetesVersion:getKubernetesVersion", TypeShape.of(GetKubernetesVersionResult.class), args, Utilities.withVersion(options)); + public static Output getKubernetesVersion(GetKubernetesVersionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cs/getKubernetesVersion:getKubernetesVersion", TypeShape.of(GetKubernetesVersionResult.class), args, Utilities.withVersion(options)); } /** - * This data source provides a list Container Service Managed Kubernetes Clusters on Alibaba Cloud. - * - * > **NOTE:** Available in v1.35.0+ + * This data source provides the details of the Kubernetes version supported by ACK. * - * > **NOTE:** From version 1.177.0+, We supported batch export of clusters' kube config information by `kube_config_file_prefix`. + * > **NOTE:** Available in 1.170.0+. * * ## Example Usage * @@ -1801,7 +2025,7 @@ public static CompletableFuture getKubernetesVersion * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.alicloud.cs.CsFunctions; - * import com.pulumi.alicloud.cs.inputs.GetManagedKubernetesClustersArgs; + * import com.pulumi.alicloud.cs.inputs.GetKubernetesVersionArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -1815,33 +2039,20 @@ public static CompletableFuture getKubernetesVersion * } * * public static void stack(Context ctx) { - * // Declare the data source - * final var k8sClusters = CsFunctions.getManagedKubernetesClusters(GetManagedKubernetesClustersArgs.builder() - * .nameRegex("my-first-k8s") - * .outputFile("my-first-k8s-json") - * .kubeConfigFilePrefix("~/.kube/managed") + * // Query the managed kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client. + * final var default = CsFunctions.getKubernetesVersion(GetKubernetesVersionArgs.builder() + * .clusterType("ManagedKubernetes") + * .kubernetesVersion("1.22.3-aliyun.1") + * .profile("Default") * .build()); * - * ctx.export("output", k8sClusters.applyValue(getManagedKubernetesClustersResult -> getManagedKubernetesClustersResult.clusters())); + * ctx.export("metadata", default_.metadatas()); * } * } * } *
* <!--End PulumiCodeChooser --> * - */ - public static Output getManagedKubernetesClusters() { - return getManagedKubernetesClusters(GetManagedKubernetesClustersArgs.Empty, InvokeOptions.Empty); - } - /** - * This data source provides a list Container Service Managed Kubernetes Clusters on Alibaba Cloud. - * - * > **NOTE:** Available in v1.35.0+ - * - * > **NOTE:** From version 1.177.0+, We supported batch export of clusters' kube config information by `kube_config_file_prefix`. - * - * ## Example Usage - * * <!--Start PulumiCodeChooser --> *
      * {@code
@@ -1851,7 +2062,181 @@ public static Output getManagedKubernetesClu
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.alicloud.cs.CsFunctions;
-     * import com.pulumi.alicloud.cs.inputs.GetManagedKubernetesClustersArgs;
+     * import com.pulumi.alicloud.cs.inputs.GetKubernetesVersionArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Query the kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client.
+     *         final var default = CsFunctions.getKubernetesVersion(GetKubernetesVersionArgs.builder()
+     *             .clusterType("Kubernetes")
+     *             .kubernetesVersion("1.22.3-aliyun.1")
+     *             .profile("Default")
+     *             .build());
+     * 
+     *         ctx.export("metadata", default_.metadatas());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cs.CsFunctions;
+     * import com.pulumi.alicloud.cs.inputs.GetKubernetesVersionArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Query the serverless kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client.
+     *         final var default = CsFunctions.getKubernetesVersion(GetKubernetesVersionArgs.builder()
+     *             .clusterType("ManagedKubernetes")
+     *             .kubernetesVersion("1.22.3-aliyun.1")
+     *             .profile("Serverless")
+     *             .build());
+     * 
+     *         ctx.export("metadata", default_.metadatas());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cs.CsFunctions;
+     * import com.pulumi.alicloud.cs.inputs.GetKubernetesVersionArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Query the edge kubernetes cluster metadata of version 1.20.11-aliyunedge.1 in the region specified by the client.
+     *         final var default = CsFunctions.getKubernetesVersion(GetKubernetesVersionArgs.builder()
+     *             .clusterType("ManagedKubernetes")
+     *             .kubernetesVersion("1.20.11-aliyunedge.1")
+     *             .profile("Edge")
+     *             .build());
+     * 
+     *         ctx.export("metadata", default_.metadatas());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getKubernetesVersionPlain(GetKubernetesVersionPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:cs/getKubernetesVersion:getKubernetesVersion", TypeShape.of(GetKubernetesVersionResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides a list Container Service Managed Kubernetes Clusters on Alibaba Cloud. + * + * > **NOTE:** Available in v1.35.0+ + * + * > **NOTE:** From version 1.177.0+, We supported batch export of clusters' kube config information by `kube_config_file_prefix`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cs.CsFunctions;
+     * import com.pulumi.alicloud.cs.inputs.GetManagedKubernetesClustersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var k8sClusters = CsFunctions.getManagedKubernetesClusters(GetManagedKubernetesClustersArgs.builder()
+     *             .nameRegex("my-first-k8s")
+     *             .outputFile("my-first-k8s-json")
+     *             .kubeConfigFilePrefix("~/.kube/managed")
+     *             .build());
+     * 
+     *         ctx.export("output", k8sClusters.applyValue(getManagedKubernetesClustersResult -> getManagedKubernetesClustersResult.clusters()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getManagedKubernetesClusters() { + return getManagedKubernetesClusters(GetManagedKubernetesClustersArgs.Empty, InvokeOptions.Empty); + } + /** + * This data source provides a list Container Service Managed Kubernetes Clusters on Alibaba Cloud. + * + * > **NOTE:** Available in v1.35.0+ + * + * > **NOTE:** From version 1.177.0+, We supported batch export of clusters' kube config information by `kube_config_file_prefix`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cs.CsFunctions;
+     * import com.pulumi.alicloud.cs.inputs.GetManagedKubernetesClustersArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2033,6 +2418,56 @@ public static CompletableFuture getManagedKu
     public static Output getManagedKubernetesClusters(GetManagedKubernetesClustersArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("alicloud:cs/getManagedKubernetesClusters:getManagedKubernetesClusters", TypeShape.of(GetManagedKubernetesClustersResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * This data source provides a list Container Service Managed Kubernetes Clusters on Alibaba Cloud.
+     * 
+     * > **NOTE:** Available in v1.35.0+
+     * 
+     * > **NOTE:** From version 1.177.0+, We supported batch export of clusters' kube config information by `kube_config_file_prefix`.
+     * 
+     * ## Example Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cs.CsFunctions;
+     * import com.pulumi.alicloud.cs.inputs.GetManagedKubernetesClustersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var k8sClusters = CsFunctions.getManagedKubernetesClusters(GetManagedKubernetesClustersArgs.builder()
+     *             .nameRegex("my-first-k8s")
+     *             .outputFile("my-first-k8s-json")
+     *             .kubeConfigFilePrefix("~/.kube/managed")
+     *             .build());
+     * 
+     *         ctx.export("output", k8sClusters.applyValue(getManagedKubernetesClustersResult -> getManagedKubernetesClustersResult.clusters()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getManagedKubernetesClusters(GetManagedKubernetesClustersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cs/getManagedKubernetesClusters:getManagedKubernetesClusters", TypeShape.of(GetManagedKubernetesClustersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list Container Service Managed Kubernetes Clusters on Alibaba Cloud. * @@ -2318,6 +2753,53 @@ public static CompletableFuture getRegistr public static Output getRegistryEnterpriseInstances(GetRegistryEnterpriseInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cs/getRegistryEnterpriseInstances:getRegistryEnterpriseInstances", TypeShape.of(GetRegistryEnterpriseInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list Container Registry Enterprise Edition instances on Alibaba Cloud. + * + * > **NOTE:** Available in v1.86.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cs.CsFunctions;
+     * import com.pulumi.alicloud.cs.inputs.GetRegistryEnterpriseInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var myInstances = CsFunctions.getRegistryEnterpriseInstances(GetRegistryEnterpriseInstancesArgs.builder()
+     *             .nameRegex("my-instances")
+     *             .outputFile("my-instances-json")
+     *             .build());
+     * 
+     *         ctx.export("output", myInstances.applyValue(getRegistryEnterpriseInstancesResult -> getRegistryEnterpriseInstancesResult.instances()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRegistryEnterpriseInstances(GetRegistryEnterpriseInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cs/getRegistryEnterpriseInstances:getRegistryEnterpriseInstances", TypeShape.of(GetRegistryEnterpriseInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list Container Registry Enterprise Edition instances on Alibaba Cloud. * @@ -2509,6 +2991,54 @@ public static CompletableFuture getRegist public static Output getRegistryEnterpriseNamespaces(GetRegistryEnterpriseNamespacesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cs/getRegistryEnterpriseNamespaces:getRegistryEnterpriseNamespaces", TypeShape.of(GetRegistryEnterpriseNamespacesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list Container Registry Enterprise Edition namespaces on Alibaba Cloud. + * + * > **NOTE:** Available in v1.86.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cs.CsFunctions;
+     * import com.pulumi.alicloud.cs.inputs.GetRegistryEnterpriseNamespacesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var myNamespaces = CsFunctions.getRegistryEnterpriseNamespaces(GetRegistryEnterpriseNamespacesArgs.builder()
+     *             .instanceId("cri-xxx")
+     *             .nameRegex("my-namespace")
+     *             .outputFile("my-namespace-json")
+     *             .build());
+     * 
+     *         ctx.export("output", myNamespaces.applyValue(getRegistryEnterpriseNamespacesResult -> getRegistryEnterpriseNamespacesResult.namespaces()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRegistryEnterpriseNamespaces(GetRegistryEnterpriseNamespacesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cs/getRegistryEnterpriseNamespaces:getRegistryEnterpriseNamespaces", TypeShape.of(GetRegistryEnterpriseNamespacesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list Container Registry Enterprise Edition namespaces on Alibaba Cloud. * @@ -2701,6 +3231,54 @@ public static CompletableFuture getRegistryEnt public static Output getRegistryEnterpriseRepos(GetRegistryEnterpriseReposArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cs/getRegistryEnterpriseRepos:getRegistryEnterpriseRepos", TypeShape.of(GetRegistryEnterpriseReposResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list Container Registry Enterprise Edition repositories on Alibaba Cloud. + * + * > **NOTE:** Available in v1.87.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cs.CsFunctions;
+     * import com.pulumi.alicloud.cs.inputs.GetRegistryEnterpriseReposArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var myRepos = CsFunctions.getRegistryEnterpriseRepos(GetRegistryEnterpriseReposArgs.builder()
+     *             .instanceId("cri-xx")
+     *             .nameRegex("my-repos")
+     *             .outputFile("my-repo-json")
+     *             .build());
+     * 
+     *         ctx.export("output", myRepos.applyValue(getRegistryEnterpriseReposResult -> getRegistryEnterpriseReposResult.repos()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRegistryEnterpriseRepos(GetRegistryEnterpriseReposArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cs/getRegistryEnterpriseRepos:getRegistryEnterpriseRepos", TypeShape.of(GetRegistryEnterpriseReposResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list Container Registry Enterprise Edition repositories on Alibaba Cloud. * @@ -2899,6 +3477,56 @@ public static CompletableFuture getRegistr public static Output getRegistryEnterpriseSyncRules(GetRegistryEnterpriseSyncRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cs/getRegistryEnterpriseSyncRules:getRegistryEnterpriseSyncRules", TypeShape.of(GetRegistryEnterpriseSyncRulesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list Container Registry Enterprise Edition sync rules on Alibaba Cloud. + * + * > **NOTE:** Available in v1.90.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cs.CsFunctions;
+     * import com.pulumi.alicloud.cs.inputs.GetRegistryEnterpriseSyncRulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var mySyncRules = CsFunctions.getRegistryEnterpriseSyncRules(GetRegistryEnterpriseSyncRulesArgs.builder()
+     *             .instanceId("cri-xxx")
+     *             .namespaceName("test-namespace")
+     *             .repoName("test-repo")
+     *             .targetInstanceId("cri-yyy")
+     *             .nameRegex("test-rule")
+     *             .build());
+     * 
+     *         ctx.export("output", mySyncRules.applyValue(getRegistryEnterpriseSyncRulesResult -> getRegistryEnterpriseSyncRulesResult.rules()).stream().map(element -> element.id()).collect(toList()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRegistryEnterpriseSyncRules(GetRegistryEnterpriseSyncRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cs/getRegistryEnterpriseSyncRules:getRegistryEnterpriseSyncRules", TypeShape.of(GetRegistryEnterpriseSyncRulesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list Container Registry Enterprise Edition sync rules on Alibaba Cloud. * @@ -3199,6 +3827,56 @@ public static CompletableFuture getServer public static Output getServerlessKubernetesClusters(GetServerlessKubernetesClustersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cs/getServerlessKubernetesClusters:getServerlessKubernetesClusters", TypeShape.of(GetServerlessKubernetesClustersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list Container Service Serverless Kubernetes Clusters on Alibaba Cloud. + * + * > **NOTE:** Available in 1.58.0+ + * + * > **NOTE:** From version 1.177.0+, We supported batch export of clusters' kube config information by `kube_config_file_prefix`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cs.CsFunctions;
+     * import com.pulumi.alicloud.cs.inputs.GetServerlessKubernetesClustersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var k8sClusters = CsFunctions.getServerlessKubernetesClusters(GetServerlessKubernetesClustersArgs.builder()
+     *             .nameRegex("my-first-k8s")
+     *             .outputFile("my-first-k8s-json")
+     *             .kubeConfigFilePrefix("~/.kube/serverless")
+     *             .build());
+     * 
+     *         ctx.export("output", k8sClusters.applyValue(getServerlessKubernetesClustersResult -> getServerlessKubernetesClustersResult.clusters()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServerlessKubernetesClusters(GetServerlessKubernetesClustersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:cs/getServerlessKubernetesClusters:getServerlessKubernetesClusters", TypeShape.of(GetServerlessKubernetesClustersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list Container Service Serverless Kubernetes Clusters on Alibaba Cloud. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/databasefilesystem/DatabasefilesystemFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/databasefilesystem/DatabasefilesystemFunctions.java index 26965b1280..503cdc69c1 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/databasefilesystem/DatabasefilesystemFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/databasefilesystem/DatabasefilesystemFunctions.java @@ -17,6 +17,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class DatabasefilesystemFunctions { @@ -245,6 +246,51 @@ public static CompletableFuture getAutoSnapShotPo public static Output getAutoSnapShotPolicies(GetAutoSnapShotPoliciesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:databasefilesystem/getAutoSnapShotPolicies:getAutoSnapShotPolicies", TypeShape.of(GetAutoSnapShotPoliciesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Dbfs Auto Snap Shot Policy available to the user.[What is Auto Snap Shot Policy](https://help.aliyun.com/document_detail/469597.html) + * + * > **NOTE:** Available in 1.202.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.databasefilesystem.DatabasefilesystemFunctions;
+     * import com.pulumi.alicloud.databasefilesystem.inputs.GetAutoSnapShotPoliciesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = DatabasefilesystemFunctions.getAutoSnapShotPolicies(GetAutoSnapShotPoliciesArgs.builder()
+     *             .ids(defaultAlicloudDbfsAutoSnapShotPolicy.id())
+     *             .build());
+     * 
+     *         ctx.export("alicloudDbfsAutoSnapShotPolicyExampleId", default_.autoSnapShotPolicies()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAutoSnapShotPolicies(GetAutoSnapShotPoliciesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:databasefilesystem/getAutoSnapShotPolicies:getAutoSnapShotPolicies", TypeShape.of(GetAutoSnapShotPoliciesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Dbfs Auto Snap Shot Policy available to the user.[What is Auto Snap Shot Policy](https://help.aliyun.com/document_detail/469597.html) * @@ -550,6 +596,58 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:databasefilesystem/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the DBFS Instances of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.136.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.databasefilesystem.DatabasefilesystemFunctions;
+     * import com.pulumi.alicloud.databasefilesystem.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DatabasefilesystemFunctions.getInstances(GetInstancesArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("dbfsInstanceId1", ids.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *         final var nameRegex = DatabasefilesystemFunctions.getInstances(GetInstancesArgs.builder()
+     *             .nameRegex("^my-Instance")
+     *             .build());
+     * 
+     *         ctx.export("dbfsInstanceId2", nameRegex.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:databasefilesystem/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the DBFS Instances of the current Alibaba Cloud user. * @@ -887,6 +985,63 @@ public static CompletableFuture getSnapshotsPlain(GetSnapsho public static Output getSnapshots(GetSnapshotsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:databasefilesystem/getSnapshots:getSnapshots", TypeShape.of(GetSnapshotsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Dbfs Snapshots of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.156.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.databasefilesystem.DatabasefilesystemFunctions;
+     * import com.pulumi.alicloud.databasefilesystem.inputs.GetSnapshotsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DatabasefilesystemFunctions.getSnapshots(GetSnapshotsArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("dbfsSnapshotId1", ids.applyValue(getSnapshotsResult -> getSnapshotsResult.snapshots()[0].id()));
+     *         final var nameRegex = DatabasefilesystemFunctions.getSnapshots(GetSnapshotsArgs.builder()
+     *             .nameRegex("^my-Snapshot")
+     *             .build());
+     * 
+     *         ctx.export("dbfsSnapshotId2", nameRegex.applyValue(getSnapshotsResult -> getSnapshotsResult.snapshots()[0].id()));
+     *         final var status = DatabasefilesystemFunctions.getSnapshots(GetSnapshotsArgs.builder()
+     *             .status("accomplished")
+     *             .build());
+     * 
+     *         ctx.export("dbfsSnapshotId3", status.applyValue(getSnapshotsResult -> getSnapshotsResult.snapshots()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSnapshots(GetSnapshotsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:databasefilesystem/getSnapshots:getSnapshots", TypeShape.of(GetSnapshotsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Dbfs Snapshots of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/databasegateway/DatabasegatewayFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/databasegateway/DatabasegatewayFunctions.java index da9800988a..1c71cf9c15 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/databasegateway/DatabasegatewayFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/databasegateway/DatabasegatewayFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class DatabasegatewayFunctions { @@ -274,6 +275,58 @@ public static CompletableFuture getGatewaysPlain(GetGatewaysP public static Output getGateways(GetGatewaysArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:databasegateway/getGateways:getGateways", TypeShape.of(GetGatewaysResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Database Gateway Gateways of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.135.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.databasegateway.DatabasegatewayFunctions;
+     * import com.pulumi.alicloud.databasegateway.inputs.GetGatewaysArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DatabasegatewayFunctions.getGateways(GetGatewaysArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("databaseGatewayGatewayId1", ids.applyValue(getGatewaysResult -> getGatewaysResult.gateways()[0].id()));
+     *         final var nameRegex = DatabasegatewayFunctions.getGateways(GetGatewaysArgs.builder()
+     *             .nameRegex("^my-Gateway")
+     *             .build());
+     * 
+     *         ctx.export("databaseGatewayGatewayId2", nameRegex.applyValue(getGatewaysResult -> getGatewaysResult.gateways()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGateways(GetGatewaysArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:databasegateway/getGateways:getGateways", TypeShape.of(GetGatewaysResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Database Gateway Gateways of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/datahub/DatahubFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/datahub/DatahubFunctions.java index 62cb3adb12..92d4e5b351 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/datahub/DatahubFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/datahub/DatahubFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class DatahubFunctions { @@ -254,6 +255,54 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:datahub/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open DataHub service automatically. If the service has been opened, it will return opened. + * + * For information about DataHub and how to use it, see [What is DataHub](https://help.aliyun.com/product/53345.html). + * + * > **NOTE:** Available in v1.111.0+ + * + * > **NOTE:** The DataHub service is not support in the international site. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.datahub.DatahubFunctions;
+     * import com.pulumi.alicloud.datahub.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = DatahubFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:datahub/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open DataHub service automatically. If the service has been opened, it will return opened. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/dataworks/DataworksFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/dataworks/DataworksFunctions.java index 9cb8a83256..8f26175076 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/dataworks/DataworksFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/dataworks/DataworksFunctions.java @@ -14,6 +14,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class DataworksFunctions { @@ -185,6 +186,62 @@ public static CompletableFuture getFoldersPlain(GetFoldersPlai public static Output getFolders(GetFoldersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dataworks/getFolders:getFolders", TypeShape.of(GetFoldersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Data Works Folders of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.131.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dataworks.Folder;
+     * import com.pulumi.alicloud.dataworks.FolderArgs;
+     * import com.pulumi.alicloud.dataworks.DataworksFunctions;
+     * import com.pulumi.alicloud.dataworks.inputs.GetFoldersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var default_ = new Folder("default", FolderArgs.builder()
+     *             .projectId("xxxx")
+     *             .folderPath("Business Flow/tfTestAcc/folderDi")
+     *             .build());
+     * 
+     *         final var ids = DataworksFunctions.getFolders(GetFoldersArgs.builder()
+     *             .ids(default_.folderId())
+     *             .projectId(default_.projectId())
+     *             .parentFolderPath("Business Flow/tfTestAcc/folderDi")
+     *             .build());
+     * 
+     *         ctx.export("dataWorksFolderId1", ids.applyValue(getFoldersResult -> getFoldersResult).applyValue(ids -> ids.applyValue(getFoldersResult -> getFoldersResult.folders()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getFolders(GetFoldersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dataworks/getFolders:getFolders", TypeShape.of(GetFoldersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Data Works Folders of the current Alibaba Cloud user. * @@ -471,6 +528,52 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dataworks/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open DataWorks service automatically. If the service has been opened, it will return opened. + * + * For information about DataWorks and how to use it, see [What is DataWorks](https://www.alibabacloud.com/help/en/product/72772.htm). + * + * > **NOTE:** Available in v1.118.0+. After the version 1.141.0, the data source is renamed as `alicloud.dataworks.getService`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dataworks.DataworksFunctions;
+     * import com.pulumi.alicloud.dataworks.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = DataworksFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dataworks/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open DataWorks service automatically. If the service has been opened, it will return opened. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/dbs/DbsFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/dbs/DbsFunctions.java index 13c7b43766..41b36ab622 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/dbs/DbsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/dbs/DbsFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class DbsFunctions { @@ -264,6 +265,56 @@ public static CompletableFuture getBackupPlansPlain(GetBac public static Output getBackupPlans(GetBackupPlansArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dbs/getBackupPlans:getBackupPlans", TypeShape.of(GetBackupPlansResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Dbs Backup Plans of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.185.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dbs.DbsFunctions;
+     * import com.pulumi.alicloud.dbs.inputs.GetBackupPlansArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DbsFunctions.getBackupPlans();
+     * 
+     *         ctx.export("dbsBackupPlanId1", ids.applyValue(getBackupPlansResult -> getBackupPlansResult.plans()[0].id()));
+     *         final var nameRegex = DbsFunctions.getBackupPlans(GetBackupPlansArgs.builder()
+     *             .nameRegex("^my-BackupPlan")
+     *             .build());
+     * 
+     *         ctx.export("dbsBackupPlanId2", nameRegex.applyValue(getBackupPlansResult -> getBackupPlansResult.plans()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBackupPlans(GetBackupPlansArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dbs/getBackupPlans:getBackupPlans", TypeShape.of(GetBackupPlansResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Dbs Backup Plans of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/dcdn/DcdnFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/dcdn/DcdnFunctions.java index 5d91c34da0..f3a9042511 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/dcdn/DcdnFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/dcdn/DcdnFunctions.java @@ -29,6 +29,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class DcdnFunctions { @@ -257,6 +258,51 @@ public static CompletableFuture getDomainsPlain(GetDomainsPlai public static Output getDomains(GetDomainsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dcdn/getDomains:getDomains", TypeShape.of(GetDomainsResult.class), args, Utilities.withVersion(options)); } + /** + * Provides a collection of DCDN Domains to the specified filters. + * + * > **NOTE:** Available in 1.94.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dcdn.DcdnFunctions;
+     * import com.pulumi.alicloud.dcdn.inputs.GetDomainsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = DcdnFunctions.getDomains(GetDomainsArgs.builder()
+     *             .ids("example.com")
+     *             .build());
+     * 
+     *         ctx.export("domainId", example.applyValue(getDomainsResult -> getDomainsResult.domains()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDomains(GetDomainsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dcdn/getDomains:getDomains", TypeShape.of(GetDomainsResult.class), args, Utilities.withVersion(options)); + } /** * Provides a collection of DCDN Domains to the specified filters. * @@ -577,6 +623,61 @@ public static CompletableFuture getIpaDomainsPlain(GetIpaDo public static Output getIpaDomains(GetIpaDomainsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dcdn/getIpaDomains:getIpaDomains", TypeShape.of(GetIpaDomainsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Dcdn Ipa Domains of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.158.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dcdn.DcdnFunctions;
+     * import com.pulumi.alicloud.dcdn.inputs.GetIpaDomainsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DcdnFunctions.getIpaDomains(GetIpaDomainsArgs.builder()
+     *             .domainName("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("dcdnIpaDomainId1", ids.applyValue(getIpaDomainsResult -> getIpaDomainsResult.domains()[0].id()));
+     *         final var status = DcdnFunctions.getIpaDomains(GetIpaDomainsArgs.builder()
+     *             .status("online")
+     *             .build());
+     * 
+     *         ctx.export("dcdnIpaDomainId2", status.applyValue(getIpaDomainsResult -> getIpaDomainsResult.domains()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getIpaDomains(GetIpaDomainsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dcdn/getIpaDomains:getIpaDomains", TypeShape.of(GetIpaDomainsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Dcdn Ipa Domains of the current Alibaba Cloud user. * @@ -852,6 +953,50 @@ public static CompletableFuture getKvAccountPlain(GetKvAccou public static Output getKvAccount(GetKvAccountArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dcdn/getKvAccount:getKvAccount", TypeShape.of(GetKvAccountResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides DCDN kv account available to the user.[What is DCDN Kv Account](https://www.alibabacloud.com/help/en/dcdn/developer-reference/api-dcdn-2018-01-15-describedcdnkvaccount) + * + * > **NOTE:** Available since v1.198.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dcdn.DcdnFunctions;
+     * import com.pulumi.alicloud.dcdn.inputs.GetKvAccountArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var status = DcdnFunctions.getKvAccount(GetKvAccountArgs.builder()
+     *             .status("online")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getKvAccount(GetKvAccountArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dcdn/getKvAccount:getKvAccount", TypeShape.of(GetKvAccountResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides DCDN kv account available to the user.[What is DCDN Kv Account](https://www.alibabacloud.com/help/en/dcdn/developer-reference/api-dcdn-2018-01-15-describedcdnkvaccount) * @@ -1126,6 +1271,52 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dcdn/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open DCDN service automatically. If the service has been opened, it will return opened. + * + * For information about DCDN and how to use it, see [What is DCDN](https://help.aliyun.com/document_detail/197288.html). + * + * > **NOTE:** Available in v1.111.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dcdn.DcdnFunctions;
+     * import com.pulumi.alicloud.dcdn.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = DcdnFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dcdn/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open DCDN service automatically. If the service has been opened, it will return opened. * @@ -1397,6 +1588,51 @@ public static CompletableFuture getWafDomainsPlain(GetWafDo public static Output getWafDomains(GetWafDomainsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dcdn/getWafDomains:getWafDomains", TypeShape.of(GetWafDomainsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Dcdn Waf Domains of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.185.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dcdn.DcdnFunctions;
+     * import com.pulumi.alicloud.dcdn.inputs.GetWafDomainsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DcdnFunctions.getWafDomains();
+     * 
+     *         ctx.export("dcdnWafDomainId1", ids.applyValue(getWafDomainsResult -> getWafDomainsResult.domains()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getWafDomains(GetWafDomainsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dcdn/getWafDomains:getWafDomains", TypeShape.of(GetWafDomainsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Dcdn Waf Domains of the current Alibaba Cloud user. * @@ -1667,6 +1903,51 @@ public static CompletableFuture getWafPoliciesPlain(GetWaf public static Output getWafPolicies(GetWafPoliciesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dcdn/getWafPolicies:getWafPolicies", TypeShape.of(GetWafPoliciesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Dcdn Waf Policies of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.184.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dcdn.DcdnFunctions;
+     * import com.pulumi.alicloud.dcdn.inputs.GetWafPoliciesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DcdnFunctions.getWafPolicies();
+     * 
+     *         ctx.export("dcdnWafPolicyId1", ids.applyValue(getWafPoliciesResult -> getWafPoliciesResult.policies()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getWafPolicies(GetWafPoliciesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dcdn/getWafPolicies:getWafPolicies", TypeShape.of(GetWafPoliciesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Dcdn Waf Policies of the current Alibaba Cloud user. * @@ -1937,6 +2218,51 @@ public static CompletableFuture getWafRulesPlain(GetWafRulesP public static Output getWafRules(GetWafRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dcdn/getWafRules:getWafRules", TypeShape.of(GetWafRulesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Dcdn Waf Rule available to the user.[What is Waf Rule](https://www.alibabacloud.com/help/en/dcdn/developer-reference/api-dcdn-2018-01-15-batchcreatedcdnwafrules) + * + * > **NOTE:** Available since v1.201.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dcdn.DcdnFunctions;
+     * import com.pulumi.alicloud.dcdn.inputs.GetWafRulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = DcdnFunctions.getWafRules(GetWafRulesArgs.builder()
+     *             .ids(defaultAlicloudDcdnWafRule.id())
+     *             .build());
+     * 
+     *         ctx.export("alicloudDcdnWafRuleExampleId", default_.wafRules()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getWafRules(GetWafRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dcdn/getWafRules:getWafRules", TypeShape.of(GetWafRulesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Dcdn Waf Rule available to the user.[What is Waf Rule](https://www.alibabacloud.com/help/en/dcdn/developer-reference/api-dcdn-2018-01-15-batchcreatedcdnwafrules) * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/ddos/DdosFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/ddos/DdosFunctions.java index 2ecdc77d09..ae00fef347 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/ddos/DdosFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/ddos/DdosFunctions.java @@ -23,6 +23,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class DdosFunctions { @@ -321,6 +322,65 @@ public static CompletableFuture getDdosBgpInstancesPl public static Output getDdosBgpInstances(GetDdosBgpInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ddos/getDdosBgpInstances:getDdosBgpInstances", TypeShape.of(GetDdosBgpInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of Anti-DDoS Advanced instances in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in v1.183.0+ . + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ddos.DdosBgpInstance;
+     * import com.pulumi.alicloud.ddos.DdosBgpInstanceArgs;
+     * import com.pulumi.alicloud.ddos.DdosFunctions;
+     * import com.pulumi.alicloud.ddos.inputs.GetDdosBgpInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("tf-example");
+     *         var instanceDdosBgpInstance = new DdosBgpInstance("instanceDdosBgpInstance", DdosBgpInstanceArgs.builder()
+     *             .name(name)
+     *             .baseBandwidth(20)
+     *             .bandwidth(-1)
+     *             .ipCount(100)
+     *             .ipType("IPv4")
+     *             .normalBandwidth(100)
+     *             .type("Enterprise")
+     *             .build());
+     * 
+     *         final var instance = DdosFunctions.getDdosBgpInstances(GetDdosBgpInstancesArgs.builder()
+     *             .nameRegex("ddosbgp")
+     *             .build());
+     * 
+     *         ctx.export("instance", instance.applyValue(getDdosBgpInstancesResult -> getDdosBgpInstancesResult).stream().map(element -> element.id()).collect(toList()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDdosBgpInstances(GetDdosBgpInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ddos/getDdosBgpInstances:getDdosBgpInstances", TypeShape.of(GetDdosBgpInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of Anti-DDoS Advanced instances in an Alibaba Cloud account according to the specified filters. * @@ -530,6 +590,56 @@ public static CompletableFuture getDdosBgpIpsPlain(GetDdosB public static Output getDdosBgpIps(GetDdosBgpIpsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ddos/getDdosBgpIps:getDdosBgpIps", TypeShape.of(GetDdosBgpIpsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ddos Bgp Ips of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.180.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ddos.DdosFunctions;
+     * import com.pulumi.alicloud.ddos.inputs.GetDdosBgpIpsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DdosFunctions.getDdosBgpIps(GetDdosBgpIpsArgs.builder()
+     *             .instanceId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("ddosbgpIpId1", ids.applyValue(getDdosBgpIpsResult -> getDdosBgpIpsResult.ips()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDdosBgpIps(GetDdosBgpIpsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ddos/getDdosBgpIps:getDdosBgpIps", TypeShape.of(GetDdosBgpIpsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ddos Bgp Ips of the current Alibaba Cloud user. * @@ -815,6 +925,53 @@ public static CompletableFuture getDdosCooDomai public static Output getDdosCooDomainResources(GetDdosCooDomainResourcesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ddos/getDdosCooDomainResources:getDdosCooDomainResources", TypeShape.of(GetDdosCooDomainResourcesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ddoscoo Domain Resources of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.123.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ddos.DdosFunctions;
+     * import com.pulumi.alicloud.ddos.inputs.GetDdosCooDomainResourcesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = DdosFunctions.getDdosCooDomainResources(GetDdosCooDomainResourcesArgs.builder()
+     *             .ids("tftestacc1234.abc")
+     *             .build());
+     * 
+     *         ctx.export("firstDdoscooDomainResourceId", example.applyValue(getDdosCooDomainResourcesResult -> getDdosCooDomainResourcesResult.resources()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDdosCooDomainResources(GetDdosCooDomainResourcesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ddos/getDdosCooDomainResources:getDdosCooDomainResources", TypeShape.of(GetDdosCooDomainResourcesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ddoscoo Domain Resources of the current Alibaba Cloud user. * @@ -1097,6 +1254,53 @@ public static CompletableFuture getDdosCooInstancesPl public static Output getDdosCooInstances(GetDdosCooInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ddos/getDdosCooInstances:getDdosCooInstances", TypeShape.of(GetDdosCooInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the BGP-Line Anti-DDoS Pro(DdosCoo) instances of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.39.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ddos.DdosFunctions;
+     * import com.pulumi.alicloud.ddos.inputs.GetDdosCooInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = DdosFunctions.getDdosCooInstances(GetDdosCooInstancesArgs.builder()
+     *             .nameRegex("tf")
+     *             .build());
+     * 
+     *         ctx.export("instance", default_.instances().stream().map(element -> element.id()).collect(toList()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDdosCooInstances(GetDdosCooInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ddos/getDdosCooInstances:getDdosCooInstances", TypeShape.of(GetDdosCooInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the BGP-Line Anti-DDoS Pro(DdosCoo) instances of the current Alibaba Cloud user. * @@ -1288,6 +1492,54 @@ public static CompletableFuture getDdosCooPortsPlain(GetD public static Output getDdosCooPorts(GetDdosCooPortsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ddos/getDdosCooPorts:getDdosCooPorts", TypeShape.of(GetDdosCooPortsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ddoscoo Ports of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.123.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ddos.DdosFunctions;
+     * import com.pulumi.alicloud.ddos.inputs.GetDdosCooPortsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = DdosFunctions.getDdosCooPorts(GetDdosCooPortsArgs.builder()
+     *             .instanceId("ddoscoo-cn-6ja1rl4j****")
+     *             .ids("ddoscoo-cn-6ja1rl4j****:7001:tcp")
+     *             .build());
+     * 
+     *         ctx.export("firstDdoscooPortId", example.applyValue(getDdosCooPortsResult -> getDdosCooPortsResult.ports()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDdosCooPorts(GetDdosCooPortsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ddos/getDdosCooPorts:getDdosCooPorts", TypeShape.of(GetDdosCooPortsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ddoscoo Ports of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/dds/DdsFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/dds/DdsFunctions.java index 81b4d21887..f1cab597aa 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/dds/DdsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/dds/DdsFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class DdsFunctions { @@ -29,6 +30,9 @@ public static CompletableFuture getMongoInstancesPlain( public static Output getMongoInstances(GetMongoInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dds/getMongoInstances:getMongoInstances", TypeShape.of(GetMongoInstancesResult.class), args, Utilities.withVersion(options)); } + public static Output getMongoInstances(GetMongoInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dds/getMongoInstances:getMongoInstances", TypeShape.of(GetMongoInstancesResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getMongoInstancesPlain(GetMongoInstancesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:dds/getMongoInstances:getMongoInstances", TypeShape.of(GetMongoInstancesResult.class), args, Utilities.withVersion(options)); } diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/dfs/DfsFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/dfs/DfsFunctions.java index c918a6ab6f..e45a48410e 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/dfs/DfsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/dfs/DfsFunctions.java @@ -23,6 +23,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class DfsFunctions { @@ -286,6 +287,58 @@ public static CompletableFuture getAccessGroupsPlain(GetA public static Output getAccessGroups(GetAccessGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dfs/getAccessGroups:getAccessGroups", TypeShape.of(GetAccessGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Apsara File Storage for HDFS Access Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.133.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dfs.DfsFunctions;
+     * import com.pulumi.alicloud.dfs.inputs.GetAccessGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DfsFunctions.getAccessGroups(GetAccessGroupsArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("dfsAccessGroupId1", ids.applyValue(getAccessGroupsResult -> getAccessGroupsResult.groups()[0].id()));
+     *         final var nameRegex = DfsFunctions.getAccessGroups(GetAccessGroupsArgs.builder()
+     *             .nameRegex("^my-AccessGroup")
+     *             .build());
+     * 
+     *         ctx.export("dfsAccessGroupId2", nameRegex.applyValue(getAccessGroupsResult -> getAccessGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccessGroups(GetAccessGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dfs/getAccessGroups:getAccessGroups", TypeShape.of(GetAccessGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Apsara File Storage for HDFS Access Groups of the current Alibaba Cloud user. * @@ -488,6 +541,56 @@ public static CompletableFuture getAccessRulesPlain(GetAcc public static Output getAccessRules(GetAccessRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dfs/getAccessRules:getAccessRules", TypeShape.of(GetAccessRulesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Dfs Access Rules of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.140.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dfs.DfsFunctions;
+     * import com.pulumi.alicloud.dfs.inputs.GetAccessRulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DfsFunctions.getAccessRules(GetAccessRulesArgs.builder()
+     *             .accessGroupId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("dfsAccessRuleId1", ids.applyValue(getAccessRulesResult -> getAccessRulesResult.rules()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccessRules(GetAccessRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dfs/getAccessRules:getAccessRules", TypeShape.of(GetAccessRulesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Dfs Access Rules of the current Alibaba Cloud user. * @@ -798,6 +901,58 @@ public static CompletableFuture getFileSystemsPlain(GetFil public static Output getFileSystems(GetFileSystemsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dfs/getFileSystems:getFileSystems", TypeShape.of(GetFileSystemsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Dfs File Systems of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.140.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dfs.DfsFunctions;
+     * import com.pulumi.alicloud.dfs.inputs.GetFileSystemsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DfsFunctions.getFileSystems(GetFileSystemsArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("dfsFileSystemId1", ids.applyValue(getFileSystemsResult -> getFileSystemsResult.systems()[0].id()));
+     *         final var nameRegex = DfsFunctions.getFileSystems(GetFileSystemsArgs.builder()
+     *             .nameRegex("^my-FileSystem")
+     *             .build());
+     * 
+     *         ctx.export("dfsFileSystemId2", nameRegex.applyValue(getFileSystemsResult -> getFileSystemsResult.systems()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getFileSystems(GetFileSystemsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dfs/getFileSystems:getFileSystems", TypeShape.of(GetFileSystemsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Dfs File Systems of the current Alibaba Cloud user. * @@ -1000,6 +1155,56 @@ public static CompletableFuture getMountPointsPlain(GetMou public static Output getMountPoints(GetMountPointsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dfs/getMountPoints:getMountPoints", TypeShape.of(GetMountPointsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Dfs Mount Points of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.140.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dfs.DfsFunctions;
+     * import com.pulumi.alicloud.dfs.inputs.GetMountPointsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DfsFunctions.getMountPoints(GetMountPointsArgs.builder()
+     *             .fileSystemId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("dfsMountPointId1", ids.applyValue(getMountPointsResult -> getMountPointsResult.points()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getMountPoints(GetMountPointsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dfs/getMountPoints:getMountPoints", TypeShape.of(GetMountPointsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Dfs Mount Points of the current Alibaba Cloud user. * @@ -1270,6 +1475,50 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dfs/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the DFS Zones And Configurations of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.140.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dfs.DfsFunctions;
+     * import com.pulumi.alicloud.dfs.inputs.GetZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = DfsFunctions.getZones();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dfs/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the DFS Zones And Configurations of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/directmail/DirectmailFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/directmail/DirectmailFunctions.java index fccf3ffead..5406b671a3 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/directmail/DirectmailFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/directmail/DirectmailFunctions.java @@ -20,6 +20,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class DirectmailFunctions { @@ -298,6 +299,61 @@ public static CompletableFuture getDomainsPlain(GetDomainsPlai public static Output getDomains(GetDomainsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:directmail/getDomains:getDomains", TypeShape.of(GetDomainsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Direct Mail Domains of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.134.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.directmail.Domain;
+     * import com.pulumi.alicloud.directmail.DomainArgs;
+     * import com.pulumi.alicloud.directmail.DirectmailFunctions;
+     * import com.pulumi.alicloud.directmail.inputs.GetDomainsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("terraform-example.pop.com");
+     *         var default_ = new Domain("default", DomainArgs.builder()
+     *             .domainName(name)
+     *             .build());
+     * 
+     *         final var ids = DirectmailFunctions.getDomains(GetDomainsArgs.builder()
+     *             .ids(default_.id())
+     *             .build());
+     * 
+     *         ctx.export("directMailDomainsId0", ids.applyValue(getDomainsResult -> getDomainsResult).applyValue(ids -> ids.applyValue(getDomainsResult -> getDomainsResult.domains()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDomains(GetDomainsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:directmail/getDomains:getDomains", TypeShape.of(GetDomainsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Direct Mail Domains of the current Alibaba Cloud user. * @@ -588,6 +644,53 @@ public static CompletableFuture getMailAddressesPlain(Ge public static Output getMailAddresses(GetMailAddressesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:directmail/getMailAddresses:getMailAddresses", TypeShape.of(GetMailAddressesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Direct Mail Mail Addresses of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.134.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.directmail.DirectmailFunctions;
+     * import com.pulumi.alicloud.directmail.inputs.GetMailAddressesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DirectmailFunctions.getMailAddresses(GetMailAddressesArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("directMailMailAddressId1", ids.applyValue(getMailAddressesResult -> getMailAddressesResult.addresses()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getMailAddresses(GetMailAddressesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:directmail/getMailAddresses:getMailAddresses", TypeShape.of(GetMailAddressesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Direct Mail Mail Addresses of the current Alibaba Cloud user. * @@ -875,6 +978,54 @@ public static CompletableFuture getReceiversPlain(GetReceive public static Output getReceivers(GetReceiversArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:directmail/getReceivers:getReceivers", TypeShape.of(GetReceiversResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Direct Mail Receiverses of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.125.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.directmail.DirectmailFunctions;
+     * import com.pulumi.alicloud.directmail.inputs.GetReceiversArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = DirectmailFunctions.getReceivers(GetReceiversArgs.builder()
+     *             .ids("ca73b1e4fb0df7c935a5097a****")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstDirectMailReceiversId", example.applyValue(getReceiversResult -> getReceiversResult.receiverses()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getReceivers(GetReceiversArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:directmail/getReceivers:getReceivers", TypeShape.of(GetReceiversResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Direct Mail Receiverses of the current Alibaba Cloud user. * @@ -1183,6 +1334,58 @@ public static CompletableFuture getTagsPlain(GetTagsPlainArgs arg public static Output getTags(GetTagsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:directmail/getTags:getTags", TypeShape.of(GetTagsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Direct Mail Tags of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.144.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.directmail.DirectmailFunctions;
+     * import com.pulumi.alicloud.directmail.inputs.GetTagsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DirectmailFunctions.getTags(GetTagsArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("directMailTagId1", ids.applyValue(getTagsResult -> getTagsResult.tags()[0].id()));
+     *         final var nameRegex = DirectmailFunctions.getTags(GetTagsArgs.builder()
+     *             .nameRegex("^my-Tag")
+     *             .build());
+     * 
+     *         ctx.export("directMailTagId2", nameRegex.applyValue(getTagsResult -> getTagsResult.tags()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTags(GetTagsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:directmail/getTags:getTags", TypeShape.of(GetTagsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Direct Mail Tags of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/dms/DmsFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/dms/DmsFunctions.java index 589d19122a..6fb98f4bd0 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/dms/DmsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/dms/DmsFunctions.java @@ -29,6 +29,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class DmsFunctions { @@ -176,6 +177,54 @@ public static CompletableFuture getEnterpriseDatab public static Output getEnterpriseDatabases(GetEnterpriseDatabasesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dms/getEnterpriseDatabases:getEnterpriseDatabases", TypeShape.of(GetEnterpriseDatabasesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides DMS Enterprise Database available to the user. [What is Database](https://www.alibabacloud.com/help/en/dms/developer-reference/api-dms-enterprise-2018-11-01-listdatabases). + * + * > **NOTE:** Available since v1.195.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dms.DmsFunctions;
+     * import com.pulumi.alicloud.dms.inputs.GetEnterpriseDatabasesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = DmsFunctions.getEnterpriseDatabases(GetEnterpriseDatabasesArgs.builder()
+     *             .nameRegex("test2")
+     *             .instanceId("2195118")
+     *             .build());
+     * 
+     *         ctx.export("alicloudDmsEnterpriseDatabaseExampleId", default_.databases()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEnterpriseDatabases(GetEnterpriseDatabasesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dms/getEnterpriseDatabases:getEnterpriseDatabases", TypeShape.of(GetEnterpriseDatabasesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides DMS Enterprise Database available to the user. [What is Database](https://www.alibabacloud.com/help/en/dms/developer-reference/api-dms-enterprise-2018-11-01-listdatabases). * @@ -474,6 +523,56 @@ public static CompletableFuture getEnterpriseInsta public static Output getEnterpriseInstances(GetEnterpriseInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dms/getEnterpriseInstances:getEnterpriseInstances", TypeShape.of(GetEnterpriseInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of DMS Enterprise Instances in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in 1.88.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dms.DmsFunctions;
+     * import com.pulumi.alicloud.dms.inputs.GetEnterpriseInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var dmsEnterpriseInstancesDs = DmsFunctions.getEnterpriseInstances(GetEnterpriseInstancesArgs.builder()
+     *             .netType("CLASSIC")
+     *             .instanceType("mysql")
+     *             .envType("test")
+     *             .nameRegex("tf_testAcc")
+     *             .outputFile("dms_enterprise_instances.json")
+     *             .build());
+     * 
+     *         ctx.export("firstDatabaseInstanceId", dmsEnterpriseInstancesDs.applyValue(getEnterpriseInstancesResult -> getEnterpriseInstancesResult.instances()[0].instanceId()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEnterpriseInstances(GetEnterpriseInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dms/getEnterpriseInstances:getEnterpriseInstances", TypeShape.of(GetEnterpriseInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of DMS Enterprise Instances in an Alibaba Cloud account according to the specified filters. * @@ -789,6 +888,59 @@ public static CompletableFuture getEnterprise public static Output getEnterpriseLogicDatabases(GetEnterpriseLogicDatabasesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dms/getEnterpriseLogicDatabases:getEnterpriseLogicDatabases", TypeShape.of(GetEnterpriseLogicDatabasesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides DMS Enterprise Logic Database available to the user. [What is Logic Database](https://www.alibabacloud.com/help/en/dms/developer-reference/api-dms-enterprise-2018-11-01-createlogicdatabase). + * + * > **NOTE:** Available since v1.195.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dms.DmsFunctions;
+     * import com.pulumi.alicloud.dms.inputs.GetEnterpriseInstancesArgs;
+     * import com.pulumi.alicloud.dms.inputs.GetEnterpriseLogicDatabasesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var dmsEnterpriseInstancesDs = DmsFunctions.getEnterpriseInstances(GetEnterpriseInstancesArgs.builder()
+     *             .instanceType("mysql")
+     *             .searchKey("tf-test-no-deleting")
+     *             .build());
+     * 
+     *         final var default = DmsFunctions.getEnterpriseLogicDatabases(GetEnterpriseLogicDatabasesArgs.builder()
+     *             .instanceId(dmsEnterpriseInstancesDs.applyValue(getEnterpriseInstancesResult -> getEnterpriseInstancesResult.instances()[0].instanceId()))
+     *             .build());
+     * 
+     *         ctx.export("alicloudDmsEnterpriseLogicDatabaseExampleId", default_.databases()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEnterpriseLogicDatabases(GetEnterpriseLogicDatabasesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dms/getEnterpriseLogicDatabases:getEnterpriseLogicDatabases", TypeShape.of(GetEnterpriseLogicDatabasesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides DMS Enterprise Logic Database available to the user. [What is Logic Database](https://www.alibabacloud.com/help/en/dms/developer-reference/api-dms-enterprise-2018-11-01-createlogicdatabase). * @@ -1067,6 +1219,51 @@ public static CompletableFuture getEnterpriseProxies public static Output getEnterpriseProxies(GetEnterpriseProxiesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dms/getEnterpriseProxies:getEnterpriseProxies", TypeShape.of(GetEnterpriseProxiesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Dms Enterprise Proxies of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.188.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dms.DmsFunctions;
+     * import com.pulumi.alicloud.dms.inputs.GetEnterpriseProxiesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DmsFunctions.getEnterpriseProxies();
+     * 
+     *         ctx.export("dmsEnterpriseProxyId1", ids.applyValue(getEnterpriseProxiesResult -> getEnterpriseProxiesResult.proxies()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEnterpriseProxies(GetEnterpriseProxiesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dms/getEnterpriseProxies:getEnterpriseProxies", TypeShape.of(GetEnterpriseProxiesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Dms Enterprise Proxies of the current Alibaba Cloud user. * @@ -1277,6 +1474,61 @@ public static CompletableFuture getEnterpriseP public static Output getEnterpriseProxyAccesses(GetEnterpriseProxyAccessesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dms/getEnterpriseProxyAccesses:getEnterpriseProxyAccesses", TypeShape.of(GetEnterpriseProxyAccessesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides DMS Enterprise Proxy Access available to the user.[What is Proxy Access](https://next.api.alibabacloud.com/document/dms-enterprise/2018-11-01/CreateProxyAccess) + * + * > **NOTE:** Available since v1.195.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dms.EnterpriseProxyAccess;
+     * import com.pulumi.alicloud.dms.EnterpriseProxyAccessArgs;
+     * import com.pulumi.alicloud.dms.DmsFunctions;
+     * import com.pulumi.alicloud.dms.inputs.GetEnterpriseProxyAccessesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var defaultEnterpriseProxyAccess = new EnterpriseProxyAccess("defaultEnterpriseProxyAccess", EnterpriseProxyAccessArgs.builder()
+     *             .indepPassword("PASSWORD-DEMO")
+     *             .proxyId(1881)
+     *             .indepAccount("dmstest")
+     *             .userId(104442)
+     *             .build());
+     * 
+     *         final var default = DmsFunctions.getEnterpriseProxyAccesses(GetEnterpriseProxyAccessesArgs.builder()
+     *             .ids(defaultEnterpriseProxyAccess.id())
+     *             .proxyId(1881)
+     *             .build());
+     * 
+     *         ctx.export("alicloudDmsProxyAccesesExampleId", default_.applyValue(default_ -> default_.accesses()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEnterpriseProxyAccesses(GetEnterpriseProxyAccessesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dms/getEnterpriseProxyAccesses:getEnterpriseProxyAccesses", TypeShape.of(GetEnterpriseProxyAccessesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides DMS Enterprise Proxy Access available to the user.[What is Proxy Access](https://next.api.alibabacloud.com/document/dms-enterprise/2018-11-01/CreateProxyAccess) * @@ -1572,6 +1824,54 @@ public static CompletableFuture getEnterpriseUsersPlai public static Output getEnterpriseUsers(GetEnterpriseUsersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dms/getEnterpriseUsers:getEnterpriseUsers", TypeShape.of(GetEnterpriseUsersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of DMS Enterprise Users in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in 1.90.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dms.DmsFunctions;
+     * import com.pulumi.alicloud.dms.inputs.GetEnterpriseUsersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var dmsEnterpriseUsersDs = DmsFunctions.getEnterpriseUsers(GetEnterpriseUsersArgs.builder()
+     *             .ids("uid")
+     *             .role("USER")
+     *             .status("NORMAL")
+     *             .build());
+     * 
+     *         ctx.export("firstUserId", dmsEnterpriseUsersDs.applyValue(getEnterpriseUsersResult -> getEnterpriseUsersResult.users()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEnterpriseUsers(GetEnterpriseUsersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dms/getEnterpriseUsers:getEnterpriseUsers", TypeShape.of(GetEnterpriseUsersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of DMS Enterprise Users in an Alibaba Cloud account according to the specified filters. * @@ -1850,6 +2150,52 @@ public static CompletableFuture getUserTenantsPlain(GetUse public static Output getUserTenants(GetUserTenantsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dms/getUserTenants:getUserTenants", TypeShape.of(GetUserTenantsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of DMS User Tenants in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in 1.161.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dms.DmsFunctions;
+     * import com.pulumi.alicloud.dms.inputs.GetUserTenantsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var default = DmsFunctions.getUserTenants(GetUserTenantsArgs.builder()
+     *             .status("ACTIVE")
+     *             .build());
+     * 
+     *         ctx.export("tid", default_.ids()[0]);
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getUserTenants(GetUserTenantsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dms/getUserTenants:getUserTenants", TypeShape.of(GetUserTenantsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of DMS User Tenants in an Alibaba Cloud account according to the specified filters. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/dns/DnsFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/dns/DnsFunctions.java index 6af2915dcd..d678abbdae 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/dns/DnsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/dns/DnsFunctions.java @@ -56,6 +56,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class DnsFunctions { @@ -215,6 +216,58 @@ public static CompletableFuture getAccessStrategiesPl public static Output getAccessStrategies(GetAccessStrategiesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dns/getAccessStrategies:getAccessStrategies", TypeShape.of(GetAccessStrategiesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Alidns Access Strategies of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.152.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dns.DnsFunctions;
+     * import com.pulumi.alicloud.dns.inputs.GetAccessStrategiesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DnsFunctions.getAccessStrategies(GetAccessStrategiesArgs.builder()
+     *             .instanceId("example_value")
+     *             .strategyMode("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("alidnsAccessStrategyId1", ids.applyValue(getAccessStrategiesResult -> getAccessStrategiesResult.strategies()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccessStrategies(GetAccessStrategiesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dns/getAccessStrategies:getAccessStrategies", TypeShape.of(GetAccessStrategiesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Alidns Access Strategies of the current Alibaba Cloud user. * @@ -435,6 +488,62 @@ public static CompletableFuture getAddressPoolsPlain(GetA public static Output getAddressPools(GetAddressPoolsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dns/getAddressPools:getAddressPools", TypeShape.of(GetAddressPoolsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Alidns Address Pools of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.152.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dns.DnsFunctions;
+     * import com.pulumi.alicloud.dns.inputs.GetAddressPoolsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DnsFunctions.getAddressPools(GetAddressPoolsArgs.builder()
+     *             .instanceId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("alidnsAddressPoolId1", ids.applyValue(getAddressPoolsResult -> getAddressPoolsResult.pools()[0].id()));
+     *         final var nameRegex = DnsFunctions.getAddressPools(GetAddressPoolsArgs.builder()
+     *             .instanceId("example_value")
+     *             .nameRegex("^my-AddressPool")
+     *             .build());
+     * 
+     *         ctx.export("alidnsAddressPoolId2", nameRegex.applyValue(getAddressPoolsResult -> getAddressPoolsResult.pools()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAddressPools(GetAddressPoolsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dns/getAddressPools:getAddressPools", TypeShape.of(GetAddressPoolsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Alidns Address Pools of the current Alibaba Cloud user. * @@ -716,6 +825,51 @@ public static CompletableFuture getAlidnsDomainGrou public static Output getAlidnsDomainGroups(GetAlidnsDomainGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dns/getAlidnsDomainGroups:getAlidnsDomainGroups", TypeShape.of(GetAlidnsDomainGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of Alidns Domain Groups in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in 1.85.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dns.DnsFunctions;
+     * import com.pulumi.alicloud.dns.inputs.GetAlidnsDomainGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = DnsFunctions.getAlidnsDomainGroups(GetAlidnsDomainGroupsArgs.builder()
+     *             .ids("c5ef2bc43064445787adf182af2****")
+     *             .build());
+     * 
+     *         ctx.export("firstDomainGroupId", example.applyValue(getAlidnsDomainGroupsResult -> getAlidnsDomainGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAlidnsDomainGroups(GetAlidnsDomainGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dns/getAlidnsDomainGroups:getAlidnsDomainGroups", TypeShape.of(GetAlidnsDomainGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of Alidns Domain Groups in an Alibaba Cloud account according to the specified filters. * @@ -991,6 +1145,52 @@ public static CompletableFuture getAlidnsDomainsPlain(Ge public static Output getAlidnsDomains(GetAlidnsDomainsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dns/getAlidnsDomains:getAlidnsDomains", TypeShape.of(GetAlidnsDomainsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of Alidns Domains in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in 1.95.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dns.DnsFunctions;
+     * import com.pulumi.alicloud.dns.inputs.GetAlidnsDomainsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var domainsDs = DnsFunctions.getAlidnsDomains(GetAlidnsDomainsArgs.builder()
+     *             .domainNameRegex("^hegu")
+     *             .outputFile("domains.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstDomainId", domainsDs.applyValue(getAlidnsDomainsResult -> getAlidnsDomainsResult.domains()[0].domainId()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAlidnsDomains(GetAlidnsDomainsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dns/getAlidnsDomains:getAlidnsDomains", TypeShape.of(GetAlidnsDomainsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of Alidns Domains in an Alibaba Cloud account according to the specified filters. * @@ -1262,6 +1462,51 @@ public static CompletableFuture getAlidnsInstancesPlai public static Output getAlidnsInstances(GetAlidnsInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dns/getAlidnsInstances:getAlidnsInstances", TypeShape.of(GetAlidnsInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of Alidns instances in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in 1.95.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dns.DnsFunctions;
+     * import com.pulumi.alicloud.dns.inputs.GetAlidnsInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = DnsFunctions.getAlidnsInstances(GetAlidnsInstancesArgs.builder()
+     *             .ids("dns-cn-oew1npk****")
+     *             .build());
+     * 
+     *         ctx.export("firstInstanceId", example.applyValue(getAlidnsInstancesResult -> getAlidnsInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAlidnsInstances(GetAlidnsInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dns/getAlidnsInstances:getAlidnsInstances", TypeShape.of(GetAlidnsInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of Alidns instances in an Alibaba Cloud account according to the specified filters. * @@ -1451,6 +1696,54 @@ public static CompletableFuture getAlidnsRecordsPlain(Ge public static Output getAlidnsRecords(GetAlidnsRecordsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dns/getAlidnsRecords:getAlidnsRecords", TypeShape.of(GetAlidnsRecordsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of Alidns Domain Records in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available since v1.86.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dns.DnsFunctions;
+     * import com.pulumi.alicloud.dns.inputs.GetAlidnsRecordsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var recordsDs = DnsFunctions.getAlidnsRecords(GetAlidnsRecordsArgs.builder()
+     *             .domainName("xiaozhu.top")
+     *             .ids("1978593525779****")
+     *             .type("A")
+     *             .outputFile("records.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstRecordId", recordsDs.applyValue(getAlidnsRecordsResult -> getAlidnsRecordsResult.records()[0].recordId()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAlidnsRecords(GetAlidnsRecordsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dns/getAlidnsRecords:getAlidnsRecords", TypeShape.of(GetAlidnsRecordsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of Alidns Domain Records in an Alibaba Cloud account according to the specified filters. * @@ -1643,6 +1936,54 @@ public static CompletableFuture getCustomLinesPlain(GetCus public static Output getCustomLines(GetCustomLinesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dns/getCustomLines:getCustomLines", TypeShape.of(GetCustomLinesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Alidns Custom Lines of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.151.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dns.DnsFunctions;
+     * import com.pulumi.alicloud.dns.inputs.GetCustomLinesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DnsFunctions.getCustomLines(GetCustomLinesArgs.builder()
+     *             .enableDetails(true)
+     *             .domainName("your_domain_name")
+     *             .build());
+     * 
+     *         ctx.export("alidnsCustomLineId1", ids.applyValue(getCustomLinesResult -> getCustomLinesResult.lines()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCustomLines(GetCustomLinesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dns/getCustomLines:getCustomLines", TypeShape.of(GetCustomLinesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Alidns Custom Lines of the current Alibaba Cloud user. * @@ -1726,6 +2067,13 @@ public static CompletableFuture getDomainGroupsPlain(GetD public static Output getDomainGroups(GetDomainGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dns/getDomainGroups:getDomainGroups", TypeShape.of(GetDomainGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * > **NOTE:** This datasource has been deprecated from v1.3.2. Please use the datasource `alicloud.dns.getGroups` instead. + * + */ + public static Output getDomainGroups(GetDomainGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dns/getDomainGroups:getDomainGroups", TypeShape.of(GetDomainGroupsResult.class), args, Utilities.withVersion(options)); + } /** * > **NOTE:** This datasource has been deprecated from v1.3.2. Please use the datasource `alicloud.dns.getGroups` instead. * @@ -1754,6 +2102,13 @@ public static CompletableFuture getDomainRecordsPlain(Ge public static Output getDomainRecords(GetDomainRecordsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dns/getDomainRecords:getDomainRecords", TypeShape.of(GetDomainRecordsResult.class), args, Utilities.withVersion(options)); } + /** + * > **NOTE:** This resource has been deprecated from v1.3.2. Please use the datasource `alicloud.dns.getRecords` instead. + * + */ + public static Output getDomainRecords(GetDomainRecordsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dns/getDomainRecords:getDomainRecords", TypeShape.of(GetDomainRecordsResult.class), args, Utilities.withVersion(options)); + } /** * > **NOTE:** This resource has been deprecated from v1.3.2. Please use the datasource `alicloud.dns.getRecords` instead. * @@ -1932,13 +2287,106 @@ public static Output getDomainTxtGuid(GetDomainTxtGuidAr * } * * public static void stack(Context ctx) { - * final var this = DnsFunctions.getDomainTxtGuid(GetDomainTxtGuidArgs.builder() - * .domainName("test111.abc") - * .type("ADD_SUB_DOMAIN") + * final var this = DnsFunctions.getDomainTxtGuid(GetDomainTxtGuidArgs.builder() + * .domainName("test111.abc") + * .type("ADD_SUB_DOMAIN") + * .build()); + * + * ctx.export("rr", this_.rr()); + * ctx.export("value", this_.value()); + * } + * } + * } + *
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDomainTxtGuid(GetDomainTxtGuidArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dns/getDomainTxtGuid:getDomainTxtGuid", TypeShape.of(GetDomainTxtGuidResult.class), args, Utilities.withVersion(options)); + } + /** + * Provides the generation of txt records to realize the retrieval and verification of domain names. + * + * > **NOTE:** Available in v1.80.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dns.DnsFunctions;
+     * import com.pulumi.alicloud.dns.inputs.GetDomainTxtGuidArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var this = DnsFunctions.getDomainTxtGuid(GetDomainTxtGuidArgs.builder()
+     *             .domainName("test111.abc")
+     *             .type("ADD_SUB_DOMAIN")
+     *             .build());
+     * 
+     *         ctx.export("rr", this_.rr());
+     *         ctx.export("value", this_.value());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getDomainTxtGuidPlain(GetDomainTxtGuidPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:dns/getDomainTxtGuid:getDomainTxtGuid", TypeShape.of(GetDomainTxtGuidResult.class), args, Utilities.withVersion(options)); + } + /** + * > **DEPRECATED:** This resource has been renamed to alicloud.dns.getAlidnsDomains from version 1.95.0. + * + * This data source provides a list of DNS Domains in an Alibaba Cloud account according to the specified filters. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dns.DnsFunctions;
+     * import com.pulumi.alicloud.dns.inputs.GetDomainsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var domainsDs = DnsFunctions.getDomains(GetDomainsArgs.builder()
+     *             .domainNameRegex("^hegu")
+     *             .outputFile("domains.txt")
      *             .build());
      * 
-     *         ctx.export("rr", this_.rr());
-     *         ctx.export("value", this_.value());
+     *         ctx.export("firstDomainId", domainsDs.applyValue(getDomainsResult -> getDomainsResult.domains()[0].domainId()));
      *     }
      * }
      * }
@@ -1946,8 +2394,8 @@ public static Output getDomainTxtGuid(GetDomainTxtGuidAr
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getDomainTxtGuidPlain(GetDomainTxtGuidPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("alicloud:dns/getDomainTxtGuid:getDomainTxtGuid", TypeShape.of(GetDomainTxtGuidResult.class), args, Utilities.withVersion(options));
+    public static Output getDomains() {
+        return getDomains(GetDomainsArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * > **DEPRECATED:**  This resource has been renamed to alicloud.dns.getAlidnsDomains from version 1.95.0.
@@ -1992,8 +2440,8 @@ public static CompletableFuture getDomainTxtGuidPlain(Ge
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getDomains() {
-        return getDomains(GetDomainsArgs.Empty, InvokeOptions.Empty);
+    public static CompletableFuture getDomainsPlain() {
+        return getDomainsPlain(GetDomainsPlainArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * > **DEPRECATED:**  This resource has been renamed to alicloud.dns.getAlidnsDomains from version 1.95.0.
@@ -2038,8 +2486,8 @@ public static Output getDomains() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getDomainsPlain() {
-        return getDomainsPlain(GetDomainsPlainArgs.Empty, InvokeOptions.Empty);
+    public static Output getDomains(GetDomainsArgs args) {
+        return getDomains(args, InvokeOptions.Empty);
     }
     /**
      * > **DEPRECATED:**  This resource has been renamed to alicloud.dns.getAlidnsDomains from version 1.95.0.
@@ -2084,8 +2532,8 @@ public static CompletableFuture getDomainsPlain() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getDomains(GetDomainsArgs args) {
-        return getDomains(args, InvokeOptions.Empty);
+    public static CompletableFuture getDomainsPlain(GetDomainsPlainArgs args) {
+        return getDomainsPlain(args, InvokeOptions.Empty);
     }
     /**
      * > **DEPRECATED:**  This resource has been renamed to alicloud.dns.getAlidnsDomains from version 1.95.0.
@@ -2130,8 +2578,8 @@ public static Output getDomains(GetDomainsArgs args) {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getDomainsPlain(GetDomainsPlainArgs args) {
-        return getDomainsPlain(args, InvokeOptions.Empty);
+    public static Output getDomains(GetDomainsArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("alicloud:dns/getDomains:getDomains", TypeShape.of(GetDomainsResult.class), args, Utilities.withVersion(options));
     }
     /**
      * > **DEPRECATED:**  This resource has been renamed to alicloud.dns.getAlidnsDomains from version 1.95.0.
@@ -2176,7 +2624,7 @@ public static CompletableFuture getDomainsPlain(GetDomainsPlai
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getDomains(GetDomainsArgs args, InvokeOptions options) {
+    public static Output getDomains(GetDomainsArgs args, InvokeOutputOptions options) {
         return Deployment.getInstance().invoke("alicloud:dns/getDomains:getDomains", TypeShape.of(GetDomainsResult.class), args, Utilities.withVersion(options));
     }
     /**
@@ -2445,6 +2893,50 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr
     public static Output getGroups(GetGroupsArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("alicloud:dns/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * This data source provides a list of DNS Domain Groups in an Alibaba Cloud account according to the specified filters.
+     * 
+     * ## Example Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dns.DnsFunctions;
+     * import com.pulumi.alicloud.dns.inputs.GetGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var groupsDs = DnsFunctions.getGroups(GetGroupsArgs.builder()
+     *             .nameRegex("^y[A-Za-z]+")
+     *             .outputFile("groups.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstGroupName", groupsDs.applyValue(getGroupsResult -> getGroupsResult.groups()[0].groupName()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGroups(GetGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dns/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of DNS Domain Groups in an Alibaba Cloud account according to the specified filters. * @@ -2714,6 +3206,51 @@ public static CompletableFuture getGtmInstancesPlain(GetG public static Output getGtmInstances(GetGtmInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dns/getGtmInstances:getGtmInstances", TypeShape.of(GetGtmInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Alidns Gtm Instances of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.151.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dns.DnsFunctions;
+     * import com.pulumi.alicloud.dns.inputs.GetGtmInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DnsFunctions.getGtmInstances();
+     * 
+     *         ctx.export("alidnsGtmInstanceId1", ids.applyValue(getGtmInstancesResult -> getGtmInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGtmInstances(GetGtmInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dns/getGtmInstances:getGtmInstances", TypeShape.of(GetGtmInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Alidns Gtm Instances of the current Alibaba Cloud user. * @@ -2994,6 +3531,53 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dns/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * > **DEPRECATED:** This resource has been renamed to alicloud.dns.getAlidnsInstances from version 1.95.0. + * + * This data source provides a list of DNS instances in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in 1.84.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dns.DnsFunctions;
+     * import com.pulumi.alicloud.dns.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = DnsFunctions.getInstances(GetInstancesArgs.builder()
+     *             .ids("dns-cn-oew1npk****")
+     *             .build());
+     * 
+     *         ctx.export("firstInstanceId", example.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dns/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * > **DEPRECATED:** This resource has been renamed to alicloud.dns.getAlidnsInstances from version 1.95.0. * @@ -3188,6 +3772,55 @@ public static CompletableFuture getRecordsPlain(GetRecordsPlai public static Output getRecords(GetRecordsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dns/getRecords:getRecords", TypeShape.of(GetRecordsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of DNS Domain Records in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available since v1.0.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dns.DnsFunctions;
+     * import com.pulumi.alicloud.dns.inputs.GetRecordsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App }{{@code
+     *     public static void main(String[] args) }{{@code
+     *         Pulumi.run(App::stack);
+     *     }}{@code
+     * 
+     *     public static void stack(Context ctx) }{{@code
+     *         final var recordsDs = DnsFunctions.getRecords(GetRecordsArgs.builder()
+     *             .domainName("xiaozhu.top")
+     *             .isLocked(false)
+     *             .type("A")
+     *             .hostRecordRegex("^}{@literal @}{@code ")
+     *             .outputFile("records.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstRecordId", recordsDs.applyValue(getRecordsResult -> getRecordsResult.records()[0].recordId()));
+     *     }}{@code
+     * }}{@code
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRecords(GetRecordsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dns/getRecords:getRecords", TypeShape.of(GetRecordsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of DNS Domain Records in an Alibaba Cloud account according to the specified filters. * @@ -3467,6 +4100,52 @@ public static CompletableFuture getResolutionLinesPlai public static Output getResolutionLines(GetResolutionLinesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dns/getResolutionLines:getResolutionLines", TypeShape.of(GetResolutionLinesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of DNS Resolution Lines in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in 1.60.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dns.DnsFunctions;
+     * import com.pulumi.alicloud.dns.inputs.GetResolutionLinesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var resolutionLinesDs = DnsFunctions.getResolutionLines(GetResolutionLinesArgs.builder()
+     *             .lineCodes("cn_unicom_shanxi")
+     *             .outputFile("support_lines.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstLineCode", resolutionLinesDs.applyValue(getResolutionLinesResult -> getResolutionLinesResult.lines()[0].lineCode()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getResolutionLines(GetResolutionLinesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dns/getResolutionLines:getResolutionLines", TypeShape.of(GetResolutionLinesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of DNS Resolution Lines in an Alibaba Cloud account according to the specified filters. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/drds/DrdsFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/drds/DrdsFunctions.java index c0c32c0168..0145dc6297 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/drds/DrdsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/drds/DrdsFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class DrdsFunctions { @@ -249,6 +250,53 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:drds/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * The `alicloud.drds.Instance` data source provides a collection of DRDS instances available in Alibaba Cloud account. + * Filters support regular expression for the instance name, searches by tags, and other filters which are listed below. + * + * > **NOTE:** Available in 1.35.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.drds.DrdsFunctions;
+     * import com.pulumi.alicloud.drds.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var drdsInstancesDs = DrdsFunctions.getInstances(GetInstancesArgs.builder()
+     *             .nameRegex("drds-\\d+")
+     *             .ids("drdsabc123456")
+     *             .build());
+     * 
+     *         ctx.export("firstDbInstanceId", drdsInstancesDs.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:drds/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * The `alicloud.drds.Instance` data source provides a collection of DRDS instances available in Alibaba Cloud account. * Filters support regular expression for the instance name, searches by tags, and other filters which are listed below. diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/dts/DtsFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/dts/DtsFunctions.java index 5ca5c1b988..860bc7d243 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/dts/DtsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/dts/DtsFunctions.java @@ -23,6 +23,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class DtsFunctions { @@ -161,6 +162,51 @@ public static CompletableFuture getConsumerChannelsPl public static Output getConsumerChannels(GetConsumerChannelsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dts/getConsumerChannels:getConsumerChannels", TypeShape.of(GetConsumerChannelsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Dts Consumer Channels of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.146.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dts.DtsFunctions;
+     * import com.pulumi.alicloud.dts.inputs.GetConsumerChannelsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DtsFunctions.getConsumerChannels();
+     * 
+     *         ctx.export("dtsConsumerChannelId1", ids.applyValue(getConsumerChannelsResult -> getConsumerChannelsResult.channels()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getConsumerChannels(GetConsumerChannelsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dts/getConsumerChannels:getConsumerChannels", TypeShape.of(GetConsumerChannelsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Dts Consumer Channels of the current Alibaba Cloud user. * @@ -436,6 +482,52 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dts/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Dts Instance available to the user.[What is Instance](https://www.alibabacloud.com/help/en/data-transmission-service/latest/createdtsinstance) + * + * > **NOTE:** Available in 1.198.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dts.DtsFunctions;
+     * import com.pulumi.alicloud.dts.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = DtsFunctions.getInstances(GetInstancesArgs.builder()
+     *             .ids(defaultAlicloudDtsInstance.id())
+     *             .resourceGroupId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("alicloudDtsInstanceExampleId", default_.instances()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dts/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Dts Instance available to the user.[What is Instance](https://www.alibabacloud.com/help/en/data-transmission-service/latest/createdtsinstance) * @@ -717,6 +809,53 @@ public static CompletableFuture getMigrationJobsPlain(Ge public static Output getMigrationJobs(GetMigrationJobsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dts/getMigrationJobs:getMigrationJobs", TypeShape.of(GetMigrationJobsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Dts Migration Jobs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.157.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dts.DtsFunctions;
+     * import com.pulumi.alicloud.dts.inputs.GetMigrationJobsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DtsFunctions.getMigrationJobs(GetMigrationJobsArgs.builder()
+     *             .ids("dts_job_id")
+     *             .build());
+     * 
+     *         ctx.export("dtsMigrationJobId1", ids.applyValue(getMigrationJobsResult -> getMigrationJobsResult.jobs()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getMigrationJobs(GetMigrationJobsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dts/getMigrationJobs:getMigrationJobs", TypeShape.of(GetMigrationJobsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Dts Migration Jobs of the current Alibaba Cloud user. * @@ -989,6 +1128,51 @@ public static CompletableFuture getSubscriptionJobsPl public static Output getSubscriptionJobs(GetSubscriptionJobsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dts/getSubscriptionJobs:getSubscriptionJobs", TypeShape.of(GetSubscriptionJobsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Dts Subscription Jobs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.138.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dts.DtsFunctions;
+     * import com.pulumi.alicloud.dts.inputs.GetSubscriptionJobsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DtsFunctions.getSubscriptionJobs();
+     * 
+     *         ctx.export("dtsSubscriptionJobId1", ids.applyValue(getSubscriptionJobsResult -> getSubscriptionJobsResult.jobs()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSubscriptionJobs(GetSubscriptionJobsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dts/getSubscriptionJobs:getSubscriptionJobs", TypeShape.of(GetSubscriptionJobsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Dts Subscription Jobs of the current Alibaba Cloud user. * @@ -1259,6 +1443,51 @@ public static CompletableFuture getSynchronization public static Output getSynchronizationJobs(GetSynchronizationJobsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:dts/getSynchronizationJobs:getSynchronizationJobs", TypeShape.of(GetSynchronizationJobsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Dts Synchronization Jobs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.138.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.dts.DtsFunctions;
+     * import com.pulumi.alicloud.dts.inputs.GetSynchronizationJobsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = DtsFunctions.getSynchronizationJobs();
+     * 
+     *         ctx.export("dtsSynchronizationJobId1", ids.applyValue(getSynchronizationJobsResult -> getSynchronizationJobsResult.jobs()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSynchronizationJobs(GetSynchronizationJobsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:dts/getSynchronizationJobs:getSynchronizationJobs", TypeShape.of(GetSynchronizationJobsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Dts Synchronization Jobs of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/eais/EaisFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/eais/EaisFunctions.java index 2aa8656497..83c37dfff8 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/eais/EaisFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/eais/EaisFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class EaisFunctions { @@ -274,6 +275,58 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:eais/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Eais Instances of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.137.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eais.EaisFunctions;
+     * import com.pulumi.alicloud.eais.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EaisFunctions.getInstances(GetInstancesArgs.builder()
+     *             .id("example_id")
+     *             .build());
+     * 
+     *         ctx.export("eaisInstanceId1", ids.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *         final var nameRegex = EaisFunctions.getInstances(GetInstancesArgs.builder()
+     *             .nameRegex("^my-Instance")
+     *             .build());
+     * 
+     *         ctx.export("eaisInstanceId2", nameRegex.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eais/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Eais Instances of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/ebs/EbsFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/ebs/EbsFunctions.java index 185add2e2f..dfee718d5a 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/ebs/EbsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/ebs/EbsFunctions.java @@ -20,6 +20,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class EbsFunctions { @@ -253,6 +254,52 @@ public static CompletableFuture getDedic public static Output getDedicatedBlockStorageClusters(GetDedicatedBlockStorageClustersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ebs/getDedicatedBlockStorageClusters:getDedicatedBlockStorageClusters", TypeShape.of(GetDedicatedBlockStorageClustersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Ebs Dedicated Block Storage Cluster available to the user. + * + * > **NOTE:** Available in 1.196.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ebs.EbsFunctions;
+     * import com.pulumi.alicloud.ebs.inputs.GetDedicatedBlockStorageClustersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = EbsFunctions.getDedicatedBlockStorageClusters(GetDedicatedBlockStorageClustersArgs.builder()
+     *             .ids("example_id")
+     *             .nameRegex(defaultAlicloudEbsDedicatedBlockStorageCluster.name())
+     *             .build());
+     * 
+     *         ctx.export("alicloudEbsDedicatedBlockStorageClusterExampleId", default_.clusters()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDedicatedBlockStorageClusters(GetDedicatedBlockStorageClustersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ebs/getDedicatedBlockStorageClusters:getDedicatedBlockStorageClusters", TypeShape.of(GetDedicatedBlockStorageClustersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Ebs Dedicated Block Storage Cluster available to the user. * @@ -534,6 +581,53 @@ public static CompletableFuture getDiskReplicaGroups public static Output getDiskReplicaGroups(GetDiskReplicaGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ebs/getDiskReplicaGroups:getDiskReplicaGroups", TypeShape.of(GetDiskReplicaGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ebs Disk Replica Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.187.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ebs.EbsFunctions;
+     * import com.pulumi.alicloud.ebs.inputs.GetDiskReplicaGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EbsFunctions.getDiskReplicaGroups(GetDiskReplicaGroupsArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("ebsDiskReplicaGroupId1", ids.applyValue(getDiskReplicaGroupsResult -> getDiskReplicaGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDiskReplicaGroups(GetDiskReplicaGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ebs/getDiskReplicaGroups:getDiskReplicaGroups", TypeShape.of(GetDiskReplicaGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ebs Disk Replica Groups of the current Alibaba Cloud user. * @@ -806,6 +900,51 @@ public static CompletableFuture getDiskReplicaPairsPl public static Output getDiskReplicaPairs(GetDiskReplicaPairsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ebs/getDiskReplicaPairs:getDiskReplicaPairs", TypeShape.of(GetDiskReplicaPairsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Ebs Disk Replica Pair available to the user. + * + * > **NOTE:** Available in 1.196.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ebs.EbsFunctions;
+     * import com.pulumi.alicloud.ebs.inputs.GetDiskReplicaPairsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = EbsFunctions.getDiskReplicaPairs(GetDiskReplicaPairsArgs.builder()
+     *             .ids(defaultAlicloudEbsDiskReplicaPair.id())
+     *             .build());
+     * 
+     *         ctx.export("alicloudEbsDiskReplicaPairExampleId", default_.pairs()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDiskReplicaPairs(GetDiskReplicaPairsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ebs/getDiskReplicaPairs:getDiskReplicaPairs", TypeShape.of(GetDiskReplicaPairsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Ebs Disk Replica Pair available to the user. * @@ -1086,6 +1225,53 @@ public static CompletableFuture getRegionsPlain(GetRegionsPlai public static Output getRegions(GetRegionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ebs/getRegions:getRegions", TypeShape.of(GetRegionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ebs Regions of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.187.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ebs.EbsFunctions;
+     * import com.pulumi.alicloud.ebs.inputs.GetRegionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = EbsFunctions.getRegions(GetRegionsArgs.builder()
+     *             .regionId("cn-hangzhou")
+     *             .build());
+     * 
+     *         ctx.export("regions", default_.regions());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRegions(GetRegionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ebs/getRegions:getRegions", TypeShape.of(GetRegionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ebs Regions of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/eci/EciFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/eci/EciFunctions.java index 476bdc006a..2859db8a19 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/eci/EciFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/eci/EciFunctions.java @@ -20,6 +20,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class EciFunctions { @@ -258,6 +259,53 @@ public static CompletableFuture getContainerGroupsPlai public static Output getContainerGroups(GetContainerGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:eci/getContainerGroups:getContainerGroups", TypeShape.of(GetContainerGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Eci Container Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.111.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eci.EciFunctions;
+     * import com.pulumi.alicloud.eci.inputs.GetContainerGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = EciFunctions.getContainerGroups(GetContainerGroupsArgs.builder()
+     *             .ids("example_value")
+     *             .build());
+     * 
+     *         ctx.export("firstEciContainerGroupId", example.applyValue(getContainerGroupsResult -> getContainerGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getContainerGroups(GetContainerGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eci/getContainerGroups:getContainerGroups", TypeShape.of(GetContainerGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Eci Container Groups of the current Alibaba Cloud user. * @@ -530,6 +578,51 @@ public static CompletableFuture getImageCachesPlain(GetIma public static Output getImageCaches(GetImageCachesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:eci/getImageCaches:getImageCaches", TypeShape.of(GetImageCachesResult.class), args, Utilities.withVersion(options)); } + /** + * Provides a collection of ECI Image Cache to the specified filters. + * + * > **NOTE:** Available in 1.90.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eci.EciFunctions;
+     * import com.pulumi.alicloud.eci.inputs.GetImageCachesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = EciFunctions.getImageCaches(GetImageCachesArgs.builder()
+     *             .ids("imc-bp1ef0dyp7ldhb1d****")
+     *             .build());
+     * 
+     *         ctx.export("imageCache", example.applyValue(getImageCachesResult -> getImageCachesResult.caches()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getImageCaches(GetImageCachesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eci/getImageCaches:getImageCaches", TypeShape.of(GetImageCachesResult.class), args, Utilities.withVersion(options)); + } /** * Provides a collection of ECI Image Cache to the specified filters. * @@ -845,6 +938,60 @@ public static CompletableFuture getVirtualNodesPlain(GetV public static Output getVirtualNodes(GetVirtualNodesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:eci/getVirtualNodes:getVirtualNodes", TypeShape.of(GetVirtualNodesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Eci Virtual Nodes of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.145.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eci.EciFunctions;
+     * import com.pulumi.alicloud.eci.inputs.GetVirtualNodesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EciFunctions.getVirtualNodes(GetVirtualNodesArgs.builder()
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("eciVirtualNodeId1", ids.applyValue(getVirtualNodesResult -> getVirtualNodesResult.nodes()[0].id()));
+     *         final var nameRegex = EciFunctions.getVirtualNodes(GetVirtualNodesArgs.builder()
+     *             .nameRegex("^my-VirtualNode")
+     *             .build());
+     * 
+     *         ctx.export("eciVirtualNodeId2", nameRegex.applyValue(getVirtualNodesResult -> getVirtualNodesResult.nodes()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVirtualNodes(GetVirtualNodesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eci/getVirtualNodes:getVirtualNodes", TypeShape.of(GetVirtualNodesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Eci Virtual Nodes of the current Alibaba Cloud user. * @@ -1124,6 +1271,51 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:eci/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the available zones with the Application Load Balancer (ALB) Instance of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.145.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eci.EciFunctions;
+     * import com.pulumi.alicloud.eci.inputs.GetZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = EciFunctions.getZones();
+     * 
+     *         ctx.export("firstEciZonesId", default_.zones()[0].zoneIds()[0]);
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eci/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the available zones with the Application Load Balancer (ALB) Instance of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/ecp/EcpFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/ecp/EcpFunctions.java index d097304daf..0dcd47bda6 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/ecp/EcpFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/ecp/EcpFunctions.java @@ -20,6 +20,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class EcpFunctions { @@ -248,6 +249,51 @@ public static CompletableFuture getInstanceTypesPlain(Ge public static Output getInstanceTypes(GetInstanceTypesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ecp/getInstanceTypes:getInstanceTypes", TypeShape.of(GetInstanceTypesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the available instance types with the Cloud Phone (ECP) Instance of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.158.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecp.EcpFunctions;
+     * import com.pulumi.alicloud.ecp.inputs.GetInstanceTypesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = EcpFunctions.getInstanceTypes();
+     * 
+     *         ctx.export("firstEcpInstanceTypesInstanceType", default_.instanceTypes()[0].instanceType());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceTypes(GetInstanceTypesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecp/getInstanceTypes:getInstanceTypes", TypeShape.of(GetInstanceTypesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the available instance types with the Cloud Phone (ECP) Instance of the current Alibaba Cloud user. * @@ -763,6 +809,100 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ecp/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ecp Instances of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.158.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecp.EcpFunctions;
+     * import com.pulumi.alicloud.ecp.inputs.GetZonesArgs;
+     * import com.pulumi.alicloud.ecp.inputs.GetInstanceTypesArgs;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
+     * import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
+     * import com.pulumi.alicloud.ecs.SecurityGroup;
+     * import com.pulumi.alicloud.ecs.SecurityGroupArgs;
+     * import com.pulumi.alicloud.ecp.KeyPair;
+     * import com.pulumi.alicloud.ecp.KeyPairArgs;
+     * import com.pulumi.alicloud.ecp.Instance;
+     * import com.pulumi.alicloud.ecp.InstanceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = EcpFunctions.getZones();
+     * 
+     *         final var defaultGetInstanceTypes = EcpFunctions.getInstanceTypes();
+     * 
+     *         final var countSize = default_.zones().length();
+     * 
+     *         final var zoneId = default_.zones()[countSize - 1].zoneId();
+     * 
+     *         final var instanceTypeCountSize = defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()).length();
+     * 
+     *         final var instanceType = defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes())[instanceTypeCountSize - 1].instanceType();
+     * 
+     *         final var defaultGetNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
+     *             .nameRegex("default-NODELETING")
+     *             .build());
+     * 
+     *         final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
+     *             .vpcId(defaultGetNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
+     *             .zoneId(zoneId)
+     *             .build());
+     * 
+     *         var group = new SecurityGroup("group", SecurityGroupArgs.builder()
+     *             .name(name)
+     *             .vpcId(defaultGetNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
+     *             .build());
+     * 
+     *         var defaultKeyPair = new KeyPair("defaultKeyPair", KeyPairArgs.builder()
+     *             .keyPairName(name)
+     *             .publicKeyBody("ssh-rsa AAAAB3Nza12345678qwertyuudsfsg")
+     *             .build());
+     * 
+     *         var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
+     *             .instanceName(name)
+     *             .description(name)
+     *             .force("true")
+     *             .keyPairName(defaultKeyPair.keyPairName())
+     *             .vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
+     *             .imageId("android_9_0_0_release_2851157_20211201.vhd")
+     *             .instanceType(defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes())[instanceTypeCountSize - 1].instanceType())
+     *             .paymentType("PayAsYouGo")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecp/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecp Instances of the current Alibaba Cloud user. * @@ -1107,6 +1247,56 @@ public static CompletableFuture getKeyPairsPlain(GetKeyPairsP public static Output getKeyPairs(GetKeyPairsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ecp/getKeyPairs:getKeyPairs", TypeShape.of(GetKeyPairsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ecp Key Pairs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.130.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecp.EcpFunctions;
+     * import com.pulumi.alicloud.ecp.inputs.GetKeyPairsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EcpFunctions.getKeyPairs();
+     * 
+     *         ctx.export("ecpKeyPairId1", ids.applyValue(getKeyPairsResult -> getKeyPairsResult.pairs()[0].id()));
+     *         final var nameRegex = EcpFunctions.getKeyPairs(GetKeyPairsArgs.builder()
+     *             .nameRegex("^my-KeyPair")
+     *             .build());
+     * 
+     *         ctx.export("ecpKeyPairId2", nameRegex.applyValue(getKeyPairsResult -> getKeyPairsResult.pairs()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getKeyPairs(GetKeyPairsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecp/getKeyPairs:getKeyPairs", TypeShape.of(GetKeyPairsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecp Key Pairs of the current Alibaba Cloud user. * @@ -1382,6 +1572,51 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ecp/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the available zones with the Cloud Phone (ECP) Instance of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.158.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecp.EcpFunctions;
+     * import com.pulumi.alicloud.ecp.inputs.GetZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = EcpFunctions.getZones();
+     * 
+     *         ctx.export("alicloudNasZonesId", default_.zones()[0].zoneId());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecp/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the available zones with the Cloud Phone (ECP) Instance of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/ecs/EcsFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/ecs/EcsFunctions.java index ce874d42ef..432d0012e3 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/ecs/EcsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/ecs/EcsFunctions.java @@ -110,6 +110,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class EcsFunctions { @@ -338,6 +339,51 @@ public static CompletableFuture getActivationsPlain(GetAct public static Output getActivations(GetActivationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ecs/getActivations:getActivations", TypeShape.of(GetActivationsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ecs Activations of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.177.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetActivationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EcsFunctions.getActivations();
+     * 
+     *         ctx.export("ecsActivationId1", ids.applyValue(getActivationsResult -> getActivationsResult.activations()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getActivations(GetActivationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getActivations:getActivations", TypeShape.of(GetActivationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecs Activations of the current Alibaba Cloud user. * @@ -623,6 +669,54 @@ public static CompletableFuture getAutoSnapshotPo public static Output getAutoSnapshotPolicies(GetAutoSnapshotPoliciesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ecs/getAutoSnapshotPolicies:getAutoSnapshotPolicies", TypeShape.of(GetAutoSnapshotPoliciesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ecs Auto Snapshot Policies of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.117.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetAutoSnapshotPoliciesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = EcsFunctions.getAutoSnapshotPolicies(GetAutoSnapshotPoliciesArgs.builder()
+     *             .ids("sp-bp14e66xxxxxxxx")
+     *             .nameRegex("tf-testAcc")
+     *             .build());
+     * 
+     *         ctx.export("firstEcsAutoSnapshotPolicyId", example.applyValue(getAutoSnapshotPoliciesResult -> getAutoSnapshotPoliciesResult.policies()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAutoSnapshotPolicies(GetAutoSnapshotPoliciesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getAutoSnapshotPolicies:getAutoSnapshotPolicies", TypeShape.of(GetAutoSnapshotPoliciesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecs Auto Snapshot Policies of the current Alibaba Cloud user. * @@ -911,6 +1005,54 @@ public static CompletableFuture getCapacityReserv public static Output getCapacityReservations(GetCapacityReservationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ecs/getCapacityReservations:getCapacityReservations", TypeShape.of(GetCapacityReservationsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Ecs Capacity Reservation available to the user. + * + * > **NOTE:** Available in 1.195.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetCapacityReservationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = EcsFunctions.getCapacityReservations(GetCapacityReservationsArgs.builder()
+     *             .ids(defaultAlicloudEcsCapacityReservation.id())
+     *             .nameRegex(defaultAlicloudEcsCapacityReservation.name())
+     *             .instanceType("ecs.c6.large")
+     *             .platform("linux")
+     *             .build());
+     * 
+     *         ctx.export("alicloudEcsCapacityReservationExampleId", default_.reservations()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCapacityReservations(GetCapacityReservationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getCapacityReservations:getCapacityReservations", TypeShape.of(GetCapacityReservationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Ecs Capacity Reservation available to the user. * @@ -1199,6 +1341,54 @@ public static CompletableFuture getCommandsPlain(GetCommandsP public static Output getCommands(GetCommandsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ecs/getCommands:getCommands", TypeShape.of(GetCommandsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ecs Commands of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.116.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetCommandsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = EcsFunctions.getCommands(GetCommandsArgs.builder()
+     *             .ids("E2RY53-xxxx")
+     *             .nameRegex("tf-testAcc")
+     *             .build());
+     * 
+     *         ctx.export("firstEcsCommandId", example.applyValue(getCommandsResult -> getCommandsResult.commands()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCommands(GetCommandsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getCommands:getCommands", TypeShape.of(GetCommandsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecs Commands of the current Alibaba Cloud user. * @@ -1487,6 +1677,54 @@ public static CompletableFuture getDedicatedHostsPlain( public static Output getDedicatedHosts(GetDedicatedHostsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ecs/getDedicatedHosts:getDedicatedHosts", TypeShape.of(GetDedicatedHostsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of ECS Dedicated Hosts in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in v1.91.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetDedicatedHostsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var dedicatedHostsDs = EcsFunctions.getDedicatedHosts(GetDedicatedHostsArgs.builder()
+     *             .nameRegex("tf-testAcc")
+     *             .dedicatedHostType("ddh.g5")
+     *             .status("Available")
+     *             .build());
+     * 
+     *         ctx.export("firstDedicatedHostsId", dedicatedHostsDs.applyValue(getDedicatedHostsResult -> getDedicatedHostsResult.hosts()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDedicatedHosts(GetDedicatedHostsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getDedicatedHosts:getDedicatedHosts", TypeShape.of(GetDedicatedHostsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of ECS Dedicated Hosts in an Alibaba Cloud account according to the specified filters. * @@ -1802,18 +2040,16 @@ public static Output getDisks(GetDisksArgs args, InvokeOptions o * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getDisksPlain(GetDisksPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:ecs/getDisks:getDisks", TypeShape.of(GetDisksResult.class), args, Utilities.withVersion(options)); + public static Output getDisks(GetDisksArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getDisks:getDisks", TypeShape.of(GetDisksResult.class), args, Utilities.withVersion(options)); } /** - * This data source provides the Ecs Dedicated Host Clusters of the current Alibaba Cloud user. + * > **DEPRECATED:** This datasource has been renamed to alicloud.ecs.getEcsDisks from version 1.122.0. * - * > **NOTE:** Available in v1.146.0+. + * This data source provides the disks of the current Alibaba Cloud user. * * ## Example Usage * - * Basic Usage - * * <!--Start PulumiCodeChooser --> *
      * {@code
@@ -1823,7 +2059,7 @@ public static CompletableFuture getDisksPlain(GetDisksPlainArgs
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.alicloud.ecs.EcsFunctions;
-     * import com.pulumi.alicloud.ecs.inputs.GetEcsDedicatedHostClustersArgs;
+     * import com.pulumi.alicloud.ecs.inputs.GetDisksArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1837,19 +2073,66 @@ public static CompletableFuture getDisksPlain(GetDisksPlainArgs
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var ids = EcsFunctions.getEcsDedicatedHostClusters(GetEcsDedicatedHostClustersArgs.builder()
-     *             .ids("example_id")
-     *             .build());
-     * 
-     *         ctx.export("ecsDedicatedHostClusterId1", ids.applyValue(getEcsDedicatedHostClustersResult -> getEcsDedicatedHostClustersResult.clusters()[0].id()));
-     *         final var nameRegex = EcsFunctions.getEcsDedicatedHostClusters(GetEcsDedicatedHostClustersArgs.builder()
-     *             .nameRegex("^my-DedicatedHostCluster")
+     *         final var disksDs = EcsFunctions.getDisks(GetDisksArgs.builder()
+     *             .nameRegex("sample_disk")
      *             .build());
      * 
-     *         ctx.export("ecsDedicatedHostClusterId2", nameRegex.applyValue(getEcsDedicatedHostClustersResult -> getEcsDedicatedHostClustersResult.clusters()[0].id()));
-     *         final var zoneId = EcsFunctions.getEcsDedicatedHostClusters(GetEcsDedicatedHostClustersArgs.builder()
-     *             .zoneId("example_value")
-     *             .build());
+     *         ctx.export("firstDiskId", disksDs.applyValue(getDisksResult -> getDisksResult.disks()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getDisksPlain(GetDisksPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:ecs/getDisks:getDisks", TypeShape.of(GetDisksResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Ecs Dedicated Host Clusters of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.146.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetEcsDedicatedHostClustersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EcsFunctions.getEcsDedicatedHostClusters(GetEcsDedicatedHostClustersArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("ecsDedicatedHostClusterId1", ids.applyValue(getEcsDedicatedHostClustersResult -> getEcsDedicatedHostClustersResult.clusters()[0].id()));
+     *         final var nameRegex = EcsFunctions.getEcsDedicatedHostClusters(GetEcsDedicatedHostClustersArgs.builder()
+     *             .nameRegex("^my-DedicatedHostCluster")
+     *             .build());
+     * 
+     *         ctx.export("ecsDedicatedHostClusterId2", nameRegex.applyValue(getEcsDedicatedHostClustersResult -> getEcsDedicatedHostClustersResult.clusters()[0].id()));
+     *         final var zoneId = EcsFunctions.getEcsDedicatedHostClusters(GetEcsDedicatedHostClustersArgs.builder()
+     *             .zoneId("example_value")
+     *             .build());
      * 
      *         ctx.export("ecsDedicatedHostClusterId3", zoneId.applyValue(getEcsDedicatedHostClustersResult -> getEcsDedicatedHostClustersResult.clusters()[0].id()));
      *         final var clusterName = EcsFunctions.getEcsDedicatedHostClusters(GetEcsDedicatedHostClustersArgs.builder()
@@ -2140,6 +2423,73 @@ public static CompletableFuture getEcsDedicat
     public static Output getEcsDedicatedHostClusters(GetEcsDedicatedHostClustersArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("alicloud:ecs/getEcsDedicatedHostClusters:getEcsDedicatedHostClusters", TypeShape.of(GetEcsDedicatedHostClustersResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * This data source provides the Ecs Dedicated Host Clusters of the current Alibaba Cloud user.
+     * 
+     * > **NOTE:** Available in v1.146.0+.
+     * 
+     * ## Example Usage
+     * 
+     * Basic Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetEcsDedicatedHostClustersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EcsFunctions.getEcsDedicatedHostClusters(GetEcsDedicatedHostClustersArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("ecsDedicatedHostClusterId1", ids.applyValue(getEcsDedicatedHostClustersResult -> getEcsDedicatedHostClustersResult.clusters()[0].id()));
+     *         final var nameRegex = EcsFunctions.getEcsDedicatedHostClusters(GetEcsDedicatedHostClustersArgs.builder()
+     *             .nameRegex("^my-DedicatedHostCluster")
+     *             .build());
+     * 
+     *         ctx.export("ecsDedicatedHostClusterId2", nameRegex.applyValue(getEcsDedicatedHostClustersResult -> getEcsDedicatedHostClustersResult.clusters()[0].id()));
+     *         final var zoneId = EcsFunctions.getEcsDedicatedHostClusters(GetEcsDedicatedHostClustersArgs.builder()
+     *             .zoneId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("ecsDedicatedHostClusterId3", zoneId.applyValue(getEcsDedicatedHostClustersResult -> getEcsDedicatedHostClustersResult.clusters()[0].id()));
+     *         final var clusterName = EcsFunctions.getEcsDedicatedHostClusters(GetEcsDedicatedHostClustersArgs.builder()
+     *             .dedicatedHostClusterName("example_value")
+     *             .build());
+     * 
+     *         ctx.export("ecsDedicatedHostClusterId4", clusterName.applyValue(getEcsDedicatedHostClustersResult -> getEcsDedicatedHostClustersResult.clusters()[0].id()));
+     *         final var clusterIds = EcsFunctions.getEcsDedicatedHostClusters(GetEcsDedicatedHostClustersArgs.builder()
+     *             .dedicatedHostClusterIds("example_id")
+     *             .build());
+     * 
+     *         ctx.export("ecsDedicatedHostClusterId5", clusterIds.applyValue(getEcsDedicatedHostClustersResult -> getEcsDedicatedHostClustersResult.clusters()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEcsDedicatedHostClusters(GetEcsDedicatedHostClustersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getEcsDedicatedHostClusters:getEcsDedicatedHostClusters", TypeShape.of(GetEcsDedicatedHostClustersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecs Dedicated Host Clusters of the current Alibaba Cloud user. * @@ -2467,6 +2817,58 @@ public static CompletableFuture getEcsDeploymentSets public static Output getEcsDeploymentSets(GetEcsDeploymentSetsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ecs/getEcsDeploymentSets:getEcsDeploymentSets", TypeShape.of(GetEcsDeploymentSetsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ecs Deployment Sets of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.140.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetEcsDeploymentSetsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EcsFunctions.getEcsDeploymentSets(GetEcsDeploymentSetsArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("ecsDeploymentSetId1", ids.applyValue(getEcsDeploymentSetsResult -> getEcsDeploymentSetsResult.sets()[0].id()));
+     *         final var nameRegex = EcsFunctions.getEcsDeploymentSets(GetEcsDeploymentSetsArgs.builder()
+     *             .nameRegex("^my-DeploymentSet")
+     *             .build());
+     * 
+     *         ctx.export("ecsDeploymentSetId2", nameRegex.applyValue(getEcsDeploymentSetsResult -> getEcsDeploymentSetsResult.sets()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEcsDeploymentSets(GetEcsDeploymentSetsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getEcsDeploymentSets:getEcsDeploymentSets", TypeShape.of(GetEcsDeploymentSetsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecs Deployment Sets of the current Alibaba Cloud user. * @@ -2759,6 +3161,54 @@ public static CompletableFuture getEcsDisksPlain(GetEcsDisksP public static Output getEcsDisks(GetEcsDisksArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ecs/getEcsDisks:getEcsDisks", TypeShape.of(GetEcsDisksResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ecs Disks of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.122.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetEcsDisksArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = EcsFunctions.getEcsDisks(GetEcsDisksArgs.builder()
+     *             .ids("d-artgdsvdvxxxx")
+     *             .nameRegex("tf-test")
+     *             .build());
+     * 
+     *         ctx.export("firstEcsDiskId", example.applyValue(getEcsDisksResult -> getEcsDisksResult.disks()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEcsDisks(GetEcsDisksArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getEcsDisks:getEcsDisks", TypeShape.of(GetEcsDisksResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecs Disks of the current Alibaba Cloud user. * @@ -3116,13 +3566,13 @@ public static Output getEcsImageComponents(GetEcsIm * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getEcsImageComponentsPlain(GetEcsImageComponentsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:ecs/getEcsImageComponents:getEcsImageComponents", TypeShape.of(GetEcsImageComponentsResult.class), args, Utilities.withVersion(options)); + public static Output getEcsImageComponents(GetEcsImageComponentsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getEcsImageComponents:getEcsImageComponents", TypeShape.of(GetEcsImageComponentsResult.class), args, Utilities.withVersion(options)); } /** - * This data source provides the Ecs Image Pipelines of the current Alibaba Cloud user. + * This data source provides the Ecs Image Components of the current Alibaba Cloud user. * - * > **NOTE:** Available in v1.163.0+. + * > **NOTE:** Available in v1.159.0+. * * ## Example Usage * @@ -3137,7 +3587,7 @@ public static CompletableFuture getEcsImageComponen * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.alicloud.ecs.EcsFunctions; - * import com.pulumi.alicloud.ecs.inputs.GetEcsImagePipelineArgs; + * import com.pulumi.alicloud.ecs.inputs.GetEcsImageComponentsArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -3151,16 +3601,16 @@ public static CompletableFuture getEcsImageComponen * } * * public static void stack(Context ctx) { - * final var ids = EcsFunctions.getEcsImagePipeline(GetEcsImagePipelineArgs.builder() - * .ids("example_value") + * final var ids = EcsFunctions.getEcsImageComponents(GetEcsImageComponentsArgs.builder() + * .ids("example_id") * .build()); * - * ctx.export("ecsImagePipelineId1", ids.applyValue(getEcsImagePipelineResult -> getEcsImagePipelineResult.pipelines()[0].id())); - * final var nameRegex = EcsFunctions.getEcsImagePipeline(GetEcsImagePipelineArgs.builder() - * .nameRegex("^my-ImagePipeline") + * ctx.export("ecsImageComponentId1", ids.applyValue(getEcsImageComponentsResult -> getEcsImageComponentsResult.components()[0].id())); + * final var nameRegex = EcsFunctions.getEcsImageComponents(GetEcsImageComponentsArgs.builder() + * .nameRegex("^my-ImageComponent") * .build()); * - * ctx.export("ecsImagePipelineId2", nameRegex.applyValue(getEcsImagePipelineResult -> getEcsImagePipelineResult.pipelines()[0].id())); + * ctx.export("ecsImageComponentId2", nameRegex.applyValue(getEcsImageComponentsResult -> getEcsImageComponentsResult.components()[0].id())); * } * } * } @@ -3168,8 +3618,8 @@ public static CompletableFuture getEcsImageComponen * <!--End PulumiCodeChooser --> * */ - public static Output getEcsImagePipeline() { - return getEcsImagePipeline(GetEcsImagePipelineArgs.Empty, InvokeOptions.Empty); + public static CompletableFuture getEcsImageComponentsPlain(GetEcsImageComponentsPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:ecs/getEcsImageComponents:getEcsImageComponents", TypeShape.of(GetEcsImageComponentsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Ecs Image Pipelines of the current Alibaba Cloud user. @@ -3220,8 +3670,8 @@ public static Output getEcsImagePipeline() { * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getEcsImagePipelinePlain() { - return getEcsImagePipelinePlain(GetEcsImagePipelinePlainArgs.Empty, InvokeOptions.Empty); + public static Output getEcsImagePipeline() { + return getEcsImagePipeline(GetEcsImagePipelineArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Ecs Image Pipelines of the current Alibaba Cloud user. @@ -3272,8 +3722,8 @@ public static CompletableFuture getEcsImagePipelinePl * <!--End PulumiCodeChooser --> * */ - public static Output getEcsImagePipeline(GetEcsImagePipelineArgs args) { - return getEcsImagePipeline(args, InvokeOptions.Empty); + public static CompletableFuture getEcsImagePipelinePlain() { + return getEcsImagePipelinePlain(GetEcsImagePipelinePlainArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Ecs Image Pipelines of the current Alibaba Cloud user. @@ -3324,9 +3774,61 @@ public static Output getEcsImagePipeline(GetEcsImageP * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getEcsImagePipelinePlain(GetEcsImagePipelinePlainArgs args) { - return getEcsImagePipelinePlain(args, InvokeOptions.Empty); - } + public static Output getEcsImagePipeline(GetEcsImagePipelineArgs args) { + return getEcsImagePipeline(args, InvokeOptions.Empty); + } + /** + * This data source provides the Ecs Image Pipelines of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.163.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetEcsImagePipelineArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EcsFunctions.getEcsImagePipeline(GetEcsImagePipelineArgs.builder()
+     *             .ids("example_value")
+     *             .build());
+     * 
+     *         ctx.export("ecsImagePipelineId1", ids.applyValue(getEcsImagePipelineResult -> getEcsImagePipelineResult.pipelines()[0].id()));
+     *         final var nameRegex = EcsFunctions.getEcsImagePipeline(GetEcsImagePipelineArgs.builder()
+     *             .nameRegex("^my-ImagePipeline")
+     *             .build());
+     * 
+     *         ctx.export("ecsImagePipelineId2", nameRegex.applyValue(getEcsImagePipelineResult -> getEcsImagePipelineResult.pipelines()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getEcsImagePipelinePlain(GetEcsImagePipelinePlainArgs args) { + return getEcsImagePipelinePlain(args, InvokeOptions.Empty); + } /** * This data source provides the Ecs Image Pipelines of the current Alibaba Cloud user. * @@ -3379,6 +3881,58 @@ public static CompletableFuture getEcsImagePipelinePl public static Output getEcsImagePipeline(GetEcsImagePipelineArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ecs/getEcsImagePipeline:getEcsImagePipeline", TypeShape.of(GetEcsImagePipelineResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ecs Image Pipelines of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.163.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetEcsImagePipelineArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EcsFunctions.getEcsImagePipeline(GetEcsImagePipelineArgs.builder()
+     *             .ids("example_value")
+     *             .build());
+     * 
+     *         ctx.export("ecsImagePipelineId1", ids.applyValue(getEcsImagePipelineResult -> getEcsImagePipelineResult.pipelines()[0].id()));
+     *         final var nameRegex = EcsFunctions.getEcsImagePipeline(GetEcsImagePipelineArgs.builder()
+     *             .nameRegex("^my-ImagePipeline")
+     *             .build());
+     * 
+     *         ctx.export("ecsImagePipelineId2", nameRegex.applyValue(getEcsImagePipelineResult -> getEcsImagePipelineResult.pipelines()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEcsImagePipeline(GetEcsImagePipelineArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getEcsImagePipeline:getEcsImagePipeline", TypeShape.of(GetEcsImagePipelineResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecs Image Pipelines of the current Alibaba Cloud user. * @@ -3666,6 +4220,53 @@ public static CompletableFuture getEcsInvocationsPlain( public static Output getEcsInvocations(GetEcsInvocationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ecs/getEcsInvocations:getEcsInvocations", TypeShape.of(GetEcsInvocationsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ecs Invocations of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.168.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetEcsInvocationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EcsFunctions.getEcsInvocations(GetEcsInvocationsArgs.builder()
+     *             .ids("example-id")
+     *             .build());
+     * 
+     *         ctx.export("ecsInvocationId1", ids.applyValue(getEcsInvocationsResult -> getEcsInvocationsResult.invocations()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEcsInvocations(GetEcsInvocationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getEcsInvocations:getEcsInvocations", TypeShape.of(GetEcsInvocationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecs Invocations of the current Alibaba Cloud user. * @@ -3953,6 +4554,54 @@ public static CompletableFuture getEcsKeyPairsPlain(GetEcs public static Output getEcsKeyPairs(GetEcsKeyPairsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ecs/getEcsKeyPairs:getEcsKeyPairs", TypeShape.of(GetEcsKeyPairsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ecs Key Pairs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.121.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetEcsKeyPairsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = EcsFunctions.getEcsKeyPairs(GetEcsKeyPairsArgs.builder()
+     *             .ids("key_pair_name")
+     *             .nameRegex("key_pair_name")
+     *             .build());
+     * 
+     *         ctx.export("firstEcsKeyPairId", example.applyValue(getEcsKeyPairsResult -> getEcsKeyPairsResult.pairs()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEcsKeyPairs(GetEcsKeyPairsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getEcsKeyPairs:getEcsKeyPairs", TypeShape.of(GetEcsKeyPairsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecs Key Pairs of the current Alibaba Cloud user. * @@ -4928,13 +5577,13 @@ public static Output getEcsLaunchTemplates(GetEcsLa * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getEcsLaunchTemplatesPlain(GetEcsLaunchTemplatesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:ecs/getEcsLaunchTemplates:getEcsLaunchTemplates", TypeShape.of(GetEcsLaunchTemplatesResult.class), args, Utilities.withVersion(options)); + public static Output getEcsLaunchTemplates(GetEcsLaunchTemplatesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getEcsLaunchTemplates:getEcsLaunchTemplates", TypeShape.of(GetEcsLaunchTemplatesResult.class), args, Utilities.withVersion(options)); } /** - * This data source provides the Ecs Network Interface Permissions of the current Alibaba Cloud user. + * This data source provides the Ecs Launch Templates of the current Alibaba Cloud user. * - * > **NOTE:** Available in v1.166.0+. + * > **NOTE:** Available since v1.120.0. * * ## Example Usage * @@ -4948,8 +5597,23 @@ public static CompletableFuture getEcsLaunchTemplat * import com.pulumi.Context; * import com.pulumi.Pulumi; * import com.pulumi.core.Output; + * import com.pulumi.alicloud.AlicloudFunctions; + * import com.pulumi.alicloud.inputs.GetZonesArgs; * import com.pulumi.alicloud.ecs.EcsFunctions; - * import com.pulumi.alicloud.ecs.inputs.GetEcsNetworkInterfacePermissionsArgs; + * import com.pulumi.alicloud.ecs.inputs.GetInstanceTypesArgs; + * import com.pulumi.alicloud.ecs.inputs.GetImagesArgs; + * import com.pulumi.alicloud.vpc.Network; + * import com.pulumi.alicloud.vpc.NetworkArgs; + * import com.pulumi.alicloud.vpc.Switch; + * import com.pulumi.alicloud.vpc.SwitchArgs; + * import com.pulumi.alicloud.ecs.SecurityGroup; + * import com.pulumi.alicloud.ecs.SecurityGroupArgs; + * import com.pulumi.alicloud.ecs.EcsLaunchTemplate; + * import com.pulumi.alicloud.ecs.EcsLaunchTemplateArgs; + * import com.pulumi.alicloud.ecs.inputs.EcsLaunchTemplateSystemDiskArgs; + * import com.pulumi.alicloud.ecs.inputs.EcsLaunchTemplateNetworkInterfacesArgs; + * import com.pulumi.alicloud.ecs.inputs.EcsLaunchTemplateDataDiskArgs; + * import com.pulumi.alicloud.ecs.inputs.GetEcsLaunchTemplatesArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -4963,30 +5627,170 @@ public static CompletableFuture getEcsLaunchTemplat * } * * public static void stack(Context ctx) { - * final var ids = EcsFunctions.getEcsNetworkInterfacePermissions(GetEcsNetworkInterfacePermissionsArgs.builder() - * .ids("example_value") - * .networkInterfaceId("example_value") + * final var default = AlicloudFunctions.getZones(GetZonesArgs.builder() + * .availableDiskCategory("cloud_efficiency") + * .availableResourceCreation("VSwitch") * .build()); * - * ctx.export("ecsNetworkInterfacePermissionId1", ids.applyValue(getEcsNetworkInterfacePermissionsResult -> getEcsNetworkInterfacePermissionsResult.permissions()[0].id())); - * } - * } - * } - *
- * <!--End PulumiCodeChooser --> - * - */ - public static Output getEcsNetworkInterfacePermissions(GetEcsNetworkInterfacePermissionsArgs args) { - return getEcsNetworkInterfacePermissions(args, InvokeOptions.Empty); - } - /** - * This data source provides the Ecs Network Interface Permissions of the current Alibaba Cloud user. + * final var defaultGetInstanceTypes = EcsFunctions.getInstanceTypes(GetInstanceTypesArgs.builder() + * .availabilityZone(default_.zones()[0].id()) + * .build()); * - * > **NOTE:** Available in v1.166.0+. + * final var defaultGetImages = EcsFunctions.getImages(GetImagesArgs.builder() + * .nameRegex("^ubuntu_18.*64") + * .owners("system") + * .build()); * - * ## Example Usage + * var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder() + * .vpcName("terraform-example") + * .cidrBlock("172.17.3.0/24") + * .build()); * - * Basic Usage + * var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder() + * .vswitchName("terraform-example") + * .cidrBlock("172.17.3.0/24") + * .vpcId(defaultNetwork.id()) + * .zoneId(default_.zones()[0].id()) + * .build()); + * + * var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder() + * .name("terraform-example") + * .vpcId(defaultNetwork.id()) + * .build()); + * + * var defaultEcsLaunchTemplate = new EcsLaunchTemplate("defaultEcsLaunchTemplate", EcsLaunchTemplateArgs.builder() + * .launchTemplateName("terraform-example") + * .description("terraform-example") + * .imageId(defaultGetImages.applyValue(getImagesResult -> getImagesResult.images()[0].id())) + * .hostName("terraform-example") + * .instanceChargeType("PrePaid") + * .instanceName("terraform-example") + * .instanceType(defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()[0].id())) + * .internetChargeType("PayByBandwidth") + * .internetMaxBandwidthIn("5") + * .internetMaxBandwidthOut("5") + * .ioOptimized("optimized") + * .keyPairName("key_pair_name") + * .ramRoleName("ram_role_name") + * .networkType("vpc") + * .securityEnhancementStrategy("Active") + * .spotPriceLimit("5") + * .spotStrategy("SpotWithPriceLimit") + * .securityGroupIds(defaultSecurityGroup.id()) + * .systemDisk(EcsLaunchTemplateSystemDiskArgs.builder() + * .category("cloud_ssd") + * .description("Test For Terraform") + * .name("terraform-example") + * .size("40") + * .deleteWithInstance("false") + * .build()) + * .userData("xxxxxxx") + * .vswitchId(defaultSwitch.id()) + * .vpcId(defaultNetwork.id()) + * .zoneId(default_.zones()[0].id()) + * .templateTags(Map.ofEntries( + * Map.entry("Create", "Terraform"), + * Map.entry("For", "example") + * )) + * .networkInterfaces(EcsLaunchTemplateNetworkInterfacesArgs.builder() + * .name("eth0") + * .description("hello1") + * .primaryIp("10.0.0.2") + * .securityGroupId(defaultSecurityGroup.id()) + * .vswitchId(defaultSwitch.id()) + * .build()) + * .dataDisks( + * EcsLaunchTemplateDataDiskArgs.builder() + * .name("disk1") + * .description("description") + * .deleteWithInstance("true") + * .category("cloud") + * .encrypted("false") + * .performanceLevel("PL0") + * .size("20") + * .build(), + * EcsLaunchTemplateDataDiskArgs.builder() + * .name("disk2") + * .description("description2") + * .deleteWithInstance("true") + * .category("cloud") + * .encrypted("false") + * .performanceLevel("PL0") + * .size("20") + * .build()) + * .build()); + * + * final var example = EcsFunctions.getEcsLaunchTemplates(GetEcsLaunchTemplatesArgs.builder() + * .ids(defaultEcsLaunchTemplate.id()) + * .build()); + * + * ctx.export("firstEcsLaunchTemplateId", example.applyValue(getEcsLaunchTemplatesResult -> getEcsLaunchTemplatesResult).applyValue(example -> example.applyValue(getEcsLaunchTemplatesResult -> getEcsLaunchTemplatesResult.templates()[0].id()))); + * } + * } + * } + *
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getEcsLaunchTemplatesPlain(GetEcsLaunchTemplatesPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:ecs/getEcsLaunchTemplates:getEcsLaunchTemplates", TypeShape.of(GetEcsLaunchTemplatesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Ecs Network Interface Permissions of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.166.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetEcsNetworkInterfacePermissionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EcsFunctions.getEcsNetworkInterfacePermissions(GetEcsNetworkInterfacePermissionsArgs.builder()
+     *             .ids("example_value")
+     *             .networkInterfaceId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("ecsNetworkInterfacePermissionId1", ids.applyValue(getEcsNetworkInterfacePermissionsResult -> getEcsNetworkInterfacePermissionsResult.permissions()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEcsNetworkInterfacePermissions(GetEcsNetworkInterfacePermissionsArgs args) { + return getEcsNetworkInterfacePermissions(args, InvokeOptions.Empty); + } + /** + * This data source provides the Ecs Network Interface Permissions of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.166.0+. + * + * ## Example Usage + * + * Basic Usage * * <!--Start PulumiCodeChooser --> *
@@ -5075,6 +5879,54 @@ public static CompletableFuture getEcsN
     public static Output getEcsNetworkInterfacePermissions(GetEcsNetworkInterfacePermissionsArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("alicloud:ecs/getEcsNetworkInterfacePermissions:getEcsNetworkInterfacePermissions", TypeShape.of(GetEcsNetworkInterfacePermissionsResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * This data source provides the Ecs Network Interface Permissions of the current Alibaba Cloud user.
+     * 
+     * > **NOTE:** Available in v1.166.0+.
+     * 
+     * ## Example Usage
+     * 
+     * Basic Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetEcsNetworkInterfacePermissionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EcsFunctions.getEcsNetworkInterfacePermissions(GetEcsNetworkInterfacePermissionsArgs.builder()
+     *             .ids("example_value")
+     *             .networkInterfaceId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("ecsNetworkInterfacePermissionId1", ids.applyValue(getEcsNetworkInterfacePermissionsResult -> getEcsNetworkInterfacePermissionsResult.permissions()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEcsNetworkInterfacePermissions(GetEcsNetworkInterfacePermissionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getEcsNetworkInterfacePermissions:getEcsNetworkInterfacePermissions", TypeShape.of(GetEcsNetworkInterfacePermissionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecs Network Interface Permissions of the current Alibaba Cloud user. * @@ -5358,6 +6210,53 @@ public static CompletableFuture getEcsNetworkInte public static Output getEcsNetworkInterfaces(GetEcsNetworkInterfacesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ecs/getEcsNetworkInterfaces:getEcsNetworkInterfaces", TypeShape.of(GetEcsNetworkInterfacesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ecs Network Interfaces of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.123.1. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetEcsNetworkInterfacesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = EcsFunctions.getEcsNetworkInterfaces(GetEcsNetworkInterfacesArgs.builder()
+     *             .nameRegex("eni-ipv6")
+     *             .build());
+     * 
+     *         ctx.export("firstEcsNetworkInterfaceId", example.applyValue(getEcsNetworkInterfacesResult -> getEcsNetworkInterfacesResult.interfaces()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEcsNetworkInterfaces(GetEcsNetworkInterfacesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getEcsNetworkInterfaces:getEcsNetworkInterfaces", TypeShape.of(GetEcsNetworkInterfacesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecs Network Interfaces of the current Alibaba Cloud user. * @@ -5645,6 +6544,54 @@ public static CompletableFuture getEcsPrefixListsPlain( public static Output getEcsPrefixLists(GetEcsPrefixListsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ecs/getEcsPrefixLists:getEcsPrefixLists", TypeShape.of(GetEcsPrefixListsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ecs Prefix Lists of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.152.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetEcsPrefixListsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = EcsFunctions.getEcsPrefixLists(GetEcsPrefixListsArgs.builder()
+     *             .ids("E2RY53-xxxx")
+     *             .nameRegex("tf-testAcc")
+     *             .build());
+     * 
+     *         ctx.export("outputId", example.applyValue(getEcsPrefixListsResult -> getEcsPrefixListsResult.lists()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEcsPrefixLists(GetEcsPrefixListsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getEcsPrefixLists:getEcsPrefixLists", TypeShape.of(GetEcsPrefixListsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecs Prefix Lists of the current Alibaba Cloud user. * @@ -6054,7 +7001,117 @@ public static Output getEcsSnapshotGroups(GetEcsSnap * .instanceId("example-instance_id") * .build()); * - * ctx.export("ecsSnapshotGroupId4", instanceId.applyValue(getEcsSnapshotGroupsResult -> getEcsSnapshotGroupsResult.groups()[0].id())); + * ctx.export("ecsSnapshotGroupId4", instanceId.applyValue(getEcsSnapshotGroupsResult -> getEcsSnapshotGroupsResult.groups()[0].id())); + * } + * } + * } + *
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEcsSnapshotGroups(GetEcsSnapshotGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getEcsSnapshotGroups:getEcsSnapshotGroups", TypeShape.of(GetEcsSnapshotGroupsResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Ecs Snapshot Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.160.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetEcsSnapshotGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EcsFunctions.getEcsSnapshotGroups(GetEcsSnapshotGroupsArgs.builder()
+     *             .ids("example-id")
+     *             .build());
+     * 
+     *         ctx.export("ecsSnapshotGroupId1", ids.applyValue(getEcsSnapshotGroupsResult -> getEcsSnapshotGroupsResult.groups()[0].id()));
+     *         final var nameRegex = EcsFunctions.getEcsSnapshotGroups(GetEcsSnapshotGroupsArgs.builder()
+     *             .nameRegex("^my-SnapshotGroup")
+     *             .build());
+     * 
+     *         ctx.export("ecsSnapshotGroupId2", nameRegex.applyValue(getEcsSnapshotGroupsResult -> getEcsSnapshotGroupsResult.groups()[0].id()));
+     *         final var status = EcsFunctions.getEcsSnapshotGroups(GetEcsSnapshotGroupsArgs.builder()
+     *             .status("accomplished")
+     *             .build());
+     * 
+     *         ctx.export("ecsSnapshotGroupId3", status.applyValue(getEcsSnapshotGroupsResult -> getEcsSnapshotGroupsResult.groups()[0].id()));
+     *         final var instanceId = EcsFunctions.getEcsSnapshotGroups(GetEcsSnapshotGroupsArgs.builder()
+     *             .instanceId("example-instance_id")
+     *             .build());
+     * 
+     *         ctx.export("ecsSnapshotGroupId4", instanceId.applyValue(getEcsSnapshotGroupsResult -> getEcsSnapshotGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getEcsSnapshotGroupsPlain(GetEcsSnapshotGroupsPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:ecs/getEcsSnapshotGroups:getEcsSnapshotGroups", TypeShape.of(GetEcsSnapshotGroupsResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Ecs Snapshots of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.120.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetEcsSnapshotsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = EcsFunctions.getEcsSnapshots(GetEcsSnapshotsArgs.builder()
+     *             .ids("s-bp1fvuxxxxxxxx")
+     *             .nameRegex("tf-test")
+     *             .build());
+     * 
+     *         ctx.export("firstEcsSnapshotId", example.applyValue(getEcsSnapshotsResult -> getEcsSnapshotsResult.snapshots()[0].id()));
      *     }
      * }
      * }
@@ -6062,8 +7119,8 @@ public static Output getEcsSnapshotGroups(GetEcsSnap
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getEcsSnapshotGroupsPlain(GetEcsSnapshotGroupsPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("alicloud:ecs/getEcsSnapshotGroups:getEcsSnapshotGroups", TypeShape.of(GetEcsSnapshotGroupsResult.class), args, Utilities.withVersion(options));
+    public static Output getEcsSnapshots() {
+        return getEcsSnapshots(GetEcsSnapshotsArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Ecs Snapshots of the current Alibaba Cloud user.
@@ -6110,8 +7167,8 @@ public static CompletableFuture getEcsSnapshotGroups
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getEcsSnapshots() {
-        return getEcsSnapshots(GetEcsSnapshotsArgs.Empty, InvokeOptions.Empty);
+    public static CompletableFuture getEcsSnapshotsPlain() {
+        return getEcsSnapshotsPlain(GetEcsSnapshotsPlainArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Ecs Snapshots of the current Alibaba Cloud user.
@@ -6158,8 +7215,8 @@ public static Output getEcsSnapshots() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getEcsSnapshotsPlain() {
-        return getEcsSnapshotsPlain(GetEcsSnapshotsPlainArgs.Empty, InvokeOptions.Empty);
+    public static Output getEcsSnapshots(GetEcsSnapshotsArgs args) {
+        return getEcsSnapshots(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Ecs Snapshots of the current Alibaba Cloud user.
@@ -6206,8 +7263,8 @@ public static CompletableFuture getEcsSnapshotsPlain() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getEcsSnapshots(GetEcsSnapshotsArgs args) {
-        return getEcsSnapshots(args, InvokeOptions.Empty);
+    public static CompletableFuture getEcsSnapshotsPlain(GetEcsSnapshotsPlainArgs args) {
+        return getEcsSnapshotsPlain(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Ecs Snapshots of the current Alibaba Cloud user.
@@ -6254,8 +7311,8 @@ public static Output getEcsSnapshots(GetEcsSnapshotsArgs
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getEcsSnapshotsPlain(GetEcsSnapshotsPlainArgs args) {
-        return getEcsSnapshotsPlain(args, InvokeOptions.Empty);
+    public static Output getEcsSnapshots(GetEcsSnapshotsArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("alicloud:ecs/getEcsSnapshots:getEcsSnapshots", TypeShape.of(GetEcsSnapshotsResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides the Ecs Snapshots of the current Alibaba Cloud user.
@@ -6302,7 +7359,7 @@ public static CompletableFuture getEcsSnapshotsPlain(GetE
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getEcsSnapshots(GetEcsSnapshotsArgs args, InvokeOptions options) {
+    public static Output getEcsSnapshots(GetEcsSnapshotsArgs args, InvokeOutputOptions options) {
         return Deployment.getInstance().invoke("alicloud:ecs/getEcsSnapshots:getEcsSnapshots", TypeShape.of(GetEcsSnapshotsResult.class), args, Utilities.withVersion(options));
     }
     /**
@@ -6603,6 +7660,56 @@ public static CompletableFuture getEcsStorageC
     public static Output getEcsStorageCapacityUnits(GetEcsStorageCapacityUnitsArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("alicloud:ecs/getEcsStorageCapacityUnits:getEcsStorageCapacityUnits", TypeShape.of(GetEcsStorageCapacityUnitsResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * This data source provides the Ecs Storage Capacity Units of the current Alibaba Cloud user.
+     * 
+     * > **NOTE:** Available in v1.155.0+.
+     * 
+     * ## Example Usage
+     * 
+     * Basic Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetEcsStorageCapacityUnitsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EcsFunctions.getEcsStorageCapacityUnits();
+     * 
+     *         ctx.export("ecsStorageCapacityUnitId1", ids.applyValue(getEcsStorageCapacityUnitsResult -> getEcsStorageCapacityUnitsResult.units()[0].id()));
+     *         final var nameRegex = EcsFunctions.getEcsStorageCapacityUnits(GetEcsStorageCapacityUnitsArgs.builder()
+     *             .nameRegex("^my-StorageCapacityUnit")
+     *             .build());
+     * 
+     *         ctx.export("ecsStorageCapacityUnitId2", nameRegex.applyValue(getEcsStorageCapacityUnitsResult -> getEcsStorageCapacityUnitsResult.units()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEcsStorageCapacityUnits(GetEcsStorageCapacityUnitsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getEcsStorageCapacityUnits:getEcsStorageCapacityUnits", TypeShape.of(GetEcsStorageCapacityUnitsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecs Storage Capacity Units of the current Alibaba Cloud user. * @@ -6893,6 +8000,54 @@ public static CompletableFuture getEipAddressesPlain(GetE public static Output getEipAddresses(GetEipAddressesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ecs/getEipAddresses:getEipAddresses", TypeShape.of(GetEipAddressesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Eip Addresses of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.126.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetEipAddressesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = EcsFunctions.getEipAddresses(GetEipAddressesArgs.builder()
+     *             .ids("eip-bp1jvx5ki6c********")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstEipAddressId", example.applyValue(getEipAddressesResult -> getEipAddressesResult.addresses()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEipAddresses(GetEipAddressesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getEipAddresses:getEipAddresses", TypeShape.of(GetEipAddressesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Eip Addresses of the current Alibaba Cloud user. * @@ -7220,6 +8375,53 @@ public static Output getEips(GetEipsArgs args, InvokeOptions opti * */ @Deprecated /* This function has been deprecated in favour of the getEipAddresses function */ + public static Output getEips(GetEipsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getEips:getEips", TypeShape.of(GetEipsResult.class), args, Utilities.withVersion(options)); + } + /** + * > **DEPRECATED:** This datasource has been deprecated from version `1.126.0`. Please use new datasource alicloud_eip_addresses. + * + * This data source provides a list of EIPs (Elastic IP address) owned by an Alibaba Cloud account. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetEipsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var eipsDs = EcsFunctions.getEips();
+     * 
+     *         ctx.export("firstEipId", eipsDs.applyValue(getEipsResult -> getEipsResult.eips()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * @deprecated + * This function has been deprecated in favour of the getEipAddresses function + * + */ + @Deprecated /* This function has been deprecated in favour of the getEipAddresses function */ public static CompletableFuture getEipsPlain(GetEipsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:ecs/getEips:getEips", TypeShape.of(GetEipsResult.class), args, Utilities.withVersion(options)); } @@ -7482,7 +8684,100 @@ public static Output getElasticityAssurances(GetE * .ids(defaultAlicloudEcsElasticityAssurance.id()) * .build()); * - * ctx.export("alicloudEcsElasticityAssuranceExampleId", default_.assurances()[0].id()); + * ctx.export("alicloudEcsElasticityAssuranceExampleId", default_.assurances()[0].id()); + * } + * } + * } + *
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getElasticityAssurances(GetElasticityAssurancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getElasticityAssurances:getElasticityAssurances", TypeShape.of(GetElasticityAssurancesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides Ecs Elasticity Assurance available to the user. + * + * > **NOTE:** Available in 1.196.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetElasticityAssurancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = EcsFunctions.getElasticityAssurances(GetElasticityAssurancesArgs.builder()
+     *             .ids(defaultAlicloudEcsElasticityAssurance.id())
+     *             .build());
+     * 
+     *         ctx.export("alicloudEcsElasticityAssuranceExampleId", default_.assurances()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getElasticityAssurancesPlain(GetElasticityAssurancesPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:ecs/getElasticityAssurances:getElasticityAssurances", TypeShape.of(GetElasticityAssurancesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Ecs Hpc Clusters of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.116.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetHpcClustersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = EcsFunctions.getHpcClusters(GetHpcClustersArgs.builder()
+     *             .ids("hpc-bp1i09xxxxxxxx")
+     *             .nameRegex("tf-testAcc")
+     *             .build());
+     * 
+     *         ctx.export("firstEcsHpcClusterId", example.applyValue(getHpcClustersResult -> getHpcClustersResult.clusters()[0].id()));
      *     }
      * }
      * }
@@ -7490,8 +8785,8 @@ public static Output getElasticityAssurances(GetE
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getElasticityAssurancesPlain(GetElasticityAssurancesPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("alicloud:ecs/getElasticityAssurances:getElasticityAssurances", TypeShape.of(GetElasticityAssurancesResult.class), args, Utilities.withVersion(options));
+    public static Output getHpcClusters() {
+        return getHpcClusters(GetHpcClustersArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Ecs Hpc Clusters of the current Alibaba Cloud user.
@@ -7538,8 +8833,8 @@ public static CompletableFuture getElasticityAssu
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getHpcClusters() {
-        return getHpcClusters(GetHpcClustersArgs.Empty, InvokeOptions.Empty);
+    public static CompletableFuture getHpcClustersPlain() {
+        return getHpcClustersPlain(GetHpcClustersPlainArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Ecs Hpc Clusters of the current Alibaba Cloud user.
@@ -7586,8 +8881,8 @@ public static Output getHpcClusters() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getHpcClustersPlain() {
-        return getHpcClustersPlain(GetHpcClustersPlainArgs.Empty, InvokeOptions.Empty);
+    public static Output getHpcClusters(GetHpcClustersArgs args) {
+        return getHpcClusters(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Ecs Hpc Clusters of the current Alibaba Cloud user.
@@ -7634,8 +8929,8 @@ public static CompletableFuture getHpcClustersPlain() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getHpcClusters(GetHpcClustersArgs args) {
-        return getHpcClusters(args, InvokeOptions.Empty);
+    public static CompletableFuture getHpcClustersPlain(GetHpcClustersPlainArgs args) {
+        return getHpcClustersPlain(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Ecs Hpc Clusters of the current Alibaba Cloud user.
@@ -7682,8 +8977,8 @@ public static Output getHpcClusters(GetHpcClustersArgs arg
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getHpcClustersPlain(GetHpcClustersPlainArgs args) {
-        return getHpcClustersPlain(args, InvokeOptions.Empty);
+    public static Output getHpcClusters(GetHpcClustersArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("alicloud:ecs/getHpcClusters:getHpcClusters", TypeShape.of(GetHpcClustersResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides the Ecs Hpc Clusters of the current Alibaba Cloud user.
@@ -7730,7 +9025,7 @@ public static CompletableFuture getHpcClustersPlain(GetHpc
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getHpcClusters(GetHpcClustersArgs args, InvokeOptions options) {
+    public static Output getHpcClusters(GetHpcClustersArgs args, InvokeOutputOptions options) {
         return Deployment.getInstance().invoke("alicloud:ecs/getHpcClusters:getHpcClusters", TypeShape.of(GetHpcClustersResult.class), args, Utilities.withVersion(options));
     }
     /**
@@ -8006,6 +9301,51 @@ public static CompletableFuture getImagesPlain(GetImagesPlainAr
     public static Output getImages(GetImagesArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("alicloud:ecs/getImages:getImages", TypeShape.of(GetImagesResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * This data source provides available image resources. It contains user's private images, system images provided by Alibaba Cloud,
+     * other public images and the ones available on the image market.
+     * 
+     * ## Example Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetImagesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var imagesDs = EcsFunctions.getImages(GetImagesArgs.builder()
+     *             .owners("system")
+     *             .nameRegex("^centos_6")
+     *             .build());
+     * 
+     *         ctx.export("firstImageId", imagesDs.applyValue(getImagesResult -> getImagesResult.images()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getImages(GetImagesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getImages:getImages", TypeShape.of(GetImagesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides available image resources. It contains user's private images, system images provided by Alibaba Cloud, * other public images and the ones available on the image market. @@ -8189,6 +9529,52 @@ public static CompletableFuture getInstanceKeywordsPl public static Output getInstanceKeywords(GetInstanceKeywordsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ecs/getInstanceKeywords:getInstanceKeywords", TypeShape.of(GetInstanceKeywordsResult.class), args, Utilities.withVersion(options)); } + /** + * Operation to query the reserved keywords of an ApsaraDB RDS instance. The reserved keywords cannot be used for the usernames of accounts or the names of databases. + * + * > **NOTE:** Available in v1.196.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetInstanceKeywordsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var resources = EcsFunctions.getInstanceKeywords(GetInstanceKeywordsArgs.builder()
+     *             .key("account")
+     *             .outputFile("./classes.txt")
+     *             .build());
+     * 
+     *         ctx.export("accountKeywords", resources.applyValue(getInstanceKeywordsResult -> getInstanceKeywordsResult.keywords()[0]));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceKeywords(GetInstanceKeywordsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getInstanceKeywords:getInstanceKeywords", TypeShape.of(GetInstanceKeywordsResult.class), args, Utilities.withVersion(options)); + } /** * Operation to query the reserved keywords of an ApsaraDB RDS instance. The reserved keywords cannot be used for the usernames of accounts or the names of databases. * @@ -8489,18 +9875,179 @@ public static Output getInstanceTypeFamilies(GetI * import java.nio.file.Files; * import java.nio.file.Paths; * - * public class App { - * public static void main(String[] args) { - * Pulumi.run(App::stack); - * } + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * final var default = EcsFunctions.getInstanceTypeFamilies(GetInstanceTypeFamiliesArgs.builder() + * .instanceChargeType("PrePaid") + * .build()); + * + * ctx.export("firstInstanceTypeFamilyId", default_.families()[0].id()); + * ctx.export("instanceIds", default_.ids()); + * } + * } + * } + *
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceTypeFamilies(GetInstanceTypeFamiliesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getInstanceTypeFamilies:getInstanceTypeFamilies", TypeShape.of(GetInstanceTypeFamiliesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the ECS instance type families of Alibaba Cloud. + * + * > **NOTE:** Available in 1.54.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetInstanceTypeFamiliesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = EcsFunctions.getInstanceTypeFamilies(GetInstanceTypeFamiliesArgs.builder()
+     *             .instanceChargeType("PrePaid")
+     *             .build());
+     * 
+     *         ctx.export("firstInstanceTypeFamilyId", default_.families()[0].id());
+     *         ctx.export("instanceIds", default_.ids());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getInstanceTypeFamiliesPlain(GetInstanceTypeFamiliesPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:ecs/getInstanceTypeFamilies:getInstanceTypeFamilies", TypeShape.of(GetInstanceTypeFamiliesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the ECS instance types of Alibaba Cloud. + * + * > **NOTE:** By default, only the upgraded instance types are returned. If you want to get outdated instance types, you must set `is_outdated` to true. + * + * > **NOTE:** If one instance type is sold out, it will not be exported. + * + * > **NOTE:** Available since v1.0.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetZonesArgs;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetInstanceTypesArgs;
+     * import com.pulumi.alicloud.ecs.inputs.GetImagesArgs;
+     * import com.pulumi.alicloud.vpc.Network;
+     * import com.pulumi.alicloud.vpc.NetworkArgs;
+     * import com.pulumi.alicloud.vpc.Switch;
+     * import com.pulumi.alicloud.vpc.SwitchArgs;
+     * import com.pulumi.alicloud.ecs.SecurityGroup;
+     * import com.pulumi.alicloud.ecs.SecurityGroupArgs;
+     * import com.pulumi.alicloud.ecs.EcsNetworkInterface;
+     * import com.pulumi.alicloud.ecs.EcsNetworkInterfaceArgs;
+     * import com.pulumi.alicloud.ecs.Instance;
+     * import com.pulumi.alicloud.ecs.InstanceArgs;
+     * import com.pulumi.codegen.internal.KeyedValue;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("terraform-example");
+     *         final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
+     *             .availableResourceCreation("VSwitch")
+     *             .build());
+     * 
+     *         // Declare the data source
+     *         final var defaultGetInstanceTypes = EcsFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
+     *             .availabilityZone(default_.zones()[0].id())
+     *             .instanceTypeFamily("ecs.sn1ne")
+     *             .build());
+     * 
+     *         final var defaultGetImages = EcsFunctions.getImages(GetImagesArgs.builder()
+     *             .nameRegex("^ubuntu_[0-9]+_[0-9]+_x64*")
+     *             .mostRecent(true)
+     *             .owners("system")
+     *             .build());
+     * 
+     *         var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
+     *             .vpcName(name)
+     *             .cidrBlock("192.168.0.0/16")
+     *             .build());
+     * 
+     *         var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
+     *             .vswitchName(name)
+     *             .vpcId(defaultNetwork.id())
+     *             .cidrBlock("192.168.192.0/24")
+     *             .zoneId(default_.zones()[0].id())
+     *             .build());
+     * 
+     *         var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
+     *             .name(name)
+     *             .vpcId(defaultNetwork.id())
+     *             .build());
      * 
-     *     public static void stack(Context ctx) {
-     *         final var default = EcsFunctions.getInstanceTypeFamilies(GetInstanceTypeFamiliesArgs.builder()
-     *             .instanceChargeType("PrePaid")
+     *         var defaultEcsNetworkInterface = new EcsNetworkInterface("defaultEcsNetworkInterface", EcsNetworkInterfaceArgs.builder()
+     *             .networkInterfaceName(name)
+     *             .vswitchId(defaultSwitch.id())
+     *             .securityGroupIds(defaultSecurityGroup.id())
      *             .build());
      * 
-     *         ctx.export("firstInstanceTypeFamilyId", default_.families()[0].id());
-     *         ctx.export("instanceIds", default_.ids());
+     *         for (var i = 0; i < 14; i++) {
+     *             new Instance("defaultInstance-" + i, InstanceArgs.builder()
+     *                 .imageId(defaultGetImages.applyValue(getImagesResult -> getImagesResult.images()[0].id()))
+     *                 .instanceType(defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()[0].id()))
+     *                 .instanceName(name)
+     *                 .securityGroups(defaultSecurityGroup.stream().map(element -> element.id()).collect(toList()))
+     *                 .internetChargeType("PayByTraffic")
+     *                 .internetMaxBandwidthOut("10")
+     *                 .availabilityZone(default_.zones()[0].id())
+     *                 .instanceChargeType("PostPaid")
+     *                 .systemDiskCategory("cloud_efficiency")
+     *                 .vswitchId(defaultSwitch.id())
+     *                 .build());
+     * 
+     *         
+     * }
      *     }
      * }
      * }
@@ -8508,8 +10055,8 @@ public static Output getInstanceTypeFamilies(GetI
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getInstanceTypeFamiliesPlain(GetInstanceTypeFamiliesPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("alicloud:ecs/getInstanceTypeFamilies:getInstanceTypeFamilies", TypeShape.of(GetInstanceTypeFamiliesResult.class), args, Utilities.withVersion(options));
+    public static Output getInstanceTypes() {
+        return getInstanceTypes(GetInstanceTypesArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * This data source provides the ECS instance types of Alibaba Cloud.
@@ -8623,8 +10170,8 @@ public static CompletableFuture getInstanceTypeFa
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getInstanceTypes() {
-        return getInstanceTypes(GetInstanceTypesArgs.Empty, InvokeOptions.Empty);
+    public static CompletableFuture getInstanceTypesPlain() {
+        return getInstanceTypesPlain(GetInstanceTypesPlainArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * This data source provides the ECS instance types of Alibaba Cloud.
@@ -8738,8 +10285,8 @@ public static Output getInstanceTypes() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getInstanceTypesPlain() {
-        return getInstanceTypesPlain(GetInstanceTypesPlainArgs.Empty, InvokeOptions.Empty);
+    public static Output getInstanceTypes(GetInstanceTypesArgs args) {
+        return getInstanceTypes(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the ECS instance types of Alibaba Cloud.
@@ -8853,8 +10400,8 @@ public static CompletableFuture getInstanceTypesPlain()
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getInstanceTypes(GetInstanceTypesArgs args) {
-        return getInstanceTypes(args, InvokeOptions.Empty);
+    public static CompletableFuture getInstanceTypesPlain(GetInstanceTypesPlainArgs args) {
+        return getInstanceTypesPlain(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the ECS instance types of Alibaba Cloud.
@@ -8968,8 +10515,8 @@ public static Output getInstanceTypes(GetInstanceTypesAr
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getInstanceTypesPlain(GetInstanceTypesPlainArgs args) {
-        return getInstanceTypesPlain(args, InvokeOptions.Empty);
+    public static Output getInstanceTypes(GetInstanceTypesArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("alicloud:ecs/getInstanceTypes:getInstanceTypes", TypeShape.of(GetInstanceTypesResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides the ECS instance types of Alibaba Cloud.
@@ -9083,7 +10630,7 @@ public static CompletableFuture getInstanceTypesPlain(Ge
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getInstanceTypes(GetInstanceTypesArgs args, InvokeOptions options) {
+    public static Output getInstanceTypes(GetInstanceTypesArgs args, InvokeOutputOptions options) {
         return Deployment.getInstance().invoke("alicloud:ecs/getInstanceTypes:getInstanceTypes", TypeShape.of(GetInstanceTypesResult.class), args, Utilities.withVersion(options));
     }
     /**
@@ -9426,6 +10973,51 @@ public static CompletableFuture getInstancesPlain(GetInstanc
     public static Output getInstances(GetInstancesArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("alicloud:ecs/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * The Instances data source list ECS instance resources according to their ID, name regex, image id, status and other fields.
+     * 
+     * ## Example Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var instancesDs = EcsFunctions.getInstances(GetInstancesArgs.builder()
+     *             .nameRegex("web_server")
+     *             .status("Running")
+     *             .build());
+     * 
+     *         ctx.export("firstInstanceId", instancesDs.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *         ctx.export("instanceIds", instancesDs.applyValue(getInstancesResult -> getInstancesResult.ids()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * The Instances data source list ECS instance resources according to their ID, name regex, image id, status and other fields. * @@ -9757,25 +11349,210 @@ public static Output getKeyPairs(GetKeyPairsArgs args, Invoke * Pulumi.run(App::stack); * } * - * public static void stack(Context ctx) { - * // Declare the data source - * var defaultKeyPair = new KeyPair("defaultKeyPair", KeyPairArgs.builder() - * .keyName("keyPairDatasource") + * public static void stack(Context ctx) { + * // Declare the data source + * var defaultKeyPair = new KeyPair("defaultKeyPair", KeyPairArgs.builder() + * .keyName("keyPairDatasource") + * .build()); + * + * final var default = EcsFunctions.getKeyPairs(GetKeyPairsArgs.builder() + * .nameRegex(defaultKeyPair.keyName()) + * .build()); + * + * } + * } + * } + *
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getKeyPairs(GetKeyPairsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getKeyPairs:getKeyPairs", TypeShape.of(GetKeyPairsResult.class), args, Utilities.withVersion(options)); + } + /** + * > **DEPRECATED:** This datasource has been renamed to alicloud.ecs.getEcsKeyPairs from version 1.121.0. + * + * This data source provides a list of key pairs in an Alibaba Cloud account according to the specified filters. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.KeyPair;
+     * import com.pulumi.alicloud.ecs.KeyPairArgs;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetKeyPairsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         var defaultKeyPair = new KeyPair("defaultKeyPair", KeyPairArgs.builder()
+     *             .keyName("keyPairDatasource")
+     *             .build());
+     * 
+     *         final var default = EcsFunctions.getKeyPairs(GetKeyPairsArgs.builder()
+     *             .nameRegex(defaultKeyPair.keyName())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getKeyPairsPlain(GetKeyPairsPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:ecs/getKeyPairs:getKeyPairs", TypeShape.of(GetKeyPairsResult.class), args, Utilities.withVersion(options)); + } + /** + * > **DEPRECATED:** This datasource has been renamed to alicloud.ecs.getEcsNetworkInterfaces from version 1.123.1. + * + * Use this data source to get a list of elastic network interfaces according to the specified filters in an Alibaba Cloud account. + * + * For information about elastic network interface and how to use it, see [Elastic Network Interface](https://www.alibabacloud.com/help/doc-detail/58496.html) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.Network;
+     * import com.pulumi.alicloud.vpc.NetworkArgs;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetZonesArgs;
+     * import com.pulumi.alicloud.vpc.Switch;
+     * import com.pulumi.alicloud.vpc.SwitchArgs;
+     * import com.pulumi.alicloud.ecs.SecurityGroup;
+     * import com.pulumi.alicloud.ecs.SecurityGroupArgs;
+     * import com.pulumi.alicloud.vpc.NetworkInterface;
+     * import com.pulumi.alicloud.vpc.NetworkInterfaceArgs;
+     * import com.pulumi.alicloud.ecs.Instance;
+     * import com.pulumi.alicloud.ecs.InstanceArgs;
+     * import com.pulumi.alicloud.vpc.NetworkInterfaceAttachment;
+     * import com.pulumi.alicloud.vpc.NetworkInterfaceAttachmentArgs;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetNetworkInterfacesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("networkInterfacesName");
+     *         var vpc = new Network("vpc", NetworkArgs.builder()
+     *             .vpcName(name)
+     *             .cidrBlock("192.168.0.0/24")
+     *             .build());
+     * 
+     *         final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
+     *             .availableResourceCreation("VSwitch")
+     *             .build());
+     * 
+     *         var vswitch = new Switch("vswitch", SwitchArgs.builder()
+     *             .vswitchName(name)
+     *             .cidrBlock("192.168.0.0/24")
+     *             .availabilityZone(default_.zones()[0].id())
+     *             .vpcId(vpc.id())
+     *             .build());
+     * 
+     *         var group = new SecurityGroup("group", SecurityGroupArgs.builder()
+     *             .name(name)
+     *             .vpcId(vpc.id())
+     *             .build());
+     * 
+     *         var interface_ = new NetworkInterface("interface", NetworkInterfaceArgs.builder()
+     *             .name(String.format("%s%d", name))
+     *             .vswitchId(vswitch.id())
+     *             .securityGroups(group.id())
+     *             .description("Basic test")
+     *             .privateIp("192.168.0.2")
+     *             .tags(Map.of("TF-VER", "0.11.3"))
+     *             .build());
+     * 
+     *         var instance = new Instance("instance", InstanceArgs.builder()
+     *             .availabilityZone(default_.zones()[0].id())
+     *             .securityGroups(group.id())
+     *             .instanceType("ecs.e3.xlarge")
+     *             .systemDiskCategory("cloud_efficiency")
+     *             .imageId("centos_7_04_64_20G_alibase_201701015.vhd")
+     *             .instanceName(name)
+     *             .vswitchId(vswitch.id())
+     *             .internetMaxBandwidthOut(10)
+     *             .build());
+     * 
+     *         var attachment = new NetworkInterfaceAttachment("attachment", NetworkInterfaceAttachmentArgs.builder()
+     *             .instanceId(instance.id())
+     *             .networkInterfaceId(interface_.id())
      *             .build());
      * 
-     *         final var default = EcsFunctions.getKeyPairs(GetKeyPairsArgs.builder()
-     *             .nameRegex(defaultKeyPair.keyName())
+     *         final var defaultGetNetworkInterfaces = EcsFunctions.getNetworkInterfaces(GetNetworkInterfacesArgs.builder()
+     *             .ids(attachment.networkInterfaceId())
+     *             .nameRegex(name)
+     *             .tags(Map.of("TF-VER", "0.11.3"))
+     *             .vpcId(vpc.id())
+     *             .vswitchId(vswitch.id())
+     *             .privateIp("192.168.0.2")
+     *             .securityGroupId(group.id())
+     *             .type("Secondary")
+     *             .instanceId(instance.id())
      *             .build());
      * 
+     *         ctx.export("eni0Name", defaultGetNetworkInterfaces.applyValue(getNetworkInterfacesResult -> getNetworkInterfacesResult).applyValue(defaultGetNetworkInterfaces -> defaultGetNetworkInterfaces.applyValue(getNetworkInterfacesResult -> getNetworkInterfacesResult.interfaces()[0].name())));
      *     }
      * }
      * }
      * 
* <!--End PulumiCodeChooser --> * + * ## Argument Reference + * + * The following arguments are supported: + * + * * `ids` - (Optional) A list of ENI IDs. + * * `name_regex` - (Optional) A regex string to filter results by ENI name. + * * `vpc_id` - (Optional) The VPC ID linked to ENIs. + * * `vswitch_id` - (Optional) The vSwitch ID linked to ENIs. + * * `private_ip` - (Optional) The primary private IP address of the ENI. + * * `security_group_id` - (Optional) The security group ID linked to ENIs. + * * `name` - (Optional) The name of the ENIs. + * * `type` - (Optional) The type of ENIs, Only support for "Primary" or "Secondary". + * * `instance_id` - (Optional) The ECS instance ID that the ENI is attached to. + * * `tags` - (Optional) A map of tags assigned to ENIs. + * * `output_file` - (Optional) The name of output file that saves the filter results. + * * `resource_group_id` - (Optional, ForceNew, Available in 1.57.0+) The Id of resource group which the network interface belongs. + * */ - public static CompletableFuture getKeyPairsPlain(GetKeyPairsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:ecs/getKeyPairs:getKeyPairs", TypeShape.of(GetKeyPairsResult.class), args, Utilities.withVersion(options)); + public static Output getNetworkInterfaces() { + return getNetworkInterfaces(GetNetworkInterfacesArgs.Empty, InvokeOptions.Empty); } /** * > **DEPRECATED:** This datasource has been renamed to alicloud.ecs.getEcsNetworkInterfaces from version 1.123.1. @@ -9908,8 +11685,8 @@ public static CompletableFuture getKeyPairsPlain(GetKeyPairsP * * `resource_group_id` - (Optional, ForceNew, Available in 1.57.0+) The Id of resource group which the network interface belongs. * */ - public static Output getNetworkInterfaces() { - return getNetworkInterfaces(GetNetworkInterfacesArgs.Empty, InvokeOptions.Empty); + public static CompletableFuture getNetworkInterfacesPlain() { + return getNetworkInterfacesPlain(GetNetworkInterfacesPlainArgs.Empty, InvokeOptions.Empty); } /** * > **DEPRECATED:** This datasource has been renamed to alicloud.ecs.getEcsNetworkInterfaces from version 1.123.1. @@ -10042,8 +11819,8 @@ public static Output getNetworkInterfaces() { * * `resource_group_id` - (Optional, ForceNew, Available in 1.57.0+) The Id of resource group which the network interface belongs. * */ - public static CompletableFuture getNetworkInterfacesPlain() { - return getNetworkInterfacesPlain(GetNetworkInterfacesPlainArgs.Empty, InvokeOptions.Empty); + public static Output getNetworkInterfaces(GetNetworkInterfacesArgs args) { + return getNetworkInterfaces(args, InvokeOptions.Empty); } /** * > **DEPRECATED:** This datasource has been renamed to alicloud.ecs.getEcsNetworkInterfaces from version 1.123.1. @@ -10176,8 +11953,8 @@ public static CompletableFuture getNetworkInterfaces * * `resource_group_id` - (Optional, ForceNew, Available in 1.57.0+) The Id of resource group which the network interface belongs. * */ - public static Output getNetworkInterfaces(GetNetworkInterfacesArgs args) { - return getNetworkInterfaces(args, InvokeOptions.Empty); + public static CompletableFuture getNetworkInterfacesPlain(GetNetworkInterfacesPlainArgs args) { + return getNetworkInterfacesPlain(args, InvokeOptions.Empty); } /** * > **DEPRECATED:** This datasource has been renamed to alicloud.ecs.getEcsNetworkInterfaces from version 1.123.1. @@ -10310,8 +12087,8 @@ public static Output getNetworkInterfaces(GetNetwork * * `resource_group_id` - (Optional, ForceNew, Available in 1.57.0+) The Id of resource group which the network interface belongs. * */ - public static CompletableFuture getNetworkInterfacesPlain(GetNetworkInterfacesPlainArgs args) { - return getNetworkInterfacesPlain(args, InvokeOptions.Empty); + public static Output getNetworkInterfaces(GetNetworkInterfacesArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getNetworkInterfaces:getNetworkInterfaces", TypeShape.of(GetNetworkInterfacesResult.class), args, Utilities.withVersion(options)); } /** * > **DEPRECATED:** This datasource has been renamed to alicloud.ecs.getEcsNetworkInterfaces from version 1.123.1. @@ -10444,7 +12221,7 @@ public static CompletableFuture getNetworkInterfaces * * `resource_group_id` - (Optional, ForceNew, Available in 1.57.0+) The Id of resource group which the network interface belongs. * */ - public static Output getNetworkInterfaces(GetNetworkInterfacesArgs args, InvokeOptions options) { + public static Output getNetworkInterfaces(GetNetworkInterfacesArgs args, InvokeOutputOptions options) { return Deployment.getInstance().invoke("alicloud:ecs/getNetworkInterfaces:getNetworkInterfaces", TypeShape.of(GetNetworkInterfacesResult.class), args, Utilities.withVersion(options)); } /** @@ -10779,6 +12556,72 @@ public static CompletableFuture getSecurityGroupRul public static Output getSecurityGroupRules(GetSecurityGroupRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ecs/getSecurityGroupRules:getSecurityGroupRules", TypeShape.of(GetSecurityGroupRulesResult.class), args, Utilities.withVersion(options)); } + /** + * The `alicloud.ecs.getSecurityGroupRules` data source provides a collection of security permissions of a specific security group. + * Each collection item represents a single `ingress` or `egress` permission rule. + * The ID of the security group can be provided via a variable or the result from the other data source `alicloud.ecs.getSecurityGroups`. + * + * ## Example Usage + * + * The following example shows how to obtain details about a security group rule and how to pass its data to an instance at launch time. + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetSecurityGroupsArgs;
+     * import com.pulumi.alicloud.ecs.inputs.GetSecurityGroupRulesArgs;
+     * import com.pulumi.alicloud.ecs.Instance;
+     * import com.pulumi.alicloud.ecs.InstanceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var securityGroupId = config.get("securityGroupId");
+     *         // Or get it from the alicloud_security_groups data source.
+     *         // Please note that the data source arguments must be enough to filter results to one security group.
+     *         final var groupsDs = EcsFunctions.getSecurityGroups(GetSecurityGroupsArgs.builder()
+     *             .nameRegex("api")
+     *             .build());
+     * 
+     *         // Filter the security group rule by group
+     *         final var ingressRulesDs = EcsFunctions.getSecurityGroupRules(GetSecurityGroupRulesArgs.builder()
+     *             .groupId(groupsDs.applyValue(getSecurityGroupsResult -> getSecurityGroupsResult.groups()[0].id()))
+     *             .nicType("internet")
+     *             .direction("ingress")
+     *             .ipProtocol("tcp")
+     *             .build());
+     * 
+     *         // Pass port_range to the backend service
+     *         var backend = new Instance("backend", InstanceArgs.builder()
+     *             .userData(String.format("config_service.sh --portrange=%s", ingressRulesDs.applyValue(getSecurityGroupRulesResult -> getSecurityGroupRulesResult.rules()[0].portRange())))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSecurityGroupRules(GetSecurityGroupRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getSecurityGroupRules:getSecurityGroupRules", TypeShape.of(GetSecurityGroupRulesResult.class), args, Utilities.withVersion(options)); + } /** * The `alicloud.ecs.getSecurityGroupRules` data source provides a collection of security permissions of a specific security group. * Each collection item represents a single `ingress` or `egress` permission rule. @@ -11110,6 +12953,59 @@ public static CompletableFuture getSecurityGroupsPlain( public static Output getSecurityGroups(GetSecurityGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ecs/getSecurityGroups:getSecurityGroups", TypeShape.of(GetSecurityGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of Security Groups in an Alibaba Cloud account according to the specified filters. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetSecurityGroupsArgs;
+     * import com.pulumi.alicloud.vpc.Network;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Filter security groups and print the results into a file
+     *         final var secGroupsDs = EcsFunctions.getSecurityGroups(GetSecurityGroupsArgs.builder()
+     *             .nameRegex("^web-")
+     *             .outputFile("web_access.json")
+     *             .build());
+     * 
+     *         // In conjunction with a VPC
+     *         var primaryVpcDs = new Network("primaryVpcDs");
+     * 
+     *         final var primarySecGroupsDs = EcsFunctions.getSecurityGroups(GetSecurityGroupsArgs.builder()
+     *             .vpcId(primaryVpcDs.id())
+     *             .build());
+     * 
+     *         ctx.export("firstGroupId", primarySecGroupsDs.applyValue(getSecurityGroupsResult -> getSecurityGroupsResult).applyValue(primarySecGroupsDs -> primarySecGroupsDs.applyValue(getSecurityGroupsResult -> getSecurityGroupsResult.groups()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSecurityGroups(GetSecurityGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getSecurityGroups:getSecurityGroups", TypeShape.of(GetSecurityGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of Security Groups in an Alibaba Cloud account according to the specified filters. * @@ -11553,6 +13449,84 @@ public static CompletableFuture getSnapshotsPlain(GetSnapsho public static Output getSnapshots(GetSnapshotsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ecs/getSnapshots:getSnapshots", TypeShape.of(GetSnapshotsResult.class), args, Utilities.withVersion(options)); } + /** + * > **DEPRECATED:** This datasource has been renamed to alicloud.ecs.getEcsSnapshots from version 1.120.0. + * + * Use this data source to get a list of snapshot according to the specified filters in an Alibaba Cloud account. + * + * For information about snapshot and how to use it, see [Snapshot](https://www.alibabacloud.com/help/doc-detail/25460.html). + * + * > **NOTE:** Available in 1.40.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetSnapshotsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var snapshots = EcsFunctions.getSnapshots(GetSnapshotsArgs.builder()
+     *             .ids("s-123456890abcdef")
+     *             .nameRegex("tf-testAcc-snapshot")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ## Argument Reference + * + * The following arguments are supported: + * + * * `instance_id` - (Optional) The specified instance ID. + * * `disk_id` - (Optional) The specified disk ID. + * * `encrypted` - (Optional) Queries the encrypted snapshots. Optional values: `true`: Encrypted snapshots. `false`: No encryption attribute limit. Default value: `false`. + * * `ids` - (Optional) A list of snapshot IDs. + * * `name_regex` - (Optional) A regex string to filter results by snapshot name. + * * `status` - (Optional) The specified snapshot status. Default value: `all`. Optional values: + * * progressing: The snapshots are being created. + * * accomplished: The snapshots are ready to use. + * * failed: The snapshot creation failed. + * * all: All status. + * * `type` - (Optional) The snapshot category. Default value: `all`. Optional values: + * * auto: Auto snapshots. + * * user: Manual snapshots. + * * all: Auto and manual snapshots. + * * `source_disk_type` - (Optional) The type of source disk: + * * System: The snapshots are created for system disks. + * * Data: The snapshots are created for data disks. + * * `usage` - (Optional) The usage of the snapshot: + * * image: The snapshots are used to create custom images. + * * disk: The snapshots are used to CreateDisk. + * * mage_disk: The snapshots are used to create custom images and data disks. + * * none: The snapshots are not used yet. + * * `tags` - (Optional) A map of tags assigned to snapshots. + * * `output_file` - (Optional) The name of output file that saves the filter results. + * + */ + public static Output getSnapshots(GetSnapshotsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ecs/getSnapshots:getSnapshots", TypeShape.of(GetSnapshotsResult.class), args, Utilities.withVersion(options)); + } /** * > **DEPRECATED:** This datasource has been renamed to alicloud.ecs.getEcsSnapshots from version 1.120.0. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/edas/EdasFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/edas/EdasFunctions.java index c5e510d408..a8ae60858e 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/edas/EdasFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/edas/EdasFunctions.java @@ -23,6 +23,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class EdasFunctions { @@ -256,6 +257,52 @@ public static CompletableFuture getApplicationsPlain(GetA public static Output getApplications(GetApplicationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:edas/getApplications:getApplications", TypeShape.of(GetApplicationsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of EDAS application in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in 1.82.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.edas.EdasFunctions;
+     * import com.pulumi.alicloud.edas.inputs.GetApplicationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var applications = EdasFunctions.getApplications(GetApplicationsArgs.builder()
+     *             .ids("xxx")
+     *             .outputFile("application.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstApplicationName", applications.applyValue(getApplicationsResult -> getApplicationsResult.applications()[0].appName()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getApplications(GetApplicationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:edas/getApplications:getApplications", TypeShape.of(GetApplicationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of EDAS application in an Alibaba Cloud account according to the specified filters. * @@ -443,6 +490,53 @@ public static CompletableFuture getClustersPlain(GetClustersP public static Output getClusters(GetClustersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:edas/getClusters:getClusters", TypeShape.of(GetClustersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of EDAS clusters in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in 1.82.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.edas.EdasFunctions;
+     * import com.pulumi.alicloud.edas.inputs.GetClustersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var clusters = EdasFunctions.getClusters(GetClustersArgs.builder()
+     *             .logicalRegionId("cn-shenzhen:xxx")
+     *             .ids("addfs-dfsasd")
+     *             .outputFile("clusters.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstClusterName", clustersAlicloudAlikafkaConsumerGroups.clusters()[0].clusterName());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getClusters(GetClustersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:edas/getClusters:getClusters", TypeShape.of(GetClustersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of EDAS clusters in an Alibaba Cloud account according to the specified filters. * @@ -631,6 +725,53 @@ public static CompletableFuture getDeployGroupsPlain(GetD public static Output getDeployGroups(GetDeployGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:edas/getDeployGroups:getDeployGroups", TypeShape.of(GetDeployGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of EDAS deploy groups in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in 1.82.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.edas.EdasFunctions;
+     * import com.pulumi.alicloud.edas.inputs.GetDeployGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var groups = EdasFunctions.getDeployGroups(GetDeployGroupsArgs.builder()
+     *             .appId("xxx")
+     *             .ids("xxx")
+     *             .outputFile("groups.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstGroupName", groups.applyValue(getDeployGroupsResult -> getDeployGroupsResult.groups()[0].groupName()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDeployGroups(GetDeployGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:edas/getDeployGroups:getDeployGroups", TypeShape.of(GetDeployGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of EDAS deploy groups in an Alibaba Cloud account according to the specified filters. * @@ -938,6 +1079,58 @@ public static CompletableFuture getNamespacesPlain(GetNames public static Output getNamespaces(GetNamespacesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:edas/getNamespaces:getNamespaces", TypeShape.of(GetNamespacesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Edas Namespaces of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.173.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.edas.EdasFunctions;
+     * import com.pulumi.alicloud.edas.inputs.GetNamespacesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EdasFunctions.getNamespaces(GetNamespacesArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("edasNamespaceId1", ids.applyValue(getNamespacesResult -> getNamespacesResult.namespaces()[0].id()));
+     *         final var nameRegex = EdasFunctions.getNamespaces(GetNamespacesArgs.builder()
+     *             .nameRegex("^my-Namespace")
+     *             .build());
+     * 
+     *         ctx.export("edasNamespaceId2", nameRegex.applyValue(getNamespacesResult -> getNamespacesResult.namespaces()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNamespaces(GetNamespacesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:edas/getNamespaces:getNamespaces", TypeShape.of(GetNamespacesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Edas Namespaces of the current Alibaba Cloud user. * @@ -1230,6 +1423,54 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:edas/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open EDAS service automatically. If the service has been opened, it will return opened. + * + * For information about EDAS and how to use it, see [What is EDAS](https://www.alibabacloud.com/help/product/29500.htm). + * + * > **NOTE:** Available in v1.98.0+ + * + * > **NOTE:** The EDAS service is not support to be open automatically in the international site. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.edas.EdasFunctions;
+     * import com.pulumi.alicloud.edas.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = EdasFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:edas/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open EDAS service automatically. If the service has been opened, it will return opened. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/eds/EdsFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/eds/EdsFunctions.java index a0912a3373..e868871564 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/eds/EdsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/eds/EdsFunctions.java @@ -56,6 +56,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class EdsFunctions { @@ -294,6 +295,53 @@ public static CompletableFuture getAdConnectorD public static Output getAdConnectorDirectories(GetAdConnectorDirectoriesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:eds/getAdConnectorDirectories:getAdConnectorDirectories", TypeShape.of(GetAdConnectorDirectoriesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ecd Ad Connector Directories of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.174.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eds.EdsFunctions;
+     * import com.pulumi.alicloud.eds.inputs.GetAdConnectorDirectoriesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EdsFunctions.getAdConnectorDirectories(GetAdConnectorDirectoriesArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("ecdAdConnectorDirectoryId1", ids.applyValue(getAdConnectorDirectoriesResult -> getAdConnectorDirectoriesResult.directories()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAdConnectorDirectories(GetAdConnectorDirectoriesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eds/getAdConnectorDirectories:getAdConnectorDirectories", TypeShape.of(GetAdConnectorDirectoriesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecd Ad Connector Directories of the current Alibaba Cloud user. * @@ -591,6 +639,56 @@ public static CompletableFuture getAdConnectorO public static Output getAdConnectorOfficeSites(GetAdConnectorOfficeSitesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:eds/getAdConnectorOfficeSites:getAdConnectorOfficeSites", TypeShape.of(GetAdConnectorOfficeSitesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ecd Ad Connector Office Sites of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.176.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eds.EdsFunctions;
+     * import com.pulumi.alicloud.eds.inputs.GetAdConnectorOfficeSitesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EdsFunctions.getAdConnectorOfficeSites();
+     * 
+     *         ctx.export("ecdAdConnectorOfficeSiteId1", ids.applyValue(getAdConnectorOfficeSitesResult -> getAdConnectorOfficeSitesResult.sites()[0].id()));
+     *         final var nameRegex = EdsFunctions.getAdConnectorOfficeSites(GetAdConnectorOfficeSitesArgs.builder()
+     *             .nameRegex("^my-AdConnectorOfficeSite")
+     *             .build());
+     * 
+     *         ctx.export("ecdAdConnectorOfficeSiteId2", nameRegex.applyValue(getAdConnectorOfficeSitesResult -> getAdConnectorOfficeSitesResult.sites()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAdConnectorOfficeSites(GetAdConnectorOfficeSitesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eds/getAdConnectorOfficeSites:getAdConnectorOfficeSites", TypeShape.of(GetAdConnectorOfficeSitesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecd Ad Connector Office Sites of the current Alibaba Cloud user. * @@ -871,6 +969,52 @@ public static CompletableFuture getBundlesPlain(GetBundlesPlai public static Output getBundles(GetBundlesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:eds/getBundles:getBundles", TypeShape.of(GetBundlesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ecd bundles of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.143.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eds.EdsFunctions;
+     * import com.pulumi.alicloud.eds.inputs.GetBundlesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = EdsFunctions.getBundles(GetBundlesArgs.builder()
+     *             .bundleType("SYSTEM")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBundles(GetBundlesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eds/getBundles:getBundles", TypeShape.of(GetBundlesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecd bundles of the current Alibaba Cloud user. * @@ -1508,13 +1652,13 @@ public static Output getCommands(GetCommandsArgs args, Invoke * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getCommandsPlain(GetCommandsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:eds/getCommands:getCommands", TypeShape.of(GetCommandsResult.class), args, Utilities.withVersion(options)); + public static Output getCommands(GetCommandsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eds/getCommands:getCommands", TypeShape.of(GetCommandsResult.class), args, Utilities.withVersion(options)); } /** - * This data source provides the Ecd Custom Properties of the current Alibaba Cloud user. + * This data source provides the Ecd Commands of the current Alibaba Cloud user. * - * > **NOTE:** Available in v1.176.0+. + * > **NOTE:** Available in v1.146.0+. * * ## Example Usage * @@ -1528,8 +1672,19 @@ public static CompletableFuture getCommandsPlain(GetCommandsP * import com.pulumi.Context; * import com.pulumi.Pulumi; * import com.pulumi.core.Output; + * import com.pulumi.alicloud.eds.SimpleOfficeSite; + * import com.pulumi.alicloud.eds.SimpleOfficeSiteArgs; * import com.pulumi.alicloud.eds.EdsFunctions; - * import com.pulumi.alicloud.eds.inputs.GetCustomPropertiesArgs; + * import com.pulumi.alicloud.eds.inputs.GetBundlesArgs; + * import com.pulumi.alicloud.eds.EcdPolicyGroup; + * import com.pulumi.alicloud.eds.EcdPolicyGroupArgs; + * import com.pulumi.alicloud.eds.inputs.EcdPolicyGroupAuthorizeAccessPolicyRuleArgs; + * import com.pulumi.alicloud.eds.inputs.EcdPolicyGroupAuthorizeSecurityPolicyRuleArgs; + * import com.pulumi.alicloud.eds.Desktop; + * import com.pulumi.alicloud.eds.DesktopArgs; + * import com.pulumi.alicloud.eds.Command; + * import com.pulumi.alicloud.eds.CommandArgs; + * import com.pulumi.alicloud.eds.inputs.GetCommandsArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -1543,11 +1698,52 @@ public static CompletableFuture getCommandsPlain(GetCommandsP * } * * public static void stack(Context ctx) { - * final var ids = EdsFunctions.getCustomProperties(GetCustomPropertiesArgs.builder() - * .ids("example_id") + * var defaultSimpleOfficeSite = new SimpleOfficeSite("defaultSimpleOfficeSite", SimpleOfficeSiteArgs.builder() + * .cidrBlock("172.16.0.0/12") + * .desktopAccessType("Internet") + * .officeSiteName("your_office_site_name") * .build()); * - * ctx.export("ecdCustomPropertyId1", ids.applyValue(getCustomPropertiesResult -> getCustomPropertiesResult.properties()[0].id())); + * final var default = EdsFunctions.getBundles(GetBundlesArgs.builder() + * .bundleType("SYSTEM") + * .nameRegex("windows") + * .build()); + * + * var defaultEcdPolicyGroup = new EcdPolicyGroup("defaultEcdPolicyGroup", EcdPolicyGroupArgs.builder() + * .policyGroupName("your_policy_group_name") + * .clipboard("readwrite") + * .localDrive("read") + * .authorizeAccessPolicyRules(EcdPolicyGroupAuthorizeAccessPolicyRuleArgs.builder() + * .description("example_value") + * .cidrIp("1.2.3.4/24") + * .build()) + * .authorizeSecurityPolicyRules(EcdPolicyGroupAuthorizeSecurityPolicyRuleArgs.builder() + * .type("inflow") + * .policy("accept") + * .description("example_value") + * .portRange("80/80") + * .ipProtocol("TCP") + * .priority("1") + * .cidrIp("0.0.0.0/0") + * .build()) + * .build()); + * + * var defaultDesktop = new Desktop("defaultDesktop", DesktopArgs.builder() + * .officeSiteId(defaultSimpleOfficeSite.id()) + * .policyGroupId(defaultEcdPolicyGroup.id()) + * .bundleId(default_.bundles()[0].id()) + * .desktopName(name) + * .build()); + * + * var defaultCommand = new Command("defaultCommand", CommandArgs.builder() + * .commandContent("ipconfig") + * .commandType("RunPowerShellScript") + * .desktopId(defaultDesktop.id()) + * .build()); + * + * final var ids = EdsFunctions.getCommands(); + * + * ctx.export("ecdCommandId1", ids.applyValue(getCommandsResult -> getCommandsResult.commands()[0].id())); * } * } * } @@ -1555,8 +1751,8 @@ public static CompletableFuture getCommandsPlain(GetCommandsP * <!--End PulumiCodeChooser --> * */ - public static Output getCustomProperties() { - return getCustomProperties(GetCustomPropertiesArgs.Empty, InvokeOptions.Empty); + public static CompletableFuture getCommandsPlain(GetCommandsPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:eds/getCommands:getCommands", TypeShape.of(GetCommandsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Ecd Custom Properties of the current Alibaba Cloud user. @@ -1602,8 +1798,8 @@ public static Output getCustomProperties() { * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getCustomPropertiesPlain() { - return getCustomPropertiesPlain(GetCustomPropertiesPlainArgs.Empty, InvokeOptions.Empty); + public static Output getCustomProperties() { + return getCustomProperties(GetCustomPropertiesArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Ecd Custom Properties of the current Alibaba Cloud user. @@ -1649,8 +1845,8 @@ public static CompletableFuture getCustomPropertiesPl * <!--End PulumiCodeChooser --> * */ - public static Output getCustomProperties(GetCustomPropertiesArgs args) { - return getCustomProperties(args, InvokeOptions.Empty); + public static CompletableFuture getCustomPropertiesPlain() { + return getCustomPropertiesPlain(GetCustomPropertiesPlainArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Ecd Custom Properties of the current Alibaba Cloud user. @@ -1696,8 +1892,8 @@ public static Output getCustomProperties(GetCustomPro * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getCustomPropertiesPlain(GetCustomPropertiesPlainArgs args) { - return getCustomPropertiesPlain(args, InvokeOptions.Empty); + public static Output getCustomProperties(GetCustomPropertiesArgs args) { + return getCustomProperties(args, InvokeOptions.Empty); } /** * This data source provides the Ecd Custom Properties of the current Alibaba Cloud user. @@ -1743,8 +1939,8 @@ public static CompletableFuture getCustomPropertiesPl * <!--End PulumiCodeChooser --> * */ - public static Output getCustomProperties(GetCustomPropertiesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("alicloud:eds/getCustomProperties:getCustomProperties", TypeShape.of(GetCustomPropertiesResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getCustomPropertiesPlain(GetCustomPropertiesPlainArgs args) { + return getCustomPropertiesPlain(args, InvokeOptions.Empty); } /** * This data source provides the Ecd Custom Properties of the current Alibaba Cloud user. @@ -1790,13 +1986,13 @@ public static Output getCustomProperties(GetCustomPro * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getCustomPropertiesPlain(GetCustomPropertiesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:eds/getCustomProperties:getCustomProperties", TypeShape.of(GetCustomPropertiesResult.class), args, Utilities.withVersion(options)); + public static Output getCustomProperties(GetCustomPropertiesArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:eds/getCustomProperties:getCustomProperties", TypeShape.of(GetCustomPropertiesResult.class), args, Utilities.withVersion(options)); } /** - * This data source provides the Ecd Desktop Types of the current Alibaba Cloud user. + * This data source provides the Ecd Custom Properties of the current Alibaba Cloud user. * - * > **NOTE:** Available in v1.170.0+. + * > **NOTE:** Available in v1.176.0+. * * ## Example Usage * @@ -1811,7 +2007,7 @@ public static CompletableFuture getCustomPropertiesPl * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.alicloud.eds.EdsFunctions; - * import com.pulumi.alicloud.eds.inputs.GetDesktopTypesArgs; + * import com.pulumi.alicloud.eds.inputs.GetCustomPropertiesArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -1825,11 +2021,11 @@ public static CompletableFuture getCustomPropertiesPl * } * * public static void stack(Context ctx) { - * final var ids = EdsFunctions.getDesktopTypes(GetDesktopTypesArgs.builder() - * .instanceTypeFamily("eds.hf") + * final var ids = EdsFunctions.getCustomProperties(GetCustomPropertiesArgs.builder() + * .ids("example_id") * .build()); * - * ctx.export("ecdDesktopTypeId1", ids.applyValue(getDesktopTypesResult -> getDesktopTypesResult.types()[0].id())); + * ctx.export("ecdCustomPropertyId1", ids.applyValue(getCustomPropertiesResult -> getCustomPropertiesResult.properties()[0].id())); * } * } * } @@ -1837,13 +2033,13 @@ public static CompletableFuture getCustomPropertiesPl * <!--End PulumiCodeChooser --> * */ - public static Output getDesktopTypes() { - return getDesktopTypes(GetDesktopTypesArgs.Empty, InvokeOptions.Empty); + public static Output getCustomProperties(GetCustomPropertiesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eds/getCustomProperties:getCustomProperties", TypeShape.of(GetCustomPropertiesResult.class), args, Utilities.withVersion(options)); } /** - * This data source provides the Ecd Desktop Types of the current Alibaba Cloud user. + * This data source provides the Ecd Custom Properties of the current Alibaba Cloud user. * - * > **NOTE:** Available in v1.170.0+. + * > **NOTE:** Available in v1.176.0+. * * ## Example Usage * @@ -1858,7 +2054,7 @@ public static Output getDesktopTypes() { * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.alicloud.eds.EdsFunctions; - * import com.pulumi.alicloud.eds.inputs.GetDesktopTypesArgs; + * import com.pulumi.alicloud.eds.inputs.GetCustomPropertiesArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -1872,8 +2068,102 @@ public static Output getDesktopTypes() { * } * * public static void stack(Context ctx) { - * final var ids = EdsFunctions.getDesktopTypes(GetDesktopTypesArgs.builder() - * .instanceTypeFamily("eds.hf") + * final var ids = EdsFunctions.getCustomProperties(GetCustomPropertiesArgs.builder() + * .ids("example_id") + * .build()); + * + * ctx.export("ecdCustomPropertyId1", ids.applyValue(getCustomPropertiesResult -> getCustomPropertiesResult.properties()[0].id())); + * } + * } + * } + *
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getCustomPropertiesPlain(GetCustomPropertiesPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:eds/getCustomProperties:getCustomProperties", TypeShape.of(GetCustomPropertiesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Ecd Desktop Types of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.170.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eds.EdsFunctions;
+     * import com.pulumi.alicloud.eds.inputs.GetDesktopTypesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EdsFunctions.getDesktopTypes(GetDesktopTypesArgs.builder()
+     *             .instanceTypeFamily("eds.hf")
+     *             .build());
+     * 
+     *         ctx.export("ecdDesktopTypeId1", ids.applyValue(getDesktopTypesResult -> getDesktopTypesResult.types()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDesktopTypes() { + return getDesktopTypes(GetDesktopTypesArgs.Empty, InvokeOptions.Empty); + } + /** + * This data source provides the Ecd Desktop Types of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.170.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eds.EdsFunctions;
+     * import com.pulumi.alicloud.eds.inputs.GetDesktopTypesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EdsFunctions.getDesktopTypes(GetDesktopTypesArgs.builder()
+     *             .instanceTypeFamily("eds.hf")
      *             .build());
      * 
      *         ctx.export("ecdDesktopTypeId1", ids.applyValue(getDesktopTypesResult -> getDesktopTypesResult.types()[0].id()));
@@ -2028,6 +2318,53 @@ public static CompletableFuture getDesktopTypesPlain(GetD
     public static Output getDesktopTypes(GetDesktopTypesArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("alicloud:eds/getDesktopTypes:getDesktopTypes", TypeShape.of(GetDesktopTypesResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * This data source provides the Ecd Desktop Types of the current Alibaba Cloud user.
+     * 
+     * > **NOTE:** Available in v1.170.0+.
+     * 
+     * ## Example Usage
+     * 
+     * Basic Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eds.EdsFunctions;
+     * import com.pulumi.alicloud.eds.inputs.GetDesktopTypesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EdsFunctions.getDesktopTypes(GetDesktopTypesArgs.builder()
+     *             .instanceTypeFamily("eds.hf")
+     *             .build());
+     * 
+     *         ctx.export("ecdDesktopTypeId1", ids.applyValue(getDesktopTypesResult -> getDesktopTypesResult.types()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDesktopTypes(GetDesktopTypesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eds/getDesktopTypes:getDesktopTypes", TypeShape.of(GetDesktopTypesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecd Desktop Types of the current Alibaba Cloud user. * @@ -2714,6 +3051,113 @@ public static Output getDesktops(GetDesktopsArgs args, Invoke * <!--End PulumiCodeChooser --> * */ + public static Output getDesktops(GetDesktopsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eds/getDesktops:getDesktops", TypeShape.of(GetDesktopsResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Ecd Desktops of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.144.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eds.SimpleOfficeSite;
+     * import com.pulumi.alicloud.eds.SimpleOfficeSiteArgs;
+     * import com.pulumi.alicloud.eds.EdsFunctions;
+     * import com.pulumi.alicloud.eds.inputs.GetBundlesArgs;
+     * import com.pulumi.alicloud.eds.EcdPolicyGroup;
+     * import com.pulumi.alicloud.eds.EcdPolicyGroupArgs;
+     * import com.pulumi.alicloud.eds.inputs.EcdPolicyGroupAuthorizeAccessPolicyRuleArgs;
+     * import com.pulumi.alicloud.eds.inputs.EcdPolicyGroupAuthorizeSecurityPolicyRuleArgs;
+     * import com.pulumi.alicloud.eds.User;
+     * import com.pulumi.alicloud.eds.UserArgs;
+     * import com.pulumi.alicloud.eds.Desktop;
+     * import com.pulumi.alicloud.eds.DesktopArgs;
+     * import com.pulumi.alicloud.eds.inputs.GetDesktopsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var defaultSimpleOfficeSite = new SimpleOfficeSite("defaultSimpleOfficeSite", SimpleOfficeSiteArgs.builder()
+     *             .cidrBlock("172.16.0.0/12")
+     *             .desktopAccessType("Internet")
+     *             .officeSiteName("your_office_site_name")
+     *             .build());
+     * 
+     *         final var default = EdsFunctions.getBundles(GetBundlesArgs.builder()
+     *             .bundleType("SYSTEM")
+     *             .build());
+     * 
+     *         var defaultEcdPolicyGroup = new EcdPolicyGroup("defaultEcdPolicyGroup", EcdPolicyGroupArgs.builder()
+     *             .policyGroupName("your_policy_group_name")
+     *             .clipboard("readwrite")
+     *             .localDrive("read")
+     *             .authorizeAccessPolicyRules(EcdPolicyGroupAuthorizeAccessPolicyRuleArgs.builder()
+     *                 .description("example_value")
+     *                 .cidrIp("1.2.3.4/24")
+     *                 .build())
+     *             .authorizeSecurityPolicyRules(EcdPolicyGroupAuthorizeSecurityPolicyRuleArgs.builder()
+     *                 .type("inflow")
+     *                 .policy("accept")
+     *                 .description("example_value")
+     *                 .portRange("80/80")
+     *                 .ipProtocol("TCP")
+     *                 .priority("1")
+     *                 .cidrIp("0.0.0.0/0")
+     *                 .build())
+     *             .build());
+     * 
+     *         var defaultUser = new User("defaultUser", UserArgs.builder()
+     *             .endUserId("your_end_user_id")
+     *             .email("your_email")
+     *             .phone("your_phone")
+     *             .password("your_password")
+     *             .build());
+     * 
+     *         var defaultDesktop = new Desktop("defaultDesktop", DesktopArgs.builder()
+     *             .officeSiteId(defaultSimpleOfficeSite.id())
+     *             .policyGroupId(defaultEcdPolicyGroup.id())
+     *             .bundleId(default_.bundles()[0].id())
+     *             .desktopName("your_desktop_name")
+     *             .endUserIds(defaultUser.id())
+     *             .build());
+     * 
+     *         final var ids = EdsFunctions.getDesktops(GetDesktopsArgs.builder()
+     *             .ids(defaultDesktop.id())
+     *             .build());
+     * 
+     *         ctx.export("ecdDesktopId1", ids.applyValue(getDesktopsResult -> getDesktopsResult).applyValue(ids -> ids.applyValue(getDesktopsResult -> getDesktopsResult.desktops()[0].id())));
+     *         final var nameRegex = EdsFunctions.getDesktops(GetDesktopsArgs.builder()
+     *             .nameRegex(defaultDesktop.desktopName())
+     *             .build());
+     * 
+     *         ctx.export("ecdDesktopId2", nameRegex.applyValue(getDesktopsResult -> getDesktopsResult).applyValue(nameRegex -> nameRegex.applyValue(getDesktopsResult -> getDesktopsResult.desktops()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ public static CompletableFuture getDesktopsPlain(GetDesktopsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:eds/getDesktops:getDesktops", TypeShape.of(GetDesktopsResult.class), args, Utilities.withVersion(options)); } @@ -3344,13 +3788,13 @@ public static Output getImages(GetImagesArgs args, InvokeOption * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getImagesPlain(GetImagesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:eds/getImages:getImages", TypeShape.of(GetImagesResult.class), args, Utilities.withVersion(options)); + public static Output getImages(GetImagesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eds/getImages:getImages", TypeShape.of(GetImagesResult.class), args, Utilities.withVersion(options)); } /** - * This data source provides the Ecd Nas File Systems of the current Alibaba Cloud user. + * This data source provides the Ecd Images of the current Alibaba Cloud user. * - * > **NOTE:** Available in v1.141.0+. + * > **NOTE:** Available in v1.146.0+. * * ## Example Usage * @@ -3366,10 +3810,115 @@ public static CompletableFuture getImagesPlain(GetImagesPlainAr * import com.pulumi.core.Output; * import com.pulumi.alicloud.eds.SimpleOfficeSite; * import com.pulumi.alicloud.eds.SimpleOfficeSiteArgs; - * import com.pulumi.alicloud.eds.NasFileSystem; - * import com.pulumi.alicloud.eds.NasFileSystemArgs; * import com.pulumi.alicloud.eds.EdsFunctions; - * import com.pulumi.alicloud.eds.inputs.GetNasFileSystemsArgs; + * import com.pulumi.alicloud.eds.inputs.GetBundlesArgs; + * import com.pulumi.alicloud.eds.EcdPolicyGroup; + * import com.pulumi.alicloud.eds.EcdPolicyGroupArgs; + * import com.pulumi.alicloud.eds.inputs.EcdPolicyGroupAuthorizeAccessPolicyRuleArgs; + * import com.pulumi.alicloud.eds.inputs.EcdPolicyGroupAuthorizeSecurityPolicyRuleArgs; + * import com.pulumi.alicloud.eds.Desktop; + * import com.pulumi.alicloud.eds.DesktopArgs; + * import com.pulumi.alicloud.eds.Image; + * import com.pulumi.alicloud.eds.ImageArgs; + * import com.pulumi.alicloud.eds.inputs.GetImagesArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; + * + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * var defaultSimpleOfficeSite = new SimpleOfficeSite("defaultSimpleOfficeSite", SimpleOfficeSiteArgs.builder() + * .cidrBlock("172.16.0.0/12") + * .desktopAccessType("Internet") + * .officeSiteName("your_simple_office_site_name") + * .build()); + * + * final var default = EdsFunctions.getBundles(GetBundlesArgs.builder() + * .bundleType("SYSTEM") + * .build()); + * + * var defaultEcdPolicyGroup = new EcdPolicyGroup("defaultEcdPolicyGroup", EcdPolicyGroupArgs.builder() + * .policyGroupName("your_policy_group_name") + * .clipboard("readwrite") + * .localDrive("read") + * .authorizeAccessPolicyRules(EcdPolicyGroupAuthorizeAccessPolicyRuleArgs.builder() + * .description("example_value") + * .cidrIp("1.2.3.4/24") + * .build()) + * .authorizeSecurityPolicyRules(EcdPolicyGroupAuthorizeSecurityPolicyRuleArgs.builder() + * .type("inflow") + * .policy("accept") + * .description("example_value") + * .portRange("80/80") + * .ipProtocol("TCP") + * .priority("1") + * .cidrIp("0.0.0.0/0") + * .build()) + * .build()); + * + * var defaultDesktop = new Desktop("defaultDesktop", DesktopArgs.builder() + * .officeSiteId(defaultSimpleOfficeSite.id()) + * .policyGroupId(defaultEcdPolicyGroup.id()) + * .bundleId(default_.bundles()[1].id()) + * .desktopName("your_desktop_name") + * .build()); + * + * var defaultImage = new Image("defaultImage", ImageArgs.builder() + * .imageName("your_image_name") + * .desktopId(defaultDesktop.id()) + * .description("example_value") + * .build()); + * + * final var ids = EdsFunctions.getImages(GetImagesArgs.builder() + * .ids(defaultImage.id()) + * .build()); + * + * ctx.export("ecdImageId1", ids.applyValue(getImagesResult -> getImagesResult).applyValue(ids -> ids.applyValue(getImagesResult -> getImagesResult.images()[0].id()))); + * final var nameRegex = EdsFunctions.getImages(GetImagesArgs.builder() + * .nameRegex(defaultImage.imageName()) + * .build()); + * + * ctx.export("ecdImageId2", nameRegex.applyValue(getImagesResult -> getImagesResult).applyValue(nameRegex -> nameRegex.applyValue(getImagesResult -> getImagesResult.images()[0].id()))); + * } + * } + * } + *
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getImagesPlain(GetImagesPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:eds/getImages:getImages", TypeShape.of(GetImagesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Ecd Nas File Systems of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.141.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eds.SimpleOfficeSite;
+     * import com.pulumi.alicloud.eds.SimpleOfficeSiteArgs;
+     * import com.pulumi.alicloud.eds.NasFileSystem;
+     * import com.pulumi.alicloud.eds.NasFileSystemArgs;
+     * import com.pulumi.alicloud.eds.EdsFunctions;
+     * import com.pulumi.alicloud.eds.inputs.GetNasFileSystemsArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -3682,6 +4231,73 @@ public static CompletableFuture getNasFileSystemsPlain(
     public static Output getNasFileSystems(GetNasFileSystemsArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("alicloud:eds/getNasFileSystems:getNasFileSystems", TypeShape.of(GetNasFileSystemsResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * This data source provides the Ecd Nas File Systems of the current Alibaba Cloud user.
+     * 
+     * > **NOTE:** Available in v1.141.0+.
+     * 
+     * ## Example Usage
+     * 
+     * Basic Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eds.SimpleOfficeSite;
+     * import com.pulumi.alicloud.eds.SimpleOfficeSiteArgs;
+     * import com.pulumi.alicloud.eds.NasFileSystem;
+     * import com.pulumi.alicloud.eds.NasFileSystemArgs;
+     * import com.pulumi.alicloud.eds.EdsFunctions;
+     * import com.pulumi.alicloud.eds.inputs.GetNasFileSystemsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var default_ = new SimpleOfficeSite("default", SimpleOfficeSiteArgs.builder()
+     *             .cidrBlock("172.16.0.0/12")
+     *             .desktopAccessType("Internet")
+     *             .officeSiteName("your_office_site_name")
+     *             .enableInternetAccess(false)
+     *             .build());
+     * 
+     *         var defaultNasFileSystem = new NasFileSystem("defaultNasFileSystem", NasFileSystemArgs.builder()
+     *             .description("your_description")
+     *             .officeSiteId(default_.id())
+     *             .nasFileSystemName("your_nas_file_system_name")
+     *             .build());
+     * 
+     *         final var ids = EdsFunctions.getNasFileSystems();
+     * 
+     *         ctx.export("ecdNasFileSystemId1", ids.applyValue(getNasFileSystemsResult -> getNasFileSystemsResult.systems()[0].id()));
+     *         final var nameRegex = EdsFunctions.getNasFileSystems(GetNasFileSystemsArgs.builder()
+     *             .nameRegex(defaultNasFileSystem.nasFileSystemName())
+     *             .build());
+     * 
+     *         ctx.export("ecdNasFileSystemId2", nameRegex.applyValue(getNasFileSystemsResult -> getNasFileSystemsResult).applyValue(nameRegex -> nameRegex.applyValue(getNasFileSystemsResult -> getNasFileSystemsResult.systems()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNasFileSystems(GetNasFileSystemsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eds/getNasFileSystems:getNasFileSystems", TypeShape.of(GetNasFileSystemsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecd Nas File Systems of the current Alibaba Cloud user. * @@ -4059,6 +4675,68 @@ public static CompletableFuture getNetworkPackagesPlai public static Output getNetworkPackages(GetNetworkPackagesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:eds/getNetworkPackages:getNetworkPackages", TypeShape.of(GetNetworkPackagesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ecd Network Packages of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.142.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eds.SimpleOfficeSite;
+     * import com.pulumi.alicloud.eds.SimpleOfficeSiteArgs;
+     * import com.pulumi.alicloud.eds.NetworkPackage;
+     * import com.pulumi.alicloud.eds.NetworkPackageArgs;
+     * import com.pulumi.alicloud.eds.EdsFunctions;
+     * import com.pulumi.alicloud.eds.inputs.GetNetworkPackagesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var defaultSimpleOfficeSite = new SimpleOfficeSite("defaultSimpleOfficeSite", SimpleOfficeSiteArgs.builder()
+     *             .cidrBlock("172.16.0.0/12")
+     *             .desktopAccessType("Internet")
+     *             .officeSiteName("example_value")
+     *             .build());
+     * 
+     *         var defaultNetworkPackage = new NetworkPackage("defaultNetworkPackage", NetworkPackageArgs.builder()
+     *             .bandwidth("10")
+     *             .officeSiteId(defaultSimpleOfficeSite.id())
+     *             .build());
+     * 
+     *         final var default = EdsFunctions.getNetworkPackages(GetNetworkPackagesArgs.builder()
+     *             .ids(defaultNetworkPackage.id())
+     *             .build());
+     * 
+     *         ctx.export("ecdNetworkPackageId1", default_.applyValue(default_ -> default_.packages()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNetworkPackages(GetNetworkPackagesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eds/getNetworkPackages:getNetworkPackages", TypeShape.of(GetNetworkPackagesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecd Network Packages of the current Alibaba Cloud user. * @@ -4190,8 +4868,80 @@ public static CompletableFuture getNetworkPackagesPlai * <!--End PulumiCodeChooser --> * */ - public static Output getPolicyGroups() { - return getPolicyGroups(GetPolicyGroupsArgs.Empty, InvokeOptions.Empty); + public static Output getPolicyGroups() { + return getPolicyGroups(GetPolicyGroupsArgs.Empty, InvokeOptions.Empty); + } + /** + * This data source provides the Ecd Policy Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.130.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eds.EcdPolicyGroup;
+     * import com.pulumi.alicloud.eds.EcdPolicyGroupArgs;
+     * import com.pulumi.alicloud.eds.inputs.EcdPolicyGroupAuthorizeAccessPolicyRuleArgs;
+     * import com.pulumi.alicloud.eds.inputs.EcdPolicyGroupAuthorizeSecurityPolicyRuleArgs;
+     * import com.pulumi.alicloud.eds.EdsFunctions;
+     * import com.pulumi.alicloud.eds.inputs.GetPolicyGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var default_ = new EcdPolicyGroup("default", EcdPolicyGroupArgs.builder()
+     *             .policyGroupName("my-policy-group")
+     *             .clipboard("read")
+     *             .localDrive("read")
+     *             .usbRedirect("off")
+     *             .watermark("off")
+     *             .authorizeAccessPolicyRules(EcdPolicyGroupAuthorizeAccessPolicyRuleArgs.builder()
+     *                 .description("my-description1")
+     *                 .cidrIp("1.2.3.45/24")
+     *                 .build())
+     *             .authorizeSecurityPolicyRules(EcdPolicyGroupAuthorizeSecurityPolicyRuleArgs.builder()
+     *                 .type("inflow")
+     *                 .policy("accept")
+     *                 .description("my-description")
+     *                 .portRange("80/80")
+     *                 .ipProtocol("TCP")
+     *                 .priority("1")
+     *                 .cidrIp("1.2.3.4/24")
+     *                 .build())
+     *             .build());
+     * 
+     *         final var nameRegex = EdsFunctions.getPolicyGroups(GetPolicyGroupsArgs.builder()
+     *             .nameRegex("^my-policy")
+     *             .build());
+     * 
+     *         ctx.export("ecdPolicyGroupId", nameRegex.applyValue(getPolicyGroupsResult -> getPolicyGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getPolicyGroupsPlain() { + return getPolicyGroupsPlain(GetPolicyGroupsPlainArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Ecd Policy Groups of the current Alibaba Cloud user. @@ -4262,8 +5012,8 @@ public static Output getPolicyGroups() { * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getPolicyGroupsPlain() { - return getPolicyGroupsPlain(GetPolicyGroupsPlainArgs.Empty, InvokeOptions.Empty); + public static Output getPolicyGroups(GetPolicyGroupsArgs args) { + return getPolicyGroups(args, InvokeOptions.Empty); } /** * This data source provides the Ecd Policy Groups of the current Alibaba Cloud user. @@ -4334,8 +5084,8 @@ public static CompletableFuture getPolicyGroupsPlain() { * <!--End PulumiCodeChooser --> * */ - public static Output getPolicyGroups(GetPolicyGroupsArgs args) { - return getPolicyGroups(args, InvokeOptions.Empty); + public static CompletableFuture getPolicyGroupsPlain(GetPolicyGroupsPlainArgs args) { + return getPolicyGroupsPlain(args, InvokeOptions.Empty); } /** * This data source provides the Ecd Policy Groups of the current Alibaba Cloud user. @@ -4406,8 +5156,8 @@ public static Output getPolicyGroups(GetPolicyGroupsArgs * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getPolicyGroupsPlain(GetPolicyGroupsPlainArgs args) { - return getPolicyGroupsPlain(args, InvokeOptions.Empty); + public static Output getPolicyGroups(GetPolicyGroupsArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:eds/getPolicyGroups:getPolicyGroups", TypeShape.of(GetPolicyGroupsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Ecd Policy Groups of the current Alibaba Cloud user. @@ -4478,7 +5228,7 @@ public static CompletableFuture getPolicyGroupsPlain(GetP * <!--End PulumiCodeChooser --> * */ - public static Output getPolicyGroups(GetPolicyGroupsArgs args, InvokeOptions options) { + public static Output getPolicyGroups(GetPolicyGroupsArgs args, InvokeOutputOptions options) { return Deployment.getInstance().invoke("alicloud:eds/getPolicyGroups:getPolicyGroups", TypeShape.of(GetPolicyGroupsResult.class), args, Utilities.withVersion(options)); } /** @@ -4813,6 +5563,58 @@ public static CompletableFuture getRamDirectoriesPlain( public static Output getRamDirectories(GetRamDirectoriesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:eds/getRamDirectories:getRamDirectories", TypeShape.of(GetRamDirectoriesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ecd Ram Directories of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.174.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eds.EdsFunctions;
+     * import com.pulumi.alicloud.eds.inputs.GetRamDirectoriesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EdsFunctions.getRamDirectories(GetRamDirectoriesArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("ecdRamDirectoryId1", ids.applyValue(getRamDirectoriesResult -> getRamDirectoriesResult.directories()[0].id()));
+     *         final var nameRegex = EdsFunctions.getRamDirectories(GetRamDirectoriesArgs.builder()
+     *             .nameRegex("^my-RamDirectory")
+     *             .build());
+     * 
+     *         ctx.export("ecdRamDirectoryId2", nameRegex.applyValue(getRamDirectoriesResult -> getRamDirectoriesResult.directories()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRamDirectories(GetRamDirectoriesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eds/getRamDirectories:getRamDirectories", TypeShape.of(GetRamDirectoriesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecd Ram Directories of the current Alibaba Cloud user. * @@ -5105,6 +5907,54 @@ public static CompletableFuture getSimpleOfficeSites public static Output getSimpleOfficeSites(GetSimpleOfficeSitesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:eds/getSimpleOfficeSites:getSimpleOfficeSites", TypeShape.of(GetSimpleOfficeSitesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ecd Simple Office Sites of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.140.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eds.EdsFunctions;
+     * import com.pulumi.alicloud.eds.inputs.GetSimpleOfficeSitesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = EdsFunctions.getSimpleOfficeSites(GetSimpleOfficeSitesArgs.builder()
+     *             .ids("example_id")
+     *             .status("REGISTERED")
+     *             .build());
+     * 
+     *         ctx.export("desktopAccessType", default_.sites()[0].desktopAccessType());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSimpleOfficeSites(GetSimpleOfficeSitesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eds/getSimpleOfficeSites:getSimpleOfficeSites", TypeShape.of(GetSimpleOfficeSitesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecd Simple Office Sites of the current Alibaba Cloud user. * @@ -5378,6 +6228,51 @@ public static CompletableFuture getSnapshotsPlain(GetSnapsho public static Output getSnapshots(GetSnapshotsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:eds/getSnapshots:getSnapshots", TypeShape.of(GetSnapshotsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ecd Snapshots of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.169.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eds.EdsFunctions;
+     * import com.pulumi.alicloud.eds.inputs.GetSnapshotsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EdsFunctions.getSnapshots();
+     * 
+     *         ctx.export("ecdSnapshotId1", ids.applyValue(getSnapshotsResult -> getSnapshotsResult.snapshots()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSnapshots(GetSnapshotsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eds/getSnapshots:getSnapshots", TypeShape.of(GetSnapshotsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ecd Snapshots of the current Alibaba Cloud user. * @@ -5693,6 +6588,60 @@ public static CompletableFuture getUsersPlain(GetUsersPlainArgs public static Output getUsers(GetUsersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:eds/getUsers:getUsers", TypeShape.of(GetUsersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Elastic Desktop Service (ECD) Users of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.142.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eds.User;
+     * import com.pulumi.alicloud.eds.UserArgs;
+     * import com.pulumi.alicloud.eds.EdsFunctions;
+     * import com.pulumi.alicloud.eds.inputs.GetUsersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var default_ = new User("default", UserArgs.builder()
+     *             .endUserId("example_value")
+     *             .email("your_email")
+     *             .phone("your_phone")
+     *             .password("your_password")
+     *             .build());
+     * 
+     *         final var ids = EdsFunctions.getUsers();
+     * 
+     *         ctx.export("ecdUserId1", ids.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getUsers(GetUsersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eds/getUsers:getUsers", TypeShape.of(GetUsersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Elastic Desktop Service (ECD) Users of the current Alibaba Cloud user. * @@ -5972,6 +6921,51 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:eds/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the available zones with the Elastic Desktop Service (ECD) of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.174.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eds.EdsFunctions;
+     * import com.pulumi.alicloud.eds.inputs.GetZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = EdsFunctions.getZones();
+     * 
+     *         ctx.export("alicloudEcdZones", default_.zones()[0].zoneId());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eds/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the available zones with the Elastic Desktop Service (ECD) of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/eflo/EfloFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/eflo/EfloFunctions.java index ec1320a9df..c9b899b094 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/eflo/EfloFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/eflo/EfloFunctions.java @@ -14,6 +14,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class EfloFunctions { @@ -257,6 +258,54 @@ public static CompletableFuture getSubnetsPlain(GetSubnetsPlai public static Output getSubnets(GetSubnetsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:eflo/getSubnets:getSubnets", TypeShape.of(GetSubnetsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Eflo Subnet available to the user.[What is Subnet](https://help.aliyun.com/document_detail/604977.html) + * + * > **NOTE:** Available in 1.204.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eflo.EfloFunctions;
+     * import com.pulumi.alicloud.eflo.inputs.GetSubnetsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = EfloFunctions.getSubnets(GetSubnetsArgs.builder()
+     *             .nameRegex(defaultAlicloudEfloSubnet.name())
+     *             .subnetName("SubnetTestForTerraform")
+     *             .vpdId(vpdId)
+     *             .zoneId(zoneId)
+     *             .build());
+     * 
+     *         ctx.export("alicloudEfloSubnetExampleId", default_.subnets()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSubnets(GetSubnetsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eflo/getSubnets:getSubnets", TypeShape.of(GetSubnetsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Eflo Subnet available to the user.[What is Subnet](https://help.aliyun.com/document_detail/604977.html) * @@ -540,6 +589,53 @@ public static CompletableFuture getVpdsPlain(GetVpdsPlainArgs arg public static Output getVpds(GetVpdsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:eflo/getVpds:getVpds", TypeShape.of(GetVpdsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Eflo Vpd available to the user.[What is Vpd](https://help.aliyun.com/document_detail/604976.html) + * + * > **NOTE:** Available in 1.201.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eflo.EfloFunctions;
+     * import com.pulumi.alicloud.eflo.inputs.GetVpdsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = EfloFunctions.getVpds(GetVpdsArgs.builder()
+     *             .ids(defaultAlicloudEfloVpd.id())
+     *             .nameRegex(defaultAlicloudEfloVpd.name())
+     *             .vpdName("RMC-Terraform-Test")
+     *             .build());
+     * 
+     *         ctx.export("alicloudEfloVpdExampleId", default_.vpds()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVpds(GetVpdsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eflo/getVpds:getVpds", TypeShape.of(GetVpdsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Eflo Vpd available to the user.[What is Vpd](https://help.aliyun.com/document_detail/604976.html) * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/ehpc/EhpcFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/ehpc/EhpcFunctions.java index 7bf980be3d..14a5bb2ce7 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/ehpc/EhpcFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/ehpc/EhpcFunctions.java @@ -14,6 +14,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class EhpcFunctions { @@ -277,6 +278,58 @@ public static CompletableFuture getClustersPlain(GetClustersP public static Output getClusters(GetClustersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ehpc/getClusters:getClusters", TypeShape.of(GetClustersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ehpc Clusters of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.173.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ehpc.EhpcFunctions;
+     * import com.pulumi.alicloud.ehpc.inputs.GetClustersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EhpcFunctions.getClusters(GetClustersArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("ehpcClusterId1", ids.applyValue(getClustersResult -> getClustersResult.clusters()[0].id()));
+     *         final var nameRegex = EhpcFunctions.getClusters(GetClustersArgs.builder()
+     *             .nameRegex("^my-Cluster")
+     *             .build());
+     * 
+     *         ctx.export("ehpcClusterId2", nameRegex.applyValue(getClustersResult -> getClustersResult.clusters()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getClusters(GetClustersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ehpc/getClusters:getClusters", TypeShape.of(GetClustersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ehpc Clusters of the current Alibaba Cloud user. * @@ -599,6 +652,60 @@ public static CompletableFuture getJobTemplatesPlain(GetJ public static Output getJobTemplates(GetJobTemplatesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ehpc/getJobTemplates:getJobTemplates", TypeShape.of(GetJobTemplatesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ehpc Job Templates of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.133.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ehpc.JobTemplate;
+     * import com.pulumi.alicloud.ehpc.JobTemplateArgs;
+     * import com.pulumi.alicloud.ehpc.EhpcFunctions;
+     * import com.pulumi.alicloud.ehpc.inputs.GetJobTemplatesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var default_ = new JobTemplate("default", JobTemplateArgs.builder()
+     *             .jobTemplateName("example_value")
+     *             .commandLine("./LammpsTest/lammps.pbs")
+     *             .build());
+     * 
+     *         final var ids = EhpcFunctions.getJobTemplates(GetJobTemplatesArgs.builder()
+     *             .ids(default_.id())
+     *             .build());
+     * 
+     *         ctx.export("ehpcJobTemplateId1", ids.applyValue(getJobTemplatesResult -> getJobTemplatesResult).applyValue(ids -> ids.applyValue(getJobTemplatesResult -> getJobTemplatesResult.id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getJobTemplates(GetJobTemplatesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ehpc/getJobTemplates:getJobTemplates", TypeShape.of(GetJobTemplatesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ehpc Job Templates of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/eipanycast/EipanycastFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/eipanycast/EipanycastFunctions.java index 4a8a071160..f9a8c2e535 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/eipanycast/EipanycastFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/eipanycast/EipanycastFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class EipanycastFunctions { @@ -254,6 +255,54 @@ public static CompletableFuture getAnycastEipAddre public static Output getAnycastEipAddresses(GetAnycastEipAddressesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:eipanycast/getAnycastEipAddresses:getAnycastEipAddresses", TypeShape.of(GetAnycastEipAddressesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Eipanycast Anycast Eip Addresses of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.113.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eipanycast.EipanycastFunctions;
+     * import com.pulumi.alicloud.eipanycast.inputs.GetAnycastEipAddressesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = EipanycastFunctions.getAnycastEipAddresses(GetAnycastEipAddressesArgs.builder()
+     *             .ids("example_value")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstEipanycastAnycastEipAddressId", example.applyValue(getAnycastEipAddressesResult -> getAnycastEipAddressesResult.addresses()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAnycastEipAddresses(GetAnycastEipAddressesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eipanycast/getAnycastEipAddresses:getAnycastEipAddresses", TypeShape.of(GetAnycastEipAddressesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Eipanycast Anycast Eip Addresses of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/elasticsearch/ElasticsearchFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/elasticsearch/ElasticsearchFunctions.java index 3784da8ff5..ebf2e10c58 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/elasticsearch/ElasticsearchFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/elasticsearch/ElasticsearchFunctions.java @@ -14,6 +14,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class ElasticsearchFunctions { @@ -32,6 +33,9 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:elasticsearch/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:elasticsearch/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getInstancesPlain(GetInstancesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:elasticsearch/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } @@ -250,6 +254,49 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:elasticsearch/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides availability zones for Elasticsearch that can be accessed by an Alibaba Cloud account within the region configured in the provider. + * + * > **NOTE:** Available in v1.73.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.elasticsearch.ElasticsearchFunctions;
+     * import com.pulumi.alicloud.elasticsearch.inputs.GetZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var zonesIds = ElasticsearchFunctions.getZones();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:elasticsearch/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides availability zones for Elasticsearch that can be accessed by an Alibaba Cloud account within the region configured in the provider. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/emr/EmrFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/emr/EmrFunctions.java index 006189de42..666cb081ef 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/emr/EmrFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/emr/EmrFunctions.java @@ -20,6 +20,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class EmrFunctions { @@ -1172,6 +1173,198 @@ public static Output getClusters(GetClustersArgs args, Invoke * <!--End PulumiCodeChooser --> * */ + public static Output getClusters(GetClustersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:emr/getClusters:getClusters", TypeShape.of(GetClustersResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Emr Clusters of the current Alibaba Cloud user. + * + * > **DEPRECATED:** This datasource has been deprecated from version `1.204.0`. Please use new datasource emrv2_clusters. + * + * > **NOTE:** Available in v1.146.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
+     * import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
+     * import com.pulumi.alicloud.emr.EmrFunctions;
+     * import com.pulumi.alicloud.emr.inputs.GetMainVersionsArgs;
+     * import com.pulumi.alicloud.emr.inputs.GetInstanceTypesArgs;
+     * import com.pulumi.alicloud.emr.inputs.GetDiskTypesArgs;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
+     * import com.pulumi.alicloud.ecs.SecurityGroup;
+     * import com.pulumi.alicloud.ecs.SecurityGroupArgs;
+     * import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
+     * import com.pulumi.alicloud.ram.Role;
+     * import com.pulumi.alicloud.ram.RoleArgs;
+     * import com.pulumi.alicloud.emr.Cluster;
+     * import com.pulumi.alicloud.emr.ClusterArgs;
+     * import com.pulumi.alicloud.emr.inputs.ClusterHostGroupArgs;
+     * import com.pulumi.alicloud.emr.inputs.GetClustersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("tf-testAccClusters");
+     *         final var default = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
+     *             .status("OK")
+     *             .build());
+     * 
+     *         final var defaultGetMainVersions = EmrFunctions.getMainVersions();
+     * 
+     *         final var defaultGetInstanceTypes = EmrFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
+     *             .destinationResource("InstanceType")
+     *             .clusterType(defaultGetMainVersions.applyValue(getMainVersionsResult -> getMainVersionsResult.mainVersions()[0].clusterTypes()[0]))
+     *             .supportLocalStorage(false)
+     *             .instanceChargeType("PostPaid")
+     *             .supportNodeTypes(            
+     *                 "MASTER",
+     *                 "CORE",
+     *                 "TASK")
+     *             .build());
+     * 
+     *         final var dataDisk = EmrFunctions.getDiskTypes(GetDiskTypesArgs.builder()
+     *             .destinationResource("DataDisk")
+     *             .clusterType(defaultGetMainVersions.applyValue(getMainVersionsResult -> getMainVersionsResult.mainVersions()[0].clusterTypes()[0]))
+     *             .instanceChargeType("PostPaid")
+     *             .instanceType(defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.types()[0].id()))
+     *             .zoneId(defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.types()[0].zoneId()))
+     *             .build());
+     * 
+     *         final var systemDisk = EmrFunctions.getDiskTypes(GetDiskTypesArgs.builder()
+     *             .destinationResource("SystemDisk")
+     *             .clusterType(defaultGetMainVersions.applyValue(getMainVersionsResult -> getMainVersionsResult.mainVersions()[0].clusterTypes()[0]))
+     *             .instanceChargeType("PostPaid")
+     *             .instanceType(defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.types()[0].id()))
+     *             .zoneId(defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.types()[0].zoneId()))
+     *             .build());
+     * 
+     *         final var defaultGetNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
+     *             .nameRegex("default-NODELETING")
+     *             .build());
+     * 
+     *         var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
+     *             .name(name)
+     *             .vpcId(defaultGetNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
+     *             .build());
+     * 
+     *         final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
+     *             .vpcId(defaultGetNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
+     *             .zoneId(defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.types()[0].zoneId()))
+     *             .build());
+     * 
+     *         var defaultRole = new Role("defaultRole", RoleArgs.builder()
+     *             .name(name)
+     *             .document("""
+     *     {
+     *         "Statement": [
+     *         {
+     *             "Action": "sts:AssumeRole",
+     *             "Effect": "Allow",
+     *             "Principal": {
+     *             "Service": [
+     *                 "emr.aliyuncs.com",
+     *                 "ecs.aliyuncs.com"
+     *             ]
+     *             }
+     *         }
+     *         ],
+     *         "Version": "1"
+     *     }
+     *             """)
+     *             .description("this is a role test.")
+     *             .force(true)
+     *             .build());
+     * 
+     *         var defaultCluster = new Cluster("defaultCluster", ClusterArgs.builder()
+     *             .name(name)
+     *             .emrVer(defaultGetMainVersions.applyValue(getMainVersionsResult -> getMainVersionsResult.mainVersions()[0].emrVersion()))
+     *             .clusterType(defaultGetMainVersions.applyValue(getMainVersionsResult -> getMainVersionsResult.mainVersions()[0].clusterTypes()[0]))
+     *             .hostGroups(            
+     *                 ClusterHostGroupArgs.builder()
+     *                     .hostGroupName("master_group")
+     *                     .hostGroupType("MASTER")
+     *                     .nodeCount("2")
+     *                     .instanceType(defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.types()[0].id()))
+     *                     .diskType(dataDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].value()))
+     *                     .diskCapacity(dataDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) > 160 ? dataDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) : 160)
+     *                     .diskCount("1")
+     *                     .sysDiskType(systemDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].value()))
+     *                     .sysDiskCapacity(systemDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) > 160 ? systemDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) : 160)
+     *                     .build(),
+     *                 ClusterHostGroupArgs.builder()
+     *                     .hostGroupName("core_group")
+     *                     .hostGroupType("CORE")
+     *                     .nodeCount("3")
+     *                     .instanceType(defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.types()[0].id()))
+     *                     .diskType(dataDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].value()))
+     *                     .diskCapacity(dataDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) > 160 ? dataDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) : 160)
+     *                     .diskCount("4")
+     *                     .sysDiskType(systemDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].value()))
+     *                     .sysDiskCapacity(systemDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) > 160 ? systemDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) : 160)
+     *                     .build(),
+     *                 ClusterHostGroupArgs.builder()
+     *                     .hostGroupName("task_group")
+     *                     .hostGroupType("TASK")
+     *                     .nodeCount("2")
+     *                     .instanceType(defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.types()[0].id()))
+     *                     .diskType(dataDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].value()))
+     *                     .diskCapacity(dataDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) > 160 ? dataDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) : 160)
+     *                     .diskCount("4")
+     *                     .sysDiskType(systemDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].value()))
+     *                     .sysDiskCapacity(systemDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) > 160 ? systemDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) : 160)
+     *                     .build())
+     *             .highAvailabilityEnable(true)
+     *             .zoneId(defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.types()[0].zoneId()))
+     *             .securityGroupId(defaultSecurityGroup.id())
+     *             .isOpenPublicIp(true)
+     *             .chargeType("PostPaid")
+     *             .vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
+     *             .userDefinedEmrEcsRole(defaultRole.name())
+     *             .sshEnable(true)
+     *             .masterPwd("ABCtest1234!")
+     *             .tags(Map.ofEntries(
+     *                 Map.entry("Created", "TF"),
+     *                 Map.entry("For", "acceptance test")
+     *             ))
+     *             .build());
+     * 
+     *         final var ids = EmrFunctions.getClusters();
+     * 
+     *         ctx.export("emrClusterId1", ids.applyValue(getClustersResult -> getClustersResult.clusters()[0].id()));
+     *         final var nameRegex = EmrFunctions.getClusters(GetClustersArgs.builder()
+     *             .nameRegex(defaultCluster.name())
+     *             .build());
+     * 
+     *         ctx.export("emrClusterId2", nameRegex.applyValue(getClustersResult -> getClustersResult).applyValue(nameRegex -> nameRegex.applyValue(getClustersResult -> getClustersResult.clusters()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ public static CompletableFuture getClustersPlain(GetClustersPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:emr/getClusters:getClusters", TypeShape.of(GetClustersResult.class), args, Utilities.withVersion(options)); } @@ -1325,6 +1518,56 @@ public static CompletableFuture getDiskTypesPlain(GetDiskTyp public static Output getDiskTypes(GetDiskTypesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:emr/getDiskTypes:getDiskTypes", TypeShape.of(GetDiskTypesResult.class), args, Utilities.withVersion(options)); } + /** + * The `alicloud.emr.getDiskTypes` data source provides a collection of data disk and + * system disk types available in Alibaba Cloud account when create a emr cluster. + * + * > **NOTE:** Available in 1.60.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.emr.EmrFunctions;
+     * import com.pulumi.alicloud.emr.inputs.GetDiskTypesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = EmrFunctions.getDiskTypes(GetDiskTypesArgs.builder()
+     *             .destinationResource("DataDisk")
+     *             .instanceChargeType("PostPaid")
+     *             .clusterType("HADOOP")
+     *             .instanceType("ecs.g5.xlarge")
+     *             .zoneId("cn-huhehaote-a")
+     *             .build());
+     * 
+     *         ctx.export("dataDiskType", default_.types()[0].value());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDiskTypes(GetDiskTypesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:emr/getDiskTypes:getDiskTypes", TypeShape.of(GetDiskTypesResult.class), args, Utilities.withVersion(options)); + } /** * The `alicloud.emr.getDiskTypes` data source provides a collection of data disk and * system disk types available in Alibaba Cloud account when create a emr cluster. @@ -1534,6 +1777,59 @@ public static CompletableFuture getInstanceTypesPlain(Ge public static Output getInstanceTypes(GetInstanceTypesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:emr/getInstanceTypes:getInstanceTypes", TypeShape.of(GetInstanceTypesResult.class), args, Utilities.withVersion(options)); } + /** + * The `alicloud.emr.getInstanceTypes` data source provides a collection of ecs + * instance types available in Alibaba Cloud account when create a emr cluster. + * + * > **NOTE:** Available in 1.59.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.emr.EmrFunctions;
+     * import com.pulumi.alicloud.emr.inputs.GetInstanceTypesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = EmrFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
+     *             .destinationResource("InstanceType")
+     *             .instanceChargeType("PostPaid")
+     *             .supportLocalStorage(false)
+     *             .clusterType("HADOOP")
+     *             .instanceType("ecs.g5.2xlarge")
+     *             .supportNodeTypes(            
+     *                 "MASTER",
+     *                 "CORE")
+     *             .build());
+     * 
+     *         ctx.export("firstInstanceType", default_.types()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceTypes(GetInstanceTypesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:emr/getInstanceTypes:getInstanceTypes", TypeShape.of(GetInstanceTypesResult.class), args, Utilities.withVersion(options)); + } /** * The `alicloud.emr.getInstanceTypes` data source provides a collection of ecs * instance types available in Alibaba Cloud account when create a emr cluster. @@ -1837,6 +2133,56 @@ public static CompletableFuture getMainVersionsPlain(GetM public static Output getMainVersions(GetMainVersionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:emr/getMainVersions:getMainVersions", TypeShape.of(GetMainVersionsResult.class), args, Utilities.withVersion(options)); } + /** + * The `alicloud.emr.getMainVersions` data source provides a collection of emr + * main versions available in Alibaba Cloud account when create a emr cluster. + * + * > **NOTE:** Available in 1.59.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.emr.EmrFunctions;
+     * import com.pulumi.alicloud.emr.inputs.GetMainVersionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = EmrFunctions.getMainVersions(GetMainVersionsArgs.builder()
+     *             .emrVersion("EMR-3.22.0")
+     *             .clusterTypes(            
+     *                 "HADOOP",
+     *                 "ZOOKEEPER")
+     *             .build());
+     * 
+     *         ctx.export("firstMainVersion", default_.mainVersions()[0].emrVersion());
+     *         ctx.export("thisClusterTypes", default_.mainVersions()[0].clusterTypes());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getMainVersions(GetMainVersionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:emr/getMainVersions:getMainVersions", TypeShape.of(GetMainVersionsResult.class), args, Utilities.withVersion(options)); + } /** * The `alicloud.emr.getMainVersions` data source provides a collection of emr * main versions available in Alibaba Cloud account when create a emr cluster. diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/emrv2/Emrv2Functions.java b/sdk/java/src/main/java/com/pulumi/alicloud/emrv2/Emrv2Functions.java index 7a8b845638..a4d2d1f1f5 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/emrv2/Emrv2Functions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/emrv2/Emrv2Functions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class Emrv2Functions { @@ -59,6 +60,15 @@ public static CompletableFuture getClustersPlain(GetClustersP public static Output getClusters(GetClustersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:emrv2/getClusters:getClusters", TypeShape.of(GetClustersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Emr Clusters of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.199.0. + * + */ + public static Output getClusters(GetClustersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:emrv2/getClusters:getClusters", TypeShape.of(GetClustersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Emr Clusters of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/ens/EnsFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/ens/EnsFunctions.java index 95d7f37f57..3eccfd1bed 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/ens/EnsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/ens/EnsFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class EnsFunctions { @@ -158,6 +159,54 @@ public static CompletableFuture getKeyPairsPlain(GetKeyPairsP public static Output getKeyPairs(GetKeyPairsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ens/getKeyPairs:getKeyPairs", TypeShape.of(GetKeyPairsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ens Key Pairs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.133.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ens.EnsFunctions;
+     * import com.pulumi.alicloud.ens.inputs.GetKeyPairsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var nameRegex = EnsFunctions.getKeyPairs(GetKeyPairsArgs.builder()
+     *             .version("example_value")
+     *             .nameRegex("^my-KeyPair")
+     *             .build());
+     * 
+     *         ctx.export("ensKeyPairId1", nameRegex.applyValue(getKeyPairsResult -> getKeyPairsResult.pairs()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getKeyPairs(GetKeyPairsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ens/getKeyPairs:getKeyPairs", TypeShape.of(GetKeyPairsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ens Key Pairs of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/ess/EssFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/ess/EssFunctions.java index 9e29838476..07bd8a369d 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/ess/EssFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/ess/EssFunctions.java @@ -29,6 +29,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class EssFunctions { @@ -77,6 +78,15 @@ public static CompletableFuture getAlarmsPlain(GetAlarmsPlainAr public static Output getAlarms(GetAlarmsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ess/getAlarms:getAlarms", TypeShape.of(GetAlarmsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides available alarm resources. + * + * > **NOTE** Available in 1.72.0+ + * + */ + public static Output getAlarms(GetAlarmsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ess/getAlarms:getAlarms", TypeShape.of(GetAlarmsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides available alarm resources. * @@ -316,6 +326,52 @@ public static CompletableFuture getLifecycleHooksPlain( public static Output getLifecycleHooks(GetLifecycleHooksArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ess/getLifecycleHooks:getLifecycleHooks", TypeShape.of(GetLifecycleHooksResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides available lifecycle hook resources. + * + * > **NOTE:** Available in 1.72.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ess.EssFunctions;
+     * import com.pulumi.alicloud.ess.inputs.GetLifecycleHooksArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ds = EssFunctions.getLifecycleHooks(GetLifecycleHooksArgs.builder()
+     *             .scalingGroupId("scaling_group_id")
+     *             .nameRegex("lifecyclehook_name")
+     *             .build());
+     * 
+     *         ctx.export("firstLifecycleHook", ds.applyValue(getLifecycleHooksResult -> getLifecycleHooksResult.hooks()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getLifecycleHooks(GetLifecycleHooksArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ess/getLifecycleHooks:getLifecycleHooks", TypeShape.of(GetLifecycleHooksResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides available lifecycle hook resources. * @@ -497,6 +553,51 @@ public static CompletableFuture getNotificationsPlain(Ge public static Output getNotifications(GetNotificationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ess/getNotifications:getNotifications", TypeShape.of(GetNotificationsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides available notification resources. + * + * > **NOTE:** Available in 1.72.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ess.EssFunctions;
+     * import com.pulumi.alicloud.ess.inputs.GetNotificationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ds = EssFunctions.getNotifications(GetNotificationsArgs.builder()
+     *             .scalingGroupId("scaling_group_id")
+     *             .build());
+     * 
+     *         ctx.export("firstNotification", ds.applyValue(getNotificationsResult -> getNotificationsResult.notifications()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNotifications(GetNotificationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ess/getNotifications:getNotifications", TypeShape.of(GetNotificationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides available notification resources. * @@ -777,6 +878,53 @@ public static CompletableFuture getScalingConfig public static Output getScalingConfigurations(GetScalingConfigurationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ess/getScalingConfigurations:getScalingConfigurations", TypeShape.of(GetScalingConfigurationsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides available scaling configuration resources. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ess.EssFunctions;
+     * import com.pulumi.alicloud.ess.inputs.GetScalingConfigurationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var scalingconfigurationsDs = EssFunctions.getScalingConfigurations(GetScalingConfigurationsArgs.builder()
+     *             .scalingGroupId("scaling_group_id")
+     *             .ids(            
+     *                 "scaling_configuration_id1",
+     *                 "scaling_configuration_id2")
+     *             .nameRegex("scaling_configuration_name")
+     *             .build());
+     * 
+     *         ctx.export("firstScalingRule", scalingconfigurationsDs.applyValue(getScalingConfigurationsResult -> getScalingConfigurationsResult.configurations()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getScalingConfigurations(GetScalingConfigurationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ess/getScalingConfigurations:getScalingConfigurations", TypeShape.of(GetScalingConfigurationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides available scaling configuration resources. * @@ -1054,6 +1202,52 @@ public static CompletableFuture getScalingGroupsPlain(Ge public static Output getScalingGroups(GetScalingGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ess/getScalingGroups:getScalingGroups", TypeShape.of(GetScalingGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides available scaling group resources. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ess.EssFunctions;
+     * import com.pulumi.alicloud.ess.inputs.GetScalingGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var scalinggroupsDs = EssFunctions.getScalingGroups(GetScalingGroupsArgs.builder()
+     *             .ids(            
+     *                 "scaling_group_id1",
+     *                 "scaling_group_id2")
+     *             .nameRegex("scaling_group_name")
+     *             .build());
+     * 
+     *         ctx.export("firstScalingGroup", scalinggroupsDs.applyValue(getScalingGroupsResult -> getScalingGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getScalingGroups(GetScalingGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ess/getScalingGroups:getScalingGroups", TypeShape.of(GetScalingGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides available scaling group resources. * @@ -1335,6 +1529,53 @@ public static CompletableFuture getScalingRulesPlain(GetS public static Output getScalingRules(GetScalingRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ess/getScalingRules:getScalingRules", TypeShape.of(GetScalingRulesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides available scaling rule resources. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ess.EssFunctions;
+     * import com.pulumi.alicloud.ess.inputs.GetScalingRulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var scalingrulesDs = EssFunctions.getScalingRules(GetScalingRulesArgs.builder()
+     *             .scalingGroupId("scaling_group_id")
+     *             .ids(            
+     *                 "scaling_rule_id1",
+     *                 "scaling_rule_id2")
+     *             .nameRegex("scaling_rule_name")
+     *             .build());
+     * 
+     *         ctx.export("firstScalingRule", scalingrulesDs.applyValue(getScalingRulesResult -> getScalingRulesResult.rules()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getScalingRules(GetScalingRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ess/getScalingRules:getScalingRules", TypeShape.of(GetScalingRulesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides available scaling rule resources. * @@ -1612,6 +1853,52 @@ public static CompletableFuture getScheduledTasksPlain( public static Output getScheduledTasks(GetScheduledTasksArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ess/getScheduledTasks:getScheduledTasks", TypeShape.of(GetScheduledTasksResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides available scheduled task resources. + * + * > **NOTE:** Available in 1.72.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ess.EssFunctions;
+     * import com.pulumi.alicloud.ess.inputs.GetScheduledTasksArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ds = EssFunctions.getScheduledTasks(GetScheduledTasksArgs.builder()
+     *             .scheduledTaskId("scheduled_task_id")
+     *             .nameRegex("scheduled_task_name")
+     *             .build());
+     * 
+     *         ctx.export("firstScheduledTask", ds.applyValue(getScheduledTasksResult -> getScheduledTasksResult.tasks()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getScheduledTasks(GetScheduledTasksArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ess/getScheduledTasks:getScheduledTasks", TypeShape.of(GetScheduledTasksResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides available scheduled task resources. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/eventbridge/EventbridgeFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/eventbridge/EventbridgeFunctions.java index 1475063c08..8b80988805 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/eventbridge/EventbridgeFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/eventbridge/EventbridgeFunctions.java @@ -20,6 +20,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class EventbridgeFunctions { @@ -273,6 +274,56 @@ public static CompletableFuture getEventBusesPlain(GetEvent public static Output getEventBuses(GetEventBusesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:eventbridge/getEventBuses:getEventBuses", TypeShape.of(GetEventBusesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Event Bridge Event Buses of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.129.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eventbridge.EventbridgeFunctions;
+     * import com.pulumi.alicloud.eventbridge.inputs.GetEventBusesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = EventbridgeFunctions.getEventBuses();
+     * 
+     *         ctx.export("eventBridgeEventBusId1", ids.applyValue(getEventBusesResult -> getEventBusesResult.buses()[0].id()));
+     *         final var nameRegex = EventbridgeFunctions.getEventBuses(GetEventBusesArgs.builder()
+     *             .nameRegex("^my-EventBus")
+     *             .build());
+     * 
+     *         ctx.export("eventBridgeEventBusId2", nameRegex.applyValue(getEventBusesResult -> getEventBusesResult.buses()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEventBuses(GetEventBusesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eventbridge/getEventBuses:getEventBuses", TypeShape.of(GetEventBusesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Event Bridge Event Buses of the current Alibaba Cloud user. * @@ -563,6 +614,54 @@ public static CompletableFuture getEventSourcesPlain(GetE public static Output getEventSources(GetEventSourcesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:eventbridge/getEventSources:getEventSources", TypeShape.of(GetEventSourcesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Event Bridge Event Sources of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.130.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eventbridge.EventbridgeFunctions;
+     * import com.pulumi.alicloud.eventbridge.inputs.GetEventSourcesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = EventbridgeFunctions.getEventSources(GetEventSourcesArgs.builder()
+     *             .ids("example_value")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstEventBridgeEventSourceId", example.applyValue(getEventSourcesResult -> getEventSourcesResult.sources()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEventSources(GetEventSourcesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eventbridge/getEventSources:getEventSources", TypeShape.of(GetEventSourcesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Event Bridge Event Sources of the current Alibaba Cloud user. * @@ -758,6 +857,55 @@ public static CompletableFuture getRulesPlain(GetRulesPlainArgs public static Output getRules(GetRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:eventbridge/getRules:getRules", TypeShape.of(GetRulesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Event Bridge Rules of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.129.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eventbridge.EventbridgeFunctions;
+     * import com.pulumi.alicloud.eventbridge.inputs.GetRulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = EventbridgeFunctions.getRules(GetRulesArgs.builder()
+     *             .eventBusName("example_value")
+     *             .ids("example_value")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstEventBridgeRuleId", example.applyValue(getRulesResult -> getRulesResult.rules()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRules(GetRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eventbridge/getRules:getRules", TypeShape.of(GetRulesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Event Bridge Rules of the current Alibaba Cloud user. * @@ -1047,6 +1195,54 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:eventbridge/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open Event Bridge service automatically. If the service has been opened, it will return opened. + * + * For information about Event Bridge and how to use it, see [What is Event Bridge](https://www.alibabacloud.com/help/en/doc-detail/163239.htm). + * + * > **NOTE:** Available in v1.126.0+ + * + * > **NOTE:** This data source supports `cn-shanghai`, `cn-hangzhou` and `ap-southeast-1` regions. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.eventbridge.EventbridgeFunctions;
+     * import com.pulumi.alicloud.eventbridge.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = EventbridgeFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:eventbridge/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open Event Bridge service automatically. If the service has been opened, it will return opened. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/expressconnect/ExpressconnectFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/expressconnect/ExpressconnectFunctions.java index a4ccb45e6b..f1ebfa2e41 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/expressconnect/ExpressconnectFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/expressconnect/ExpressconnectFunctions.java @@ -32,6 +32,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class ExpressconnectFunctions { @@ -295,6 +296,58 @@ public static CompletableFuture getAccessPointsPlain(GetA public static Output getAccessPoints(GetAccessPointsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:expressconnect/getAccessPoints:getAccessPoints", TypeShape.of(GetAccessPointsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Express Connect Access Points of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.132.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.expressconnect.ExpressconnectFunctions;
+     * import com.pulumi.alicloud.expressconnect.inputs.GetAccessPointsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = ExpressconnectFunctions.getAccessPoints(GetAccessPointsArgs.builder()
+     *             .ids("ap-cn-hangzhou-yh-C")
+     *             .build());
+     * 
+     *         ctx.export("expressConnectAccessPointId1", ids.applyValue(getAccessPointsResult -> getAccessPointsResult.points()[0].id()));
+     *         final var nameRegex = ExpressconnectFunctions.getAccessPoints(GetAccessPointsArgs.builder()
+     *             .nameRegex("^杭州-")
+     *             .build());
+     * 
+     *         ctx.export("expressConnectAccessPointId2", nameRegex.applyValue(getAccessPointsResult -> getAccessPointsResult.points()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccessPoints(GetAccessPointsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:expressconnect/getAccessPoints:getAccessPoints", TypeShape.of(GetAccessPointsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Express Connect Access Points of the current Alibaba Cloud user. * @@ -491,6 +544,54 @@ public static CompletableFuture getGrantRuleToCensPlai public static Output getGrantRuleToCens(GetGrantRuleToCensArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:expressconnect/getGrantRuleToCens:getGrantRuleToCens", TypeShape.of(GetGrantRuleToCensResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Express Connect Grant Rule To Cens of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.196.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.expressconnect.ExpressconnectFunctions;
+     * import com.pulumi.alicloud.expressconnect.inputs.GetGrantRuleToCensArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = ExpressconnectFunctions.getGrantRuleToCens(GetGrantRuleToCensArgs.builder()
+     *             .ids("example_id")
+     *             .instanceId("your_vbr_instance_id")
+     *             .build());
+     * 
+     *         ctx.export("expressConnectGrantRuleToCenId0", ids.applyValue(getGrantRuleToCensResult -> getGrantRuleToCensResult.cens()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGrantRuleToCens(GetGrantRuleToCensArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:expressconnect/getGrantRuleToCens:getGrantRuleToCens", TypeShape.of(GetGrantRuleToCensResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Express Connect Grant Rule To Cens of the current Alibaba Cloud user. * @@ -769,6 +870,52 @@ public static CompletableFuture getPhysicalC public static Output getPhysicalConnectionService(GetPhysicalConnectionServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:expressconnect/getPhysicalConnectionService:getPhysicalConnectionService", TypeShape.of(GetPhysicalConnectionServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can enable outbound traffic for an Express Connect circuit automatically. If the service has been opened, it will return opened. + * + * For information about Express Connect and how to use it, see [What is Express Connect](https://www.alibabacloud.com/help/doc-detail/275179.htm). + * + * > **NOTE:** Available since v1.132.0 + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.expressconnect.ExpressconnectFunctions;
+     * import com.pulumi.alicloud.expressconnect.inputs.GetPhysicalConnectionServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = ExpressconnectFunctions.getPhysicalConnectionService(GetPhysicalConnectionServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPhysicalConnectionService(GetPhysicalConnectionServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:expressconnect/getPhysicalConnectionService:getPhysicalConnectionService", TypeShape.of(GetPhysicalConnectionServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can enable outbound traffic for an Express Connect circuit automatically. If the service has been opened, it will return opened. * @@ -1075,6 +1222,58 @@ public static CompletableFuture getPhysicalConnect public static Output getPhysicalConnections(GetPhysicalConnectionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:expressconnect/getPhysicalConnections:getPhysicalConnections", TypeShape.of(GetPhysicalConnectionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Express Connect Physical Connections of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.132.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.expressconnect.ExpressconnectFunctions;
+     * import com.pulumi.alicloud.expressconnect.inputs.GetPhysicalConnectionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = ExpressconnectFunctions.getPhysicalConnections(GetPhysicalConnectionsArgs.builder()
+     *             .ids("pc-2345678")
+     *             .build());
+     * 
+     *         ctx.export("expressConnectPhysicalConnectionId1", ids.applyValue(getPhysicalConnectionsResult -> getPhysicalConnectionsResult.connections()[0].id()));
+     *         final var nameRegex = ExpressconnectFunctions.getPhysicalConnections(GetPhysicalConnectionsArgs.builder()
+     *             .nameRegex("^my-PhysicalConnection")
+     *             .build());
+     * 
+     *         ctx.export("expressConnectPhysicalConnectionId2", nameRegex.applyValue(getPhysicalConnectionsResult -> getPhysicalConnectionsResult.connections()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPhysicalConnections(GetPhysicalConnectionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:expressconnect/getPhysicalConnections:getPhysicalConnections", TypeShape.of(GetPhysicalConnectionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Express Connect Physical Connections of the current Alibaba Cloud user. * @@ -1357,6 +1556,52 @@ public static CompletableFuture getRouterInterfacesPl public static Output getRouterInterfaces(GetRouterInterfacesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:expressconnect/getRouterInterfaces:getRouterInterfaces", TypeShape.of(GetRouterInterfacesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Router Interface available to the user.[What is Router Interface](https://www.alibabacloud.com/help/en/express-connect/developer-reference/api-vpc-2016-04-28-describerouterinterfaces-efficiency-channels) + * + * > **NOTE:** Available in 1.199.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.expressconnect.ExpressconnectFunctions;
+     * import com.pulumi.alicloud.expressconnect.inputs.GetRouterInterfacesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ExpressconnectFunctions.getRouterInterfaces(GetRouterInterfacesArgs.builder()
+     *             .ids(defaultAlicloudRouterInterface.id())
+     *             .nameRegex(defaultAlicloudRouterInterface.name())
+     *             .build());
+     * 
+     *         ctx.export("alicloudRouterInterfaceExampleId", default_.interfaces()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRouterInterfaces(GetRouterInterfacesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:expressconnect/getRouterInterfaces:getRouterInterfaces", TypeShape.of(GetRouterInterfacesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Router Interface available to the user.[What is Router Interface](https://www.alibabacloud.com/help/en/express-connect/developer-reference/api-vpc-2016-04-28-describerouterinterfaces-efficiency-channels) * @@ -1633,6 +1878,52 @@ public static CompletableFuture getVbrPconnAssoci public static Output getVbrPconnAssociations(GetVbrPconnAssociationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:expressconnect/getVbrPconnAssociations:getVbrPconnAssociations", TypeShape.of(GetVbrPconnAssociationsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Express Connect Vbr Pconn Association available to the user. + * + * > **NOTE:** Available in 1.196.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.expressconnect.ExpressconnectFunctions;
+     * import com.pulumi.alicloud.expressconnect.inputs.GetVbrPconnAssociationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ExpressconnectFunctions.getVbrPconnAssociations(GetVbrPconnAssociationsArgs.builder()
+     *             .ids("example_id")
+     *             .vbrId(defaultAlicloudExpressConnectVbrPconnAssociation.vbrId())
+     *             .build());
+     * 
+     *         ctx.export("alicloudExpressConnectVbrPconnAssociationExampleId", default_.associations()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVbrPconnAssociations(GetVbrPconnAssociationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:expressconnect/getVbrPconnAssociations:getVbrPconnAssociations", TypeShape.of(GetVbrPconnAssociationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Express Connect Vbr Pconn Association available to the user. * @@ -2004,6 +2295,71 @@ public static CompletableFuture getVirtualBorderR public static Output getVirtualBorderRouters(GetVirtualBorderRoutersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:expressconnect/getVirtualBorderRouters:getVirtualBorderRouters", TypeShape.of(GetVirtualBorderRoutersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Express Connect Virtual Border Routers of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.134.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.expressconnect.ExpressconnectFunctions;
+     * import com.pulumi.alicloud.expressconnect.inputs.GetVirtualBorderRoutersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = ExpressconnectFunctions.getVirtualBorderRouters();
+     * 
+     *         ctx.export("expressConnectVirtualBorderRouterId1", ids.applyValue(getVirtualBorderRoutersResult -> getVirtualBorderRoutersResult.routers()[0].id()));
+     *         final var nameRegex = ExpressconnectFunctions.getVirtualBorderRouters(GetVirtualBorderRoutersArgs.builder()
+     *             .nameRegex("^my-VirtualBorderRouter")
+     *             .build());
+     * 
+     *         ctx.export("expressConnectVirtualBorderRouterId2", nameRegex.applyValue(getVirtualBorderRoutersResult -> getVirtualBorderRoutersResult.routers()[0].id()));
+     *         final var filter = ExpressconnectFunctions.getVirtualBorderRouters(GetVirtualBorderRoutersArgs.builder()
+     *             .filters(            
+     *                 GetVirtualBorderRoutersFilterArgs.builder()
+     *                     .key("PhysicalConnectionId")
+     *                     .values("pc-xxxx1")
+     *                     .build(),
+     *                 GetVirtualBorderRoutersFilterArgs.builder()
+     *                     .key("VbrId")
+     *                     .values(                    
+     *                         "vbr-xxxx1",
+     *                         "vbr-xxxx2")
+     *                     .build())
+     *             .build());
+     * 
+     *         ctx.export("expressConnectVirtualBorderRouterId3", filter.applyValue(getVirtualBorderRoutersResult -> getVirtualBorderRoutersResult.routers()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVirtualBorderRouters(GetVirtualBorderRoutersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:expressconnect/getVirtualBorderRouters:getVirtualBorderRouters", TypeShape.of(GetVirtualBorderRoutersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Express Connect Virtual Border Routers of the current Alibaba Cloud user. * @@ -2314,6 +2670,55 @@ public static CompletableFuture getVirtualP public static Output getVirtualPhysicalConnections(GetVirtualPhysicalConnectionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:expressconnect/getVirtualPhysicalConnections:getVirtualPhysicalConnections", TypeShape.of(GetVirtualPhysicalConnectionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Express Connect Virtual Physical Connection available to the user. + * + * > **NOTE:** Available in 1.196.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.expressconnect.ExpressconnectFunctions;
+     * import com.pulumi.alicloud.expressconnect.inputs.GetVirtualPhysicalConnectionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ExpressconnectFunctions.getVirtualPhysicalConnections(GetVirtualPhysicalConnectionsArgs.builder()
+     *             .ids(defaultAlicloudExpressConnectVirtualPhysicalConnection.id())
+     *             .nameRegex(defaultAlicloudExpressConnectVirtualPhysicalConnection.name())
+     *             .parentPhysicalConnectionId(defaultAlicloudExpressConnectVirtualPhysicalConnection.parentPhysicalConnectionId())
+     *             .vlanId(789)
+     *             .vpconnAliUid(1234567890)
+     *             .build());
+     * 
+     *         ctx.export("alicloudExpressConnectVirtualPhysicalConnectionExampleId", default_.connections()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVirtualPhysicalConnections(GetVirtualPhysicalConnectionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:expressconnect/getVirtualPhysicalConnections:getVirtualPhysicalConnections", TypeShape.of(GetVirtualPhysicalConnectionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Express Connect Virtual Physical Connection available to the user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/fc/FcFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/fc/FcFunctions.java index efe4f5f42a..709cce1e14 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/fc/FcFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/fc/FcFunctions.java @@ -26,6 +26,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class FcFunctions { @@ -254,6 +255,51 @@ public static CompletableFuture getCustomDomainsPlain(Ge public static Output getCustomDomains(GetCustomDomainsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:fc/getCustomDomains:getCustomDomains", TypeShape.of(GetCustomDomainsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Function Compute custom domains of the current Alibaba Cloud user. + * + * > **NOTE:** Available in 1.98.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.fc.FcFunctions;
+     * import com.pulumi.alicloud.fc.inputs.GetCustomDomainsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var fcDomains = FcFunctions.getCustomDomains(GetCustomDomainsArgs.builder()
+     *             .nameRegex("sample_fc_custom_domain")
+     *             .build());
+     * 
+     *         ctx.export("firstFcCustomDomainName", fcDomainsDs.domains()[0].domainName());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCustomDomains(GetCustomDomainsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:fc/getCustomDomains:getCustomDomains", TypeShape.of(GetCustomDomainsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Function Compute custom domains of the current Alibaba Cloud user. * @@ -431,6 +477,50 @@ public static CompletableFuture getFunctionsPlain(GetFunctio public static Output getFunctions(GetFunctionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:fc/getFunctions:getFunctions", TypeShape.of(GetFunctionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Function Compute functions of the current Alibaba Cloud user. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.fc.FcFunctions;
+     * import com.pulumi.alicloud.fc.inputs.GetFunctionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var functionsDs = FcFunctions.getFunctions(GetFunctionsArgs.builder()
+     *             .serviceName("sample_service")
+     *             .nameRegex("sample_fc_function")
+     *             .build());
+     * 
+     *         ctx.export("firstFcFunctionName", functionsDs.applyValue(getFunctionsResult -> getFunctionsResult.functions()[0].name()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getFunctions(GetFunctionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:fc/getFunctions:getFunctions", TypeShape.of(GetFunctionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Function Compute functions of the current Alibaba Cloud user. * @@ -705,6 +795,52 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:fc/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open FC service automatically. If the service has been opened, it will return opened. + * + * For information about FC and how to use it, see [What is FC](https://www.alibabacloud.com/help/en/product/50980.htm). + * + * > **NOTE:** Available since v1.112.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.fc.FcFunctions;
+     * import com.pulumi.alicloud.fc.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = FcFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:fc/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open FC service automatically. If the service has been opened, it will return opened. * @@ -966,6 +1102,49 @@ public static CompletableFuture getServicesPlain(GetServicesP public static Output getServices(GetServicesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:fc/getServices:getServices", TypeShape.of(GetServicesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Function Compute services of the current Alibaba Cloud user. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.fc.FcFunctions;
+     * import com.pulumi.alicloud.fc.inputs.GetServicesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var fcServicesDs = FcFunctions.getServices(GetServicesArgs.builder()
+     *             .nameRegex("sample_fc_service")
+     *             .build());
+     * 
+     *         ctx.export("firstFcServiceName", fcServicesDs.applyValue(getServicesResult -> getServicesResult.services()[0].name()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServices(GetServicesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:fc/getServices:getServices", TypeShape.of(GetServicesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Function Compute services of the current Alibaba Cloud user. * @@ -1144,6 +1323,51 @@ public static CompletableFuture getTriggersPlain(GetTriggersP public static Output getTriggers(GetTriggersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:fc/getTriggers:getTriggers", TypeShape.of(GetTriggersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Function Compute triggers of the current Alibaba Cloud user. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.fc.FcFunctions;
+     * import com.pulumi.alicloud.fc.inputs.GetTriggersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var fcTriggersDs = FcFunctions.getTriggers(GetTriggersArgs.builder()
+     *             .serviceName("sample_service")
+     *             .functionName("sample_function")
+     *             .nameRegex("sample_fc_trigger")
+     *             .build());
+     * 
+     *         ctx.export("firstFcTriggerName", fcTriggersDs.applyValue(getTriggersResult -> getTriggersResult.triggers()[0].name()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTriggers(GetTriggersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:fc/getTriggers:getTriggers", TypeShape.of(GetTriggersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Function Compute triggers of the current Alibaba Cloud user. * @@ -1404,6 +1628,49 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:fc/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides availability zones for FunctionCompute that can be accessed by an Alibaba Cloud account within the region configured in the provider. + * + * > **NOTE:** Available in v1.74.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.fc.FcFunctions;
+     * import com.pulumi.alicloud.fc.inputs.GetZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var zonesIds = FcFunctions.getZones();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:fc/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides availability zones for FunctionCompute that can be accessed by an Alibaba Cloud account within the region configured in the provider. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/fnf/FnfFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/fnf/FnfFunctions.java index b30536778a..e2f7313b57 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/fnf/FnfFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/fnf/FnfFunctions.java @@ -20,6 +20,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class FnfFunctions { @@ -173,6 +174,56 @@ public static CompletableFuture getExecutionsPlain(GetExecu public static Output getExecutions(GetExecutionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:fnf/getExecutions:getExecutions", TypeShape.of(GetExecutionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the FnF Executions of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.149.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.fnf.FnfFunctions;
+     * import com.pulumi.alicloud.fnf.inputs.GetExecutionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = FnfFunctions.getExecutions(GetExecutionsArgs.builder()
+     *             .flowName("example_value")
+     *             .ids(            
+     *                 "my-Execution-1",
+     *                 "my-Execution-2")
+     *             .build());
+     * 
+     *         ctx.export("fnfExecutionId1", idsAlicloudFnFExecutions.executions()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getExecutions(GetExecutionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:fnf/getExecutions:getExecutions", TypeShape.of(GetExecutionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the FnF Executions of the current Alibaba Cloud user. * @@ -463,6 +514,54 @@ public static CompletableFuture getFlowsPlain(GetFlowsPlainArgs public static Output getFlows(GetFlowsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:fnf/getFlows:getFlows", TypeShape.of(GetFlowsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Fnf Flows of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.105.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.fnf.FnfFunctions;
+     * import com.pulumi.alicloud.fnf.inputs.GetFlowsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = FnfFunctions.getFlows(GetFlowsArgs.builder()
+     *             .ids("example_value")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstFnfFlowId", example.applyValue(getFlowsResult -> getFlowsResult.flows()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getFlows(GetFlowsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:fnf/getFlows:getFlows", TypeShape.of(GetFlowsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Fnf Flows of the current Alibaba Cloud user. * @@ -658,6 +757,55 @@ public static CompletableFuture getSchedulesPlain(GetSchedul public static Output getSchedules(GetSchedulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:fnf/getSchedules:getSchedules", TypeShape.of(GetSchedulesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Fnf Schedules of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.105.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.fnf.FnfFunctions;
+     * import com.pulumi.alicloud.fnf.inputs.GetSchedulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = FnfFunctions.getSchedules(GetSchedulesArgs.builder()
+     *             .flowName("example_value")
+     *             .ids("example_value")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstFnfScheduleId", example.applyValue(getSchedulesResult -> getSchedulesResult.schedules()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSchedules(GetSchedulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:fnf/getSchedules:getSchedules", TypeShape.of(GetSchedulesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Fnf Schedules of the current Alibaba Cloud user. * @@ -937,6 +1085,52 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:fnf/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open Fnf service automatically. If the service has been opened, it will return opened. + * + * For information about Fnf and how to use it, see [What is Fnf](https://www.alibabacloud.com/help/en/product/113549.htm). + * + * > **NOTE:** Available in v1.114.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.fnf.FnfFunctions;
+     * import com.pulumi.alicloud.fnf.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = FnfFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:fnf/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open Fnf service automatically. If the service has been opened, it will return opened. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/ga/GaFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/ga/GaFunctions.java index 1630aaa443..70522f865a 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/ga/GaFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/ga/GaFunctions.java @@ -68,6 +68,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class GaFunctions { @@ -221,6 +222,56 @@ public static CompletableFuture getAccel public static Output getAcceleratorSpareIpAttachments(GetAcceleratorSpareIpAttachmentsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ga/getAcceleratorSpareIpAttachments:getAcceleratorSpareIpAttachments", TypeShape.of(GetAcceleratorSpareIpAttachmentsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ga Accelerator Spare Ip Attachments of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.167.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ga.GaFunctions;
+     * import com.pulumi.alicloud.ga.inputs.GetAcceleratorSpareIpAttachmentsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = GaFunctions.getAcceleratorSpareIpAttachments(GetAcceleratorSpareIpAttachmentsArgs.builder()
+     *             .acceleratorId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("gaAcceleratorSpareIpAttachmentId1", ids.applyValue(getAcceleratorSpareIpAttachmentsResult -> getAcceleratorSpareIpAttachmentsResult.attachments()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAcceleratorSpareIpAttachments(GetAcceleratorSpareIpAttachmentsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ga/getAcceleratorSpareIpAttachments:getAcceleratorSpareIpAttachments", TypeShape.of(GetAcceleratorSpareIpAttachmentsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ga Accelerator Spare Ip Attachments of the current Alibaba Cloud user. * @@ -506,6 +557,53 @@ public static CompletableFuture getAcceleratorsPlain(GetA public static Output getAccelerators(GetAcceleratorsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ga/getAccelerators:getAccelerators", TypeShape.of(GetAcceleratorsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Global Accelerator (GA) Accelerators of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.111.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ga.GaFunctions;
+     * import com.pulumi.alicloud.ga.inputs.GetAcceleratorsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = GaFunctions.getAccelerators(GetAcceleratorsArgs.builder()
+     *             .nameRegex("tf")
+     *             .build());
+     * 
+     *         ctx.export("firstGaAcceleratorId", example.applyValue(getAcceleratorsResult -> getAcceleratorsResult.accelerators()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccelerators(GetAcceleratorsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ga/getAccelerators:getAccelerators", TypeShape.of(GetAcceleratorsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Global Accelerator (GA) Accelerators of the current Alibaba Cloud user. * @@ -803,6 +901,56 @@ public static CompletableFuture getAclsPlain(GetAclsPlainArgs arg public static Output getAcls(GetAclsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ga/getAcls:getAcls", TypeShape.of(GetAclsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ga Acls of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.150.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ga.GaFunctions;
+     * import com.pulumi.alicloud.ga.inputs.GetAclsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = GaFunctions.getAcls();
+     * 
+     *         ctx.export("gaAclId1", ids.applyValue(getAclsResult -> getAclsResult.acls()[0].id()));
+     *         final var nameRegex = GaFunctions.getAcls(GetAclsArgs.builder()
+     *             .nameRegex("^my-Acl")
+     *             .build());
+     * 
+     *         ctx.export("gaAclId2", nameRegex.applyValue(getAclsResult -> getAclsResult.acls()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAcls(GetAclsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ga/getAcls:getAcls", TypeShape.of(GetAclsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ga Acls of the current Alibaba Cloud user. * @@ -1006,6 +1154,57 @@ public static CompletableFuture getAdditionalCe public static Output getAdditionalCertificates(GetAdditionalCertificatesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ga/getAdditionalCertificates:getAdditionalCertificates", TypeShape.of(GetAdditionalCertificatesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ga Additional Certificates of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.150.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ga.GaFunctions;
+     * import com.pulumi.alicloud.ga.inputs.GetAdditionalCertificatesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = GaFunctions.getAdditionalCertificates(GetAdditionalCertificatesArgs.builder()
+     *             .acceleratorId("example_value")
+     *             .listenerId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("gaAdditionalCertificateId1", ids.applyValue(getAdditionalCertificatesResult -> getAdditionalCertificatesResult.certificates()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAdditionalCertificates(GetAdditionalCertificatesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ga/getAdditionalCertificates:getAdditionalCertificates", TypeShape.of(GetAdditionalCertificatesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ga Additional Certificates of the current Alibaba Cloud user. * @@ -1342,13 +1541,13 @@ public static Output getBandwidthPackages(GetBandwid * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getBandwidthPackagesPlain(GetBandwidthPackagesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:ga/getBandwidthPackages:getBandwidthPackages", TypeShape.of(GetBandwidthPackagesResult.class), args, Utilities.withVersion(options)); + public static Output getBandwidthPackages(GetBandwidthPackagesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ga/getBandwidthPackages:getBandwidthPackages", TypeShape.of(GetBandwidthPackagesResult.class), args, Utilities.withVersion(options)); } /** - * This data source provides the Global Accelerator (GA) Basic Accelerate Ip Endpoint Relations of the current Alibaba Cloud user. + * This data source provides the Global Accelerator (GA) Bandwidth Packages of the current Alibaba Cloud user. * - * > **NOTE:** Available in v1.194.0+. + * > **NOTE:** Available in v1.112.0+. * * ## Example Usage * @@ -1363,7 +1562,7 @@ public static CompletableFuture getBandwidthPackages * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.alicloud.ga.GaFunctions; - * import com.pulumi.alicloud.ga.inputs.GetBasicAccelerateIpEndpointRelationsArgs; + * import com.pulumi.alicloud.ga.inputs.GetBandwidthPackagesArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -1377,12 +1576,12 @@ public static CompletableFuture getBandwidthPackages * } * * public static void stack(Context ctx) { - * final var ids = GaFunctions.getBasicAccelerateIpEndpointRelations(GetBasicAccelerateIpEndpointRelationsArgs.builder() - * .ids("example_id") - * .acceleratorId("example_id") + * final var example = GaFunctions.getBandwidthPackages(GetBandwidthPackagesArgs.builder() + * .ids("example_value") + * .nameRegex("the_resource_name") * .build()); * - * ctx.export("gaBasicAccelerateIpEndpointRelationsId1", ids.applyValue(getBasicAccelerateIpEndpointRelationsResult -> getBasicAccelerateIpEndpointRelationsResult.relations()[0].id())); + * ctx.export("firstGaBandwidthPackageId", example.applyValue(getBandwidthPackagesResult -> getBandwidthPackagesResult.packages()[0].id())); * } * } * } @@ -1390,8 +1589,8 @@ public static CompletableFuture getBandwidthPackages * <!--End PulumiCodeChooser --> * */ - public static Output getBasicAccelerateIpEndpointRelations(GetBasicAccelerateIpEndpointRelationsArgs args) { - return getBasicAccelerateIpEndpointRelations(args, InvokeOptions.Empty); + public static CompletableFuture getBandwidthPackagesPlain(GetBandwidthPackagesPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:ga/getBandwidthPackages:getBandwidthPackages", TypeShape.of(GetBandwidthPackagesResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Global Accelerator (GA) Basic Accelerate Ip Endpoint Relations of the current Alibaba Cloud user. @@ -1438,8 +1637,8 @@ public static Output getBasicAccele * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getBasicAccelerateIpEndpointRelationsPlain(GetBasicAccelerateIpEndpointRelationsPlainArgs args) { - return getBasicAccelerateIpEndpointRelationsPlain(args, InvokeOptions.Empty); + public static Output getBasicAccelerateIpEndpointRelations(GetBasicAccelerateIpEndpointRelationsArgs args) { + return getBasicAccelerateIpEndpointRelations(args, InvokeOptions.Empty); } /** * This data source provides the Global Accelerator (GA) Basic Accelerate Ip Endpoint Relations of the current Alibaba Cloud user. @@ -1486,8 +1685,8 @@ public static CompletableFuture get * <!--End PulumiCodeChooser --> * */ - public static Output getBasicAccelerateIpEndpointRelations(GetBasicAccelerateIpEndpointRelationsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("alicloud:ga/getBasicAccelerateIpEndpointRelations:getBasicAccelerateIpEndpointRelations", TypeShape.of(GetBasicAccelerateIpEndpointRelationsResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getBasicAccelerateIpEndpointRelationsPlain(GetBasicAccelerateIpEndpointRelationsPlainArgs args) { + return getBasicAccelerateIpEndpointRelationsPlain(args, InvokeOptions.Empty); } /** * This data source provides the Global Accelerator (GA) Basic Accelerate Ip Endpoint Relations of the current Alibaba Cloud user. @@ -1534,11 +1733,11 @@ public static Output getBasicAccele * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getBasicAccelerateIpEndpointRelationsPlain(GetBasicAccelerateIpEndpointRelationsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:ga/getBasicAccelerateIpEndpointRelations:getBasicAccelerateIpEndpointRelations", TypeShape.of(GetBasicAccelerateIpEndpointRelationsResult.class), args, Utilities.withVersion(options)); + public static Output getBasicAccelerateIpEndpointRelations(GetBasicAccelerateIpEndpointRelationsArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:ga/getBasicAccelerateIpEndpointRelations:getBasicAccelerateIpEndpointRelations", TypeShape.of(GetBasicAccelerateIpEndpointRelationsResult.class), args, Utilities.withVersion(options)); } /** - * This data source provides the Global Accelerator (GA) Basic Accelerate IPs of the current Alibaba Cloud user. + * This data source provides the Global Accelerator (GA) Basic Accelerate Ip Endpoint Relations of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.194.0+. * @@ -1555,7 +1754,7 @@ public static CompletableFuture get * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.alicloud.ga.GaFunctions; - * import com.pulumi.alicloud.ga.inputs.GetBasicAccelerateIpsArgs; + * import com.pulumi.alicloud.ga.inputs.GetBasicAccelerateIpEndpointRelationsArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -1569,12 +1768,12 @@ public static CompletableFuture get * } * * public static void stack(Context ctx) { - * final var ids = GaFunctions.getBasicAccelerateIps(GetBasicAccelerateIpsArgs.builder() + * final var ids = GaFunctions.getBasicAccelerateIpEndpointRelations(GetBasicAccelerateIpEndpointRelationsArgs.builder() * .ids("example_id") - * .ipSetId("example_ip_set_id") + * .acceleratorId("example_id") * .build()); * - * ctx.export("gaBasicAccelerateIpId1", ids.applyValue(getBasicAccelerateIpsResult -> getBasicAccelerateIpsResult.ips()[0].id())); + * ctx.export("gaBasicAccelerateIpEndpointRelationsId1", ids.applyValue(getBasicAccelerateIpEndpointRelationsResult -> getBasicAccelerateIpEndpointRelationsResult.relations()[0].id())); * } * } * } @@ -1582,11 +1781,11 @@ public static CompletableFuture get * <!--End PulumiCodeChooser --> * */ - public static Output getBasicAccelerateIps(GetBasicAccelerateIpsArgs args) { - return getBasicAccelerateIps(args, InvokeOptions.Empty); + public static Output getBasicAccelerateIpEndpointRelations(GetBasicAccelerateIpEndpointRelationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ga/getBasicAccelerateIpEndpointRelations:getBasicAccelerateIpEndpointRelations", TypeShape.of(GetBasicAccelerateIpEndpointRelationsResult.class), args, Utilities.withVersion(options)); } /** - * This data source provides the Global Accelerator (GA) Basic Accelerate IPs of the current Alibaba Cloud user. + * This data source provides the Global Accelerator (GA) Basic Accelerate Ip Endpoint Relations of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.194.0+. * @@ -1603,7 +1802,7 @@ public static Output getBasicAccelerateIps(GetBasic * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.alicloud.ga.GaFunctions; - * import com.pulumi.alicloud.ga.inputs.GetBasicAccelerateIpsArgs; + * import com.pulumi.alicloud.ga.inputs.GetBasicAccelerateIpEndpointRelationsArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -1617,12 +1816,12 @@ public static Output getBasicAccelerateIps(GetBasic * } * * public static void stack(Context ctx) { - * final var ids = GaFunctions.getBasicAccelerateIps(GetBasicAccelerateIpsArgs.builder() + * final var ids = GaFunctions.getBasicAccelerateIpEndpointRelations(GetBasicAccelerateIpEndpointRelationsArgs.builder() * .ids("example_id") - * .ipSetId("example_ip_set_id") + * .acceleratorId("example_id") * .build()); * - * ctx.export("gaBasicAccelerateIpId1", ids.applyValue(getBasicAccelerateIpsResult -> getBasicAccelerateIpsResult.ips()[0].id())); + * ctx.export("gaBasicAccelerateIpEndpointRelationsId1", ids.applyValue(getBasicAccelerateIpEndpointRelationsResult -> getBasicAccelerateIpEndpointRelationsResult.relations()[0].id())); * } * } * } @@ -1630,8 +1829,8 @@ public static Output getBasicAccelerateIps(GetBasic * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getBasicAccelerateIpsPlain(GetBasicAccelerateIpsPlainArgs args) { - return getBasicAccelerateIpsPlain(args, InvokeOptions.Empty); + public static CompletableFuture getBasicAccelerateIpEndpointRelationsPlain(GetBasicAccelerateIpEndpointRelationsPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:ga/getBasicAccelerateIpEndpointRelations:getBasicAccelerateIpEndpointRelations", TypeShape.of(GetBasicAccelerateIpEndpointRelationsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Global Accelerator (GA) Basic Accelerate IPs of the current Alibaba Cloud user. @@ -1678,8 +1877,152 @@ public static CompletableFuture getBasicAccelerateI * <!--End PulumiCodeChooser --> * */ - public static Output getBasicAccelerateIps(GetBasicAccelerateIpsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("alicloud:ga/getBasicAccelerateIps:getBasicAccelerateIps", TypeShape.of(GetBasicAccelerateIpsResult.class), args, Utilities.withVersion(options)); + public static Output getBasicAccelerateIps(GetBasicAccelerateIpsArgs args) { + return getBasicAccelerateIps(args, InvokeOptions.Empty); + } + /** + * This data source provides the Global Accelerator (GA) Basic Accelerate IPs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.194.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ga.GaFunctions;
+     * import com.pulumi.alicloud.ga.inputs.GetBasicAccelerateIpsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = GaFunctions.getBasicAccelerateIps(GetBasicAccelerateIpsArgs.builder()
+     *             .ids("example_id")
+     *             .ipSetId("example_ip_set_id")
+     *             .build());
+     * 
+     *         ctx.export("gaBasicAccelerateIpId1", ids.applyValue(getBasicAccelerateIpsResult -> getBasicAccelerateIpsResult.ips()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getBasicAccelerateIpsPlain(GetBasicAccelerateIpsPlainArgs args) { + return getBasicAccelerateIpsPlain(args, InvokeOptions.Empty); + } + /** + * This data source provides the Global Accelerator (GA) Basic Accelerate IPs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.194.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ga.GaFunctions;
+     * import com.pulumi.alicloud.ga.inputs.GetBasicAccelerateIpsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = GaFunctions.getBasicAccelerateIps(GetBasicAccelerateIpsArgs.builder()
+     *             .ids("example_id")
+     *             .ipSetId("example_ip_set_id")
+     *             .build());
+     * 
+     *         ctx.export("gaBasicAccelerateIpId1", ids.applyValue(getBasicAccelerateIpsResult -> getBasicAccelerateIpsResult.ips()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBasicAccelerateIps(GetBasicAccelerateIpsArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:ga/getBasicAccelerateIps:getBasicAccelerateIps", TypeShape.of(GetBasicAccelerateIpsResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Global Accelerator (GA) Basic Accelerate IPs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.194.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ga.GaFunctions;
+     * import com.pulumi.alicloud.ga.inputs.GetBasicAccelerateIpsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = GaFunctions.getBasicAccelerateIps(GetBasicAccelerateIpsArgs.builder()
+     *             .ids("example_id")
+     *             .ipSetId("example_ip_set_id")
+     *             .build());
+     * 
+     *         ctx.export("gaBasicAccelerateIpId1", ids.applyValue(getBasicAccelerateIpsResult -> getBasicAccelerateIpsResult.ips()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBasicAccelerateIps(GetBasicAccelerateIpsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ga/getBasicAccelerateIps:getBasicAccelerateIps", TypeShape.of(GetBasicAccelerateIpsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Global Accelerator (GA) Basic Accelerate IPs of the current Alibaba Cloud user. @@ -1989,6 +2332,58 @@ public static CompletableFuture getBasicAccelerators public static Output getBasicAccelerators(GetBasicAcceleratorsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ga/getBasicAccelerators:getBasicAccelerators", TypeShape.of(GetBasicAcceleratorsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Global Accelerator (GA) Basic Accelerators of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.194.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ga.GaFunctions;
+     * import com.pulumi.alicloud.ga.inputs.GetBasicAcceleratorsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = GaFunctions.getBasicAccelerators(GetBasicAcceleratorsArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("gaBasicAcceleratorId1", ids.applyValue(getBasicAcceleratorsResult -> getBasicAcceleratorsResult.accelerators()[0].id()));
+     *         final var nameRegex = GaFunctions.getBasicAccelerators(GetBasicAcceleratorsArgs.builder()
+     *             .nameRegex("tf-example")
+     *             .build());
+     * 
+     *         ctx.export("gaBasicAcceleratorId2", nameRegex.applyValue(getBasicAcceleratorsResult -> getBasicAcceleratorsResult.accelerators()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBasicAccelerators(GetBasicAcceleratorsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ga/getBasicAccelerators:getBasicAccelerators", TypeShape.of(GetBasicAcceleratorsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Global Accelerator (GA) Basic Accelerators of the current Alibaba Cloud user. * @@ -2203,6 +2598,60 @@ public static CompletableFuture getBasicEndpointsPlain( public static Output getBasicEndpoints(GetBasicEndpointsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ga/getBasicEndpoints:getBasicEndpoints", TypeShape.of(GetBasicEndpointsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Global Accelerator (GA) Basic Endpoints of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.194.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ga.GaFunctions;
+     * import com.pulumi.alicloud.ga.inputs.GetBasicEndpointsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = GaFunctions.getBasicEndpoints(GetBasicEndpointsArgs.builder()
+     *             .ids("example_id")
+     *             .endpointGroupId("example_id")
+     *             .build());
+     * 
+     *         ctx.export("gaBasicEndpointsId1", ids.applyValue(getBasicEndpointsResult -> getBasicEndpointsResult.endpoints()[0].id()));
+     *         final var nameRegex = GaFunctions.getBasicEndpoints(GetBasicEndpointsArgs.builder()
+     *             .nameRegex("tf-example")
+     *             .endpointGroupId("example_id")
+     *             .build());
+     * 
+     *         ctx.export("gaBasicEndpointsId2", nameRegex.applyValue(getBasicEndpointsResult -> getBasicEndpointsResult.endpoints()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBasicEndpoints(GetBasicEndpointsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ga/getBasicEndpoints:getBasicEndpoints", TypeShape.of(GetBasicEndpointsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Global Accelerator (GA) Basic Endpoints of the current Alibaba Cloud user. * @@ -2401,6 +2850,54 @@ public static CompletableFuture public static Output getCustomRoutingEndpointGroupDestinations(GetCustomRoutingEndpointGroupDestinationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ga/getCustomRoutingEndpointGroupDestinations:getCustomRoutingEndpointGroupDestinations", TypeShape.of(GetCustomRoutingEndpointGroupDestinationsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Global Accelerator (GA) Custom Routing Endpoint Group Destinations of the current Alibaba Cloud user. + * + * > **NOTE:** Available in 1.197.0+ + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ga.GaFunctions;
+     * import com.pulumi.alicloud.ga.inputs.GetCustomRoutingEndpointGroupDestinationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = GaFunctions.getCustomRoutingEndpointGroupDestinations(GetCustomRoutingEndpointGroupDestinationsArgs.builder()
+     *             .ids("example_id")
+     *             .acceleratorId("your_accelerator_id")
+     *             .build());
+     * 
+     *         ctx.export("gaCustomRoutingEndpointGroupDestinationsId1", ids.applyValue(getCustomRoutingEndpointGroupDestinationsResult -> getCustomRoutingEndpointGroupDestinationsResult.customRoutingEndpointGroupDestinations()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCustomRoutingEndpointGroupDestinations(GetCustomRoutingEndpointGroupDestinationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ga/getCustomRoutingEndpointGroupDestinations:getCustomRoutingEndpointGroupDestinations", TypeShape.of(GetCustomRoutingEndpointGroupDestinationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Global Accelerator (GA) Custom Routing Endpoint Group Destinations of the current Alibaba Cloud user. * @@ -2575,7 +3072,217 @@ public static CompletableFuture getCustomR * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.alicloud.ga.GaFunctions; - * import com.pulumi.alicloud.ga.inputs.GetCustomRoutingEndpointGroupsArgs; + * import com.pulumi.alicloud.ga.inputs.GetCustomRoutingEndpointGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; + * + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * final var ids = GaFunctions.getCustomRoutingEndpointGroups(GetCustomRoutingEndpointGroupsArgs.builder() + * .ids("example_id") + * .acceleratorId("your_accelerator_id") + * .build()); + * + * ctx.export("gaCustomRoutingEndpointGroupsId1", ids.applyValue(getCustomRoutingEndpointGroupsResult -> getCustomRoutingEndpointGroupsResult.groups()[0].id())); + * final var nameRegex = GaFunctions.getCustomRoutingEndpointGroups(GetCustomRoutingEndpointGroupsArgs.builder() + * .nameRegex("tf-example") + * .acceleratorId("your_accelerator_id") + * .build()); + * + * ctx.export("gaCustomRoutingEndpointGroupsId2", nameRegex.applyValue(getCustomRoutingEndpointGroupsResult -> getCustomRoutingEndpointGroupsResult.groups()[0].id())); + * } + * } + * } + *
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCustomRoutingEndpointGroups(GetCustomRoutingEndpointGroupsArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:ga/getCustomRoutingEndpointGroups:getCustomRoutingEndpointGroups", TypeShape.of(GetCustomRoutingEndpointGroupsResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Global Accelerator (GA) Custom Routing Endpoint Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in 1.197.0+ + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ga.GaFunctions;
+     * import com.pulumi.alicloud.ga.inputs.GetCustomRoutingEndpointGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = GaFunctions.getCustomRoutingEndpointGroups(GetCustomRoutingEndpointGroupsArgs.builder()
+     *             .ids("example_id")
+     *             .acceleratorId("your_accelerator_id")
+     *             .build());
+     * 
+     *         ctx.export("gaCustomRoutingEndpointGroupsId1", ids.applyValue(getCustomRoutingEndpointGroupsResult -> getCustomRoutingEndpointGroupsResult.groups()[0].id()));
+     *         final var nameRegex = GaFunctions.getCustomRoutingEndpointGroups(GetCustomRoutingEndpointGroupsArgs.builder()
+     *             .nameRegex("tf-example")
+     *             .acceleratorId("your_accelerator_id")
+     *             .build());
+     * 
+     *         ctx.export("gaCustomRoutingEndpointGroupsId2", nameRegex.applyValue(getCustomRoutingEndpointGroupsResult -> getCustomRoutingEndpointGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCustomRoutingEndpointGroups(GetCustomRoutingEndpointGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ga/getCustomRoutingEndpointGroups:getCustomRoutingEndpointGroups", TypeShape.of(GetCustomRoutingEndpointGroupsResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Global Accelerator (GA) Custom Routing Endpoint Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in 1.197.0+ + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ga.GaFunctions;
+     * import com.pulumi.alicloud.ga.inputs.GetCustomRoutingEndpointGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = GaFunctions.getCustomRoutingEndpointGroups(GetCustomRoutingEndpointGroupsArgs.builder()
+     *             .ids("example_id")
+     *             .acceleratorId("your_accelerator_id")
+     *             .build());
+     * 
+     *         ctx.export("gaCustomRoutingEndpointGroupsId1", ids.applyValue(getCustomRoutingEndpointGroupsResult -> getCustomRoutingEndpointGroupsResult.groups()[0].id()));
+     *         final var nameRegex = GaFunctions.getCustomRoutingEndpointGroups(GetCustomRoutingEndpointGroupsArgs.builder()
+     *             .nameRegex("tf-example")
+     *             .acceleratorId("your_accelerator_id")
+     *             .build());
+     * 
+     *         ctx.export("gaCustomRoutingEndpointGroupsId2", nameRegex.applyValue(getCustomRoutingEndpointGroupsResult -> getCustomRoutingEndpointGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getCustomRoutingEndpointGroupsPlain(GetCustomRoutingEndpointGroupsPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:ga/getCustomRoutingEndpointGroups:getCustomRoutingEndpointGroups", TypeShape.of(GetCustomRoutingEndpointGroupsResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Global Accelerator (GA) Custom Routing Endpoint Traffic Policies of the current Alibaba Cloud user. + * + * > **NOTE:** Available in 1.197.0+ + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ga.GaFunctions;
+     * import com.pulumi.alicloud.ga.inputs.GetCustomRoutingEndpointTrafficPoliciesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = GaFunctions.getCustomRoutingEndpointTrafficPolicies(GetCustomRoutingEndpointTrafficPoliciesArgs.builder()
+     *             .ids("example_id")
+     *             .acceleratorId("your_accelerator_id")
+     *             .build());
+     * 
+     *         ctx.export("gaCustomRoutingEndpointTrafficPoliciesId1", ids.applyValue(getCustomRoutingEndpointTrafficPoliciesResult -> getCustomRoutingEndpointTrafficPoliciesResult.customRoutingEndpointTrafficPolicies()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCustomRoutingEndpointTrafficPolicies(GetCustomRoutingEndpointTrafficPoliciesArgs args) { + return getCustomRoutingEndpointTrafficPolicies(args, InvokeOptions.Empty); + } + /** + * This data source provides the Global Accelerator (GA) Custom Routing Endpoint Traffic Policies of the current Alibaba Cloud user. + * + * > **NOTE:** Available in 1.197.0+ + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ga.GaFunctions;
+     * import com.pulumi.alicloud.ga.inputs.GetCustomRoutingEndpointTrafficPoliciesArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2589,18 +3296,12 @@ public static CompletableFuture getCustomR
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var ids = GaFunctions.getCustomRoutingEndpointGroups(GetCustomRoutingEndpointGroupsArgs.builder()
+     *         final var ids = GaFunctions.getCustomRoutingEndpointTrafficPolicies(GetCustomRoutingEndpointTrafficPoliciesArgs.builder()
      *             .ids("example_id")
      *             .acceleratorId("your_accelerator_id")
      *             .build());
      * 
-     *         ctx.export("gaCustomRoutingEndpointGroupsId1", ids.applyValue(getCustomRoutingEndpointGroupsResult -> getCustomRoutingEndpointGroupsResult.groups()[0].id()));
-     *         final var nameRegex = GaFunctions.getCustomRoutingEndpointGroups(GetCustomRoutingEndpointGroupsArgs.builder()
-     *             .nameRegex("tf-example")
-     *             .acceleratorId("your_accelerator_id")
-     *             .build());
-     * 
-     *         ctx.export("gaCustomRoutingEndpointGroupsId2", nameRegex.applyValue(getCustomRoutingEndpointGroupsResult -> getCustomRoutingEndpointGroupsResult.groups()[0].id()));
+     *         ctx.export("gaCustomRoutingEndpointTrafficPoliciesId1", ids.applyValue(getCustomRoutingEndpointTrafficPoliciesResult -> getCustomRoutingEndpointTrafficPoliciesResult.customRoutingEndpointTrafficPolicies()[0].id()));
      *     }
      * }
      * }
@@ -2608,11 +3309,11 @@ public static CompletableFuture getCustomR
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getCustomRoutingEndpointGroups(GetCustomRoutingEndpointGroupsArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("alicloud:ga/getCustomRoutingEndpointGroups:getCustomRoutingEndpointGroups", TypeShape.of(GetCustomRoutingEndpointGroupsResult.class), args, Utilities.withVersion(options));
+    public static CompletableFuture getCustomRoutingEndpointTrafficPoliciesPlain(GetCustomRoutingEndpointTrafficPoliciesPlainArgs args) {
+        return getCustomRoutingEndpointTrafficPoliciesPlain(args, InvokeOptions.Empty);
     }
     /**
-     * This data source provides the Global Accelerator (GA) Custom Routing Endpoint Groups of the current Alibaba Cloud user.
+     * This data source provides the Global Accelerator (GA) Custom Routing Endpoint Traffic Policies of the current Alibaba Cloud user.
      * 
      * > **NOTE:** Available in 1.197.0+
      * 
@@ -2629,7 +3330,7 @@ public static Output getCustomRoutingEndpo
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.alicloud.ga.GaFunctions;
-     * import com.pulumi.alicloud.ga.inputs.GetCustomRoutingEndpointGroupsArgs;
+     * import com.pulumi.alicloud.ga.inputs.GetCustomRoutingEndpointTrafficPoliciesArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2643,18 +3344,12 @@ public static Output getCustomRoutingEndpo
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var ids = GaFunctions.getCustomRoutingEndpointGroups(GetCustomRoutingEndpointGroupsArgs.builder()
+     *         final var ids = GaFunctions.getCustomRoutingEndpointTrafficPolicies(GetCustomRoutingEndpointTrafficPoliciesArgs.builder()
      *             .ids("example_id")
      *             .acceleratorId("your_accelerator_id")
      *             .build());
      * 
-     *         ctx.export("gaCustomRoutingEndpointGroupsId1", ids.applyValue(getCustomRoutingEndpointGroupsResult -> getCustomRoutingEndpointGroupsResult.groups()[0].id()));
-     *         final var nameRegex = GaFunctions.getCustomRoutingEndpointGroups(GetCustomRoutingEndpointGroupsArgs.builder()
-     *             .nameRegex("tf-example")
-     *             .acceleratorId("your_accelerator_id")
-     *             .build());
-     * 
-     *         ctx.export("gaCustomRoutingEndpointGroupsId2", nameRegex.applyValue(getCustomRoutingEndpointGroupsResult -> getCustomRoutingEndpointGroupsResult.groups()[0].id()));
+     *         ctx.export("gaCustomRoutingEndpointTrafficPoliciesId1", ids.applyValue(getCustomRoutingEndpointTrafficPoliciesResult -> getCustomRoutingEndpointTrafficPoliciesResult.customRoutingEndpointTrafficPolicies()[0].id()));
      *     }
      * }
      * }
@@ -2662,8 +3357,8 @@ public static Output getCustomRoutingEndpo
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getCustomRoutingEndpointGroupsPlain(GetCustomRoutingEndpointGroupsPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("alicloud:ga/getCustomRoutingEndpointGroups:getCustomRoutingEndpointGroups", TypeShape.of(GetCustomRoutingEndpointGroupsResult.class), args, Utilities.withVersion(options));
+    public static Output getCustomRoutingEndpointTrafficPolicies(GetCustomRoutingEndpointTrafficPoliciesArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("alicloud:ga/getCustomRoutingEndpointTrafficPolicies:getCustomRoutingEndpointTrafficPolicies", TypeShape.of(GetCustomRoutingEndpointTrafficPoliciesResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides the Global Accelerator (GA) Custom Routing Endpoint Traffic Policies of the current Alibaba Cloud user.
@@ -2710,8 +3405,8 @@ public static CompletableFuture getCustomR
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getCustomRoutingEndpointTrafficPolicies(GetCustomRoutingEndpointTrafficPoliciesArgs args) {
-        return getCustomRoutingEndpointTrafficPolicies(args, InvokeOptions.Empty);
+    public static Output getCustomRoutingEndpointTrafficPolicies(GetCustomRoutingEndpointTrafficPoliciesArgs args, InvokeOutputOptions options) {
+        return Deployment.getInstance().invoke("alicloud:ga/getCustomRoutingEndpointTrafficPolicies:getCustomRoutingEndpointTrafficPolicies", TypeShape.of(GetCustomRoutingEndpointTrafficPoliciesResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides the Global Accelerator (GA) Custom Routing Endpoint Traffic Policies of the current Alibaba Cloud user.
@@ -2758,11 +3453,11 @@ public static Output getCustomRou
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getCustomRoutingEndpointTrafficPoliciesPlain(GetCustomRoutingEndpointTrafficPoliciesPlainArgs args) {
-        return getCustomRoutingEndpointTrafficPoliciesPlain(args, InvokeOptions.Empty);
+    public static CompletableFuture getCustomRoutingEndpointTrafficPoliciesPlain(GetCustomRoutingEndpointTrafficPoliciesPlainArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invokeAsync("alicloud:ga/getCustomRoutingEndpointTrafficPolicies:getCustomRoutingEndpointTrafficPolicies", TypeShape.of(GetCustomRoutingEndpointTrafficPoliciesResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * This data source provides the Global Accelerator (GA) Custom Routing Endpoint Traffic Policies of the current Alibaba Cloud user.
+     * This data source provides the Global Accelerator (GA) Custom Routing Endpoints of the current Alibaba Cloud user.
      * 
      * > **NOTE:** Available in 1.197.0+
      * 
@@ -2779,7 +3474,7 @@ public static CompletableFuture g
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.alicloud.ga.GaFunctions;
-     * import com.pulumi.alicloud.ga.inputs.GetCustomRoutingEndpointTrafficPoliciesArgs;
+     * import com.pulumi.alicloud.ga.inputs.GetCustomRoutingEndpointsArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2793,12 +3488,12 @@ public static CompletableFuture g
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var ids = GaFunctions.getCustomRoutingEndpointTrafficPolicies(GetCustomRoutingEndpointTrafficPoliciesArgs.builder()
+     *         final var ids = GaFunctions.getCustomRoutingEndpoints(GetCustomRoutingEndpointsArgs.builder()
      *             .ids("example_id")
      *             .acceleratorId("your_accelerator_id")
      *             .build());
      * 
-     *         ctx.export("gaCustomRoutingEndpointTrafficPoliciesId1", ids.applyValue(getCustomRoutingEndpointTrafficPoliciesResult -> getCustomRoutingEndpointTrafficPoliciesResult.customRoutingEndpointTrafficPolicies()[0].id()));
+     *         ctx.export("gaCustomRoutingEndpointsId1", ids.applyValue(getCustomRoutingEndpointsResult -> getCustomRoutingEndpointsResult.customRoutingEndpoints()[0].id()));
      *     }
      * }
      * }
@@ -2806,11 +3501,11 @@ public static CompletableFuture g
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getCustomRoutingEndpointTrafficPolicies(GetCustomRoutingEndpointTrafficPoliciesArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("alicloud:ga/getCustomRoutingEndpointTrafficPolicies:getCustomRoutingEndpointTrafficPolicies", TypeShape.of(GetCustomRoutingEndpointTrafficPoliciesResult.class), args, Utilities.withVersion(options));
+    public static Output getCustomRoutingEndpoints(GetCustomRoutingEndpointsArgs args) {
+        return getCustomRoutingEndpoints(args, InvokeOptions.Empty);
     }
     /**
-     * This data source provides the Global Accelerator (GA) Custom Routing Endpoint Traffic Policies of the current Alibaba Cloud user.
+     * This data source provides the Global Accelerator (GA) Custom Routing Endpoints of the current Alibaba Cloud user.
      * 
      * > **NOTE:** Available in 1.197.0+
      * 
@@ -2827,7 +3522,7 @@ public static Output getCustomRou
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.alicloud.ga.GaFunctions;
-     * import com.pulumi.alicloud.ga.inputs.GetCustomRoutingEndpointTrafficPoliciesArgs;
+     * import com.pulumi.alicloud.ga.inputs.GetCustomRoutingEndpointsArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2841,12 +3536,12 @@ public static Output getCustomRou
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var ids = GaFunctions.getCustomRoutingEndpointTrafficPolicies(GetCustomRoutingEndpointTrafficPoliciesArgs.builder()
+     *         final var ids = GaFunctions.getCustomRoutingEndpoints(GetCustomRoutingEndpointsArgs.builder()
      *             .ids("example_id")
      *             .acceleratorId("your_accelerator_id")
      *             .build());
      * 
-     *         ctx.export("gaCustomRoutingEndpointTrafficPoliciesId1", ids.applyValue(getCustomRoutingEndpointTrafficPoliciesResult -> getCustomRoutingEndpointTrafficPoliciesResult.customRoutingEndpointTrafficPolicies()[0].id()));
+     *         ctx.export("gaCustomRoutingEndpointsId1", ids.applyValue(getCustomRoutingEndpointsResult -> getCustomRoutingEndpointsResult.customRoutingEndpoints()[0].id()));
      *     }
      * }
      * }
@@ -2854,8 +3549,8 @@ public static Output getCustomRou
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getCustomRoutingEndpointTrafficPoliciesPlain(GetCustomRoutingEndpointTrafficPoliciesPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("alicloud:ga/getCustomRoutingEndpointTrafficPolicies:getCustomRoutingEndpointTrafficPolicies", TypeShape.of(GetCustomRoutingEndpointTrafficPoliciesResult.class), args, Utilities.withVersion(options));
+    public static CompletableFuture getCustomRoutingEndpointsPlain(GetCustomRoutingEndpointsPlainArgs args) {
+        return getCustomRoutingEndpointsPlain(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Global Accelerator (GA) Custom Routing Endpoints of the current Alibaba Cloud user.
@@ -2902,8 +3597,8 @@ public static CompletableFuture g
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getCustomRoutingEndpoints(GetCustomRoutingEndpointsArgs args) {
-        return getCustomRoutingEndpoints(args, InvokeOptions.Empty);
+    public static Output getCustomRoutingEndpoints(GetCustomRoutingEndpointsArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("alicloud:ga/getCustomRoutingEndpoints:getCustomRoutingEndpoints", TypeShape.of(GetCustomRoutingEndpointsResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides the Global Accelerator (GA) Custom Routing Endpoints of the current Alibaba Cloud user.
@@ -2950,8 +3645,8 @@ public static Output getCustomRoutingEndpoints(
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getCustomRoutingEndpointsPlain(GetCustomRoutingEndpointsPlainArgs args) {
-        return getCustomRoutingEndpointsPlain(args, InvokeOptions.Empty);
+    public static Output getCustomRoutingEndpoints(GetCustomRoutingEndpointsArgs args, InvokeOutputOptions options) {
+        return Deployment.getInstance().invoke("alicloud:ga/getCustomRoutingEndpoints:getCustomRoutingEndpoints", TypeShape.of(GetCustomRoutingEndpointsResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides the Global Accelerator (GA) Custom Routing Endpoints of the current Alibaba Cloud user.
@@ -2998,11 +3693,11 @@ public static CompletableFuture getCustomRoutin
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getCustomRoutingEndpoints(GetCustomRoutingEndpointsArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("alicloud:ga/getCustomRoutingEndpoints:getCustomRoutingEndpoints", TypeShape.of(GetCustomRoutingEndpointsResult.class), args, Utilities.withVersion(options));
+    public static CompletableFuture getCustomRoutingEndpointsPlain(GetCustomRoutingEndpointsPlainArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invokeAsync("alicloud:ga/getCustomRoutingEndpoints:getCustomRoutingEndpoints", TypeShape.of(GetCustomRoutingEndpointsResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * This data source provides the Global Accelerator (GA) Custom Routing Endpoints of the current Alibaba Cloud user.
+     * This data source provides the Global Accelerator (GA) Custom Routing Port Mappings of the current Alibaba Cloud user.
      * 
      * > **NOTE:** Available in 1.197.0+
      * 
@@ -3019,7 +3714,7 @@ public static Output getCustomRoutingEndpoints(
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.alicloud.ga.GaFunctions;
-     * import com.pulumi.alicloud.ga.inputs.GetCustomRoutingEndpointsArgs;
+     * import com.pulumi.alicloud.ga.inputs.GetCustomRoutingPortMappingsArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -3033,12 +3728,11 @@ public static Output getCustomRoutingEndpoints(
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var ids = GaFunctions.getCustomRoutingEndpoints(GetCustomRoutingEndpointsArgs.builder()
-     *             .ids("example_id")
+     *         final var default = GaFunctions.getCustomRoutingPortMappings(GetCustomRoutingPortMappingsArgs.builder()
      *             .acceleratorId("your_accelerator_id")
      *             .build());
      * 
-     *         ctx.export("gaCustomRoutingEndpointsId1", ids.applyValue(getCustomRoutingEndpointsResult -> getCustomRoutingEndpointsResult.customRoutingEndpoints()[0].id()));
+     *         ctx.export("gaCustomRoutingPortMappingsAcceleratorId1", default_.customRoutingPortMappings()[0].acceleratorId());
      *     }
      * }
      * }
@@ -3046,8 +3740,8 @@ public static Output getCustomRoutingEndpoints(
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getCustomRoutingEndpointsPlain(GetCustomRoutingEndpointsPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("alicloud:ga/getCustomRoutingEndpoints:getCustomRoutingEndpoints", TypeShape.of(GetCustomRoutingEndpointsResult.class), args, Utilities.withVersion(options));
+    public static Output getCustomRoutingPortMappings(GetCustomRoutingPortMappingsArgs args) {
+        return getCustomRoutingPortMappings(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Global Accelerator (GA) Custom Routing Port Mappings of the current Alibaba Cloud user.
@@ -3093,8 +3787,8 @@ public static CompletableFuture getCustomRoutin
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getCustomRoutingPortMappings(GetCustomRoutingPortMappingsArgs args) {
-        return getCustomRoutingPortMappings(args, InvokeOptions.Empty);
+    public static CompletableFuture getCustomRoutingPortMappingsPlain(GetCustomRoutingPortMappingsPlainArgs args) {
+        return getCustomRoutingPortMappingsPlain(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Global Accelerator (GA) Custom Routing Port Mappings of the current Alibaba Cloud user.
@@ -3140,8 +3834,8 @@ public static Output getCustomRoutingPortMap
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getCustomRoutingPortMappingsPlain(GetCustomRoutingPortMappingsPlainArgs args) {
-        return getCustomRoutingPortMappingsPlain(args, InvokeOptions.Empty);
+    public static Output getCustomRoutingPortMappings(GetCustomRoutingPortMappingsArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("alicloud:ga/getCustomRoutingPortMappings:getCustomRoutingPortMappings", TypeShape.of(GetCustomRoutingPortMappingsResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides the Global Accelerator (GA) Custom Routing Port Mappings of the current Alibaba Cloud user.
@@ -3187,7 +3881,7 @@ public static CompletableFuture getCustomRou
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getCustomRoutingPortMappings(GetCustomRoutingPortMappingsArgs args, InvokeOptions options) {
+    public static Output getCustomRoutingPortMappings(GetCustomRoutingPortMappingsArgs args, InvokeOutputOptions options) {
         return Deployment.getInstance().invoke("alicloud:ga/getCustomRoutingPortMappings:getCustomRoutingPortMappings", TypeShape.of(GetCustomRoutingPortMappingsResult.class), args, Utilities.withVersion(options));
     }
     /**
@@ -3562,6 +4256,71 @@ public static CompletableFuture getDomainsPlain(GetDomainsPlai
     public static Output getDomains(GetDomainsArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("alicloud:ga/getDomains:getDomains", TypeShape.of(GetDomainsResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * This data source provides Ga Domain available to the user.[What is Domain](https://www.alibabacloud.com/help/en/global-accelerator/latest/createdomain)
+     * 
+     * > **NOTE:** Available in 1.197.0+
+     * 
+     * ## Example Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ga.GaFunctions;
+     * import com.pulumi.alicloud.ga.inputs.GetAcceleratorsArgs;
+     * import com.pulumi.alicloud.ga.Accelerator;
+     * import com.pulumi.alicloud.ga.AcceleratorArgs;
+     * import com.pulumi.alicloud.ga.inputs.GetDomainsArgs;
+     * import com.pulumi.codegen.internal.KeyedValue;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = GaFunctions.getAccelerators(GetAcceleratorsArgs.builder()
+     *             .status("active")
+     *             .build());
+     * 
+     *         for (var i = 0; i < default_.accelerators().length() > 0 ? 0 : 1; i++) {
+     *             new Accelerator("defaultAccelerator-" + i, AcceleratorArgs.builder()
+     *                 .duration(1)
+     *                 .autoUseCoupon(true)
+     *                 .spec("1")
+     *                 .build());
+     * 
+     *         
+     * }
+     *         final var acceleratorId = default_.accelerators().length() > 0 ? default_.accelerators()[0].id() : defaultAccelerator[0].id();
+     * 
+     *         final var defaultGetDomains = GaFunctions.getDomains(GetDomainsArgs.builder()
+     *             .acceleratorId(acceleratorIdLocals)
+     *             .domain("your_domain")
+     *             .build());
+     * 
+     *         ctx.export("alicloudGaDomainExampleId", defaultGetDomains.applyValue(getDomainsResult -> getDomainsResult.domains()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDomains(GetDomainsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ga/getDomains:getDomains", TypeShape.of(GetDomainsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Ga Domain available to the user.[What is Domain](https://www.alibabacloud.com/help/en/global-accelerator/latest/createdomain) * @@ -3671,8 +4430,102 @@ public static CompletableFuture getDomainsPlain(GetDomainsPlai * <!--End PulumiCodeChooser --> * */ - public static Output getEndpointGroupIpAddressCidrBlocks(GetEndpointGroupIpAddressCidrBlocksArgs args) { - return getEndpointGroupIpAddressCidrBlocks(args, InvokeOptions.Empty); + public static Output getEndpointGroupIpAddressCidrBlocks(GetEndpointGroupIpAddressCidrBlocksArgs args) { + return getEndpointGroupIpAddressCidrBlocks(args, InvokeOptions.Empty); + } + /** + * This data source provides the Global Accelerator (GA) Endpoint Group Ip Address Cidr Blocks of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.213.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ga.GaFunctions;
+     * import com.pulumi.alicloud.ga.inputs.GetEndpointGroupIpAddressCidrBlocksArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = GaFunctions.getEndpointGroupIpAddressCidrBlocks(GetEndpointGroupIpAddressCidrBlocksArgs.builder()
+     *             .endpointGroupRegion("cn-hangzhou")
+     *             .build());
+     * 
+     *         ctx.export("gaEndpointGroupIpAddressCidrBlocksEndpointGroupRegion", default_.endpointGroupIpAddressCidrBlocks()[0].endpointGroupRegion());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getEndpointGroupIpAddressCidrBlocksPlain(GetEndpointGroupIpAddressCidrBlocksPlainArgs args) { + return getEndpointGroupIpAddressCidrBlocksPlain(args, InvokeOptions.Empty); + } + /** + * This data source provides the Global Accelerator (GA) Endpoint Group Ip Address Cidr Blocks of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.213.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ga.GaFunctions;
+     * import com.pulumi.alicloud.ga.inputs.GetEndpointGroupIpAddressCidrBlocksArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = GaFunctions.getEndpointGroupIpAddressCidrBlocks(GetEndpointGroupIpAddressCidrBlocksArgs.builder()
+     *             .endpointGroupRegion("cn-hangzhou")
+     *             .build());
+     * 
+     *         ctx.export("gaEndpointGroupIpAddressCidrBlocksEndpointGroupRegion", default_.endpointGroupIpAddressCidrBlocks()[0].endpointGroupRegion());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEndpointGroupIpAddressCidrBlocks(GetEndpointGroupIpAddressCidrBlocksArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:ga/getEndpointGroupIpAddressCidrBlocks:getEndpointGroupIpAddressCidrBlocks", TypeShape.of(GetEndpointGroupIpAddressCidrBlocksResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Global Accelerator (GA) Endpoint Group Ip Address Cidr Blocks of the current Alibaba Cloud user. @@ -3718,8 +4571,8 @@ public static Output getEndpointGroup * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getEndpointGroupIpAddressCidrBlocksPlain(GetEndpointGroupIpAddressCidrBlocksPlainArgs args) { - return getEndpointGroupIpAddressCidrBlocksPlain(args, InvokeOptions.Empty); + public static Output getEndpointGroupIpAddressCidrBlocks(GetEndpointGroupIpAddressCidrBlocksArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ga/getEndpointGroupIpAddressCidrBlocks:getEndpointGroupIpAddressCidrBlocks", TypeShape.of(GetEndpointGroupIpAddressCidrBlocksResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Global Accelerator (GA) Endpoint Group Ip Address Cidr Blocks of the current Alibaba Cloud user. @@ -3765,13 +4618,13 @@ public static CompletableFuture getEn * <!--End PulumiCodeChooser --> * */ - public static Output getEndpointGroupIpAddressCidrBlocks(GetEndpointGroupIpAddressCidrBlocksArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("alicloud:ga/getEndpointGroupIpAddressCidrBlocks:getEndpointGroupIpAddressCidrBlocks", TypeShape.of(GetEndpointGroupIpAddressCidrBlocksResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getEndpointGroupIpAddressCidrBlocksPlain(GetEndpointGroupIpAddressCidrBlocksPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:ga/getEndpointGroupIpAddressCidrBlocks:getEndpointGroupIpAddressCidrBlocks", TypeShape.of(GetEndpointGroupIpAddressCidrBlocksResult.class), args, Utilities.withVersion(options)); } /** - * This data source provides the Global Accelerator (GA) Endpoint Group Ip Address Cidr Blocks of the current Alibaba Cloud user. + * This data source provides the Global Accelerator (GA) Endpoint Groups of the current Alibaba Cloud user. * - * > **NOTE:** Available since v1.213.0. + * > **NOTE:** Available since v1.113.0. * * ## Example Usage * @@ -3786,7 +4639,21 @@ public static Output getEndpointGroup * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.alicloud.ga.GaFunctions; - * import com.pulumi.alicloud.ga.inputs.GetEndpointGroupIpAddressCidrBlocksArgs; + * import com.pulumi.alicloud.ga.inputs.GetAcceleratorsArgs; + * import com.pulumi.alicloud.ga.BandwidthPackage; + * import com.pulumi.alicloud.ga.BandwidthPackageArgs; + * import com.pulumi.alicloud.ga.BandwidthPackageAttachment; + * import com.pulumi.alicloud.ga.BandwidthPackageAttachmentArgs; + * import com.pulumi.alicloud.ga.Listener; + * import com.pulumi.alicloud.ga.ListenerArgs; + * import com.pulumi.alicloud.ga.inputs.ListenerPortRangeArgs; + * import com.pulumi.alicloud.ecs.EipAddress; + * import com.pulumi.alicloud.ecs.EipAddressArgs; + * import com.pulumi.alicloud.ga.EndpointGroup; + * import com.pulumi.alicloud.ga.EndpointGroupArgs; + * import com.pulumi.alicloud.ga.inputs.EndpointGroupPortOverridesArgs; + * import com.pulumi.alicloud.ga.inputs.EndpointGroupEndpointConfigurationArgs; + * import com.pulumi.alicloud.ga.inputs.GetEndpointGroupsArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -3800,11 +4667,76 @@ public static Output getEndpointGroup * } * * public static void stack(Context ctx) { - * final var default = GaFunctions.getEndpointGroupIpAddressCidrBlocks(GetEndpointGroupIpAddressCidrBlocksArgs.builder() + * final var config = ctx.config(); + * final var region = config.get("region").orElse("cn-hangzhou"); + * final var name = config.get("name").orElse("tf-example"); + * final var default = GaFunctions.getAccelerators(GetAcceleratorsArgs.builder() + * .status("active") + * .build()); + * + * var defaultBandwidthPackage = new BandwidthPackage("defaultBandwidthPackage", BandwidthPackageArgs.builder() + * .bandwidth(100) + * .type("Basic") + * .bandwidthType("Basic") + * .paymentType("PayAsYouGo") + * .billingType("PayBy95") + * .ratio(30) + * .bandwidthPackageName(name) + * .autoPay(true) + * .autoUseCoupon(true) + * .build()); + * + * var defaultBandwidthPackageAttachment = new BandwidthPackageAttachment("defaultBandwidthPackageAttachment", BandwidthPackageAttachmentArgs.builder() + * .acceleratorId(default_.ids()[0]) + * .bandwidthPackageId(defaultBandwidthPackage.id()) + * .build()); + * + * var defaultListener = new Listener("defaultListener", ListenerArgs.builder() + * .acceleratorId(defaultBandwidthPackageAttachment.acceleratorId()) + * .clientAffinity("SOURCE_IP") + * .protocol("UDP") + * .name(name) + * .portRanges(ListenerPortRangeArgs.builder() + * .fromPort("60") + * .toPort("70") + * .build()) + * .build()); + * + * var defaultEipAddress = new EipAddress("defaultEipAddress", EipAddressArgs.builder() + * .bandwidth("10") + * .internetChargeType("PayByBandwidth") + * .addressName(name) + * .build()); + * + * var defaultEndpointGroup = new EndpointGroup("defaultEndpointGroup", EndpointGroupArgs.builder() + * .acceleratorId(defaultListener.acceleratorId()) + * .listenerId(defaultListener.id()) + * .description(name) + * .name(name) + * .thresholdCount(4) + * .trafficPercentage(20) * .endpointGroupRegion("cn-hangzhou") + * .healthCheckIntervalSeconds("3") + * .healthCheckPath("/healthcheck") + * .healthCheckPort("9999") + * .healthCheckProtocol("http") + * .portOverrides(EndpointGroupPortOverridesArgs.builder() + * .endpointPort("10") + * .listenerPort("60") + * .build()) + * .endpointConfigurations(EndpointGroupEndpointConfigurationArgs.builder() + * .endpoint(defaultEipAddress.ipAddress()) + * .type("PublicIp") + * .weight("20") + * .build()) * .build()); * - * ctx.export("gaEndpointGroupIpAddressCidrBlocksEndpointGroupRegion", default_.endpointGroupIpAddressCidrBlocks()[0].endpointGroupRegion()); + * final var defaultGetEndpointGroups = GaFunctions.getEndpointGroups(GetEndpointGroupsArgs.builder() + * .acceleratorId(defaultEndpointGroup.acceleratorId()) + * .ids(defaultEndpointGroup.id()) + * .build()); + * + * ctx.export("firstGaEndpointGroupId", defaultGetEndpointGroups.applyValue(getEndpointGroupsResult -> getEndpointGroupsResult).applyValue(defaultGetEndpointGroups -> defaultGetEndpointGroups.applyValue(getEndpointGroupsResult -> getEndpointGroupsResult.groups()[0].id()))); * } * } * } @@ -3812,8 +4744,8 @@ public static Output getEndpointGroup * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getEndpointGroupIpAddressCidrBlocksPlain(GetEndpointGroupIpAddressCidrBlocksPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:ga/getEndpointGroupIpAddressCidrBlocks:getEndpointGroupIpAddressCidrBlocks", TypeShape.of(GetEndpointGroupIpAddressCidrBlocksResult.class), args, Utilities.withVersion(options)); + public static Output getEndpointGroups(GetEndpointGroupsArgs args) { + return getEndpointGroups(args, InvokeOptions.Empty); } /** * This data source provides the Global Accelerator (GA) Endpoint Groups of the current Alibaba Cloud user. @@ -3938,8 +4870,8 @@ public static CompletableFuture getEn * <!--End PulumiCodeChooser --> * */ - public static Output getEndpointGroups(GetEndpointGroupsArgs args) { - return getEndpointGroups(args, InvokeOptions.Empty); + public static CompletableFuture getEndpointGroupsPlain(GetEndpointGroupsPlainArgs args) { + return getEndpointGroupsPlain(args, InvokeOptions.Empty); } /** * This data source provides the Global Accelerator (GA) Endpoint Groups of the current Alibaba Cloud user. @@ -4064,8 +4996,8 @@ public static Output getEndpointGroups(GetEndpointGroup * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getEndpointGroupsPlain(GetEndpointGroupsPlainArgs args) { - return getEndpointGroupsPlain(args, InvokeOptions.Empty); + public static Output getEndpointGroups(GetEndpointGroupsArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:ga/getEndpointGroups:getEndpointGroups", TypeShape.of(GetEndpointGroupsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Global Accelerator (GA) Endpoint Groups of the current Alibaba Cloud user. @@ -4190,7 +5122,7 @@ public static CompletableFuture getEndpointGroupsPlain( * <!--End PulumiCodeChooser --> * */ - public static Output getEndpointGroups(GetEndpointGroupsArgs args, InvokeOptions options) { + public static Output getEndpointGroups(GetEndpointGroupsArgs args, InvokeOutputOptions options) { return Deployment.getInstance().invoke("alicloud:ga/getEndpointGroups:getEndpointGroups", TypeShape.of(GetEndpointGroupsResult.class), args, Utilities.withVersion(options)); } /** @@ -4466,6 +5398,55 @@ public static CompletableFuture getForwardingRulesPlai public static Output getForwardingRules(GetForwardingRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ga/getForwardingRules:getForwardingRules", TypeShape.of(GetForwardingRulesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Global Accelerator (GA) Forwarding Rules of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.120.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ga.GaFunctions;
+     * import com.pulumi.alicloud.ga.inputs.GetForwardingRulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = GaFunctions.getForwardingRules(GetForwardingRulesArgs.builder()
+     *             .acceleratorId("example_value")
+     *             .listenerId("example_value")
+     *             .ids("example_value")
+     *             .build());
+     * 
+     *         ctx.export("firstGaForwardingRuleId", example.applyValue(getForwardingRulesResult -> getForwardingRulesResult.forwardingRules()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getForwardingRules(GetForwardingRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ga/getForwardingRules:getForwardingRules", TypeShape.of(GetForwardingRulesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Global Accelerator (GA) Forwarding Rules of the current Alibaba Cloud user. * @@ -4659,6 +5640,54 @@ public static CompletableFuture getIpSetsPlain(GetIpSetsPlainAr public static Output getIpSets(GetIpSetsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ga/getIpSets:getIpSets", TypeShape.of(GetIpSetsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Global Accelerator (GA) Ip Sets of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.113.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ga.GaFunctions;
+     * import com.pulumi.alicloud.ga.inputs.GetIpSetsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = GaFunctions.getIpSets(GetIpSetsArgs.builder()
+     *             .acceleratorId("example_value")
+     *             .ids("example_value")
+     *             .build());
+     * 
+     *         ctx.export("firstGaIpSetId", example.applyValue(getIpSetsResult -> getIpSetsResult.sets()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getIpSets(GetIpSetsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ga/getIpSets:getIpSets", TypeShape.of(GetIpSetsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Global Accelerator (GA) Ip Sets of the current Alibaba Cloud user. * @@ -4854,6 +5883,55 @@ public static CompletableFuture getListenersPlain(GetListene public static Output getListeners(GetListenersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ga/getListeners:getListeners", TypeShape.of(GetListenersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Global Accelerator (GA) Listeners of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.111.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ga.GaFunctions;
+     * import com.pulumi.alicloud.ga.inputs.GetListenersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = GaFunctions.getListeners(GetListenersArgs.builder()
+     *             .acceleratorId("example_value")
+     *             .ids("example_value")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstGaListenerId", example.applyValue(getListenersResult -> getListenersResult.listeners()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getListeners(GetListenersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ga/getListeners:getListeners", TypeShape.of(GetListenersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Global Accelerator (GA) Listeners of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/governance/GovernanceFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/governance/GovernanceFunctions.java index 293335ad0b..bb7d94ddef 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/governance/GovernanceFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/governance/GovernanceFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class GovernanceFunctions { @@ -429,6 +430,89 @@ public static CompletableFuture getBaselinesPlain(GetBaselin public static Output getBaselines(GetBaselinesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:governance/getBaselines:getBaselines", TypeShape.of(GetBaselinesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Governance Baseline available to the user.[What is Baseline](https://next.api.aliyun.com/document/governance/2021-01-20/CreateAccountFactoryBaseline) + * + * > **NOTE:** Available since v1.228.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.random.integer;
+     * import com.pulumi.random.IntegerArgs;
+     * import com.pulumi.alicloud.governance.Baseline;
+     * import com.pulumi.alicloud.governance.BaselineArgs;
+     * import com.pulumi.alicloud.governance.inputs.BaselineBaselineItemArgs;
+     * import com.pulumi.alicloud.governance.GovernanceFunctions;
+     * import com.pulumi.alicloud.governance.inputs.GetBaselinesArgs;
+     * import static com.pulumi.codegen.internal.Serialization.*;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("terraform_example");
+     *         var defaultInteger = new Integer("defaultInteger", IntegerArgs.builder()
+     *             .min(10000)
+     *             .max(99999)
+     *             .build());
+     * 
+     *         final var itemPasswordPolicy = config.get("itemPasswordPolicy").orElse("ACS-BP_ACCOUNT_FACTORY_RAM_USER_PASSWORD_POLICY");
+     *         final var itemServices = config.get("itemServices").orElse("ACS-BP_ACCOUNT_FACTORY_SUBSCRIBE_SERVICES");
+     *         final var itemRamSecurity = config.get("itemRamSecurity").orElse("ACS-BP_ACCOUNT_FACTORY_RAM_SECURITY_PREFERENCE");
+     *         var defaultBaseline = new Baseline("defaultBaseline", BaselineArgs.builder()
+     *             .baselineItems(BaselineBaselineItemArgs.builder()
+     *                 .version("1.0")
+     *                 .name(itemPasswordPolicy)
+     *                 .config(serializeJson(
+     *                     jsonObject(
+     *                         jsonProperty("MinimumPasswordLength", 8),
+     *                         jsonProperty("RequireLowercaseCharacters", true),
+     *                         jsonProperty("RequireUppercaseCharacters", true),
+     *                         jsonProperty("RequireNumbers", true),
+     *                         jsonProperty("RequireSymbols", true),
+     *                         jsonProperty("MaxPasswordAge", 0),
+     *                         jsonProperty("HardExpiry", false),
+     *                         jsonProperty("PasswordReusePrevention", 0),
+     *                         jsonProperty("MaxLoginAttempts", 0)
+     *                     )))
+     *                 .build())
+     *             .description(name)
+     *             .baselineName(String.format("%s-%s", name,defaultInteger.result()))
+     *             .build());
+     * 
+     *         final var default = GovernanceFunctions.getBaselines(GetBaselinesArgs.builder()
+     *             .ids(defaultBaseline.id())
+     *             .nameRegex(defaultBaseline.baselineName())
+     *             .build());
+     * 
+     *         ctx.export("alicloudGovernanceBaselineExampleId", default_.applyValue(default_ -> default_.baselines()[0].baselineId()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBaselines(GetBaselinesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:governance/getBaselines:getBaselines", TypeShape.of(GetBaselinesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Governance Baseline available to the user.[What is Baseline](https://next.api.aliyun.com/document/governance/2021-01-20/CreateAccountFactoryBaseline) * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/gpdb/GpdbFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/gpdb/GpdbFunctions.java index 97e65f862b..3ae1f62e9c 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/gpdb/GpdbFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/gpdb/GpdbFunctions.java @@ -26,6 +26,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class GpdbFunctions { @@ -197,6 +198,62 @@ public static CompletableFuture getAccountsPlain(GetAccountsP public static Output getAccounts(GetAccountsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:gpdb/getAccounts:getAccounts", TypeShape.of(GetAccountsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Gpdb Accounts of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.142.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.gpdb.GpdbFunctions;
+     * import com.pulumi.alicloud.gpdb.inputs.GetAccountsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = GpdbFunctions.getAccounts(GetAccountsArgs.builder()
+     *             .dbInstanceId("example_value")
+     *             .ids(            
+     *                 "my-Account-1",
+     *                 "my-Account-2")
+     *             .build());
+     * 
+     *         ctx.export("gpdbAccountId1", ids.applyValue(getAccountsResult -> getAccountsResult.accounts()[0].id()));
+     *         final var nameRegex = GpdbFunctions.getAccounts(GetAccountsArgs.builder()
+     *             .dbInstanceId("example_value")
+     *             .nameRegex("^my-Account")
+     *             .build());
+     * 
+     *         ctx.export("gpdbAccountId2", nameRegex.applyValue(getAccountsResult -> getAccountsResult.accounts()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccounts(GetAccountsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:gpdb/getAccounts:getAccounts", TypeShape.of(GetAccountsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Gpdb Accounts of the current Alibaba Cloud user. * @@ -403,6 +460,56 @@ public static CompletableFuture getDataBackupsPlain(GetDat public static Output getDataBackups(GetDataBackupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:gpdb/getDataBackups:getDataBackups", TypeShape.of(GetDataBackupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Gpdb Data Backup available to the user.[What is Data Backup](https://www.alibabacloud.com/help/en/) + * + * > **NOTE:** Available since v1.231.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.gpdb.GpdbFunctions;
+     * import com.pulumi.alicloud.gpdb.inputs.GetInstancesArgs;
+     * import com.pulumi.alicloud.gpdb.inputs.GetDataBackupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = GpdbFunctions.getInstances(GetInstancesArgs.builder()
+     *             .nameRegex("^default-NODELETING$")
+     *             .build());
+     * 
+     *         final var defaultGetDataBackups = GpdbFunctions.getDataBackups(GetDataBackupsArgs.builder()
+     *             .dbInstanceId(default_.ids()[0])
+     *             .build());
+     * 
+     *         ctx.export("alicloudGpdbDataBackupExampleId", defaultGetDataBackups.applyValue(getDataBackupsResult -> getDataBackupsResult.backups()[0].dbInstanceId()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDataBackups(GetDataBackupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:gpdb/getDataBackups:getDataBackups", TypeShape.of(GetDataBackupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Gpdb Data Backup available to the user.[What is Data Backup](https://www.alibabacloud.com/help/en/) * @@ -615,6 +722,60 @@ public static CompletableFuture getDbInstancePlansPlai public static Output getDbInstancePlans(GetDbInstancePlansArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:gpdb/getDbInstancePlans:getDbInstancePlans", TypeShape.of(GetDbInstancePlansResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Gpdb Db Instance Plans of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.189.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.gpdb.GpdbFunctions;
+     * import com.pulumi.alicloud.gpdb.inputs.GetDbInstancePlansArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = GpdbFunctions.getDbInstancePlans(GetDbInstancePlansArgs.builder()
+     *             .dbInstanceId("example_value")
+     *             .ids("example_value")
+     *             .build());
+     * 
+     *         ctx.export("gpdbDbInstancePlanId1", ids.applyValue(getDbInstancePlansResult -> getDbInstancePlansResult.plans()[0].id()));
+     *         final var nameRegex = GpdbFunctions.getDbInstancePlans(GetDbInstancePlansArgs.builder()
+     *             .dbInstanceId("example_value")
+     *             .nameRegex("^my-DBInstancePlan")
+     *             .build());
+     * 
+     *         ctx.export("gpdbDbInstancePlanId2", nameRegex.applyValue(getDbInstancePlansResult -> getDbInstancePlansResult.plans()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDbInstancePlans(GetDbInstancePlansArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:gpdb/getDbInstancePlans:getDbInstancePlans", TypeShape.of(GetDbInstancePlansResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Gpdb Db Instance Plans of the current Alibaba Cloud user. * @@ -894,6 +1055,51 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:gpdb/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the AnalyticDB for PostgreSQL instances of the current Alibaba Cloud user. + * + * > **NOTE:** Available in 1.47.0+ + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.gpdb.GpdbFunctions;
+     * import com.pulumi.alicloud.gpdb.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = GpdbFunctions.getInstances();
+     * 
+     *         ctx.export("gpdbDbInstanceId1", ids.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:gpdb/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the AnalyticDB for PostgreSQL instances of the current Alibaba Cloud user. * @@ -1098,6 +1304,59 @@ public static CompletableFuture getLogBackupsPlain(GetLogBa public static Output getLogBackups(GetLogBackupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:gpdb/getLogBackups:getLogBackups", TypeShape.of(GetLogBackupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Gpdb Logbackup available to the user.[What is Log Backup](https://www.alibabacloud.com/help/en/) + * + * > **NOTE:** Available since v1.231.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.gpdb.GpdbFunctions;
+     * import com.pulumi.alicloud.gpdb.inputs.GetInstancesArgs;
+     * import com.pulumi.alicloud.gpdb.inputs.GetLogBackupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = GpdbFunctions.getInstances(GetInstancesArgs.builder()
+     *             .nameRegex("^default-NODELETING$")
+     *             .build());
+     * 
+     *         final var defaultGetLogBackups = GpdbFunctions.getLogBackups(GetLogBackupsArgs.builder()
+     *             .startTime("2022-12-12T02:00Z")
+     *             .endTime("2024-12-12T02:00Z")
+     *             .dbInstanceId(default_.ids()[0])
+     *             .ids(default_.ids()[0])
+     *             .build());
+     * 
+     *         ctx.export("alicloudGpdbLogbackupExampleId", defaultGetLogBackups.applyValue(getLogBackupsResult -> getLogBackupsResult.logbackups()[0].dbInstanceId()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getLogBackups(GetLogBackupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:gpdb/getLogBackups:getLogBackups", TypeShape.of(GetLogBackupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Gpdb Logbackup available to the user.[What is Log Backup](https://www.alibabacloud.com/help/en/) * @@ -1221,6 +1480,20 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:gpdb/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides availability zones for Gpdb that can be accessed by an Alibaba Cloud account within the region configured in the provider. + * + * > **NOTE:** Available in v1.73.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:gpdb/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides availability zones for Gpdb that can be accessed by an Alibaba Cloud account within the region configured in the provider. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/graphdatabase/GraphdatabaseFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/graphdatabase/GraphdatabaseFunctions.java index e1073fa395..515e4d1f19 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/graphdatabase/GraphdatabaseFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/graphdatabase/GraphdatabaseFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class GraphdatabaseFunctions { @@ -309,6 +310,65 @@ public static CompletableFuture getDbInstancesPlain(GetDbI public static Output getDbInstances(GetDbInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:graphdatabase/getDbInstances:getDbInstances", TypeShape.of(GetDbInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Graph Database Db Instances of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.136.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.graphdatabase.GraphdatabaseFunctions;
+     * import com.pulumi.alicloud.graphdatabase.inputs.GetDbInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = GraphdatabaseFunctions.getDbInstances(GetDbInstancesArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("graphDatabaseDbInstanceId1", ids.applyValue(getDbInstancesResult -> getDbInstancesResult.instances()[0].id()));
+     *         final var status = GraphdatabaseFunctions.getDbInstances(GetDbInstancesArgs.builder()
+     *             .ids("example_id")
+     *             .status("Running")
+     *             .build());
+     * 
+     *         ctx.export("graphDatabaseDbInstanceId2", status.applyValue(getDbInstancesResult -> getDbInstancesResult.instances()[0].id()));
+     *         final var description = GraphdatabaseFunctions.getDbInstances(GetDbInstancesArgs.builder()
+     *             .ids("example_id")
+     *             .dbInstanceDescription("example_value")
+     *             .build());
+     * 
+     *         ctx.export("graphDatabaseDbInstanceId3", description.applyValue(getDbInstancesResult -> getDbInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDbInstances(GetDbInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:graphdatabase/getDbInstances:getDbInstances", TypeShape.of(GetDbInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Graph Database Db Instances of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/gwlb/GwlbFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/gwlb/GwlbFunctions.java index 7a5fc0c2b9..c1f8d63258 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/gwlb/GwlbFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/gwlb/GwlbFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class GwlbFunctions { @@ -229,6 +230,49 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:gwlb/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Gwlb Zone available to the user.[What is Zone](https://www.alibabacloud.com/help/en/) + * + * > **NOTE:** Available since v1.236.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.gwlb.GwlbFunctions;
+     * import com.pulumi.alicloud.gwlb.inputs.GetZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = GwlbFunctions.getZones();
+     * 
+     *         ctx.export("alicloudGwlbZoneExampleId", default_.zones()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:gwlb/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Gwlb Zone available to the user.[What is Zone](https://www.alibabacloud.com/help/en/) * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/hbase/HbaseFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/hbase/HbaseFunctions.java index 3dff85520c..69339fe0c8 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/hbase/HbaseFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/hbase/HbaseFunctions.java @@ -17,6 +17,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class HbaseFunctions { @@ -65,6 +66,15 @@ public static CompletableFuture getInstanceTypesPlain(Ge public static Output getInstanceTypes(GetInstanceTypesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:hbase/getInstanceTypes:getInstanceTypes", TypeShape.of(GetInstanceTypesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides availability instance_types for HBase that can be accessed by an Alibaba Cloud account within the region configured in the provider. + * + * > **NOTE:** Available since v1.106.0. + * + */ + public static Output getInstanceTypes(GetInstanceTypesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:hbase/getInstanceTypes:getInstanceTypes", TypeShape.of(GetInstanceTypesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides availability instance_types for HBase that can be accessed by an Alibaba Cloud account within the region configured in the provider. * @@ -304,6 +314,52 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:hbase/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * The `alicloud.hbase.getInstances` data source provides a collection of HBase instances available in Alicloud account. + * Filters support regular expression for the instance name, ids or availability_zone. + * + * > **NOTE:** Available in 1.67.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.hbase.HbaseFunctions;
+     * import com.pulumi.alicloud.hbase.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var hbase = HbaseFunctions.getInstances(GetInstancesArgs.builder()
+     *             .nameRegex("tf_testAccHBase")
+     *             .availabilityZone("cn-shenzhen-b")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:hbase/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * The `alicloud.hbase.getInstances` data source provides a collection of HBase instances available in Alicloud account. * Filters support regular expression for the instance name, ids or availability_zone. @@ -590,6 +646,54 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:hbase/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides availability zones for HBase that can be accessed by an Alibaba Cloud account within the region configured in the provider. + * + * > **NOTE:** Available in v1.73.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.hbase.HbaseFunctions;
+     * import com.pulumi.alicloud.hbase.inputs.GetZonesArgs;
+     * import com.pulumi.alicloud.hbase.Instance;
+     * import com.pulumi.alicloud.hbase.InstanceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var zonesIds = HbaseFunctions.getZones();
+     * 
+     *         var hbase = new Instance("hbase", InstanceArgs.builder()
+     *             .zoneId(zonesIds.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:hbase/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides availability zones for HBase that can be accessed by an Alibaba Cloud account within the region configured in the provider. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/hbr/HbrFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/hbr/HbrFunctions.java index 2524995eb3..5c2a050a15 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/hbr/HbrFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/hbr/HbrFunctions.java @@ -56,6 +56,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class HbrFunctions { @@ -335,6 +336,98 @@ public static CompletableFuture getBackupJobsPlain(GetBacku public static Output getBackupJobs(GetBackupJobsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:hbr/getBackupJobs:getBackupJobs", TypeShape.of(GetBackupJobsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Hbr Backup Jobs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.138.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.hbr.HbrFunctions;
+     * import com.pulumi.alicloud.hbr.inputs.GetEcsBackupPlansArgs;
+     * import com.pulumi.alicloud.hbr.inputs.GetBackupJobsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = HbrFunctions.getEcsBackupPlans(GetEcsBackupPlansArgs.builder()
+     *             .nameRegex("plan-name")
+     *             .build());
+     * 
+     *         final var defaultGetBackupJobs = HbrFunctions.getBackupJobs(GetBackupJobsArgs.builder()
+     *             .sourceType("ECS_FILE")
+     *             .filters(            
+     *                 GetBackupJobsFilterArgs.builder()
+     *                     .key("VaultId")
+     *                     .operator("IN")
+     *                     .values(default_.plans()[0].vaultId())
+     *                     .build(),
+     *                 GetBackupJobsFilterArgs.builder()
+     *                     .key("InstanceId")
+     *                     .operator("IN")
+     *                     .values(default_.plans()[0].instanceId())
+     *                     .build(),
+     *                 GetBackupJobsFilterArgs.builder()
+     *                     .key("CompleteTime")
+     *                     .operator("BETWEEN")
+     *                     .values(                    
+     *                         "2021-08-23T14:17:15CST",
+     *                         "2021-08-24T14:17:15CST")
+     *                     .build())
+     *             .build());
+     * 
+     *         final var example = HbrFunctions.getBackupJobs(GetBackupJobsArgs.builder()
+     *             .sourceType("ECS_FILE")
+     *             .status("COMPLETE")
+     *             .filters(            
+     *                 GetBackupJobsFilterArgs.builder()
+     *                     .key("VaultId")
+     *                     .operator("IN")
+     *                     .values(default_.plans()[0].vaultId())
+     *                     .build(),
+     *                 GetBackupJobsFilterArgs.builder()
+     *                     .key("InstanceId")
+     *                     .operator("IN")
+     *                     .values(default_.plans()[0].instanceId())
+     *                     .build(),
+     *                 GetBackupJobsFilterArgs.builder()
+     *                     .key("CompleteTime")
+     *                     .operator("LESS_THAN")
+     *                     .values("2021-10-20T20:20:20CST")
+     *                     .build())
+     *             .build());
+     * 
+     *         ctx.export("alicloudHbrBackupJobsDefault1", defaultGetBackupJobs.applyValue(getBackupJobsResult -> getBackupJobsResult.jobs()[0].id()));
+     *         ctx.export("alicloudHbrBackupJobsExample1", example.applyValue(getBackupJobsResult -> getBackupJobsResult.jobs()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBackupJobs(GetBackupJobsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:hbr/getBackupJobs:getBackupJobs", TypeShape.of(GetBackupJobsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Hbr Backup Jobs of the current Alibaba Cloud user. * @@ -702,6 +795,61 @@ public static CompletableFuture getEcsBackupClientsPl public static Output getEcsBackupClients(GetEcsBackupClientsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:hbr/getEcsBackupClients:getEcsBackupClients", TypeShape.of(GetEcsBackupClientsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Hbr Ecs File Backup Clients of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.132.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetInstancesArgs;
+     * import com.pulumi.alicloud.hbr.HbrFunctions;
+     * import com.pulumi.alicloud.hbr.inputs.GetEcsBackupClientsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = EcsFunctions.getInstances(GetInstancesArgs.builder()
+     *             .nameRegex("ecs_instance_name")
+     *             .status("Running")
+     *             .build());
+     * 
+     *         final var ids = HbrFunctions.getEcsBackupClients(GetEcsBackupClientsArgs.builder()
+     *             .ids(defaultAlicloudHbrEcsBackupClient.id())
+     *             .instanceIds(defaultAlicloudHbrEcsBackupClient.instanceId())
+     *             .build());
+     * 
+     *         ctx.export("hbrEcsBackupClientId1", ids.applyValue(getEcsBackupClientsResult -> getEcsBackupClientsResult.clients()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEcsBackupClients(GetEcsBackupClientsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:hbr/getEcsBackupClients:getEcsBackupClients", TypeShape.of(GetEcsBackupClientsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Hbr Ecs File Backup Clients of the current Alibaba Cloud user. * @@ -992,6 +1140,53 @@ public static CompletableFuture getEcsBackupPlansPlain( public static Output getEcsBackupPlans(GetEcsBackupPlansArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:hbr/getEcsBackupPlans:getEcsBackupPlans", TypeShape.of(GetEcsBackupPlansResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Hbr EcsBackupPlans of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.132.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.hbr.HbrFunctions;
+     * import com.pulumi.alicloud.hbr.inputs.GetEcsBackupPlansArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = HbrFunctions.getEcsBackupPlans(GetEcsBackupPlansArgs.builder()
+     *             .nameRegex("plan-name")
+     *             .build());
+     * 
+     *         ctx.export("hbrEcsBackupPlanId", ids.applyValue(getEcsBackupPlansResult -> getEcsBackupPlansResult.plans()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEcsBackupPlans(GetEcsBackupPlansArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:hbr/getEcsBackupPlans:getEcsBackupPlans", TypeShape.of(GetEcsBackupPlansResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Hbr EcsBackupPlans of the current Alibaba Cloud user. * @@ -1183,6 +1378,54 @@ public static CompletableFuture getHanaBackupClients public static Output getHanaBackupClients(GetHanaBackupClientsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:hbr/getHanaBackupClients:getHanaBackupClients", TypeShape.of(GetHanaBackupClientsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Hybrid Backup Recovery (HBR) Hana Backup Clients of the current Alibaba Cloud user. + * + * > **NOTE:** Available in 1.198.0+ + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.hbr.HbrFunctions;
+     * import com.pulumi.alicloud.hbr.inputs.GetHanaBackupClientsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = HbrFunctions.getHanaBackupClients(GetHanaBackupClientsArgs.builder()
+     *             .ids("example_id")
+     *             .vaultId("your_vault_id")
+     *             .build());
+     * 
+     *         ctx.export("hbrHanaBackupClientsId1", ids.applyValue(getHanaBackupClientsResult -> getHanaBackupClientsResult.hanaBackupClients()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHanaBackupClients(GetHanaBackupClientsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:hbr/getHanaBackupClients:getHanaBackupClients", TypeShape.of(GetHanaBackupClientsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Hybrid Backup Recovery (HBR) Hana Backup Clients of the current Alibaba Cloud user. * @@ -1381,6 +1624,56 @@ public static CompletableFuture getHanaBackupPlansPlai public static Output getHanaBackupPlans(GetHanaBackupPlansArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:hbr/getHanaBackupPlans:getHanaBackupPlans", TypeShape.of(GetHanaBackupPlansResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Hbr Hana Backup Plans of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.179.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.hbr.HbrFunctions;
+     * import com.pulumi.alicloud.hbr.inputs.GetHanaBackupPlansArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = HbrFunctions.getHanaBackupPlans(GetHanaBackupPlansArgs.builder()
+     *             .clusterId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("hbrHanaBackupPlanId1", ids.applyValue(getHanaBackupPlansResult -> getHanaBackupPlansResult.plans()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHanaBackupPlans(GetHanaBackupPlansArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:hbr/getHanaBackupPlans:getHanaBackupPlans", TypeShape.of(GetHanaBackupPlansResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Hbr Hana Backup Plans of the current Alibaba Cloud user. * @@ -1651,11 +1944,152 @@ public static CompletableFuture getHanaInstancesPlain(Ge * } * * public static void stack(Context ctx) { - * final var ids = HbrFunctions.getHanaInstances(GetHanaInstancesArgs.builder() - * .ids("example_id") + * final var ids = HbrFunctions.getHanaInstances(GetHanaInstancesArgs.builder() + * .ids("example_id") + * .build()); + * + * ctx.export("hbrHanaInstanceId1", ids.applyValue(getHanaInstancesResult -> getHanaInstancesResult.instances()[0].id())); + * } + * } + * } + *
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHanaInstances(GetHanaInstancesArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:hbr/getHanaInstances:getHanaInstances", TypeShape.of(GetHanaInstancesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Hbr Hana Instances of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.178.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.hbr.HbrFunctions;
+     * import com.pulumi.alicloud.hbr.inputs.GetHanaInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = HbrFunctions.getHanaInstances(GetHanaInstancesArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("hbrHanaInstanceId1", ids.applyValue(getHanaInstancesResult -> getHanaInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHanaInstances(GetHanaInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:hbr/getHanaInstances:getHanaInstances", TypeShape.of(GetHanaInstancesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Hbr Hana Instances of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.178.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.hbr.HbrFunctions;
+     * import com.pulumi.alicloud.hbr.inputs.GetHanaInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = HbrFunctions.getHanaInstances(GetHanaInstancesArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("hbrHanaInstanceId1", ids.applyValue(getHanaInstancesResult -> getHanaInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getHanaInstancesPlain(GetHanaInstancesPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:hbr/getHanaInstances:getHanaInstances", TypeShape.of(GetHanaInstancesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Hbr NasBackupPlans of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.132.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.hbr.HbrFunctions;
+     * import com.pulumi.alicloud.hbr.inputs.GetNasBackupPlansArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = HbrFunctions.getNasBackupPlans(GetNasBackupPlansArgs.builder()
+     *             .nameRegex("^my-NasBackupPlan")
      *             .build());
      * 
-     *         ctx.export("hbrHanaInstanceId1", ids.applyValue(getHanaInstancesResult -> getHanaInstancesResult.instances()[0].id()));
+     *         ctx.export("hbrNasBackupPlanId", ids.applyValue(getNasBackupPlansResult -> getNasBackupPlansResult.plans()[0].id()));
      *     }
      * }
      * }
@@ -1663,13 +2097,13 @@ public static CompletableFuture getHanaInstancesPlain(Ge
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getHanaInstances(GetHanaInstancesArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("alicloud:hbr/getHanaInstances:getHanaInstances", TypeShape.of(GetHanaInstancesResult.class), args, Utilities.withVersion(options));
+    public static Output getNasBackupPlans() {
+        return getNasBackupPlans(GetNasBackupPlansArgs.Empty, InvokeOptions.Empty);
     }
     /**
-     * This data source provides the Hbr Hana Instances of the current Alibaba Cloud user.
+     * This data source provides the Hbr NasBackupPlans of the current Alibaba Cloud user.
      * 
-     * > **NOTE:** Available in v1.178.0+.
+     * > **NOTE:** Available in v1.132.0+.
      * 
      * ## Example Usage
      * 
@@ -1684,7 +2118,7 @@ public static Output getHanaInstances(GetHanaInstancesAr
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.alicloud.hbr.HbrFunctions;
-     * import com.pulumi.alicloud.hbr.inputs.GetHanaInstancesArgs;
+     * import com.pulumi.alicloud.hbr.inputs.GetNasBackupPlansArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1698,11 +2132,11 @@ public static Output getHanaInstances(GetHanaInstancesAr
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var ids = HbrFunctions.getHanaInstances(GetHanaInstancesArgs.builder()
-     *             .ids("example_id")
+     *         final var ids = HbrFunctions.getNasBackupPlans(GetNasBackupPlansArgs.builder()
+     *             .nameRegex("^my-NasBackupPlan")
      *             .build());
      * 
-     *         ctx.export("hbrHanaInstanceId1", ids.applyValue(getHanaInstancesResult -> getHanaInstancesResult.instances()[0].id()));
+     *         ctx.export("hbrNasBackupPlanId", ids.applyValue(getNasBackupPlansResult -> getNasBackupPlansResult.plans()[0].id()));
      *     }
      * }
      * }
@@ -1710,8 +2144,8 @@ public static Output getHanaInstances(GetHanaInstancesAr
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getHanaInstancesPlain(GetHanaInstancesPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("alicloud:hbr/getHanaInstances:getHanaInstances", TypeShape.of(GetHanaInstancesResult.class), args, Utilities.withVersion(options));
+    public static CompletableFuture getNasBackupPlansPlain() {
+        return getNasBackupPlansPlain(GetNasBackupPlansPlainArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Hbr NasBackupPlans of the current Alibaba Cloud user.
@@ -1757,8 +2191,8 @@ public static CompletableFuture getHanaInstancesPlain(Ge
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getNasBackupPlans() {
-        return getNasBackupPlans(GetNasBackupPlansArgs.Empty, InvokeOptions.Empty);
+    public static Output getNasBackupPlans(GetNasBackupPlansArgs args) {
+        return getNasBackupPlans(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Hbr NasBackupPlans of the current Alibaba Cloud user.
@@ -1804,8 +2238,8 @@ public static Output getNasBackupPlans() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getNasBackupPlansPlain() {
-        return getNasBackupPlansPlain(GetNasBackupPlansPlainArgs.Empty, InvokeOptions.Empty);
+    public static CompletableFuture getNasBackupPlansPlain(GetNasBackupPlansPlainArgs args) {
+        return getNasBackupPlansPlain(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Hbr NasBackupPlans of the current Alibaba Cloud user.
@@ -1851,8 +2285,8 @@ public static CompletableFuture getNasBackupPlansPlain(
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getNasBackupPlans(GetNasBackupPlansArgs args) {
-        return getNasBackupPlans(args, InvokeOptions.Empty);
+    public static Output getNasBackupPlans(GetNasBackupPlansArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("alicloud:hbr/getNasBackupPlans:getNasBackupPlans", TypeShape.of(GetNasBackupPlansResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides the Hbr NasBackupPlans of the current Alibaba Cloud user.
@@ -1898,8 +2332,8 @@ public static Output getNasBackupPlans(GetNasBackupPlan
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getNasBackupPlansPlain(GetNasBackupPlansPlainArgs args) {
-        return getNasBackupPlansPlain(args, InvokeOptions.Empty);
+    public static Output getNasBackupPlans(GetNasBackupPlansArgs args, InvokeOutputOptions options) {
+        return Deployment.getInstance().invoke("alicloud:hbr/getNasBackupPlans:getNasBackupPlans", TypeShape.of(GetNasBackupPlansResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides the Hbr NasBackupPlans of the current Alibaba Cloud user.
@@ -1945,13 +2379,13 @@ public static CompletableFuture getNasBackupPlansPlain(
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getNasBackupPlans(GetNasBackupPlansArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("alicloud:hbr/getNasBackupPlans:getNasBackupPlans", TypeShape.of(GetNasBackupPlansResult.class), args, Utilities.withVersion(options));
+    public static CompletableFuture getNasBackupPlansPlain(GetNasBackupPlansPlainArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invokeAsync("alicloud:hbr/getNasBackupPlans:getNasBackupPlans", TypeShape.of(GetNasBackupPlansResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * This data source provides the Hbr NasBackupPlans of the current Alibaba Cloud user.
+     * This data source provides the Hbr OssBackupPlans of the current Alibaba Cloud user.
      * 
-     * > **NOTE:** Available in v1.132.0+.
+     * > **NOTE:** Available in v1.131.0+.
      * 
      * ## Example Usage
      * 
@@ -1966,7 +2400,7 @@ public static Output getNasBackupPlans(GetNasBackupPlan
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.alicloud.hbr.HbrFunctions;
-     * import com.pulumi.alicloud.hbr.inputs.GetNasBackupPlansArgs;
+     * import com.pulumi.alicloud.hbr.inputs.GetOssBackupPlansArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1980,11 +2414,11 @@ public static Output getNasBackupPlans(GetNasBackupPlan
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var ids = HbrFunctions.getNasBackupPlans(GetNasBackupPlansArgs.builder()
-     *             .nameRegex("^my-NasBackupPlan")
+     *         final var ids = HbrFunctions.getOssBackupPlans(GetOssBackupPlansArgs.builder()
+     *             .nameRegex("^my-OssBackupPlan")
      *             .build());
      * 
-     *         ctx.export("hbrNasBackupPlanId", ids.applyValue(getNasBackupPlansResult -> getNasBackupPlansResult.plans()[0].id()));
+     *         ctx.export("hbrOssBackupPlanId", ids.applyValue(getOssBackupPlansResult -> getOssBackupPlansResult.plans()[0].id()));
      *     }
      * }
      * }
@@ -1992,8 +2426,8 @@ public static Output getNasBackupPlans(GetNasBackupPlan
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getNasBackupPlansPlain(GetNasBackupPlansPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("alicloud:hbr/getNasBackupPlans:getNasBackupPlans", TypeShape.of(GetNasBackupPlansResult.class), args, Utilities.withVersion(options));
+    public static Output getOssBackupPlans() {
+        return getOssBackupPlans(GetOssBackupPlansArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Hbr OssBackupPlans of the current Alibaba Cloud user.
@@ -2039,8 +2473,8 @@ public static CompletableFuture getNasBackupPlansPlain(
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getOssBackupPlans() {
-        return getOssBackupPlans(GetOssBackupPlansArgs.Empty, InvokeOptions.Empty);
+    public static CompletableFuture getOssBackupPlansPlain() {
+        return getOssBackupPlansPlain(GetOssBackupPlansPlainArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Hbr OssBackupPlans of the current Alibaba Cloud user.
@@ -2086,8 +2520,8 @@ public static Output getOssBackupPlans() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getOssBackupPlansPlain() {
-        return getOssBackupPlansPlain(GetOssBackupPlansPlainArgs.Empty, InvokeOptions.Empty);
+    public static Output getOssBackupPlans(GetOssBackupPlansArgs args) {
+        return getOssBackupPlans(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Hbr OssBackupPlans of the current Alibaba Cloud user.
@@ -2133,8 +2567,8 @@ public static CompletableFuture getOssBackupPlansPlain(
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getOssBackupPlans(GetOssBackupPlansArgs args) {
-        return getOssBackupPlans(args, InvokeOptions.Empty);
+    public static CompletableFuture getOssBackupPlansPlain(GetOssBackupPlansPlainArgs args) {
+        return getOssBackupPlansPlain(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Hbr OssBackupPlans of the current Alibaba Cloud user.
@@ -2180,8 +2614,8 @@ public static Output getOssBackupPlans(GetOssBackupPlan
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getOssBackupPlansPlain(GetOssBackupPlansPlainArgs args) {
-        return getOssBackupPlansPlain(args, InvokeOptions.Empty);
+    public static Output getOssBackupPlans(GetOssBackupPlansArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("alicloud:hbr/getOssBackupPlans:getOssBackupPlans", TypeShape.of(GetOssBackupPlansResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides the Hbr OssBackupPlans of the current Alibaba Cloud user.
@@ -2227,7 +2661,7 @@ public static CompletableFuture getOssBackupPlansPlain(
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getOssBackupPlans(GetOssBackupPlansArgs args, InvokeOptions options) {
+    public static Output getOssBackupPlans(GetOssBackupPlansArgs args, InvokeOutputOptions options) {
         return Deployment.getInstance().invoke("alicloud:hbr/getOssBackupPlans:getOssBackupPlans", TypeShape.of(GetOssBackupPlansResult.class), args, Utilities.withVersion(options));
     }
     /**
@@ -2512,6 +2946,53 @@ public static CompletableFuture getOtsBackupPlansPlain(
     public static Output getOtsBackupPlans(GetOtsBackupPlansArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("alicloud:hbr/getOtsBackupPlans:getOtsBackupPlans", TypeShape.of(GetOtsBackupPlansResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * This data source provides the Hbr OtsBackupPlans of the current Alibaba Cloud user.
+     * 
+     * > **NOTE:** Available in v1.163.0+.
+     * 
+     * ## Example Usage
+     * 
+     * Basic Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.hbr.HbrFunctions;
+     * import com.pulumi.alicloud.hbr.inputs.GetOtsBackupPlansArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = HbrFunctions.getOtsBackupPlans(GetOtsBackupPlansArgs.builder()
+     *             .nameRegex("^my-otsBackupPlan")
+     *             .build());
+     * 
+     *         ctx.export("hbrOtsBackupPlanId", plans[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getOtsBackupPlans(GetOtsBackupPlansArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:hbr/getOtsBackupPlans:getOtsBackupPlans", TypeShape.of(GetOtsBackupPlansResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Hbr OtsBackupPlans of the current Alibaba Cloud user. * @@ -2779,6 +3260,50 @@ public static CompletableFuture getOtsSnapshotsPlain(GetO public static Output getOtsSnapshots(GetOtsSnapshotsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:hbr/getOtsSnapshots:getOtsSnapshots", TypeShape.of(GetOtsSnapshotsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Hbr Ots Snapshots of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.164.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.hbr.HbrFunctions;
+     * import com.pulumi.alicloud.hbr.inputs.GetOtsSnapshotsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var snapshots = HbrFunctions.getOtsSnapshots();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getOtsSnapshots(GetOtsSnapshotsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:hbr/getOtsSnapshots:getOtsSnapshots", TypeShape.of(GetOtsSnapshotsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Hbr Ots Snapshots of the current Alibaba Cloud user. * @@ -3066,7 +3591,98 @@ public static Output getReplicationVaultRegion * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.alicloud.hbr.HbrFunctions; - * import com.pulumi.alicloud.hbr.inputs.GetReplicationVaultRegionsArgs; + * import com.pulumi.alicloud.hbr.inputs.GetReplicationVaultRegionsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; + * + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * final var default = HbrFunctions.getReplicationVaultRegions(); + * + * ctx.export("hbrReplicationVaultRegionRegionId1", default_.regions()[0].replicationRegionId()); + * } + * } + * } + *
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getReplicationVaultRegions(GetReplicationVaultRegionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:hbr/getReplicationVaultRegions:getReplicationVaultRegions", TypeShape.of(GetReplicationVaultRegionsResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the HBR Replication Vault Regions of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.152.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.hbr.HbrFunctions;
+     * import com.pulumi.alicloud.hbr.inputs.GetReplicationVaultRegionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = HbrFunctions.getReplicationVaultRegions();
+     * 
+     *         ctx.export("hbrReplicationVaultRegionRegionId1", default_.regions()[0].replicationRegionId());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getReplicationVaultRegionsPlain(GetReplicationVaultRegionsPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:hbr/getReplicationVaultRegions:getReplicationVaultRegions", TypeShape.of(GetReplicationVaultRegionsResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Hbr Restore Jobs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.133.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.hbr.HbrFunctions;
+     * import com.pulumi.alicloud.hbr.inputs.GetEcsBackupPlansArgs;
+     * import com.pulumi.alicloud.hbr.inputs.GetRestoreJobsArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -3080,9 +3696,16 @@ public static Output getReplicationVaultRegion
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var default = HbrFunctions.getReplicationVaultRegions();
+     *         final var default = HbrFunctions.getEcsBackupPlans(GetEcsBackupPlansArgs.builder()
+     *             .nameRegex("plan-name")
+     *             .build());
+     * 
+     *         final var defaultGetRestoreJobs = HbrFunctions.getRestoreJobs(GetRestoreJobsArgs.builder()
+     *             .restoreType("ECS_FILE")
+     *             .vaultIds(default_.plans()[0].vaultId())
+     *             .targetInstanceIds(default_.plans()[0].instanceId())
+     *             .build());
      * 
-     *         ctx.export("hbrReplicationVaultRegionRegionId1", default_.regions()[0].replicationRegionId());
      *     }
      * }
      * }
@@ -3090,8 +3713,8 @@ public static Output getReplicationVaultRegion
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getReplicationVaultRegionsPlain(GetReplicationVaultRegionsPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("alicloud:hbr/getReplicationVaultRegions:getReplicationVaultRegions", TypeShape.of(GetReplicationVaultRegionsResult.class), args, Utilities.withVersion(options));
+    public static Output getRestoreJobs(GetRestoreJobsArgs args) {
+        return getRestoreJobs(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Hbr Restore Jobs of the current Alibaba Cloud user.
@@ -3143,8 +3766,8 @@ public static CompletableFuture getReplication
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getRestoreJobs(GetRestoreJobsArgs args) {
-        return getRestoreJobs(args, InvokeOptions.Empty);
+    public static CompletableFuture getRestoreJobsPlain(GetRestoreJobsPlainArgs args) {
+        return getRestoreJobsPlain(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Hbr Restore Jobs of the current Alibaba Cloud user.
@@ -3196,8 +3819,8 @@ public static Output getRestoreJobs(GetRestoreJobsArgs arg
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getRestoreJobsPlain(GetRestoreJobsPlainArgs args) {
-        return getRestoreJobsPlain(args, InvokeOptions.Empty);
+    public static Output getRestoreJobs(GetRestoreJobsArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("alicloud:hbr/getRestoreJobs:getRestoreJobs", TypeShape.of(GetRestoreJobsResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides the Hbr Restore Jobs of the current Alibaba Cloud user.
@@ -3249,7 +3872,7 @@ public static CompletableFuture getRestoreJobsPlain(GetRes
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getRestoreJobs(GetRestoreJobsArgs args, InvokeOptions options) {
+    public static Output getRestoreJobs(GetRestoreJobsArgs args, InvokeOutputOptions options) {
         return Deployment.getInstance().invoke("alicloud:hbr/getRestoreJobs:getRestoreJobs", TypeShape.of(GetRestoreJobsResult.class), args, Utilities.withVersion(options));
     }
     /**
@@ -3590,6 +4213,63 @@ public static CompletableFuture getServerBackupPlans
     public static Output getServerBackupPlans(GetServerBackupPlansArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("alicloud:hbr/getServerBackupPlans:getServerBackupPlans", TypeShape.of(GetServerBackupPlansResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * This data source provides the Hbr Server Backup Plans of the current Alibaba Cloud user.
+     * 
+     * > **NOTE:** Available in v1.142.0+.
+     * 
+     * ## Example Usage
+     * 
+     * Basic Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetInstancesArgs;
+     * import com.pulumi.alicloud.hbr.HbrFunctions;
+     * import com.pulumi.alicloud.hbr.inputs.GetServerBackupPlansArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = EcsFunctions.getInstances(GetInstancesArgs.builder()
+     *             .nameRegex("no-deleteing-hbr-ecs-server-backup-plan")
+     *             .status("Running")
+     *             .build());
+     * 
+     *         final var ids = HbrFunctions.getServerBackupPlans(GetServerBackupPlansArgs.builder()
+     *             .filters(GetServerBackupPlansFilterArgs.builder()
+     *                 .key("instanceId")
+     *                 .values(default_.instances()[0].id())
+     *                 .build())
+     *             .build());
+     * 
+     *         ctx.export("hbrServerBackupPlanId1", ids.applyValue(getServerBackupPlansResult -> getServerBackupPlansResult.plans()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServerBackupPlans(GetServerBackupPlansArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:hbr/getServerBackupPlans:getServerBackupPlans", TypeShape.of(GetServerBackupPlansResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Hbr Server Backup Plans of the current Alibaba Cloud user. * @@ -3887,6 +4567,54 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:hbr/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open HBR service automatically. If the service has been opened, it will return opened. + * + * For information about HBR and how to use it, see [What is HBR](https://www.alibabacloud.com/help/en/hybrid-backup-recovery). + * + * > **NOTE:** Available since v1.184.0+ + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.hbr.HbrFunctions;
+     * import com.pulumi.alicloud.hbr.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = HbrFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:hbr/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open HBR service automatically. If the service has been opened, it will return opened. * @@ -4178,6 +4906,87 @@ public static CompletableFuture getSnapshotsPlain(GetSnapsho public static Output getSnapshots(GetSnapshotsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:hbr/getSnapshots:getSnapshots", TypeShape.of(GetSnapshotsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Hbr Snapshots of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.133.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.hbr.HbrFunctions;
+     * import com.pulumi.alicloud.hbr.inputs.GetEcsBackupPlansArgs;
+     * import com.pulumi.alicloud.hbr.inputs.GetOssBackupPlansArgs;
+     * import com.pulumi.alicloud.hbr.inputs.GetNasBackupPlansArgs;
+     * import com.pulumi.alicloud.hbr.inputs.GetSnapshotsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = HbrFunctions.getEcsBackupPlans(GetEcsBackupPlansArgs.builder()
+     *             .nameRegex("plan-tf-used-dont-delete")
+     *             .build());
+     * 
+     *         final var defaultGetOssBackupPlans = HbrFunctions.getOssBackupPlans(GetOssBackupPlansArgs.builder()
+     *             .nameRegex("plan-tf-used-dont-delete")
+     *             .build());
+     * 
+     *         final var defaultGetNasBackupPlans = HbrFunctions.getNasBackupPlans(GetNasBackupPlansArgs.builder()
+     *             .nameRegex("plan-tf-used-dont-delete")
+     *             .build());
+     * 
+     *         final var ecsSnapshots = HbrFunctions.getSnapshots(GetSnapshotsArgs.builder()
+     *             .sourceType("ECS_FILE")
+     *             .vaultId(default_.plans()[0].vaultId())
+     *             .instanceId(default_.plans()[0].instanceId())
+     *             .build());
+     * 
+     *         final var ossSnapshots = HbrFunctions.getSnapshots(GetSnapshotsArgs.builder()
+     *             .sourceType("OSS")
+     *             .vaultId(defaultGetOssBackupPlans.applyValue(getOssBackupPlansResult -> getOssBackupPlansResult.plans()[0].vaultId()))
+     *             .bucket(defaultGetOssBackupPlans.applyValue(getOssBackupPlansResult -> getOssBackupPlansResult.plans()[0].bucket()))
+     *             .completeTime("2021-07-20T14:17:15CST,2021-07-24T14:17:15CST")
+     *             .completeTimeChecker("BETWEEN")
+     *             .build());
+     * 
+     *         final var nasSnapshots = HbrFunctions.getSnapshots(GetSnapshotsArgs.builder()
+     *             .sourceType("NAS")
+     *             .vaultId(defaultGetNasBackupPlans.applyValue(getNasBackupPlansResult -> getNasBackupPlansResult.plans()[0].vaultId()))
+     *             .fileSystemId(defaultGetNasBackupPlans.applyValue(getNasBackupPlansResult -> getNasBackupPlansResult.plans()[0].fileSystemId()))
+     *             .createTime(defaultGetNasBackupPlans.applyValue(getNasBackupPlansResult -> getNasBackupPlansResult.plans()[0].createTime()))
+     *             .completeTime("2021-08-23T14:17:15CST")
+     *             .completeTimeChecker("GREATER_THAN_OR_EQUAL")
+     *             .build());
+     * 
+     *         ctx.export("hbrSnapshotId1", nasSnapshots.applyValue(getSnapshotsResult -> getSnapshotsResult.snapshots()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSnapshots(GetSnapshotsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:hbr/getSnapshots:getSnapshots", TypeShape.of(GetSnapshotsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Hbr Snapshots of the current Alibaba Cloud user. * @@ -4494,6 +5303,53 @@ public static CompletableFuture getVaultsPlain(GetVaultsPlainAr public static Output getVaults(GetVaultsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:hbr/getVaults:getVaults", TypeShape.of(GetVaultsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Hbr Vaults of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.129.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.hbr.HbrFunctions;
+     * import com.pulumi.alicloud.hbr.inputs.GetVaultsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = HbrFunctions.getVaults(GetVaultsArgs.builder()
+     *             .nameRegex("^my-Vault")
+     *             .build());
+     * 
+     *         ctx.export("hbrVaultId1", ids.applyValue(getVaultsResult -> getVaultsResult.vaults()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVaults(GetVaultsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:hbr/getVaults:getVaults", TypeShape.of(GetVaultsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Hbr Vaults of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/imm/ImmFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/imm/ImmFunctions.java index 49edcf3455..42df7e8538 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/imm/ImmFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/imm/ImmFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class ImmFunctions { @@ -249,6 +250,53 @@ public static CompletableFuture getProjectsPlain(GetProjectsP public static Output getProjects(GetProjectsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:imm/getProjects:getProjects", TypeShape.of(GetProjectsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Intelligent Media Management Projects of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.134.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.imm.ImmFunctions;
+     * import com.pulumi.alicloud.imm.inputs.GetProjectsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = ImmFunctions.getProjects(GetProjectsArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("immProjectId1", ids.applyValue(getProjectsResult -> getProjectsResult.projects()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getProjects(GetProjectsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:imm/getProjects:getProjects", TypeShape.of(GetProjectsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Intelligent Media Management Projects of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/imp/ImpFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/imp/ImpFunctions.java index d1a3a4d051..653a210ab8 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/imp/ImpFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/imp/ImpFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class ImpFunctions { @@ -264,6 +265,56 @@ public static CompletableFuture getAppTemplatesPlain(GetA public static Output getAppTemplates(GetAppTemplatesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:imp/getAppTemplates:getAppTemplates", TypeShape.of(GetAppTemplatesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Imp App Templates of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.137.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.imp.ImpFunctions;
+     * import com.pulumi.alicloud.imp.inputs.GetAppTemplatesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = ImpFunctions.getAppTemplates();
+     * 
+     *         ctx.export("impAppTemplateId1", ids.applyValue(getAppTemplatesResult -> getAppTemplatesResult.templates()[0].id()));
+     *         final var nameRegex = ImpFunctions.getAppTemplates(GetAppTemplatesArgs.builder()
+     *             .nameRegex("^my_AppTemplate")
+     *             .build());
+     * 
+     *         ctx.export("impAppTemplateId2", nameRegex.applyValue(getAppTemplatesResult -> getAppTemplatesResult.templates()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAppTemplates(GetAppTemplatesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:imp/getAppTemplates:getAppTemplates", TypeShape.of(GetAppTemplatesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Imp App Templates of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/iot/IotFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/iot/IotFunctions.java index 9307596240..2f5e71b526 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/iot/IotFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/iot/IotFunctions.java @@ -14,6 +14,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class IotFunctions { @@ -242,6 +243,51 @@ public static CompletableFuture getDeviceGroupsPlain(GetD public static Output getDeviceGroups(GetDeviceGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:iot/getDeviceGroups:getDeviceGroups", TypeShape.of(GetDeviceGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Iot Device Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.134.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.iot.IotFunctions;
+     * import com.pulumi.alicloud.iot.inputs.GetDeviceGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = IotFunctions.getDeviceGroups();
+     * 
+     *         ctx.export("iotDeviceGroupId1", ids.applyValue(getDeviceGroupsResult -> getDeviceGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDeviceGroups(GetDeviceGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:iot/getDeviceGroups:getDeviceGroups", TypeShape.of(GetDeviceGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Iot Device Groups of the current Alibaba Cloud user. * @@ -517,6 +563,52 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:iot/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open IOT service automatically. If the service has been opened, it will return opened. + * + * For information about IOT and how to use it, see [What is IOT](https://www.alibabacloud.com/help/en/product/30520.htm). + * + * > **NOTE:** Available in v1.115.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.iot.IotFunctions;
+     * import com.pulumi.alicloud.iot.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = IotFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:iot/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open IOT service automatically. If the service has been opened, it will return opened. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/kms/KmsFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/kms/KmsFunctions.java index 0a26638504..c6ff5c0627 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/kms/KmsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/kms/KmsFunctions.java @@ -32,6 +32,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class KmsFunctions { @@ -270,6 +271,53 @@ public static CompletableFuture getAliasesPlain(GetAliasesPlai public static Output getAliases(GetAliasesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:kms/getAliases:getAliases", TypeShape.of(GetAliasesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of KMS aliases in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in v1.79.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.kms.KmsFunctions;
+     * import com.pulumi.alicloud.kms.inputs.GetAliasesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var kmsAliases = KmsFunctions.getAliases(GetAliasesArgs.builder()
+     *             .ids("d89e8a53-b708-41aa-8c67-6873axxx")
+     *             .nameRegex("alias/tf-testKmsAlias_123")
+     *             .build());
+     * 
+     *         ctx.export("firstKeyId", kmsKeysDs.keys()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAliases(GetAliasesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:kms/getAliases:getAliases", TypeShape.of(GetAliasesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of KMS aliases in an Alibaba Cloud account according to the specified filters. * @@ -467,6 +515,56 @@ public static CompletableFuture getCiphertextPlain(GetCiphe public static Output getCiphertext(GetCiphertextArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:kms/getCiphertext:getCiphertext", TypeShape.of(GetCiphertextResult.class), args, Utilities.withVersion(options)); } + /** + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.kms.Key;
+     * import com.pulumi.alicloud.kms.KeyArgs;
+     * import com.pulumi.alicloud.kms.KmsFunctions;
+     * import com.pulumi.alicloud.kms.inputs.GetCiphertextArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var key = new Key("key", KeyArgs.builder()
+     *             .description("example key")
+     *             .isEnabled(true)
+     *             .build());
+     * 
+     *         final var encrypted = KmsFunctions.getCiphertext(GetCiphertextArgs.builder()
+     *             .keyId(key.id())
+     *             .plaintext("example")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCiphertext(GetCiphertextArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:kms/getCiphertext:getCiphertext", TypeShape.of(GetCiphertextResult.class), args, Utilities.withVersion(options)); + } /** * ## Example Usage * @@ -658,6 +756,53 @@ public static CompletableFuture getKeyVersionsPlain(GetKey public static Output getKeyVersions(GetKeyVersionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:kms/getKeyVersions:getKeyVersions", TypeShape.of(GetKeyVersionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of KMS KeyVersions in an Alibaba Cloud account according to the specified filters. + * + * > NOTE: Available in v1.85.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.kms.KmsFunctions;
+     * import com.pulumi.alicloud.kms.inputs.GetKeyVersionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var alicloudKmsKeyVersionsDs = KmsFunctions.getKeyVersions(GetKeyVersionsArgs.builder()
+     *             .keyId("08438c-b4d5-4d05-928c-07b7xxxx")
+     *             .ids("d89e8a53-b708-41aa-8c67-6873axxx")
+     *             .build());
+     * 
+     *         ctx.export("allVersions", alicloudKmsKeyVersionsDs.applyValue(getKeyVersionsResult -> getKeyVersionsResult.versions()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getKeyVersions(GetKeyVersionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:kms/getKeyVersions:getKeyVersions", TypeShape.of(GetKeyVersionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of KMS KeyVersions in an Alibaba Cloud account according to the specified filters. * @@ -930,6 +1075,51 @@ public static CompletableFuture getKeysPlain(GetKeysPlainArgs arg public static Output getKeys(GetKeysArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:kms/getKeys:getKeys", TypeShape.of(GetKeysResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of KMS keys in an Alibaba Cloud account according to the specified filters. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.kms.KmsFunctions;
+     * import com.pulumi.alicloud.kms.inputs.GetKeysArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var kmsKeysDs = KmsFunctions.getKeys(GetKeysArgs.builder()
+     *             .descriptionRegex("Hello KMS")
+     *             .outputFile("kms_keys.json")
+     *             .build());
+     * 
+     *         ctx.export("firstKeyId", kmsKeysDs.applyValue(getKeysResult -> getKeysResult.keys()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getKeys(GetKeysArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:kms/getKeys:getKeys", TypeShape.of(GetKeysResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of KMS keys in an Alibaba Cloud account according to the specified filters. * @@ -1146,6 +1336,63 @@ public static CompletableFuture getPlaintextPlain(GetPlainte public static Output getPlaintext(GetPlaintextArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:kms/getPlaintext:getPlaintext", TypeShape.of(GetPlaintextResult.class), args, Utilities.withVersion(options)); } + /** + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.kms.Key;
+     * import com.pulumi.alicloud.kms.KeyArgs;
+     * import com.pulumi.alicloud.kms.Ciphertext;
+     * import com.pulumi.alicloud.kms.CiphertextArgs;
+     * import com.pulumi.alicloud.kms.KmsFunctions;
+     * import com.pulumi.alicloud.kms.inputs.GetPlaintextArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var key = new Key("key", KeyArgs.builder()
+     *             .description("example key")
+     *             .isEnabled(true)
+     *             .build());
+     * 
+     *         // Encrypt plaintext 'example'
+     *         var encrypted = new Ciphertext("encrypted", CiphertextArgs.builder()
+     *             .keyId(key.id())
+     *             .plaintext("example")
+     *             .build());
+     * 
+     *         // Decrypt encrypted ciphertext
+     *         final var plaintext = KmsFunctions.getPlaintext(GetPlaintextArgs.builder()
+     *             .ciphertextBlob(encrypted.ciphertextBlob())
+     *             .build());
+     * 
+     *         ctx.export("decrypted", plaintext.applyValue(getPlaintextResult -> getPlaintextResult).applyValue(plaintext -> plaintext.applyValue(getPlaintextResult -> getPlaintextResult.plaintext())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPlaintext(GetPlaintextArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:kms/getPlaintext:getPlaintext", TypeShape.of(GetPlaintextResult.class), args, Utilities.withVersion(options)); + } /** * ## Example Usage * @@ -1344,6 +1591,53 @@ public static CompletableFuture getSecretVersionsPlain( public static Output getSecretVersions(GetSecretVersionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:kms/getSecretVersions:getSecretVersions", TypeShape.of(GetSecretVersionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of KMS Secret Versions in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in v1.88.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.kms.KmsFunctions;
+     * import com.pulumi.alicloud.kms.inputs.GetSecretVersionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var kmsSecretVersionsDs = KmsFunctions.getSecretVersions(GetSecretVersionsArgs.builder()
+     *             .secretName("secret_name")
+     *             .enableDetails(true)
+     *             .build());
+     * 
+     *         ctx.export("firstSecretData", kmsSecretVersionsDs.applyValue(getSecretVersionsResult -> getSecretVersionsResult.versions()[0].secretData()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSecretVersions(GetSecretVersionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:kms/getSecretVersions:getSecretVersions", TypeShape.of(GetSecretVersionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of KMS Secret Versions in an Alibaba Cloud account according to the specified filters. * @@ -1646,6 +1940,57 @@ public static CompletableFuture getSecretsPlain(GetSecretsPlai public static Output getSecrets(GetSecretsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:kms/getSecrets:getSecrets", TypeShape.of(GetSecretsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of KMS Secrets in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available since v1.86.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.kms.KmsFunctions;
+     * import com.pulumi.alicloud.kms.inputs.GetSecretsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var kmsSecretsDs = KmsFunctions.getSecrets(GetSecretsArgs.builder()
+     *             .fetchTags(true)
+     *             .nameRegex("name_regex")
+     *             .tags(Map.ofEntries(
+     *                 Map.entry("k-aa", "v-aa"),
+     *                 Map.entry("k-bb", "v-bb")
+     *             ))
+     *             .build());
+     * 
+     *         ctx.export("firstSecretId", kmsSecretsDs.applyValue(getSecretsResult -> getSecretsResult.secrets()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSecrets(GetSecretsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:kms/getSecrets:getSecrets", TypeShape.of(GetSecretsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of KMS Secrets in an Alibaba Cloud account according to the specified filters. * @@ -1927,6 +2272,52 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:kms/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open KMS service automatically. If the service has been opened, it will return opened. + * + * For information about KMS and how to use it, see [What is KMS](https://help.aliyun.com/document_detail/186020.html). + * + * > **NOTE:** Available in v1.108.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.kms.KmsFunctions;
+     * import com.pulumi.alicloud.kms.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = KmsFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:kms/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open KMS service automatically. If the service has been opened, it will return opened. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/kvstore/KvstoreFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/kvstore/KvstoreFunctions.java index e374b9e086..1c3ce75f84 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/kvstore/KvstoreFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/kvstore/KvstoreFunctions.java @@ -29,6 +29,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class KvstoreFunctions { @@ -173,6 +174,53 @@ public static CompletableFuture getAccountsPlain(GetAccountsP public static Output getAccounts(GetAccountsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:kvstore/getAccounts:getAccounts", TypeShape.of(GetAccountsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Tair (Redis OSS-Compatible) And Memcache (KVStore) Accounts of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.102.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.kvstore.KvstoreFunctions;
+     * import com.pulumi.alicloud.kvstore.inputs.GetAccountsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = KvstoreFunctions.getAccounts(GetAccountsArgs.builder()
+     *             .instanceId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("firstKvstoreAccountId", example.applyValue(getAccountsResult -> getAccountsResult.accounts()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccounts(GetAccountsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:kvstore/getAccounts:getAccounts", TypeShape.of(GetAccountsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Tair (Redis OSS-Compatible) And Memcache (KVStore) Accounts of the current Alibaba Cloud user. * @@ -358,6 +406,52 @@ public static CompletableFuture getConnectionsPlain(GetCon public static Output getConnections(GetConnectionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:kvstore/getConnections:getConnections", TypeShape.of(GetConnectionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source can query the public IP of the specified Tair (Redis OSS-Compatible) And Memcache (KVStore). + * + * > **NOTE:** Available in v1.101.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.kvstore.KvstoreFunctions;
+     * import com.pulumi.alicloud.kvstore.inputs.GetConnectionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var example = KvstoreFunctions.getConnections(GetConnectionsArgs.builder()
+     *             .ids("r-wer123456")
+     *             .build());
+     * 
+     *         ctx.export("connectionString", example.applyValue(getConnectionsResult -> getConnectionsResult.connections()[0].connectionString()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getConnections(GetConnectionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:kvstore/getConnections:getConnections", TypeShape.of(GetConnectionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source can query the public IP of the specified Tair (Redis OSS-Compatible) And Memcache (KVStore). * @@ -569,6 +663,61 @@ public static CompletableFuture getInstanceClassesPlai public static Output getInstanceClasses(GetInstanceClassesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:kvstore/getInstanceClasses:getInstanceClasses", TypeShape.of(GetInstanceClassesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance classes resource available info of Alibaba Cloud. + * + * > **NOTE:** Available since v1.49.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetZonesArgs;
+     * import com.pulumi.alicloud.kvstore.KvstoreFunctions;
+     * import com.pulumi.alicloud.kvstore.inputs.GetInstanceClassesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var resources = AlicloudFunctions.getZones(GetZonesArgs.builder()
+     *             .availableResourceCreation("KVStore")
+     *             .build());
+     * 
+     *         final var resourcesGetInstanceClasses = KvstoreFunctions.getInstanceClasses(GetInstanceClassesArgs.builder()
+     *             .zoneId(resources.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
+     *             .instanceChargeType("PrePaid")
+     *             .engine("Redis")
+     *             .engineVersion("5.0")
+     *             .outputFile("./classes.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstKvstoreInstanceClass", resourcesGetInstanceClasses.applyValue(getInstanceClassesResult -> getInstanceClassesResult.instanceClasses()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceClasses(GetInstanceClassesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:kvstore/getInstanceClasses:getInstanceClasses", TypeShape.of(GetInstanceClassesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance classes resource available info of Alibaba Cloud. * @@ -789,6 +938,61 @@ public static CompletableFuture getInstanceEnginesPlai public static Output getInstanceEngines(GetInstanceEnginesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:kvstore/getInstanceEngines:getInstanceEngines", TypeShape.of(GetInstanceEnginesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance engines resource available info of Alibaba Cloud. + * + * > **NOTE:** Available since v1.51.0 + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetZonesArgs;
+     * import com.pulumi.alicloud.kvstore.KvstoreFunctions;
+     * import com.pulumi.alicloud.kvstore.inputs.GetInstanceEnginesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var resources = AlicloudFunctions.getZones(GetZonesArgs.builder()
+     *             .availableResourceCreation("KVStore")
+     *             .build());
+     * 
+     *         final var resourcesGetInstanceEngines = KvstoreFunctions.getInstanceEngines(GetInstanceEnginesArgs.builder()
+     *             .zoneId(resources.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
+     *             .instanceChargeType("PrePaid")
+     *             .engine("Redis")
+     *             .engineVersion("5.0")
+     *             .outputFile("./engines.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstKvstoreInstanceClass", resourcesGetInstanceEngines.applyValue(getInstanceEnginesResult -> getInstanceEnginesResult.instanceEngines()[0].engine()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceEngines(GetInstanceEnginesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:kvstore/getInstanceEngines:getInstanceEngines", TypeShape.of(GetInstanceEnginesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance engines resource available info of Alibaba Cloud. * @@ -1069,6 +1273,51 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:kvstore/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Tair (Redis OSS-Compatible) And Memcache (KVStore) Instances of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.15.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.kvstore.KvstoreFunctions;
+     * import com.pulumi.alicloud.kvstore.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = KvstoreFunctions.getInstances(GetInstancesArgs.builder()
+     *             .nameRegex("testname")
+     *             .build());
+     * 
+     *         ctx.export("firstInstanceName", default_.instances()[0].name());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:kvstore/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Tair (Redis OSS-Compatible) And Memcache (KVStore) Instances of the current Alibaba Cloud user. * @@ -1354,6 +1603,54 @@ public static CompletableFuture getPermissionPlain(GetPermi public static Output getPermission(GetPermissionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:kvstore/getPermission:getPermission", TypeShape.of(GetPermissionResult.class), args, Utilities.withVersion(options)); } + /** + * Assigns a RAM role to Tair (Redis OSS-Compatible) And Memcache (KVStore). + * + * The log management feature of Tair (Redis OSS-Compatible) And Memcache (KVStore) requires the resources of [Log Service](https://www.alibabacloud.com/help/doc-detail/48869.htm). + * To use the log management feature of Tair (Redis OSS-Compatible) And Memcache (KVStore), you can call this operation to associate the RAM role named AliyunServiceRoleForKvstore with the Tair (Redis OSS-Compatible) And Memcache (KVStore) instance. + * For more information, see [Associated RAM roles of Tair (Redis OSS-Compatible) And Memcache (KVStore)](https://www.alibabacloud.com/help/doc-detail/184337.htm) + * + * > **NOTE:** Available since v1.128.0 + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.kvstore.KvstoreFunctions;
+     * import com.pulumi.alicloud.kvstore.inputs.GetPermissionArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = KvstoreFunctions.getPermission(GetPermissionArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPermission(GetPermissionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:kvstore/getPermission:getPermission", TypeShape.of(GetPermissionResult.class), args, Utilities.withVersion(options)); + } /** * Assigns a RAM role to Tair (Redis OSS-Compatible) And Memcache (KVStore). * @@ -1627,6 +1924,51 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:kvstore/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides availability zones for Tair (Redis OSS-Compatible) And Memcache (KVStore) that can be accessed by an Alibaba Cloud account within the region configured in the provider. + * + * > **NOTE:** Available since v1.73.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.kvstore.KvstoreFunctions;
+     * import com.pulumi.alicloud.kvstore.inputs.GetZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var zonesIds = KvstoreFunctions.getZones(GetZonesArgs.builder()
+     *             .instanceChargeType("PostPaid")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:kvstore/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides availability zones for Tair (Redis OSS-Compatible) And Memcache (KVStore) that can be accessed by an Alibaba Cloud account within the region configured in the provider. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/lindorm/LindormFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/lindorm/LindormFunctions.java index 746ac77341..641e0ec74a 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/lindorm/LindormFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/lindorm/LindormFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class LindormFunctions { @@ -264,6 +265,56 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:lindorm/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Lindorm Instances of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.132.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.lindorm.LindormFunctions;
+     * import com.pulumi.alicloud.lindorm.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = LindormFunctions.getInstances();
+     * 
+     *         ctx.export("lindormInstanceId1", ids.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *         final var nameRegex = LindormFunctions.getInstances(GetInstancesArgs.builder()
+     *             .nameRegex("^my-Instance")
+     *             .build());
+     * 
+     *         ctx.export("lindormInstanceId2", nameRegex.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:lindorm/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Lindorm Instances of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/log/LogFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/log/LogFunctions.java index fa0b546ed5..6084219b65 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/log/LogFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/log/LogFunctions.java @@ -20,6 +20,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class LogFunctions { @@ -170,6 +171,55 @@ public static CompletableFuture getAlertResourcePlain(Ge public static Output getAlertResource(GetAlertResourceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:log/getAlertResource:getAlertResource", TypeShape.of(GetAlertResourceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can init SLS Alert resources automatically. + * + * For information about SLS Alert and how to use it, see [SLS Alert Overview](https://www.alibabacloud.com/help/en/doc-detail/209202.html) + * + * > **DEPRECATED:** This resource has been deprecated from version `1.219.0`. Please use new resource alicloud_log_alert_resource. + * + * > **NOTE:** Available since v1.161.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.log.LogFunctions;
+     * import com.pulumi.alicloud.log.inputs.GetAlertResourceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var exampleUser = LogFunctions.getAlertResource(GetAlertResourceArgs.builder()
+     *             .type("user")
+     *             .lang("cn")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAlertResource(GetAlertResourceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:log/getAlertResource:getAlertResource", TypeShape.of(GetAlertResourceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can init SLS Alert resources automatically. * @@ -264,6 +314,15 @@ public static CompletableFuture getProjectsPlain(GetProjectsP public static Output getProjects(GetProjectsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:log/getProjects:getProjects", TypeShape.of(GetProjectsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Log Projects of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.126.0+. + * + */ + public static Output getProjects(GetProjectsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:log/getProjects:getProjects", TypeShape.of(GetProjectsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Log Projects of the current Alibaba Cloud user. * @@ -503,6 +562,52 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:log/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can enable Log service automatically. If the service has been enabled, it will return `Opened`. + * + * For information about Log service and how to use it, see [What is Log Service](https://www.alibabacloud.com/help/product/28958.htm). + * + * > **NOTE:** Available since v1.96.0 + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.log.LogFunctions;
+     * import com.pulumi.alicloud.log.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = LogFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:log/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can enable Log service automatically. If the service has been enabled, it will return `Opened`. * @@ -693,6 +798,54 @@ public static CompletableFuture getStoresPlain(GetStoresPlainAr public static Output getStores(GetStoresArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:log/getStores:getStores", TypeShape.of(GetStoresResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Log Stores of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.126.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.log.LogFunctions;
+     * import com.pulumi.alicloud.log.inputs.GetStoresArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = LogFunctions.getStores(GetStoresArgs.builder()
+     *             .project("the_project_name")
+     *             .ids("the_store_name")
+     *             .build());
+     * 
+     *         ctx.export("firstLogStoreId", example.applyValue(getStoresResult -> getStoresResult.stores()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getStores(GetStoresArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:log/getStores:getStores", TypeShape.of(GetStoresResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Log Stores of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/marketplace/MarketplaceFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/marketplace/MarketplaceFunctions.java index 58c6f7265b..845107b4f7 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/marketplace/MarketplaceFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/marketplace/MarketplaceFunctions.java @@ -14,6 +14,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class MarketplaceFunctions { @@ -158,6 +159,53 @@ public static CompletableFuture getProductPlain(GetProductPlai public static Output getProduct(GetProductArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:marketplace/getProduct:getProduct", TypeShape.of(GetProductResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Market product item details of Alibaba Cloud. + * + * > **NOTE:** Available in 1.69.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.marketplace.MarketplaceFunctions;
+     * import com.pulumi.alicloud.marketplace.inputs.GetProductArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = MarketplaceFunctions.getProduct(GetProductArgs.builder()
+     *             .productCode("cmapi022206")
+     *             .build());
+     * 
+     *         ctx.export("productName", default_.products()[0].name());
+     *         ctx.export("firstProductSkuCode", default_.products()[0].skuses()[0].skuCode());
+     *         ctx.export("firstProductPackageVersion", default_.products()[0].skuses()[0].packageVersions()[0].packageVersion());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getProduct(GetProductArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:marketplace/getProduct:getProduct", TypeShape.of(GetProductResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Market product item details of Alibaba Cloud. * @@ -250,6 +298,15 @@ public static CompletableFuture getProductsPlain(GetProductsP public static Output getProducts(GetProductsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:marketplace/getProducts:getProducts", TypeShape.of(GetProductsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Market product items of Alibaba Cloud. + * + * > **NOTE:** Available in 1.64.0+ + * + */ + public static Output getProducts(GetProductsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:marketplace/getProducts:getProducts", TypeShape.of(GetProductsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Market product items of Alibaba Cloud. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/maxcompute/MaxcomputeFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/maxcompute/MaxcomputeFunctions.java index 03c41bcb75..99ce58f896 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/maxcompute/MaxcomputeFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/maxcompute/MaxcomputeFunctions.java @@ -14,6 +14,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class MaxcomputeFunctions { @@ -297,6 +298,62 @@ public static CompletableFuture getProjectsPlain(GetProjectsP public static Output getProjects(GetProjectsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:maxcompute/getProjects:getProjects", TypeShape.of(GetProjectsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Max Compute Project available to the user.[What is Project](https://www.alibabacloud.com/help/en/maxcompute/) + * + * > **NOTE:** Available since v1.196.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.maxcompute.Project;
+     * import com.pulumi.alicloud.maxcompute.ProjectArgs;
+     * import com.pulumi.alicloud.maxcompute.MaxcomputeFunctions;
+     * import com.pulumi.alicloud.maxcompute.inputs.GetProjectsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("tf_example_acc");
+     *         var defaultProject = new Project("defaultProject", ProjectArgs.builder()
+     *             .defaultQuota("默认后付费Quota")
+     *             .projectName(name)
+     *             .comment(name)
+     *             .productType("PayAsYouGo")
+     *             .build());
+     * 
+     *         final var default = MaxcomputeFunctions.getProjects(GetProjectsArgs.builder()
+     *             .nameRegex(defaultProject.projectName())
+     *             .build());
+     * 
+     *         ctx.export("alicloudMaxcomputeProjectExampleId", default_.applyValue(default_ -> default_.projects()[0].projectName()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getProjects(GetProjectsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:maxcompute/getProjects:getProjects", TypeShape.of(GetProjectsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Max Compute Project available to the user.[What is Project](https://www.alibabacloud.com/help/en/maxcompute/) * @@ -603,6 +660,56 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:maxcompute/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * > **NOTE:** When you open MaxCompute service, you'd better open [DataWorks service](https://www.alibabacloud.com/help/en/product/72772.htm) as well. + * + * Using this data source can open Maxcompute service automatically. If the service has been opened, it will return opened. + * + * For information about Maxcompute and how to use it, see [What is Maxcompute](https://www.alibabacloud.com/help/en/product/27797.htm). + * + * > **NOTE:** Available in v1.117.0+ + * + * > **NOTE:** This datasource has been deprecated since provider version v1.228.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.maxcompute.MaxcomputeFunctions;
+     * import com.pulumi.alicloud.maxcompute.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = MaxcomputeFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:maxcompute/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * > **NOTE:** When you open MaxCompute service, you'd better open [DataWorks service](https://www.alibabacloud.com/help/en/product/72772.htm) as well. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/message/MessageFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/message/MessageFunctions.java index b680859cd6..b03af68804 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/message/MessageFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/message/MessageFunctions.java @@ -17,6 +17,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class MessageFunctions { @@ -270,6 +271,56 @@ public static CompletableFuture getServiceQueuesPlain(Ge public static Output getServiceQueues(GetServiceQueuesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:message/getServiceQueues:getServiceQueues", TypeShape.of(GetServiceQueuesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Message Notification Service Queues of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.188.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.message.MessageFunctions;
+     * import com.pulumi.alicloud.message.inputs.GetServiceQueuesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = MessageFunctions.getServiceQueues(GetServiceQueuesArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("queueId1", ids.applyValue(getServiceQueuesResult -> getServiceQueuesResult.queues()[0].id()));
+     *         final var name = MessageFunctions.getServiceQueues(GetServiceQueuesArgs.builder()
+     *             .queueName("tf-example")
+     *             .build());
+     * 
+     *         ctx.export("queueId2", name.applyValue(getServiceQueuesResult -> getServiceQueuesResult.queues()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServiceQueues(GetServiceQueuesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:message/getServiceQueues:getServiceQueues", TypeShape.of(GetServiceQueuesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Message Notification Service Queues of the current Alibaba Cloud user. * @@ -473,6 +524,57 @@ public static CompletableFuture getServiceSubscri public static Output getServiceSubscriptions(GetServiceSubscriptionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:message/getServiceSubscriptions:getServiceSubscriptions", TypeShape.of(GetServiceSubscriptionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Message Notification Service Subscriptions of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.188.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.message.MessageFunctions;
+     * import com.pulumi.alicloud.message.inputs.GetServiceSubscriptionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = MessageFunctions.getServiceSubscriptions(GetServiceSubscriptionsArgs.builder()
+     *             .ids("example_id")
+     *             .topicName("tf-example")
+     *             .build());
+     * 
+     *         ctx.export("subscriptionId1", ids.applyValue(getServiceSubscriptionsResult -> getServiceSubscriptionsResult.subscriptions()[0].id()));
+     *         final var name = MessageFunctions.getServiceSubscriptions(GetServiceSubscriptionsArgs.builder()
+     *             .topicName("tf-example")
+     *             .build());
+     * 
+     *         ctx.export("subscriptionId2", name.applyValue(getServiceSubscriptionsResult -> getServiceSubscriptionsResult.subscriptions()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServiceSubscriptions(GetServiceSubscriptionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:message/getServiceSubscriptions:getServiceSubscriptions", TypeShape.of(GetServiceSubscriptionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Message Notification Service Subscriptions of the current Alibaba Cloud user. * @@ -774,6 +876,56 @@ public static CompletableFuture getServiceTopicsPlain(Ge public static Output getServiceTopics(GetServiceTopicsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:message/getServiceTopics:getServiceTopics", TypeShape.of(GetServiceTopicsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Message Notification Service Topics of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.188.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.message.MessageFunctions;
+     * import com.pulumi.alicloud.message.inputs.GetServiceTopicsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = MessageFunctions.getServiceTopics(GetServiceTopicsArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("topicId1", ids.applyValue(getServiceTopicsResult -> getServiceTopicsResult.topics()[0].id()));
+     *         final var name = MessageFunctions.getServiceTopics(GetServiceTopicsArgs.builder()
+     *             .topicName("tf-example")
+     *             .build());
+     * 
+     *         ctx.export("topicId2", name.applyValue(getServiceTopicsResult -> getServiceTopicsResult.topics()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServiceTopics(GetServiceTopicsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:message/getServiceTopics:getServiceTopics", TypeShape.of(GetServiceTopicsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Message Notification Service Topics of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/mhub/MhubFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/mhub/MhubFunctions.java index 91d18f0f07..02bda831b2 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/mhub/MhubFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/mhub/MhubFunctions.java @@ -14,6 +14,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class MhubFunctions { @@ -200,6 +201,67 @@ public static CompletableFuture getAppsPlain(GetAppsPlainArgs arg public static Output getApps(GetAppsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:mhub/getApps:getApps", TypeShape.of(GetAppsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Mhub Apps of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.138.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.mhub.App;
+     * import com.pulumi.alicloud.mhub.AppArgs;
+     * import com.pulumi.alicloud.mhub.MhubFunctions;
+     * import com.pulumi.alicloud.mhub.inputs.GetAppsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("example_value");
+     *         var default_ = new App("default", AppArgs.builder()
+     *             .appName(name)
+     *             .productId(defaultAlicloudMhubProduct.id())
+     *             .packageName("com.test.android")
+     *             .type("2")
+     *             .build());
+     * 
+     *         final var ids = MhubFunctions.getApps();
+     * 
+     *         ctx.export("mhubAppId1", ids.applyValue(getAppsResult -> getAppsResult.apps()[0].id()));
+     *         final var nameRegex = MhubFunctions.getApps(GetAppsArgs.builder()
+     *             .nameRegex("^my-App")
+     *             .build());
+     * 
+     *         ctx.export("mhubAppId2", nameRegex.applyValue(getAppsResult -> getAppsResult.apps()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getApps(GetAppsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:mhub/getApps:getApps", TypeShape.of(GetAppsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Mhub Apps of the current Alibaba Cloud user. * @@ -551,6 +613,64 @@ public static CompletableFuture getProductsPlain(GetProductsP public static Output getProducts(GetProductsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:mhub/getProducts:getProducts", TypeShape.of(GetProductsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Mhub Products of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.138.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.mhub.Product;
+     * import com.pulumi.alicloud.mhub.ProductArgs;
+     * import com.pulumi.alicloud.mhub.MhubFunctions;
+     * import com.pulumi.alicloud.mhub.inputs.GetProductsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("example_value");
+     *         var default_ = new Product("default", ProductArgs.builder()
+     *             .productName(name)
+     *             .build());
+     * 
+     *         final var ids = MhubFunctions.getProducts();
+     * 
+     *         ctx.export("mhubProductId1", ids.applyValue(getProductsResult -> getProductsResult.products()[0].id()));
+     *         final var nameRegex = MhubFunctions.getProducts(GetProductsArgs.builder()
+     *             .nameRegex("^my-Product")
+     *             .build());
+     * 
+     *         ctx.export("mhubProductId2", nameRegex.applyValue(getProductsResult -> getProductsResult.products()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getProducts(GetProductsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:mhub/getProducts:getProducts", TypeShape.of(GetProductsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Mhub Products of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/mns/MnsFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/mns/MnsFunctions.java index 3ddbfd2a66..fb2426f481 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/mns/MnsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/mns/MnsFunctions.java @@ -20,6 +20,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class MnsFunctions { @@ -248,6 +249,51 @@ public static CompletableFuture getQueuesPlain(GetQueuesPlainAr public static Output getQueues(GetQueuesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:mns/getQueues:getQueues", TypeShape.of(GetQueuesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of MNS queues in an Alibaba Cloud account according to the specified parameters. + * + * > **DEPRECATED:** This datasource has been deprecated from version `1.188.0`. Please use new datasource message_service_queues. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.mns.MnsFunctions;
+     * import com.pulumi.alicloud.mns.inputs.GetQueuesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var queues = MnsFunctions.getQueues(GetQueuesArgs.builder()
+     *             .namePrefix("tf-")
+     *             .build());
+     * 
+     *         ctx.export("firstQueueId", queues.applyValue(getQueuesResult -> getQueuesResult.queues()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getQueues(GetQueuesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:mns/getQueues:getQueues", TypeShape.of(GetQueuesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of MNS queues in an Alibaba Cloud account according to the specified parameters. * @@ -533,6 +579,54 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:mns/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open MNS service automatically. If the service has been opened, it will return opened. + * + * For information about MNS and how to use it, see [What is MNS](https://www.alibabacloud.com/help/en/product/27412.htm). + * + * > **NOTE:** Available in v1.118.0+ + * + * > **NOTE:** The MNS service is not support in the international site. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.mns.MnsFunctions;
+     * import com.pulumi.alicloud.mns.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = MnsFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:mns/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open MNS service automatically. If the service has been opened, it will return opened. * @@ -719,6 +813,52 @@ public static CompletableFuture getTopicSubscriptio public static Output getTopicSubscriptions(GetTopicSubscriptionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:mns/getTopicSubscriptions:getTopicSubscriptions", TypeShape.of(GetTopicSubscriptionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of MNS topic subscriptions in an Alibaba Cloud account according to the specified parameters. + * + * > **DEPRECATED:** This datasource has been deprecated from version `1.188.0`. Please use new datasource message_service_subscriptions. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.mns.MnsFunctions;
+     * import com.pulumi.alicloud.mns.inputs.GetTopicSubscriptionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var subscriptions = MnsFunctions.getTopicSubscriptions(GetTopicSubscriptionsArgs.builder()
+     *             .topicName("topic_name")
+     *             .namePrefix("tf-")
+     *             .build());
+     * 
+     *         ctx.export("firstTopicSubscriptionId", subscriptions.applyValue(getTopicSubscriptionsResult -> getTopicSubscriptionsResult.subscriptions()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTopicSubscriptions(GetTopicSubscriptionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:mns/getTopicSubscriptions:getTopicSubscriptions", TypeShape.of(GetTopicSubscriptionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of MNS topic subscriptions in an Alibaba Cloud account according to the specified parameters. * @@ -990,6 +1130,51 @@ public static CompletableFuture getTopicsPlain(GetTopicsPlainAr public static Output getTopics(GetTopicsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:mns/getTopics:getTopics", TypeShape.of(GetTopicsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of MNS topics in an Alibaba Cloud account according to the specified parameters. + * + * > **DEPRECATED:** This datasource has been deprecated from version `1.188.0`. Please use new datasource message_service_topics. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.mns.MnsFunctions;
+     * import com.pulumi.alicloud.mns.inputs.GetTopicsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var topics = MnsFunctions.getTopics(GetTopicsArgs.builder()
+     *             .namePrefix("tf-")
+     *             .build());
+     * 
+     *         ctx.export("firstTopicId", topics.applyValue(getTopicsResult -> getTopicsResult.topics()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTopics(GetTopicsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:mns/getTopics:getTopics", TypeShape.of(GetTopicsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of MNS topics in an Alibaba Cloud account according to the specified parameters. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/mongodb/MongodbFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/mongodb/MongodbFunctions.java index 8d2cfce064..189637e0ab 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/mongodb/MongodbFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/mongodb/MongodbFunctions.java @@ -29,6 +29,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class MongodbFunctions { @@ -176,6 +177,54 @@ public static CompletableFuture getAccountsPlain(GetAccountsP public static Output getAccounts(GetAccountsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:mongodb/getAccounts:getAccounts", TypeShape.of(GetAccountsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Mongodb Accounts of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.148.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.mongodb.MongodbFunctions;
+     * import com.pulumi.alicloud.mongodb.inputs.GetAccountsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = MongodbFunctions.getAccounts(GetAccountsArgs.builder()
+     *             .instanceId("example_value")
+     *             .accountName("root")
+     *             .build());
+     * 
+     *         ctx.export("mongodbAccountId1", example.applyValue(getAccountsResult -> getAccountsResult.accounts()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccounts(GetAccountsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:mongodb/getAccounts:getAccounts", TypeShape.of(GetAccountsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Mongodb Accounts of the current Alibaba Cloud user. * @@ -365,6 +414,53 @@ public static CompletableFuture getAuditPoliciesPlain(Ge public static Output getAuditPolicies(GetAuditPoliciesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:mongodb/getAuditPolicies:getAuditPolicies", TypeShape.of(GetAuditPoliciesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Mongodb Audit Policies of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.148.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.mongodb.MongodbFunctions;
+     * import com.pulumi.alicloud.mongodb.inputs.GetAuditPoliciesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = MongodbFunctions.getAuditPolicies(GetAuditPoliciesArgs.builder()
+     *             .dbInstanceId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("mongodbAuditPolicyId1", example.applyValue(getAuditPoliciesResult -> getAuditPoliciesResult.policies()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAuditPolicies(GetAuditPoliciesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:mongodb/getAuditPolicies:getAuditPolicies", TypeShape.of(GetAuditPoliciesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Mongodb Audit Policies of the current Alibaba Cloud user. * @@ -642,6 +738,52 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:mongodb/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * The `alicloud.mongodb.getInstances` data source provides a collection of MongoDB instances available in Alicloud account. + * Filters support regular expression for the instance name, engine or instance type. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.mongodb.MongodbFunctions;
+     * import com.pulumi.alicloud.mongodb.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var mongo = MongodbFunctions.getInstances(GetInstancesArgs.builder()
+     *             .nameRegex("dds-.+\\d+")
+     *             .instanceType("replicate")
+     *             .instanceClass("dds.mongo.mid")
+     *             .availabilityZone("eu-central-1a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:mongodb/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * The `alicloud.mongodb.getInstances` data source provides a collection of MongoDB instances available in Alicloud account. * Filters support regular expression for the instance name, engine or instance type. @@ -983,6 +1125,65 @@ public static CompletableFuture getServerlessInsta public static Output getServerlessInstances(GetServerlessInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:mongodb/getServerlessInstances:getServerlessInstances", TypeShape.of(GetServerlessInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Mongodb Serverless Instances of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.148.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.mongodb.MongodbFunctions;
+     * import com.pulumi.alicloud.mongodb.inputs.GetServerlessInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = MongodbFunctions.getServerlessInstances(GetServerlessInstancesArgs.builder()
+     *             .ids("example_value")
+     *             .dbInstanceClass("example_value")
+     *             .dbInstanceDescription("example_value")
+     *             .networkType("VPC")
+     *             .resourceGroupId("example_value")
+     *             .status("Running")
+     *             .vpcId("example_value")
+     *             .vswitchId("example_value")
+     *             .zoneId("example_value")
+     *             .tags(Map.ofEntries(
+     *                 Map.entry("Created", "MongodbServerlessInstance"),
+     *                 Map.entry("For", "TF")
+     *             ))
+     *             .build());
+     * 
+     *         ctx.export("mongodbServerlessInstanceId1", example.applyValue(getServerlessInstancesResult -> getServerlessInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServerlessInstances(GetServerlessInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:mongodb/getServerlessInstances:getServerlessInstances", TypeShape.of(GetServerlessInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Mongodb Serverless Instances of the current Alibaba Cloud user. * @@ -1069,6 +1270,15 @@ public static CompletableFuture getSha public static Output getShardingNetworkPrivateAddresses(GetShardingNetworkPrivateAddressesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:mongodb/getShardingNetworkPrivateAddresses:getShardingNetworkPrivateAddresses", TypeShape.of(GetShardingNetworkPrivateAddressesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Mongodb Sharding Network Private Addresses of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.157.0+. + * + */ + public static Output getShardingNetworkPrivateAddresses(GetShardingNetworkPrivateAddressesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:mongodb/getShardingNetworkPrivateAddresses:getShardingNetworkPrivateAddresses", TypeShape.of(GetShardingNetworkPrivateAddressesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Mongodb Sharding Network Private Addresses of the current Alibaba Cloud user. * @@ -1225,6 +1435,55 @@ public static CompletableFuture getShar public static Output getShardingNetworkPublicAddresses(GetShardingNetworkPublicAddressesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:mongodb/getShardingNetworkPublicAddresses:getShardingNetworkPublicAddresses", TypeShape.of(GetShardingNetworkPublicAddressesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Mongodb Sharding Network Public Addresses of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.149.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.mongodb.MongodbFunctions;
+     * import com.pulumi.alicloud.mongodb.inputs.GetShardingNetworkPublicAddressesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = MongodbFunctions.getShardingNetworkPublicAddresses(GetShardingNetworkPublicAddressesArgs.builder()
+     *             .dbInstanceId("example_value")
+     *             .nodeId("example_value")
+     *             .role("Primary")
+     *             .build());
+     * 
+     *         ctx.export("mongodbShardingNetworkPublicAddressDbInstanceId1", example.applyValue(getShardingNetworkPublicAddressesResult -> getShardingNetworkPublicAddressesResult.addresses()[0].dbInstanceId()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getShardingNetworkPublicAddresses(GetShardingNetworkPublicAddressesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:mongodb/getShardingNetworkPublicAddresses:getShardingNetworkPublicAddresses", TypeShape.of(GetShardingNetworkPublicAddressesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Mongodb Sharding Network Public Addresses of the current Alibaba Cloud user. * @@ -1524,6 +1783,56 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:mongodb/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides availability zones for mongoDB that can be accessed by an Alibaba Cloud account within the region configured in the provider. + * + * > **NOTE:** Available in v1.73.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.mongodb.MongodbFunctions;
+     * import com.pulumi.alicloud.mongodb.inputs.GetZonesArgs;
+     * import com.pulumi.alicloud.mongodb.Instance;
+     * import com.pulumi.alicloud.mongodb.InstanceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var zonesIds = MongodbFunctions.getZones();
+     * 
+     *         // Create an mongoDB instance with the first matched zone
+     *         var mongodb = new Instance("mongodb", InstanceArgs.builder()
+     *             .zoneId(zonesIds.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:mongodb/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides availability zones for mongoDB that can be accessed by an Alibaba Cloud account within the region configured in the provider. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/mse/MseFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/mse/MseFunctions.java index 2f18d9fc93..fb5d212d8a 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/mse/MseFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/mse/MseFunctions.java @@ -23,6 +23,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class MseFunctions { @@ -466,6 +467,94 @@ public static CompletableFuture getClustersPlain(GetClustersP public static Output getClusters(GetClustersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:mse/getClusters:getClusters", TypeShape.of(GetClustersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of MSE Clusters in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available since v1.94.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetZonesArgs;
+     * import com.pulumi.alicloud.vpc.Network;
+     * import com.pulumi.alicloud.vpc.NetworkArgs;
+     * import com.pulumi.alicloud.vpc.Switch;
+     * import com.pulumi.alicloud.vpc.SwitchArgs;
+     * import com.pulumi.alicloud.mse.Cluster;
+     * import com.pulumi.alicloud.mse.ClusterArgs;
+     * import com.pulumi.alicloud.mse.MseFunctions;
+     * import com.pulumi.alicloud.mse.inputs.GetClustersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Create resource
+     *         final var example = AlicloudFunctions.getZones(GetZonesArgs.builder()
+     *             .availableResourceCreation("VSwitch")
+     *             .build());
+     * 
+     *         var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
+     *             .vpcName("terraform-example")
+     *             .cidrBlock("172.17.3.0/24")
+     *             .build());
+     * 
+     *         var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()
+     *             .vswitchName("terraform-example")
+     *             .cidrBlock("172.17.3.0/24")
+     *             .vpcId(exampleNetwork.id())
+     *             .zoneId(example.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
+     *             .build());
+     * 
+     *         var exampleCluster = new Cluster("exampleCluster", ClusterArgs.builder()
+     *             .clusterSpecification("MSE_SC_1_2_60_c")
+     *             .clusterType("Nacos-Ans")
+     *             .clusterVersion("NACOS_2_0_0")
+     *             .instanceCount(3)
+     *             .netType("privatenet")
+     *             .pubNetworkFlow("1")
+     *             .connectionType("slb")
+     *             .clusterAliasName("terraform-example")
+     *             .mseVersion("mse_pro")
+     *             .vswitchId(exampleSwitch.id())
+     *             .vpcId(exampleNetwork.id())
+     *             .build());
+     * 
+     *         // Declare the data source
+     *         final var exampleGetClusters = MseFunctions.getClusters(GetClustersArgs.builder()
+     *             .enableDetails("true")
+     *             .ids(exampleCluster.id())
+     *             .status("INIT_SUCCESS")
+     *             .nameRegex(exampleCluster.clusterAliasName())
+     *             .build());
+     * 
+     *         ctx.export("instanceId", exampleGetClusters.applyValue(getClustersResult -> getClustersResult).applyValue(exampleGetClusters -> exampleGetClusters.applyValue(getClustersResult -> getClustersResult.clusters()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getClusters(GetClustersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:mse/getClusters:getClusters", TypeShape.of(GetClustersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of MSE Clusters in an Alibaba Cloud account according to the specified filters. * @@ -1034,6 +1123,102 @@ public static CompletableFuture getEngineNamespacesPl public static Output getEngineNamespaces(GetEngineNamespacesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:mse/getEngineNamespaces:getEngineNamespaces", TypeShape.of(GetEngineNamespacesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Mse Engine Namespaces of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.166.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetZonesArgs;
+     * import com.pulumi.alicloud.vpc.Network;
+     * import com.pulumi.alicloud.vpc.NetworkArgs;
+     * import com.pulumi.alicloud.vpc.Switch;
+     * import com.pulumi.alicloud.vpc.SwitchArgs;
+     * import com.pulumi.alicloud.mse.Cluster;
+     * import com.pulumi.alicloud.mse.ClusterArgs;
+     * import com.pulumi.alicloud.mse.EngineNamespace;
+     * import com.pulumi.alicloud.mse.EngineNamespaceArgs;
+     * import com.pulumi.alicloud.mse.MseFunctions;
+     * import com.pulumi.alicloud.mse.inputs.GetEngineNamespacesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = AlicloudFunctions.getZones(GetZonesArgs.builder()
+     *             .availableResourceCreation("VSwitch")
+     *             .build());
+     * 
+     *         var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
+     *             .vpcName("terraform-example")
+     *             .cidrBlock("172.17.3.0/24")
+     *             .build());
+     * 
+     *         var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()
+     *             .vswitchName("terraform-example")
+     *             .cidrBlock("172.17.3.0/24")
+     *             .vpcId(exampleNetwork.id())
+     *             .zoneId(example.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
+     *             .build());
+     * 
+     *         var exampleCluster = new Cluster("exampleCluster", ClusterArgs.builder()
+     *             .clusterSpecification("MSE_SC_1_2_60_c")
+     *             .clusterType("Nacos-Ans")
+     *             .clusterVersion("NACOS_2_0_0")
+     *             .instanceCount(3)
+     *             .netType("privatenet")
+     *             .pubNetworkFlow("1")
+     *             .connectionType("slb")
+     *             .clusterAliasName("terraform-example")
+     *             .mseVersion("mse_pro")
+     *             .vswitchId(exampleSwitch.id())
+     *             .vpcId(exampleNetwork.id())
+     *             .build());
+     * 
+     *         var exampleEngineNamespace = new EngineNamespace("exampleEngineNamespace", EngineNamespaceArgs.builder()
+     *             .instanceId(exampleCluster.id())
+     *             .namespaceShowName("terraform-example")
+     *             .namespaceId("terraform-example")
+     *             .namespaceDesc("description")
+     *             .build());
+     * 
+     *         // Declare the data source
+     *         final var exampleGetEngineNamespaces = MseFunctions.getEngineNamespaces(GetEngineNamespacesArgs.builder()
+     *             .instanceId(exampleEngineNamespace.instanceId())
+     *             .build());
+     * 
+     *         ctx.export("mseEngineNamespaceIdPublic", exampleGetEngineNamespaces.applyValue(getEngineNamespacesResult -> getEngineNamespacesResult).applyValue(exampleGetEngineNamespaces -> exampleGetEngineNamespaces.applyValue(getEngineNamespacesResult -> getEngineNamespacesResult.namespaces()[0].id())));
+     *         ctx.export("mseEngineNamespaceIdExample", exampleGetEngineNamespaces.applyValue(getEngineNamespacesResult -> getEngineNamespacesResult).applyValue(exampleGetEngineNamespaces -> exampleGetEngineNamespaces.applyValue(getEngineNamespacesResult -> getEngineNamespacesResult.namespaces()[1].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEngineNamespaces(GetEngineNamespacesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:mse/getEngineNamespaces:getEngineNamespaces", TypeShape.of(GetEngineNamespacesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Mse Engine Namespaces of the current Alibaba Cloud user. * @@ -1415,6 +1600,63 @@ public static CompletableFuture getGatewaysPlain(GetGatewaysP public static Output getGateways(GetGatewaysArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:mse/getGateways:getGateways", TypeShape.of(GetGatewaysResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Mse Gateways of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.157.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.mse.MseFunctions;
+     * import com.pulumi.alicloud.mse.inputs.GetGatewaysArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = MseFunctions.getGateways(GetGatewaysArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("mseGatewayId1", ids.applyValue(getGatewaysResult -> getGatewaysResult.gateways()[0].id()));
+     *         final var nameRegex = MseFunctions.getGateways(GetGatewaysArgs.builder()
+     *             .nameRegex("^my-Gateway")
+     *             .build());
+     * 
+     *         ctx.export("mseGatewayId2", nameRegex.applyValue(getGatewaysResult -> getGatewaysResult.gateways()[0].id()));
+     *         final var status = MseFunctions.getGateways(GetGatewaysArgs.builder()
+     *             .status("2")
+     *             .build());
+     * 
+     *         ctx.export("mseGatewayId3", status.applyValue(getGatewaysResult -> getGatewaysResult.gateways()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGateways(GetGatewaysArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:mse/getGateways:getGateways", TypeShape.of(GetGatewaysResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Mse Gateways of the current Alibaba Cloud user. * @@ -1897,6 +2139,113 @@ public static Output getNacosConfigs(GetNacosConfigsArgs * <!--End PulumiCodeChooser --> * */ + public static Output getNacosConfigs(GetNacosConfigsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:mse/getNacosConfigs:getNacosConfigs", TypeShape.of(GetNacosConfigsResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Mse Nacos Configs of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.233.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetZonesArgs;
+     * import com.pulumi.alicloud.vpc.Network;
+     * import com.pulumi.alicloud.vpc.NetworkArgs;
+     * import com.pulumi.alicloud.vpc.Switch;
+     * import com.pulumi.alicloud.vpc.SwitchArgs;
+     * import com.pulumi.alicloud.mse.Cluster;
+     * import com.pulumi.alicloud.mse.ClusterArgs;
+     * import com.pulumi.alicloud.mse.EngineNamespace;
+     * import com.pulumi.alicloud.mse.EngineNamespaceArgs;
+     * import com.pulumi.alicloud.mse.NacosConfig;
+     * import com.pulumi.alicloud.mse.NacosConfigArgs;
+     * import com.pulumi.alicloud.mse.MseFunctions;
+     * import com.pulumi.alicloud.mse.inputs.GetNacosConfigsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = AlicloudFunctions.getZones(GetZonesArgs.builder()
+     *             .availableResourceCreation("VSwitch")
+     *             .build());
+     * 
+     *         var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
+     *             .vpcName("terraform-example")
+     *             .cidrBlock("172.17.3.0/24")
+     *             .build());
+     * 
+     *         var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()
+     *             .vswitchName("terraform-example")
+     *             .cidrBlock("172.17.3.0/24")
+     *             .vpcId(exampleNetwork.id())
+     *             .zoneId(example.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
+     *             .build());
+     * 
+     *         var exampleCluster = new Cluster("exampleCluster", ClusterArgs.builder()
+     *             .connectionType("slb")
+     *             .netType("privatenet")
+     *             .vswitchId(exampleSwitch.id())
+     *             .clusterSpecification("MSE_SC_1_2_60_c")
+     *             .clusterVersion("NACOS_2_0_0")
+     *             .instanceCount("3")
+     *             .pubNetworkFlow("1")
+     *             .clusterAliasName("example")
+     *             .mseVersion("mse_pro")
+     *             .clusterType("Nacos-Ans")
+     *             .build());
+     * 
+     *         var exampleEngineNamespace = new EngineNamespace("exampleEngineNamespace", EngineNamespaceArgs.builder()
+     *             .instanceId(exampleCluster.id())
+     *             .namespaceShowName("example")
+     *             .namespaceId("example")
+     *             .build());
+     * 
+     *         var exampleNacosConfig = new NacosConfig("exampleNacosConfig", NacosConfigArgs.builder()
+     *             .instanceId(exampleCluster.id())
+     *             .dataId("example")
+     *             .group("example")
+     *             .namespaceId(exampleEngineNamespace.namespaceId())
+     *             .content("example")
+     *             .type("text")
+     *             .tags("example")
+     *             .appName("example")
+     *             .desc("example")
+     *             .build());
+     * 
+     *         final var exampleGetNacosConfigs = MseFunctions.getNacosConfigs(GetNacosConfigsArgs.builder()
+     *             .instanceId(exampleCluster.id())
+     *             .enableDetails("true")
+     *             .namespaceId(exampleEngineNamespace.namespaceId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ public static CompletableFuture getNacosConfigsPlain(GetNacosConfigsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:mse/getNacosConfigs:getNacosConfigs", TypeShape.of(GetNacosConfigsResult.class), args, Utilities.withVersion(options)); } @@ -2074,6 +2423,64 @@ public static CompletableFuture getZnodesPlain(GetZnodesPlainAr public static Output getZnodes(GetZnodesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:mse/getZnodes:getZnodes", TypeShape.of(GetZnodesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Mse Znodes of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.162.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.mse.MseFunctions;
+     * import com.pulumi.alicloud.mse.inputs.GetZnodesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = MseFunctions.getZnodes(GetZnodesArgs.builder()
+     *             .clusterId("example_value")
+     *             .path("/")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("mseZnodeId1", ids.applyValue(getZnodesResult -> getZnodesResult.znodes()[0].id()));
+     *         final var nameRegex = MseFunctions.getZnodes(GetZnodesArgs.builder()
+     *             .path("/")
+     *             .clusterId("example_value")
+     *             .nameRegex("^my-Znode")
+     *             .build());
+     * 
+     *         ctx.export("mseZnodeId2", nameRegex.applyValue(getZnodesResult -> getZnodesResult.znodes()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZnodes(GetZnodesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:mse/getZnodes:getZnodes", TypeShape.of(GetZnodesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Mse Znodes of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/nas/NasFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/nas/NasFunctions.java index fea27ec62e..23fc77d84e 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/nas/NasFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/nas/NasFunctions.java @@ -44,6 +44,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class NasFunctions { @@ -282,6 +283,53 @@ public static CompletableFuture getAccessGroupsPlain(GetA public static Output getAccessGroups(GetAccessGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:nas/getAccessGroups:getAccessGroups", TypeShape.of(GetAccessGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides user-available access groups. Use when you can create mount points + * + * > NOTE: Available in 1.35.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.nas.NasFunctions;
+     * import com.pulumi.alicloud.nas.inputs.GetAccessGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = NasFunctions.getAccessGroups(GetAccessGroupsArgs.builder()
+     *             .nameRegex("^foo")
+     *             .accessGroupType("Classic")
+     *             .description("tf-testAccAccessGroupsdatasource")
+     *             .build());
+     * 
+     *         ctx.export("alicloudNasAccessGroupsId", example.applyValue(getAccessGroupsResult -> getAccessGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccessGroups(GetAccessGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:nas/getAccessGroups:getAccessGroups", TypeShape.of(GetAccessGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides user-available access groups. Use when you can create mount points * @@ -356,6 +404,15 @@ public static CompletableFuture getAccessRulesPlain(GetAcc public static Output getAccessRules(GetAccessRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:nas/getAccessRules:getAccessRules", TypeShape.of(GetAccessRulesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides AccessRule available to the user. + * + * > **NOTE**: Available in 1.35.0+ + * + */ + public static Output getAccessRules(GetAccessRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:nas/getAccessRules:getAccessRules", TypeShape.of(GetAccessRulesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides AccessRule available to the user. * @@ -590,6 +647,51 @@ public static CompletableFuture getAutoSnapshotPo public static Output getAutoSnapshotPolicies(GetAutoSnapshotPoliciesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:nas/getAutoSnapshotPolicies:getAutoSnapshotPolicies", TypeShape.of(GetAutoSnapshotPoliciesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Auto Snapshot Policies available to the user. + * + * > **NOTE**: Available in v1.153.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.nas.NasFunctions;
+     * import com.pulumi.alicloud.nas.inputs.GetAutoSnapshotPoliciesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = NasFunctions.getAutoSnapshotPolicies(GetAutoSnapshotPoliciesArgs.builder()
+     *             .ids("example_value")
+     *             .build());
+     * 
+     *         ctx.export("nasAutoSnapshotPoliciesId1", ids.applyValue(getAutoSnapshotPoliciesResult -> getAutoSnapshotPoliciesResult.policies()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAutoSnapshotPolicies(GetAutoSnapshotPoliciesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:nas/getAutoSnapshotPolicies:getAutoSnapshotPolicies", TypeShape.of(GetAutoSnapshotPoliciesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Auto Snapshot Policies available to the user. * @@ -803,6 +905,62 @@ public static CompletableFuture getDataFlowsPlain(GetDataFlo public static Output getDataFlows(GetDataFlowsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:nas/getDataFlows:getDataFlows", TypeShape.of(GetDataFlowsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Nas Data Flows of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.153.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.nas.NasFunctions;
+     * import com.pulumi.alicloud.nas.inputs.GetDataFlowsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = NasFunctions.getDataFlows(GetDataFlowsArgs.builder()
+     *             .fileSystemId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("nasDataFlowId1", ids.applyValue(getDataFlowsResult -> getDataFlowsResult.flows()[0].id()));
+     *         final var status = NasFunctions.getDataFlows(GetDataFlowsArgs.builder()
+     *             .fileSystemId("example_value")
+     *             .status("Running")
+     *             .build());
+     * 
+     *         ctx.export("nasDataFlowId2", status.applyValue(getDataFlowsResult -> getDataFlowsResult.flows()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDataFlows(GetDataFlowsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:nas/getDataFlows:getDataFlows", TypeShape.of(GetDataFlowsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Nas Data Flows of the current Alibaba Cloud user. * @@ -1089,6 +1247,52 @@ public static CompletableFuture getFileSystemsPlain(GetFil public static Output getFileSystems(GetFileSystemsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:nas/getFileSystems:getFileSystems", TypeShape.of(GetFileSystemsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides FileSystems available to the user. + * + * > **NOTE**: Available in 1.35.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.nas.NasFunctions;
+     * import com.pulumi.alicloud.nas.inputs.GetFileSystemsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var fs = NasFunctions.getFileSystems(GetFileSystemsArgs.builder()
+     *             .protocolType("NFS")
+     *             .descriptionRegex(foo.description())
+     *             .build());
+     * 
+     *         ctx.export("alicloudNasFileSystemsId", fs.applyValue(getFileSystemsResult -> getFileSystemsResult.systems()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getFileSystems(GetFileSystemsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:nas/getFileSystems:getFileSystems", TypeShape.of(GetFileSystemsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides FileSystems available to the user. * @@ -1303,7 +1507,107 @@ public static Output getFilesets(GetFilesetsArgs args, Invoke * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.alicloud.nas.NasFunctions; - * import com.pulumi.alicloud.nas.inputs.GetFilesetsArgs; + * import com.pulumi.alicloud.nas.inputs.GetFilesetsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; + * + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * final var ids = NasFunctions.getFilesets(GetFilesetsArgs.builder() + * .fileSystemId("example_value") + * .ids( + * "example_value-1", + * "example_value-2") + * .build()); + * + * ctx.export("nasFilesetId1", ids.applyValue(getFilesetsResult -> getFilesetsResult.filesets()[0].id())); + * } + * } + * } + *
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getFilesets(GetFilesetsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:nas/getFilesets:getFilesets", TypeShape.of(GetFilesetsResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Nas Filesets of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.153.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.nas.NasFunctions;
+     * import com.pulumi.alicloud.nas.inputs.GetFilesetsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = NasFunctions.getFilesets(GetFilesetsArgs.builder()
+     *             .fileSystemId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("nasFilesetId1", ids.applyValue(getFilesetsResult -> getFilesetsResult.filesets()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getFilesetsPlain(GetFilesetsPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:nas/getFilesets:getFilesets", TypeShape.of(GetFilesetsResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Nas Lifecycle Policies of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.153.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.nas.NasFunctions;
+     * import com.pulumi.alicloud.nas.inputs.GetLifecyclePoliciesArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1317,14 +1621,20 @@ public static Output getFilesets(GetFilesetsArgs args, Invoke
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var ids = NasFunctions.getFilesets(GetFilesetsArgs.builder()
+     *         final var ids = NasFunctions.getLifecyclePolicies(GetLifecyclePoliciesArgs.builder()
      *             .fileSystemId("example_value")
      *             .ids(            
-     *                 "example_value-1",
-     *                 "example_value-2")
+     *                 "my-LifecyclePolicy-1",
+     *                 "my-LifecyclePolicy-2")
      *             .build());
      * 
-     *         ctx.export("nasFilesetId1", ids.applyValue(getFilesetsResult -> getFilesetsResult.filesets()[0].id()));
+     *         ctx.export("nasLifecyclePolicyId1", ids.applyValue(getLifecyclePoliciesResult -> getLifecyclePoliciesResult.policies()[0].id()));
+     *         final var nameRegex = NasFunctions.getLifecyclePolicies(GetLifecyclePoliciesArgs.builder()
+     *             .fileSystemId("example_value")
+     *             .nameRegex("^my-LifecyclePolicy")
+     *             .build());
+     * 
+     *         ctx.export("nasLifecyclePolicyId2", nameRegex.applyValue(getLifecyclePoliciesResult -> getLifecyclePoliciesResult.policies()[0].id()));
      *     }
      * }
      * }
@@ -1332,8 +1642,8 @@ public static Output getFilesets(GetFilesetsArgs args, Invoke
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getFilesetsPlain(GetFilesetsPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("alicloud:nas/getFilesets:getFilesets", TypeShape.of(GetFilesetsResult.class), args, Utilities.withVersion(options));
+    public static Output getLifecyclePolicies(GetLifecyclePoliciesArgs args) {
+        return getLifecyclePolicies(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Nas Lifecycle Policies of the current Alibaba Cloud user.
@@ -1388,8 +1698,8 @@ public static CompletableFuture getFilesetsPlain(GetFilesetsP
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getLifecyclePolicies(GetLifecyclePoliciesArgs args) {
-        return getLifecyclePolicies(args, InvokeOptions.Empty);
+    public static CompletableFuture getLifecyclePoliciesPlain(GetLifecyclePoliciesPlainArgs args) {
+        return getLifecyclePoliciesPlain(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Nas Lifecycle Policies of the current Alibaba Cloud user.
@@ -1444,8 +1754,8 @@ public static Output getLifecyclePolicies(GetLifecyc
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getLifecyclePoliciesPlain(GetLifecyclePoliciesPlainArgs args) {
-        return getLifecyclePoliciesPlain(args, InvokeOptions.Empty);
+    public static Output getLifecyclePolicies(GetLifecyclePoliciesArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("alicloud:nas/getLifecyclePolicies:getLifecyclePolicies", TypeShape.of(GetLifecyclePoliciesResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides the Nas Lifecycle Policies of the current Alibaba Cloud user.
@@ -1500,7 +1810,7 @@ public static CompletableFuture getLifecyclePolicies
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getLifecyclePolicies(GetLifecyclePoliciesArgs args, InvokeOptions options) {
+    public static Output getLifecyclePolicies(GetLifecyclePoliciesArgs args, InvokeOutputOptions options) {
         return Deployment.getInstance().invoke("alicloud:nas/getLifecyclePolicies:getLifecyclePolicies", TypeShape.of(GetLifecyclePoliciesResult.class), args, Utilities.withVersion(options));
     }
     /**
@@ -1697,6 +2007,52 @@ public static CompletableFuture getMountTargetsPlain(GetM
     public static Output getMountTargets(GetMountTargetsArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("alicloud:nas/getMountTargets:getMountTargets", TypeShape.of(GetMountTargetsResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * This data source provides MountTargets available to the user.
+     * 
+     * > **NOTE**: Available in 1.35.0+
+     * 
+     * ## Example Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.nas.NasFunctions;
+     * import com.pulumi.alicloud.nas.inputs.GetMountTargetsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = NasFunctions.getMountTargets(GetMountTargetsArgs.builder()
+     *             .fileSystemId("1a2sc4d")
+     *             .accessGroupName("tf-testAccNasConfig")
+     *             .build());
+     * 
+     *         ctx.export("theFirstMountTargetDomain", example.applyValue(getMountTargetsResult -> getMountTargetsResult.targets()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getMountTargets(GetMountTargetsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:nas/getMountTargets:getMountTargets", TypeShape.of(GetMountTargetsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides MountTargets available to the user. * @@ -1884,6 +2240,53 @@ public static CompletableFuture getProtocolsPlain(GetProtoco public static Output getProtocols(GetProtocolsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:nas/getProtocols:getProtocols", TypeShape.of(GetProtocolsResult.class), args, Utilities.withVersion(options)); } + /** + * Provide a data source to retrieve the type of protocol used to create NAS file system. + * + * > **NOTE:** Available in 1.42.0 + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.nas.NasFunctions;
+     * import com.pulumi.alicloud.nas.inputs.GetProtocolsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = NasFunctions.getProtocols(GetProtocolsArgs.builder()
+     *             .type("Performance")
+     *             .zoneId("cn-beijing-e")
+     *             .outputFile("protocols.txt")
+     *             .build());
+     * 
+     *         ctx.export("nasProtocolsProtocol", default_.protocols()[0]);
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getProtocols(GetProtocolsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:nas/getProtocols:getProtocols", TypeShape.of(GetProtocolsResult.class), args, Utilities.withVersion(options)); + } /** * Provide a data source to retrieve the type of protocol used to create NAS file system. * @@ -2161,6 +2564,52 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:nas/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can enable NAS service automatically. If the service has been enabled, it will return `Opened`. + * + * For information about NAS and how to use it, see [What is NAS](https://www.alibabacloud.com/help/product/27516.htm). + * + * > **NOTE:** Available in v1.97.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.nas.NasFunctions;
+     * import com.pulumi.alicloud.nas.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = NasFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:nas/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can enable NAS service automatically. If the service has been enabled, it will return `Opened`. * @@ -2457,6 +2906,56 @@ public static CompletableFuture getSnapshotsPlain(GetSnapsho public static Output getSnapshots(GetSnapshotsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:nas/getSnapshots:getSnapshots", TypeShape.of(GetSnapshotsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Nas Snapshots of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.152.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.nas.NasFunctions;
+     * import com.pulumi.alicloud.nas.inputs.GetSnapshotsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = NasFunctions.getSnapshots();
+     * 
+     *         ctx.export("nasSnapshotId1", ids.applyValue(getSnapshotsResult -> getSnapshotsResult.snapshots()[0].id()));
+     *         final var nameRegex = NasFunctions.getSnapshots(GetSnapshotsArgs.builder()
+     *             .nameRegex("^my-Snapshot")
+     *             .build());
+     * 
+     *         ctx.export("nasSnapshotId2", nameRegex.applyValue(getSnapshotsResult -> getSnapshotsResult.snapshots()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSnapshots(GetSnapshotsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:nas/getSnapshots:getSnapshots", TypeShape.of(GetSnapshotsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Nas Snapshots of the current Alibaba Cloud user. * @@ -2722,6 +3221,49 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:nas/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * Provide a data source to retrieve the type of zone used to create NAS file system. + * + * > **NOTE:** Available in v1.140.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.nas.NasFunctions;
+     * import com.pulumi.alicloud.nas.inputs.GetZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = NasFunctions.getZones();
+     * 
+     *         ctx.export("alicloudNasZonesId", default_.zones()[0].zoneId());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:nas/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * Provide a data source to retrieve the type of zone used to create NAS file system. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/nlb/NlbFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/nlb/NlbFunctions.java index e38ec71af8..081540eb7d 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/nlb/NlbFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/nlb/NlbFunctions.java @@ -26,6 +26,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class NlbFunctions { @@ -264,6 +265,53 @@ public static CompletableFuture getListenersPlain(GetListene public static Output getListeners(GetListenersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:nlb/getListeners:getListeners", TypeShape.of(GetListenersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Nlb Listeners of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.191.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.nlb.NlbFunctions;
+     * import com.pulumi.alicloud.nlb.inputs.GetListenersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = NlbFunctions.getListeners(GetListenersArgs.builder()
+     *             .ids("example_value")
+     *             .build());
+     * 
+     *         ctx.export("alicloudNlbListenerId1", ids.applyValue(getListenersResult -> getListenersResult.listeners()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getListeners(GetListenersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:nlb/getListeners:getListeners", TypeShape.of(GetListenersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Nlb Listeners of the current Alibaba Cloud user. * @@ -571,6 +619,58 @@ public static CompletableFuture getLoadBalancersPlain(Ge public static Output getLoadBalancers(GetLoadBalancersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:nlb/getLoadBalancers:getLoadBalancers", TypeShape.of(GetLoadBalancersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Nlb Load Balancers of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.191.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.nlb.NlbFunctions;
+     * import com.pulumi.alicloud.nlb.inputs.GetLoadBalancersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = NlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("nlbLoadBalancerId1", ids.applyValue(getLoadBalancersResult -> getLoadBalancersResult.balancers()[0].id()));
+     *         final var nameRegex = NlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
+     *             .nameRegex("^my-LoadBalancer")
+     *             .build());
+     * 
+     *         ctx.export("nlbLoadBalancerId2", nameRegex.applyValue(getLoadBalancersResult -> getLoadBalancersResult.balancers()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getLoadBalancers(GetLoadBalancersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:nlb/getLoadBalancers:getLoadBalancers", TypeShape.of(GetLoadBalancersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Nlb Load Balancers of the current Alibaba Cloud user. * @@ -873,6 +973,56 @@ public static CompletableFuture getSecurityPoliciesPl public static Output getSecurityPolicies(GetSecurityPoliciesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:nlb/getSecurityPolicies:getSecurityPolicies", TypeShape.of(GetSecurityPoliciesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Nlb Security Policies of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.187.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.nlb.NlbFunctions;
+     * import com.pulumi.alicloud.nlb.inputs.GetSecurityPoliciesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = NlbFunctions.getSecurityPolicies();
+     * 
+     *         ctx.export("nlbSecurityPolicyId1", ids.applyValue(getSecurityPoliciesResult -> getSecurityPoliciesResult.policies()[0].id()));
+     *         final var nameRegex = NlbFunctions.getSecurityPolicies(GetSecurityPoliciesArgs.builder()
+     *             .nameRegex("^my-SecurityPolicy")
+     *             .build());
+     * 
+     *         ctx.export("nlbSecurityPolicyId2", nameRegex.applyValue(getSecurityPoliciesResult -> getSecurityPoliciesResult.policies()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSecurityPolicies(GetSecurityPoliciesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:nlb/getSecurityPolicies:getSecurityPolicies", TypeShape.of(GetSecurityPoliciesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Nlb Security Policies of the current Alibaba Cloud user. * @@ -1158,6 +1308,53 @@ public static CompletableFuture getServer public static Output getServerGroupServerAttachments(GetServerGroupServerAttachmentsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:nlb/getServerGroupServerAttachments:getServerGroupServerAttachments", TypeShape.of(GetServerGroupServerAttachmentsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Nlb Server Group Server Attachments of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.192.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.nlb.NlbFunctions;
+     * import com.pulumi.alicloud.nlb.inputs.GetServerGroupServerAttachmentsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = NlbFunctions.getServerGroupServerAttachments(GetServerGroupServerAttachmentsArgs.builder()
+     *             .ids("example_value")
+     *             .build());
+     * 
+     *         ctx.export("nlbServerGroupServerAttachmentId1", ids.applyValue(getServerGroupServerAttachmentsResult -> getServerGroupServerAttachmentsResult.attachments()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServerGroupServerAttachments(GetServerGroupServerAttachmentsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:nlb/getServerGroupServerAttachments:getServerGroupServerAttachments", TypeShape.of(GetServerGroupServerAttachmentsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Nlb Server Group Server Attachments of the current Alibaba Cloud user. * @@ -1455,6 +1652,56 @@ public static CompletableFuture getServerGroupsPlain(GetS public static Output getServerGroups(GetServerGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:nlb/getServerGroups:getServerGroups", TypeShape.of(GetServerGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Nlb Server Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.186.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.nlb.NlbFunctions;
+     * import com.pulumi.alicloud.nlb.inputs.GetServerGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = NlbFunctions.getServerGroups();
+     * 
+     *         ctx.export("nlbServerGroupId1", ids.applyValue(getServerGroupsResult -> getServerGroupsResult.groups()[0].id()));
+     *         final var nameRegex = NlbFunctions.getServerGroups(GetServerGroupsArgs.builder()
+     *             .nameRegex("^my-ServerGroup")
+     *             .build());
+     * 
+     *         ctx.export("nlbServerGroupId2", nameRegex.applyValue(getServerGroupsResult -> getServerGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServerGroups(GetServerGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:nlb/getServerGroups:getServerGroups", TypeShape.of(GetServerGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Nlb Server Groups of the current Alibaba Cloud user. * @@ -1730,6 +1977,51 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:nlb/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the available zones with the Network Load Balancer (NLB) Instance of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.191.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.nlb.NlbFunctions;
+     * import com.pulumi.alicloud.nlb.inputs.GetZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = NlbFunctions.getZones();
+     * 
+     *         ctx.export("firstNlbZonesId", example.applyValue(getZonesResult -> getZonesResult.zones()[0].zoneId()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:nlb/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the available zones with the Network Load Balancer (NLB) Instance of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/ocean/OceanFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/ocean/OceanFunctions.java index ab45c733d4..e87544496b 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/ocean/OceanFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/ocean/OceanFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class OceanFunctions { @@ -264,6 +265,56 @@ public static CompletableFuture getBaseInstancesPlain(Ge public static Output getBaseInstances(GetBaseInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ocean/getBaseInstances:getBaseInstances", TypeShape.of(GetBaseInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ocean Base Instances of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.203.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ocean.OceanFunctions;
+     * import com.pulumi.alicloud.ocean.inputs.GetBaseInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = OceanFunctions.getBaseInstances();
+     * 
+     *         ctx.export("oceanBaseInstanceId1", ids.applyValue(getBaseInstancesResult -> getBaseInstancesResult.instances()[0].id()));
+     *         final var nameRegex = OceanFunctions.getBaseInstances(GetBaseInstancesArgs.builder()
+     *             .nameRegex("^my-Instance")
+     *             .build());
+     * 
+     *         ctx.export("oceanBaseInstanceId2", nameRegex.applyValue(getBaseInstancesResult -> getBaseInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBaseInstances(GetBaseInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ocean/getBaseInstances:getBaseInstances", TypeShape.of(GetBaseInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ocean Base Instances of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/oos/OosFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/oos/OosFunctions.java index f5ff6b4ad5..6bf034d330 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/oos/OosFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/oos/OosFunctions.java @@ -32,6 +32,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class OosFunctions { @@ -203,6 +204,62 @@ public static CompletableFuture getApplicationGroups public static Output getApplicationGroups(GetApplicationGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:oos/getApplicationGroups:getApplicationGroups", TypeShape.of(GetApplicationGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Oos Application Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.146.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.oos.OosFunctions;
+     * import com.pulumi.alicloud.oos.inputs.GetApplicationGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = OosFunctions.getApplicationGroups(GetApplicationGroupsArgs.builder()
+     *             .applicationName("example_value")
+     *             .ids(            
+     *                 "my-ApplicationGroup-1",
+     *                 "my-ApplicationGroup-2")
+     *             .build());
+     * 
+     *         ctx.export("oosApplicationGroupId1", ids.applyValue(getApplicationGroupsResult -> getApplicationGroupsResult.groups()[0].id()));
+     *         final var nameRegex = OosFunctions.getApplicationGroups(GetApplicationGroupsArgs.builder()
+     *             .applicationName("example_value")
+     *             .nameRegex("^my-ApplicationGroup")
+     *             .build());
+     * 
+     *         ctx.export("oosApplicationGroupId2", nameRegex.applyValue(getApplicationGroupsResult -> getApplicationGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getApplicationGroups(GetApplicationGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:oos/getApplicationGroups:getApplicationGroups", TypeShape.of(GetApplicationGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Oos Application Groups of the current Alibaba Cloud user. * @@ -509,6 +566,56 @@ public static CompletableFuture getApplicationsPlain(GetA public static Output getApplications(GetApplicationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:oos/getApplications:getApplications", TypeShape.of(GetApplicationsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Oos Applications of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.145.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.oos.OosFunctions;
+     * import com.pulumi.alicloud.oos.inputs.GetApplicationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = OosFunctions.getApplications();
+     * 
+     *         ctx.export("oosApplicationId1", ids.applyValue(getApplicationsResult -> getApplicationsResult.applications()[0].id()));
+     *         final var nameRegex = OosFunctions.getApplications(GetApplicationsArgs.builder()
+     *             .nameRegex("^my-Application")
+     *             .build());
+     * 
+     *         ctx.export("oosApplicationId2", nameRegex.applyValue(getApplicationsResult -> getApplicationsResult.applications()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getApplications(GetApplicationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:oos/getApplications:getApplications", TypeShape.of(GetApplicationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Oos Applications of the current Alibaba Cloud user. * @@ -799,6 +906,54 @@ public static CompletableFuture getExecutionsPlain(GetExecu public static Output getExecutions(GetExecutionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:oos/getExecutions:getExecutions", TypeShape.of(GetExecutionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of OOS Executions in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in v1.93.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.oos.OosFunctions;
+     * import com.pulumi.alicloud.oos.inputs.GetExecutionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var example = OosFunctions.getExecutions(GetExecutionsArgs.builder()
+     *             .ids("execution_id")
+     *             .templateName("name")
+     *             .status("Success")
+     *             .build());
+     * 
+     *         ctx.export("firstExecutionId", example.applyValue(getExecutionsResult -> getExecutionsResult.executions()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getExecutions(GetExecutionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:oos/getExecutions:getExecutions", TypeShape.of(GetExecutionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of OOS Executions in an Alibaba Cloud account according to the specified filters. * @@ -1182,6 +1337,73 @@ public static CompletableFuture getParametersPlain(GetParam public static Output getParameters(GetParametersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:oos/getParameters:getParameters", TypeShape.of(GetParametersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Oos Parameters of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.147.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.oos.OosFunctions;
+     * import com.pulumi.alicloud.oos.inputs.GetParametersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = OosFunctions.getParameters(GetParametersArgs.builder()
+     *             .ids("my-Parameter")
+     *             .build());
+     * 
+     *         ctx.export("oosParameterId1", ids.applyValue(getParametersResult -> getParametersResult.parameters()[0].id()));
+     *         final var nameRegex = OosFunctions.getParameters(GetParametersArgs.builder()
+     *             .nameRegex("^my-Parameter")
+     *             .build());
+     * 
+     *         ctx.export("oosParameterId2", nameRegex.applyValue(getParametersResult -> getParametersResult.parameters()[0].id()));
+     *         final var resourceGroupId = OosFunctions.getParameters(GetParametersArgs.builder()
+     *             .ids("my-Parameter")
+     *             .resourceGroupId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("oosParameterId3", resourceGroupId.applyValue(getParametersResult -> getParametersResult.parameters()[0].id()));
+     *         final var tags = OosFunctions.getParameters(GetParametersArgs.builder()
+     *             .ids("my-Parameter")
+     *             .tags(Map.ofEntries(
+     *                 Map.entry("Created", "TF"),
+     *                 Map.entry("For", "OosParameter")
+     *             ))
+     *             .build());
+     * 
+     *         ctx.export("oosParameterId4", tags.applyValue(getParametersResult -> getParametersResult.parameters()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getParameters(GetParametersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:oos/getParameters:getParameters", TypeShape.of(GetParametersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Oos Parameters of the current Alibaba Cloud user. * @@ -1294,6 +1516,15 @@ public static CompletableFuture getPatchBaselinesPlain( public static Output getPatchBaselines(GetPatchBaselinesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:oos/getPatchBaselines:getPatchBaselines", TypeShape.of(GetPatchBaselinesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Oos Patch Baselines of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.146.0+. + * + */ + public static Output getPatchBaselines(GetPatchBaselinesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:oos/getPatchBaselines:getPatchBaselines", TypeShape.of(GetPatchBaselinesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Oos Patch Baselines of the current Alibaba Cloud user. * @@ -1663,6 +1894,78 @@ public static CompletableFuture getSecretParametersPl public static Output getSecretParameters(GetSecretParametersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:oos/getSecretParameters:getSecretParameters", TypeShape.of(GetSecretParametersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Oos Secret Parameters of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.147.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.oos.SecretParameter;
+     * import com.pulumi.alicloud.oos.SecretParameterArgs;
+     * import com.pulumi.alicloud.oos.OosFunctions;
+     * import com.pulumi.alicloud.oos.inputs.GetSecretParametersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("terraform-example");
+     *         var default_ = new SecretParameter("default", SecretParameterArgs.builder()
+     *             .secretParameterName(name)
+     *             .value("tf-testacc-oos_secret_parameter")
+     *             .type("Secret")
+     *             .description(name)
+     *             .constraints("""
+     *   {
+     *     "AllowedValues": [
+     *         "tf-testacc-oos_secret_parameter"
+     *     ],
+     *     "AllowedPattern": "tf-testacc-oos_secret_parameter",
+     *     "MinLength": 1,
+     *     "MaxLength": 100
+     *   }
+     *             """)
+     *             .tags(Map.ofEntries(
+     *                 Map.entry("Created", "TF"),
+     *                 Map.entry("For", "SecretParameter")
+     *             ))
+     *             .build());
+     * 
+     *         final var ids = OosFunctions.getSecretParameters(GetSecretParametersArgs.builder()
+     *             .ids(default_.id())
+     *             .build());
+     * 
+     *         ctx.export("oosSecretParameterId0", ids.applyValue(getSecretParametersResult -> getSecretParametersResult).applyValue(ids -> ids.applyValue(getSecretParametersResult -> getSecretParametersResult.parameters()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSecretParameters(GetSecretParametersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:oos/getSecretParameters:getSecretParameters", TypeShape.of(GetSecretParametersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Oos Secret Parameters of the current Alibaba Cloud user. * @@ -1960,6 +2263,51 @@ public static CompletableFuture getStateConfigurat public static Output getStateConfigurations(GetStateConfigurationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:oos/getStateConfigurations:getStateConfigurations", TypeShape.of(GetStateConfigurationsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Oos State Configurations of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.147.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.oos.OosFunctions;
+     * import com.pulumi.alicloud.oos.inputs.GetStateConfigurationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = OosFunctions.getStateConfigurations();
+     * 
+     *         ctx.export("oosStateConfigurationId1", ids.applyValue(getStateConfigurationsResult -> getStateConfigurationsResult.configurations()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getStateConfigurations(GetStateConfigurationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:oos/getStateConfigurations:getStateConfigurations", TypeShape.of(GetStateConfigurationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Oos State Configurations of the current Alibaba Cloud user. * @@ -2265,6 +2613,58 @@ public static CompletableFuture getTemplatesPlain(GetTemplat public static Output getTemplates(GetTemplatesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:oos/getTemplates:getTemplates", TypeShape.of(GetTemplatesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of OOS Templates in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in v1.92.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.oos.OosFunctions;
+     * import com.pulumi.alicloud.oos.inputs.GetTemplatesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var example = OosFunctions.getTemplates(GetTemplatesArgs.builder()
+     *             .nameRegex("test")
+     *             .tags(Map.ofEntries(
+     *                 Map.entry("Created", "TF"),
+     *                 Map.entry("For", "template Test")
+     *             ))
+     *             .shareType("Private")
+     *             .hasTrigger(false)
+     *             .build());
+     * 
+     *         ctx.export("firstTemplateName", example.applyValue(getTemplatesResult -> getTemplatesResult.templates()[0].templateName()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTemplates(GetTemplatesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:oos/getTemplates:getTemplates", TypeShape.of(GetTemplatesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of OOS Templates in an Alibaba Cloud account according to the specified filters. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/opensearch/OpensearchFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/opensearch/OpensearchFunctions.java index 838ca01a6c..43ef4ea94a 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/opensearch/OpensearchFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/opensearch/OpensearchFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class OpensearchFunctions { @@ -329,6 +330,69 @@ public static CompletableFuture getAppGroupsPlain(GetAppGrou public static Output getAppGroups(GetAppGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:opensearch/getAppGroups:getAppGroups", TypeShape.of(GetAppGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Open Search App Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.136.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.opensearch.AppGroup;
+     * import com.pulumi.alicloud.opensearch.AppGroupArgs;
+     * import com.pulumi.alicloud.opensearch.inputs.AppGroupQuotaArgs;
+     * import com.pulumi.alicloud.opensearch.OpensearchFunctions;
+     * import com.pulumi.alicloud.opensearch.inputs.GetAppGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("tf_testacc");
+     *         var defaultAppGroup = new AppGroup("defaultAppGroup", AppGroupArgs.builder()
+     *             .appGroupName(name)
+     *             .paymentType("PayAsYouGo")
+     *             .type("standard")
+     *             .quota(AppGroupQuotaArgs.builder()
+     *                 .docSize(1)
+     *                 .computeResource(20)
+     *                 .spec("opensearch.share.common")
+     *                 .build())
+     *             .build());
+     * 
+     *         final var default = OpensearchFunctions.getAppGroups(GetAppGroupsArgs.builder()
+     *             .ids(defaultAppGroup.id())
+     *             .build());
+     * 
+     *         ctx.export("appGroups", default_.applyValue(default_ -> default_.groups()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAppGroups(GetAppGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:opensearch/getAppGroups:getAppGroups", TypeShape.of(GetAppGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Open Search App Groups of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/oss/OssFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/oss/OssFunctions.java index f833975de2..6ea849a986 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/oss/OssFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/oss/OssFunctions.java @@ -26,6 +26,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class OssFunctions { @@ -161,6 +162,50 @@ public static CompletableFuture getBucketObjectsPlain(Ge public static Output getBucketObjects(GetBucketObjectsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:oss/getBucketObjects:getBucketObjects", TypeShape.of(GetBucketObjectsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the objects of an OSS bucket. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.oss.OssFunctions;
+     * import com.pulumi.alicloud.oss.inputs.GetBucketObjectsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var bucketObjectsDs = OssFunctions.getBucketObjects(GetBucketObjectsArgs.builder()
+     *             .bucketName("sample_bucket")
+     *             .keyRegex("sample/sample_object.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstObjectKey", bucketObjectsDs.applyValue(getBucketObjectsResult -> getBucketObjectsResult.objects()[0].key()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBucketObjects(GetBucketObjectsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:oss/getBucketObjects:getBucketObjects", TypeShape.of(GetBucketObjectsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the objects of an OSS bucket. * @@ -420,6 +465,49 @@ public static CompletableFuture getBucketsPlain(GetBucketsPlai public static Output getBuckets(GetBucketsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:oss/getBuckets:getBuckets", TypeShape.of(GetBucketsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the OSS buckets of the current Alibaba Cloud user. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.oss.OssFunctions;
+     * import com.pulumi.alicloud.oss.inputs.GetBucketsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ossBucketsDs = OssFunctions.getBuckets(GetBucketsArgs.builder()
+     *             .nameRegex("sample_oss_bucket")
+     *             .build());
+     * 
+     *         ctx.export("firstOssBucketName", ossBucketsDs.applyValue(getBucketsResult -> getBucketsResult.buckets()[0].name()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBuckets(GetBucketsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:oss/getBuckets:getBuckets", TypeShape.of(GetBucketsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the OSS buckets of the current Alibaba Cloud user. * @@ -656,6 +744,55 @@ public static Output getInstanceAttachments(GetIns * */ @Deprecated /* alicloud.oss.getInstanceAttachments has been deprecated in favor of alicloud.ots.getInstanceAttachments */ + public static Output getInstanceAttachments(GetInstanceAttachmentsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:oss/getInstanceAttachments:getInstanceAttachments", TypeShape.of(GetInstanceAttachmentsResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the ots instance attachments of the current Alibaba Cloud user. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ots.OtsFunctions;
+     * import com.pulumi.alicloud.ots.inputs.GetInstanceAttachmentsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var attachmentsDs = OtsFunctions.getInstanceAttachments(GetInstanceAttachmentsArgs.builder()
+     *             .instanceName("sample-instance")
+     *             .nameRegex("testvpc")
+     *             .outputFile("attachments.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstOtsAttachmentId", attachmentsDs.applyValue(getInstanceAttachmentsResult -> getInstanceAttachmentsResult.attachments()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * @deprecated + * alicloud.oss.getInstanceAttachments has been deprecated in favor of alicloud.ots.getInstanceAttachments + * + */ + @Deprecated /* alicloud.oss.getInstanceAttachments has been deprecated in favor of alicloud.ots.getInstanceAttachments */ public static CompletableFuture getInstanceAttachmentsPlain(GetInstanceAttachmentsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:oss/getInstanceAttachments:getInstanceAttachments", TypeShape.of(GetInstanceAttachmentsResult.class), args, Utilities.withVersion(options)); } @@ -950,6 +1087,55 @@ public static Output getInstances(GetInstancesArgs args, Inv * */ @Deprecated /* alicloud.oss.getInstances has been deprecated in favor of alicloud.ots.getInstances */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:oss/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the ots instances of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.40.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ots.OtsFunctions;
+     * import com.pulumi.alicloud.ots.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var instancesDs = OtsFunctions.getInstances(GetInstancesArgs.builder()
+     *             .outputFile("instances.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstInstanceId", instancesDs.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * @deprecated + * alicloud.oss.getInstances has been deprecated in favor of alicloud.ots.getInstances + * + */ + @Deprecated /* alicloud.oss.getInstances has been deprecated in favor of alicloud.ots.getInstances */ public static CompletableFuture getInstancesPlain(GetInstancesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:oss/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } @@ -1183,6 +1369,52 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:oss/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can enable OSS service automatically. If the service has been enabled, it will return `Opened`. + * + * For information about OSS and how to use it, see [What is OSS](https://www.alibabacloud.com/help/product/31815.htm). + * + * > **NOTE:** Available in v1.97.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.oss.OssFunctions;
+     * import com.pulumi.alicloud.oss.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = OssFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:oss/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can enable OSS service automatically. If the service has been enabled, it will return `Opened`. * @@ -1286,6 +1518,21 @@ public static Output getTables(GetTablesArgs args, InvokeOption * */ @Deprecated /* alicloud.oss.getTables has been deprecated in favor of alicloud.ots.getTables */ + public static Output getTables(GetTablesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:oss/getTables:getTables", TypeShape.of(GetTablesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the ots tables of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.40.0+. + * + * ## Example Usage + * + * @deprecated + * alicloud.oss.getTables has been deprecated in favor of alicloud.ots.getTables + * + */ + @Deprecated /* alicloud.oss.getTables has been deprecated in favor of alicloud.ots.getTables */ public static CompletableFuture getTablesPlain(GetTablesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:oss/getTables:getTables", TypeShape.of(GetTablesResult.class), args, Utilities.withVersion(options)); } diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/ots/OtsFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/ots/OtsFunctions.java index 43a772f696..04c3044320 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/ots/OtsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/ots/OtsFunctions.java @@ -29,6 +29,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class OtsFunctions { @@ -167,6 +168,51 @@ public static CompletableFuture getInstanceAttachm public static Output getInstanceAttachments(GetInstanceAttachmentsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ots/getInstanceAttachments:getInstanceAttachments", TypeShape.of(GetInstanceAttachmentsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the ots instance attachments of the current Alibaba Cloud user. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ots.OtsFunctions;
+     * import com.pulumi.alicloud.ots.inputs.GetInstanceAttachmentsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var attachmentsDs = OtsFunctions.getInstanceAttachments(GetInstanceAttachmentsArgs.builder()
+     *             .instanceName("sample-instance")
+     *             .nameRegex("testvpc")
+     *             .outputFile("attachments.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstOtsAttachmentId", attachmentsDs.applyValue(getInstanceAttachmentsResult -> getInstanceAttachmentsResult.attachments()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceAttachments(GetInstanceAttachmentsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ots/getInstanceAttachments:getInstanceAttachments", TypeShape.of(GetInstanceAttachmentsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the ots instance attachments of the current Alibaba Cloud user. * @@ -437,6 +483,51 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ots/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the ots instances of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.40.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ots.OtsFunctions;
+     * import com.pulumi.alicloud.ots.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var instancesDs = OtsFunctions.getInstances(GetInstancesArgs.builder()
+     *             .outputFile("instances.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstInstanceId", instancesDs.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ots/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the ots instances of the current Alibaba Cloud user. * @@ -515,6 +606,17 @@ public static CompletableFuture getSearchIndexesPlain(Ge public static Output getSearchIndexes(GetSearchIndexesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ots/getSearchIndexes:getSearchIndexes", TypeShape.of(GetSearchIndexesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the ots search index of the current Alibaba Cloud user. + * + * For information about OTS search index and how to use it, see [Search index overview](https://www.alibabacloud.com/help/en/tablestore/latest/search-index-overview). + * + * > **NOTE:** Available in v1.187.0+. + * + */ + public static Output getSearchIndexes(GetSearchIndexesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ots/getSearchIndexes:getSearchIndexes", TypeShape.of(GetSearchIndexesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the ots search index of the current Alibaba Cloud user. * @@ -565,6 +667,19 @@ public static CompletableFuture getSecondaryIndexesPl public static Output getSecondaryIndexes(GetSecondaryIndexesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ots/getSecondaryIndexes:getSecondaryIndexes", TypeShape.of(GetSecondaryIndexesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the ots secondary index of the current Alibaba Cloud user. + * + * For information about OTS secondary index and how to use it, see [Secondary index overview](https://www.alibabacloud.com/help/en/tablestore/latest/secondary-index-overview). + * + * > **NOTE:** Available in v1.187.0+. + * + * ## Example Usage + * + */ + public static Output getSecondaryIndexes(GetSecondaryIndexesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ots/getSecondaryIndexes:getSecondaryIndexes", TypeShape.of(GetSecondaryIndexesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the ots secondary index of the current Alibaba Cloud user. * @@ -808,6 +923,52 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ots/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can enable Table Staore service automatically. If the service has been enabled, it will return `Opened`. + * + * For information about Table Staore and how to use it, see [What is Table Staore](https://www.alibabacloud.com/help/product/27278.htm). + * + * > **NOTE:** Available in v1.97.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ots.OtsFunctions;
+     * import com.pulumi.alicloud.ots.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = OtsFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ots/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can enable Table Staore service automatically. If the service has been enabled, it will return `Opened`. * @@ -887,6 +1048,17 @@ public static CompletableFuture getTablesPlain(GetTablesPlainAr public static Output getTables(GetTablesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ots/getTables:getTables", TypeShape.of(GetTablesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the ots tables of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.40.0+. + * + * ## Example Usage + * + */ + public static Output getTables(GetTablesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ots/getTables:getTables", TypeShape.of(GetTablesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the ots tables of the current Alibaba Cloud user. * @@ -1048,6 +1220,56 @@ public static CompletableFuture getTunnelsPlain(GetTunnelsPlai public static Output getTunnels(GetTunnelsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ots/getTunnels:getTunnels", TypeShape.of(GetTunnelsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the ots tunnels of the current Alibaba Cloud user. + * + * For information about OTS tunnel and how to use it, see [Tunnel overview](https://www.alibabacloud.com/help/en/tablestore/latest/tunnel-service-overview). + * + * > **NOTE:** Available in v1.172.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ots.OtsFunctions;
+     * import com.pulumi.alicloud.ots.inputs.GetTunnelsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var tunnelsDs = OtsFunctions.getTunnels(GetTunnelsArgs.builder()
+     *             .instanceName("sample-instance")
+     *             .tableName("sample-table")
+     *             .nameRegex("sample-tunnel")
+     *             .outputFile("tunnels.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstTunnelId", tunnelsDs.applyValue(getTunnelsResult -> getTunnelsResult.tunnels()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTunnels(GetTunnelsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ots/getTunnels:getTunnels", TypeShape.of(GetTunnelsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the ots tunnels of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/polardb/PolardbFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/polardb/PolardbFunctions.java index 78a7a5cee3..b0d7f81126 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/polardb/PolardbFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/polardb/PolardbFunctions.java @@ -32,6 +32,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class PolardbFunctions { @@ -329,6 +330,104 @@ public static CompletableFuture getAccountsPlain(GetAccountsP public static Output getAccounts(GetAccountsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:polardb/getAccounts:getAccounts", TypeShape.of(GetAccountsResult.class), args, Utilities.withVersion(options)); } + /** + * The `alicloud.polardb.getAccounts` data source provides a collection of PolarDB cluster database account available in Alibaba Cloud account. + * Filters support regular expression for the account name, searches by clusterId. + * + * > **NOTE:** Available since v1.70.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.polardb.PolardbFunctions;
+     * import com.pulumi.alicloud.polardb.inputs.GetNodeClassesArgs;
+     * import com.pulumi.alicloud.vpc.Network;
+     * import com.pulumi.alicloud.vpc.NetworkArgs;
+     * import com.pulumi.alicloud.vpc.Switch;
+     * import com.pulumi.alicloud.vpc.SwitchArgs;
+     * import com.pulumi.alicloud.polardb.Cluster;
+     * import com.pulumi.alicloud.polardb.ClusterArgs;
+     * import com.pulumi.alicloud.polardb.inputs.GetClustersArgs;
+     * import com.pulumi.alicloud.polardb.Account;
+     * import com.pulumi.alicloud.polardb.AccountArgs;
+     * import com.pulumi.alicloud.polardb.inputs.GetAccountsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var this = PolardbFunctions.getNodeClasses(GetNodeClassesArgs.builder()
+     *             .dbType("MySQL")
+     *             .dbVersion("8.0")
+     *             .payType("PostPaid")
+     *             .category("Normal")
+     *             .build());
+     * 
+     *         var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
+     *             .vpcName("terraform-example")
+     *             .cidrBlock("172.16.0.0/16")
+     *             .build());
+     * 
+     *         var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
+     *             .vpcId(defaultNetwork.id())
+     *             .cidrBlock("172.16.0.0/24")
+     *             .zoneId(this_.classes()[0].zoneId())
+     *             .vswitchName("terraform-example")
+     *             .build());
+     * 
+     *         var cluster = new Cluster("cluster", ClusterArgs.builder()
+     *             .dbType("MySQL")
+     *             .dbVersion("8.0")
+     *             .payType("PostPaid")
+     *             .dbNodeCount("2")
+     *             .dbNodeClass(this_.classes()[0].supportedEngines()[0].availableResources()[0].dbNodeClass())
+     *             .vswitchId(defaultSwitch.id())
+     *             .build());
+     * 
+     *         final var polardbClustersDs = PolardbFunctions.getClusters(GetClustersArgs.builder()
+     *             .descriptionRegex(cluster.description())
+     *             .status("Running")
+     *             .build());
+     * 
+     *         var account = new Account("account", AccountArgs.builder()
+     *             .dbClusterId(polardbClustersDs.applyValue(getClustersResult -> getClustersResult).applyValue(polardbClustersDs -> polardbClustersDs.applyValue(getClustersResult -> getClustersResult.clusters()[0].id())))
+     *             .accountName("tfnormal_01")
+     *             .accountPassword("Test12345")
+     *             .accountDescription("tf_account_description")
+     *             .accountType("Normal")
+     *             .build());
+     * 
+     *         final var default = PolardbFunctions.getAccounts(GetAccountsArgs.builder()
+     *             .dbClusterId(polardbClustersDs.applyValue(getClustersResult -> getClustersResult).applyValue(polardbClustersDs -> polardbClustersDs.applyValue(getClustersResult -> getClustersResult.clusters()[0].id())))
+     *             .nameRegex(account.accountName())
+     *             .build());
+     * 
+     *         ctx.export("account", default_.applyValue(default_ -> default_.accounts()[0].accountName()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccounts(GetAccountsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:polardb/getAccounts:getAccounts", TypeShape.of(GetAccountsResult.class), args, Utilities.withVersion(options)); + } /** * The `alicloud.polardb.getAccounts` data source provides a collection of PolarDB cluster database account available in Alibaba Cloud account. * Filters support regular expression for the account name, searches by clusterId. @@ -837,6 +936,88 @@ public static CompletableFuture getClustersPlain(GetClustersP public static Output getClusters(GetClustersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:polardb/getClusters:getClusters", TypeShape.of(GetClustersResult.class), args, Utilities.withVersion(options)); } + /** + * The `alicloud.polardb.getClusters` data source provides a collection of PolarDB clusters available in Alibaba Cloud account. + * Filters support regular expression for the cluster description, searches by tags, and other filters which are listed below. + * + * > **NOTE:** Available since v1.66.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.polardb.PolardbFunctions;
+     * import com.pulumi.alicloud.polardb.inputs.GetNodeClassesArgs;
+     * import com.pulumi.alicloud.vpc.Network;
+     * import com.pulumi.alicloud.vpc.NetworkArgs;
+     * import com.pulumi.alicloud.vpc.Switch;
+     * import com.pulumi.alicloud.vpc.SwitchArgs;
+     * import com.pulumi.alicloud.polardb.Cluster;
+     * import com.pulumi.alicloud.polardb.ClusterArgs;
+     * import com.pulumi.alicloud.polardb.inputs.GetClustersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var this = PolardbFunctions.getNodeClasses(GetNodeClassesArgs.builder()
+     *             .dbType("MySQL")
+     *             .dbVersion("8.0")
+     *             .payType("PostPaid")
+     *             .category("Normal")
+     *             .build());
+     * 
+     *         var default_ = new Network("default", NetworkArgs.builder()
+     *             .vpcName("terraform-example")
+     *             .cidrBlock("172.16.0.0/16")
+     *             .build());
+     * 
+     *         var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
+     *             .vpcId(default_.id())
+     *             .cidrBlock("172.16.0.0/24")
+     *             .zoneId(this_.classes()[0].zoneId())
+     *             .vswitchName("terraform-example")
+     *             .build());
+     * 
+     *         var cluster = new Cluster("cluster", ClusterArgs.builder()
+     *             .dbType("MySQL")
+     *             .dbVersion("8.0")
+     *             .payType("PostPaid")
+     *             .dbNodeCount("2")
+     *             .dbNodeClass(this_.classes()[0].supportedEngines()[0].availableResources()[0].dbNodeClass())
+     *             .vswitchId(defaultSwitch.id())
+     *             .build());
+     * 
+     *         final var polardbClustersDs = PolardbFunctions.getClusters(GetClustersArgs.builder()
+     *             .descriptionRegex(cluster.id())
+     *             .status("Running")
+     *             .build());
+     * 
+     *         ctx.export("firstPolardbClusterId", polardbClustersDs.applyValue(getClustersResult -> getClustersResult).applyValue(polardbClustersDs -> polardbClustersDs.applyValue(getClustersResult -> getClustersResult.clusters()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getClusters(GetClustersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:polardb/getClusters:getClusters", TypeShape.of(GetClustersResult.class), args, Utilities.withVersion(options)); + } /** * The `alicloud.polardb.getClusters` data source provides a collection of PolarDB clusters available in Alibaba Cloud account. * Filters support regular expression for the cluster description, searches by tags, and other filters which are listed below. @@ -1115,7 +1296,295 @@ public static CompletableFuture getDatabasesPlain(GetDatabas * The `alicloud.polardb.getDatabases` data source provides a collection of PolarDB cluster database available in Alibaba Cloud account. * Filters support regular expression for the database name, searches by clusterId. * - * > **NOTE:** Available since v1.70.0+. + * > **NOTE:** Available since v1.70.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.polardb.PolardbFunctions;
+     * import com.pulumi.alicloud.polardb.inputs.GetNodeClassesArgs;
+     * import com.pulumi.alicloud.vpc.Network;
+     * import com.pulumi.alicloud.vpc.NetworkArgs;
+     * import com.pulumi.alicloud.vpc.Switch;
+     * import com.pulumi.alicloud.vpc.SwitchArgs;
+     * import com.pulumi.alicloud.polardb.Cluster;
+     * import com.pulumi.alicloud.polardb.ClusterArgs;
+     * import com.pulumi.alicloud.polardb.inputs.GetClustersArgs;
+     * import com.pulumi.alicloud.polardb.Database;
+     * import com.pulumi.alicloud.polardb.DatabaseArgs;
+     * import com.pulumi.alicloud.polardb.inputs.GetDatabasesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var this = PolardbFunctions.getNodeClasses(GetNodeClassesArgs.builder()
+     *             .dbType("MySQL")
+     *             .dbVersion("8.0")
+     *             .payType("PostPaid")
+     *             .category("Normal")
+     *             .build());
+     * 
+     *         var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
+     *             .vpcName("terraform-example")
+     *             .cidrBlock("172.16.0.0/16")
+     *             .build());
+     * 
+     *         var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
+     *             .vpcId(defaultNetwork.id())
+     *             .cidrBlock("172.16.0.0/24")
+     *             .zoneId(this_.classes()[0].zoneId())
+     *             .vswitchName("terraform-example")
+     *             .build());
+     * 
+     *         var cluster = new Cluster("cluster", ClusterArgs.builder()
+     *             .dbType("MySQL")
+     *             .dbVersion("8.0")
+     *             .payType("PostPaid")
+     *             .dbNodeCount("2")
+     *             .dbNodeClass(this_.classes()[0].supportedEngines()[0].availableResources()[0].dbNodeClass())
+     *             .vswitchId(defaultSwitch.id())
+     *             .build());
+     * 
+     *         final var polardbClustersDs = PolardbFunctions.getClusters(GetClustersArgs.builder()
+     *             .descriptionRegex(cluster.description())
+     *             .status("Running")
+     *             .build());
+     * 
+     *         var defaultDatabase = new Database("defaultDatabase", DatabaseArgs.builder()
+     *             .dbClusterId(polardbClustersDs.applyValue(getClustersResult -> getClustersResult).applyValue(polardbClustersDs -> polardbClustersDs.applyValue(getClustersResult -> getClustersResult.clusters()[0].id())))
+     *             .dbName(polardbClustersDs.applyValue(getClustersResult -> getClustersResult).applyValue(polardbClustersDs -> String.format("tfaccountpri_%s", polardbClustersDs.applyValue(getClustersResult -> getClustersResult.clusters()[0].id()))))
+     *             .dbDescription("from terraform")
+     *             .build());
+     * 
+     *         final var default = PolardbFunctions.getDatabases(GetDatabasesArgs.builder()
+     *             .dbClusterId(polardbClustersDs.applyValue(getClustersResult -> getClustersResult).applyValue(polardbClustersDs -> polardbClustersDs.applyValue(getClustersResult -> getClustersResult.clusters()[0].id())))
+     *             .nameRegex(defaultDatabase.dbName())
+     *             .build());
+     * 
+     *         ctx.export("database", default_.applyValue(default_ -> default_.databases()[0].dbName()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDatabases(GetDatabasesArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:polardb/getDatabases:getDatabases", TypeShape.of(GetDatabasesResult.class), args, Utilities.withVersion(options)); + } + /** + * The `alicloud.polardb.getDatabases` data source provides a collection of PolarDB cluster database available in Alibaba Cloud account. + * Filters support regular expression for the database name, searches by clusterId. + * + * > **NOTE:** Available since v1.70.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.polardb.PolardbFunctions;
+     * import com.pulumi.alicloud.polardb.inputs.GetNodeClassesArgs;
+     * import com.pulumi.alicloud.vpc.Network;
+     * import com.pulumi.alicloud.vpc.NetworkArgs;
+     * import com.pulumi.alicloud.vpc.Switch;
+     * import com.pulumi.alicloud.vpc.SwitchArgs;
+     * import com.pulumi.alicloud.polardb.Cluster;
+     * import com.pulumi.alicloud.polardb.ClusterArgs;
+     * import com.pulumi.alicloud.polardb.inputs.GetClustersArgs;
+     * import com.pulumi.alicloud.polardb.Database;
+     * import com.pulumi.alicloud.polardb.DatabaseArgs;
+     * import com.pulumi.alicloud.polardb.inputs.GetDatabasesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var this = PolardbFunctions.getNodeClasses(GetNodeClassesArgs.builder()
+     *             .dbType("MySQL")
+     *             .dbVersion("8.0")
+     *             .payType("PostPaid")
+     *             .category("Normal")
+     *             .build());
+     * 
+     *         var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
+     *             .vpcName("terraform-example")
+     *             .cidrBlock("172.16.0.0/16")
+     *             .build());
+     * 
+     *         var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
+     *             .vpcId(defaultNetwork.id())
+     *             .cidrBlock("172.16.0.0/24")
+     *             .zoneId(this_.classes()[0].zoneId())
+     *             .vswitchName("terraform-example")
+     *             .build());
+     * 
+     *         var cluster = new Cluster("cluster", ClusterArgs.builder()
+     *             .dbType("MySQL")
+     *             .dbVersion("8.0")
+     *             .payType("PostPaid")
+     *             .dbNodeCount("2")
+     *             .dbNodeClass(this_.classes()[0].supportedEngines()[0].availableResources()[0].dbNodeClass())
+     *             .vswitchId(defaultSwitch.id())
+     *             .build());
+     * 
+     *         final var polardbClustersDs = PolardbFunctions.getClusters(GetClustersArgs.builder()
+     *             .descriptionRegex(cluster.description())
+     *             .status("Running")
+     *             .build());
+     * 
+     *         var defaultDatabase = new Database("defaultDatabase", DatabaseArgs.builder()
+     *             .dbClusterId(polardbClustersDs.applyValue(getClustersResult -> getClustersResult).applyValue(polardbClustersDs -> polardbClustersDs.applyValue(getClustersResult -> getClustersResult.clusters()[0].id())))
+     *             .dbName(polardbClustersDs.applyValue(getClustersResult -> getClustersResult).applyValue(polardbClustersDs -> String.format("tfaccountpri_%s", polardbClustersDs.applyValue(getClustersResult -> getClustersResult.clusters()[0].id()))))
+     *             .dbDescription("from terraform")
+     *             .build());
+     * 
+     *         final var default = PolardbFunctions.getDatabases(GetDatabasesArgs.builder()
+     *             .dbClusterId(polardbClustersDs.applyValue(getClustersResult -> getClustersResult).applyValue(polardbClustersDs -> polardbClustersDs.applyValue(getClustersResult -> getClustersResult.clusters()[0].id())))
+     *             .nameRegex(defaultDatabase.dbName())
+     *             .build());
+     * 
+     *         ctx.export("database", default_.applyValue(default_ -> default_.databases()[0].dbName()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDatabases(GetDatabasesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:polardb/getDatabases:getDatabases", TypeShape.of(GetDatabasesResult.class), args, Utilities.withVersion(options)); + } + /** + * The `alicloud.polardb.getDatabases` data source provides a collection of PolarDB cluster database available in Alibaba Cloud account. + * Filters support regular expression for the database name, searches by clusterId. + * + * > **NOTE:** Available since v1.70.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.polardb.PolardbFunctions;
+     * import com.pulumi.alicloud.polardb.inputs.GetNodeClassesArgs;
+     * import com.pulumi.alicloud.vpc.Network;
+     * import com.pulumi.alicloud.vpc.NetworkArgs;
+     * import com.pulumi.alicloud.vpc.Switch;
+     * import com.pulumi.alicloud.vpc.SwitchArgs;
+     * import com.pulumi.alicloud.polardb.Cluster;
+     * import com.pulumi.alicloud.polardb.ClusterArgs;
+     * import com.pulumi.alicloud.polardb.inputs.GetClustersArgs;
+     * import com.pulumi.alicloud.polardb.Database;
+     * import com.pulumi.alicloud.polardb.DatabaseArgs;
+     * import com.pulumi.alicloud.polardb.inputs.GetDatabasesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var this = PolardbFunctions.getNodeClasses(GetNodeClassesArgs.builder()
+     *             .dbType("MySQL")
+     *             .dbVersion("8.0")
+     *             .payType("PostPaid")
+     *             .category("Normal")
+     *             .build());
+     * 
+     *         var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
+     *             .vpcName("terraform-example")
+     *             .cidrBlock("172.16.0.0/16")
+     *             .build());
+     * 
+     *         var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
+     *             .vpcId(defaultNetwork.id())
+     *             .cidrBlock("172.16.0.0/24")
+     *             .zoneId(this_.classes()[0].zoneId())
+     *             .vswitchName("terraform-example")
+     *             .build());
+     * 
+     *         var cluster = new Cluster("cluster", ClusterArgs.builder()
+     *             .dbType("MySQL")
+     *             .dbVersion("8.0")
+     *             .payType("PostPaid")
+     *             .dbNodeCount("2")
+     *             .dbNodeClass(this_.classes()[0].supportedEngines()[0].availableResources()[0].dbNodeClass())
+     *             .vswitchId(defaultSwitch.id())
+     *             .build());
+     * 
+     *         final var polardbClustersDs = PolardbFunctions.getClusters(GetClustersArgs.builder()
+     *             .descriptionRegex(cluster.description())
+     *             .status("Running")
+     *             .build());
+     * 
+     *         var defaultDatabase = new Database("defaultDatabase", DatabaseArgs.builder()
+     *             .dbClusterId(polardbClustersDs.applyValue(getClustersResult -> getClustersResult).applyValue(polardbClustersDs -> polardbClustersDs.applyValue(getClustersResult -> getClustersResult.clusters()[0].id())))
+     *             .dbName(polardbClustersDs.applyValue(getClustersResult -> getClustersResult).applyValue(polardbClustersDs -> String.format("tfaccountpri_%s", polardbClustersDs.applyValue(getClustersResult -> getClustersResult.clusters()[0].id()))))
+     *             .dbDescription("from terraform")
+     *             .build());
+     * 
+     *         final var default = PolardbFunctions.getDatabases(GetDatabasesArgs.builder()
+     *             .dbClusterId(polardbClustersDs.applyValue(getClustersResult -> getClustersResult).applyValue(polardbClustersDs -> polardbClustersDs.applyValue(getClustersResult -> getClustersResult.clusters()[0].id())))
+     *             .nameRegex(defaultDatabase.dbName())
+     *             .build());
+     * 
+     *         ctx.export("database", default_.applyValue(default_ -> default_.databases()[0].dbName()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getDatabasesPlain(GetDatabasesPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:polardb/getDatabases:getDatabases", TypeShape.of(GetDatabasesResult.class), args, Utilities.withVersion(options)); + } + /** + * The `alicloud.polardb.getEndpoints` data source provides a collection of PolarDB endpoints available in Alibaba Cloud account. + * Filters support regular expression for the cluster name, searches by clusterId, and other filters which are listed below. + * + * > **NOTE:** Available since v1.68.0+. * * ## Example Usage * @@ -1136,9 +1605,7 @@ public static CompletableFuture getDatabasesPlain(GetDatabas * import com.pulumi.alicloud.polardb.Cluster; * import com.pulumi.alicloud.polardb.ClusterArgs; * import com.pulumi.alicloud.polardb.inputs.GetClustersArgs; - * import com.pulumi.alicloud.polardb.Database; - * import com.pulumi.alicloud.polardb.DatabaseArgs; - * import com.pulumi.alicloud.polardb.inputs.GetDatabasesArgs; + * import com.pulumi.alicloud.polardb.inputs.GetEndpointsArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -1185,18 +1652,11 @@ public static CompletableFuture getDatabasesPlain(GetDatabas * .status("Running") * .build()); * - * var defaultDatabase = new Database("defaultDatabase", DatabaseArgs.builder() - * .dbClusterId(polardbClustersDs.applyValue(getClustersResult -> getClustersResult).applyValue(polardbClustersDs -> polardbClustersDs.applyValue(getClustersResult -> getClustersResult.clusters()[0].id()))) - * .dbName(polardbClustersDs.applyValue(getClustersResult -> getClustersResult).applyValue(polardbClustersDs -> String.format("tfaccountpri_%s", polardbClustersDs.applyValue(getClustersResult -> getClustersResult.clusters()[0].id())))) - * .dbDescription("from terraform") - * .build()); - * - * final var default = PolardbFunctions.getDatabases(GetDatabasesArgs.builder() + * final var default = PolardbFunctions.getEndpoints(GetEndpointsArgs.builder() * .dbClusterId(polardbClustersDs.applyValue(getClustersResult -> getClustersResult).applyValue(polardbClustersDs -> polardbClustersDs.applyValue(getClustersResult -> getClustersResult.clusters()[0].id()))) - * .nameRegex(defaultDatabase.dbName()) * .build()); * - * ctx.export("database", default_.applyValue(default_ -> default_.databases()[0].dbName())); + * ctx.export("endpoint", default_.applyValue(default_ -> default_.endpoints()[0].dbEndpointId())); * } * } * } @@ -1204,14 +1664,14 @@ public static CompletableFuture getDatabasesPlain(GetDatabas * <!--End PulumiCodeChooser --> * */ - public static Output getDatabases(GetDatabasesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("alicloud:polardb/getDatabases:getDatabases", TypeShape.of(GetDatabasesResult.class), args, Utilities.withVersion(options)); + public static Output getEndpoints(GetEndpointsArgs args) { + return getEndpoints(args, InvokeOptions.Empty); } /** - * The `alicloud.polardb.getDatabases` data source provides a collection of PolarDB cluster database available in Alibaba Cloud account. - * Filters support regular expression for the database name, searches by clusterId. + * The `alicloud.polardb.getEndpoints` data source provides a collection of PolarDB endpoints available in Alibaba Cloud account. + * Filters support regular expression for the cluster name, searches by clusterId, and other filters which are listed below. * - * > **NOTE:** Available since v1.70.0+. + * > **NOTE:** Available since v1.68.0+. * * ## Example Usage * @@ -1232,9 +1692,7 @@ public static Output getDatabases(GetDatabasesArgs args, Inv * import com.pulumi.alicloud.polardb.Cluster; * import com.pulumi.alicloud.polardb.ClusterArgs; * import com.pulumi.alicloud.polardb.inputs.GetClustersArgs; - * import com.pulumi.alicloud.polardb.Database; - * import com.pulumi.alicloud.polardb.DatabaseArgs; - * import com.pulumi.alicloud.polardb.inputs.GetDatabasesArgs; + * import com.pulumi.alicloud.polardb.inputs.GetEndpointsArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -1281,18 +1739,11 @@ public static Output getDatabases(GetDatabasesArgs args, Inv * .status("Running") * .build()); * - * var defaultDatabase = new Database("defaultDatabase", DatabaseArgs.builder() - * .dbClusterId(polardbClustersDs.applyValue(getClustersResult -> getClustersResult).applyValue(polardbClustersDs -> polardbClustersDs.applyValue(getClustersResult -> getClustersResult.clusters()[0].id()))) - * .dbName(polardbClustersDs.applyValue(getClustersResult -> getClustersResult).applyValue(polardbClustersDs -> String.format("tfaccountpri_%s", polardbClustersDs.applyValue(getClustersResult -> getClustersResult.clusters()[0].id())))) - * .dbDescription("from terraform") - * .build()); - * - * final var default = PolardbFunctions.getDatabases(GetDatabasesArgs.builder() + * final var default = PolardbFunctions.getEndpoints(GetEndpointsArgs.builder() * .dbClusterId(polardbClustersDs.applyValue(getClustersResult -> getClustersResult).applyValue(polardbClustersDs -> polardbClustersDs.applyValue(getClustersResult -> getClustersResult.clusters()[0].id()))) - * .nameRegex(defaultDatabase.dbName()) * .build()); * - * ctx.export("database", default_.applyValue(default_ -> default_.databases()[0].dbName())); + * ctx.export("endpoint", default_.applyValue(default_ -> default_.endpoints()[0].dbEndpointId())); * } * } * } @@ -1300,8 +1751,8 @@ public static Output getDatabases(GetDatabasesArgs args, Inv * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getDatabasesPlain(GetDatabasesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:polardb/getDatabases:getDatabases", TypeShape.of(GetDatabasesResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getEndpointsPlain(GetEndpointsPlainArgs args) { + return getEndpointsPlain(args, InvokeOptions.Empty); } /** * The `alicloud.polardb.getEndpoints` data source provides a collection of PolarDB endpoints available in Alibaba Cloud account. @@ -1387,8 +1838,8 @@ public static CompletableFuture getDatabasesPlain(GetDatabas * <!--End PulumiCodeChooser --> * */ - public static Output getEndpoints(GetEndpointsArgs args) { - return getEndpoints(args, InvokeOptions.Empty); + public static Output getEndpoints(GetEndpointsArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:polardb/getEndpoints:getEndpoints", TypeShape.of(GetEndpointsResult.class), args, Utilities.withVersion(options)); } /** * The `alicloud.polardb.getEndpoints` data source provides a collection of PolarDB endpoints available in Alibaba Cloud account. @@ -1474,8 +1925,8 @@ public static Output getEndpoints(GetEndpointsArgs args) { * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getEndpointsPlain(GetEndpointsPlainArgs args) { - return getEndpointsPlain(args, InvokeOptions.Empty); + public static Output getEndpoints(GetEndpointsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:polardb/getEndpoints:getEndpoints", TypeShape.of(GetEndpointsResult.class), args, Utilities.withVersion(options)); } /** * The `alicloud.polardb.getEndpoints` data source provides a collection of PolarDB endpoints available in Alibaba Cloud account. @@ -1561,17 +2012,18 @@ public static CompletableFuture getEndpointsPlain(GetEndpoin * <!--End PulumiCodeChooser --> * */ - public static Output getEndpoints(GetEndpointsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("alicloud:polardb/getEndpoints:getEndpoints", TypeShape.of(GetEndpointsResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getEndpointsPlain(GetEndpointsPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:polardb/getEndpoints:getEndpoints", TypeShape.of(GetEndpointsResult.class), args, Utilities.withVersion(options)); } /** - * The `alicloud.polardb.getEndpoints` data source provides a collection of PolarDB endpoints available in Alibaba Cloud account. - * Filters support regular expression for the cluster name, searches by clusterId, and other filters which are listed below. + * This data source provides the PolarDB Global Database Networks of the current Alibaba Cloud user. * - * > **NOTE:** Available since v1.68.0+. + * > **NOTE:** Available since v1.181.0+. * * ## Example Usage * + * Basic Usage + * * <!--Start PulumiCodeChooser --> *
      * {@code
@@ -1588,8 +2040,9 @@ public static Output getEndpoints(GetEndpointsArgs args, Inv
      * import com.pulumi.alicloud.vpc.SwitchArgs;
      * import com.pulumi.alicloud.polardb.Cluster;
      * import com.pulumi.alicloud.polardb.ClusterArgs;
-     * import com.pulumi.alicloud.polardb.inputs.GetClustersArgs;
-     * import com.pulumi.alicloud.polardb.inputs.GetEndpointsArgs;
+     * import com.pulumi.alicloud.polardb.GlobalDatabaseNetwork;
+     * import com.pulumi.alicloud.polardb.GlobalDatabaseNetworkArgs;
+     * import com.pulumi.alicloud.polardb.inputs.GetGlobalDatabaseNetworksArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1610,13 +2063,13 @@ public static Output getEndpoints(GetEndpointsArgs args, Inv
      *             .category("Normal")
      *             .build());
      * 
-     *         var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
+     *         var default_ = new Network("default", NetworkArgs.builder()
      *             .vpcName("terraform-example")
      *             .cidrBlock("172.16.0.0/16")
      *             .build());
      * 
      *         var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
-     *             .vpcId(defaultNetwork.id())
+     *             .vpcId(default_.id())
      *             .cidrBlock("172.16.0.0/24")
      *             .zoneId(this_.classes()[0].zoneId())
      *             .vswitchName("terraform-example")
@@ -1631,16 +2084,21 @@ public static Output getEndpoints(GetEndpointsArgs args, Inv
      *             .vswitchId(defaultSwitch.id())
      *             .build());
      * 
-     *         final var polardbClustersDs = PolardbFunctions.getClusters(GetClustersArgs.builder()
-     *             .descriptionRegex(cluster.description())
-     *             .status("Running")
+     *         var defaultGlobalDatabaseNetwork = new GlobalDatabaseNetwork("defaultGlobalDatabaseNetwork", GlobalDatabaseNetworkArgs.builder()
+     *             .dbClusterId(cluster.id())
+     *             .description(cluster.id())
      *             .build());
      * 
-     *         final var default = PolardbFunctions.getEndpoints(GetEndpointsArgs.builder()
-     *             .dbClusterId(polardbClustersDs.applyValue(getClustersResult -> getClustersResult).applyValue(polardbClustersDs -> polardbClustersDs.applyValue(getClustersResult -> getClustersResult.clusters()[0].id())))
+     *         final var ids = PolardbFunctions.getGlobalDatabaseNetworks(GetGlobalDatabaseNetworksArgs.builder()
+     *             .ids(defaultGlobalDatabaseNetwork.id())
      *             .build());
      * 
-     *         ctx.export("endpoint", default_.applyValue(default_ -> default_.endpoints()[0].dbEndpointId()));
+     *         ctx.export("polardbGlobalDatabaseNetworkId1", ids.applyValue(getGlobalDatabaseNetworksResult -> getGlobalDatabaseNetworksResult).applyValue(ids -> ids.applyValue(getGlobalDatabaseNetworksResult -> getGlobalDatabaseNetworksResult.networks()[0].id())));
+     *         final var description = PolardbFunctions.getGlobalDatabaseNetworks(GetGlobalDatabaseNetworksArgs.builder()
+     *             .description(defaultGlobalDatabaseNetwork.description())
+     *             .build());
+     * 
+     *         ctx.export("polardbGlobalDatabaseNetworkId2", description.applyValue(getGlobalDatabaseNetworksResult -> getGlobalDatabaseNetworksResult).applyValue(description -> description.applyValue(getGlobalDatabaseNetworksResult -> getGlobalDatabaseNetworksResult.networks()[0].id())));
      *     }
      * }
      * }
@@ -1648,8 +2106,8 @@ public static Output getEndpoints(GetEndpointsArgs args, Inv
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getEndpointsPlain(GetEndpointsPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("alicloud:polardb/getEndpoints:getEndpoints", TypeShape.of(GetEndpointsResult.class), args, Utilities.withVersion(options));
+    public static Output getGlobalDatabaseNetworks() {
+        return getGlobalDatabaseNetworks(GetGlobalDatabaseNetworksArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * This data source provides the PolarDB Global Database Networks of the current Alibaba Cloud user.
@@ -1742,8 +2200,8 @@ public static CompletableFuture getEndpointsPlain(GetEndpoin
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getGlobalDatabaseNetworks() {
-        return getGlobalDatabaseNetworks(GetGlobalDatabaseNetworksArgs.Empty, InvokeOptions.Empty);
+    public static CompletableFuture getGlobalDatabaseNetworksPlain() {
+        return getGlobalDatabaseNetworksPlain(GetGlobalDatabaseNetworksPlainArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * This data source provides the PolarDB Global Database Networks of the current Alibaba Cloud user.
@@ -1836,8 +2294,8 @@ public static Output getGlobalDatabaseNetworks(
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getGlobalDatabaseNetworksPlain() {
-        return getGlobalDatabaseNetworksPlain(GetGlobalDatabaseNetworksPlainArgs.Empty, InvokeOptions.Empty);
+    public static Output getGlobalDatabaseNetworks(GetGlobalDatabaseNetworksArgs args) {
+        return getGlobalDatabaseNetworks(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the PolarDB Global Database Networks of the current Alibaba Cloud user.
@@ -1930,8 +2388,8 @@ public static CompletableFuture getGlobalDataba
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getGlobalDatabaseNetworks(GetGlobalDatabaseNetworksArgs args) {
-        return getGlobalDatabaseNetworks(args, InvokeOptions.Empty);
+    public static CompletableFuture getGlobalDatabaseNetworksPlain(GetGlobalDatabaseNetworksPlainArgs args) {
+        return getGlobalDatabaseNetworksPlain(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the PolarDB Global Database Networks of the current Alibaba Cloud user.
@@ -2024,8 +2482,8 @@ public static Output getGlobalDatabaseNetworks(
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getGlobalDatabaseNetworksPlain(GetGlobalDatabaseNetworksPlainArgs args) {
-        return getGlobalDatabaseNetworksPlain(args, InvokeOptions.Empty);
+    public static Output getGlobalDatabaseNetworks(GetGlobalDatabaseNetworksArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("alicloud:polardb/getGlobalDatabaseNetworks:getGlobalDatabaseNetworks", TypeShape.of(GetGlobalDatabaseNetworksResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides the PolarDB Global Database Networks of the current Alibaba Cloud user.
@@ -2118,7 +2576,7 @@ public static CompletableFuture getGlobalDataba
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getGlobalDatabaseNetworks(GetGlobalDatabaseNetworksArgs args, InvokeOptions options) {
+    public static Output getGlobalDatabaseNetworks(GetGlobalDatabaseNetworksArgs args, InvokeOutputOptions options) {
         return Deployment.getInstance().invoke("alicloud:polardb/getGlobalDatabaseNetworks:getGlobalDatabaseNetworks", TypeShape.of(GetGlobalDatabaseNetworksResult.class), args, Utilities.withVersion(options));
     }
     /**
@@ -2359,6 +2817,54 @@ public static CompletableFuture getNodeClassesPlain(GetNod
     public static Output getNodeClasses(GetNodeClassesArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("alicloud:polardb/getNodeClasses:getNodeClasses", TypeShape.of(GetNodeClassesResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * This data source provides the PolarDB node classes resource available info of Alibaba Cloud.
+     * 
+     * > **NOTE:** Available since v1.81.0+
+     * 
+     * ## Example Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.polardb.PolardbFunctions;
+     * import com.pulumi.alicloud.polardb.inputs.GetNodeClassesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var resources = PolardbFunctions.getNodeClasses(GetNodeClassesArgs.builder()
+     *             .payType("PostPaid")
+     *             .dbType("MySQL")
+     *             .dbVersion("5.6")
+     *             .build());
+     * 
+     *         ctx.export("polardbNodeClasses", resources.applyValue(getNodeClassesResult -> getNodeClassesResult.classes()));
+     *         ctx.export("polardbAvailableZoneId", resources.applyValue(getNodeClassesResult -> getNodeClassesResult.classes()[0].zoneId()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNodeClasses(GetNodeClassesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:polardb/getNodeClasses:getNodeClasses", TypeShape.of(GetNodeClassesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the PolarDB node classes resource available info of Alibaba Cloud. * @@ -2692,6 +3198,63 @@ public static CompletableFuture getParameterGroupsPlai public static Output getParameterGroups(GetParameterGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:polardb/getParameterGroups:getParameterGroups", TypeShape.of(GetParameterGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the PolarDB Parameter Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.183.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.polardb.PolardbFunctions;
+     * import com.pulumi.alicloud.polardb.inputs.GetParameterGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = PolardbFunctions.getParameterGroups(GetParameterGroupsArgs.builder()
+     *             .dbType("MySQL")
+     *             .dbVersion("8.0")
+     *             .build());
+     * 
+     *         final var ids = PolardbFunctions.getParameterGroups(GetParameterGroupsArgs.builder()
+     *             .ids(default_.groups()[0].id())
+     *             .build());
+     * 
+     *         ctx.export("polardbParameterGroupId1", ids.applyValue(getParameterGroupsResult -> getParameterGroupsResult.groups()[0].id()));
+     *         final var nameRegex = PolardbFunctions.getParameterGroups(GetParameterGroupsArgs.builder()
+     *             .nameRegex(default_.groups()[0].parameterGroupName())
+     *             .build());
+     * 
+     *         ctx.export("polardbParameterGroupId2", nameRegex.applyValue(getParameterGroupsResult -> getParameterGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getParameterGroups(GetParameterGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:polardb/getParameterGroups:getParameterGroups", TypeShape.of(GetParameterGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the PolarDB Parameter Groups of the current Alibaba Cloud user. * @@ -2964,6 +3527,49 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:polardb/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides availability zones for PolarDB that can be accessed by an Alibaba Cloud account within the region configured in the provider. + * + * > **NOTE:** Available in v1.74.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.polardb.PolardbFunctions;
+     * import com.pulumi.alicloud.polardb.inputs.GetZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var zonesIds = PolardbFunctions.getZones();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:polardb/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides availability zones for PolarDB that can be accessed by an Alibaba Cloud account within the region configured in the provider. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/privatelink/PrivatelinkFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/privatelink/PrivatelinkFunctions.java index b527959112..90cbde4a11 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/privatelink/PrivatelinkFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/privatelink/PrivatelinkFunctions.java @@ -29,6 +29,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class PrivatelinkFunctions { @@ -262,6 +263,52 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:privatelink/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open Privatelink service automatically. If the service has been opened, it will return opened. + * + * For information about Privatelink and how to use it, see [What is Privatelink](https://www.alibabacloud.com/help/en/product/120462.htm). + * + * > **NOTE:** Available in v1.113.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.privatelink.PrivatelinkFunctions;
+     * import com.pulumi.alicloud.privatelink.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = PrivatelinkFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:privatelink/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open Privatelink service automatically. If the service has been opened, it will return opened. * @@ -452,6 +499,54 @@ public static CompletableFuture getVpcEndpointC public static Output getVpcEndpointConnections(GetVpcEndpointConnectionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:privatelink/getVpcEndpointConnections:getVpcEndpointConnections", TypeShape.of(GetVpcEndpointConnectionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Privatelink Vpc Endpoint Connections of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.110.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.privatelink.PrivatelinkFunctions;
+     * import com.pulumi.alicloud.privatelink.inputs.GetVpcEndpointConnectionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = PrivatelinkFunctions.getVpcEndpointConnections(GetVpcEndpointConnectionsArgs.builder()
+     *             .serviceId("example_value")
+     *             .status("Connected")
+     *             .build());
+     * 
+     *         ctx.export("firstPrivatelinkVpcEndpointConnectionId", example.applyValue(getVpcEndpointConnectionsResult -> getVpcEndpointConnectionsResult.connections()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVpcEndpointConnections(GetVpcEndpointConnectionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:privatelink/getVpcEndpointConnections:getVpcEndpointConnections", TypeShape.of(GetVpcEndpointConnectionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Privatelink Vpc Endpoint Connections of the current Alibaba Cloud user. * @@ -641,6 +736,53 @@ public static CompletableFuture getVpcEndp public static Output getVpcEndpointServiceResources(GetVpcEndpointServiceResourcesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:privatelink/getVpcEndpointServiceResources:getVpcEndpointServiceResources", TypeShape.of(GetVpcEndpointServiceResourcesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Privatelink Vpc Endpoint Service Resources of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.110.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.privatelink.PrivatelinkFunctions;
+     * import com.pulumi.alicloud.privatelink.inputs.GetVpcEndpointServiceResourcesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = PrivatelinkFunctions.getVpcEndpointServiceResources(GetVpcEndpointServiceResourcesArgs.builder()
+     *             .serviceId("epsrv-gw8ii1xxxx")
+     *             .build());
+     * 
+     *         ctx.export("firstPrivatelinkVpcEndpointServiceResourceId", example.applyValue(getVpcEndpointServiceResourcesResult -> getVpcEndpointServiceResourcesResult.resources()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVpcEndpointServiceResources(GetVpcEndpointServiceResourcesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:privatelink/getVpcEndpointServiceResources:getVpcEndpointServiceResources", TypeShape.of(GetVpcEndpointServiceResourcesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Privatelink Vpc Endpoint Service Resources of the current Alibaba Cloud user. * @@ -829,6 +971,53 @@ public static CompletableFuture getVpcEndpoint public static Output getVpcEndpointServiceUsers(GetVpcEndpointServiceUsersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:privatelink/getVpcEndpointServiceUsers:getVpcEndpointServiceUsers", TypeShape.of(GetVpcEndpointServiceUsersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Privatelink Vpc Endpoint Service Users of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.110.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.privatelink.PrivatelinkFunctions;
+     * import com.pulumi.alicloud.privatelink.inputs.GetVpcEndpointServiceUsersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = PrivatelinkFunctions.getVpcEndpointServiceUsers(GetVpcEndpointServiceUsersArgs.builder()
+     *             .serviceId("epsrv-gw81c6vxxxxxx")
+     *             .build());
+     * 
+     *         ctx.export("firstPrivatelinkVpcEndpointServiceUserId", example.applyValue(getVpcEndpointServiceUsersResult -> getVpcEndpointServiceUsersResult.users()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVpcEndpointServiceUsers(GetVpcEndpointServiceUsersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:privatelink/getVpcEndpointServiceUsers:getVpcEndpointServiceUsers", TypeShape.of(GetVpcEndpointServiceUsersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Privatelink Vpc Endpoint Service Users of the current Alibaba Cloud user. * @@ -1151,6 +1340,61 @@ public static CompletableFuture getVpcEndpointServ public static Output getVpcEndpointServices(GetVpcEndpointServicesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:privatelink/getVpcEndpointServices:getVpcEndpointServices", TypeShape.of(GetVpcEndpointServicesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Privatelink Vpc Endpoint Services of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.109.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.privatelink.VpcEndpointService;
+     * import com.pulumi.alicloud.privatelink.VpcEndpointServiceArgs;
+     * import com.pulumi.alicloud.privatelink.PrivatelinkFunctions;
+     * import com.pulumi.alicloud.privatelink.inputs.GetVpcEndpointServicesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var exampleVpcEndpointService = new VpcEndpointService("exampleVpcEndpointService", VpcEndpointServiceArgs.builder()
+     *             .serviceDescription("terraform-example")
+     *             .connectBandwidth(103)
+     *             .autoAcceptConnection(false)
+     *             .build());
+     * 
+     *         final var example = PrivatelinkFunctions.getVpcEndpointServices(GetVpcEndpointServicesArgs.builder()
+     *             .ids(exampleVpcEndpointService.id())
+     *             .build());
+     * 
+     *         ctx.export("firstPrivatelinkVpcEndpointServiceId", example.applyValue(getVpcEndpointServicesResult -> getVpcEndpointServicesResult).applyValue(example -> example.applyValue(getVpcEndpointServicesResult -> getVpcEndpointServicesResult.services()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVpcEndpointServices(GetVpcEndpointServicesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:privatelink/getVpcEndpointServices:getVpcEndpointServices", TypeShape.of(GetVpcEndpointServicesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Privatelink Vpc Endpoint Services of the current Alibaba Cloud user. * @@ -1347,6 +1591,53 @@ public static CompletableFuture getVpcEndpointZonesPl public static Output getVpcEndpointZones(GetVpcEndpointZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:privatelink/getVpcEndpointZones:getVpcEndpointZones", TypeShape.of(GetVpcEndpointZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Privatelink Vpc Endpoint Zones of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.111.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.privatelink.PrivatelinkFunctions;
+     * import com.pulumi.alicloud.privatelink.inputs.GetVpcEndpointZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = PrivatelinkFunctions.getVpcEndpointZones(GetVpcEndpointZonesArgs.builder()
+     *             .endpointId("ep-gw8boxxxxx")
+     *             .build());
+     * 
+     *         ctx.export("firstPrivatelinkVpcEndpointZoneId", example.applyValue(getVpcEndpointZonesResult -> getVpcEndpointZonesResult.zones()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVpcEndpointZones(GetVpcEndpointZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:privatelink/getVpcEndpointZones:getVpcEndpointZones", TypeShape.of(GetVpcEndpointZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Privatelink Vpc Endpoint Zones of the current Alibaba Cloud user. * @@ -1634,6 +1925,54 @@ public static CompletableFuture getVpcEndpointsPlain(GetV public static Output getVpcEndpoints(GetVpcEndpointsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:privatelink/getVpcEndpoints:getVpcEndpoints", TypeShape.of(GetVpcEndpointsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Privatelink Vpc Endpoints of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.109.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.privatelink.PrivatelinkFunctions;
+     * import com.pulumi.alicloud.privatelink.inputs.GetVpcEndpointsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = PrivatelinkFunctions.getVpcEndpoints(GetVpcEndpointsArgs.builder()
+     *             .ids("example_value")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstPrivatelinkVpcEndpointId", example.applyValue(getVpcEndpointsResult -> getVpcEndpointsResult.endpoints()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVpcEndpoints(GetVpcEndpointsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:privatelink/getVpcEndpoints:getVpcEndpoints", TypeShape.of(GetVpcEndpointsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Privatelink Vpc Endpoints of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/pvtz/PvtzFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/pvtz/PvtzFunctions.java index b6674e2a31..c74c7dc78d 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/pvtz/PvtzFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/pvtz/PvtzFunctions.java @@ -26,6 +26,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class PvtzFunctions { @@ -289,6 +290,58 @@ public static CompletableFuture getEndpointsPlain(GetEndpoin public static Output getEndpoints(GetEndpointsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:pvtz/getEndpoints:getEndpoints", TypeShape.of(GetEndpointsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Pvtz Endpoints of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.143.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.pvtz.PvtzFunctions;
+     * import com.pulumi.alicloud.pvtz.inputs.GetEndpointsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = PvtzFunctions.getEndpoints(GetEndpointsArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("pvtzEndpointId1", ids.applyValue(getEndpointsResult -> getEndpointsResult.endpoints()[0].id()));
+     *         final var nameRegex = PvtzFunctions.getEndpoints(GetEndpointsArgs.builder()
+     *             .nameRegex("^my-Endpoint")
+     *             .build());
+     * 
+     *         ctx.export("pvtzEndpointId2", nameRegex.applyValue(getEndpointsResult -> getEndpointsResult.endpoints()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEndpoints(GetEndpointsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:pvtz/getEndpoints:getEndpoints", TypeShape.of(GetEndpointsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Pvtz Endpoints of the current Alibaba Cloud user. * @@ -576,6 +629,53 @@ public static CompletableFuture getResolverZonesPlain(Ge public static Output getResolverZones(GetResolverZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:pvtz/getResolverZones:getResolverZones", TypeShape.of(GetResolverZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the available zones with the Private Zone Resolver of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.143.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.pvtz.PvtzFunctions;
+     * import com.pulumi.alicloud.pvtz.inputs.GetResolverZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = PvtzFunctions.getResolverZones(GetResolverZonesArgs.builder()
+     *             .status("NORMAL")
+     *             .build());
+     * 
+     *         ctx.export("firstZonesId", default_.zones()[0].zoneId());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getResolverZones(GetResolverZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:pvtz/getResolverZones:getResolverZones", TypeShape.of(GetResolverZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the available zones with the Private Zone Resolver of the current Alibaba Cloud user. * @@ -873,6 +973,56 @@ public static CompletableFuture getRulesPlain(GetRulesPlainArgs public static Output getRules(GetRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:pvtz/getRules:getRules", TypeShape.of(GetRulesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the PrivateZone Rules of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.143.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.pvtz.PvtzFunctions;
+     * import com.pulumi.alicloud.pvtz.inputs.GetRulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = PvtzFunctions.getRules();
+     * 
+     *         ctx.export("pvtzRuleId1", ids.applyValue(getRulesResult -> getRulesResult.rules()[0].id()));
+     *         final var nameRegex = PvtzFunctions.getRules(GetRulesArgs.builder()
+     *             .nameRegex("^my-Rule")
+     *             .build());
+     * 
+     *         ctx.export("pvtzRuleId2", nameRegex.applyValue(getRulesResult -> getRulesResult.rules()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRules(GetRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:pvtz/getRules:getRules", TypeShape.of(GetRulesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the PrivateZone Rules of the current Alibaba Cloud user. * @@ -1153,6 +1303,52 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:pvtz/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open Private Zone service automatically. If the service has been opened, it will return opened. + * + * For information about Priavte Zone and how to use it, see [What is Private Zone](https://www.alibabacloud.com/help/en/product/64583.htm). + * + * > **NOTE:** Available in v1.114.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.pvtz.PvtzFunctions;
+     * import com.pulumi.alicloud.pvtz.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = PvtzFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:pvtz/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open Private Zone service automatically. If the service has been opened, it will return opened. * @@ -1331,6 +1527,50 @@ public static CompletableFuture getZoneRecordsPlain(GetZon public static Output getZoneRecords(GetZoneRecordsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:pvtz/getZoneRecords:getZoneRecords", TypeShape.of(GetZoneRecordsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Private Zone Records resource information owned by an Alibaba Cloud account. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.pvtz.PvtzFunctions;
+     * import com.pulumi.alicloud.pvtz.inputs.GetZoneRecordsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var recordsDs = PvtzFunctions.getZoneRecords(GetZoneRecordsArgs.builder()
+     *             .zoneId(basic.id())
+     *             .keyword(foo.value())
+     *             .build());
+     * 
+     *         ctx.export("firstRecordId", recordsDs.applyValue(getZoneRecordsResult -> getZoneRecordsResult.records()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZoneRecords(GetZoneRecordsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:pvtz/getZoneRecords:getZoneRecords", TypeShape.of(GetZoneRecordsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Private Zone Records resource information owned by an Alibaba Cloud account. * @@ -1590,6 +1830,49 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:pvtz/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source lists a number of Private Zones resource information owned by an Alibaba Cloud account. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.pvtz.PvtzFunctions;
+     * import com.pulumi.alicloud.pvtz.inputs.GetZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var pvtzZonesDs = PvtzFunctions.getZones(GetZonesArgs.builder()
+     *             .keyword(basic.zoneName())
+     *             .build());
+     * 
+     *         ctx.export("firstZoneId", pvtzZonesDs.applyValue(getZonesResult -> getZonesResult.zones()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:pvtz/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source lists a number of Private Zones resource information owned by an Alibaba Cloud account. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/quickbi/QuickbiFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/quickbi/QuickbiFunctions.java index 3446f4e742..49b86f60bc 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/quickbi/QuickbiFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/quickbi/QuickbiFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class QuickbiFunctions { @@ -249,6 +250,53 @@ public static CompletableFuture getUsersPlain(GetUsersPlainArgs public static Output getUsers(GetUsersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:quickbi/getUsers:getUsers", TypeShape.of(GetUsersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Quick BI Users of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.136.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.quickbi.QuickbiFunctions;
+     * import com.pulumi.alicloud.quickbi.inputs.GetUsersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = QuickbiFunctions.getUsers(GetUsersArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("quickBiUserId1", ids.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getUsers(GetUsersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:quickbi/getUsers:getUsers", TypeShape.of(GetUsersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Quick BI Users of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/quotas/QuotasFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/quotas/QuotasFunctions.java index d3f7ea51e3..1061e008cc 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/quotas/QuotasFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/quotas/QuotasFunctions.java @@ -23,6 +23,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class QuotasFunctions { @@ -35,6 +36,9 @@ public static CompletableFuture getApplicationInfosPl public static Output getApplicationInfos(GetApplicationInfosArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:quotas/getApplicationInfos:getApplicationInfos", TypeShape.of(GetApplicationInfosResult.class), args, Utilities.withVersion(options)); } + public static Output getApplicationInfos(GetApplicationInfosArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:quotas/getApplicationInfos:getApplicationInfos", TypeShape.of(GetApplicationInfosResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getApplicationInfosPlain(GetApplicationInfosPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:quotas/getApplicationInfos:getApplicationInfos", TypeShape.of(GetApplicationInfosResult.class), args, Utilities.withVersion(options)); } @@ -278,6 +282,54 @@ public static CompletableFuture getQuotaAlarmsPlain(GetQuo public static Output getQuotaAlarms(GetQuotaAlarmsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:quotas/getQuotaAlarms:getQuotaAlarms", TypeShape.of(GetQuotaAlarmsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Quotas Quota Alarms of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.116.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.quotas.QuotasFunctions;
+     * import com.pulumi.alicloud.quotas.inputs.GetQuotaAlarmsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = QuotasFunctions.getQuotaAlarms(GetQuotaAlarmsArgs.builder()
+     *             .ids("5VR90-421F886-81E9-xxx")
+     *             .nameRegex("tf-testAcc")
+     *             .build());
+     * 
+     *         ctx.export("firstQuotasQuotaAlarmId", example.applyValue(getQuotaAlarmsResult -> getQuotaAlarmsResult.alarms()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getQuotaAlarms(GetQuotaAlarmsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:quotas/getQuotaAlarms:getQuotaAlarms", TypeShape.of(GetQuotaAlarmsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Quotas Quota Alarms of the current Alibaba Cloud user. * @@ -518,6 +570,70 @@ public static CompletableFuture getQuotaApplications public static Output getQuotaApplications(GetQuotaApplicationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:quotas/getQuotaApplications:getQuotaApplications", TypeShape.of(GetQuotaApplicationsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Quotas Quota Applications of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.117.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.quotas.QuotaApplication;
+     * import com.pulumi.alicloud.quotas.QuotaApplicationArgs;
+     * import com.pulumi.alicloud.quotas.QuotasFunctions;
+     * import com.pulumi.alicloud.quotas.inputs.GetQuotaApplicationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var defaultQuotaApplication = new QuotaApplication("defaultQuotaApplication", QuotaApplicationArgs.builder()
+     *             .productCode("vpc")
+     *             .noticeType("3")
+     *             .effectiveTime("2023-05-22T16:00:00Z")
+     *             .expireTime("2024-09-15T00:08:32Z")
+     *             .desireValue("1")
+     *             .reason("")
+     *             .quotaActionCode("vpc_whitelist/ha_vip_whitelist")
+     *             .auditMode("Sync")
+     *             .envLanguage("zh")
+     *             .quotaCategory("WhiteListLabel")
+     *             .build());
+     * 
+     *         final var default = QuotasFunctions.getQuotaApplications(GetQuotaApplicationsArgs.builder()
+     *             .productCode("vpc")
+     *             .enableDetails("true")
+     *             .quotaCategory(defaultQuotaApplication.quotaCategory())
+     *             .ids(defaultQuotaApplication.id())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getQuotaApplications(GetQuotaApplicationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:quotas/getQuotaApplications:getQuotaApplications", TypeShape.of(GetQuotaApplicationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Quotas Quota Applications of the current Alibaba Cloud user. * @@ -726,6 +842,54 @@ public static CompletableFuture getQuotasPlain(GetQuotasPlainAr public static Output getQuotas(GetQuotasArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:quotas/getQuotas:getQuotas", TypeShape.of(GetQuotasResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Quotas Quotas of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.115.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.quotas.QuotasFunctions;
+     * import com.pulumi.alicloud.quotas.inputs.GetQuotasArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = QuotasFunctions.getQuotas(GetQuotasArgs.builder()
+     *             .productCode("ecs")
+     *             .nameRegex("专有宿主机总数量上限")
+     *             .build());
+     * 
+     *         ctx.export("firstQuotasQuotaId", example.applyValue(getQuotasResult -> getQuotasResult.quotas()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getQuotas(GetQuotasArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:quotas/getQuotas:getQuotas", TypeShape.of(GetQuotasResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Quotas Quotas of the current Alibaba Cloud user. * @@ -1179,6 +1343,87 @@ public static CompletableFuture getTemplateApplic public static Output getTemplateApplications(GetTemplateApplicationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:quotas/getTemplateApplications:getTemplateApplications", TypeShape.of(GetTemplateApplicationsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Quotas Template Applications available to the user.[What is Template Applications](https://www.alibabacloud.com/help/en/quota-center/developer-reference/api-quotas-2020-05-10-createquotaapplicationsfortemplate) + * + * > **NOTE:** Available since v1.214.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
+     * import com.pulumi.alicloud.resourcemanager.inputs.GetAccountsArgs;
+     * import com.pulumi.alicloud.quotas.TemplateApplications;
+     * import com.pulumi.alicloud.quotas.TemplateApplicationsArgs;
+     * import com.pulumi.alicloud.quotas.inputs.TemplateApplicationsDimensionArgs;
+     * import com.pulumi.alicloud.quotas.QuotasFunctions;
+     * import com.pulumi.alicloud.quotas.inputs.GetTemplateApplicationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ResourcemanagerFunctions.getAccounts(GetAccountsArgs.builder()
+     *             .status("CreateSuccess")
+     *             .build());
+     * 
+     *         var defaultTemplateApplications = new TemplateApplications("defaultTemplateApplications", TemplateApplicationsArgs.builder()
+     *             .quotaActionCode("vpc_whitelist/ha_vip_whitelist")
+     *             .productCode("vpc")
+     *             .quotaCategory("FlowControl")
+     *             .aliyunUids(default_.ids()[0])
+     *             .desireValue(6)
+     *             .noticeType("0")
+     *             .envLanguage("zh")
+     *             .reason("example")
+     *             .dimensions(            
+     *                 TemplateApplicationsDimensionArgs.builder()
+     *                     .key("apiName")
+     *                     .value("GetProductQuotaDimension")
+     *                     .build(),
+     *                 TemplateApplicationsDimensionArgs.builder()
+     *                     .key("apiVersion")
+     *                     .value("2020-05-10")
+     *                     .build(),
+     *                 TemplateApplicationsDimensionArgs.builder()
+     *                     .key("regionId")
+     *                     .value("cn-hangzhou")
+     *                     .build())
+     *             .build());
+     * 
+     *         final var defaultGetTemplateApplications = QuotasFunctions.getTemplateApplications(GetTemplateApplicationsArgs.builder()
+     *             .ids(defaultTemplateApplications.id())
+     *             .productCode("vpc")
+     *             .quotaActionCode("vpc_whitelist/ha_vip_whitelist")
+     *             .quotaCategory("FlowControl")
+     *             .build());
+     * 
+     *         ctx.export("alicloudQuotasTemplateApplicationsExampleId", defaultGetTemplateApplications.applyValue(getTemplateApplicationsResult -> getTemplateApplicationsResult).applyValue(defaultGetTemplateApplications -> defaultGetTemplateApplications.applyValue(getTemplateApplicationsResult -> getTemplateApplicationsResult.applications()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTemplateApplications(GetTemplateApplicationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:quotas/getTemplateApplications:getTemplateApplications", TypeShape.of(GetTemplateApplicationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Quotas Template Applications available to the user.[What is Template Applications](https://www.alibabacloud.com/help/en/quota-center/developer-reference/api-quotas-2020-05-10-createquotaapplicationsfortemplate) * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/ram/RamFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/ram/RamFunctions.java index aa5d10b10a..9e12921997 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/ram/RamFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/ram/RamFunctions.java @@ -32,6 +32,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class RamFunctions { @@ -260,6 +261,51 @@ public static CompletableFuture getAccountAliasPlain(GetA public static Output getAccountAlias(GetAccountAliasArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ram/getAccountAlias:getAccountAlias", TypeShape.of(GetAccountAliasResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides an alias for the Alibaba Cloud account. + * + * > **NOTE:** Available since v1.0.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ram.RamFunctions;
+     * import com.pulumi.alicloud.ram.inputs.GetAccountAliasArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var aliasDs = RamFunctions.getAccountAlias(GetAccountAliasArgs.builder()
+     *             .outputFile("alias.txt")
+     *             .build());
+     * 
+     *         ctx.export("accountAlias", aliasDs.applyValue(getAccountAliasResult -> getAccountAliasResult.accountAlias()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccountAlias(GetAccountAliasArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ram/getAccountAlias:getAccountAlias", TypeShape.of(GetAccountAliasResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides an alias for the Alibaba Cloud account. * @@ -320,6 +366,9 @@ public static CompletableFuture getAccountAliasesPlain( public static Output getAccountAliases(GetAccountAliasesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ram/getAccountAliases:getAccountAliases", TypeShape.of(GetAccountAliasesResult.class), args, Utilities.withVersion(options)); } + public static Output getAccountAliases(GetAccountAliasesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ram/getAccountAliases:getAccountAliases", TypeShape.of(GetAccountAliasesResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getAccountAliasesPlain(GetAccountAliasesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:ram/getAccountAliases:getAccountAliases", TypeShape.of(GetAccountAliasesResult.class), args, Utilities.withVersion(options)); } @@ -558,6 +607,53 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr public static Output getGroups(GetGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ram/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of RAM Groups in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available since v1.0.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ram.RamFunctions;
+     * import com.pulumi.alicloud.ram.inputs.GetGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var groupsDs = RamFunctions.getGroups(GetGroupsArgs.builder()
+     *             .outputFile("groups.txt")
+     *             .userName("user1")
+     *             .nameRegex("^group[0-9]*")
+     *             .build());
+     * 
+     *         ctx.export("firstGroupName", groupsDs.applyValue(getGroupsResult -> getGroupsResult.groups()[0].name()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGroups(GetGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ram/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of RAM Groups in an Alibaba Cloud account according to the specified filters. * @@ -850,7 +946,343 @@ public static Output getPolicies(GetPoliciesArgs args, Invoke * * > **NOTE:** Available since v1.0.0+. * - * ## Example Usage + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ram.RamFunctions;
+     * import com.pulumi.alicloud.ram.inputs.GetPoliciesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policiesDs = RamFunctions.getPolicies(GetPoliciesArgs.builder()
+     *             .outputFile("policies.txt")
+     *             .userName("user1")
+     *             .groupName("group1")
+     *             .type("System")
+     *             .build());
+     * 
+     *         ctx.export("firstPolicyName", policiesDs.applyValue(getPoliciesResult -> getPoliciesResult.policies()[0].name()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPolicies(GetPoliciesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ram/getPolicies:getPolicies", TypeShape.of(GetPoliciesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides a list of RAM policies in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available since v1.0.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ram.RamFunctions;
+     * import com.pulumi.alicloud.ram.inputs.GetPoliciesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policiesDs = RamFunctions.getPolicies(GetPoliciesArgs.builder()
+     *             .outputFile("policies.txt")
+     *             .userName("user1")
+     *             .groupName("group1")
+     *             .type("System")
+     *             .build());
+     * 
+     *         ctx.export("firstPolicyName", policiesDs.applyValue(getPoliciesResult -> getPoliciesResult.policies()[0].name()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getPoliciesPlain(GetPoliciesPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:ram/getPolicies:getPolicies", TypeShape.of(GetPoliciesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source Generates a RAM policy document of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.184.0+. + * + * ## Example Usage + * + * ### Basic Example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ram.RamFunctions;
+     * import com.pulumi.alicloud.ram.inputs.GetPolicyDocumentArgs;
+     * import com.pulumi.alicloud.ram.Policy;
+     * import com.pulumi.alicloud.ram.PolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var basicExample = RamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
+     *             .version("1")
+     *             .statements(GetPolicyDocumentStatementArgs.builder()
+     *                 .effect("Allow")
+     *                 .actions("oss:*")
+     *                 .resources(                
+     *                     "acs:oss:*:*:myphotos",
+     *                     "acs:oss:*:*:myphotos/*")
+     *                 .build())
+     *             .build());
+     * 
+     *         var default_ = new Policy("default", PolicyArgs.builder()
+     *             .policyName("tf-example")
+     *             .policyDocument(basicExample.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.document()))
+     *             .force(true)
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * `data.alicloud_ram_policy_document.basic_example.document` will evaluate to: + * + * ### Example Multiple Condition Keys and Values + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ram.RamFunctions;
+     * import com.pulumi.alicloud.ram.inputs.GetPolicyDocumentArgs;
+     * import com.pulumi.alicloud.ram.Policy;
+     * import com.pulumi.alicloud.ram.PolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var multipleCondition = RamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
+     *             .version("1")
+     *             .statements(            
+     *                 GetPolicyDocumentStatementArgs.builder()
+     *                     .effect("Allow")
+     *                     .actions(                    
+     *                         "oss:ListBuckets",
+     *                         "oss:GetBucketStat",
+     *                         "oss:GetBucketInfo",
+     *                         "oss:GetBucketTagging",
+     *                         "oss:GetBucketAcl")
+     *                     .resources("acs:oss:*:*:*")
+     *                     .build(),
+     *                 GetPolicyDocumentStatementArgs.builder()
+     *                     .effect("Allow")
+     *                     .actions(                    
+     *                         "oss:GetObject",
+     *                         "oss:GetObjectAcl")
+     *                     .resources("acs:oss:*:*:myphotos/hangzhou/2015/*")
+     *                     .build(),
+     *                 GetPolicyDocumentStatementArgs.builder()
+     *                     .effect("Allow")
+     *                     .actions("oss:ListObjects")
+     *                     .resources("acs:oss:*:*:myphotos")
+     *                     .conditions(                    
+     *                         GetPolicyDocumentStatementConditionArgs.builder()
+     *                             .operator("StringLike")
+     *                             .variable("oss:Delimiter")
+     *                             .values("/")
+     *                             .build(),
+     *                         GetPolicyDocumentStatementConditionArgs.builder()
+     *                             .operator("StringLike")
+     *                             .variable("oss:Prefix")
+     *                             .values(                            
+     *                                 "",
+     *                                 "hangzhou/",
+     *                                 "hangzhou/2015/*")
+     *                             .build())
+     *                     .build())
+     *             .build());
+     * 
+     *         var policy = new Policy("policy", PolicyArgs.builder()
+     *             .policyName("tf-example-condition")
+     *             .policyDocument(multipleCondition.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.document()))
+     *             .force(true)
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * `data.alicloud_ram_policy_document.multiple_condition.document` will evaluate to: + * + * ### Example Assume-Role Policy with RAM Principal + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ram.RamFunctions;
+     * import com.pulumi.alicloud.ram.inputs.GetPolicyDocumentArgs;
+     * import com.pulumi.alicloud.ram.Role;
+     * import com.pulumi.alicloud.ram.RoleArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ramExample = RamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
+     *             .statements(GetPolicyDocumentStatementArgs.builder()
+     *                 .effect("Allow")
+     *                 .actions("sts:AssumeRole")
+     *                 .principals(GetPolicyDocumentStatementPrincipalArgs.builder()
+     *                     .entity("RAM")
+     *                     .identifiers("acs:ram::123456789012****:root")
+     *                     .build())
+     *                 .build())
+     *             .build());
+     * 
+     *         var role = new Role("role", RoleArgs.builder()
+     *             .name("tf-example-role-ram")
+     *             .document(ramExample.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.document()))
+     *             .force(true)
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * `data.alicloud_ram_policy_document.ram_example.document` will evaluate to: + * + * ### Example Assume-Role Policy with Service Principal + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ram.RamFunctions;
+     * import com.pulumi.alicloud.ram.inputs.GetPolicyDocumentArgs;
+     * import com.pulumi.alicloud.ram.Role;
+     * import com.pulumi.alicloud.ram.RoleArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var serviceExample = RamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
+     *             .statements(GetPolicyDocumentStatementArgs.builder()
+     *                 .effect("Allow")
+     *                 .actions("sts:AssumeRole")
+     *                 .principals(GetPolicyDocumentStatementPrincipalArgs.builder()
+     *                     .entity("Service")
+     *                     .identifiers("ecs.aliyuncs.com")
+     *                     .build())
+     *                 .build())
+     *             .build());
+     * 
+     *         var role = new Role("role", RoleArgs.builder()
+     *             .name("tf-example-role-service")
+     *             .document(serviceExample.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.document()))
+     *             .force(true)
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * `data.alicloud_ram_policy_document.service_example.document` will evaluate to: + * + * ### Example Assume-Role Policy with Federated Principal * * <!--Start PulumiCodeChooser --> *
@@ -861,7 +1293,9 @@ public static Output getPolicies(GetPoliciesArgs args, Invoke
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.alicloud.ram.RamFunctions;
-     * import com.pulumi.alicloud.ram.inputs.GetPoliciesArgs;
+     * import com.pulumi.alicloud.ram.inputs.GetPolicyDocumentArgs;
+     * import com.pulumi.alicloud.ram.Role;
+     * import com.pulumi.alicloud.ram.RoleArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -875,23 +1309,39 @@ public static Output getPolicies(GetPoliciesArgs args, Invoke
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var policiesDs = RamFunctions.getPolicies(GetPoliciesArgs.builder()
-     *             .outputFile("policies.txt")
-     *             .userName("user1")
-     *             .groupName("group1")
-     *             .type("System")
+     *         final var federatedExample = RamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
+     *             .statements(GetPolicyDocumentStatementArgs.builder()
+     *                 .effect("Allow")
+     *                 .actions("sts:AssumeRole")
+     *                 .principals(GetPolicyDocumentStatementPrincipalArgs.builder()
+     *                     .entity("Federated")
+     *                     .identifiers("acs:ram::123456789012****:saml-provider/testprovider")
+     *                     .build())
+     *                 .conditions(GetPolicyDocumentStatementConditionArgs.builder()
+     *                     .operator("StringEquals")
+     *                     .variable("saml:recipient")
+     *                     .values("https://signin.aliyun.com/saml-role/sso")
+     *                     .build())
+     *                 .build())
+     *             .build());
+     * 
+     *         var role = new Role("role", RoleArgs.builder()
+     *             .name("tf-example-role-federated")
+     *             .document(federatedExample.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.document()))
+     *             .force(true)
      *             .build());
      * 
-     *         ctx.export("firstPolicyName", policiesDs.applyValue(getPoliciesResult -> getPoliciesResult.policies()[0].name()));
      *     }
      * }
      * }
      * 
* <!--End PulumiCodeChooser --> * + * `data.alicloud_ram_policy_document.federated_example.document` will evaluate to: + * */ - public static CompletableFuture getPoliciesPlain(GetPoliciesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:ram/getPolicies:getPolicies", TypeShape.of(GetPoliciesResult.class), args, Utilities.withVersion(options)); + public static Output getPolicyDocument() { + return getPolicyDocument(GetPolicyDocumentArgs.Empty, InvokeOptions.Empty); } /** * This data source Generates a RAM policy document of the current Alibaba Cloud user. @@ -1196,8 +1646,8 @@ public static CompletableFuture getPoliciesPlain(GetPoliciesP * `data.alicloud_ram_policy_document.federated_example.document` will evaluate to: * */ - public static Output getPolicyDocument() { - return getPolicyDocument(GetPolicyDocumentArgs.Empty, InvokeOptions.Empty); + public static CompletableFuture getPolicyDocumentPlain() { + return getPolicyDocumentPlain(GetPolicyDocumentPlainArgs.Empty, InvokeOptions.Empty); } /** * This data source Generates a RAM policy document of the current Alibaba Cloud user. @@ -1502,8 +1952,8 @@ public static Output getPolicyDocument() { * `data.alicloud_ram_policy_document.federated_example.document` will evaluate to: * */ - public static CompletableFuture getPolicyDocumentPlain() { - return getPolicyDocumentPlain(GetPolicyDocumentPlainArgs.Empty, InvokeOptions.Empty); + public static Output getPolicyDocument(GetPolicyDocumentArgs args) { + return getPolicyDocument(args, InvokeOptions.Empty); } /** * This data source Generates a RAM policy document of the current Alibaba Cloud user. @@ -1808,8 +2258,8 @@ public static CompletableFuture getPolicyDocumentPlain( * `data.alicloud_ram_policy_document.federated_example.document` will evaluate to: * */ - public static Output getPolicyDocument(GetPolicyDocumentArgs args) { - return getPolicyDocument(args, InvokeOptions.Empty); + public static CompletableFuture getPolicyDocumentPlain(GetPolicyDocumentPlainArgs args) { + return getPolicyDocumentPlain(args, InvokeOptions.Empty); } /** * This data source Generates a RAM policy document of the current Alibaba Cloud user. @@ -2114,8 +2564,8 @@ public static Output getPolicyDocument(GetPolicyDocumen * `data.alicloud_ram_policy_document.federated_example.document` will evaluate to: * */ - public static CompletableFuture getPolicyDocumentPlain(GetPolicyDocumentPlainArgs args) { - return getPolicyDocumentPlain(args, InvokeOptions.Empty); + public static Output getPolicyDocument(GetPolicyDocumentArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:ram/getPolicyDocument:getPolicyDocument", TypeShape.of(GetPolicyDocumentResult.class), args, Utilities.withVersion(options)); } /** * This data source Generates a RAM policy document of the current Alibaba Cloud user. @@ -2420,7 +2870,7 @@ public static CompletableFuture getPolicyDocumentPlain( * `data.alicloud_ram_policy_document.federated_example.document` will evaluate to: * */ - public static Output getPolicyDocument(GetPolicyDocumentArgs args, InvokeOptions options) { + public static Output getPolicyDocument(GetPolicyDocumentArgs args, InvokeOutputOptions options) { return Deployment.getInstance().invoke("alicloud:ram/getPolicyDocument:getPolicyDocument", TypeShape.of(GetPolicyDocumentResult.class), args, Utilities.withVersion(options)); } /** @@ -2969,6 +3419,54 @@ public static CompletableFuture getRolesPlain(GetRolesPlainArgs public static Output getRoles(GetRolesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ram/getRoles:getRoles", TypeShape.of(GetRolesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of RAM Roles in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available since v1.0.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ram.RamFunctions;
+     * import com.pulumi.alicloud.ram.inputs.GetRolesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var rolesDs = RamFunctions.getRoles(GetRolesArgs.builder()
+     *             .outputFile("roles.txt")
+     *             .nameRegex(".*test.*")
+     *             .policyName("AliyunACSDefaultAccess")
+     *             .policyType("Custom")
+     *             .build());
+     * 
+     *         ctx.export("firstRoleId", rolesDs.applyValue(getRolesResult -> getRolesResult.roles()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRoles(GetRolesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ram/getRoles:getRoles", TypeShape.of(GetRolesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of RAM Roles in an Alibaba Cloud account according to the specified filters. * @@ -3257,6 +3755,54 @@ public static CompletableFuture getSamlProvidersPlain(Ge public static Output getSamlProviders(GetSamlProvidersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ram/getSamlProviders:getSamlProviders", TypeShape.of(GetSamlProvidersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ram Saml Providers of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.114.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ram.RamFunctions;
+     * import com.pulumi.alicloud.ram.inputs.GetSamlProvidersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = RamFunctions.getSamlProviders(GetSamlProvidersArgs.builder()
+     *             .ids("samlProviderName")
+     *             .nameRegex("tf-testAcc")
+     *             .build());
+     * 
+     *         ctx.export("firstRamSamlProviderId", example.applyValue(getSamlProvidersResult -> getSamlProvidersResult.providers()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSamlProviders(GetSamlProvidersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ram/getSamlProviders:getSamlProviders", TypeShape.of(GetSamlProvidersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ram Saml Providers of the current Alibaba Cloud user. * @@ -3950,6 +4496,114 @@ public static Output getUsers(GetUsersArgs args, InvokeOptions o * <!--End PulumiCodeChooser --> * */ + public static Output getUsers(GetUsersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ram/getUsers:getUsers", TypeShape.of(GetUsersResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides a list of RAM users in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available since v1.0.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ram.Group;
+     * import com.pulumi.alicloud.ram.GroupArgs;
+     * import com.pulumi.alicloud.ram.User;
+     * import com.pulumi.alicloud.ram.UserArgs;
+     * import com.pulumi.alicloud.ram.GroupMembership;
+     * import com.pulumi.alicloud.ram.GroupMembershipArgs;
+     * import com.pulumi.alicloud.ram.Policy;
+     * import com.pulumi.alicloud.ram.PolicyArgs;
+     * import com.pulumi.alicloud.ram.UserPolicyAttachment;
+     * import com.pulumi.alicloud.ram.UserPolicyAttachmentArgs;
+     * import com.pulumi.alicloud.ram.RamFunctions;
+     * import com.pulumi.alicloud.ram.inputs.GetUsersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App }{{@code
+     *     public static void main(String[] args) }{{@code
+     *         Pulumi.run(App::stack);
+     *     }}{@code
+     * 
+     *     public static void stack(Context ctx) }{{@code
+     *         var default_ = new Group("default", GroupArgs.builder()
+     *             .name("group1")
+     *             .comments("group comments")
+     *             .force(true)
+     *             .build());
+     * 
+     *         var defaultUser = new User("defaultUser", UserArgs.builder()
+     *             .name("user-example")
+     *             .displayName("displayname")
+     *             .mobile("86-18888888888")
+     *             .email("hello.uuu}{@literal @}{@code aaa.com")
+     *             .comments("yoyoyo")
+     *             .build());
+     * 
+     *         var defaultGroupMembership = new GroupMembership("defaultGroupMembership", GroupMembershipArgs.builder()
+     *             .groupName(default_.name())
+     *             .userNames(defaultUser.name())
+     *             .build());
+     * 
+     *         var defaultPolicy = new Policy("defaultPolicy", PolicyArgs.builder()
+     *             .policyName("ram-policy-example")
+     *             .policyDocument("""
+     * 			}{{@code
+     * 				"Statement": [
+     * 				 }{{@code
+     * 					"Action": [
+     * 					"oss:ListObjects",
+     * 					"oss:ListObjects"
+     * 			  		],
+     * 			  		"Effect": "Deny",
+     * 			  		"Resource": [
+     * 						"acs:oss:*:*:mybucket",
+     * 						"acs:oss:*:*:mybucket/*"
+     * 			  		]
+     * 				 }}{@code
+     * 		  		],
+     * 				"Version": "1"
+     * 			}}{@code
+     *             """)
+     *             .description("this is a policy example")
+     *             .force(true)
+     *             .build());
+     * 
+     *         var defaultUserPolicyAttachment = new UserPolicyAttachment("defaultUserPolicyAttachment", UserPolicyAttachmentArgs.builder()
+     *             .policyName(defaultPolicy.policyName())
+     *             .userName(defaultUser.name())
+     *             .policyType(defaultPolicy.type())
+     *             .build());
+     * 
+     *         final var usersDs = RamFunctions.getUsers(GetUsersArgs.builder()
+     *             .outputFile("users.txt")
+     *             .groupName(default_.name())
+     *             .policyName(defaultPolicy.policyName())
+     *             .policyType("Custom")
+     *             .nameRegex(defaultUser.name())
+     *             .build());
+     * 
+     *         ctx.export("firstUserId", usersDs.applyValue(getUsersResult -> getUsersResult).applyValue(usersDs -> usersDs.applyValue(getUsersResult -> getUsersResult.users()[0].id())));
+     *     }}{@code
+     * }}{@code
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ public static CompletableFuture getUsersPlain(GetUsersPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:ram/getUsers:getUsers", TypeShape.of(GetUsersResult.class), args, Utilities.withVersion(options)); } diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/rdc/RdcFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/rdc/RdcFunctions.java index 4e13197686..bbabcd5e64 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/rdc/RdcFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/rdc/RdcFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class RdcFunctions { @@ -319,6 +320,67 @@ public static CompletableFuture getOrganizationsPlain(Ge public static Output getOrganizations(GetOrganizationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:rdc/getOrganizations:getOrganizations", TypeShape.of(GetOrganizationsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Rdc Organizations of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.137.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.rdc.Organization;
+     * import com.pulumi.alicloud.rdc.OrganizationArgs;
+     * import com.pulumi.alicloud.rdc.RdcFunctions;
+     * import com.pulumi.alicloud.rdc.inputs.GetOrganizationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("tf-testAccOrganizations-Organizations");
+     *         var default_ = new Organization("default", OrganizationArgs.builder()
+     *             .organizationName(name)
+     *             .source(name)
+     *             .build());
+     * 
+     *         final var ids = RdcFunctions.getOrganizations(GetOrganizationsArgs.builder()
+     *             .ids(default_.id())
+     *             .build());
+     * 
+     *         ctx.export("rdcOrganizationId1", ids.applyValue(getOrganizationsResult -> getOrganizationsResult).applyValue(ids -> ids.applyValue(getOrganizationsResult -> getOrganizationsResult.id())));
+     *         final var nameRegex = RdcFunctions.getOrganizations(GetOrganizationsArgs.builder()
+     *             .nameRegex("^my-Organization")
+     *             .build());
+     * 
+     *         ctx.export("rdcOrganizationId2", nameRegex.applyValue(getOrganizationsResult -> getOrganizationsResult.id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getOrganizations(GetOrganizationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:rdc/getOrganizations:getOrganizations", TypeShape.of(GetOrganizationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Rdc Organizations of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/rds/RdsFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/rds/RdsFunctions.java index 6c8c77740b..19b5c775a2 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/rds/RdsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/rds/RdsFunctions.java @@ -53,6 +53,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class RdsFunctions { @@ -200,6 +201,54 @@ public static CompletableFuture getAccountsPlain(GetAccountsP public static Output getAccounts(GetAccountsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:rds/getAccounts:getAccounts", TypeShape.of(GetAccountsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Rds Accounts of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.120.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.rds.RdsFunctions;
+     * import com.pulumi.alicloud.rds.inputs.GetAccountsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = RdsFunctions.getAccounts(GetAccountsArgs.builder()
+     *             .dbInstanceId("example_value")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstRdsAccountId", example.applyValue(getAccountsResult -> getAccountsResult.accounts()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccounts(GetAccountsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:rds/getAccounts:getAccounts", TypeShape.of(GetAccountsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Rds Accounts of the current Alibaba Cloud user. * @@ -386,6 +435,52 @@ public static CompletableFuture getCharacterSetNames public static Output getCharacterSetNames(GetCharacterSetNamesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:rds/getCharacterSetNames:getCharacterSetNames", TypeShape.of(GetCharacterSetNamesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source is the character set supported by querying RDS instances. + * + * > **NOTE:** Available in v1.198.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.rds.RdsFunctions;
+     * import com.pulumi.alicloud.rds.inputs.GetCharacterSetNamesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var names = RdsFunctions.getCharacterSetNames(GetCharacterSetNamesArgs.builder()
+     *             .engine("MySQL")
+     *             .build());
+     * 
+     *         ctx.export("firstRdsCharacterSetNames", names.applyValue(getCharacterSetNamesResult -> getCharacterSetNamesResult.names()[0]));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCharacterSetNames(GetCharacterSetNamesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:rds/getCharacterSetNames:getCharacterSetNames", TypeShape.of(GetCharacterSetNamesResult.class), args, Utilities.withVersion(options)); + } /** * This data source is the character set supported by querying RDS instances. * @@ -579,6 +674,55 @@ public static CompletableFuture getClassDetailsPlain(GetC public static Output getClassDetails(GetClassDetailsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:rds/getClassDetails:getClassDetails", TypeShape.of(GetClassDetailsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides details of the Rds specifications of current Alibaba Cloud users. + * + * For information on RDS class details and how to use it, please refer to [What is RDS class details](https://www.alibabacloud.com/help/en/rds/developer-reference/api-rds-2014-08-15-describeclassdetails). + * + * > **NOTE:** Available since v1.209.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.rds.RdsFunctions;
+     * import com.pulumi.alicloud.rds.inputs.GetClassDetailsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = RdsFunctions.getClassDetails(GetClassDetailsArgs.builder()
+     *             .commodityCode("bards")
+     *             .classCode("mysql.n4.medium.2c")
+     *             .engineVersion("8.0")
+     *             .engine("MySQL")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getClassDetails(GetClassDetailsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:rds/getClassDetails:getClassDetails", TypeShape.of(GetClassDetailsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides details of the Rds specifications of current Alibaba Cloud users. * @@ -863,6 +1007,53 @@ public static CompletableFuture getCollationTimeZon public static Output getCollationTimeZones(GetCollationTimeZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:rds/getCollationTimeZones:getCollationTimeZones", TypeShape.of(GetCollationTimeZonesResult.class), args, Utilities.withVersion(options)); } + /** + * Operation to query the character set collations and time zones available for use in ApsaraDB RDS. + * + * > **NOTE:** Available in v1.198.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.rds.RdsFunctions;
+     * import com.pulumi.alicloud.rds.inputs.GetCollationTimeZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var zones = RdsFunctions.getCollationTimeZones(GetCollationTimeZonesArgs.builder()
+     *             .outputFile("./classes.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstRdsCollationTimeZones", zones.applyValue(getCollationTimeZonesResult -> getCollationTimeZonesResult.collationTimeZones()[0]));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCollationTimeZones(GetCollationTimeZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:rds/getCollationTimeZones:getCollationTimeZones", TypeShape.of(GetCollationTimeZonesResult.class), args, Utilities.withVersion(options)); + } /** * Operation to query the character set collations and time zones available for use in ApsaraDB RDS. * @@ -1057,6 +1248,55 @@ public static CompletableFuture getCrossRegionBacku public static Output getCrossRegionBackups(GetCrossRegionBackupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:rds/getCrossRegionBackups:getCrossRegionBackups", TypeShape.of(GetCrossRegionBackupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Rds Parameter Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.196.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.rds.RdsFunctions;
+     * import com.pulumi.alicloud.rds.inputs.GetCrossRegionBackupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var backups = RdsFunctions.getCrossRegionBackups(GetCrossRegionBackupsArgs.builder()
+     *             .dbInstanceId("example_value")
+     *             .startTime("2022-12-01T00:00:00Z")
+     *             .endTime("2022-12-16T00:00:00Z")
+     *             .build());
+     * 
+     *         ctx.export("firstRdsCrossRegionBackups", backups.applyValue(getCrossRegionBackupsResult -> getCrossRegionBackupsResult.backups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCrossRegionBackups(GetCrossRegionBackupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:rds/getCrossRegionBackups:getCrossRegionBackups", TypeShape.of(GetCrossRegionBackupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Rds Parameter Groups of the current Alibaba Cloud user. * @@ -1326,6 +1566,50 @@ public static CompletableFuture getCrossRegionsPlain(GetC public static Output getCrossRegions(GetCrossRegionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:rds/getCrossRegions:getCrossRegions", TypeShape.of(GetCrossRegionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides an available area for remote disaster recovery for RDS. + * + * > **NOTE:** Available in v1.193.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.rds.RdsFunctions;
+     * import com.pulumi.alicloud.rds.inputs.GetCrossRegionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Declare the data source
+     *         final var crossRegions = RdsFunctions.getCrossRegions();
+     * 
+     *         ctx.export("firstRdsCrossRegions", regions.ids()[0]);
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCrossRegions(GetCrossRegionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:rds/getCrossRegions:getCrossRegions", TypeShape.of(GetCrossRegionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides an available area for remote disaster recovery for RDS. * @@ -1511,6 +1795,53 @@ public static CompletableFuture getInstanceClassInf public static Output getInstanceClassInfos(GetInstanceClassInfosArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:rds/getInstanceClassInfos:getInstanceClassInfos", TypeShape.of(GetInstanceClassInfosResult.class), args, Utilities.withVersion(options)); } + /** + * This data source operation to query the instance types that are available to specific instances of Alibaba Cloud. + * + * > **NOTE:** Available in v1.196.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.rds.RdsFunctions;
+     * import com.pulumi.alicloud.rds.inputs.GetInstanceClassInfosArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var resources = RdsFunctions.getInstanceClassInfos(GetInstanceClassInfosArgs.builder()
+     *             .commodityCode("bards")
+     *             .orderType("BUY")
+     *             .outputFile("./classes.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstDbInstanceClass", resources.applyValue(getInstanceClassInfosResult -> getInstanceClassInfosResult.infos()[0]));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceClassInfos(GetInstanceClassInfosArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:rds/getInstanceClassInfos:getInstanceClassInfos", TypeShape.of(GetInstanceClassInfosResult.class), args, Utilities.withVersion(options)); + } /** * This data source operation to query the instance types that are available to specific instances of Alibaba Cloud. * @@ -1798,6 +2129,54 @@ public static CompletableFuture getInstanceClassesPlai public static Output getInstanceClasses(GetInstanceClassesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:rds/getInstanceClasses:getInstanceClasses", TypeShape.of(GetInstanceClassesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the RDS instance classes resource available info of Alibaba Cloud. + * + * > **NOTE:** Available in v1.46.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.rds.RdsFunctions;
+     * import com.pulumi.alicloud.rds.inputs.GetInstanceClassesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var resources = RdsFunctions.getInstanceClasses(GetInstanceClassesArgs.builder()
+     *             .instanceChargeType("PostPaid")
+     *             .engine("MySQL")
+     *             .engineVersion("5.6")
+     *             .outputFile("./classes.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstDbInstanceClass", resources.applyValue(getInstanceClassesResult -> getInstanceClassesResult.instanceClasses()[0].instanceClass()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceClasses(GetInstanceClassesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:rds/getInstanceClasses:getInstanceClasses", TypeShape.of(GetInstanceClassesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the RDS instance classes resource available info of Alibaba Cloud. * @@ -1891,8 +2270,56 @@ public static CompletableFuture getInstanceClassesPlai * <!--End PulumiCodeChooser --> * */ - public static Output getInstanceEngines() { - return getInstanceEngines(GetInstanceEnginesArgs.Empty, InvokeOptions.Empty); + public static Output getInstanceEngines() { + return getInstanceEngines(GetInstanceEnginesArgs.Empty, InvokeOptions.Empty); + } + /** + * This data source provides the RDS instance engines resource available info of Alibaba Cloud. + * + * > **NOTE:** Available in v1.46.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.rds.RdsFunctions;
+     * import com.pulumi.alicloud.rds.inputs.GetInstanceEnginesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var resources = RdsFunctions.getInstanceEngines(GetInstanceEnginesArgs.builder()
+     *             .instanceChargeType("PostPaid")
+     *             .engine("MySQL")
+     *             .engineVersion("5.6")
+     *             .outputFile("./engines.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstDbCategory", resources.applyValue(getInstanceEnginesResult -> getInstanceEnginesResult.instanceEngines()[0].category()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getInstanceEnginesPlain() { + return getInstanceEnginesPlain(GetInstanceEnginesPlainArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the RDS instance engines resource available info of Alibaba Cloud. @@ -1939,8 +2366,8 @@ public static Output getInstanceEngines() { * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getInstanceEnginesPlain() { - return getInstanceEnginesPlain(GetInstanceEnginesPlainArgs.Empty, InvokeOptions.Empty); + public static Output getInstanceEngines(GetInstanceEnginesArgs args) { + return getInstanceEngines(args, InvokeOptions.Empty); } /** * This data source provides the RDS instance engines resource available info of Alibaba Cloud. @@ -1987,8 +2414,8 @@ public static CompletableFuture getInstanceEnginesPlai * <!--End PulumiCodeChooser --> * */ - public static Output getInstanceEngines(GetInstanceEnginesArgs args) { - return getInstanceEngines(args, InvokeOptions.Empty); + public static CompletableFuture getInstanceEnginesPlain(GetInstanceEnginesPlainArgs args) { + return getInstanceEnginesPlain(args, InvokeOptions.Empty); } /** * This data source provides the RDS instance engines resource available info of Alibaba Cloud. @@ -2035,8 +2462,8 @@ public static Output getInstanceEngines(GetInstanceEng * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getInstanceEnginesPlain(GetInstanceEnginesPlainArgs args) { - return getInstanceEnginesPlain(args, InvokeOptions.Empty); + public static Output getInstanceEngines(GetInstanceEnginesArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:rds/getInstanceEngines:getInstanceEngines", TypeShape.of(GetInstanceEnginesResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the RDS instance engines resource available info of Alibaba Cloud. @@ -2083,7 +2510,7 @@ public static CompletableFuture getInstanceEnginesPlai * <!--End PulumiCodeChooser --> * */ - public static Output getInstanceEngines(GetInstanceEnginesArgs args, InvokeOptions options) { + public static Output getInstanceEngines(GetInstanceEnginesArgs args, InvokeOutputOptions options) { return Deployment.getInstance().invoke("alicloud:rds/getInstanceEngines:getInstanceEngines", TypeShape.of(GetInstanceEnginesResult.class), args, Utilities.withVersion(options)); } /** @@ -2389,6 +2816,57 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:rds/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * The `alicloud.rds.getInstances` data source provides a collection of RDS instances available in Alibaba Cloud account. + * Filters support regular expression for the instance name, searches by tags, and other filters which are listed below. + * + * > **NOTE:** Available since v1.7.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.rds.RdsFunctions;
+     * import com.pulumi.alicloud.rds.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var dbInstancesDs = RdsFunctions.getInstances(GetInstancesArgs.builder()
+     *             .nameRegex("data-\\d+")
+     *             .status("Running")
+     *             .tags(Map.ofEntries(
+     *                 Map.entry("type", "database"),
+     *                 Map.entry("size", "tiny")
+     *             ))
+     *             .build());
+     * 
+     *         ctx.export("firstDbInstanceId", dbInstancesDs.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:rds/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * The `alicloud.rds.getInstances` data source provides a collection of RDS instances available in Alibaba Cloud account. * Filters support regular expression for the instance name, searches by tags, and other filters which are listed below. @@ -2584,6 +3062,54 @@ public static CompletableFuture getModifyParameter public static Output getModifyParameterLogs(GetModifyParameterLogsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:rds/getModifyParameterLogs:getModifyParameterLogs", TypeShape.of(GetModifyParameterLogsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Rds Modify Parameter Logs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.174.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.rds.RdsFunctions;
+     * import com.pulumi.alicloud.rds.inputs.GetModifyParameterLogsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = RdsFunctions.getModifyParameterLogs(GetModifyParameterLogsArgs.builder()
+     *             .dbInstanceId("example_value")
+     *             .startTime("2022-06-04T13:56Z")
+     *             .endTime("2022-06-08T13:56Z")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getModifyParameterLogs(GetModifyParameterLogsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:rds/getModifyParameterLogs:getModifyParameterLogs", TypeShape.of(GetModifyParameterLogsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Rds Modify Parameter Logs of the current Alibaba Cloud user. * @@ -2773,6 +3299,53 @@ public static CompletableFuture getRdsBackupsPlain(GetRdsBa public static Output getRdsBackups(GetRdsBackupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:rds/getRdsBackups:getRdsBackups", TypeShape.of(GetRdsBackupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Rds Backups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.149.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.rds.RdsFunctions;
+     * import com.pulumi.alicloud.rds.inputs.GetRdsBackupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = RdsFunctions.getRdsBackups(GetRdsBackupsArgs.builder()
+     *             .dbInstanceId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("firstRdsBackupId", example.applyValue(getRdsBackupsResult -> getRdsBackupsResult.backups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRdsBackups(GetRdsBackupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:rds/getRdsBackups:getRdsBackups", TypeShape.of(GetRdsBackupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Rds Backups of the current Alibaba Cloud user. * @@ -2835,6 +3408,9 @@ public static CompletableFuture getRdsParameterGrou public static Output getRdsParameterGroups(GetRdsParameterGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:rds/getRdsParameterGroups:getRdsParameterGroups", TypeShape.of(GetRdsParameterGroupsResult.class), args, Utilities.withVersion(options)); } + public static Output getRdsParameterGroups(GetRdsParameterGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:rds/getRdsParameterGroups:getRdsParameterGroups", TypeShape.of(GetRdsParameterGroupsResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getRdsParameterGroupsPlain(GetRdsParameterGroupsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:rds/getRdsParameterGroups:getRdsParameterGroups", TypeShape.of(GetRdsParameterGroupsResult.class), args, Utilities.withVersion(options)); } @@ -2979,6 +3555,53 @@ public static CompletableFuture getSlotsPlain(GetSlotsPlainArgs public static Output getSlots(GetSlotsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:rds/getSlots:getSlots", TypeShape.of(GetSlotsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Rds Replication Slots of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.204.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.rds.RdsFunctions;
+     * import com.pulumi.alicloud.rds.inputs.GetSlotsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = RdsFunctions.getSlots(GetSlotsArgs.builder()
+     *             .dbInstanceId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("firstRdsSlotsName", example.applyValue(getSlotsResult -> getSlotsResult.slots()[0].slotName()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSlots(GetSlotsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:rds/getSlots:getSlots", TypeShape.of(GetSlotsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Rds Replication Slots of the current Alibaba Cloud user. * @@ -3266,6 +3889,54 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:rds/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides availability zones for RDS that can be accessed by an Alibaba Cloud account within the region configured in the provider. + * + * > **NOTE:** Available since v1.73.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.rds.RdsFunctions;
+     * import com.pulumi.alicloud.rds.inputs.GetZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = RdsFunctions.getZones(GetZonesArgs.builder()
+     *             .engine("MySQL")
+     *             .engineVersion("8.0")
+     *             .instanceChargeType("PostPaid")
+     *             .category("Basic")
+     *             .dbInstanceStorageType("cloud_essd")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:rds/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides availability zones for RDS that can be accessed by an Alibaba Cloud account within the region configured in the provider. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/resourcemanager/ResourcemanagerFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/resourcemanager/ResourcemanagerFunctions.java index 8a39d0c344..1035148985 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/resourcemanager/ResourcemanagerFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/resourcemanager/ResourcemanagerFunctions.java @@ -56,6 +56,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class ResourcemanagerFunctions { @@ -212,6 +213,57 @@ public static CompletableFuture getAccountDel public static Output getAccountDeletionCheckTask(GetAccountDeletionCheckTaskArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:resourcemanager/getAccountDeletionCheckTask:getAccountDeletionCheckTask", TypeShape.of(GetAccountDeletionCheckTaskResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open Resource Manager Account Deletion Check Task. + * + * For information about Resource Manager Account Deletion Check Task and how to use it, see [What is Resource Manager Account Deletion Check Task](https://www.alibabacloud.com/help/en/resource-management/latest/check-account-delete). + * + * > **NOTE:** Available in v1.187.0+. + * + * > **NOTE:** The member deletion feature is in invitational preview. You can contact the service manager of Alibaba Cloud to apply for a trial. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
+     * import com.pulumi.alicloud.resourcemanager.inputs.GetAccountDeletionCheckTaskArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var task = ResourcemanagerFunctions.getAccountDeletionCheckTask(GetAccountDeletionCheckTaskArgs.builder()
+     *             .accountId("your_account_id")
+     *             .build());
+     * 
+     *         ctx.export("abandonAbleChecksIds", task.applyValue(getAccountDeletionCheckTaskResult -> getAccountDeletionCheckTaskResult.abandonAbleChecks()).stream().map(element -> element.checkId()).collect(toList()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccountDeletionCheckTask(GetAccountDeletionCheckTaskArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:resourcemanager/getAccountDeletionCheckTask:getAccountDeletionCheckTask", TypeShape.of(GetAccountDeletionCheckTaskResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open Resource Manager Account Deletion Check Task. * @@ -478,6 +530,49 @@ public static CompletableFuture getAccountsPlain(GetAccountsP public static Output getAccounts(GetAccountsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:resourcemanager/getAccounts:getAccounts", TypeShape.of(GetAccountsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Resource Manager Accounts of the current Alibaba Cloud user. + * + * > **NOTE:** Available in 1.86.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
+     * import com.pulumi.alicloud.resourcemanager.inputs.GetAccountsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ResourcemanagerFunctions.getAccounts();
+     * 
+     *         ctx.export("firstAccountId", default_.accounts()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccounts(GetAccountsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:resourcemanager/getAccounts:getAccounts", TypeShape.of(GetAccountsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Resource Manager Accounts of the current Alibaba Cloud user. * @@ -761,6 +856,54 @@ public static CompletableFuture getControlPoliciesPlai public static Output getControlPolicies(GetControlPoliciesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:resourcemanager/getControlPolicies:getControlPolicies", TypeShape.of(GetControlPoliciesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Resource Manager Control Policies of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.120.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
+     * import com.pulumi.alicloud.resourcemanager.inputs.GetControlPoliciesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = ResourcemanagerFunctions.getControlPolicies(GetControlPoliciesArgs.builder()
+     *             .ids("example_value")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstResourceManagerControlPolicyId", example.applyValue(getControlPoliciesResult -> getControlPoliciesResult.policies()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getControlPolicies(GetControlPoliciesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:resourcemanager/getControlPolicies:getControlPolicies", TypeShape.of(GetControlPoliciesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Resource Manager Control Policies of the current Alibaba Cloud user. * @@ -950,6 +1093,53 @@ public static CompletableFuture getControlPol public static Output getControlPolicyAttachments(GetControlPolicyAttachmentsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:resourcemanager/getControlPolicyAttachments:getControlPolicyAttachments", TypeShape.of(GetControlPolicyAttachmentsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Resource Manager Control Policy Attachments of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.120.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
+     * import com.pulumi.alicloud.resourcemanager.inputs.GetControlPolicyAttachmentsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = ResourcemanagerFunctions.getControlPolicyAttachments(GetControlPolicyAttachmentsArgs.builder()
+     *             .targetId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("firstResourceManagerControlPolicyAttachmentId", example.applyValue(getControlPolicyAttachmentsResult -> getControlPolicyAttachmentsResult.attachments()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getControlPolicyAttachments(GetControlPolicyAttachmentsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:resourcemanager/getControlPolicyAttachments:getControlPolicyAttachments", TypeShape.of(GetControlPolicyAttachmentsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Resource Manager Control Policy Attachments of the current Alibaba Cloud user. * @@ -1232,6 +1422,53 @@ public static CompletableFuture getDelegatedAd public static Output getDelegatedAdministrators(GetDelegatedAdministratorsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:resourcemanager/getDelegatedAdministrators:getDelegatedAdministrators", TypeShape.of(GetDelegatedAdministratorsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Resource Manager Delegated Administrators of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.181.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
+     * import com.pulumi.alicloud.resourcemanager.inputs.GetDelegatedAdministratorsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = ResourcemanagerFunctions.getDelegatedAdministrators(GetDelegatedAdministratorsArgs.builder()
+     *             .ids("example_value")
+     *             .build());
+     * 
+     *         ctx.export("resourceManagerDelegatedAdministratorId1", ids.applyValue(getDelegatedAdministratorsResult -> getDelegatedAdministratorsResult.administrators()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDelegatedAdministrators(GetDelegatedAdministratorsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:resourcemanager/getDelegatedAdministrators:getDelegatedAdministrators", TypeShape.of(GetDelegatedAdministratorsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Resource Manager Delegated Administrators of the current Alibaba Cloud user. * @@ -1554,6 +1791,61 @@ public static CompletableFuture getFoldersPlain(GetFoldersPlai public static Output getFolders(GetFoldersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:resourcemanager/getFolders:getFolders", TypeShape.of(GetFoldersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Resource Manager Folders of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.84.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.resourcemanager.Folder;
+     * import com.pulumi.alicloud.resourcemanager.FolderArgs;
+     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
+     * import com.pulumi.alicloud.resourcemanager.inputs.GetFoldersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("terraform-example");
+     *         var default_ = new Folder("default", FolderArgs.builder()
+     *             .folderName(name)
+     *             .build());
+     * 
+     *         final var ids = ResourcemanagerFunctions.getFolders(GetFoldersArgs.builder()
+     *             .ids(default_.id())
+     *             .build());
+     * 
+     *         ctx.export("resourceManagerFolderId0", ids.applyValue(getFoldersResult -> getFoldersResult).applyValue(ids -> ids.applyValue(getFoldersResult -> getFoldersResult.folders()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getFolders(GetFoldersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:resourcemanager/getFolders:getFolders", TypeShape.of(GetFoldersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Resource Manager Folders of the current Alibaba Cloud user. * @@ -1824,6 +2116,49 @@ public static CompletableFuture getHandshakesPlain(GetHands public static Output getHandshakes(GetHandshakesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:resourcemanager/getHandshakes:getHandshakes", TypeShape.of(GetHandshakesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Resource Manager Handshakes of the current Alibaba Cloud user. + * + * > **NOTE:** Available in 1.86.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
+     * import com.pulumi.alicloud.resourcemanager.inputs.GetHandshakesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = ResourcemanagerFunctions.getHandshakes();
+     * 
+     *         ctx.export("firstHandshakeId", example.applyValue(getHandshakesResult -> getHandshakesResult.handshakes()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHandshakes(GetHandshakesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:resourcemanager/getHandshakes:getHandshakes", TypeShape.of(GetHandshakesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Resource Manager Handshakes of the current Alibaba Cloud user. * @@ -2102,6 +2437,53 @@ public static CompletableFuture getPoliciesPlain(GetPoliciesP public static Output getPolicies(GetPoliciesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:resourcemanager/getPolicies:getPolicies", TypeShape.of(GetPoliciesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Resource Manager Policies of the current Alibaba Cloud user. + * + * > **NOTE:** Available in 1.86.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
+     * import com.pulumi.alicloud.resourcemanager.inputs.GetPoliciesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = ResourcemanagerFunctions.getPolicies(GetPoliciesArgs.builder()
+     *             .nameRegex("tftest")
+     *             .descriptionRegex("tftest_policy")
+     *             .policyType("Custom")
+     *             .build());
+     * 
+     *         ctx.export("firstPolicyId", example.applyValue(getPoliciesResult -> getPoliciesResult.policies()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPolicies(GetPoliciesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:resourcemanager/getPolicies:getPolicies", TypeShape.of(GetPoliciesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Resource Manager Policies of the current Alibaba Cloud user. * @@ -2364,6 +2746,49 @@ public static CompletableFuture getPolicyAttachments public static Output getPolicyAttachments(GetPolicyAttachmentsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:resourcemanager/getPolicyAttachments:getPolicyAttachments", TypeShape.of(GetPolicyAttachmentsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Resource Manager Policy Attachments of the current Alibaba Cloud user. + * + * > **NOTE:** Available in 1.93.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
+     * import com.pulumi.alicloud.resourcemanager.inputs.GetPolicyAttachmentsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = ResourcemanagerFunctions.getPolicyAttachments();
+     * 
+     *         ctx.export("firstAttachmentId", example.applyValue(getPolicyAttachmentsResult -> getPolicyAttachmentsResult.attachments()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPolicyAttachments(GetPolicyAttachmentsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:resourcemanager/getPolicyAttachments:getPolicyAttachments", TypeShape.of(GetPolicyAttachmentsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Resource Manager Policy Attachments of the current Alibaba Cloud user. * @@ -2496,8 +2921,100 @@ public static Output getPolicyVersions(GetPolicyVersion * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getPolicyVersionsPlain(GetPolicyVersionsPlainArgs args) { - return getPolicyVersionsPlain(args, InvokeOptions.Empty); + public static CompletableFuture getPolicyVersionsPlain(GetPolicyVersionsPlainArgs args) { + return getPolicyVersionsPlain(args, InvokeOptions.Empty); + } + /** + * This data source provides the Resource Manager Policy Versions of the current Alibaba Cloud user. + * + * > **NOTE:** Available in 1.85.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
+     * import com.pulumi.alicloud.resourcemanager.inputs.GetPolicyVersionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ResourcemanagerFunctions.getPolicyVersions(GetPolicyVersionsArgs.builder()
+     *             .policyName("tftest")
+     *             .policyType("Custom")
+     *             .build());
+     * 
+     *         ctx.export("firstPolicyVersionId", default_.versions()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPolicyVersions(GetPolicyVersionsArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:resourcemanager/getPolicyVersions:getPolicyVersions", TypeShape.of(GetPolicyVersionsResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Resource Manager Policy Versions of the current Alibaba Cloud user. + * + * > **NOTE:** Available in 1.85.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
+     * import com.pulumi.alicloud.resourcemanager.inputs.GetPolicyVersionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ResourcemanagerFunctions.getPolicyVersions(GetPolicyVersionsArgs.builder()
+     *             .policyName("tftest")
+     *             .policyType("Custom")
+     *             .build());
+     * 
+     *         ctx.export("firstPolicyVersionId", default_.versions()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPolicyVersions(GetPolicyVersionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:resourcemanager/getPolicyVersions:getPolicyVersions", TypeShape.of(GetPolicyVersionsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Resource Manager Policy Versions of the current Alibaba Cloud user. @@ -2542,13 +3059,13 @@ public static CompletableFuture getPolicyVersionsPlain( * <!--End PulumiCodeChooser --> * */ - public static Output getPolicyVersions(GetPolicyVersionsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("alicloud:resourcemanager/getPolicyVersions:getPolicyVersions", TypeShape.of(GetPolicyVersionsResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getPolicyVersionsPlain(GetPolicyVersionsPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:resourcemanager/getPolicyVersions:getPolicyVersions", TypeShape.of(GetPolicyVersionsResult.class), args, Utilities.withVersion(options)); } /** - * This data source provides the Resource Manager Policy Versions of the current Alibaba Cloud user. + * This data source provides the Resource Manager Resource Directories of the current Alibaba Cloud user. * - * > **NOTE:** Available in 1.85.0+. + * > **NOTE:** Available in 1.86.0+. * * ## Example Usage * @@ -2561,7 +3078,7 @@ public static Output getPolicyVersions(GetPolicyVersion * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions; - * import com.pulumi.alicloud.resourcemanager.inputs.GetPolicyVersionsArgs; + * import com.pulumi.alicloud.resourcemanager.inputs.GetResourceDirectoriesArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -2575,12 +3092,9 @@ public static Output getPolicyVersions(GetPolicyVersion * } * * public static void stack(Context ctx) { - * final var default = ResourcemanagerFunctions.getPolicyVersions(GetPolicyVersionsArgs.builder() - * .policyName("tftest") - * .policyType("Custom") - * .build()); + * final var default = ResourcemanagerFunctions.getResourceDirectories(); * - * ctx.export("firstPolicyVersionId", default_.versions()[0].id()); + * ctx.export("resourceDirectoryId", default_.directories()[0].id()); * } * } * } @@ -2588,8 +3102,8 @@ public static Output getPolicyVersions(GetPolicyVersion * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getPolicyVersionsPlain(GetPolicyVersionsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:resourcemanager/getPolicyVersions:getPolicyVersions", TypeShape.of(GetPolicyVersionsResult.class), args, Utilities.withVersion(options)); + public static Output getResourceDirectories() { + return getResourceDirectories(GetResourceDirectoriesArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Resource Manager Resource Directories of the current Alibaba Cloud user. @@ -2631,8 +3145,8 @@ public static CompletableFuture getPolicyVersionsPlain( * <!--End PulumiCodeChooser --> * */ - public static Output getResourceDirectories() { - return getResourceDirectories(GetResourceDirectoriesArgs.Empty, InvokeOptions.Empty); + public static CompletableFuture getResourceDirectoriesPlain() { + return getResourceDirectoriesPlain(GetResourceDirectoriesPlainArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Resource Manager Resource Directories of the current Alibaba Cloud user. @@ -2674,8 +3188,8 @@ public static Output getResourceDirectories() { * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getResourceDirectoriesPlain() { - return getResourceDirectoriesPlain(GetResourceDirectoriesPlainArgs.Empty, InvokeOptions.Empty); + public static Output getResourceDirectories(GetResourceDirectoriesArgs args) { + return getResourceDirectories(args, InvokeOptions.Empty); } /** * This data source provides the Resource Manager Resource Directories of the current Alibaba Cloud user. @@ -2717,8 +3231,8 @@ public static CompletableFuture getResourceDirecto * <!--End PulumiCodeChooser --> * */ - public static Output getResourceDirectories(GetResourceDirectoriesArgs args) { - return getResourceDirectories(args, InvokeOptions.Empty); + public static CompletableFuture getResourceDirectoriesPlain(GetResourceDirectoriesPlainArgs args) { + return getResourceDirectoriesPlain(args, InvokeOptions.Empty); } /** * This data source provides the Resource Manager Resource Directories of the current Alibaba Cloud user. @@ -2760,8 +3274,8 @@ public static Output getResourceDirectories(GetRes * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getResourceDirectoriesPlain(GetResourceDirectoriesPlainArgs args) { - return getResourceDirectoriesPlain(args, InvokeOptions.Empty); + public static Output getResourceDirectories(GetResourceDirectoriesArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:resourcemanager/getResourceDirectories:getResourceDirectories", TypeShape.of(GetResourceDirectoriesResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Resource Manager Resource Directories of the current Alibaba Cloud user. @@ -2803,7 +3317,7 @@ public static CompletableFuture getResourceDirecto * <!--End PulumiCodeChooser --> * */ - public static Output getResourceDirectories(GetResourceDirectoriesArgs args, InvokeOptions options) { + public static Output getResourceDirectories(GetResourceDirectoriesArgs args, InvokeOutputOptions options) { return Deployment.getInstance().invoke("alicloud:resourcemanager/getResourceDirectories:getResourceDirectories", TypeShape.of(GetResourceDirectoriesResult.class), args, Utilities.withVersion(options)); } /** @@ -3084,6 +3598,53 @@ public static CompletableFuture getResourceGroupsPlain( public static Output getResourceGroups(GetResourceGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:resourcemanager/getResourceGroups:getResourceGroups", TypeShape.of(GetResourceGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides resource groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.84.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
+     * import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
+     *             .nameRegex("tf")
+     *             .build());
+     * 
+     *         ctx.export("firstResourceGroupId", example.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getResourceGroups(GetResourceGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:resourcemanager/getResourceGroups:getResourceGroups", TypeShape.of(GetResourceGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides resource groups of the current Alibaba Cloud user. * @@ -3278,6 +3839,55 @@ public static CompletableFuture getResourceSharesPlain( public static Output getResourceShares(GetResourceSharesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:resourcemanager/getResourceShares:getResourceShares", TypeShape.of(GetResourceSharesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Resource Manager Resource Shares of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.111.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
+     * import com.pulumi.alicloud.resourcemanager.inputs.GetResourceSharesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = ResourcemanagerFunctions.getResourceShares(GetResourceSharesArgs.builder()
+     *             .resourceShareOwner("Self")
+     *             .ids("example_value")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstResourceManagerResourceShareId", example.applyValue(getResourceSharesResult -> getResourceSharesResult.shares()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getResourceShares(GetResourceSharesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:resourcemanager/getResourceShares:getResourceShares", TypeShape.of(GetResourceSharesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Resource Manager Resource Shares of the current Alibaba Cloud user. * @@ -3552,6 +4162,51 @@ public static CompletableFuture getRolesPlain(GetRolesPlainArgs public static Output getRoles(GetRolesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:resourcemanager/getRoles:getRoles", TypeShape.of(GetRolesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Resource Manager Roles of the current Alibaba Cloud user. + * + * > **NOTE:** Available in 1.86.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
+     * import com.pulumi.alicloud.resourcemanager.inputs.GetRolesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = ResourcemanagerFunctions.getRoles(GetRolesArgs.builder()
+     *             .nameRegex("tftest")
+     *             .build());
+     * 
+     *         ctx.export("firstRoleId", example.applyValue(getRolesResult -> getRolesResult.roles()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRoles(GetRolesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:resourcemanager/getRoles:getRoles", TypeShape.of(GetRolesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Resource Manager Roles of the current Alibaba Cloud user. * @@ -3642,6 +4297,15 @@ public static CompletableFuture getSharedResourcesPlai public static Output getSharedResources(GetSharedResourcesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:resourcemanager/getSharedResources:getSharedResources", TypeShape.of(GetSharedResourcesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Resource Manager Shared Resources of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.111.0. + * + */ + public static Output getSharedResources(GetSharedResourcesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:resourcemanager/getSharedResources:getSharedResources", TypeShape.of(GetSharedResourcesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Resource Manager Shared Resources of the current Alibaba Cloud user. * @@ -4001,6 +4665,76 @@ public static CompletableFuture getSharedTargetsPlain(Ge public static Output getSharedTargets(GetSharedTargetsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:resourcemanager/getSharedTargets:getSharedTargets", TypeShape.of(GetSharedTargetsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Resource Manager Shared Targets of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.111.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
+     * import com.pulumi.alicloud.resourcemanager.inputs.GetAccountsArgs;
+     * import com.pulumi.alicloud.resourcemanager.ResourceShare;
+     * import com.pulumi.alicloud.resourcemanager.ResourceShareArgs;
+     * import com.pulumi.alicloud.resourcemanager.SharedTarget;
+     * import com.pulumi.alicloud.resourcemanager.SharedTargetArgs;
+     * import com.pulumi.alicloud.resourcemanager.inputs.GetSharedTargetsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("tf-example");
+     *         final var default = ResourcemanagerFunctions.getAccounts();
+     * 
+     *         var defaultResourceShare = new ResourceShare("defaultResourceShare", ResourceShareArgs.builder()
+     *             .resourceShareName(name)
+     *             .build());
+     * 
+     *         var defaultSharedTarget = new SharedTarget("defaultSharedTarget", SharedTargetArgs.builder()
+     *             .resourceShareId(defaultResourceShare.id())
+     *             .targetId(default_.ids()[0])
+     *             .build());
+     * 
+     *         final var ids = ResourcemanagerFunctions.getSharedTargets(GetSharedTargetsArgs.builder()
+     *             .ids(defaultSharedTarget.targetId())
+     *             .build());
+     * 
+     *         ctx.export("firstResourceManagerSharedTargetId", ids.applyValue(getSharedTargetsResult -> getSharedTargetsResult).applyValue(ids -> ids.applyValue(getSharedTargetsResult -> getSharedTargetsResult.targets()[0].id())));
+     *         final var resourceShareId = ResourcemanagerFunctions.getSharedTargets(GetSharedTargetsArgs.builder()
+     *             .resourceShareId(defaultSharedTarget.resourceShareId())
+     *             .build());
+     * 
+     *         ctx.export("secondResourceManagerSharedTargetId", resourceShareId.applyValue(getSharedTargetsResult -> getSharedTargetsResult).applyValue(resourceShareId -> resourceShareId.applyValue(getSharedTargetsResult -> getSharedTargetsResult.targets()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSharedTargets(GetSharedTargetsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:resourcemanager/getSharedTargets:getSharedTargets", TypeShape.of(GetSharedTargetsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Resource Manager Shared Targets of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/rocketmq/RocketmqFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/rocketmq/RocketmqFunctions.java index cc5aca8e86..d757e6b93b 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/rocketmq/RocketmqFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/rocketmq/RocketmqFunctions.java @@ -20,6 +20,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class RocketmqFunctions { @@ -56,6 +57,17 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr public static Output getGroups(GetGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:rocketmq/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of ONS Groups in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in 1.53.0+ + * + * ## Example Usage + * + */ + public static Output getGroups(GetGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:rocketmq/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of ONS Groups in an Alibaba Cloud account according to the specified filters. * @@ -347,6 +359,62 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:rocketmq/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of ONS Instances in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in 1.52.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.rocketmq.Instance;
+     * import com.pulumi.alicloud.rocketmq.InstanceArgs;
+     * import com.pulumi.alicloud.rocketmq.RocketmqFunctions;
+     * import com.pulumi.alicloud.rocketmq.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("onsInstanceDatasourceName");
+     *         var default_ = new Instance("default", InstanceArgs.builder()
+     *             .name(name)
+     *             .remark("default_ons_instance_remark")
+     *             .build());
+     * 
+     *         final var instancesDs = RocketmqFunctions.getInstances(GetInstancesArgs.builder()
+     *             .ids(default_.id())
+     *             .nameRegex(default_.name())
+     *             .outputFile("instances.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstInstanceId", instancesDs.applyValue(getInstancesResult -> getInstancesResult).applyValue(instancesDs -> instancesDs.applyValue(getInstancesResult -> getInstancesResult.instances()[0].instanceId())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:rocketmq/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of ONS Instances in an Alibaba Cloud account according to the specified filters. * @@ -633,6 +701,52 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:rocketmq/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open ONS service automatically. If the service has been opened, it will return opened. + * + * For information about ONS and how to use it, see [What is ONS](https://help.aliyun.com/product/29530.html). + * + * > **NOTE:** Available in v1.111.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.rocketmq.RocketmqFunctions;
+     * import com.pulumi.alicloud.rocketmq.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = RocketmqFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:rocketmq/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open ONS service automatically. If the service has been opened, it will return opened. * @@ -877,6 +991,72 @@ public static CompletableFuture getTopicsPlain(GetTopicsPlainAr public static Output getTopics(GetTopicsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:rocketmq/getTopics:getTopics", TypeShape.of(GetTopicsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of ONS Topics in an Alibaba Cloud account according to the specified filters. + * + * > **NOTE:** Available in 1.53.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.rocketmq.Instance;
+     * import com.pulumi.alicloud.rocketmq.InstanceArgs;
+     * import com.pulumi.alicloud.rocketmq.Topic;
+     * import com.pulumi.alicloud.rocketmq.TopicArgs;
+     * import com.pulumi.alicloud.rocketmq.RocketmqFunctions;
+     * import com.pulumi.alicloud.rocketmq.inputs.GetTopicsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("onsInstanceName");
+     *         final var topic = config.get("topic").orElse("onsTopicDatasourceName");
+     *         var default_ = new Instance("default", InstanceArgs.builder()
+     *             .instanceName(name)
+     *             .remark("default_ons_instance_remark")
+     *             .build());
+     * 
+     *         var defaultTopic = new Topic("defaultTopic", TopicArgs.builder()
+     *             .topicName(topic)
+     *             .instanceId(default_.id())
+     *             .messageType(0)
+     *             .remark("dafault_ons_topic_remark")
+     *             .build());
+     * 
+     *         final var topicsDs = RocketmqFunctions.getTopics(GetTopicsArgs.builder()
+     *             .instanceId(defaultTopic.instanceId())
+     *             .nameRegex(topic)
+     *             .outputFile("topics.txt")
+     *             .build());
+     * 
+     *         ctx.export("firstTopicName", topicsDs.applyValue(getTopicsResult -> getTopicsResult).applyValue(topicsDs -> topicsDs.applyValue(getTopicsResult -> getTopicsResult.topics()[0].topicName())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTopics(GetTopicsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:rocketmq/getTopics:getTopics", TypeShape.of(GetTopicsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of ONS Topics in an Alibaba Cloud account according to the specified filters. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/ros/RosFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/ros/RosFunctions.java index d863c3e0f5..946ef57259 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/ros/RosFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/ros/RosFunctions.java @@ -29,6 +29,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class RosFunctions { @@ -179,6 +180,55 @@ public static CompletableFuture getChangeSetsPlain(GetChang public static Output getChangeSets(GetChangeSetsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ros/getChangeSets:getChangeSets", TypeShape.of(GetChangeSetsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ros Change Sets of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.105.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ros.RosFunctions;
+     * import com.pulumi.alicloud.ros.inputs.GetChangeSetsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = RosFunctions.getChangeSets(GetChangeSetsArgs.builder()
+     *             .stackId("example_value")
+     *             .ids("example_value")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstRosChangeSetId", example.applyValue(getChangeSetsResult -> getChangeSetsResult.sets()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getChangeSets(GetChangeSetsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ros/getChangeSets:getChangeSets", TypeShape.of(GetChangeSetsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ros Change Sets of the current Alibaba Cloud user. * @@ -453,6 +503,51 @@ public static CompletableFuture getRegionsPlain(GetRegionsPlai public static Output getRegions(GetRegionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ros/getRegions:getRegions", TypeShape.of(GetRegionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ros Regions of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.145.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ros.RosFunctions;
+     * import com.pulumi.alicloud.ros.inputs.GetRegionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var all = RosFunctions.getRegions();
+     * 
+     *         ctx.export("rosRegionRegionId1", all.applyValue(getRegionsResult -> getRegionsResult.regions()[0].regionId()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRegions(GetRegionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ros/getRegions:getRegions", TypeShape.of(GetRegionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ros Regions of the current Alibaba Cloud user. * @@ -738,6 +833,54 @@ public static CompletableFuture getStackGroupsPlain(GetSta public static Output getStackGroups(GetStackGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ros/getStackGroups:getStackGroups", TypeShape.of(GetStackGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ros Stack Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.107.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ros.RosFunctions;
+     * import com.pulumi.alicloud.ros.inputs.GetStackGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = RosFunctions.getStackGroups(GetStackGroupsArgs.builder()
+     *             .ids("example_value")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstRosStackGroupId", example.applyValue(getStackGroupsResult -> getStackGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getStackGroups(GetStackGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ros/getStackGroups:getStackGroups", TypeShape.of(GetStackGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ros Stack Groups of the current Alibaba Cloud user. * @@ -1002,6 +1145,78 @@ public static CompletableFuture getStackInstancesPlain( public static Output getStackInstances(GetStackInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ros/getStackInstances:getStackInstances", TypeShape.of(GetStackInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ros Stack Instances of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.145.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ros.RosFunctions;
+     * import com.pulumi.alicloud.ros.inputs.GetStackInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = RosFunctions.getStackInstances(GetStackInstancesArgs.builder()
+     *             .stackGroupName("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .enableDetails(true)
+     *             .build());
+     * 
+     *         ctx.export("rosStackInstanceId1", ids.applyValue(getStackInstancesResult -> getStackInstancesResult.instances()[0].id()));
+     *         final var status = RosFunctions.getStackInstances(GetStackInstancesArgs.builder()
+     *             .stackGroupName("example_value")
+     *             .status("CURRENT")
+     *             .enableDetails(true)
+     *             .build());
+     * 
+     *         ctx.export("rosStackInstanceId2", status.applyValue(getStackInstancesResult -> getStackInstancesResult.instances()[0].id()));
+     *         final var regionId = RosFunctions.getStackInstances(GetStackInstancesArgs.builder()
+     *             .stackGroupName("example_value")
+     *             .stackInstanceRegionId("example_value")
+     *             .enableDetails(true)
+     *             .build());
+     * 
+     *         ctx.export("rosStackInstanceId3", regionId.applyValue(getStackInstancesResult -> getStackInstancesResult.instances()[0].id()));
+     *         final var accountId = RosFunctions.getStackInstances(GetStackInstancesArgs.builder()
+     *             .stackGroupName("example_value")
+     *             .stackInstanceAccountId("example_value")
+     *             .enableDetails(true)
+     *             .build());
+     * 
+     *         ctx.export("rosStackInstanceId4", accountId.applyValue(getStackInstancesResult -> getStackInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getStackInstances(GetStackInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ros/getStackInstances:getStackInstances", TypeShape.of(GetStackInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ros Stack Instances of the current Alibaba Cloud user. * @@ -1314,6 +1529,54 @@ public static CompletableFuture getStacksPlain(GetStacksPlainAr public static Output getStacks(GetStacksArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ros/getStacks:getStacks", TypeShape.of(GetStacksResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ros Stacks of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.106.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ros.RosFunctions;
+     * import com.pulumi.alicloud.ros.inputs.GetStacksArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = RosFunctions.getStacks(GetStacksArgs.builder()
+     *             .ids("example_value")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstRosStackId", example.applyValue(getStacksResult -> getStacksResult.stacks()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getStacks(GetStacksArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ros/getStacks:getStacks", TypeShape.of(GetStacksResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ros Stacks of the current Alibaba Cloud user. * @@ -1647,6 +1910,63 @@ public static CompletableFuture getTemplateScratches public static Output getTemplateScratches(GetTemplateScratchesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ros/getTemplateScratches:getTemplateScratches", TypeShape.of(GetTemplateScratchesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ros Template Scratches of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.151.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ros.RosFunctions;
+     * import com.pulumi.alicloud.ros.inputs.GetTemplateScratchesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = RosFunctions.getTemplateScratches(GetTemplateScratchesArgs.builder()
+     *             .ids("example_value")
+     *             .build());
+     * 
+     *         ctx.export("rosTemplateScratchId1", ids.applyValue(getTemplateScratchesResult -> getTemplateScratchesResult.scratches()[0].id()));
+     *         final var status = RosFunctions.getTemplateScratches(GetTemplateScratchesArgs.builder()
+     *             .status("GENERATE_COMPLETE")
+     *             .build());
+     * 
+     *         ctx.export("rosTemplateScratchId2", status.applyValue(getTemplateScratchesResult -> getTemplateScratchesResult.scratches()[0].id()));
+     *         final var templateScratchType = RosFunctions.getTemplateScratches(GetTemplateScratchesArgs.builder()
+     *             .templateScratchType("ResourceImport")
+     *             .build());
+     * 
+     *         ctx.export("rosTemplateScratchId3", templateScratchType.applyValue(getTemplateScratchesResult -> getTemplateScratchesResult.scratches()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTemplateScratches(GetTemplateScratchesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ros/getTemplateScratches:getTemplateScratches", TypeShape.of(GetTemplateScratchesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ros Template Scratches of the current Alibaba Cloud user. * @@ -1944,6 +2264,54 @@ public static CompletableFuture getTemplatesPlain(GetTemplat public static Output getTemplates(GetTemplatesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:ros/getTemplates:getTemplates", TypeShape.of(GetTemplatesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Ros Templates of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.108.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.ros.RosFunctions;
+     * import com.pulumi.alicloud.ros.inputs.GetTemplatesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = RosFunctions.getTemplates(GetTemplatesArgs.builder()
+     *             .ids("example_value")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstRosTemplateId", example.applyValue(getTemplatesResult -> getTemplatesResult.templates()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTemplates(GetTemplatesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:ros/getTemplates:getTemplates", TypeShape.of(GetTemplatesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Ros Templates of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/sae/SaeFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/sae/SaeFunctions.java index a636bba818..4f559eef0d 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/sae/SaeFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/sae/SaeFunctions.java @@ -32,6 +32,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class SaeFunctions { @@ -185,6 +186,56 @@ public static CompletableFuture getApplication public static Output getApplicationScalingRules(GetApplicationScalingRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:sae/getApplicationScalingRules:getApplicationScalingRules", TypeShape.of(GetApplicationScalingRulesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Sae Application Scaling Rules of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.159.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.sae.SaeFunctions;
+     * import com.pulumi.alicloud.sae.inputs.GetApplicationScalingRulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = SaeFunctions.getApplicationScalingRules(GetApplicationScalingRulesArgs.builder()
+     *             .appId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("saeApplicationScalingRuleId1", ids.applyValue(getApplicationScalingRulesResult -> getApplicationScalingRulesResult.rules()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getApplicationScalingRules(GetApplicationScalingRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:sae/getApplicationScalingRules:getApplicationScalingRules", TypeShape.of(GetApplicationScalingRulesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Sae Application Scaling Rules of the current Alibaba Cloud user. * @@ -705,6 +756,100 @@ public static CompletableFuture getApplicationsPlain(GetA public static Output getApplications(GetApplicationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:sae/getApplications:getApplications", TypeShape.of(GetApplicationsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Sae Applications of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.161.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetZonesArgs;
+     * import com.pulumi.alicloud.vpc.Network;
+     * import com.pulumi.alicloud.vpc.NetworkArgs;
+     * import com.pulumi.alicloud.vpc.Switch;
+     * import com.pulumi.alicloud.vpc.SwitchArgs;
+     * import com.pulumi.alicloud.sae.Namespace;
+     * import com.pulumi.alicloud.sae.NamespaceArgs;
+     * import com.pulumi.alicloud.sae.Application;
+     * import com.pulumi.alicloud.sae.ApplicationArgs;
+     * import com.pulumi.alicloud.sae.SaeFunctions;
+     * import com.pulumi.alicloud.sae.inputs.GetApplicationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("tf-testacc");
+     *         final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
+     *             .availableResourceCreation("VSwitch")
+     *             .build());
+     * 
+     *         var vpc = new Network("vpc", NetworkArgs.builder()
+     *             .vpcName("tf_testacc")
+     *             .cidrBlock("172.16.0.0/12")
+     *             .build());
+     * 
+     *         var vsw = new Switch("vsw", SwitchArgs.builder()
+     *             .vpcId(vpc.id())
+     *             .cidrBlock("172.16.0.0/24")
+     *             .zoneId(default_.zones()[0].id())
+     *             .vswitchName(name)
+     *             .build());
+     * 
+     *         var defaultNamespace = new Namespace("defaultNamespace", NamespaceArgs.builder()
+     *             .namespaceDescription(name)
+     *             .namespaceId("cn-hangzhou:tfacctest")
+     *             .namespaceName(name)
+     *             .build());
+     * 
+     *         var defaultApplication = new Application("defaultApplication", ApplicationArgs.builder()
+     *             .appDescription("tf-testaccDescription")
+     *             .appName("tf-testaccAppName131")
+     *             .namespaceId(defaultNamespace.id())
+     *             .imageUrl("registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5")
+     *             .packageType("Image")
+     *             .vswitchId(vsw.id())
+     *             .timezone("Asia/Beijing")
+     *             .replicas("5")
+     *             .cpu("500")
+     *             .memory("2048")
+     *             .build());
+     * 
+     *         final var defaultGetApplications = SaeFunctions.getApplications(GetApplicationsArgs.builder()
+     *             .ids(defaultApplication.id())
+     *             .build());
+     * 
+     *         ctx.export("saeApplicationId", defaultGetApplications.applyValue(getApplicationsResult -> getApplicationsResult).applyValue(defaultGetApplications -> defaultGetApplications.applyValue(getApplicationsResult -> getApplicationsResult.applications()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getApplications(GetApplicationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:sae/getApplications:getApplications", TypeShape.of(GetApplicationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Sae Applications of the current Alibaba Cloud user. * @@ -1012,6 +1157,77 @@ public static CompletableFuture getConfigMapsPlain(GetConfi public static Output getConfigMaps(GetConfigMapsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:sae/getConfigMaps:getConfigMaps", TypeShape.of(GetConfigMapsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Sae Config Maps of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.130.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.sae.Namespace;
+     * import com.pulumi.alicloud.sae.NamespaceArgs;
+     * import com.pulumi.alicloud.sae.ConfigMap;
+     * import com.pulumi.alicloud.sae.ConfigMapArgs;
+     * import com.pulumi.alicloud.sae.SaeFunctions;
+     * import com.pulumi.alicloud.sae.inputs.GetConfigMapsArgs;
+     * import static com.pulumi.codegen.internal.Serialization.*;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var configMapName = config.get("configMapName").orElse("examplename");
+     *         var example = new Namespace("example", NamespaceArgs.builder()
+     *             .namespaceId("cn-hangzhou:yourname")
+     *             .namespaceName("example_value")
+     *             .namespaceDescription("your_description")
+     *             .build());
+     * 
+     *         var exampleConfigMap = new ConfigMap("exampleConfigMap", ConfigMapArgs.builder()
+     *             .data(serializeJson(
+     *                 jsonObject(
+     *                     jsonProperty("env.home", "/root"),
+     *                     jsonProperty("env.shell", "/bin/sh")
+     *                 )))
+     *             .name(configMapName)
+     *             .namespaceId(example.namespaceId())
+     *             .build());
+     * 
+     *         final var nameRegex = SaeFunctions.getConfigMaps(GetConfigMapsArgs.builder()
+     *             .namespaceId(example.namespaceId())
+     *             .nameRegex("^example")
+     *             .build());
+     * 
+     *         ctx.export("saeConfigMapId", nameRegex.applyValue(getConfigMapsResult -> getConfigMapsResult).applyValue(nameRegex -> nameRegex.applyValue(getConfigMapsResult -> getConfigMapsResult.maps()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getConfigMaps(GetConfigMapsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:sae/getConfigMaps:getConfigMaps", TypeShape.of(GetConfigMapsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Sae Config Maps of the current Alibaba Cloud user. * @@ -1227,6 +1443,54 @@ public static CompletableFuture getGreyTagRoutesPlain(Ge public static Output getGreyTagRoutes(GetGreyTagRoutesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:sae/getGreyTagRoutes:getGreyTagRoutes", TypeShape.of(GetGreyTagRoutesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Sae GreyTagRoutes of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.160.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.sae.SaeFunctions;
+     * import com.pulumi.alicloud.sae.inputs.GetGreyTagRoutesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var nameRegex = SaeFunctions.getGreyTagRoutes(GetGreyTagRoutesArgs.builder()
+     *             .appId("example_id")
+     *             .nameRegex("^my-GreyTagRoute")
+     *             .build());
+     * 
+     *         ctx.export("saeGreyTagRoutesId", nameRegex.applyValue(getGreyTagRoutesResult -> getGreyTagRoutesResult.routes()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGreyTagRoutes(GetGreyTagRoutesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:sae/getGreyTagRoutes:getGreyTagRoutes", TypeShape.of(GetGreyTagRoutesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Sae GreyTagRoutes of the current Alibaba Cloud user. * @@ -1302,6 +1566,15 @@ public static CompletableFuture getIngressesPlain(GetIngress public static Output getIngresses(GetIngressesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:sae/getIngresses:getIngresses", TypeShape.of(GetIngressesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Sae Ingresses of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.137.0+. + * + */ + public static Output getIngresses(GetIngressesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:sae/getIngresses:getIngresses", TypeShape.of(GetIngressesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Sae Ingresses of the current Alibaba Cloud user. * @@ -1536,6 +1809,51 @@ public static CompletableFuture getInstanceSpec public static Output getInstanceSpecifications(GetInstanceSpecificationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:sae/getInstanceSpecifications:getInstanceSpecifications", TypeShape.of(GetInstanceSpecificationsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Sae Instance Specifications of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.139.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.sae.SaeFunctions;
+     * import com.pulumi.alicloud.sae.inputs.GetInstanceSpecificationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = SaeFunctions.getInstanceSpecifications();
+     * 
+     *         ctx.export("saeInstanceSpecificationId1", ids.applyValue(getInstanceSpecificationsResult -> getInstanceSpecificationsResult.specifications()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceSpecifications(GetInstanceSpecificationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:sae/getInstanceSpecifications:getInstanceSpecifications", TypeShape.of(GetInstanceSpecificationsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Sae Instance Specifications of the current Alibaba Cloud user. * @@ -1816,6 +2134,53 @@ public static CompletableFuture getNamespacesPlain(GetNames public static Output getNamespaces(GetNamespacesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:sae/getNamespaces:getNamespaces", TypeShape.of(GetNamespacesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Sae Namespaces of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.129.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.sae.SaeFunctions;
+     * import com.pulumi.alicloud.sae.inputs.GetNamespacesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var nameRegex = SaeFunctions.getNamespaces(GetNamespacesArgs.builder()
+     *             .nameRegex("^my-Namespace")
+     *             .build());
+     * 
+     *         ctx.export("saeNamespaceId", nameRegex.applyValue(getNamespacesResult -> getNamespacesResult.namespaces()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNamespaces(GetNamespacesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:sae/getNamespaces:getNamespaces", TypeShape.of(GetNamespacesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Sae Namespaces of the current Alibaba Cloud user. * @@ -2103,6 +2468,54 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:sae/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open SAE service automatically. If the service has been opened, it will return opened. + * + * For information about SAE and how to use it, see [What is SAE](https://help.aliyun.com/document_detail/125720.html). + * + * > **NOTE:** Available in v1.120.0+ + * + * > **NOTE:** The SAE service is not support in the international site. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.sae.SaeFunctions;
+     * import com.pulumi.alicloud.sae.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = SaeFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:sae/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open SAE service automatically. If the service has been opened, it will return opened. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/sag/SagFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/sag/SagFunctions.java index 26b6d3a2d3..c20726f49c 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/sag/SagFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/sag/SagFunctions.java @@ -14,6 +14,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class SagFunctions { @@ -292,6 +293,61 @@ public static CompletableFuture getAclsPlain(GetAclsPlainArgs arg public static Output getAcls(GetAclsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:sag/getAcls:getAcls", TypeShape.of(GetAclsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Sag Acls available to the user. + * + * > **NOTE:** Available in 1.60.0+ + * + * > **NOTE:** Only the following regions support create Cloud Connect Network. [`cn-shanghai`, `cn-shanghai-finance-1`, `cn-hongkong`, `ap-southeast-1`, `ap-southeast-3`, `ap-southeast-5`, `ap-northeast-1`, `eu-central-1`] + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.sag.SagFunctions;
+     * import com.pulumi.alicloud.sag.inputs.GetAclsArgs;
+     * import com.pulumi.alicloud.rocketmq.Acl;
+     * import com.pulumi.alicloud.rocketmq.AclArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = SagFunctions.getAcls(GetAclsArgs.builder()
+     *             .ids(defaultAlicloudSagAcls.id())
+     *             .nameRegex("^tf-testAcc.*")
+     *             .build());
+     * 
+     *         var defaultAcl = new Acl("defaultAcl", AclArgs.builder()
+     *             .name("tf-testAccSagAclName")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAcls(GetAclsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:sag/getAcls:getAcls", TypeShape.of(GetAclsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Sag Acls available to the user. * @@ -607,6 +663,58 @@ public static CompletableFuture getSmartagFlowLogsPlai public static Output getSmartagFlowLogs(GetSmartagFlowLogsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:sag/getSmartagFlowLogs:getSmartagFlowLogs", TypeShape.of(GetSmartagFlowLogsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Smartag Flow Logs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.168.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.sag.SagFunctions;
+     * import com.pulumi.alicloud.sag.inputs.GetSmartagFlowLogsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = SagFunctions.getSmartagFlowLogs(GetSmartagFlowLogsArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("smartagFlowLogId1", ids.applyValue(getSmartagFlowLogsResult -> getSmartagFlowLogsResult.logs()[0].id()));
+     *         final var nameRegex = SagFunctions.getSmartagFlowLogs(GetSmartagFlowLogsArgs.builder()
+     *             .nameRegex("^my-FlowLog")
+     *             .build());
+     * 
+     *         ctx.export("smartagFlowLogId2", nameRegex.applyValue(getSmartagFlowLogsResult -> getSmartagFlowLogsResult.logs()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSmartagFlowLogs(GetSmartagFlowLogsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:sag/getSmartagFlowLogs:getSmartagFlowLogs", TypeShape.of(GetSmartagFlowLogsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Smartag Flow Logs of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/scdn/ScdnFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/scdn/ScdnFunctions.java index e3e9991124..6cd8aa5ff8 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/scdn/ScdnFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/scdn/ScdnFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class ScdnFunctions { @@ -249,6 +250,53 @@ public static CompletableFuture getDomainsPlain(GetDomainsPlai public static Output getDomains(GetDomainsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:scdn/getDomains:getDomains", TypeShape.of(GetDomainsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Scdn Domains of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.131.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.scdn.ScdnFunctions;
+     * import com.pulumi.alicloud.scdn.inputs.GetDomainsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var nameRegex = ScdnFunctions.getDomains(GetDomainsArgs.builder()
+     *             .nameRegex("^my-Domain")
+     *             .build());
+     * 
+     *         ctx.export("scdnDomainId", nameRegex.applyValue(getDomainsResult -> getDomainsResult.domains()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDomains(GetDomainsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:scdn/getDomains:getDomains", TypeShape.of(GetDomainsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Scdn Domains of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/schedulerx/SchedulerxFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/schedulerx/SchedulerxFunctions.java index efb938a9cd..9e606269b3 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/schedulerx/SchedulerxFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/schedulerx/SchedulerxFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class SchedulerxFunctions { @@ -264,6 +265,56 @@ public static CompletableFuture getNamespacesPlain(GetNames public static Output getNamespaces(GetNamespacesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:schedulerx/getNamespaces:getNamespaces", TypeShape.of(GetNamespacesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Schedulerx Namespaces of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.173.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.schedulerx.SchedulerxFunctions;
+     * import com.pulumi.alicloud.schedulerx.inputs.GetNamespacesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = SchedulerxFunctions.getNamespaces();
+     * 
+     *         ctx.export("schedulerxNamespaceId1", ids.applyValue(getNamespacesResult -> getNamespacesResult.namespaces()[0].id()));
+     *         final var nameRegex = SchedulerxFunctions.getNamespaces(GetNamespacesArgs.builder()
+     *             .nameRegex("^my-Namespace")
+     *             .build());
+     * 
+     *         ctx.export("schedulerxNamespaceId2", nameRegex.applyValue(getNamespacesResult -> getNamespacesResult.namespaces()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNamespaces(GetNamespacesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:schedulerx/getNamespaces:getNamespaces", TypeShape.of(GetNamespacesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Schedulerx Namespaces of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/sddp/SddpFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/sddp/SddpFunctions.java index 36e58f84f1..d8c7c065de 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/sddp/SddpFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/sddp/SddpFunctions.java @@ -20,6 +20,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class SddpFunctions { @@ -298,6 +299,61 @@ public static CompletableFuture getConfigsPlain(GetConfigsPlai public static Output getConfigs(GetConfigsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:sddp/getConfigs:getConfigs", TypeShape.of(GetConfigsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Sddp Configs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.133.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.sddp.Config;
+     * import com.pulumi.alicloud.sddp.ConfigArgs;
+     * import com.pulumi.alicloud.sddp.SddpFunctions;
+     * import com.pulumi.alicloud.sddp.inputs.GetConfigsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var defaultConfig = new Config("defaultConfig", ConfigArgs.builder()
+     *             .code("access_failed_cnt")
+     *             .value(10)
+     *             .build());
+     * 
+     *         final var default = SddpFunctions.getConfigs(GetConfigsArgs.builder()
+     *             .ids(defaultConfig.id())
+     *             .outputFile("./t.json")
+     *             .build());
+     * 
+     *         ctx.export("sddpConfigId", default_.applyValue(default_ -> default_.ids()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getConfigs(GetConfigsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:sddp/getConfigs:getConfigs", TypeShape.of(GetConfigsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Sddp Configs of the current Alibaba Cloud user. * @@ -578,6 +634,51 @@ public static CompletableFuture getDataLimitsPlain(GetDataL public static Output getDataLimits(GetDataLimitsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:sddp/getDataLimits:getDataLimits", TypeShape.of(GetDataLimitsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Sddp Data Limits of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.159.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.sddp.SddpFunctions;
+     * import com.pulumi.alicloud.sddp.inputs.GetDataLimitsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = SddpFunctions.getDataLimits();
+     * 
+     *         ctx.export("sddpDataLimitId1", ids.applyValue(getDataLimitsResult -> getDataLimitsResult.limits()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDataLimits(GetDataLimitsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:sddp/getDataLimits:getDataLimits", TypeShape.of(GetDataLimitsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Sddp Data Limits of the current Alibaba Cloud user. * @@ -848,6 +949,51 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:sddp/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Sddp Instances of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.136.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.sddp.SddpFunctions;
+     * import com.pulumi.alicloud.sddp.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = SddpFunctions.getInstances();
+     * 
+     *         ctx.export("sddpInstanceId", default_.instances()[0]);
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:sddp/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Sddp Instances of the current Alibaba Cloud user. * @@ -1178,6 +1324,63 @@ public static CompletableFuture getRulesPlain(GetRulesPlainArgs public static Output getRules(GetRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:sddp/getRules:getRules", TypeShape.of(GetRulesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Sddp Rules of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.132.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.sddp.Rule;
+     * import com.pulumi.alicloud.sddp.RuleArgs;
+     * import com.pulumi.alicloud.sddp.SddpFunctions;
+     * import com.pulumi.alicloud.sddp.inputs.GetRulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var defaultRule = new Rule("defaultRule", RuleArgs.builder()
+     *             .category("0")
+     *             .content("content")
+     *             .ruleName("rule_name")
+     *             .riskLevelId("4")
+     *             .productCode("ODPS")
+     *             .build());
+     * 
+     *         final var default = SddpFunctions.getRules(GetRulesArgs.builder()
+     *             .ids(defaultRule.id())
+     *             .build());
+     * 
+     *         ctx.export("sddpRuleId", default_.applyValue(default_ -> default_.id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRules(GetRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:sddp/getRules:getRules", TypeShape.of(GetRulesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Sddp Rules of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/securitycenter/SecuritycenterFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/securitycenter/SecuritycenterFunctions.java index d8be327240..5f7522b434 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/securitycenter/SecuritycenterFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/securitycenter/SecuritycenterFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class SecuritycenterFunctions { @@ -249,6 +250,53 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr public static Output getGroups(GetGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:securitycenter/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Security Center Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.133.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.securitycenter.SecuritycenterFunctions;
+     * import com.pulumi.alicloud.securitycenter.inputs.GetGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var nameRegex = SecuritycenterFunctions.getGroups(GetGroupsArgs.builder()
+     *             .nameRegex("^my-Group")
+     *             .build());
+     * 
+     *         ctx.export("securityCenterGroups", nameRegex.applyValue(getGroupsResult -> getGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGroups(GetGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:securitycenter/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Security Center Groups of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/selectdb/SelectdbFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/selectdb/SelectdbFunctions.java index f4e0d49fc8..2d8dbcf96b 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/selectdb/SelectdbFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/selectdb/SelectdbFunctions.java @@ -14,6 +14,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class SelectdbFunctions { @@ -462,6 +463,95 @@ public static CompletableFuture getDbClustersPlain(GetDbClu public static Output getDbClusters(GetDbClustersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:selectdb/getDbClusters:getDbClusters", TypeShape.of(GetDbClustersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the SelectDB DBCluster of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.229.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetZonesArgs;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
+     * import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
+     * import com.pulumi.alicloud.selectdb.DbInstance;
+     * import com.pulumi.alicloud.selectdb.DbInstanceArgs;
+     * import com.pulumi.alicloud.selectdb.DbCluster;
+     * import com.pulumi.alicloud.selectdb.DbClusterArgs;
+     * import com.pulumi.alicloud.selectdb.SelectdbFunctions;
+     * import com.pulumi.alicloud.selectdb.inputs.GetDbClustersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
+     *             .availableResourceCreation("VSwitch")
+     *             .build());
+     * 
+     *         final var name = config.get("name").orElse("terraform_example");
+     *         final var defaultGetNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
+     *             .nameRegex("^default-NODELETING$")
+     *             .build());
+     * 
+     *         final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
+     *             .vpcId(defaultGetNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
+     *             .zoneId(default_.zones()[0].id())
+     *             .build());
+     * 
+     *         var defaultDbInstance = new DbInstance("defaultDbInstance", DbInstanceArgs.builder()
+     *             .dbInstanceClass("selectdb.xlarge")
+     *             .dbInstanceDescription(name)
+     *             .cacheSize(200)
+     *             .paymentType("PayAsYouGo")
+     *             .vpcId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.vswitches()[0].vpcId()))
+     *             .zoneId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.vswitches()[0].zoneId()))
+     *             .vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.vswitches()[0].id()))
+     *             .build());
+     * 
+     *         var defaultDbCluster = new DbCluster("defaultDbCluster", DbClusterArgs.builder()
+     *             .dbInstanceId(defaultDbInstance.id())
+     *             .dbClusterDescription(name)
+     *             .dbClusterClass("selectdb.2xlarge")
+     *             .cacheSize(400)
+     *             .paymentType("PayAsYouGo")
+     *             .build());
+     * 
+     *         final var defaultGetDbClusters = SelectdbFunctions.getDbClusters(GetDbClustersArgs.builder()
+     *             .ids(defaultDbCluster.id())
+     *             .build());
+     * 
+     *         ctx.export("dbCluster", defaultGetDbClusters.applyValue(getDbClustersResult -> getDbClustersResult).applyValue(defaultGetDbClusters -> defaultGetDbClusters.applyValue(getDbClustersResult -> getDbClustersResult.ids()[0])));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDbClusters(GetDbClustersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:selectdb/getDbClusters:getDbClusters", TypeShape.of(GetDbClustersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the SelectDB DBCluster of the current Alibaba Cloud user. * @@ -946,6 +1036,85 @@ public static CompletableFuture getDbInstancesPlain(GetDbI public static Output getDbInstances(GetDbInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:selectdb/getDbInstances:getDbInstances", TypeShape.of(GetDbInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the SelectDB DBInstance of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.229.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetZonesArgs;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
+     * import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
+     * import com.pulumi.alicloud.selectdb.DbInstance;
+     * import com.pulumi.alicloud.selectdb.DbInstanceArgs;
+     * import com.pulumi.alicloud.selectdb.SelectdbFunctions;
+     * import com.pulumi.alicloud.selectdb.inputs.GetDbInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
+     *             .availableResourceCreation("VSwitch")
+     *             .build());
+     * 
+     *         final var name = config.get("name").orElse("terraform_example");
+     *         final var defaultGetNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
+     *             .nameRegex("^default-NODELETING$")
+     *             .build());
+     * 
+     *         final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
+     *             .vpcId(defaultGetNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
+     *             .zoneId(default_.zones()[0].id())
+     *             .build());
+     * 
+     *         var defaultDbInstance = new DbInstance("defaultDbInstance", DbInstanceArgs.builder()
+     *             .dbInstanceClass("selectdb.xlarge")
+     *             .dbInstanceDescription(name)
+     *             .cacheSize(200)
+     *             .paymentType("PayAsYouGo")
+     *             .vpcId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.vswitches()[0].vpcId()))
+     *             .zoneId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.vswitches()[0].zoneId()))
+     *             .vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.vswitches()[0].id()))
+     *             .build());
+     * 
+     *         final var defaultGetDbInstances = SelectdbFunctions.getDbInstances(GetDbInstancesArgs.builder()
+     *             .ids(defaultDbInstance.id())
+     *             .build());
+     * 
+     *         ctx.export("dbInstance", defaultGetDbInstances.applyValue(getDbInstancesResult -> getDbInstancesResult).applyValue(defaultGetDbInstances -> defaultGetDbInstances.applyValue(getDbInstancesResult -> getDbInstancesResult.ids()[0])));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDbInstances(GetDbInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:selectdb/getDbInstances:getDbInstances", TypeShape.of(GetDbInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the SelectDB DBInstance of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/servicecatalog/ServicecatalogFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/servicecatalog/ServicecatalogFunctions.java index fd7dc48792..fa196b2663 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/servicecatalog/ServicecatalogFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/servicecatalog/ServicecatalogFunctions.java @@ -26,6 +26,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class ServicecatalogFunctions { @@ -254,6 +255,51 @@ public static CompletableFuture getEndUserProductsPlai public static Output getEndUserProducts(GetEndUserProductsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:servicecatalog/getEndUserProducts:getEndUserProducts", TypeShape.of(GetEndUserProductsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Service Catalog End User Product available to the user.[What is End User Product](https://www.alibabacloud.com/help/en/servicecatalog/latest/api-servicecatalog-2021-09-01-listproductsasenduser) + * + * > **NOTE:** Available since v1.197.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.servicecatalog.ServicecatalogFunctions;
+     * import com.pulumi.alicloud.servicecatalog.inputs.GetEndUserProductsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ServicecatalogFunctions.getEndUserProducts(GetEndUserProductsArgs.builder()
+     *             .nameRegex("ram模板创建")
+     *             .build());
+     * 
+     *         ctx.export("alicloudServiceCatalogEndUserProductExampleId", default_.endUserProducts()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEndUserProducts(GetEndUserProductsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:servicecatalog/getEndUserProducts:getEndUserProducts", TypeShape.of(GetEndUserProductsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Service Catalog End User Product available to the user.[What is End User Product](https://www.alibabacloud.com/help/en/servicecatalog/latest/api-servicecatalog-2021-09-01-listproductsasenduser) * @@ -455,6 +501,58 @@ public static CompletableFuture getLaunchOptionsPlain(Ge public static Output getLaunchOptions(GetLaunchOptionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:servicecatalog/getLaunchOptions:getLaunchOptions", TypeShape.of(GetLaunchOptionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Service Catalog Launch Option available to the user. [What is Launch Option](https://www.alibabacloud.com/help/en/service-catalog/developer-reference/api-servicecatalog-2021-09-01-listlaunchoptions). + * + * > **NOTE:** Available since v1.196.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.servicecatalog.ServicecatalogFunctions;
+     * import com.pulumi.alicloud.servicecatalog.inputs.GetEndUserProductsArgs;
+     * import com.pulumi.alicloud.servicecatalog.inputs.GetLaunchOptionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ServicecatalogFunctions.getEndUserProducts(GetEndUserProductsArgs.builder()
+     *             .nameRegex("ram模板创建")
+     *             .build());
+     * 
+     *         final var defaultGetLaunchOptions = ServicecatalogFunctions.getLaunchOptions(GetLaunchOptionsArgs.builder()
+     *             .productId("data.alicloud_service_catalog_end_user_products.default.end_user_products.0.id")
+     *             .build());
+     * 
+     *         ctx.export("alicloudServiceCatalogLaunchOptionExampleId", defaultGetLaunchOptions.applyValue(getLaunchOptionsResult -> getLaunchOptionsResult.launchOptions()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getLaunchOptions(GetLaunchOptionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:servicecatalog/getLaunchOptions:getLaunchOptions", TypeShape.of(GetLaunchOptionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Service Catalog Launch Option available to the user. [What is Launch Option](https://www.alibabacloud.com/help/en/service-catalog/developer-reference/api-servicecatalog-2021-09-01-listlaunchoptions). * @@ -737,6 +835,52 @@ public static CompletableFuture getPortfoliosPlain(GetPortf public static Output getPortfolios(GetPortfoliosArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:servicecatalog/getPortfolios:getPortfolios", TypeShape.of(GetPortfoliosResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Service Catalog Portfolio available to the user.[What is Portfolio](https://www.alibabacloud.com/help/en/service-catalog/developer-reference/api-servicecatalog-2021-09-01-createportfolio) + * + * > **NOTE:** Available in 1.204.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.servicecatalog.ServicecatalogFunctions;
+     * import com.pulumi.alicloud.servicecatalog.inputs.GetPortfoliosArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ServicecatalogFunctions.getPortfolios(GetPortfoliosArgs.builder()
+     *             .ids(defaultAlicloudServiceCatalogPortfolio.id())
+     *             .nameRegex(defaultAlicloudServiceCatalogPortfolio.name())
+     *             .build());
+     * 
+     *         ctx.export("alicloudServiceCatalogPortfolioExampleId", default_.portfolios()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPortfolios(GetPortfoliosArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:servicecatalog/getPortfolios:getPortfolios", TypeShape.of(GetPortfoliosResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Service Catalog Portfolio available to the user.[What is Portfolio](https://www.alibabacloud.com/help/en/service-catalog/developer-reference/api-servicecatalog-2021-09-01-createportfolio) * @@ -1023,6 +1167,54 @@ public static CompletableFuture getProductAsEndUsers public static Output getProductAsEndUsers(GetProductAsEndUsersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:servicecatalog/getProductAsEndUsers:getProductAsEndUsers", TypeShape.of(GetProductAsEndUsersResult.class), args, Utilities.withVersion(options)); } + /** + * > **DEPRECATED:** It has been deprecated from version `1.197.0`. + * Please use new datasource alicloud.servicecatalog.getEndUserProducts instead. + * + * This data source provides Service Catalog Product As End User available to the user.[What is Product As End User](https://www.alibabacloud.com/help/en/service-catalog/developer-reference/api-servicecatalog-2021-09-01-listproductsasenduser) + * + * > **NOTE:** Available in 1.196.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.servicecatalog.ServicecatalogFunctions;
+     * import com.pulumi.alicloud.servicecatalog.inputs.GetProductAsEndUsersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ServicecatalogFunctions.getProductAsEndUsers(GetProductAsEndUsersArgs.builder()
+     *             .nameRegex("ram模板创建")
+     *             .build());
+     * 
+     *         ctx.export("alicloudServiceCatalogProductAsEndUserExampleId", default_.users()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getProductAsEndUsers(GetProductAsEndUsersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:servicecatalog/getProductAsEndUsers:getProductAsEndUsers", TypeShape.of(GetProductAsEndUsersResult.class), args, Utilities.withVersion(options)); + } /** * > **DEPRECATED:** It has been deprecated from version `1.197.0`. * Please use new datasource alicloud.servicecatalog.getEndUserProducts instead. @@ -1209,6 +1401,52 @@ public static CompletableFuture getProductVersionsPlai public static Output getProductVersions(GetProductVersionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:servicecatalog/getProductVersions:getProductVersions", TypeShape.of(GetProductVersionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Service Catalog Product Version available to the user.[What is Product Version](https://www.alibabacloud.com/help/en/service-catalog/developer-reference/api-servicecatalog-2021-09-01-listproductversions) + * + * > **NOTE:** Available in 1.196.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.servicecatalog.ServicecatalogFunctions;
+     * import com.pulumi.alicloud.servicecatalog.inputs.GetProductVersionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ServicecatalogFunctions.getProductVersions(GetProductVersionsArgs.builder()
+     *             .nameRegex("1.0.0")
+     *             .productId("prod-bp125x4k29wb7q")
+     *             .build());
+     * 
+     *         ctx.export("alicloudServiceCatalogProductVersionExampleId", default_.productVersions()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getProductVersions(GetProductVersionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:servicecatalog/getProductVersions:getProductVersions", TypeShape.of(GetProductVersionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Service Catalog Product Version available to the user.[What is Product Version](https://www.alibabacloud.com/help/en/service-catalog/developer-reference/api-servicecatalog-2021-09-01-listproductversions) * @@ -1495,6 +1733,54 @@ public static CompletableFuture getProvisionedProd public static Output getProvisionedProducts(GetProvisionedProductsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:servicecatalog/getProvisionedProducts:getProvisionedProducts", TypeShape.of(GetProvisionedProductsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Service Catalog Provisioned Product available to the user. [What is Provisioned Product](https://www.alibabacloud.com/help/en/service-catalog/developer-reference/api-servicecatalog-2021-09-01-launchproduct) + * + * > **NOTE:** Available since v1.196.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.servicecatalog.ServicecatalogFunctions;
+     * import com.pulumi.alicloud.servicecatalog.inputs.GetProvisionedProductsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ServicecatalogFunctions.getProvisionedProducts(GetProvisionedProductsArgs.builder()
+     *             .ids("IdExample")
+     *             .nameRegex("NameRegexExample")
+     *             .build());
+     * 
+     *         ctx.export("alicloudServiceCatalogProvisionedProductExampleId", default_.provisionedProducts()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getProvisionedProducts(GetProvisionedProductsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:servicecatalog/getProvisionedProducts:getProvisionedProducts", TypeShape.of(GetProvisionedProductsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Service Catalog Provisioned Product available to the user. [What is Provisioned Product](https://www.alibabacloud.com/help/en/service-catalog/developer-reference/api-servicecatalog-2021-09-01-launchproduct) * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/servicemesh/ServicemeshFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/servicemesh/ServicemeshFunctions.java index fcd285fb9d..4a4b7ed44c 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/servicemesh/ServicemeshFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/servicemesh/ServicemeshFunctions.java @@ -17,6 +17,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class ServicemeshFunctions { @@ -188,6 +189,62 @@ public static CompletableFuture getExtensionProvide public static Output getExtensionProviders(GetExtensionProvidersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:servicemesh/getExtensionProviders:getExtensionProviders", TypeShape.of(GetExtensionProvidersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Service Mesh Extension Providers of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.191.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.servicemesh.ServicemeshFunctions;
+     * import com.pulumi.alicloud.servicemesh.inputs.GetExtensionProvidersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = ServicemeshFunctions.getExtensionProviders(GetExtensionProvidersArgs.builder()
+     *             .ids("example_id")
+     *             .serviceMeshId("example_service_mesh_id")
+     *             .type("httpextauth")
+     *             .build());
+     * 
+     *         ctx.export("serviceMeshExtensionProvidersId1", ids.applyValue(getExtensionProvidersResult -> getExtensionProvidersResult.providers()[0].id()));
+     *         final var nameRegex = ServicemeshFunctions.getExtensionProviders(GetExtensionProvidersArgs.builder()
+     *             .nameRegex("^my-ServiceMeshExtensionProvider")
+     *             .serviceMeshId("example_service_mesh_id")
+     *             .type("httpextauth")
+     *             .build());
+     * 
+     *         ctx.export("serviceMeshExtensionProvidersId2", nameRegex.applyValue(getExtensionProvidersResult -> getExtensionProvidersResult.providers()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getExtensionProviders(GetExtensionProvidersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:servicemesh/getExtensionProviders:getExtensionProviders", TypeShape.of(GetExtensionProvidersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Service Mesh Extension Providers of the current Alibaba Cloud user. * @@ -289,6 +346,15 @@ public static CompletableFuture getServiceMeshesPlain(Ge public static Output getServiceMeshes(GetServiceMeshesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:servicemesh/getServiceMeshes:getServiceMeshes", TypeShape.of(GetServiceMeshesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Service Mesh Service Meshes of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.138.0. + * + */ + public static Output getServiceMeshes(GetServiceMeshesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:servicemesh/getServiceMeshes:getServiceMeshes", TypeShape.of(GetServiceMeshesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Service Mesh Service Meshes of the current Alibaba Cloud user. * @@ -533,6 +599,53 @@ public static CompletableFuture getVersionsPlain(GetVersionsP public static Output getVersions(GetVersionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:servicemesh/getVersions:getVersions", TypeShape.of(GetVersionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides ASM available versions in the specified region. + * + * > **NOTE:** Available in v1.161.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.servicemesh.ServicemeshFunctions;
+     * import com.pulumi.alicloud.servicemesh.inputs.GetVersionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ServicemeshFunctions.getVersions(GetVersionsArgs.builder()
+     *             .edition("Default")
+     *             .build());
+     * 
+     *         ctx.export("serviceMeshVersion", versions[0].version());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVersions(GetVersionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:servicemesh/getVersions:getVersions", TypeShape.of(GetVersionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides ASM available versions in the specified region. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/simpleapplicationserver/SimpleapplicationserverFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/simpleapplicationserver/SimpleapplicationserverFunctions.java index f5665c7514..af72e4bfce 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/simpleapplicationserver/SimpleapplicationserverFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/simpleapplicationserver/SimpleapplicationserverFunctions.java @@ -29,6 +29,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class SimpleapplicationserverFunctions { @@ -307,6 +308,61 @@ public static CompletableFuture getImagesPlain(GetImagesPlainAr public static Output getImages(GetImagesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:simpleapplicationserver/getImages:getImages", TypeShape.of(GetImagesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Simple Application Server Images of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.135.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.simpleapplicationserver.SimpleapplicationserverFunctions;
+     * import com.pulumi.alicloud.simpleapplicationserver.inputs.GetImagesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var instanceImageType = SimpleapplicationserverFunctions.getImages(GetImagesArgs.builder()
+     *             .instanceImageType("system")
+     *             .build());
+     * 
+     *         ctx.export("simpleApplicationServerImageId1", ids.images()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * The following arguments are supported: + * + * * `ids` - (Optional, ForceNew, Computed) A list of Image IDs. + * * `image_type` - (Optional, ForceNew) The image type. Valid values: `app`, `custom`, `system`. + * * `name_regex` - (Optional, ForceNew) A regex string to filter results by Image name. + * * `platform` - (Available in v1.161.0) The platform of Image supported. Valid values: ["Linux", "Windows"]. + * * `output_file` - (Optional) File name where to save data source results (after running `pulumi preview`). + * + */ + public static Output getImages(GetImagesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:simpleapplicationserver/getImages:getImages", TypeShape.of(GetImagesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Simple Application Server Images of the current Alibaba Cloud user. * @@ -622,6 +678,58 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:simpleapplicationserver/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Simple Application Server Instances of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.135.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.simpleapplicationserver.SimpleapplicationserverFunctions;
+     * import com.pulumi.alicloud.simpleapplicationserver.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = SimpleapplicationserverFunctions.getInstances(GetInstancesArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("simpleApplicationServerInstanceId1", ids.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *         final var nameRegex = SimpleapplicationserverFunctions.getInstances(GetInstancesArgs.builder()
+     *             .nameRegex("^my-Instance")
+     *             .build());
+     * 
+     *         ctx.export("simpleApplicationServerInstanceId2", nameRegex.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:simpleapplicationserver/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Simple Application Server Instances of the current Alibaba Cloud user. * @@ -934,6 +1042,58 @@ public static CompletableFuture getServerCustomImag public static Output getServerCustomImages(GetServerCustomImagesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:simpleapplicationserver/getServerCustomImages:getServerCustomImages", TypeShape.of(GetServerCustomImagesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Simple Application Server Custom Images of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.143.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.simpleapplicationserver.SimpleapplicationserverFunctions;
+     * import com.pulumi.alicloud.simpleapplicationserver.inputs.GetServerCustomImagesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = SimpleapplicationserverFunctions.getServerCustomImages(GetServerCustomImagesArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("simpleApplicationServerCustomImageId1", ids.applyValue(getServerCustomImagesResult -> getServerCustomImagesResult.images()[0].id()));
+     *         final var nameRegex = SimpleapplicationserverFunctions.getServerCustomImages(GetServerCustomImagesArgs.builder()
+     *             .nameRegex("^my-CustomImage")
+     *             .build());
+     * 
+     *         ctx.export("simpleApplicationServerCustomImageId2", nameRegex.applyValue(getServerCustomImagesResult -> getServerCustomImagesResult.images()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServerCustomImages(GetServerCustomImagesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:simpleapplicationserver/getServerCustomImages:getServerCustomImages", TypeShape.of(GetServerCustomImagesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Simple Application Server Custom Images of the current Alibaba Cloud user. * @@ -1321,6 +1481,73 @@ public static CompletableFuture getServerDisksPlain(GetSer public static Output getServerDisks(GetServerDisksArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:simpleapplicationserver/getServerDisks:getServerDisks", TypeShape.of(GetServerDisksResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Simple Application Server Disks of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.143.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.simpleapplicationserver.SimpleapplicationserverFunctions;
+     * import com.pulumi.alicloud.simpleapplicationserver.inputs.GetServerDisksArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = SimpleapplicationserverFunctions.getServerDisks(GetServerDisksArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("simpleApplicationServerDiskId1", ids.applyValue(getServerDisksResult -> getServerDisksResult.disks()[0].id()));
+     *         final var nameRegex = SimpleapplicationserverFunctions.getServerDisks(GetServerDisksArgs.builder()
+     *             .nameRegex("^my-Disk")
+     *             .build());
+     * 
+     *         ctx.export("simpleApplicationServerDiskId2", nameRegex.applyValue(getServerDisksResult -> getServerDisksResult.disks()[0].id()));
+     *         final var status = SimpleapplicationserverFunctions.getServerDisks(GetServerDisksArgs.builder()
+     *             .status("In_use")
+     *             .build());
+     * 
+     *         ctx.export("simpleApplicationServerDiskId3", status.applyValue(getServerDisksResult -> getServerDisksResult.disks()[0].id()));
+     *         final var instanceId = SimpleapplicationserverFunctions.getServerDisks(GetServerDisksArgs.builder()
+     *             .instanceId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("simpleApplicationServerDiskId4", instanceId.applyValue(getServerDisksResult -> getServerDisksResult.disks()[0].id()));
+     *         final var diskType = SimpleapplicationserverFunctions.getServerDisks(GetServerDisksArgs.builder()
+     *             .diskType("System")
+     *             .build());
+     * 
+     *         ctx.export("simpleApplicationServerDiskId5", diskType.applyValue(getServerDisksResult -> getServerDisksResult.disks()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServerDisks(GetServerDisksArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:simpleapplicationserver/getServerDisks:getServerDisks", TypeShape.of(GetServerDisksResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Simple Application Server Disks of the current Alibaba Cloud user. * @@ -1538,6 +1765,56 @@ public static CompletableFuture getServerFirewallR public static Output getServerFirewallRules(GetServerFirewallRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:simpleapplicationserver/getServerFirewallRules:getServerFirewallRules", TypeShape.of(GetServerFirewallRulesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Simple Application Server Firewall Rules of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.143.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.simpleapplicationserver.SimpleapplicationserverFunctions;
+     * import com.pulumi.alicloud.simpleapplicationserver.inputs.GetServerFirewallRulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = SimpleapplicationserverFunctions.getServerFirewallRules(GetServerFirewallRulesArgs.builder()
+     *             .instanceId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("simpleApplicationServerFirewallRuleId1", ids.applyValue(getServerFirewallRulesResult -> getServerFirewallRulesResult.rules()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServerFirewallRules(GetServerFirewallRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:simpleapplicationserver/getServerFirewallRules:getServerFirewallRules", TypeShape.of(GetServerFirewallRulesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Simple Application Server Firewall Rules of the current Alibaba Cloud user. * @@ -1843,6 +2120,57 @@ public static CompletableFuture getServerPlansPlain(GetSer public static Output getServerPlans(GetServerPlansArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:simpleapplicationserver/getServerPlans:getServerPlans", TypeShape.of(GetServerPlansResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Simple Application Server Plans of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.135.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.simpleapplicationserver.SimpleapplicationserverFunctions;
+     * import com.pulumi.alicloud.simpleapplicationserver.inputs.GetServerPlansArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = SimpleapplicationserverFunctions.getServerPlans(GetServerPlansArgs.builder()
+     *             .memory(1)
+     *             .bandwidth(3)
+     *             .diskSize(40)
+     *             .flow(6)
+     *             .core(2)
+     *             .build());
+     * 
+     *         ctx.export("simpleApplicationServerPlanId1", ids.plans()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServerPlans(GetServerPlansArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:simpleapplicationserver/getServerPlans:getServerPlans", TypeShape.of(GetServerPlansResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Simple Application Server Plans of the current Alibaba Cloud user. * @@ -2214,6 +2542,70 @@ public static CompletableFuture getServerSnapshotsPlai public static Output getServerSnapshots(GetServerSnapshotsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:simpleapplicationserver/getServerSnapshots:getServerSnapshots", TypeShape.of(GetServerSnapshotsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Simple Application Server Snapshots of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.143.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.simpleapplicationserver.SimpleapplicationserverFunctions;
+     * import com.pulumi.alicloud.simpleapplicationserver.inputs.GetServerSnapshotsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = SimpleapplicationserverFunctions.getServerSnapshots(GetServerSnapshotsArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("simpleApplicationServerSnapshotId1", ids.applyValue(getServerSnapshotsResult -> getServerSnapshotsResult.snapshots()[0].id()));
+     *         final var nameRegex = SimpleapplicationserverFunctions.getServerSnapshots(GetServerSnapshotsArgs.builder()
+     *             .nameRegex("^my-Snapshot")
+     *             .build());
+     * 
+     *         ctx.export("simpleApplicationServerSnapshotId2", nameRegex.applyValue(getServerSnapshotsResult -> getServerSnapshotsResult.snapshots()[0].id()));
+     *         final var diskIdConf = SimpleapplicationserverFunctions.getServerSnapshots(GetServerSnapshotsArgs.builder()
+     *             .ids("example_id")
+     *             .diskId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("simpleApplicationServerSnapshotId3", diskIdConf.applyValue(getServerSnapshotsResult -> getServerSnapshotsResult.snapshots()[0].id()));
+     *         final var instanceIdConf = SimpleapplicationserverFunctions.getServerSnapshots(GetServerSnapshotsArgs.builder()
+     *             .ids("example_id")
+     *             .instanceId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("simpleApplicationServerSnapshotId4", instanceIdConf.applyValue(getServerSnapshotsResult -> getServerSnapshotsResult.snapshots()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServerSnapshots(GetServerSnapshotsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:simpleapplicationserver/getServerSnapshots:getServerSnapshots", TypeShape.of(GetServerSnapshotsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Simple Application Server Snapshots of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/slb/SlbFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/slb/SlbFunctions.java index c16deeb4ff..83702c4cc6 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/slb/SlbFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/slb/SlbFunctions.java @@ -50,6 +50,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class SlbFunctions { @@ -338,6 +339,63 @@ public static CompletableFuture getAclsPlain(GetAclsPlainArgs arg public static Output getAcls(GetAclsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:slb/getAcls:getAcls", TypeShape.of(GetAclsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the acls in the region. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.slb.SlbFunctions;
+     * import com.pulumi.alicloud.slb.inputs.GetAclsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var sampleDs = SlbFunctions.getAcls();
+     * 
+     *         ctx.export("firstSlbAclId", sampleDs.applyValue(getAclsResult -> getAclsResult.acls()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ## Entry Block + * + * The entry mapping supports the following: + * + * * `entry` - An IP addresses or CIDR blocks. + * * `comment` - the comment of the entry. + * + * ## Listener Block + * + * The Listener mapping supports the following: + * + * * `load_balancer_id` - the id of load balancer instance, the listener belongs to. + * * `frontend_port` - the listener port. + * * `protocol` - the listener protocol (such as tcp/udp/http/https, etc). + * * `acl_type` - the type of acl (such as white/black). + * + */ + public static Output getAcls(GetAclsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:slb/getAcls:getAcls", TypeShape.of(GetAclsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the acls in the region. * @@ -640,6 +698,55 @@ public static CompletableFuture getApplicatio public static Output getApplicationLoadBalancers(GetApplicationLoadBalancersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:slb/getApplicationLoadBalancers:getApplicationLoadBalancers", TypeShape.of(GetApplicationLoadBalancersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the server load balancers of the current Alibaba Cloud user. + * + * > **NOTE:** Available in 1.123.1+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.slb.SlbFunctions;
+     * import com.pulumi.alicloud.slb.inputs.GetApplicationLoadBalancersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = SlbFunctions.getApplicationLoadBalancers(GetApplicationLoadBalancersArgs.builder()
+     *             .nameRegex("sample_slb")
+     *             .tags(Map.ofEntries(
+     *                 Map.entry("tagKey1", "tagValue1"),
+     *                 Map.entry("tagKey2", "tagValue2")
+     *             ))
+     *             .build());
+     * 
+     *         ctx.export("firstSlbId", example.applyValue(getApplicationLoadBalancersResult -> getApplicationLoadBalancersResult.balancers()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getApplicationLoadBalancers(GetApplicationLoadBalancersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:slb/getApplicationLoadBalancers:getApplicationLoadBalancers", TypeShape.of(GetApplicationLoadBalancersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the server load balancers of the current Alibaba Cloud user. * @@ -818,6 +925,49 @@ public static CompletableFuture getAttachmentsPlain(GetAtt public static Output getAttachments(GetAttachmentsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:slb/getAttachments:getAttachments", TypeShape.of(GetAttachmentsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the server load balancer attachments of the current Alibaba Cloud user. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.slb.SlbFunctions;
+     * import com.pulumi.alicloud.slb.inputs.GetAttachmentsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var sampleDs = SlbFunctions.getAttachments(GetAttachmentsArgs.builder()
+     *             .loadBalancerId(sampleSlb.id())
+     *             .build());
+     * 
+     *         ctx.export("firstSlbAttachmentInstanceId", sampleDs.applyValue(getAttachmentsResult -> getAttachmentsResult.slbAttachments()[0].instanceId()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAttachments(GetAttachmentsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:slb/getAttachments:getAttachments", TypeShape.of(GetAttachmentsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the server load balancer attachments of the current Alibaba Cloud user. * @@ -996,6 +1146,51 @@ public static CompletableFuture getBackendServersPlain( public static Output getBackendServers(GetBackendServersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:slb/getBackendServers:getBackendServers", TypeShape.of(GetBackendServersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the server load balancer backend servers related to a server load balancer.. + * + * > **NOTE:** Available in 1.53.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.slb.SlbFunctions;
+     * import com.pulumi.alicloud.slb.inputs.GetBackendServersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var sampleDs = SlbFunctions.getBackendServers(GetBackendServersArgs.builder()
+     *             .loadBalancerId(sampleSlb.id())
+     *             .build());
+     * 
+     *         ctx.export("firstSlbBackendServerId", sampleDs.applyValue(getBackendServersResult -> getBackendServersResult.backendServers()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBackendServers(GetBackendServersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:slb/getBackendServers:getBackendServers", TypeShape.of(GetBackendServersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the server load balancer backend servers related to a server load balancer.. * @@ -1246,6 +1441,47 @@ public static CompletableFuture getCaCertificatesPlain( public static Output getCaCertificates(GetCaCertificatesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:slb/getCaCertificates:getCaCertificates", TypeShape.of(GetCaCertificatesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the CA certificate list. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.slb.SlbFunctions;
+     * import com.pulumi.alicloud.slb.inputs.GetCaCertificatesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var sampleDs = SlbFunctions.getCaCertificates();
+     * 
+     *         ctx.export("firstSlbCaCertificateId", sampleDs.applyValue(getCaCertificatesResult -> getCaCertificatesResult.certificates()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCaCertificates(GetCaCertificatesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:slb/getCaCertificates:getCaCertificates", TypeShape.of(GetCaCertificatesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the CA certificate list. * @@ -1425,6 +1661,52 @@ public static CompletableFuture getDomainExtensionsPl public static Output getDomainExtensions(GetDomainExtensionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:slb/getDomainExtensions:getDomainExtensions", TypeShape.of(GetDomainExtensionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the domain extensions associated with a server load balancer listener. + * + * > **NOTE:** Available in 1.60.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.slb.SlbFunctions;
+     * import com.pulumi.alicloud.slb.inputs.GetDomainExtensionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = SlbFunctions.getDomainExtensions(GetDomainExtensionsArgs.builder()
+     *             .ids("fake-de-id")
+     *             .loadBalancerId("fake-lb-id")
+     *             .frontendPort("fake-port")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDomainExtensions(GetDomainExtensionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:slb/getDomainExtensions:getDomainExtensions", TypeShape.of(GetDomainExtensionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the domain extensions associated with a server load balancer listener. * @@ -1678,6 +1960,75 @@ public static CompletableFuture getListenersPlain(GetListene public static Output getListeners(GetListenersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:slb/getListeners:getListeners", TypeShape.of(GetListenersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the listeners related to a server load balancer of the current Alibaba Cloud user. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.slb.ApplicationLoadBalancer;
+     * import com.pulumi.alicloud.slb.ApplicationLoadBalancerArgs;
+     * import com.pulumi.alicloud.slb.Listener;
+     * import com.pulumi.alicloud.slb.ListenerArgs;
+     * import com.pulumi.alicloud.slb.SlbFunctions;
+     * import com.pulumi.alicloud.slb.inputs.GetListenersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var default_ = new ApplicationLoadBalancer("default", ApplicationLoadBalancerArgs.builder()
+     *             .loadBalancerName("tf-testAccSlbListenertcp")
+     *             .build());
+     * 
+     *         var tcp = new Listener("tcp", ListenerArgs.builder()
+     *             .loadBalancerId(default_.id())
+     *             .backendPort("22")
+     *             .frontendPort("22")
+     *             .protocol("tcp")
+     *             .bandwidth("10")
+     *             .healthCheckType("tcp")
+     *             .persistenceTimeout(3600)
+     *             .healthyThreshold(8)
+     *             .unhealthyThreshold(8)
+     *             .healthCheckTimeout(8)
+     *             .healthCheckInterval(5)
+     *             .healthCheckHttpCode("http_2xx")
+     *             .healthCheckConnectPort(20)
+     *             .healthCheckUri("/console")
+     *             .establishedTimeout(600)
+     *             .build());
+     * 
+     *         final var sampleDs = SlbFunctions.getListeners(GetListenersArgs.builder()
+     *             .loadBalancerId(default_.id())
+     *             .build());
+     * 
+     *         ctx.export("firstSlbListenerProtocol", sampleDs.applyValue(getListenersResult -> getListenersResult).applyValue(sampleDs -> sampleDs.applyValue(getListenersResult -> getListenersResult.slbListeners()[0].protocol())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getListeners(GetListenersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:slb/getListeners:getListeners", TypeShape.of(GetListenersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the listeners related to a server load balancer of the current Alibaba Cloud user. * @@ -2002,6 +2353,57 @@ public static CompletableFuture getLoadBalancersPlain(Ge public static Output getLoadBalancers(GetLoadBalancersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:slb/getLoadBalancers:getLoadBalancers", TypeShape.of(GetLoadBalancersResult.class), args, Utilities.withVersion(options)); } + /** + * > **DEPRECATED:** This datasource has been renamed to alicloud.slb.getApplicationLoadBalancers from version 1.123.1. + * + * This data source provides the server load balancers of the current Alibaba Cloud user. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.slb.LoadBalancer;
+     * import com.pulumi.alicloud.slb.LoadBalancerArgs;
+     * import com.pulumi.alicloud.slb.SlbFunctions;
+     * import com.pulumi.alicloud.slb.inputs.GetLoadBalancersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var default_ = new LoadBalancer("default", LoadBalancerArgs.builder()
+     *             .name("sample_slb")
+     *             .build());
+     * 
+     *         final var slbsDs = SlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
+     *             .nameRegex("sample_slb")
+     *             .build());
+     * 
+     *         ctx.export("firstSlbId", slbsDs.applyValue(getLoadBalancersResult -> getLoadBalancersResult.slbs()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getLoadBalancers(GetLoadBalancersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:slb/getLoadBalancers:getLoadBalancers", TypeShape.of(GetLoadBalancersResult.class), args, Utilities.withVersion(options)); + } /** * > **DEPRECATED:** This datasource has been renamed to alicloud.slb.getApplicationLoadBalancers from version 1.123.1. * @@ -2074,20 +2476,133 @@ public static CompletableFuture getMasterSlave /** * This data source provides the master slave server groups related to a server load balancer. * - * > **NOTE:** Available in 1.54.0+ + * > **NOTE:** Available in 1.54.0+ + * + */ + public static Output getMasterSlaveServerGroups(GetMasterSlaveServerGroupsArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:slb/getMasterSlaveServerGroups:getMasterSlaveServerGroups", TypeShape.of(GetMasterSlaveServerGroupsResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the master slave server groups related to a server load balancer. + * + * > **NOTE:** Available in 1.54.0+ + * + */ + public static Output getMasterSlaveServerGroups(GetMasterSlaveServerGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:slb/getMasterSlaveServerGroups:getMasterSlaveServerGroups", TypeShape.of(GetMasterSlaveServerGroupsResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the master slave server groups related to a server load balancer. + * + * > **NOTE:** Available in 1.54.0+ + * + */ + public static CompletableFuture getMasterSlaveServerGroupsPlain(GetMasterSlaveServerGroupsPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:slb/getMasterSlaveServerGroups:getMasterSlaveServerGroups", TypeShape.of(GetMasterSlaveServerGroupsResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the rules associated with a server load balancer listener. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetZonesArgs;
+     * import com.pulumi.alicloud.vpc.Network;
+     * import com.pulumi.alicloud.vpc.NetworkArgs;
+     * import com.pulumi.alicloud.vpc.Switch;
+     * import com.pulumi.alicloud.vpc.SwitchArgs;
+     * import com.pulumi.alicloud.slb.ApplicationLoadBalancer;
+     * import com.pulumi.alicloud.slb.ApplicationLoadBalancerArgs;
+     * import com.pulumi.alicloud.slb.Listener;
+     * import com.pulumi.alicloud.slb.ListenerArgs;
+     * import com.pulumi.alicloud.slb.ServerGroup;
+     * import com.pulumi.alicloud.slb.ServerGroupArgs;
+     * import com.pulumi.alicloud.slb.Rule;
+     * import com.pulumi.alicloud.slb.RuleArgs;
+     * import com.pulumi.alicloud.slb.SlbFunctions;
+     * import com.pulumi.alicloud.slb.inputs.GetRulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("slbrulebasicconfig");
+     *         final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
+     *             .availableDiskCategory("cloud_efficiency")
+     *             .availableResourceCreation("VSwitch")
+     *             .build());
+     * 
+     *         var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
+     *             .name(name)
+     *             .cidrBlock("172.16.0.0/16")
+     *             .build());
+     * 
+     *         var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
+     *             .vpcId(defaultNetwork.id())
+     *             .cidrBlock("172.16.0.0/16")
+     *             .zoneId(default_.zones()[0].id())
+     *             .vswitchName(name)
+     *             .build());
+     * 
+     *         var defaultApplicationLoadBalancer = new ApplicationLoadBalancer("defaultApplicationLoadBalancer", ApplicationLoadBalancerArgs.builder()
+     *             .loadBalancerName(name)
+     *             .vswitchId(defaultSwitch.id())
+     *             .build());
+     * 
+     *         var defaultListener = new Listener("defaultListener", ListenerArgs.builder()
+     *             .loadBalancerId(defaultApplicationLoadBalancer.id())
+     *             .backendPort(22)
+     *             .frontendPort(22)
+     *             .protocol("http")
+     *             .bandwidth(5)
+     *             .healthCheckConnectPort("20")
+     *             .build());
+     * 
+     *         var defaultServerGroup = new ServerGroup("defaultServerGroup", ServerGroupArgs.builder()
+     *             .loadBalancerId(defaultApplicationLoadBalancer.id())
+     *             .build());
+     * 
+     *         var defaultRule = new Rule("defaultRule", RuleArgs.builder()
+     *             .loadBalancerId(defaultApplicationLoadBalancer.id())
+     *             .frontendPort(defaultListener.frontendPort())
+     *             .name(name)
+     *             .domain("*.aliyun.com")
+     *             .url("/image")
+     *             .serverGroupId(defaultServerGroup.id())
+     *             .build());
      * 
-     */
-    public static Output getMasterSlaveServerGroups(GetMasterSlaveServerGroupsArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("alicloud:slb/getMasterSlaveServerGroups:getMasterSlaveServerGroups", TypeShape.of(GetMasterSlaveServerGroupsResult.class), args, Utilities.withVersion(options));
-    }
-    /**
-     * This data source provides the master slave server groups related to a server load balancer.
+     *         final var sampleDs = SlbFunctions.getRules(GetRulesArgs.builder()
+     *             .loadBalancerId(defaultApplicationLoadBalancer.id())
+     *             .frontendPort(22)
+     *             .build());
      * 
-     * > **NOTE:** Available in 1.54.0+
+     *         ctx.export("firstSlbRuleId", sampleDs.applyValue(getRulesResult -> getRulesResult).applyValue(sampleDs -> sampleDs.applyValue(getRulesResult -> getRulesResult.slbRules()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getMasterSlaveServerGroupsPlain(GetMasterSlaveServerGroupsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:slb/getMasterSlaveServerGroups:getMasterSlaveServerGroups", TypeShape.of(GetMasterSlaveServerGroupsResult.class), args, Utilities.withVersion(options)); + public static Output getRules(GetRulesArgs args) { + return getRules(args, InvokeOptions.Empty); } /** * This data source provides the rules associated with a server load balancer listener. @@ -2190,8 +2705,8 @@ public static CompletableFuture getMasterSlave * <!--End PulumiCodeChooser --> * */ - public static Output getRules(GetRulesArgs args) { - return getRules(args, InvokeOptions.Empty); + public static CompletableFuture getRulesPlain(GetRulesPlainArgs args) { + return getRulesPlain(args, InvokeOptions.Empty); } /** * This data source provides the rules associated with a server load balancer listener. @@ -2294,8 +2809,8 @@ public static Output getRules(GetRulesArgs args) { * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getRulesPlain(GetRulesPlainArgs args) { - return getRulesPlain(args, InvokeOptions.Empty); + public static Output getRules(GetRulesArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:slb/getRules:getRules", TypeShape.of(GetRulesResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the rules associated with a server load balancer listener. @@ -2398,7 +2913,7 @@ public static CompletableFuture getRulesPlain(GetRulesPlainArgs * <!--End PulumiCodeChooser --> * */ - public static Output getRules(GetRulesArgs args, InvokeOptions options) { + public static Output getRules(GetRulesArgs args, InvokeOutputOptions options) { return Deployment.getInstance().invoke("alicloud:slb/getRules:getRules", TypeShape.of(GetRulesResult.class), args, Utilities.withVersion(options)); } /** @@ -2710,6 +3225,47 @@ public static CompletableFuture getServerCertificat public static Output getServerCertificates(GetServerCertificatesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:slb/getServerCertificates:getServerCertificates", TypeShape.of(GetServerCertificatesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the server certificate list. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.slb.SlbFunctions;
+     * import com.pulumi.alicloud.slb.inputs.GetServerCertificatesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var sampleDs = SlbFunctions.getServerCertificates();
+     * 
+     *         ctx.export("firstSlbServerCertificateId", sampleDs.applyValue(getServerCertificatesResult -> getServerCertificatesResult.certificates()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServerCertificates(GetServerCertificatesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:slb/getServerCertificates:getServerCertificates", TypeShape.of(GetServerCertificatesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the server certificate list. * @@ -2994,6 +3550,87 @@ public static CompletableFuture getServerGroupsPlain(GetS public static Output getServerGroups(GetServerGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:slb/getServerGroups:getServerGroups", TypeShape.of(GetServerGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the VServer groups related to a server load balancer. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetZonesArgs;
+     * import com.pulumi.alicloud.vpc.Network;
+     * import com.pulumi.alicloud.vpc.NetworkArgs;
+     * import com.pulumi.alicloud.vpc.Switch;
+     * import com.pulumi.alicloud.vpc.SwitchArgs;
+     * import com.pulumi.alicloud.slb.ApplicationLoadBalancer;
+     * import com.pulumi.alicloud.slb.ApplicationLoadBalancerArgs;
+     * import com.pulumi.alicloud.slb.ServerGroup;
+     * import com.pulumi.alicloud.slb.ServerGroupArgs;
+     * import com.pulumi.alicloud.slb.SlbFunctions;
+     * import com.pulumi.alicloud.slb.inputs.GetServerGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("slbservergroups");
+     *         final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
+     *             .availableDiskCategory("cloud_efficiency")
+     *             .availableResourceCreation("VSwitch")
+     *             .build());
+     * 
+     *         var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
+     *             .vpcName(name)
+     *             .cidrBlock("172.16.0.0/16")
+     *             .build());
+     * 
+     *         var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
+     *             .vpcId(defaultNetwork.id())
+     *             .cidrBlock("172.16.0.0/16")
+     *             .zoneId(default_.zones()[0].id())
+     *             .vswitchName(name)
+     *             .build());
+     * 
+     *         var defaultApplicationLoadBalancer = new ApplicationLoadBalancer("defaultApplicationLoadBalancer", ApplicationLoadBalancerArgs.builder()
+     *             .loadBalancerName(name)
+     *             .vswitchId(defaultSwitch.id())
+     *             .build());
+     * 
+     *         var defaultServerGroup = new ServerGroup("defaultServerGroup", ServerGroupArgs.builder()
+     *             .loadBalancerId(defaultApplicationLoadBalancer.id())
+     *             .build());
+     * 
+     *         final var sampleDs = SlbFunctions.getServerGroups(GetServerGroupsArgs.builder()
+     *             .loadBalancerId(defaultApplicationLoadBalancer.id())
+     *             .build());
+     * 
+     *         ctx.export("firstSlbServerGroupId", sampleDs.applyValue(getServerGroupsResult -> getServerGroupsResult).applyValue(sampleDs -> sampleDs.applyValue(getServerGroupsResult -> getServerGroupsResult.slbServerGroups()[0].id())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServerGroups(GetServerGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:slb/getServerGroups:getServerGroups", TypeShape.of(GetServerGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the VServer groups related to a server load balancer. * @@ -3345,6 +3982,60 @@ public static CompletableFuture getTlsCipherPolicies public static Output getTlsCipherPolicies(GetTlsCipherPoliciesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:slb/getTlsCipherPolicies:getTlsCipherPolicies", TypeShape.of(GetTlsCipherPoliciesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Slb Tls Cipher Policies of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.135.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.slb.SlbFunctions;
+     * import com.pulumi.alicloud.slb.inputs.GetTlsCipherPoliciesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = SlbFunctions.getTlsCipherPolicies(GetTlsCipherPoliciesArgs.builder()
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("slbTlsCipherPolicyId1", ids.applyValue(getTlsCipherPoliciesResult -> getTlsCipherPoliciesResult.policies()[0].id()));
+     *         final var nameRegex = SlbFunctions.getTlsCipherPolicies(GetTlsCipherPoliciesArgs.builder()
+     *             .nameRegex("^My-TlsCipherPolicy")
+     *             .build());
+     * 
+     *         ctx.export("slbTlsCipherPolicyId2", nameRegex.applyValue(getTlsCipherPoliciesResult -> getTlsCipherPoliciesResult.policies()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTlsCipherPolicies(GetTlsCipherPoliciesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:slb/getTlsCipherPolicies:getTlsCipherPolicies", TypeShape.of(GetTlsCipherPoliciesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Slb Tls Cipher Policies of the current Alibaba Cloud user. * @@ -3624,6 +4315,51 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:slb/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides availability zones for SLB that can be accessed by an Alibaba Cloud account within the region configured in the provider. + * + * > **NOTE:** Available in v1.73.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.slb.SlbFunctions;
+     * import com.pulumi.alicloud.slb.inputs.GetZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var zonesIds = SlbFunctions.getZones(GetZonesArgs.builder()
+     *             .availableSlbAddressType("vpc")
+     *             .availableSlbAddressIpVersion("ipv4")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:slb/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides availability zones for SLB that can be accessed by an Alibaba Cloud account within the region configured in the provider. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/tag/TagFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/tag/TagFunctions.java index 092229ee4c..457080cea6 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/tag/TagFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/tag/TagFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class TagFunctions { @@ -249,6 +250,53 @@ public static CompletableFuture getMetaTagsPlain(GetMetaTagsP public static Output getMetaTags(GetMetaTagsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:tag/getMetaTags:getMetaTags", TypeShape.of(GetMetaTagsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Tag Meta Tags of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.169.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.tag.TagFunctions;
+     * import com.pulumi.alicloud.tag.inputs.GetMetaTagsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = TagFunctions.getMetaTags(GetMetaTagsArgs.builder()
+     *             .keyName("example_value")
+     *             .build());
+     * 
+     *         ctx.export("tagMetaTagDefault1", default_.tags().valueName());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getMetaTags(GetMetaTagsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:tag/getMetaTags:getMetaTags", TypeShape.of(GetMetaTagsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Tag Meta Tags of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/threatdetection/ThreatdetectionFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/threatdetection/ThreatdetectionFunctions.java index 250d0ed56a..2db2e09d1d 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/threatdetection/ThreatdetectionFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/threatdetection/ThreatdetectionFunctions.java @@ -47,6 +47,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class ThreatdetectionFunctions { @@ -340,6 +341,64 @@ public static CompletableFuture getAntiBruteForceR public static Output getAntiBruteForceRules(GetAntiBruteForceRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:threatdetection/getAntiBruteForceRules:getAntiBruteForceRules", TypeShape.of(GetAntiBruteForceRulesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Threat Detection Anti Brute Force Rule available to the user.[What is Anti Brute Force Rule](https://www.alibabacloud.com/help/en/security-center/latest/api-sas-2018-12-03-createantibruteforcerule) + * + * > **NOTE:** Available since v1.195.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.threatdetection.AntiBruteForceRule;
+     * import com.pulumi.alicloud.threatdetection.AntiBruteForceRuleArgs;
+     * import com.pulumi.alicloud.threatdetection.ThreatdetectionFunctions;
+     * import com.pulumi.alicloud.threatdetection.inputs.GetAntiBruteForceRulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("example_value");
+     *         var defaultAntiBruteForceRule = new AntiBruteForceRule("defaultAntiBruteForceRule", AntiBruteForceRuleArgs.builder()
+     *             .antiBruteForceRuleName(name)
+     *             .forbiddenTime(360)
+     *             .uuidLists("7567806c-4ec5-4597-9543-7c9543381a13")
+     *             .failCount(80)
+     *             .span(10)
+     *             .build());
+     * 
+     *         final var default = ThreatdetectionFunctions.getAntiBruteForceRules(GetAntiBruteForceRulesArgs.builder()
+     *             .ids(defaultAntiBruteForceRule.id())
+     *             .nameRegex(defaultAntiBruteForceRule.name())
+     *             .build());
+     * 
+     *         ctx.export("alicloudThreatDetectionAntiBruteForceRuleExampleId", default_.applyValue(default_ -> default_.rules()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAntiBruteForceRules(GetAntiBruteForceRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:threatdetection/getAntiBruteForceRules:getAntiBruteForceRules", TypeShape.of(GetAntiBruteForceRulesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Threat Detection Anti Brute Force Rule available to the user.[What is Anti Brute Force Rule](https://www.alibabacloud.com/help/en/security-center/latest/api-sas-2018-12-03-createantibruteforcerule) * @@ -613,6 +672,49 @@ public static CompletableFuture getAssetsPlain(GetAssetsPlainAr public static Output getAssets(GetAssetsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:threatdetection/getAssets:getAssets", TypeShape.of(GetAssetsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Threat Detection Asset available to the user.[What is Asset](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-describecloudcenterinstances) + * + * > **NOTE:** Available since v1.195.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.threatdetection.ThreatdetectionFunctions;
+     * import com.pulumi.alicloud.threatdetection.inputs.GetAssetsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ThreatdetectionFunctions.getAssets();
+     * 
+     *         ctx.export("alicloudThreatDetectionAssetExampleId", default_.assets()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAssets(GetAssetsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:threatdetection/getAssets:getAssets", TypeShape.of(GetAssetsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Threat Detection Asset available to the user.[What is Asset](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-describecloudcenterinstances) * @@ -916,6 +1018,58 @@ public static CompletableFuture getBackupPoliciesPlain( public static Output getBackupPolicies(GetBackupPoliciesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:threatdetection/getBackupPolicies:getBackupPolicies", TypeShape.of(GetBackupPoliciesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Threat Detection Backup Policies of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.195.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.threatdetection.ThreatdetectionFunctions;
+     * import com.pulumi.alicloud.threatdetection.inputs.GetBackupPoliciesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = ThreatdetectionFunctions.getBackupPolicies(GetBackupPoliciesArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("threatDetectionBackupPoliciesId1", ids.applyValue(getBackupPoliciesResult -> getBackupPoliciesResult.policies()[0].id()));
+     *         final var nameRegex = ThreatdetectionFunctions.getBackupPolicies(GetBackupPoliciesArgs.builder()
+     *             .nameRegex("tf-example")
+     *             .build());
+     * 
+     *         ctx.export("threatDetectionBackupPoliciesId2", nameRegex.applyValue(getBackupPoliciesResult -> getBackupPoliciesResult.policies()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBackupPolicies(GetBackupPoliciesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:threatdetection/getBackupPolicies:getBackupPolicies", TypeShape.of(GetBackupPoliciesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Threat Detection Backup Policies of the current Alibaba Cloud user. * @@ -1263,6 +1417,65 @@ public static CompletableFuture getBaselineStrategi public static Output getBaselineStrategies(GetBaselineStrategiesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:threatdetection/getBaselineStrategies:getBaselineStrategies", TypeShape.of(GetBaselineStrategiesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Threat Detection Baseline Strategy available to the user.[What is Baseline Strategy](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-describestrategy) + * + * > **NOTE:** Available in 1.195.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.threatdetection.BaselineStrategy;
+     * import com.pulumi.alicloud.threatdetection.BaselineStrategyArgs;
+     * import com.pulumi.alicloud.threatdetection.ThreatdetectionFunctions;
+     * import com.pulumi.alicloud.threatdetection.inputs.GetBaselineStrategiesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var defaultBaselineStrategy = new BaselineStrategy("defaultBaselineStrategy", BaselineStrategyArgs.builder()
+     *             .customType("custom")
+     *             .endTime("08:00:00")
+     *             .baselineStrategyName("apispec")
+     *             .cycleDays(3)
+     *             .targetType("groupId")
+     *             .startTime("05:00:00")
+     *             .riskSubTypeName("hc_exploit_redis")
+     *             .build());
+     * 
+     *         final var default = ThreatdetectionFunctions.getBaselineStrategies(GetBaselineStrategiesArgs.builder()
+     *             .ids(defaultBaselineStrategy.id())
+     *             .nameRegex(defaultBaselineStrategy.name())
+     *             .customType("custom")
+     *             .build());
+     * 
+     *         ctx.export("alicloudThreatDetectionBaselineStrategyExampleId", defaultAlicloudThreatDetectionBaselineStrategys.strategys()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBaselineStrategies(GetBaselineStrategiesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:threatdetection/getBaselineStrategies:getBaselineStrategies", TypeShape.of(GetBaselineStrategiesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Threat Detection Baseline Strategy available to the user.[What is Baseline Strategy](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-describestrategy) * @@ -1567,6 +1780,55 @@ public static CompletableFuture getHoneyPotsPlain(GetHoneyPo public static Output getHoneyPots(GetHoneyPotsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:threatdetection/getHoneyPots:getHoneyPots", TypeShape.of(GetHoneyPotsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Threat Detection Honey Pot available to the user.[What is Honey Pot](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-createhoneypot) + * + * > **NOTE:** Available since v1.195.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.threatdetection.ThreatdetectionFunctions;
+     * import com.pulumi.alicloud.threatdetection.inputs.GetHoneyPotsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ThreatdetectionFunctions.getHoneyPots(GetHoneyPotsArgs.builder()
+     *             .ids("xxxx")
+     *             .honeypotName("tf-example")
+     *             .nodeId("a44e1ab3-6945-444c-889d-5bacee7056e8")
+     *             .build());
+     * 
+     *         ctx.export("alicloudThreatDetectionHoneyPotExampleId", default_.pots()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHoneyPots(GetHoneyPotsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:threatdetection/getHoneyPots:getHoneyPots", TypeShape.of(GetHoneyPotsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Threat Detection Honey Pot available to the user.[What is Honey Pot](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-createhoneypot) * @@ -1846,6 +2108,52 @@ public static CompletableFuture getHoneypotImagesPlain( public static Output getHoneypotImages(GetHoneypotImagesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:threatdetection/getHoneypotImages:getHoneypotImages", TypeShape.of(GetHoneypotImagesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Threat Detection Honeypot Image available to the user.[What is Honeypot Image](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-listavailablehoneypot) + * + * > **NOTE:** Available in 1.195.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.threatdetection.ThreatdetectionFunctions;
+     * import com.pulumi.alicloud.threatdetection.inputs.GetHoneypotImagesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ThreatdetectionFunctions.getHoneypotImages(GetHoneypotImagesArgs.builder()
+     *             .ids("sha256:02882320c9a55303410127c5dc4ae2dc470150f9d7f2483102d994f5e5f4d9df")
+     *             .nameRegex("^meta")
+     *             .build());
+     * 
+     *         ctx.export("alicloudThreatDetectionHoneypotImageExampleId", default_.images()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHoneypotImages(GetHoneypotImagesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:threatdetection/getHoneypotImages:getHoneypotImages", TypeShape.of(GetHoneypotImagesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Threat Detection Honeypot Image available to the user.[What is Honeypot Image](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-listavailablehoneypot) * @@ -2117,6 +2425,51 @@ public static CompletableFuture getHoneypotNodesPlain(Ge public static Output getHoneypotNodes(GetHoneypotNodesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:threatdetection/getHoneypotNodes:getHoneypotNodes", TypeShape.of(GetHoneypotNodesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Threat Detection Honeypot Node available to the user.[What is Honeypot Node](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-createhoneypotnode) + * + * > **NOTE:** Available in 1.195.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.threatdetection.ThreatdetectionFunctions;
+     * import com.pulumi.alicloud.threatdetection.inputs.GetHoneypotNodesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ThreatdetectionFunctions.getHoneypotNodes(GetHoneypotNodesArgs.builder()
+     *             .ids(defaultAlicloudThreatDetectionHoneypotNode.id())
+     *             .build());
+     * 
+     *         ctx.export("alicloudThreatDetectionHoneypotNodeExampleId", default_.nodes()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHoneypotNodes(GetHoneypotNodesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:threatdetection/getHoneypotNodes:getHoneypotNodes", TypeShape.of(GetHoneypotNodesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Threat Detection Honeypot Node available to the user.[What is Honeypot Node](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-createhoneypotnode) * @@ -2255,8 +2608,104 @@ public static Output getHoneypotPresets() { * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getHoneypotPresetsPlain() { - return getHoneypotPresetsPlain(GetHoneypotPresetsPlainArgs.Empty, InvokeOptions.Empty); + public static CompletableFuture getHoneypotPresetsPlain() { + return getHoneypotPresetsPlain(GetHoneypotPresetsPlainArgs.Empty, InvokeOptions.Empty); + } + /** + * This data source provides Threat Detection Honeypot Preset available to the user. + * + * > **NOTE:** Available in 1.195.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.threatdetection.ThreatdetectionFunctions;
+     * import com.pulumi.alicloud.threatdetection.inputs.GetHoneypotPresetsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ThreatdetectionFunctions.getHoneypotPresets(GetHoneypotPresetsArgs.builder()
+     *             .ids(defaultAlicloudThreatDetectionHoneypotPreset.id())
+     *             .honeypotImageName("shiro")
+     *             .nodeId("example_value")
+     *             .presetName("apiapec_test")
+     *             .build());
+     * 
+     *         ctx.export("alicloudThreatDetectionHoneypotPresetExampleId", default_.presets()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHoneypotPresets(GetHoneypotPresetsArgs args) { + return getHoneypotPresets(args, InvokeOptions.Empty); + } + /** + * This data source provides Threat Detection Honeypot Preset available to the user. + * + * > **NOTE:** Available in 1.195.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.threatdetection.ThreatdetectionFunctions;
+     * import com.pulumi.alicloud.threatdetection.inputs.GetHoneypotPresetsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ThreatdetectionFunctions.getHoneypotPresets(GetHoneypotPresetsArgs.builder()
+     *             .ids(defaultAlicloudThreatDetectionHoneypotPreset.id())
+     *             .honeypotImageName("shiro")
+     *             .nodeId("example_value")
+     *             .presetName("apiapec_test")
+     *             .build());
+     * 
+     *         ctx.export("alicloudThreatDetectionHoneypotPresetExampleId", default_.presets()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getHoneypotPresetsPlain(GetHoneypotPresetsPlainArgs args) { + return getHoneypotPresetsPlain(args, InvokeOptions.Empty); } /** * This data source provides Threat Detection Honeypot Preset available to the user. @@ -2303,8 +2752,8 @@ public static CompletableFuture getHoneypotPresetsPlai * <!--End PulumiCodeChooser --> * */ - public static Output getHoneypotPresets(GetHoneypotPresetsArgs args) { - return getHoneypotPresets(args, InvokeOptions.Empty); + public static Output getHoneypotPresets(GetHoneypotPresetsArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:threatdetection/getHoneypotPresets:getHoneypotPresets", TypeShape.of(GetHoneypotPresetsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides Threat Detection Honeypot Preset available to the user. @@ -2351,8 +2800,8 @@ public static Output getHoneypotPresets(GetHoneypotPre * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getHoneypotPresetsPlain(GetHoneypotPresetsPlainArgs args) { - return getHoneypotPresetsPlain(args, InvokeOptions.Empty); + public static Output getHoneypotPresets(GetHoneypotPresetsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:threatdetection/getHoneypotPresets:getHoneypotPresets", TypeShape.of(GetHoneypotPresetsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides Threat Detection Honeypot Preset available to the user. @@ -2399,11 +2848,11 @@ public static CompletableFuture getHoneypotPresetsPlai * <!--End PulumiCodeChooser --> * */ - public static Output getHoneypotPresets(GetHoneypotPresetsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("alicloud:threatdetection/getHoneypotPresets:getHoneypotPresets", TypeShape.of(GetHoneypotPresetsResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getHoneypotPresetsPlain(GetHoneypotPresetsPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:threatdetection/getHoneypotPresets:getHoneypotPresets", TypeShape.of(GetHoneypotPresetsResult.class), args, Utilities.withVersion(options)); } /** - * This data source provides Threat Detection Honeypot Preset available to the user. + * This data source provides Threat Detection Honeypot Probe available to the user.[What is Honeypot Probe](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-createhoneypotprobe) * * > **NOTE:** Available in 1.195.0+ * @@ -2417,8 +2866,11 @@ public static Output getHoneypotPresets(GetHoneypotPre * import com.pulumi.Context; * import com.pulumi.Pulumi; * import com.pulumi.core.Output; + * import com.pulumi.alicloud.threatdetection.HoneypotProbe; + * import com.pulumi.alicloud.threatdetection.HoneypotProbeArgs; + * import com.pulumi.alicloud.threatdetection.inputs.HoneypotProbeHoneypotBindListArgs; * import com.pulumi.alicloud.threatdetection.ThreatdetectionFunctions; - * import com.pulumi.alicloud.threatdetection.inputs.GetHoneypotPresetsArgs; + * import com.pulumi.alicloud.threatdetection.inputs.GetHoneypotProbesArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -2432,14 +2884,32 @@ public static Output getHoneypotPresets(GetHoneypotPre * } * * public static void stack(Context ctx) { - * final var default = ThreatdetectionFunctions.getHoneypotPresets(GetHoneypotPresetsArgs.builder() - * .ids(defaultAlicloudThreatDetectionHoneypotPreset.id()) - * .honeypotImageName("shiro") - * .nodeId("example_value") - * .presetName("apiapec_test") + * final var config = ctx.config(); + * final var name = config.get("name").orElse("tf-testAccThreatDetectionHoneypotProbe"); + * var defaultHoneypotProbe = new HoneypotProbe("defaultHoneypotProbe", HoneypotProbeArgs.builder() + * .uuid("e52c7872-29d1-4aa1-9908-0299abd53606") + * .probeType("host_probe") + * .controlNodeId("e1397077-4941-4b14-b533-ca2bdebd00a3") + * .ping(true) + * .honeypotBindLists(HoneypotProbeHoneypotBindListArgs.builder() + * .bindPortLists(HoneypotProbeHoneypotBindListBindPortListArgs.builder() + * .startPort(80) + * .endPort(80) + * .build()) + * .honeypotId("4925bf9784de992ecd017ad051528a03b3927ef814eeff76c2ebb3ab9a84bf05") + * .build()) + * .displayName(name) + * .arp(true) * .build()); * - * ctx.export("alicloudThreatDetectionHoneypotPresetExampleId", default_.presets()[0].id()); + * final var default = ThreatdetectionFunctions.getHoneypotProbes(GetHoneypotProbesArgs.builder() + * .ids(defaultHoneypotProbe.id()) + * .displayName(name) + * .probeType("host_probe") + * .enableDetails(true) + * .build()); + * + * ctx.export("alicloudThreatDetectionHoneypotProbeExampleId", default_.applyValue(default_ -> default_.probes()[0].id())); * } * } * } @@ -2447,8 +2917,8 @@ public static Output getHoneypotPresets(GetHoneypotPre * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getHoneypotPresetsPlain(GetHoneypotPresetsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:threatdetection/getHoneypotPresets:getHoneypotPresets", TypeShape.of(GetHoneypotPresetsResult.class), args, Utilities.withVersion(options)); + public static Output getHoneypotProbes() { + return getHoneypotProbes(GetHoneypotProbesArgs.Empty, InvokeOptions.Empty); } /** * This data source provides Threat Detection Honeypot Probe available to the user.[What is Honeypot Probe](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-createhoneypotprobe) @@ -2516,8 +2986,8 @@ public static CompletableFuture getHoneypotPresetsPlai * <!--End PulumiCodeChooser --> * */ - public static Output getHoneypotProbes() { - return getHoneypotProbes(GetHoneypotProbesArgs.Empty, InvokeOptions.Empty); + public static CompletableFuture getHoneypotProbesPlain() { + return getHoneypotProbesPlain(GetHoneypotProbesPlainArgs.Empty, InvokeOptions.Empty); } /** * This data source provides Threat Detection Honeypot Probe available to the user.[What is Honeypot Probe](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-createhoneypotprobe) @@ -2585,8 +3055,8 @@ public static Output getHoneypotProbes() { * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getHoneypotProbesPlain() { - return getHoneypotProbesPlain(GetHoneypotProbesPlainArgs.Empty, InvokeOptions.Empty); + public static Output getHoneypotProbes(GetHoneypotProbesArgs args) { + return getHoneypotProbes(args, InvokeOptions.Empty); } /** * This data source provides Threat Detection Honeypot Probe available to the user.[What is Honeypot Probe](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-createhoneypotprobe) @@ -2654,8 +3124,8 @@ public static CompletableFuture getHoneypotProbesPlain( * <!--End PulumiCodeChooser --> * */ - public static Output getHoneypotProbes(GetHoneypotProbesArgs args) { - return getHoneypotProbes(args, InvokeOptions.Empty); + public static CompletableFuture getHoneypotProbesPlain(GetHoneypotProbesPlainArgs args) { + return getHoneypotProbesPlain(args, InvokeOptions.Empty); } /** * This data source provides Threat Detection Honeypot Probe available to the user.[What is Honeypot Probe](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-createhoneypotprobe) @@ -2723,8 +3193,8 @@ public static Output getHoneypotProbes(GetHoneypotProbe * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getHoneypotProbesPlain(GetHoneypotProbesPlainArgs args) { - return getHoneypotProbesPlain(args, InvokeOptions.Empty); + public static Output getHoneypotProbes(GetHoneypotProbesArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:threatdetection/getHoneypotProbes:getHoneypotProbes", TypeShape.of(GetHoneypotProbesResult.class), args, Utilities.withVersion(options)); } /** * This data source provides Threat Detection Honeypot Probe available to the user.[What is Honeypot Probe](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-createhoneypotprobe) @@ -2792,7 +3262,7 @@ public static CompletableFuture getHoneypotProbesPlain( * <!--End PulumiCodeChooser --> * */ - public static Output getHoneypotProbes(GetHoneypotProbesArgs args, InvokeOptions options) { + public static Output getHoneypotProbes(GetHoneypotProbesArgs args, InvokeOutputOptions options) { return Deployment.getInstance().invoke("alicloud:threatdetection/getHoneypotProbes:getHoneypotProbes", TypeShape.of(GetHoneypotProbesResult.class), args, Utilities.withVersion(options)); } /** @@ -3089,6 +3559,51 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:threatdetection/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Threat Detection Instance available to the user.[What is Instance](https://www.alibabacloud.com/help/en/security-center/latest/what-is-security-center) + * + * > **NOTE:** Available in 1.199.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.threatdetection.ThreatdetectionFunctions;
+     * import com.pulumi.alicloud.threatdetection.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ThreatdetectionFunctions.getInstances(GetInstancesArgs.builder()
+     *             .ids(defaultAlicloudThreatDetectionInstance.id())
+     *             .build());
+     * 
+     *         ctx.export("alicloudThreatDetectionInstanceExampleId", default_.instances()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:threatdetection/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Threat Detection Instance available to the user.[What is Instance](https://www.alibabacloud.com/help/en/security-center/latest/what-is-security-center) * @@ -3374,6 +3889,54 @@ public static CompletableFuture getLogShipperPlain(GetLogSh public static Output getLogShipper(GetLogShipperArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:threatdetection/getLogShipper:getLogShipper", TypeShape.of(GetLogShipperResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open Threat Detection Log Shipper automatically. If the service has been enabled, it will return `Opened`. + * + * For information about Threat Detection Log Shipper and how to use it, see [What is Log Shipper](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-modifyopenlogshipper). + * + * > **NOTE:** Available in v1.195.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.threatdetection.ThreatdetectionFunctions;
+     * import com.pulumi.alicloud.threatdetection.inputs.GetLogShipperArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = ThreatdetectionFunctions.getLogShipper(GetLogShipperArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getLogShipper(GetLogShipperArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:threatdetection/getLogShipper:getLogShipper", TypeShape.of(GetLogShipperResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open Threat Detection Log Shipper automatically. If the service has been enabled, it will return `Opened`. * @@ -3657,6 +4220,53 @@ public static CompletableFuture getVulWhitelistsPlain(Ge public static Output getVulWhitelists(GetVulWhitelistsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:threatdetection/getVulWhitelists:getVulWhitelists", TypeShape.of(GetVulWhitelistsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Threat Detection Vul Whitelists of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.195.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.threatdetection.ThreatdetectionFunctions;
+     * import com.pulumi.alicloud.threatdetection.inputs.GetVulWhitelistsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ThreatdetectionFunctions.getVulWhitelists(GetVulWhitelistsArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("alicloudThreatDetectionVulWhitelistExampleId", default_.whitelists()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVulWhitelists(GetVulWhitelistsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:threatdetection/getVulWhitelists:getVulWhitelists", TypeShape.of(GetVulWhitelistsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Threat Detection Vul Whitelists of the current Alibaba Cloud user. * @@ -3929,6 +4539,51 @@ public static CompletableFuture getWebLockConfigsPlain( public static Output getWebLockConfigs(GetWebLockConfigsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:threatdetection/getWebLockConfigs:getWebLockConfigs", TypeShape.of(GetWebLockConfigsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Threat Detection Web Lock Config available to the user.[What is Web Lock Config](https://www.alibabacloud.com/help/en/security-center/latest/api-sas-2018-12-03-describeweblockconfiglist) + * + * > **NOTE:** Available since v1.195.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.threatdetection.ThreatdetectionFunctions;
+     * import com.pulumi.alicloud.threatdetection.inputs.GetWebLockConfigsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ThreatdetectionFunctions.getWebLockConfigs(GetWebLockConfigsArgs.builder()
+     *             .ids(defaultAlicloudThreatDetectionWebLockConfig.id())
+     *             .build());
+     * 
+     *         ctx.export("alicloudThreatDetectionWebLockConfigExampleId", default_.configs()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getWebLockConfigs(GetWebLockConfigsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:threatdetection/getWebLockConfigs:getWebLockConfigs", TypeShape.of(GetWebLockConfigsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Threat Detection Web Lock Config available to the user.[What is Web Lock Config](https://www.alibabacloud.com/help/en/security-center/latest/api-sas-2018-12-03-describeweblockconfiglist) * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/tsdb/TsdbFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/tsdb/TsdbFunctions.java index da86d20747..1d4fc20ae6 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/tsdb/TsdbFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/tsdb/TsdbFunctions.java @@ -14,6 +14,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class TsdbFunctions { @@ -252,6 +253,53 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:tsdb/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Time Series Database (TSDB) Instances of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.112.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.tsdb.TsdbFunctions;
+     * import com.pulumi.alicloud.tsdb.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = TsdbFunctions.getInstances(GetInstancesArgs.builder()
+     *             .ids("example_value")
+     *             .build());
+     * 
+     *         ctx.export("firstTsdbInstanceId", example.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:tsdb/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Time Series Database (TSDB) Instances of the current Alibaba Cloud user. * @@ -524,6 +572,51 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:tsdb/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the available zones with the Time Series Database (TSDB) Instance of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.112.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.tsdb.TsdbFunctions;
+     * import com.pulumi.alicloud.tsdb.inputs.GetZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = TsdbFunctions.getZones();
+     * 
+     *         ctx.export("firstTsdbZonesId", example.applyValue(getZonesResult -> getZonesResult.zones()[0].zoneId()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:tsdb/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the available zones with the Time Series Database (TSDB) Instance of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/videosurveillance/VideosurveillanceFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/videosurveillance/VideosurveillanceFunctions.java index 43c1469bce..2a354e2e10 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/videosurveillance/VideosurveillanceFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/videosurveillance/VideosurveillanceFunctions.java @@ -14,6 +14,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class VideosurveillanceFunctions { @@ -257,6 +258,54 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:videosurveillance/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open Video Surveillance System service automatically. If the service has been opened, it will return opened. + * + * For information about Video Surveillance System and how to use it, see [What is VS](https://help.aliyun.com/product/108765.html). + * + * > **NOTE:** Available in v1.116.0+ + * + * > **NOTE:** The Video Surveillance System service is not support in the international site. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.videosurveillance.VideosurveillanceFunctions;
+     * import com.pulumi.alicloud.videosurveillance.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = VideosurveillanceFunctions.getService(GetServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:videosurveillance/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open Video Surveillance System service automatically. If the service has been opened, it will return opened. * @@ -590,6 +639,63 @@ public static CompletableFuture getSystemGroupsPlain(GetS public static Output getSystemGroups(GetSystemGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:videosurveillance/getSystemGroups:getSystemGroups", TypeShape.of(GetSystemGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Video Surveillance System Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.135.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.videosurveillance.SystemGroup;
+     * import com.pulumi.alicloud.videosurveillance.SystemGroupArgs;
+     * import com.pulumi.alicloud.videosurveillance.VideosurveillanceFunctions;
+     * import com.pulumi.alicloud.videosurveillance.inputs.GetSystemGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var defaultSystemGroup = new SystemGroup("defaultSystemGroup", SystemGroupArgs.builder()
+     *             .groupName("groupname")
+     *             .inProtocol("rtmp")
+     *             .outProtocol("flv")
+     *             .playDomain("your_plan_domain")
+     *             .pushDomain("your_push_domain")
+     *             .build());
+     * 
+     *         final var default = VideosurveillanceFunctions.getSystemGroups(GetSystemGroupsArgs.builder()
+     *             .ids(defaultSystemGroup.id())
+     *             .build());
+     * 
+     *         ctx.export("vsGroup", default_.applyValue(default_ -> default_.ids()[0]));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSystemGroups(GetSystemGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:videosurveillance/getSystemGroups:getSystemGroups", TypeShape.of(GetSystemGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Video Surveillance System Groups of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/vod/VodFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/vod/VodFunctions.java index e410a12af5..23459a25f8 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/vod/VodFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/vod/VodFunctions.java @@ -11,6 +11,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class VodFunctions { @@ -354,6 +355,74 @@ public static CompletableFuture getDomainsPlain(GetDomainsPlai public static Output getDomains(GetDomainsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vod/getDomains:getDomains", TypeShape.of(GetDomainsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Vod Domains of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.136.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vod.Domain;
+     * import com.pulumi.alicloud.vod.DomainArgs;
+     * import com.pulumi.alicloud.vod.inputs.DomainSourceArgs;
+     * import com.pulumi.alicloud.vod.VodFunctions;
+     * import com.pulumi.alicloud.vod.inputs.GetDomainsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var defaultDomain = new Domain("defaultDomain", DomainArgs.builder()
+     *             .domainName("your_domain_name")
+     *             .scope("domestic")
+     *             .sources(DomainSourceArgs.builder()
+     *                 .sourceType("domain")
+     *                 .sourceContent("your_source_content")
+     *                 .sourcePort("80")
+     *                 .build())
+     *             .tags(Map.ofEntries(
+     *                 Map.entry("key1", "value1"),
+     *                 Map.entry("key2", "value2")
+     *             ))
+     *             .build());
+     * 
+     *         final var default = VodFunctions.getDomains(GetDomainsArgs.builder()
+     *             .ids(defaultDomain.id())
+     *             .tags(Map.ofEntries(
+     *                 Map.entry("key1", "value1"),
+     *                 Map.entry("key2", "value2")
+     *             ))
+     *             .build());
+     * 
+     *         ctx.export("vodDomain", default_.applyValue(default_ -> default_.domains()[0]));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDomains(GetDomainsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vod/getDomains:getDomains", TypeShape.of(GetDomainsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Vod Domains of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/vpc/VpcFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/vpc/VpcFunctions.java index 932e730a83..1006c8ce3e 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/vpc/VpcFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/vpc/VpcFunctions.java @@ -122,6 +122,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class VpcFunctions { @@ -385,6 +386,58 @@ public static CompletableFuture getBgpGroupsPlain(GetBgpGrou public static Output getBgpGroups(GetBgpGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpc/getBgpGroups:getBgpGroups", TypeShape.of(GetBgpGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Vpc Bgp Groups of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.152.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetBgpGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = VpcFunctions.getBgpGroups(GetBgpGroupsArgs.builder()
+     *             .ids("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcBgpGroupId1", ids.applyValue(getBgpGroupsResult -> getBgpGroupsResult.groups()[0].id()));
+     *         final var nameRegex = VpcFunctions.getBgpGroups(GetBgpGroupsArgs.builder()
+     *             .nameRegex("^my-BgpGroup")
+     *             .build());
+     * 
+     *         ctx.export("vpcBgpGroupId2", nameRegex.applyValue(getBgpGroupsResult -> getBgpGroupsResult.groups()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBgpGroups(GetBgpGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getBgpGroups:getBgpGroups", TypeShape.of(GetBgpGroupsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Vpc Bgp Groups of the current Alibaba Cloud user. * @@ -722,6 +775,63 @@ public static CompletableFuture getBgpNetworksPlain(GetBgp public static Output getBgpNetworks(GetBgpNetworksArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpc/getBgpNetworks:getBgpNetworks", TypeShape.of(GetBgpNetworksResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Vpc Bgp Networks of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.153.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetBgpNetworksArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = VpcFunctions.getBgpNetworks(GetBgpNetworksArgs.builder()
+     *             .ids("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcBgpNetworkId1", ids.applyValue(getBgpNetworksResult -> getBgpNetworksResult.networks()[0].id()));
+     *         final var routerId = VpcFunctions.getBgpNetworks(GetBgpNetworksArgs.builder()
+     *             .routerId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcBgpNetworkId2", routerId.applyValue(getBgpNetworksResult -> getBgpNetworksResult.networks()[0].id()));
+     *         final var status = VpcFunctions.getBgpNetworks(GetBgpNetworksArgs.builder()
+     *             .status("Available")
+     *             .build());
+     * 
+     *         ctx.export("vpcBgpNetworkId3", status.applyValue(getBgpNetworksResult -> getBgpNetworksResult.networks()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBgpNetworks(GetBgpNetworksArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getBgpNetworks:getBgpNetworks", TypeShape.of(GetBgpNetworksResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Vpc Bgp Networks of the current Alibaba Cloud user. * @@ -1099,6 +1209,70 @@ public static CompletableFuture getBgpPeersPlain(GetBgpPeersP public static Output getBgpPeers(GetBgpPeersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpc/getBgpPeers:getBgpPeers", TypeShape.of(GetBgpPeersResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Vpc Bgp Peers of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.153.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetBgpPeersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = VpcFunctions.getBgpPeers(GetBgpPeersArgs.builder()
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("vpcBgpPeerId1", ids.applyValue(getBgpPeersResult -> getBgpPeersResult.peers()[0].id()));
+     *         final var bgpGroupId = VpcFunctions.getBgpPeers(GetBgpPeersArgs.builder()
+     *             .bgpGroupId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcBgpPeerId2", bgpGroupId.applyValue(getBgpPeersResult -> getBgpPeersResult.peers()[0].id()));
+     *         final var routerId = VpcFunctions.getBgpPeers(GetBgpPeersArgs.builder()
+     *             .routerId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcBgpPeerId3", routerId.applyValue(getBgpPeersResult -> getBgpPeersResult.peers()[0].id()));
+     *         final var status = VpcFunctions.getBgpPeers(GetBgpPeersArgs.builder()
+     *             .status("Available")
+     *             .build());
+     * 
+     *         ctx.export("vpcBgpPeerId4", status.applyValue(getBgpPeersResult -> getBgpPeersResult.peers()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBgpPeers(GetBgpPeersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getBgpPeers:getBgpPeers", TypeShape.of(GetBgpPeersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Vpc Bgp Peers of the current Alibaba Cloud user. * @@ -1468,6 +1642,67 @@ public static CompletableFuture getCommonBandw public static Output getCommonBandwidthPackages(GetCommonBandwidthPackagesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpc/getCommonBandwidthPackages:getCommonBandwidthPackages", TypeShape.of(GetCommonBandwidthPackagesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of Common Bandwidth Packages owned by an Alibaba Cloud account. + * + * > **NOTE:** Available in 1.36.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.CommonBandwithPackage;
+     * import com.pulumi.alicloud.vpc.CommonBandwithPackageArgs;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetCommonBandwidthPackagesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var fooCommonBandwithPackage = new CommonBandwithPackage("fooCommonBandwithPackage", CommonBandwithPackageArgs.builder()
+     *             .bandwidth("2")
+     *             .name("tf-testAccCommonBandwidthPackage")
+     *             .description("tf-testAcc-CommonBandwidthPackage")
+     *             .build());
+     * 
+     *         final var foo = VpcFunctions.getCommonBandwidthPackages(GetCommonBandwidthPackagesArgs.builder()
+     *             .nameRegex("^tf-testAcc.*")
+     *             .ids(fooCommonBandwithPackage.id())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ## Public ip addresses Block + * + * The public ip addresses mapping supports the following: + * + * * `ip_address` - The address of the EIP. + * * `allocation_id` - The ID of the EIP instance. + * * `bandwidth_package_ip_relation_status` - The IP relation status of bandwidth package. + * + */ + public static Output getCommonBandwidthPackages(GetCommonBandwidthPackagesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getCommonBandwidthPackages:getCommonBandwidthPackages", TypeShape.of(GetCommonBandwidthPackagesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of Common Bandwidth Packages owned by an Alibaba Cloud account. * @@ -1940,33 +2175,105 @@ public static Output getDhcpOptionsSets(GetDhcpOptions * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getDhcpOptionsSetsPlain(GetDhcpOptionsSetsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:vpc/getDhcpOptionsSets:getDhcpOptionsSets", TypeShape.of(GetDhcpOptionsSetsResult.class), args, Utilities.withVersion(options)); - } - public static Output getEnhancedNatAvailableZones() { - return getEnhancedNatAvailableZones(GetEnhancedNatAvailableZonesArgs.Empty, InvokeOptions.Empty); - } - public static CompletableFuture getEnhancedNatAvailableZonesPlain() { - return getEnhancedNatAvailableZonesPlain(GetEnhancedNatAvailableZonesPlainArgs.Empty, InvokeOptions.Empty); - } - public static Output getEnhancedNatAvailableZones(GetEnhancedNatAvailableZonesArgs args) { - return getEnhancedNatAvailableZones(args, InvokeOptions.Empty); - } - public static CompletableFuture getEnhancedNatAvailableZonesPlain(GetEnhancedNatAvailableZonesPlainArgs args) { - return getEnhancedNatAvailableZonesPlain(args, InvokeOptions.Empty); - } - public static Output getEnhancedNatAvailableZones(GetEnhancedNatAvailableZonesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("alicloud:vpc/getEnhancedNatAvailableZones:getEnhancedNatAvailableZones", TypeShape.of(GetEnhancedNatAvailableZonesResult.class), args, Utilities.withVersion(options)); - } - public static CompletableFuture getEnhancedNatAvailableZonesPlain(GetEnhancedNatAvailableZonesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:vpc/getEnhancedNatAvailableZones:getEnhancedNatAvailableZones", TypeShape.of(GetEnhancedNatAvailableZonesResult.class), args, Utilities.withVersion(options)); + public static Output getDhcpOptionsSets(GetDhcpOptionsSetsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getDhcpOptionsSets:getDhcpOptionsSets", TypeShape.of(GetDhcpOptionsSetsResult.class), args, Utilities.withVersion(options)); } /** - * Using this data source can open Vpc Flow Log service automatically. If the service has been opened, it will return opened. + * This data source provides the Vpc Dhcp Options Sets of the current Alibaba Cloud user. * - * For information about Vpc Flow Log and how to use it, see [What is Vpc Flow Log](https://www.alibabacloud.com/help/en/vpc/developer-reference/api-openflowlog). + * > **NOTE:** Available in v1.134.0+. * - * > **NOTE:** Available since v1.209.0. + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetDhcpOptionsSetsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = VpcFunctions.getDhcpOptionsSets(GetDhcpOptionsSetsArgs.builder()
+     *             .ids("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcDhcpOptionsSetId1", ids.applyValue(getDhcpOptionsSetsResult -> getDhcpOptionsSetsResult.sets()[0].id()));
+     *         final var nameRegex = VpcFunctions.getDhcpOptionsSets(GetDhcpOptionsSetsArgs.builder()
+     *             .nameRegex("^my-DhcpOptionsSet")
+     *             .build());
+     * 
+     *         ctx.export("vpcDhcpOptionsSetId2", nameRegex.applyValue(getDhcpOptionsSetsResult -> getDhcpOptionsSetsResult.sets()[0].id()));
+     *         final var dhcpOptionsSetName = VpcFunctions.getDhcpOptionsSets(GetDhcpOptionsSetsArgs.builder()
+     *             .dhcpOptionsSetName("my-DhcpOptionsSet")
+     *             .build());
+     * 
+     *         ctx.export("vpcDhcpOptionsSetId3", dhcpOptionsSetName.applyValue(getDhcpOptionsSetsResult -> getDhcpOptionsSetsResult.sets()[0].id()));
+     *         final var domainName = VpcFunctions.getDhcpOptionsSets(GetDhcpOptionsSetsArgs.builder()
+     *             .ids("example_value")
+     *             .domainName("example.com")
+     *             .build());
+     * 
+     *         ctx.export("vpcDhcpOptionsSetId4", domainName.applyValue(getDhcpOptionsSetsResult -> getDhcpOptionsSetsResult.sets()[0].id()));
+     *         final var status = VpcFunctions.getDhcpOptionsSets(GetDhcpOptionsSetsArgs.builder()
+     *             .ids("example_value")
+     *             .status("Available")
+     *             .build());
+     * 
+     *         ctx.export("vpcDhcpOptionsSetId5", status.applyValue(getDhcpOptionsSetsResult -> getDhcpOptionsSetsResult.sets()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getDhcpOptionsSetsPlain(GetDhcpOptionsSetsPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:vpc/getDhcpOptionsSets:getDhcpOptionsSets", TypeShape.of(GetDhcpOptionsSetsResult.class), args, Utilities.withVersion(options)); + } + public static Output getEnhancedNatAvailableZones() { + return getEnhancedNatAvailableZones(GetEnhancedNatAvailableZonesArgs.Empty, InvokeOptions.Empty); + } + public static CompletableFuture getEnhancedNatAvailableZonesPlain() { + return getEnhancedNatAvailableZonesPlain(GetEnhancedNatAvailableZonesPlainArgs.Empty, InvokeOptions.Empty); + } + public static Output getEnhancedNatAvailableZones(GetEnhancedNatAvailableZonesArgs args) { + return getEnhancedNatAvailableZones(args, InvokeOptions.Empty); + } + public static CompletableFuture getEnhancedNatAvailableZonesPlain(GetEnhancedNatAvailableZonesPlainArgs args) { + return getEnhancedNatAvailableZonesPlain(args, InvokeOptions.Empty); + } + public static Output getEnhancedNatAvailableZones(GetEnhancedNatAvailableZonesArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getEnhancedNatAvailableZones:getEnhancedNatAvailableZones", TypeShape.of(GetEnhancedNatAvailableZonesResult.class), args, Utilities.withVersion(options)); + } + public static Output getEnhancedNatAvailableZones(GetEnhancedNatAvailableZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getEnhancedNatAvailableZones:getEnhancedNatAvailableZones", TypeShape.of(GetEnhancedNatAvailableZonesResult.class), args, Utilities.withVersion(options)); + } + public static CompletableFuture getEnhancedNatAvailableZonesPlain(GetEnhancedNatAvailableZonesPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:vpc/getEnhancedNatAvailableZones:getEnhancedNatAvailableZones", TypeShape.of(GetEnhancedNatAvailableZonesResult.class), args, Utilities.withVersion(options)); + } + /** + * Using this data source can open Vpc Flow Log service automatically. If the service has been opened, it will return opened. + * + * For information about Vpc Flow Log and how to use it, see [What is Vpc Flow Log](https://www.alibabacloud.com/help/en/vpc/developer-reference/api-openflowlog). + * + * > **NOTE:** Available since v1.209.0. * * ## Example Usage * @@ -2201,6 +2508,54 @@ public static CompletableFuture getFlowLogServicePlain( public static Output getFlowLogService(GetFlowLogServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpc/getFlowLogService:getFlowLogService", TypeShape.of(GetFlowLogServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Using this data source can open Vpc Flow Log service automatically. If the service has been opened, it will return opened. + * + * For information about Vpc Flow Log and how to use it, see [What is Vpc Flow Log](https://www.alibabacloud.com/help/en/vpc/developer-reference/api-openflowlog). + * + * > **NOTE:** Available since v1.209.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetFlowLogServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = VpcFunctions.getFlowLogService(GetFlowLogServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getFlowLogService(GetFlowLogServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getFlowLogService:getFlowLogService", TypeShape.of(GetFlowLogServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open Vpc Flow Log service automatically. If the service has been opened, it will return opened. * @@ -2555,6 +2910,108 @@ public static CompletableFuture getForwardEntriesPlain( public static Output getForwardEntries(GetForwardEntriesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpc/getForwardEntries:getForwardEntries", TypeShape.of(GetForwardEntriesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of Forward Entries owned by an Alibaba Cloud account. + * + * > **NOTE:** Available in 1.37.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetZonesArgs;
+     * import com.pulumi.alicloud.vpc.Network;
+     * import com.pulumi.alicloud.vpc.NetworkArgs;
+     * import com.pulumi.alicloud.vpc.Switch;
+     * import com.pulumi.alicloud.vpc.SwitchArgs;
+     * import com.pulumi.alicloud.vpc.NatGateway;
+     * import com.pulumi.alicloud.vpc.NatGatewayArgs;
+     * import com.pulumi.alicloud.ecs.EipAddress;
+     * import com.pulumi.alicloud.ecs.EipAddressArgs;
+     * import com.pulumi.alicloud.ecs.EipAssociation;
+     * import com.pulumi.alicloud.ecs.EipAssociationArgs;
+     * import com.pulumi.alicloud.vpc.ForwardEntry;
+     * import com.pulumi.alicloud.vpc.ForwardEntryArgs;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetForwardEntriesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("forward-entry-config-example-name");
+     *         final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
+     *             .availableResourceCreation("VSwitch")
+     *             .build());
+     * 
+     *         var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
+     *             .vpcName(name)
+     *             .cidrBlock("172.16.0.0/12")
+     *             .build());
+     * 
+     *         var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
+     *             .vpcId(defaultNetwork.id())
+     *             .cidrBlock("172.16.0.0/21")
+     *             .zoneId(default_.zones()[0].id())
+     *             .vswitchName(name)
+     *             .build());
+     * 
+     *         var defaultNatGateway = new NatGateway("defaultNatGateway", NatGatewayArgs.builder()
+     *             .vpcId(defaultNetwork.id())
+     *             .internetChargeType("PayByLcu")
+     *             .natGatewayName(name)
+     *             .natType("Enhanced")
+     *             .vswitchId(defaultSwitch.id())
+     *             .build());
+     * 
+     *         var defaultEipAddress = new EipAddress("defaultEipAddress", EipAddressArgs.builder()
+     *             .addressName(name)
+     *             .build());
+     * 
+     *         var defaultEipAssociation = new EipAssociation("defaultEipAssociation", EipAssociationArgs.builder()
+     *             .allocationId(defaultEipAddress.id())
+     *             .instanceId(defaultNatGateway.id())
+     *             .build());
+     * 
+     *         var defaultForwardEntry = new ForwardEntry("defaultForwardEntry", ForwardEntryArgs.builder()
+     *             .forwardTableId(defaultNatGateway.forwardTableIds())
+     *             .externalIp(defaultEipAddress.ipAddress())
+     *             .externalPort("80")
+     *             .ipProtocol("tcp")
+     *             .internalIp("172.16.0.3")
+     *             .internalPort("8080")
+     *             .build());
+     * 
+     *         final var defaultGetForwardEntries = VpcFunctions.getForwardEntries(GetForwardEntriesArgs.builder()
+     *             .forwardTableId(defaultForwardEntry.forwardTableId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getForwardEntries(GetForwardEntriesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getForwardEntries:getForwardEntries", TypeShape.of(GetForwardEntriesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of Forward Entries owned by an Alibaba Cloud account. * @@ -2942,13 +3399,13 @@ public static Output getHavips(GetHavipsArgs args, InvokeOption * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getHavipsPlain(GetHavipsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:vpc/getHavips:getHavips", TypeShape.of(GetHavipsResult.class), args, Utilities.withVersion(options)); + public static Output getHavips(GetHavipsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getHavips:getHavips", TypeShape.of(GetHavipsResult.class), args, Utilities.withVersion(options)); } /** - * This data source provides the Vpn Ipsec Servers of the current Alibaba Cloud user. + * This data source provides the Havips of the current Alibaba Cloud user. * - * > **NOTE:** Available in v1.161.0+. + * > **NOTE:** Available in v1.120.0+. * * ## Example Usage * @@ -2963,7 +3420,7 @@ public static CompletableFuture getHavipsPlain(GetHavipsPlainAr * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.alicloud.vpc.VpcFunctions; - * import com.pulumi.alicloud.vpc.inputs.GetIpsecServersArgs; + * import com.pulumi.alicloud.vpc.inputs.GetHavipsArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -2977,14 +3434,62 @@ public static CompletableFuture getHavipsPlain(GetHavipsPlainAr * } * * public static void stack(Context ctx) { - * final var ids = VpcFunctions.getIpsecServers(GetIpsecServersArgs.builder() - * .ids("example_id") + * final var example = VpcFunctions.getHavips(GetHavipsArgs.builder() + * .ids("example_value") + * .nameRegex("the_resource_name") * .build()); * - * ctx.export("vpnIpsecServerId1", ids.applyValue(getIpsecServersResult -> getIpsecServersResult.servers()[0].id())); - * final var nameRegex = VpcFunctions.getIpsecServers(GetIpsecServersArgs.builder() - * .nameRegex("^my-IpsecServer") - * .build()); + * ctx.export("firstHavipId", example.applyValue(getHavipsResult -> getHavipsResult.havips()[0].id())); + * } + * } + * } + *
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getHavipsPlain(GetHavipsPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:vpc/getHavips:getHavips", TypeShape.of(GetHavipsResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Vpn Ipsec Servers of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.161.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetIpsecServersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = VpcFunctions.getIpsecServers(GetIpsecServersArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("vpnIpsecServerId1", ids.applyValue(getIpsecServersResult -> getIpsecServersResult.servers()[0].id()));
+     *         final var nameRegex = VpcFunctions.getIpsecServers(GetIpsecServersArgs.builder()
+     *             .nameRegex("^my-IpsecServer")
+     *             .build());
      * 
      *         ctx.export("vpnIpsecServerId2", nameRegex.applyValue(getIpsecServersResult -> getIpsecServersResult.servers()[0].id()));
      *     }
@@ -3205,6 +3710,58 @@ public static CompletableFuture getIpsecServersPlain(GetI
     public static Output getIpsecServers(GetIpsecServersArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("alicloud:vpc/getIpsecServers:getIpsecServers", TypeShape.of(GetIpsecServersResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * This data source provides the Vpn Ipsec Servers of the current Alibaba Cloud user.
+     * 
+     * > **NOTE:** Available in v1.161.0+.
+     * 
+     * ## Example Usage
+     * 
+     * Basic Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetIpsecServersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = VpcFunctions.getIpsecServers(GetIpsecServersArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("vpnIpsecServerId1", ids.applyValue(getIpsecServersResult -> getIpsecServersResult.servers()[0].id()));
+     *         final var nameRegex = VpcFunctions.getIpsecServers(GetIpsecServersArgs.builder()
+     *             .nameRegex("^my-IpsecServer")
+     *             .build());
+     * 
+     *         ctx.export("vpnIpsecServerId2", nameRegex.applyValue(getIpsecServersResult -> getIpsecServersResult.servers()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getIpsecServers(GetIpsecServersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getIpsecServers:getIpsecServers", TypeShape.of(GetIpsecServersResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Vpn Ipsec Servers of the current Alibaba Cloud user. * @@ -3507,6 +4064,56 @@ public static CompletableFuture getIpv4GatewaysPlain(GetI public static Output getIpv4Gateways(GetIpv4GatewaysArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpc/getIpv4Gateways:getIpv4Gateways", TypeShape.of(GetIpv4GatewaysResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Vpc Ipv4 Gateways of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.181.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetIpv4GatewaysArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = VpcFunctions.getIpv4Gateways();
+     * 
+     *         ctx.export("vpcIpv4GatewayId1", ids.applyValue(getIpv4GatewaysResult -> getIpv4GatewaysResult.gateways()[0].id()));
+     *         final var nameRegex = VpcFunctions.getIpv4Gateways(GetIpv4GatewaysArgs.builder()
+     *             .nameRegex("^my-Ipv4Gateway")
+     *             .build());
+     * 
+     *         ctx.export("vpcIpv4GatewayId2", nameRegex.applyValue(getIpv4GatewaysResult -> getIpv4GatewaysResult.gateways()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getIpv4Gateways(GetIpv4GatewaysArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getIpv4Gateways:getIpv4Gateways", TypeShape.of(GetIpv4GatewaysResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Vpc Ipv4 Gateways of the current Alibaba Cloud user. * @@ -3867,6 +4474,68 @@ public static CompletableFuture getIpv6AddressesPlain(Ge public static Output getIpv6Addresses(GetIpv6AddressesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpc/getIpv6Addresses:getIpv6Addresses", TypeShape.of(GetIpv6AddressesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Vpc Ipv6 Addresses of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.142.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetIpv6AddressesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var associatedInstanceId = VpcFunctions.getIpv6Addresses(GetIpv6AddressesArgs.builder()
+     *             .associatedInstanceId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcIpv6AddressId1", associatedInstanceId.applyValue(getIpv6AddressesResult -> getIpv6AddressesResult.addresses()[0].id()));
+     *         final var vswitchId = VpcFunctions.getIpv6Addresses(GetIpv6AddressesArgs.builder()
+     *             .vswitchId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcIpv6AddressId2", vswitchId.applyValue(getIpv6AddressesResult -> getIpv6AddressesResult.addresses()[0].id()));
+     *         final var vpcId = VpcFunctions.getIpv6Addresses(GetIpv6AddressesArgs.builder()
+     *             .vpcId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcIpv6AddressId3", vpcId.applyValue(getIpv6AddressesResult -> getIpv6AddressesResult.addresses()[0].id()));
+     *         final var status = VpcFunctions.getIpv6Addresses(GetIpv6AddressesArgs.builder()
+     *             .status("Available")
+     *             .build());
+     * 
+     *         ctx.export("vpcIpv6AddressId4", status.applyValue(getIpv6AddressesResult -> getIpv6AddressesResult.addresses()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getIpv6Addresses(GetIpv6AddressesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getIpv6Addresses:getIpv6Addresses", TypeShape.of(GetIpv6AddressesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Vpc Ipv6 Addresses of the current Alibaba Cloud user. * @@ -4198,11 +4867,11 @@ public static Output getIpv6EgressRules(GetIpv6EgressR * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getIpv6EgressRulesPlain(GetIpv6EgressRulesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:vpc/getIpv6EgressRules:getIpv6EgressRules", TypeShape.of(GetIpv6EgressRulesResult.class), args, Utilities.withVersion(options)); + public static Output getIpv6EgressRules(GetIpv6EgressRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getIpv6EgressRules:getIpv6EgressRules", TypeShape.of(GetIpv6EgressRulesResult.class), args, Utilities.withVersion(options)); } /** - * This data source provides the Vpc Ipv6 Gateways of the current Alibaba Cloud user. + * This data source provides the Vpc Ipv6 Egress Rules of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.142.0+. * @@ -4219,7 +4888,7 @@ public static CompletableFuture getIpv6EgressRulesPlai * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.alicloud.vpc.VpcFunctions; - * import com.pulumi.alicloud.vpc.inputs.GetIpv6GatewaysArgs; + * import com.pulumi.alicloud.vpc.inputs.GetIpv6EgressRulesArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -4233,28 +4902,32 @@ public static CompletableFuture getIpv6EgressRulesPlai * } * * public static void stack(Context ctx) { - * final var ids = VpcFunctions.getIpv6Gateways(GetIpv6GatewaysArgs.builder() - * .ids("example_id") + * final var ids = VpcFunctions.getIpv6EgressRules(GetIpv6EgressRulesArgs.builder() + * .ipv6GatewayId("example_value") + * .ids( + * "example_value-1", + * "example_value-2") * .build()); * - * ctx.export("vpcIpv6GatewayId1", ids.applyValue(getIpv6GatewaysResult -> getIpv6GatewaysResult.gateways()[0].id())); - * final var nameRegex = VpcFunctions.getIpv6Gateways(GetIpv6GatewaysArgs.builder() - * .nameRegex("^my-Ipv6Gateway") + * ctx.export("vpcIpv6EgressRuleId1", ids.applyValue(getIpv6EgressRulesResult -> getIpv6EgressRulesResult.rules()[0].id())); + * final var nameRegex = VpcFunctions.getIpv6EgressRules(GetIpv6EgressRulesArgs.builder() + * .ipv6GatewayId("example_value") + * .nameRegex("^my-Ipv6EgressRule") * .build()); * - * ctx.export("vpcIpv6GatewayId2", nameRegex.applyValue(getIpv6GatewaysResult -> getIpv6GatewaysResult.gateways()[0].id())); - * final var vpcId = VpcFunctions.getIpv6Gateways(GetIpv6GatewaysArgs.builder() - * .ids("example_id") - * .vpcId("example_value") + * ctx.export("vpcIpv6EgressRuleId2", nameRegex.applyValue(getIpv6EgressRulesResult -> getIpv6EgressRulesResult.rules()[0].id())); + * final var status = VpcFunctions.getIpv6EgressRules(GetIpv6EgressRulesArgs.builder() + * .ipv6GatewayId("example_value") + * .status("Available") * .build()); * - * ctx.export("vpcIpv6GatewayId3", vpcId.applyValue(getIpv6GatewaysResult -> getIpv6GatewaysResult.gateways()[0].id())); - * final var status = VpcFunctions.getIpv6Gateways(GetIpv6GatewaysArgs.builder() - * .ids("example_id") - * .status("Available") + * ctx.export("vpcIpv6EgressRuleId3", status.applyValue(getIpv6EgressRulesResult -> getIpv6EgressRulesResult.rules()[0].id())); + * final var ipv6EgressRuleName = VpcFunctions.getIpv6EgressRules(GetIpv6EgressRulesArgs.builder() + * .ipv6GatewayId("example_value") + * .ipv6EgressRuleName("example_value") * .build()); * - * ctx.export("vpcIpv6GatewayId4", status.applyValue(getIpv6GatewaysResult -> getIpv6GatewaysResult.gateways()[0].id())); + * ctx.export("vpcIpv6EgressRuleId4", ipv6EgressRuleName.applyValue(getIpv6EgressRulesResult -> getIpv6EgressRulesResult.rules()[0].id())); * } * } * } @@ -4262,8 +4935,8 @@ public static CompletableFuture getIpv6EgressRulesPlai * <!--End PulumiCodeChooser --> * */ - public static Output getIpv6Gateways() { - return getIpv6Gateways(GetIpv6GatewaysArgs.Empty, InvokeOptions.Empty); + public static CompletableFuture getIpv6EgressRulesPlain(GetIpv6EgressRulesPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:vpc/getIpv6EgressRules:getIpv6EgressRules", TypeShape.of(GetIpv6EgressRulesResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Vpc Ipv6 Gateways of the current Alibaba Cloud user. @@ -4326,7 +4999,71 @@ public static Output getIpv6Gateways() { * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getIpv6GatewaysPlain() { + public static Output getIpv6Gateways() { + return getIpv6Gateways(GetIpv6GatewaysArgs.Empty, InvokeOptions.Empty); + } + /** + * This data source provides the Vpc Ipv6 Gateways of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.142.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetIpv6GatewaysArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = VpcFunctions.getIpv6Gateways(GetIpv6GatewaysArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("vpcIpv6GatewayId1", ids.applyValue(getIpv6GatewaysResult -> getIpv6GatewaysResult.gateways()[0].id()));
+     *         final var nameRegex = VpcFunctions.getIpv6Gateways(GetIpv6GatewaysArgs.builder()
+     *             .nameRegex("^my-Ipv6Gateway")
+     *             .build());
+     * 
+     *         ctx.export("vpcIpv6GatewayId2", nameRegex.applyValue(getIpv6GatewaysResult -> getIpv6GatewaysResult.gateways()[0].id()));
+     *         final var vpcId = VpcFunctions.getIpv6Gateways(GetIpv6GatewaysArgs.builder()
+     *             .ids("example_id")
+     *             .vpcId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcIpv6GatewayId3", vpcId.applyValue(getIpv6GatewaysResult -> getIpv6GatewaysResult.gateways()[0].id()));
+     *         final var status = VpcFunctions.getIpv6Gateways(GetIpv6GatewaysArgs.builder()
+     *             .ids("example_id")
+     *             .status("Available")
+     *             .build());
+     * 
+     *         ctx.export("vpcIpv6GatewayId4", status.applyValue(getIpv6GatewaysResult -> getIpv6GatewaysResult.gateways()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getIpv6GatewaysPlain() { return getIpv6GatewaysPlain(GetIpv6GatewaysPlainArgs.Empty, InvokeOptions.Empty); } /** @@ -4521,6 +5258,70 @@ public static CompletableFuture getIpv6GatewaysPlain(GetI public static Output getIpv6Gateways(GetIpv6GatewaysArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpc/getIpv6Gateways:getIpv6Gateways", TypeShape.of(GetIpv6GatewaysResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Vpc Ipv6 Gateways of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.142.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetIpv6GatewaysArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = VpcFunctions.getIpv6Gateways(GetIpv6GatewaysArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("vpcIpv6GatewayId1", ids.applyValue(getIpv6GatewaysResult -> getIpv6GatewaysResult.gateways()[0].id()));
+     *         final var nameRegex = VpcFunctions.getIpv6Gateways(GetIpv6GatewaysArgs.builder()
+     *             .nameRegex("^my-Ipv6Gateway")
+     *             .build());
+     * 
+     *         ctx.export("vpcIpv6GatewayId2", nameRegex.applyValue(getIpv6GatewaysResult -> getIpv6GatewaysResult.gateways()[0].id()));
+     *         final var vpcId = VpcFunctions.getIpv6Gateways(GetIpv6GatewaysArgs.builder()
+     *             .ids("example_id")
+     *             .vpcId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcIpv6GatewayId3", vpcId.applyValue(getIpv6GatewaysResult -> getIpv6GatewaysResult.gateways()[0].id()));
+     *         final var status = VpcFunctions.getIpv6Gateways(GetIpv6GatewaysArgs.builder()
+     *             .ids("example_id")
+     *             .status("Available")
+     *             .build());
+     * 
+     *         ctx.export("vpcIpv6GatewayId4", status.applyValue(getIpv6GatewaysResult -> getIpv6GatewaysResult.gateways()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getIpv6Gateways(GetIpv6GatewaysArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getIpv6Gateways:getIpv6Gateways", TypeShape.of(GetIpv6GatewaysResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Vpc Ipv6 Gateways of the current Alibaba Cloud user. * @@ -4895,6 +5696,68 @@ public static CompletableFuture getIpv6Internet public static Output getIpv6InternetBandwidths(GetIpv6InternetBandwidthsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpc/getIpv6InternetBandwidths:getIpv6InternetBandwidths", TypeShape.of(GetIpv6InternetBandwidthsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Vpc Ipv6 Internet Bandwidths of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.143.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetIpv6InternetBandwidthsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = VpcFunctions.getIpv6InternetBandwidths(GetIpv6InternetBandwidthsArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("vpcIpv6InternetBandwidthId1", ids.applyValue(getIpv6InternetBandwidthsResult -> getIpv6InternetBandwidthsResult.bandwidths()[0].id()));
+     *         final var ipv6InternetBandwidthId = VpcFunctions.getIpv6InternetBandwidths(GetIpv6InternetBandwidthsArgs.builder()
+     *             .ipv6InternetBandwidthId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcIpv6InternetBandwidthId2", ipv6InternetBandwidthId.applyValue(getIpv6InternetBandwidthsResult -> getIpv6InternetBandwidthsResult.bandwidths()[0].id()));
+     *         final var ipv6AddressId = VpcFunctions.getIpv6InternetBandwidths(GetIpv6InternetBandwidthsArgs.builder()
+     *             .ipv6AddressId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcIpv6InternetBandwidthId3", ipv6AddressId.applyValue(getIpv6InternetBandwidthsResult -> getIpv6InternetBandwidthsResult.bandwidths()[0].id()));
+     *         final var status = VpcFunctions.getIpv6InternetBandwidths(GetIpv6InternetBandwidthsArgs.builder()
+     *             .status("Normal")
+     *             .build());
+     * 
+     *         ctx.export("vpcIpv6InternetBandwidthId4", status.applyValue(getIpv6InternetBandwidthsResult -> getIpv6InternetBandwidthsResult.bandwidths()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getIpv6InternetBandwidths(GetIpv6InternetBandwidthsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getIpv6InternetBandwidths:getIpv6InternetBandwidths", TypeShape.of(GetIpv6InternetBandwidthsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Vpc Ipv6 Internet Bandwidths of the current Alibaba Cloud user. * @@ -5027,6 +5890,20 @@ public static CompletableFuture getNatGatewaysPlain(GetNat public static Output getNatGateways(GetNatGatewaysArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpc/getNatGateways:getNatGateways", TypeShape.of(GetNatGatewaysResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of Nat Gateways owned by an Alibaba Cloud account. + * + * > **NOTE:** Available in 1.37.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + * <!--End PulumiCodeChooser --> + * + */ + public static Output getNatGateways(GetNatGatewaysArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getNatGateways:getNatGateways", TypeShape.of(GetNatGatewaysResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of Nat Gateways owned by an Alibaba Cloud account. * @@ -5338,11 +6215,11 @@ public static Output getNatIpCidrs(GetNatIpCidrsArgs args, * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getNatIpCidrsPlain(GetNatIpCidrsPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:vpc/getNatIpCidrs:getNatIpCidrs", TypeShape.of(GetNatIpCidrsResult.class), args, Utilities.withVersion(options)); + public static Output getNatIpCidrs(GetNatIpCidrsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getNatIpCidrs:getNatIpCidrs", TypeShape.of(GetNatIpCidrsResult.class), args, Utilities.withVersion(options)); } /** - * This data source provides the Vpc Nat Ips of the current Alibaba Cloud user. + * This data source provides the Vpc Nat Ip Cidrs of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.136.0+. * @@ -5359,7 +6236,7 @@ public static CompletableFuture getNatIpCidrsPlain(GetNatIp * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.alicloud.vpc.VpcFunctions; - * import com.pulumi.alicloud.vpc.inputs.GetNatIpsArgs; + * import com.pulumi.alicloud.vpc.inputs.GetNatIpCidrsArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -5373,48 +6250,39 @@ public static CompletableFuture getNatIpCidrsPlain(GetNatIp * } * * public static void stack(Context ctx) { - * final var ids = VpcFunctions.getNatIps(GetNatIpsArgs.builder() + * final var ids = VpcFunctions.getNatIpCidrs(GetNatIpCidrsArgs.builder() * .natGatewayId("example_value") * .ids( * "example_value-1", * "example_value-2") * .build()); * - * ctx.export("vpcNatIpId1", ids.applyValue(getNatIpsResult -> getNatIpsResult.ips()[0].id())); - * final var nameRegex = VpcFunctions.getNatIps(GetNatIpsArgs.builder() - * .natGatewayId("example_value") - * .nameRegex("^my-NatIp") - * .build()); - * - * ctx.export("vpcNatIpId2", nameRegex.applyValue(getNatIpsResult -> getNatIpsResult.ips()[0].id())); - * final var natIpCidr = VpcFunctions.getNatIps(GetNatIpsArgs.builder() + * ctx.export("vpcNatIpCidrId1", ids.applyValue(getNatIpCidrsResult -> getNatIpCidrsResult.cidrs()[0].id())); + * final var nameRegex = VpcFunctions.getNatIpCidrs(GetNatIpCidrsArgs.builder() * .natGatewayId("example_value") - * .natIpCidr("example_value") - * .nameRegex("^my-NatIp") + * .nameRegex("^my-NatIpCidr") * .build()); * - * ctx.export("vpcNatIpId3", natIpCidr.applyValue(getNatIpsResult -> getNatIpsResult.ips()[0].id())); - * final var natIpName = VpcFunctions.getNatIps(GetNatIpsArgs.builder() + * ctx.export("vpcNatIpCidrId2", nameRegex.applyValue(getNatIpCidrsResult -> getNatIpCidrsResult.cidrs()[0].id())); + * final var status = VpcFunctions.getNatIpCidrs(GetNatIpCidrsArgs.builder() * .natGatewayId("example_value") - * .ids("example_value") - * .natIpNames("example_value") + * .ids("example_value-1") + * .status("Available") * .build()); * - * ctx.export("vpcNatIpId4", natIpName.applyValue(getNatIpsResult -> getNatIpsResult.ips()[0].id())); - * final var natIpIds = VpcFunctions.getNatIps(GetNatIpsArgs.builder() + * ctx.export("vpcNatIpCidrId3", status.applyValue(getNatIpCidrsResult -> getNatIpCidrsResult.cidrs()[0].id())); + * final var natIpCidr = VpcFunctions.getNatIpCidrs(GetNatIpCidrsArgs.builder() * .natGatewayId("example_value") - * .ids("example_value") - * .natIpIds("example_value") + * .natIpCidrs("example_value-1") * .build()); * - * ctx.export("vpcNatIpId5", natIpIds.applyValue(getNatIpsResult -> getNatIpsResult.ips()[0].id())); - * final var status = VpcFunctions.getNatIps(GetNatIpsArgs.builder() + * ctx.export("vpcNatIpCidrId4", natIpCidr.applyValue(getNatIpCidrsResult -> getNatIpCidrsResult.cidrs()[0].id())); + * final var atIpCidrName = VpcFunctions.getNatIpCidrs(GetNatIpCidrsArgs.builder() * .natGatewayId("example_value") - * .ids("example_value") - * .status("example_value") + * .natIpCidrNames("example_value-1") * .build()); * - * ctx.export("vpcNatIpId6", status.applyValue(getNatIpsResult -> getNatIpsResult.ips()[0].id())); + * ctx.export("vpcNatIpCidrId5", atIpCidrName.applyValue(getNatIpCidrsResult -> getNatIpCidrsResult.cidrs()[0].id())); * } * } * } @@ -5422,8 +6290,8 @@ public static CompletableFuture getNatIpCidrsPlain(GetNatIp * <!--End PulumiCodeChooser --> * */ - public static Output getNatIps(GetNatIpsArgs args) { - return getNatIps(args, InvokeOptions.Empty); + public static CompletableFuture getNatIpCidrsPlain(GetNatIpCidrsPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:vpc/getNatIpCidrs:getNatIpCidrs", TypeShape.of(GetNatIpCidrsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Vpc Nat Ips of the current Alibaba Cloud user. @@ -5506,8 +6374,92 @@ public static Output getNatIps(GetNatIpsArgs args) { * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getNatIpsPlain(GetNatIpsPlainArgs args) { - return getNatIpsPlain(args, InvokeOptions.Empty); + public static Output getNatIps(GetNatIpsArgs args) { + return getNatIps(args, InvokeOptions.Empty); + } + /** + * This data source provides the Vpc Nat Ips of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.136.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetNatIpsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = VpcFunctions.getNatIps(GetNatIpsArgs.builder()
+     *             .natGatewayId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("vpcNatIpId1", ids.applyValue(getNatIpsResult -> getNatIpsResult.ips()[0].id()));
+     *         final var nameRegex = VpcFunctions.getNatIps(GetNatIpsArgs.builder()
+     *             .natGatewayId("example_value")
+     *             .nameRegex("^my-NatIp")
+     *             .build());
+     * 
+     *         ctx.export("vpcNatIpId2", nameRegex.applyValue(getNatIpsResult -> getNatIpsResult.ips()[0].id()));
+     *         final var natIpCidr = VpcFunctions.getNatIps(GetNatIpsArgs.builder()
+     *             .natGatewayId("example_value")
+     *             .natIpCidr("example_value")
+     *             .nameRegex("^my-NatIp")
+     *             .build());
+     * 
+     *         ctx.export("vpcNatIpId3", natIpCidr.applyValue(getNatIpsResult -> getNatIpsResult.ips()[0].id()));
+     *         final var natIpName = VpcFunctions.getNatIps(GetNatIpsArgs.builder()
+     *             .natGatewayId("example_value")
+     *             .ids("example_value")
+     *             .natIpNames("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcNatIpId4", natIpName.applyValue(getNatIpsResult -> getNatIpsResult.ips()[0].id()));
+     *         final var natIpIds = VpcFunctions.getNatIps(GetNatIpsArgs.builder()
+     *             .natGatewayId("example_value")
+     *             .ids("example_value")
+     *             .natIpIds("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcNatIpId5", natIpIds.applyValue(getNatIpsResult -> getNatIpsResult.ips()[0].id()));
+     *         final var status = VpcFunctions.getNatIps(GetNatIpsArgs.builder()
+     *             .natGatewayId("example_value")
+     *             .ids("example_value")
+     *             .status("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcNatIpId6", status.applyValue(getNatIpsResult -> getNatIpsResult.ips()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getNatIpsPlain(GetNatIpsPlainArgs args) { + return getNatIpsPlain(args, InvokeOptions.Empty); } /** * This data source provides the Vpc Nat Ips of the current Alibaba Cloud user. @@ -5593,6 +6545,90 @@ public static CompletableFuture getNatIpsPlain(GetNatIpsPlainAr public static Output getNatIps(GetNatIpsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpc/getNatIps:getNatIps", TypeShape.of(GetNatIpsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Vpc Nat Ips of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.136.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetNatIpsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = VpcFunctions.getNatIps(GetNatIpsArgs.builder()
+     *             .natGatewayId("example_value")
+     *             .ids(            
+     *                 "example_value-1",
+     *                 "example_value-2")
+     *             .build());
+     * 
+     *         ctx.export("vpcNatIpId1", ids.applyValue(getNatIpsResult -> getNatIpsResult.ips()[0].id()));
+     *         final var nameRegex = VpcFunctions.getNatIps(GetNatIpsArgs.builder()
+     *             .natGatewayId("example_value")
+     *             .nameRegex("^my-NatIp")
+     *             .build());
+     * 
+     *         ctx.export("vpcNatIpId2", nameRegex.applyValue(getNatIpsResult -> getNatIpsResult.ips()[0].id()));
+     *         final var natIpCidr = VpcFunctions.getNatIps(GetNatIpsArgs.builder()
+     *             .natGatewayId("example_value")
+     *             .natIpCidr("example_value")
+     *             .nameRegex("^my-NatIp")
+     *             .build());
+     * 
+     *         ctx.export("vpcNatIpId3", natIpCidr.applyValue(getNatIpsResult -> getNatIpsResult.ips()[0].id()));
+     *         final var natIpName = VpcFunctions.getNatIps(GetNatIpsArgs.builder()
+     *             .natGatewayId("example_value")
+     *             .ids("example_value")
+     *             .natIpNames("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcNatIpId4", natIpName.applyValue(getNatIpsResult -> getNatIpsResult.ips()[0].id()));
+     *         final var natIpIds = VpcFunctions.getNatIps(GetNatIpsArgs.builder()
+     *             .natGatewayId("example_value")
+     *             .ids("example_value")
+     *             .natIpIds("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcNatIpId5", natIpIds.applyValue(getNatIpsResult -> getNatIpsResult.ips()[0].id()));
+     *         final var status = VpcFunctions.getNatIps(GetNatIpsArgs.builder()
+     *             .natGatewayId("example_value")
+     *             .ids("example_value")
+     *             .status("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcNatIpId6", status.applyValue(getNatIpsResult -> getNatIpsResult.ips()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNatIps(GetNatIpsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getNatIps:getNatIps", TypeShape.of(GetNatIpsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Vpc Nat Ips of the current Alibaba Cloud user. * @@ -5917,6 +6953,54 @@ public static CompletableFuture getNetworkAclsPlain(GetNet public static Output getNetworkAcls(GetNetworkAclsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpc/getNetworkAcls:getNetworkAcls", TypeShape.of(GetNetworkAclsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Network Acls of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.122.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetNetworkAclsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = VpcFunctions.getNetworkAcls(GetNetworkAclsArgs.builder()
+     *             .ids("example_value")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstNetworkAclId", example.applyValue(getNetworkAclsResult -> getNetworkAclsResult.acls()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNetworkAcls(GetNetworkAclsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getNetworkAcls:getNetworkAcls", TypeShape.of(GetNetworkAclsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Network Acls of the current Alibaba Cloud user. * @@ -6190,6 +7274,51 @@ public static CompletableFuture getNetworksPlain(GetNetworksP public static Output getNetworks(GetNetworksArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpc/getNetworks:getNetworks", TypeShape.of(GetNetworksResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides VPCs available to the user. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var vpcsDs = VpcFunctions.getNetworks(GetNetworksArgs.builder()
+     *             .cidrBlock("172.16.0.0/12")
+     *             .status("Available")
+     *             .nameRegex("^foo")
+     *             .build());
+     * 
+     *         ctx.export("firstVpcId", vpcsDs.applyValue(getNetworksResult -> getNetworksResult.vpcs()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNetworks(GetNetworksArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getNetworks:getNetworks", TypeShape.of(GetNetworksResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides VPCs available to the user. * @@ -6373,6 +7502,52 @@ public static CompletableFuture getPbrRouteEntriesPlai public static Output getPbrRouteEntries(GetPbrRouteEntriesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpc/getPbrRouteEntries:getPbrRouteEntries", TypeShape.of(GetPbrRouteEntriesResult.class), args, Utilities.withVersion(options)); } + /** + * > **NOTE:** Available in v1.162.0+. + * + * The data source lists a number of VPN Pbr Route Entries resource information owned by an Alicloud account. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetPbrRouteEntriesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = VpcFunctions.getPbrRouteEntries(GetPbrRouteEntriesArgs.builder()
+     *             .vpnGatewayId("example_vpn_gateway_id")
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("vpnIpsecServerId1", ids.applyValue(getPbrRouteEntriesResult -> getPbrRouteEntriesResult.entries()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPbrRouteEntries(GetPbrRouteEntriesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getPbrRouteEntries:getPbrRouteEntries", TypeShape.of(GetPbrRouteEntriesResult.class), args, Utilities.withVersion(options)); + } /** * > **NOTE:** Available in v1.162.0+. * @@ -6669,6 +7844,56 @@ public static CompletableFuture getPeerConnectionsPlai public static Output getPeerConnections(GetPeerConnectionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpc/getPeerConnections:getPeerConnections", TypeShape.of(GetPeerConnectionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Vpc Peer Connections of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.186.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetPeerConnectionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = VpcFunctions.getPeerConnections();
+     * 
+     *         ctx.export("vpcPeerConnectionId1", ids.applyValue(getPeerConnectionsResult -> getPeerConnectionsResult.connections()[0].id()));
+     *         final var nameRegex = VpcFunctions.getPeerConnections(GetPeerConnectionsArgs.builder()
+     *             .nameRegex("^my-PeerConnection")
+     *             .build());
+     * 
+     *         ctx.export("vpcPeerConnectionId2", nameRegex.applyValue(getPeerConnectionsResult -> getPeerConnectionsResult.connections()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPeerConnections(GetPeerConnectionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getPeerConnections:getPeerConnections", TypeShape.of(GetPeerConnectionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Vpc Peer Connections of the current Alibaba Cloud user. * @@ -7008,7 +8233,113 @@ public static Output getPrefixLists(GetPrefixListsArgs arg * .nameRegex("^my-PrefixList") * .build()); * - * ctx.export("vpcPrefixListId2", nameRegex.applyValue(getPrefixListsResult -> getPrefixListsResult.lists()[0].id())); + * ctx.export("vpcPrefixListId2", nameRegex.applyValue(getPrefixListsResult -> getPrefixListsResult.lists()[0].id())); + * } + * } + * } + *
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPrefixLists(GetPrefixListsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getPrefixLists:getPrefixLists", TypeShape.of(GetPrefixListsResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Vpc Prefix Lists of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.182.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetPrefixListsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = VpcFunctions.getPrefixLists();
+     * 
+     *         ctx.export("vpcPrefixListId1", ids.applyValue(getPrefixListsResult -> getPrefixListsResult.lists()[0].id()));
+     *         final var nameRegex = VpcFunctions.getPrefixLists(GetPrefixListsArgs.builder()
+     *             .nameRegex("^my-PrefixList")
+     *             .build());
+     * 
+     *         ctx.export("vpcPrefixListId2", nameRegex.applyValue(getPrefixListsResult -> getPrefixListsResult.lists()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getPrefixListsPlain(GetPrefixListsPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:vpc/getPrefixLists:getPrefixLists", TypeShape.of(GetPrefixListsResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Vpc Public Ip Address Pool Cidr Blocks of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.189.0+. + * + * > **NOTE:** Only users who have the required permissions can use the IP address pool feature of Elastic IP Address (EIP). To apply for the required permissions, [submit a ticket](https://smartservice.console.aliyun.com/service/create-ticket). + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetPublicIpAddressPoolCidrBlocksArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = VpcFunctions.getPublicIpAddressPoolCidrBlocks(GetPublicIpAddressPoolCidrBlocksArgs.builder()
+     *             .ids("example_id")
+     *             .publicIpAddressPoolId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcPublicIpAddressPoolCidrBlockId1", ids.applyValue(getPublicIpAddressPoolCidrBlocksResult -> getPublicIpAddressPoolCidrBlocksResult.blocks()[0].id()));
+     *         final var cidrBlock = VpcFunctions.getPublicIpAddressPoolCidrBlocks(GetPublicIpAddressPoolCidrBlocksArgs.builder()
+     *             .publicIpAddressPoolId("example_value")
+     *             .cidrBlock("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcPublicIpAddressPoolCidrBlockId2", cidrBlock.applyValue(getPublicIpAddressPoolCidrBlocksResult -> getPublicIpAddressPoolCidrBlocksResult.blocks()[0].id()));
      *     }
      * }
      * }
@@ -7016,8 +8347,8 @@ public static Output getPrefixLists(GetPrefixListsArgs arg
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getPrefixListsPlain(GetPrefixListsPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("alicloud:vpc/getPrefixLists:getPrefixLists", TypeShape.of(GetPrefixListsResult.class), args, Utilities.withVersion(options));
+    public static Output getPublicIpAddressPoolCidrBlocks(GetPublicIpAddressPoolCidrBlocksArgs args) {
+        return getPublicIpAddressPoolCidrBlocks(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Vpc Public Ip Address Pool Cidr Blocks of the current Alibaba Cloud user.
@@ -7072,8 +8403,8 @@ public static CompletableFuture getPrefixListsPlain(GetPre
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getPublicIpAddressPoolCidrBlocks(GetPublicIpAddressPoolCidrBlocksArgs args) {
-        return getPublicIpAddressPoolCidrBlocks(args, InvokeOptions.Empty);
+    public static CompletableFuture getPublicIpAddressPoolCidrBlocksPlain(GetPublicIpAddressPoolCidrBlocksPlainArgs args) {
+        return getPublicIpAddressPoolCidrBlocksPlain(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Vpc Public Ip Address Pool Cidr Blocks of the current Alibaba Cloud user.
@@ -7128,8 +8459,8 @@ public static Output getPublicIpAddressP
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getPublicIpAddressPoolCidrBlocksPlain(GetPublicIpAddressPoolCidrBlocksPlainArgs args) {
-        return getPublicIpAddressPoolCidrBlocksPlain(args, InvokeOptions.Empty);
+    public static Output getPublicIpAddressPoolCidrBlocks(GetPublicIpAddressPoolCidrBlocksArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("alicloud:vpc/getPublicIpAddressPoolCidrBlocks:getPublicIpAddressPoolCidrBlocks", TypeShape.of(GetPublicIpAddressPoolCidrBlocksResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides the Vpc Public Ip Address Pool Cidr Blocks of the current Alibaba Cloud user.
@@ -7184,7 +8515,7 @@ public static CompletableFuture getPubli
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getPublicIpAddressPoolCidrBlocks(GetPublicIpAddressPoolCidrBlocksArgs args, InvokeOptions options) {
+    public static Output getPublicIpAddressPoolCidrBlocks(GetPublicIpAddressPoolCidrBlocksArgs args, InvokeOutputOptions options) {
         return Deployment.getInstance().invoke("alicloud:vpc/getPublicIpAddressPoolCidrBlocks:getPublicIpAddressPoolCidrBlocks", TypeShape.of(GetPublicIpAddressPoolCidrBlocksResult.class), args, Utilities.withVersion(options));
     }
     /**
@@ -7503,6 +8834,58 @@ public static CompletableFuture getPublicIpAddres
     public static Output getPublicIpAddressPools(GetPublicIpAddressPoolsArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("alicloud:vpc/getPublicIpAddressPools:getPublicIpAddressPools", TypeShape.of(GetPublicIpAddressPoolsResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * This data source provides the Vpc Public Ip Address Pools of the current Alibaba Cloud user.
+     * 
+     * > **NOTE:** Available in v1.186.0+.
+     * 
+     * ## Example Usage
+     * 
+     * Basic Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetPublicIpAddressPoolsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = VpcFunctions.getPublicIpAddressPools(GetPublicIpAddressPoolsArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("vpcPublicIpAddressPoolId1", ids.applyValue(getPublicIpAddressPoolsResult -> getPublicIpAddressPoolsResult.pools()[0].id()));
+     *         final var nameRegex = VpcFunctions.getPublicIpAddressPools(GetPublicIpAddressPoolsArgs.builder()
+     *             .nameRegex("example_name")
+     *             .build());
+     * 
+     *         ctx.export("vpcPublicIpAddressPoolId2", nameRegex.applyValue(getPublicIpAddressPoolsResult -> getPublicIpAddressPoolsResult.pools()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPublicIpAddressPools(GetPublicIpAddressPoolsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getPublicIpAddressPools:getPublicIpAddressPools", TypeShape.of(GetPublicIpAddressPoolsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Vpc Public Ip Address Pools of the current Alibaba Cloud user. * @@ -8064,8 +9447,199 @@ public static Output getRouteEntries(GetRouteEntriesArgs * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getRouteEntriesPlain(GetRouteEntriesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("alicloud:vpc/getRouteEntries:getRouteEntries", TypeShape.of(GetRouteEntriesResult.class), args, Utilities.withVersion(options)); + public static Output getRouteEntries(GetRouteEntriesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getRouteEntries:getRouteEntries", TypeShape.of(GetRouteEntriesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides a list of Route Entries owned by an Alibaba Cloud account. + * + * > **NOTE:** Available in 1.37.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetZonesArgs;
+     * import com.pulumi.alicloud.ecs.EcsFunctions;
+     * import com.pulumi.alicloud.ecs.inputs.GetInstanceTypesArgs;
+     * import com.pulumi.alicloud.ecs.inputs.GetImagesArgs;
+     * import com.pulumi.alicloud.vpc.Network;
+     * import com.pulumi.alicloud.vpc.NetworkArgs;
+     * import com.pulumi.alicloud.vpc.Switch;
+     * import com.pulumi.alicloud.vpc.SwitchArgs;
+     * import com.pulumi.alicloud.ecs.SecurityGroup;
+     * import com.pulumi.alicloud.ecs.SecurityGroupArgs;
+     * import com.pulumi.alicloud.ecs.Instance;
+     * import com.pulumi.alicloud.ecs.InstanceArgs;
+     * import com.pulumi.alicloud.vpc.RouteEntry;
+     * import com.pulumi.alicloud.vpc.RouteEntryArgs;
+     * import com.pulumi.alicloud.ecs.SecurityGroupRule;
+     * import com.pulumi.alicloud.ecs.SecurityGroupRuleArgs;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetRouteEntriesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
+     *             .availableResourceCreation("VSwitch")
+     *             .build());
+     * 
+     *         final var defaultGetInstanceTypes = EcsFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
+     *             .availabilityZone(default_.zones()[0].id())
+     *             .cpuCoreCount(1)
+     *             .memorySize(2)
+     *             .build());
+     * 
+     *         final var defaultGetImages = EcsFunctions.getImages(GetImagesArgs.builder()
+     *             .nameRegex("^ubuntu_18.*64")
+     *             .mostRecent(true)
+     *             .owners("system")
+     *             .build());
+     * 
+     *         final var name = config.get("name").orElse("tf-testAccRouteEntryConfig");
+     *         var fooNetwork = new Network("fooNetwork", NetworkArgs.builder()
+     *             .name(name)
+     *             .cidrBlock("10.1.0.0/21")
+     *             .build());
+     * 
+     *         var fooSwitch = new Switch("fooSwitch", SwitchArgs.builder()
+     *             .vpcId(fooNetwork.id())
+     *             .cidrBlock("10.1.1.0/24")
+     *             .availabilityZone(default_.zones()[0].id())
+     *             .vswitchName(name)
+     *             .build());
+     * 
+     *         var tfTestFoo = new SecurityGroup("tfTestFoo", SecurityGroupArgs.builder()
+     *             .name(name)
+     *             .description("foo")
+     *             .vpcId(fooNetwork.id())
+     *             .build());
+     * 
+     *         var fooInstance = new Instance("fooInstance", InstanceArgs.builder()
+     *             .securityGroups(tfTestFoo.id())
+     *             .vswitchId(fooSwitch.id())
+     *             .allocatePublicIp(true)
+     *             .instanceChargeType("PostPaid")
+     *             .instanceType(defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()[0].id()))
+     *             .internetChargeType("PayByTraffic")
+     *             .internetMaxBandwidthOut(5)
+     *             .systemDiskCategory("cloud_efficiency")
+     *             .imageId(defaultGetImages.applyValue(getImagesResult -> getImagesResult.images()[0].id()))
+     *             .instanceName(name)
+     *             .build());
+     * 
+     *         var fooRouteEntry = new RouteEntry("fooRouteEntry", RouteEntryArgs.builder()
+     *             .routeTableId(fooNetwork.routeTableId())
+     *             .destinationCidrblock("172.11.1.1/32")
+     *             .nexthopType("Instance")
+     *             .nexthopId(fooInstance.id())
+     *             .build());
+     * 
+     *         var ingress = new SecurityGroupRule("ingress", SecurityGroupRuleArgs.builder()
+     *             .type("ingress")
+     *             .ipProtocol("tcp")
+     *             .nicType("intranet")
+     *             .policy("accept")
+     *             .portRange("22/22")
+     *             .priority(1)
+     *             .securityGroupId(tfTestFoo.id())
+     *             .cidrIp("0.0.0.0/0")
+     *             .build());
+     * 
+     *         final var foo = VpcFunctions.getRouteEntries(GetRouteEntriesArgs.builder()
+     *             .routeTableId(fooRouteEntry.routeTableId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getRouteEntriesPlain(GetRouteEntriesPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:vpc/getRouteEntries:getRouteEntries", TypeShape.of(GetRouteEntriesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides a list of Route Tables owned by an Alibaba Cloud account. + * + * > **NOTE:** Available since v1.36.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.Network;
+     * import com.pulumi.alicloud.vpc.NetworkArgs;
+     * import com.pulumi.alicloud.vpc.RouteTable;
+     * import com.pulumi.alicloud.vpc.RouteTableArgs;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetRouteTablesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("route-tables-datasource-example-name");
+     *         var fooNetwork = new Network("fooNetwork", NetworkArgs.builder()
+     *             .cidrBlock("172.16.0.0/12")
+     *             .vpcName(name)
+     *             .build());
+     * 
+     *         var fooRouteTable = new RouteTable("fooRouteTable", RouteTableArgs.builder()
+     *             .vpcId(fooNetwork.id())
+     *             .routeTableName(name)
+     *             .description(name)
+     *             .build());
+     * 
+     *         final var foo = VpcFunctions.getRouteTables(GetRouteTablesArgs.builder()
+     *             .ids(fooRouteTable.id())
+     *             .routeTableType("Custom")
+     *             .build());
+     * 
+     *         ctx.export("routeTableIds", foo.applyValue(getRouteTablesResult -> getRouteTablesResult).applyValue(foo -> foo.applyValue(getRouteTablesResult -> getRouteTablesResult.ids())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRouteTables() { + return getRouteTables(GetRouteTablesArgs.Empty, InvokeOptions.Empty); } /** * This data source provides a list of Route Tables owned by an Alibaba Cloud account. @@ -8127,8 +9701,8 @@ public static CompletableFuture getRouteEntriesPlain(GetR * <!--End PulumiCodeChooser --> * */ - public static Output getRouteTables() { - return getRouteTables(GetRouteTablesArgs.Empty, InvokeOptions.Empty); + public static CompletableFuture getRouteTablesPlain() { + return getRouteTablesPlain(GetRouteTablesPlainArgs.Empty, InvokeOptions.Empty); } /** * This data source provides a list of Route Tables owned by an Alibaba Cloud account. @@ -8190,8 +9764,8 @@ public static Output getRouteTables() { * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getRouteTablesPlain() { - return getRouteTablesPlain(GetRouteTablesPlainArgs.Empty, InvokeOptions.Empty); + public static Output getRouteTables(GetRouteTablesArgs args) { + return getRouteTables(args, InvokeOptions.Empty); } /** * This data source provides a list of Route Tables owned by an Alibaba Cloud account. @@ -8253,8 +9827,8 @@ public static CompletableFuture getRouteTablesPlain() { * <!--End PulumiCodeChooser --> * */ - public static Output getRouteTables(GetRouteTablesArgs args) { - return getRouteTables(args, InvokeOptions.Empty); + public static CompletableFuture getRouteTablesPlain(GetRouteTablesPlainArgs args) { + return getRouteTablesPlain(args, InvokeOptions.Empty); } /** * This data source provides a list of Route Tables owned by an Alibaba Cloud account. @@ -8316,8 +9890,8 @@ public static Output getRouteTables(GetRouteTablesArgs arg * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getRouteTablesPlain(GetRouteTablesPlainArgs args) { - return getRouteTablesPlain(args, InvokeOptions.Empty); + public static Output getRouteTables(GetRouteTablesArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getRouteTables:getRouteTables", TypeShape.of(GetRouteTablesResult.class), args, Utilities.withVersion(options)); } /** * This data source provides a list of Route Tables owned by an Alibaba Cloud account. @@ -8379,7 +9953,7 @@ public static CompletableFuture getRouteTablesPlain(GetRou * <!--End PulumiCodeChooser --> * */ - public static Output getRouteTables(GetRouteTablesArgs args, InvokeOptions options) { + public static Output getRouteTables(GetRouteTablesArgs args, InvokeOutputOptions options) { return Deployment.getInstance().invoke("alicloud:vpc/getRouteTables:getRouteTables", TypeShape.of(GetRouteTablesResult.class), args, Utilities.withVersion(options)); } /** @@ -8680,6 +10254,53 @@ public static CompletableFuture getRouterInterfacesPl public static Output getRouterInterfaces(GetRouterInterfacesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpc/getRouterInterfaces:getRouterInterfaces", TypeShape.of(GetRouterInterfacesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides information about [router interfaces](https://www.alibabacloud.com/help/en/express-connect/developer-reference/api-vpc-2016-04-28-describerouterinterfaces-efficiency-channels) + * that connect VPCs together. + * + * > **DEPRECATED:** This datasource has been deprecated from version `1.199.0`. Please use new data source alicloud_express_connect_router_interfaces. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetRouterInterfacesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var routerInterfacesDs = VpcFunctions.getRouterInterfaces(GetRouterInterfacesArgs.builder()
+     *             .nameRegex("^testenv")
+     *             .status("Active")
+     *             .build());
+     * 
+     *         ctx.export("firstRouterInterfaceId", routerInterfacesDs.applyValue(getRouterInterfacesResult -> getRouterInterfacesResult.interfaces()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRouterInterfaces(GetRouterInterfacesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getRouterInterfaces:getRouterInterfaces", TypeShape.of(GetRouterInterfacesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides information about [router interfaces](https://www.alibabacloud.com/help/en/express-connect/developer-reference/api-vpc-2016-04-28-describerouterinterfaces-efficiency-channels) * that connect VPCs together. @@ -9018,6 +10639,103 @@ public static CompletableFuture getSnatEntriesPlain(GetSna public static Output getSnatEntries(GetSnatEntriesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpc/getSnatEntries:getSnatEntries", TypeShape.of(GetSnatEntriesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a list of Snat Entries owned by an Alibaba Cloud account. + * + * > **NOTE:** Available in 1.37.0+. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetZonesArgs;
+     * import com.pulumi.alicloud.vpc.Network;
+     * import com.pulumi.alicloud.vpc.NetworkArgs;
+     * import com.pulumi.alicloud.vpc.Switch;
+     * import com.pulumi.alicloud.vpc.SwitchArgs;
+     * import com.pulumi.alicloud.vpc.NatGateway;
+     * import com.pulumi.alicloud.vpc.NatGatewayArgs;
+     * import com.pulumi.alicloud.ecs.EipAddress;
+     * import com.pulumi.alicloud.ecs.EipAddressArgs;
+     * import com.pulumi.alicloud.ecs.EipAssociation;
+     * import com.pulumi.alicloud.ecs.EipAssociationArgs;
+     * import com.pulumi.alicloud.vpc.SnatEntry;
+     * import com.pulumi.alicloud.vpc.SnatEntryArgs;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetSnatEntriesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("snat-entry-example-name");
+     *         final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
+     *             .availableResourceCreation("VSwitch")
+     *             .build());
+     * 
+     *         var fooNetwork = new Network("fooNetwork", NetworkArgs.builder()
+     *             .name(name)
+     *             .cidrBlock("172.16.0.0/12")
+     *             .build());
+     * 
+     *         var fooSwitch = new Switch("fooSwitch", SwitchArgs.builder()
+     *             .vpcId(fooNetwork.id())
+     *             .cidrBlock("172.16.0.0/21")
+     *             .availabilityZone(default_.zones()[0].id())
+     *             .vswitchName(name)
+     *             .build());
+     * 
+     *         var fooNatGateway = new NatGateway("fooNatGateway", NatGatewayArgs.builder()
+     *             .vpcId(fooNetwork.id())
+     *             .specification("Small")
+     *             .name(name)
+     *             .build());
+     * 
+     *         var fooEipAddress = new EipAddress("fooEipAddress", EipAddressArgs.builder()
+     *             .addressName(name)
+     *             .build());
+     * 
+     *         var fooEipAssociation = new EipAssociation("fooEipAssociation", EipAssociationArgs.builder()
+     *             .allocationId(fooEipAddress.id())
+     *             .instanceId(fooNatGateway.id())
+     *             .build());
+     * 
+     *         var fooSnatEntry = new SnatEntry("fooSnatEntry", SnatEntryArgs.builder()
+     *             .snatTableId(fooNatGateway.snatTableIds())
+     *             .sourceVswitchId(fooSwitch.id())
+     *             .snatIp(fooEipAddress.ipAddress())
+     *             .build());
+     * 
+     *         final var foo = VpcFunctions.getSnatEntries(GetSnatEntriesArgs.builder()
+     *             .snatTableId(fooSnatEntry.snatTableId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSnatEntries(GetSnatEntriesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getSnatEntries:getSnatEntries", TypeShape.of(GetSnatEntriesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of Snat Entries owned by an Alibaba Cloud account. * @@ -9354,7 +11072,97 @@ public static Output getSslVpnClientCerts(GetSslVpnC * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.alicloud.vpc.VpcFunctions; - * import com.pulumi.alicloud.vpc.inputs.GetSslVpnClientCertsArgs; + * import com.pulumi.alicloud.vpc.inputs.GetSslVpnClientCertsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; + * + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * final var foo = VpcFunctions.getSslVpnClientCerts(GetSslVpnClientCertsArgs.builder() + * .ids("fake-cert-id") + * .sslVpnServerId("fake-server-id") + * .outputFile("/tmp/clientcert") + * .nameRegex("^foo") + * .build()); + * + * } + * } + * } + *
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSslVpnClientCerts(GetSslVpnClientCertsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getSslVpnClientCerts:getSslVpnClientCerts", TypeShape.of(GetSslVpnClientCertsResult.class), args, Utilities.withVersion(options)); + } + /** + * The SSL-VPN client certificates data source lists lots of SSL-VPN client certificates resource information owned by an Alicloud account. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetSslVpnClientCertsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = VpcFunctions.getSslVpnClientCerts(GetSslVpnClientCertsArgs.builder()
+     *             .ids("fake-cert-id")
+     *             .sslVpnServerId("fake-server-id")
+     *             .outputFile("/tmp/clientcert")
+     *             .nameRegex("^foo")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getSslVpnClientCertsPlain(GetSslVpnClientCertsPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:vpc/getSslVpnClientCerts:getSslVpnClientCerts", TypeShape.of(GetSslVpnClientCertsResult.class), args, Utilities.withVersion(options)); + } + /** + * The SSL-VPN servers data source lists lots of SSL-VPN servers resource information owned by an Alicloud account. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetSslVpnServersArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -9368,10 +11176,10 @@ public static Output getSslVpnClientCerts(GetSslVpnC
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var foo = VpcFunctions.getSslVpnClientCerts(GetSslVpnClientCertsArgs.builder()
-     *             .ids("fake-cert-id")
-     *             .sslVpnServerId("fake-server-id")
-     *             .outputFile("/tmp/clientcert")
+     *         final var foo = VpcFunctions.getSslVpnServers(GetSslVpnServersArgs.builder()
+     *             .ids("fake-server-id")
+     *             .vpnGatewayId("fake-vpn-id")
+     *             .outputFile("/tmp/sslserver")
      *             .nameRegex("^foo")
      *             .build());
      * 
@@ -9382,8 +11190,8 @@ public static Output getSslVpnClientCerts(GetSslVpnC
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getSslVpnClientCertsPlain(GetSslVpnClientCertsPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("alicloud:vpc/getSslVpnClientCerts:getSslVpnClientCerts", TypeShape.of(GetSslVpnClientCertsResult.class), args, Utilities.withVersion(options));
+    public static Output getSslVpnServers() {
+        return getSslVpnServers(GetSslVpnServersArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * The SSL-VPN servers data source lists lots of SSL-VPN servers resource information owned by an Alicloud account.
@@ -9427,8 +11235,8 @@ public static CompletableFuture getSslVpnClientCerts
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getSslVpnServers() {
-        return getSslVpnServers(GetSslVpnServersArgs.Empty, InvokeOptions.Empty);
+    public static CompletableFuture getSslVpnServersPlain() {
+        return getSslVpnServersPlain(GetSslVpnServersPlainArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * The SSL-VPN servers data source lists lots of SSL-VPN servers resource information owned by an Alicloud account.
@@ -9472,8 +11280,8 @@ public static Output getSslVpnServers() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getSslVpnServersPlain() {
-        return getSslVpnServersPlain(GetSslVpnServersPlainArgs.Empty, InvokeOptions.Empty);
+    public static Output getSslVpnServers(GetSslVpnServersArgs args) {
+        return getSslVpnServers(args, InvokeOptions.Empty);
     }
     /**
      * The SSL-VPN servers data source lists lots of SSL-VPN servers resource information owned by an Alicloud account.
@@ -9517,8 +11325,8 @@ public static CompletableFuture getSslVpnServersPlain()
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getSslVpnServers(GetSslVpnServersArgs args) {
-        return getSslVpnServers(args, InvokeOptions.Empty);
+    public static CompletableFuture getSslVpnServersPlain(GetSslVpnServersPlainArgs args) {
+        return getSslVpnServersPlain(args, InvokeOptions.Empty);
     }
     /**
      * The SSL-VPN servers data source lists lots of SSL-VPN servers resource information owned by an Alicloud account.
@@ -9562,8 +11370,8 @@ public static Output getSslVpnServers(GetSslVpnServersAr
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getSslVpnServersPlain(GetSslVpnServersPlainArgs args) {
-        return getSslVpnServersPlain(args, InvokeOptions.Empty);
+    public static Output getSslVpnServers(GetSslVpnServersArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("alicloud:vpc/getSslVpnServers:getSslVpnServers", TypeShape.of(GetSslVpnServersResult.class), args, Utilities.withVersion(options));
     }
     /**
      * The SSL-VPN servers data source lists lots of SSL-VPN servers resource information owned by an Alicloud account.
@@ -9607,7 +11415,7 @@ public static CompletableFuture getSslVpnServersPlain(Ge
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getSslVpnServers(GetSslVpnServersArgs args, InvokeOptions options) {
+    public static Output getSslVpnServers(GetSslVpnServersArgs args, InvokeOutputOptions options) {
         return Deployment.getInstance().invoke("alicloud:vpc/getSslVpnServers:getSslVpnServers", TypeShape.of(GetSslVpnServersResult.class), args, Utilities.withVersion(options));
     }
     /**
@@ -9975,6 +11783,70 @@ public static CompletableFuture getSwitchesPlain(GetSwitchesP
     public static Output getSwitches(GetSwitchesArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("alicloud:vpc/getSwitches:getSwitches", TypeShape.of(GetSwitchesResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * This data source provides a list of VSwitches owned by an Alibaba Cloud account.
+     * 
+     * ## Example Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.AlicloudFunctions;
+     * import com.pulumi.alicloud.inputs.GetZonesArgs;
+     * import com.pulumi.alicloud.vpc.Network;
+     * import com.pulumi.alicloud.vpc.NetworkArgs;
+     * import com.pulumi.alicloud.vpc.Switch;
+     * import com.pulumi.alicloud.vpc.SwitchArgs;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var config = ctx.config();
+     *         final var name = config.get("name").orElse("vswitchDatasourceName");
+     *         final var default = AlicloudFunctions.getZones();
+     * 
+     *         var vpc = new Network("vpc", NetworkArgs.builder()
+     *             .cidrBlock("172.16.0.0/16")
+     *             .vpcName(name)
+     *             .build());
+     * 
+     *         var vswitch = new Switch("vswitch", SwitchArgs.builder()
+     *             .vswitchName(name)
+     *             .cidrBlock("172.16.0.0/24")
+     *             .vpcId(vpc.id())
+     *             .availabilityZone(default_.zones()[0].id())
+     *             .build());
+     * 
+     *         final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
+     *             .nameRegex(vswitch.vswitchName())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSwitches(GetSwitchesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getSwitches:getSwitches", TypeShape.of(GetSwitchesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a list of VSwitches owned by an Alibaba Cloud account. * @@ -10248,7 +12120,172 @@ public static Output getTrafficMirrorFi * .status("Created") * .build()); * - * ctx.export("vpcTrafficMirrorFilterEgressRuleId2", status.applyValue(getTrafficMirrorFilterEgressRulesResult -> getTrafficMirrorFilterEgressRulesResult.rules()[0].id())); + * ctx.export("vpcTrafficMirrorFilterEgressRuleId2", status.applyValue(getTrafficMirrorFilterEgressRulesResult -> getTrafficMirrorFilterEgressRulesResult.rules()[0].id())); + * } + * } + * } + *
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTrafficMirrorFilterEgressRules(GetTrafficMirrorFilterEgressRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getTrafficMirrorFilterEgressRules:getTrafficMirrorFilterEgressRules", TypeShape.of(GetTrafficMirrorFilterEgressRulesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Vpc Traffic Mirror Filter Egress Rules of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.140.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetTrafficMirrorFilterEgressRulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = VpcFunctions.getTrafficMirrorFilterEgressRules(GetTrafficMirrorFilterEgressRulesArgs.builder()
+     *             .trafficMirrorFilterId("example_traffic_mirror_filter_id")
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("vpcTrafficMirrorFilterEgressRuleId1", ids.applyValue(getTrafficMirrorFilterEgressRulesResult -> getTrafficMirrorFilterEgressRulesResult.rules()[0].id()));
+     *         final var status = VpcFunctions.getTrafficMirrorFilterEgressRules(GetTrafficMirrorFilterEgressRulesArgs.builder()
+     *             .trafficMirrorFilterId("example_traffic_mirror_filter_id")
+     *             .ids("example_id")
+     *             .status("Created")
+     *             .build());
+     * 
+     *         ctx.export("vpcTrafficMirrorFilterEgressRuleId2", status.applyValue(getTrafficMirrorFilterEgressRulesResult -> getTrafficMirrorFilterEgressRulesResult.rules()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getTrafficMirrorFilterEgressRulesPlain(GetTrafficMirrorFilterEgressRulesPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("alicloud:vpc/getTrafficMirrorFilterEgressRules:getTrafficMirrorFilterEgressRules", TypeShape.of(GetTrafficMirrorFilterEgressRulesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Vpc Traffic Mirror Filter Ingress Rules of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.141.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetTrafficMirrorFilterIngressRulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = VpcFunctions.getTrafficMirrorFilterIngressRules(GetTrafficMirrorFilterIngressRulesArgs.builder()
+     *             .trafficMirrorFilterId("example_traffic_mirror_filter_id")
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("vpcTrafficMirrorFilterIngressRuleId1", ids.applyValue(getTrafficMirrorFilterIngressRulesResult -> getTrafficMirrorFilterIngressRulesResult.rules()[0].id()));
+     *         final var status = VpcFunctions.getTrafficMirrorFilterIngressRules(GetTrafficMirrorFilterIngressRulesArgs.builder()
+     *             .trafficMirrorFilterId("example_traffic_mirror_filter_id")
+     *             .ids("example_id")
+     *             .status("Created")
+     *             .build());
+     * 
+     *         ctx.export("vpcTrafficMirrorFilterIngressRuleId2", status.applyValue(getTrafficMirrorFilterIngressRulesResult -> getTrafficMirrorFilterIngressRulesResult.rules()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTrafficMirrorFilterIngressRules(GetTrafficMirrorFilterIngressRulesArgs args) { + return getTrafficMirrorFilterIngressRules(args, InvokeOptions.Empty); + } + /** + * This data source provides the Vpc Traffic Mirror Filter Ingress Rules of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.141.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetTrafficMirrorFilterIngressRulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = VpcFunctions.getTrafficMirrorFilterIngressRules(GetTrafficMirrorFilterIngressRulesArgs.builder()
+     *             .trafficMirrorFilterId("example_traffic_mirror_filter_id")
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("vpcTrafficMirrorFilterIngressRuleId1", ids.applyValue(getTrafficMirrorFilterIngressRulesResult -> getTrafficMirrorFilterIngressRulesResult.rules()[0].id()));
+     *         final var status = VpcFunctions.getTrafficMirrorFilterIngressRules(GetTrafficMirrorFilterIngressRulesArgs.builder()
+     *             .trafficMirrorFilterId("example_traffic_mirror_filter_id")
+     *             .ids("example_id")
+     *             .status("Created")
+     *             .build());
+     * 
+     *         ctx.export("vpcTrafficMirrorFilterIngressRuleId2", status.applyValue(getTrafficMirrorFilterIngressRulesResult -> getTrafficMirrorFilterIngressRulesResult.rules()[0].id()));
      *     }
      * }
      * }
@@ -10256,8 +12293,8 @@ public static Output getTrafficMirrorFi
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getTrafficMirrorFilterEgressRulesPlain(GetTrafficMirrorFilterEgressRulesPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("alicloud:vpc/getTrafficMirrorFilterEgressRules:getTrafficMirrorFilterEgressRules", TypeShape.of(GetTrafficMirrorFilterEgressRulesResult.class), args, Utilities.withVersion(options));
+    public static CompletableFuture getTrafficMirrorFilterIngressRulesPlain(GetTrafficMirrorFilterIngressRulesPlainArgs args) {
+        return getTrafficMirrorFilterIngressRulesPlain(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Vpc Traffic Mirror Filter Ingress Rules of the current Alibaba Cloud user.
@@ -10311,8 +12348,8 @@ public static CompletableFuture getTraf
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getTrafficMirrorFilterIngressRules(GetTrafficMirrorFilterIngressRulesArgs args) {
-        return getTrafficMirrorFilterIngressRules(args, InvokeOptions.Empty);
+    public static Output getTrafficMirrorFilterIngressRules(GetTrafficMirrorFilterIngressRulesArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("alicloud:vpc/getTrafficMirrorFilterIngressRules:getTrafficMirrorFilterIngressRules", TypeShape.of(GetTrafficMirrorFilterIngressRulesResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides the Vpc Traffic Mirror Filter Ingress Rules of the current Alibaba Cloud user.
@@ -10366,8 +12403,8 @@ public static Output getTrafficMirrorF
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getTrafficMirrorFilterIngressRulesPlain(GetTrafficMirrorFilterIngressRulesPlainArgs args) {
-        return getTrafficMirrorFilterIngressRulesPlain(args, InvokeOptions.Empty);
+    public static Output getTrafficMirrorFilterIngressRules(GetTrafficMirrorFilterIngressRulesArgs args, InvokeOutputOptions options) {
+        return Deployment.getInstance().invoke("alicloud:vpc/getTrafficMirrorFilterIngressRules:getTrafficMirrorFilterIngressRules", TypeShape.of(GetTrafficMirrorFilterIngressRulesResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides the Vpc Traffic Mirror Filter Ingress Rules of the current Alibaba Cloud user.
@@ -10421,13 +12458,13 @@ public static CompletableFuture getTra
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getTrafficMirrorFilterIngressRules(GetTrafficMirrorFilterIngressRulesArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("alicloud:vpc/getTrafficMirrorFilterIngressRules:getTrafficMirrorFilterIngressRules", TypeShape.of(GetTrafficMirrorFilterIngressRulesResult.class), args, Utilities.withVersion(options));
+    public static CompletableFuture getTrafficMirrorFilterIngressRulesPlain(GetTrafficMirrorFilterIngressRulesPlainArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invokeAsync("alicloud:vpc/getTrafficMirrorFilterIngressRules:getTrafficMirrorFilterIngressRules", TypeShape.of(GetTrafficMirrorFilterIngressRulesResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * This data source provides the Vpc Traffic Mirror Filter Ingress Rules of the current Alibaba Cloud user.
+     * This data source provides the Vpc Traffic Mirror Filters of the current Alibaba Cloud user.
      * 
-     * > **NOTE:** Available in v1.141.0+.
+     * > **NOTE:** Available in v1.140.0+.
      * 
      * ## Example Usage
      * 
@@ -10442,7 +12479,7 @@ public static Output getTrafficMirrorF
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.alicloud.vpc.VpcFunctions;
-     * import com.pulumi.alicloud.vpc.inputs.GetTrafficMirrorFilterIngressRulesArgs;
+     * import com.pulumi.alicloud.vpc.inputs.GetTrafficMirrorFiltersArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -10456,19 +12493,26 @@ public static Output getTrafficMirrorF
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var ids = VpcFunctions.getTrafficMirrorFilterIngressRules(GetTrafficMirrorFilterIngressRulesArgs.builder()
-     *             .trafficMirrorFilterId("example_traffic_mirror_filter_id")
+     *         final var ids = VpcFunctions.getTrafficMirrorFilters(GetTrafficMirrorFiltersArgs.builder()
      *             .ids("example_id")
      *             .build());
      * 
-     *         ctx.export("vpcTrafficMirrorFilterIngressRuleId1", ids.applyValue(getTrafficMirrorFilterIngressRulesResult -> getTrafficMirrorFilterIngressRulesResult.rules()[0].id()));
-     *         final var status = VpcFunctions.getTrafficMirrorFilterIngressRules(GetTrafficMirrorFilterIngressRulesArgs.builder()
-     *             .trafficMirrorFilterId("example_traffic_mirror_filter_id")
-     *             .ids("example_id")
-     *             .status("Created")
+     *         ctx.export("vpcTrafficMirrorFilterId1", ids.applyValue(getTrafficMirrorFiltersResult -> getTrafficMirrorFiltersResult.filters()[0].id()));
+     *         final var nameRegex = VpcFunctions.getTrafficMirrorFilters(GetTrafficMirrorFiltersArgs.builder()
+     *             .nameRegex("^my-TrafficMirrorFilter")
      *             .build());
      * 
-     *         ctx.export("vpcTrafficMirrorFilterIngressRuleId2", status.applyValue(getTrafficMirrorFilterIngressRulesResult -> getTrafficMirrorFilterIngressRulesResult.rules()[0].id()));
+     *         ctx.export("vpcTrafficMirrorFilterId2", nameRegex.applyValue(getTrafficMirrorFiltersResult -> getTrafficMirrorFiltersResult.filters()[0].id()));
+     *         final var filterName = VpcFunctions.getTrafficMirrorFilters(GetTrafficMirrorFiltersArgs.builder()
+     *             .trafficMirrorFilterName("example_traffic_mirror_filter_name")
+     *             .build());
+     * 
+     *         ctx.export("vpcTrafficMirrorFilterId3", filterName.applyValue(getTrafficMirrorFiltersResult -> getTrafficMirrorFiltersResult.filters()[0].id()));
+     *         final var status = VpcFunctions.getTrafficMirrorFilters(GetTrafficMirrorFiltersArgs.builder()
+     *             .status("^my-TrafficMirrorFilter")
+     *             .build());
+     * 
+     *         ctx.export("vpcTrafficMirrorFilterId4", status.applyValue(getTrafficMirrorFiltersResult -> getTrafficMirrorFiltersResult.filters()[0].id()));
      *     }
      * }
      * }
@@ -10476,8 +12520,8 @@ public static Output getTrafficMirrorF
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getTrafficMirrorFilterIngressRulesPlain(GetTrafficMirrorFilterIngressRulesPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("alicloud:vpc/getTrafficMirrorFilterIngressRules:getTrafficMirrorFilterIngressRules", TypeShape.of(GetTrafficMirrorFilterIngressRulesResult.class), args, Utilities.withVersion(options));
+    public static Output getTrafficMirrorFilters() {
+        return getTrafficMirrorFilters(GetTrafficMirrorFiltersArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Vpc Traffic Mirror Filters of the current Alibaba Cloud user.
@@ -10538,8 +12582,8 @@ public static CompletableFuture getTra
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getTrafficMirrorFilters() {
-        return getTrafficMirrorFilters(GetTrafficMirrorFiltersArgs.Empty, InvokeOptions.Empty);
+    public static CompletableFuture getTrafficMirrorFiltersPlain() {
+        return getTrafficMirrorFiltersPlain(GetTrafficMirrorFiltersPlainArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Vpc Traffic Mirror Filters of the current Alibaba Cloud user.
@@ -10600,8 +12644,8 @@ public static Output getTrafficMirrorFilters() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getTrafficMirrorFiltersPlain() {
-        return getTrafficMirrorFiltersPlain(GetTrafficMirrorFiltersPlainArgs.Empty, InvokeOptions.Empty);
+    public static Output getTrafficMirrorFilters(GetTrafficMirrorFiltersArgs args) {
+        return getTrafficMirrorFilters(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Vpc Traffic Mirror Filters of the current Alibaba Cloud user.
@@ -10662,8 +12706,8 @@ public static CompletableFuture getTrafficMirrorF
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getTrafficMirrorFilters(GetTrafficMirrorFiltersArgs args) {
-        return getTrafficMirrorFilters(args, InvokeOptions.Empty);
+    public static CompletableFuture getTrafficMirrorFiltersPlain(GetTrafficMirrorFiltersPlainArgs args) {
+        return getTrafficMirrorFiltersPlain(args, InvokeOptions.Empty);
     }
     /**
      * This data source provides the Vpc Traffic Mirror Filters of the current Alibaba Cloud user.
@@ -10724,8 +12768,8 @@ public static Output getTrafficMirrorFilters(GetT
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getTrafficMirrorFiltersPlain(GetTrafficMirrorFiltersPlainArgs args) {
-        return getTrafficMirrorFiltersPlain(args, InvokeOptions.Empty);
+    public static Output getTrafficMirrorFilters(GetTrafficMirrorFiltersArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("alicloud:vpc/getTrafficMirrorFilters:getTrafficMirrorFilters", TypeShape.of(GetTrafficMirrorFiltersResult.class), args, Utilities.withVersion(options));
     }
     /**
      * This data source provides the Vpc Traffic Mirror Filters of the current Alibaba Cloud user.
@@ -10786,7 +12830,7 @@ public static CompletableFuture getTrafficMirrorF
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getTrafficMirrorFilters(GetTrafficMirrorFiltersArgs args, InvokeOptions options) {
+    public static Output getTrafficMirrorFilters(GetTrafficMirrorFiltersArgs args, InvokeOutputOptions options) {
         return Deployment.getInstance().invoke("alicloud:vpc/getTrafficMirrorFilters:getTrafficMirrorFilters", TypeShape.of(GetTrafficMirrorFiltersResult.class), args, Utilities.withVersion(options));
     }
     /**
@@ -11091,6 +13135,54 @@ public static CompletableFuture getTrafficMirrorS
     public static Output getTrafficMirrorService(GetTrafficMirrorServiceArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("alicloud:vpc/getTrafficMirrorService:getTrafficMirrorService", TypeShape.of(GetTrafficMirrorServiceResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * Using this data source can open VPC Traffic Mirror service automatically. If the service has been opened, it will return opened.
+     * 
+     * For information about VPC Traffic Mirror and how to use it, see [What is VPC Traffic Mirror](https://www.alibabacloud.com/help/en/vpc/user-guide/traffic-mirroring-overview).
+     * 
+     * > **NOTE:** Available since v1.141.0.
+     * 
+     * ## Example Usage
+     * 
+     * Basic Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetTrafficMirrorServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var open = VpcFunctions.getTrafficMirrorService(GetTrafficMirrorServiceArgs.builder()
+     *             .enable("On")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTrafficMirrorService(GetTrafficMirrorServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getTrafficMirrorService:getTrafficMirrorService", TypeShape.of(GetTrafficMirrorServiceResult.class), args, Utilities.withVersion(options)); + } /** * Using this data source can open VPC Traffic Mirror service automatically. If the service has been opened, it will return opened. * @@ -11609,6 +13701,100 @@ public static CompletableFuture getTrafficMirror public static Output getTrafficMirrorSessions(GetTrafficMirrorSessionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpc/getTrafficMirrorSessions:getTrafficMirrorSessions", TypeShape.of(GetTrafficMirrorSessionsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Vpc Traffic Mirror Sessions of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.142.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetTrafficMirrorSessionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = VpcFunctions.getTrafficMirrorSessions(GetTrafficMirrorSessionsArgs.builder()
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("vpcTrafficMirrorSessionId1", ids.applyValue(getTrafficMirrorSessionsResult -> getTrafficMirrorSessionsResult.sessions()[0].id()));
+     *         final var nameRegex = VpcFunctions.getTrafficMirrorSessions(GetTrafficMirrorSessionsArgs.builder()
+     *             .nameRegex("^my-TrafficMirrorSession")
+     *             .build());
+     * 
+     *         ctx.export("vpcTrafficMirrorSessionId2", nameRegex.applyValue(getTrafficMirrorSessionsResult -> getTrafficMirrorSessionsResult.sessions()[0].id()));
+     *         final var enabled = VpcFunctions.getTrafficMirrorSessions(GetTrafficMirrorSessionsArgs.builder()
+     *             .ids("example_id")
+     *             .enabled("false")
+     *             .build());
+     * 
+     *         ctx.export("vpcTrafficMirrorSessionId3", enabled.applyValue(getTrafficMirrorSessionsResult -> getTrafficMirrorSessionsResult.sessions()[0].id()));
+     *         final var priority = VpcFunctions.getTrafficMirrorSessions(GetTrafficMirrorSessionsArgs.builder()
+     *             .ids("example_id")
+     *             .priority("1")
+     *             .build());
+     * 
+     *         ctx.export("vpcTrafficMirrorSessionId4", priority.applyValue(getTrafficMirrorSessionsResult -> getTrafficMirrorSessionsResult.sessions()[0].id()));
+     *         final var filterId = VpcFunctions.getTrafficMirrorSessions(GetTrafficMirrorSessionsArgs.builder()
+     *             .ids("example_id")
+     *             .trafficMirrorFilterId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcTrafficMirrorSessionId5", filterId.applyValue(getTrafficMirrorSessionsResult -> getTrafficMirrorSessionsResult.sessions()[0].id()));
+     *         final var sessionName = VpcFunctions.getTrafficMirrorSessions(GetTrafficMirrorSessionsArgs.builder()
+     *             .ids("example_id")
+     *             .trafficMirrorSessionName("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcTrafficMirrorSessionId6", sessionName.applyValue(getTrafficMirrorSessionsResult -> getTrafficMirrorSessionsResult.sessions()[0].id()));
+     *         final var sourceId = VpcFunctions.getTrafficMirrorSessions(GetTrafficMirrorSessionsArgs.builder()
+     *             .ids("example_id")
+     *             .trafficMirrorSourceId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcTrafficMirrorSessionId7", sourceId.applyValue(getTrafficMirrorSessionsResult -> getTrafficMirrorSessionsResult.sessions()[0].id()));
+     *         final var targetId = VpcFunctions.getTrafficMirrorSessions(GetTrafficMirrorSessionsArgs.builder()
+     *             .ids("example_id")
+     *             .trafficMirrorTargetId("example_value")
+     *             .build());
+     * 
+     *         ctx.export("vpcTrafficMirrorSessionId8", targetId.applyValue(getTrafficMirrorSessionsResult -> getTrafficMirrorSessionsResult.sessions()[0].id()));
+     *         final var status = VpcFunctions.getTrafficMirrorSessions(GetTrafficMirrorSessionsArgs.builder()
+     *             .ids("example_id")
+     *             .status("Created")
+     *             .build());
+     * 
+     *         ctx.export("vpcTrafficMirrorSessionId9", status.applyValue(getTrafficMirrorSessionsResult -> getTrafficMirrorSessionsResult.sessions()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTrafficMirrorSessions(GetTrafficMirrorSessionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getTrafficMirrorSessions:getTrafficMirrorSessions", TypeShape.of(GetTrafficMirrorSessionsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Vpc Traffic Mirror Sessions of the current Alibaba Cloud user. * @@ -11943,6 +14129,54 @@ public static CompletableFuture getVpcFlowLogsPlain(GetVpc public static Output getVpcFlowLogs(GetVpcFlowLogsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpc/getVpcFlowLogs:getVpcFlowLogs", TypeShape.of(GetVpcFlowLogsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Vpc Flow Logs of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.122.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpc.VpcFunctions;
+     * import com.pulumi.alicloud.vpc.inputs.GetVpcFlowLogsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = VpcFunctions.getVpcFlowLogs(GetVpcFlowLogsArgs.builder()
+     *             .ids("example_value")
+     *             .nameRegex("the_resource_name")
+     *             .build());
+     * 
+     *         ctx.export("firstVpcFlowLogId", example.applyValue(getVpcFlowLogsResult -> getVpcFlowLogsResult.logs()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVpcFlowLogs(GetVpcFlowLogsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpc/getVpcFlowLogs:getVpcFlowLogs", TypeShape.of(GetVpcFlowLogsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Vpc Flow Logs of the current Alibaba Cloud user. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/vpn/VpnFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/vpn/VpnFunctions.java index f475b8be08..5ccff82849 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/vpn/VpnFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/vpn/VpnFunctions.java @@ -26,6 +26,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class VpnFunctions { @@ -264,6 +265,53 @@ public static CompletableFuture getConnectionsPlain(GetCon public static Output getConnections(GetConnectionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpn/getConnections:getConnections", TypeShape.of(GetConnectionsResult.class), args, Utilities.withVersion(options)); } + /** + * The VPN connections data source lists lots of VPN connections resource information owned by an Alicloud account. + * + * > **NOTE:** Available since v1.18.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpn.VpnFunctions;
+     * import com.pulumi.alicloud.vpn.inputs.GetConnectionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = VpnFunctions.getConnections(GetConnectionsArgs.builder()
+     *             .ids("fake-conn-id")
+     *             .vpnGatewayId("fake-vpn-id")
+     *             .customerGatewayId("fake-cgw-id")
+     *             .outputFile("/tmp/vpnconn")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getConnections(GetConnectionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpn/getConnections:getConnections", TypeShape.of(GetConnectionsResult.class), args, Utilities.withVersion(options)); + } /** * The VPN connections data source lists lots of VPN connections resource information owned by an Alicloud account. * @@ -541,6 +589,52 @@ public static CompletableFuture getCustomerGatewaysPl public static Output getCustomerGateways(GetCustomerGatewaysArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpn/getCustomerGateways:getCustomerGateways", TypeShape.of(GetCustomerGatewaysResult.class), args, Utilities.withVersion(options)); } + /** + * The VPN customers gateways data source lists a number of VPN customer gateways resource information owned by an Alicloud account. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpn.VpnFunctions;
+     * import com.pulumi.alicloud.vpn.inputs.GetCustomerGatewaysArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = VpnFunctions.getCustomerGateways(GetCustomerGatewaysArgs.builder()
+     *             .nameRegex("testAcc*")
+     *             .ids(            
+     *                 "fake-id1",
+     *                 "fake-id2")
+     *             .outputFile("/tmp/cgws")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCustomerGateways(GetCustomerGatewaysArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpn/getCustomerGateways:getCustomerGateways", TypeShape.of(GetCustomerGatewaysResult.class), args, Utilities.withVersion(options)); + } /** * The VPN customers gateways data source lists a number of VPN customer gateways resource information owned by an Alicloud account. * @@ -1168,6 +1262,152 @@ public static Output getGatewayVcoRoutes(GetGatewayVc * <!--End PulumiCodeChooser --> * */ + public static Output getGatewayVcoRoutes(GetGatewayVcoRoutesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpn/getGatewayVcoRoutes:getGatewayVcoRoutes", TypeShape.of(GetGatewayVcoRoutesResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides the Vpn Gateway Vco Routes of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.183.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.cen.Instance;
+     * import com.pulumi.alicloud.cen.InstanceArgs;
+     * import com.pulumi.alicloud.cen.TransitRouter;
+     * import com.pulumi.alicloud.cen.TransitRouterArgs;
+     * import com.pulumi.alicloud.cen.CenFunctions;
+     * import com.pulumi.alicloud.cen.inputs.GetTransitRouterAvailableResourcesArgs;
+     * import com.pulumi.alicloud.vpn.CustomerGateway;
+     * import com.pulumi.alicloud.vpn.CustomerGatewayArgs;
+     * import com.pulumi.alicloud.vpn.GatewayVpnAttachment;
+     * import com.pulumi.alicloud.vpn.GatewayVpnAttachmentArgs;
+     * import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentIkeConfigArgs;
+     * import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentIpsecConfigArgs;
+     * import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentBgpConfigArgs;
+     * import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentHealthCheckConfigArgs;
+     * import com.pulumi.alicloud.cen.TransitRouterVpnAttachment;
+     * import com.pulumi.alicloud.cen.TransitRouterVpnAttachmentArgs;
+     * import com.pulumi.alicloud.cen.inputs.TransitRouterVpnAttachmentZoneArgs;
+     * import com.pulumi.alicloud.vpn.GatewayVcoRoute;
+     * import com.pulumi.alicloud.vpn.GatewayVcoRouteArgs;
+     * import com.pulumi.alicloud.vpn.VpnFunctions;
+     * import com.pulumi.alicloud.vpn.inputs.GetGatewayVcoRoutesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
+     *             .cenInstanceName(name)
+     *             .build());
+     * 
+     *         var defaultTransitRouter = new TransitRouter("defaultTransitRouter", TransitRouterArgs.builder()
+     *             .cenId(defaultInstance.id())
+     *             .transitRouterDescription("desd")
+     *             .transitRouterName(name)
+     *             .build());
+     * 
+     *         final var default = CenFunctions.getTransitRouterAvailableResources();
+     * 
+     *         var defaultCustomerGateway = new CustomerGateway("defaultCustomerGateway", CustomerGatewayArgs.builder()
+     *             .name(name)
+     *             .ipAddress("42.104.22.210")
+     *             .asn("45014")
+     *             .description("testAccVpnConnectionDesc")
+     *             .build());
+     * 
+     *         var defaultGatewayVpnAttachment = new GatewayVpnAttachment("defaultGatewayVpnAttachment", GatewayVpnAttachmentArgs.builder()
+     *             .customerGatewayId(defaultCustomerGateway.id())
+     *             .networkType("public")
+     *             .localSubnet("0.0.0.0/0")
+     *             .remoteSubnet("0.0.0.0/0")
+     *             .effectImmediately(false)
+     *             .ikeConfig(GatewayVpnAttachmentIkeConfigArgs.builder()
+     *                 .ikeAuthAlg("md5")
+     *                 .ikeEncAlg("des")
+     *                 .ikeVersion("ikev2")
+     *                 .ikeMode("main")
+     *                 .ikeLifetime(86400)
+     *                 .psk("tf-testvpn2")
+     *                 .ikePfs("group1")
+     *                 .remoteId("testbob2")
+     *                 .localId("testalice2")
+     *                 .build())
+     *             .ipsecConfig(GatewayVpnAttachmentIpsecConfigArgs.builder()
+     *                 .ipsecPfs("group5")
+     *                 .ipsecEncAlg("des")
+     *                 .ipsecAuthAlg("md5")
+     *                 .ipsecLifetime(86400)
+     *                 .build())
+     *             .bgpConfig(GatewayVpnAttachmentBgpConfigArgs.builder()
+     *                 .enable(true)
+     *                 .localAsn(45014)
+     *                 .tunnelCidr("169.254.11.0/30")
+     *                 .localBgpIp("169.254.11.1")
+     *                 .build())
+     *             .healthCheckConfig(GatewayVpnAttachmentHealthCheckConfigArgs.builder()
+     *                 .enable(true)
+     *                 .sip("192.168.1.1")
+     *                 .dip("10.0.0.1")
+     *                 .interval(10)
+     *                 .retry(10)
+     *                 .policy("revoke_route")
+     *                 .build())
+     *             .enableDpd(true)
+     *             .enableNatTraversal(true)
+     *             .vpnAttachmentName(name)
+     *             .build());
+     * 
+     *         var defaultTransitRouterVpnAttachment = new TransitRouterVpnAttachment("defaultTransitRouterVpnAttachment", TransitRouterVpnAttachmentArgs.builder()
+     *             .autoPublishRouteEnabled(false)
+     *             .transitRouterAttachmentDescription(name)
+     *             .transitRouterAttachmentName(name)
+     *             .cenId(defaultTransitRouter.cenId())
+     *             .transitRouterId(defaultTransitRouter.transitRouterId())
+     *             .vpnId(defaultGatewayVpnAttachment.id())
+     *             .zones(TransitRouterVpnAttachmentZoneArgs.builder()
+     *                 .zoneId(default_.resources()[0].masterZones()[0])
+     *                 .build())
+     *             .build());
+     * 
+     *         var defaultGatewayVcoRoute = new GatewayVcoRoute("defaultGatewayVcoRoute", GatewayVcoRouteArgs.builder()
+     *             .routeDest("192.168.12.0/24")
+     *             .nextHop(defaultTransitRouterVpnAttachment.vpnId())
+     *             .vpnConnectionId(defaultTransitRouterVpnAttachment.vpnId())
+     *             .weight(100)
+     *             .build());
+     * 
+     *         final var defaultGetGatewayVcoRoutes = VpnFunctions.getGatewayVcoRoutes(GetGatewayVcoRoutesArgs.builder()
+     *             .vpnConnectionId(defaultTransitRouterVpnAttachment.vpnId())
+     *             .build());
+     * 
+     *         ctx.export("vpnGatewayVcoRouteId1", ids.routes()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ public static CompletableFuture getGatewayVcoRoutesPlain(GetGatewayVcoRoutesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:vpn/getGatewayVcoRoutes:getGatewayVcoRoutes", TypeShape.of(GetGatewayVcoRoutesResult.class), args, Utilities.withVersion(options)); } @@ -1431,6 +1671,58 @@ public static CompletableFuture getGatewayVpnAtt public static Output getGatewayVpnAttachments(GetGatewayVpnAttachmentsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpn/getGatewayVpnAttachments:getGatewayVpnAttachments", TypeShape.of(GetGatewayVpnAttachmentsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Vpn Gateway Vpn Attachments of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.181.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpn.VpnFunctions;
+     * import com.pulumi.alicloud.vpn.inputs.GetGatewayVpnAttachmentsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ids = VpnFunctions.getGatewayVpnAttachments();
+     * 
+     *         ctx.export("vpnGatewayVpnAttachmentId1", ids.applyValue(getGatewayVpnAttachmentsResult -> getGatewayVpnAttachmentsResult.attachments()[0].id()));
+     *         final var nameRegex = VpnFunctions.getGatewayVpnAttachments(GetGatewayVpnAttachmentsArgs.builder()
+     *             .nameRegex("^my-VpnAttachment")
+     *             .build());
+     * 
+     *         ctx.export("vpnGatewayVpnAttachmentId2", nameRegex.applyValue(getGatewayVpnAttachmentsResult -> getGatewayVpnAttachmentsResult.attachments()[0].id()));
+     *         ctx.export("localId", vpnAttachments.attachments()[0].ikeConfig()[0].localId());
+     *         ctx.export("internetIp", vpnAttachments.attachments()[0].internetIp());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGatewayVpnAttachments(GetGatewayVpnAttachmentsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpn/getGatewayVpnAttachments:getGatewayVpnAttachments", TypeShape.of(GetGatewayVpnAttachmentsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Vpn Gateway Vpn Attachments of the current Alibaba Cloud user. * @@ -1615,6 +1907,50 @@ public static CompletableFuture getGatewayZonesPlain(GetG public static Output getGatewayZones(GetGatewayZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpn/getGatewayZones:getGatewayZones", TypeShape.of(GetGatewayZonesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides VPN Gateway Zone available to the user.[What is Zone](https://next.api.alibabacloud.com/api/Vpc/2016-04-28/DescribeVpnGatewayAvailableZones?lang=JAVA) + * + * > **NOTE:** Available since v1.216.0. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.vpn.VpnFunctions;
+     * import com.pulumi.alicloud.vpn.inputs.GetGatewayZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = VpnFunctions.getGatewayZones(GetGatewayZonesArgs.builder()
+     *             .spec("5M")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGatewayZones(GetGatewayZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpn/getGatewayZones:getGatewayZones", TypeShape.of(GetGatewayZonesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides VPN Gateway Zone available to the user.[What is Zone](https://next.api.alibabacloud.com/api/Vpc/2016-04-28/DescribeVpnGatewayAvailableZones?lang=JAVA) * @@ -1704,6 +2040,15 @@ public static CompletableFuture getGatewaysPlain(GetGatewaysP public static Output getGateways(GetGatewaysArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpn/getGateways:getGateways", TypeShape.of(GetGatewaysResult.class), args, Utilities.withVersion(options)); } + /** + * The VPNs data source lists a number of VPNs resource information owned by an Alicloud account. + * + * > **NOTE:** Available since v1.18.0. + * + */ + public static Output getGateways(GetGatewaysArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:vpn/getGateways:getGateways", TypeShape.of(GetGatewaysResult.class), args, Utilities.withVersion(options)); + } /** * The VPNs data source lists a number of VPNs resource information owned by an Alicloud account. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/waf/WafFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/waf/WafFunctions.java index d8c1dd32fd..56e27c44ab 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/waf/WafFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/waf/WafFunctions.java @@ -17,6 +17,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class WafFunctions { @@ -167,6 +168,55 @@ public static CompletableFuture getCertificatesPlain(GetC public static Output getCertificates(GetCertificatesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:waf/getCertificates:getCertificates", TypeShape.of(GetCertificatesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Waf Certificates of the current Alibaba Cloud user. + * + * > **NOTE:** Available in v1.135.0+. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.waf.WafFunctions;
+     * import com.pulumi.alicloud.waf.inputs.GetCertificatesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = WafFunctions.getCertificates(GetCertificatesArgs.builder()
+     *             .ids("your_certificate_id")
+     *             .instanceId("your_instance_id")
+     *             .domain("your_domain_name")
+     *             .build());
+     * 
+     *         ctx.export("wafCertificate", default_.certificates()[0]);
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCertificates(GetCertificatesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:waf/getCertificates:getCertificates", TypeShape.of(GetCertificatesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Waf Certificates of the current Alibaba Cloud user. * @@ -354,6 +404,52 @@ public static CompletableFuture getDomainsPlain(GetDomainsPlai public static Output getDomains(GetDomainsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:waf/getDomains:getDomains", TypeShape.of(GetDomainsResult.class), args, Utilities.withVersion(options)); } + /** + * Provides a WAF datasource to retrieve domains. + * + * For information about WAF and how to use it, see [What is Alibaba Cloud WAF](https://www.alibabacloud.com/help/doc-detail/28517.htm). + * + * > **NOTE:** Available in 1.86.0+ . + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.waf.WafFunctions;
+     * import com.pulumi.alicloud.waf.inputs.GetDomainsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = WafFunctions.getDomains(GetDomainsArgs.builder()
+     *             .instanceId("waf-cf-xxxxx")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDomains(GetDomainsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:waf/getDomains:getDomains", TypeShape.of(GetDomainsResult.class), args, Utilities.withVersion(options)); + } /** * Provides a WAF datasource to retrieve domains. * @@ -650,6 +746,56 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:waf/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * Provides a WAF datasource to retrieve instances. + * + * For information about WAF and how to use it, see [What is Alibaba Cloud WAF](https://www.alibabacloud.com/help/doc-detail/28517.htm). + * + * > **NOTE:** Available in 1.90.0+ . + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.waf.WafFunctions;
+     * import com.pulumi.alicloud.waf.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = WafFunctions.getInstances(GetInstancesArgs.builder()
+     *             .ids("waf-cn-09k********")
+     *             .status("1")
+     *             .resourceGroupId("rg-acfmwvv********")
+     *             .instanceSource("waf-cloud")
+     *             .build());
+     * 
+     *         ctx.export("theFirstWafInstanceId", default_.instances()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:waf/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * Provides a WAF datasource to retrieve instances. * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/wafv3/Wafv3Functions.java b/sdk/java/src/main/java/com/pulumi/alicloud/wafv3/Wafv3Functions.java index 20bbd0eb9e..b9433c09a7 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/wafv3/Wafv3Functions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/wafv3/Wafv3Functions.java @@ -14,6 +14,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class Wafv3Functions { @@ -188,6 +189,63 @@ public static CompletableFuture getDomainsPlain(GetDomainsPlai public static Output getDomains(GetDomainsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:wafv3/getDomains:getDomains", TypeShape.of(GetDomainsResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides the Wafv3 Domains of the current Alibaba Cloud user. + * + * > **NOTE:** Available since v1.200.0. + * + * ## Example Usage + * + * Basic Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.wafv3.Wafv3Functions;
+     * import com.pulumi.alicloud.wafv3.inputs.GetInstancesArgs;
+     * import com.pulumi.alicloud.wafv3.inputs.GetDomainsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = Wafv3Functions.getInstances();
+     * 
+     *         final var ids = Wafv3Functions.getDomains(GetDomainsArgs.builder()
+     *             .instanceId(default_.ids()[0])
+     *             .ids("example_id")
+     *             .build());
+     * 
+     *         ctx.export("wafv3DomainsId1", ids.applyValue(getDomainsResult -> getDomainsResult.domains()[0].id()));
+     *         final var defaultGetDomains = Wafv3Functions.getDomains(GetDomainsArgs.builder()
+     *             .instanceId(default_.ids()[0])
+     *             .domain("zctest12.wafqax.top")
+     *             .build());
+     * 
+     *         ctx.export("wafv3DomainsId2", defaultGetDomains.applyValue(getDomainsResult -> getDomainsResult.domains()[0].id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDomains(GetDomainsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:wafv3/getDomains:getDomains", TypeShape.of(GetDomainsResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides the Wafv3 Domains of the current Alibaba Cloud user. * @@ -460,6 +518,49 @@ public static CompletableFuture getInstancesPlain(GetInstanc public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:wafv3/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides Wafv3 Instance available to the user.[What is Instance](https://www.alibabacloud.com/help/en/web-application-firewall/latest/what-is-waf) + * + * > **NOTE:** Available in 1.200.0+ + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.alicloud.wafv3.Wafv3Functions;
+     * import com.pulumi.alicloud.wafv3.inputs.GetInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = Wafv3Functions.getInstances();
+     * 
+     *         ctx.export("alicloudWafv3InstanceExampleId", default_.instances()[0].id());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstances(GetInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:wafv3/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides Wafv3 Instance available to the user.[What is Instance](https://www.alibabacloud.com/help/en/web-application-firewall/latest/what-is-waf) * diff --git a/sdk/java/src/main/java/com/pulumi/alicloud/yundun/YundunFunctions.java b/sdk/java/src/main/java/com/pulumi/alicloud/yundun/YundunFunctions.java index 031c60a4d5..a7d36073db 100644 --- a/sdk/java/src/main/java/com/pulumi/alicloud/yundun/YundunFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/alicloud/yundun/YundunFunctions.java @@ -14,6 +14,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import java.util.concurrent.CompletableFuture; public final class YundunFunctions { @@ -32,6 +33,9 @@ public static CompletableFuture getBastionHostIns public static Output getBastionHostInstances(GetBastionHostInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:yundun/getBastionHostInstances:getBastionHostInstances", TypeShape.of(GetBastionHostInstancesResult.class), args, Utilities.withVersion(options)); } + public static Output getBastionHostInstances(GetBastionHostInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:yundun/getBastionHostInstances:getBastionHostInstances", TypeShape.of(GetBastionHostInstancesResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getBastionHostInstancesPlain(GetBastionHostInstancesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:yundun/getBastionHostInstances:getBastionHostInstances", TypeShape.of(GetBastionHostInstancesResult.class), args, Utilities.withVersion(options)); } @@ -50,6 +54,9 @@ public static CompletableFuture getDBAuditInstancePlai public static Output getDBAuditInstance(GetDBAuditInstanceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:yundun/getDBAuditInstance:getDBAuditInstance", TypeShape.of(GetDBAuditInstanceResult.class), args, Utilities.withVersion(options)); } + public static Output getDBAuditInstance(GetDBAuditInstanceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("alicloud:yundun/getDBAuditInstance:getDBAuditInstance", TypeShape.of(GetDBAuditInstanceResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getDBAuditInstancePlain(GetDBAuditInstancePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:yundun/getDBAuditInstance:getDBAuditInstance", TypeShape.of(GetDBAuditInstanceResult.class), args, Utilities.withVersion(options)); } diff --git a/sdk/nodejs/package.json b/sdk/nodejs/package.json index b63de4ad17..95ca1a934e 100644 --- a/sdk/nodejs/package.json +++ b/sdk/nodejs/package.json @@ -13,7 +13,7 @@ "build": "tsc" }, "dependencies": { - "@pulumi/pulumi": "^3.136.0" + "@pulumi/pulumi": "^3.142.0" }, "devDependencies": { "@types/node": "^10.0.0", diff --git a/sdk/python/pyproject.toml b/sdk/python/pyproject.toml index 576a45adc6..2c2d3d7ef1 100644 --- a/sdk/python/pyproject.toml +++ b/sdk/python/pyproject.toml @@ -1,10 +1,10 @@ [project] name = "pulumi_alicloud" description = "A Pulumi package for creating and managing AliCloud resources." - dependencies = ["parver>=0.2.1", "pulumi>=3.136.0,<4.0.0", "semver>=2.8.1", "typing-extensions>=4.11; python_version < \"3.11\""] + dependencies = ["parver>=0.2.1", "pulumi>=3.142.0,<4.0.0", "semver>=2.8.1", "typing-extensions>=4.11; python_version < \"3.11\""] keywords = ["pulumi", "alicloud"] readme = "README.md" - requires-python = ">=3.8" + requires-python = ">=3.9" version = "3.0.0a0+dev" [project.license] text = "Apache-2.0"