From 8ec07c809016c22cd32330061fe553f57c5ed82d Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Wed, 17 Apr 2024 03:07:10 +0000 Subject: [PATCH 1/2] make tfgen --- examples/go.mod | 14 +-- examples/go.sum | 44 ++++---- .../cmd/pulumi-resource-random/schema.json | 34 +++--- provider/go.mod | 14 +-- provider/go.sum | 32 +++--- provider/shim/go.mod | 16 +-- provider/shim/go.sum | 103 +++++++++--------- 7 files changed, 130 insertions(+), 127 deletions(-) diff --git a/examples/go.mod b/examples/go.mod index 6902ee12ae..6b9bfae707 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -99,7 +99,7 @@ require ( github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect - github.com/hashicorp/go-hclog v1.5.0 // indirect + github.com/hashicorp/go-hclog v1.6.2 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect github.com/hashicorp/go-plugin v1.6.0 // indirect @@ -113,7 +113,7 @@ require ( github.com/hashicorp/go-version v1.6.0 // indirect github.com/hashicorp/golang-lru v0.5.4 // indirect github.com/hashicorp/hcl v1.0.0 // indirect - github.com/hashicorp/hcl/v2 v2.19.1 // indirect + github.com/hashicorp/hcl/v2 v2.20.0 // indirect github.com/hashicorp/terraform-plugin-framework v1.7.0 // indirect github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 // indirect github.com/hashicorp/terraform-plugin-go v0.22.1 // indirect @@ -174,7 +174,7 @@ require ( github.com/skeema/knownhosts v1.2.1 // indirect github.com/spf13/cobra v1.8.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/terraform-providers/terraform-provider-random v1.3.2-0.20231204135814-c6e90de46687 // indirect + github.com/terraform-providers/terraform-provider-random v1.3.2-0.20240416062540-4613beef4506 // indirect github.com/terraform-providers/terraform-provider-random/shim v0.0.0 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect @@ -186,7 +186,7 @@ require ( github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect github.com/xeipuuv/gojsonschema v1.2.0 // indirect - github.com/zclconf/go-cty v1.14.2 // indirect + github.com/zclconf/go-cty v1.14.3 // indirect go.opencensus.io v0.24.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1 // indirect @@ -196,14 +196,14 @@ require ( go.uber.org/atomic v1.9.0 // indirect gocloud.dev v0.36.0 // indirect gocloud.dev/secrets/hashivault v0.27.0 // indirect - golang.org/x/crypto v0.21.0 // indirect + golang.org/x/crypto v0.22.0 // indirect golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect golang.org/x/mod v0.15.0 // indirect golang.org/x/net v0.21.0 // indirect golang.org/x/oauth2 v0.16.0 // indirect golang.org/x/sync v0.6.0 // indirect - golang.org/x/sys v0.18.0 // indirect - golang.org/x/term v0.18.0 // indirect + golang.org/x/sys v0.19.0 // indirect + golang.org/x/term v0.19.0 // indirect golang.org/x/text v0.14.0 // indirect golang.org/x/time v0.5.0 // indirect golang.org/x/tools v0.15.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index 4af08b9096..dedc8f187a 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -988,8 +988,8 @@ github.com/hashicorp/go-hclog v0.12.2/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39 github.com/hashicorp/go-hclog v0.14.1/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-hclog v0.16.2/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-hclog v1.2.2/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= -github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= -github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= +github.com/hashicorp/go-hclog v1.6.2 h1:NOtoftovWkDheyUM/8JW3QMiXyxJK3uHRK7wV04nD2I= +github.com/hashicorp/go-hclog v1.6.2/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-immutable-radix v1.2.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= @@ -1043,12 +1043,12 @@ github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc= github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= -github.com/hashicorp/hc-install v0.6.0 h1:fDHnU7JNFNSQebVKYhHZ0va1bC6SrPQ8fpebsvNr2w4= -github.com/hashicorp/hc-install v0.6.0/go.mod h1:10I912u3nntx9Umo1VAeYPUUuehk0aRQJYpMwbX5wQA= +github.com/hashicorp/hc-install v0.6.3 h1:yE/r1yJvWbtrJ0STwScgEnCanb0U9v7zp0Gbkmcoxqs= +github.com/hashicorp/hc-install v0.6.3/go.mod h1:KamGdbodYzlufbWh4r9NRo8y6GLHWZP2GBtdnms1Ln0= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/hashicorp/hcl/v2 v2.19.1 h1://i05Jqznmb2EXqa39Nsvyan2o5XyMowW5fnCKW5RPI= -github.com/hashicorp/hcl/v2 v2.19.1/go.mod h1:ThLC89FV4p9MPW804KVbe/cEXoQ8NZEh+JtMeeGErHE= +github.com/hashicorp/hcl/v2 v2.20.0 h1:l++cRs/5jQOiKVvqXZm/P1ZEfVXJmvLS9WSVxkaeTb4= +github.com/hashicorp/hcl/v2 v2.20.0/go.mod h1:WmcD/Ym72MDOOx5F62Ly+leloeu6H7m0pG7VBiU6pQk= github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= @@ -1059,10 +1059,10 @@ github.com/hashicorp/memberlist v0.3.1/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOn github.com/hashicorp/nomad/api v0.0.0-20220629141207-c2428e1673ec/go.mod h1:jP79oXjopTyH6E8LF0CEMq67STgrlmBRIyijA0tuR5o= github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= -github.com/hashicorp/terraform-exec v0.19.0 h1:FpqZ6n50Tk95mItTSS9BjeOVUb4eg81SpgVtZNNtFSM= -github.com/hashicorp/terraform-exec v0.19.0/go.mod h1:tbxUpe3JKruE9Cuf65mycSIT8KiNPZ0FkuTE3H4urQg= -github.com/hashicorp/terraform-json v0.17.1 h1:eMfvh/uWggKmY7Pmb3T85u86E2EQg6EQHgyRwf3RkyA= -github.com/hashicorp/terraform-json v0.17.1/go.mod h1:Huy6zt6euxaY9knPAFKjUITn8QxUFIe9VuSzb4zn/0o= +github.com/hashicorp/terraform-exec v0.20.0 h1:DIZnPsqzPGuUnq6cH8jWcPunBfY+C+M8JyYF3vpnuEo= +github.com/hashicorp/terraform-exec v0.20.0/go.mod h1:ckKGkJWbsNqFKV1itgMnE0hY9IYf1HoiekpuN0eWoDw= +github.com/hashicorp/terraform-json v0.21.0 h1:9NQxbLNqPbEMze+S6+YluEdXgJmhQykRyRNd+zTI05U= +github.com/hashicorp/terraform-json v0.21.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2Dq6TyE/28JiU4tIQxk= github.com/hashicorp/terraform-plugin-framework v1.7.0 h1:wOULbVmfONnJo9iq7/q+iBOBJul5vRovaYJIu2cY/Pw= github.com/hashicorp/terraform-plugin-framework v1.7.0/go.mod h1:jY9Id+3KbZ17OMpulgnWLSfwxNVYSoYBQFTgsx044CI= github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 h1:HOjBuMbOEzl7snOdOoUfE2Jgeto6JOjLVQ39Ls2nksc= @@ -1075,8 +1075,8 @@ github.com/hashicorp/terraform-plugin-sdk v1.7.0 h1:B//oq0ZORG+EkVrIJy0uPGSonvmX github.com/hashicorp/terraform-plugin-sdk v1.7.0/go.mod h1:OjgQmey5VxnPej/buEhe+YqKm0KNvV3QqU4hkqHqPCY= github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 h1:qHprzXy/As0rxedphECBEQAh3R4yp6pKksKHcqZx5G8= github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0/go.mod h1:H+8tjs9TjV2w57QFVSMBQacf8k/E1XwLXGCARgViC6A= -github.com/hashicorp/terraform-plugin-testing v1.5.1 h1:T4aQh9JAhmWo4+t1A7x+rnxAJHCDIYW9kXyo4sVO92c= -github.com/hashicorp/terraform-plugin-testing v1.5.1/go.mod h1:dg8clO6K59rZ8w9EshBmDp1CxTIPu3yA4iaDpX1h5u0= +github.com/hashicorp/terraform-plugin-testing v1.7.0 h1:I6aeCyZ30z4NiI3tzyDoO6fS7YxP5xSL1ceOon3gTe8= +github.com/hashicorp/terraform-plugin-testing v1.7.0/go.mod h1:sbAreCleJNOCz+y5vVHV8EJkIWZKi/t4ndKiUjM9vao= github.com/hashicorp/terraform-registry-address v0.2.3 h1:2TAiKJ1A3MAkZlH1YI/aTVcLZRu7JseiXNRHbOAyoTI= github.com/hashicorp/terraform-registry-address v0.2.3/go.mod h1:lFHA76T8jfQteVfT7caREqguFrW3c4MFSPhZB7HHgUM= github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S52uzrw4x0jKQ= @@ -1698,8 +1698,8 @@ github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2/go.mod h1:hkRG github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= github.com/tchap/go-patricia v2.2.6+incompatible/go.mod h1:bmLyhP68RS6kStMGxByiQ23RP/odRBOTVjwp2cDyi6I= github.com/tedsuo/ifrit v0.0.0-20180802180643-bea94bb476cc/go.mod h1:eyZnKCc955uh98WQvzOm0dgAeLnf2O0Rz0LPoC5ze+0= -github.com/terraform-providers/terraform-provider-random v1.3.2-0.20231204135814-c6e90de46687 h1:4gT3jbJFnnGV2Liq4jziT7C4w/OOM+pkuwBGVDagRgc= -github.com/terraform-providers/terraform-provider-random v1.3.2-0.20231204135814-c6e90de46687/go.mod h1:nH2NdrX91QoiiaPJsTZ9vKoezUq5IgHJ8nijpD6lT5o= +github.com/terraform-providers/terraform-provider-random v1.3.2-0.20240416062540-4613beef4506 h1:UDtzIGrFThcurDH4Sc3nOTvdT6yAzYSWLtFfalgcSNA= +github.com/terraform-providers/terraform-provider-random v1.3.2-0.20240416062540-4613beef4506/go.mod h1:AUpPrvzdbMqTbX2oa/76PrCF9v2N00yRJ4iy4fHDF5g= github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U= github.com/texttheater/golang-levenshtein v1.0.1/go.mod h1:PYAKrbF5sAiq9wd+H82hs7gNaen0CplQ9uvm6+enD/8= github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= @@ -1767,8 +1767,8 @@ github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5t github.com/yvasiyarov/go-metrics v0.0.0-20140926110328-57bccd1ccd43/go.mod h1:aX5oPXxHm3bOH+xeAttToC8pqch2ScQN/JoXYupl6xs= github.com/yvasiyarov/gorelic v0.0.0-20141212073537-a9bba5b9ab50/go.mod h1:NUSPSUX/bi6SeDMUh6brw0nXpxHnc96TguQh0+r/ssA= github.com/yvasiyarov/newrelic_platform_go v0.0.0-20140908184405-b21fdbd4370f/go.mod h1:GlGEuHIJweS1mbCqG+7vt2nvWLzLLnRHbXz5JKd/Qbg= -github.com/zclconf/go-cty v1.14.2 h1:kTG7lqmBou0Zkx35r6HJHUQTvaRPr5bIAf3AoHS0izI= -github.com/zclconf/go-cty v1.14.2/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= +github.com/zclconf/go-cty v1.14.3 h1:1JXy1XroaGrzZuG6X9dt7HL6s9AwbY+l4UNL8o5B6ho= +github.com/zclconf/go-cty v1.14.3/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= github.com/zclconf/go-cty-yaml v1.0.1 h1:up11wlgAaDvlAGENcFDnZgkn0qUJurso7k6EpURKNF8= github.com/zclconf/go-cty-yaml v1.0.1/go.mod h1:IP3Ylp0wQpYm50IHK8OZWKMu6sPJIUgKa8XhiVHura0= github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q= @@ -1917,8 +1917,8 @@ golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0 golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA= -golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= +golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= +golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -2232,15 +2232,15 @@ golang.org/x/sys v0.0.0-20220731174439-a90be440212d/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= -golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= +golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.18.0 h1:FcHjZXDMxI8mM3nwhX9HlKop4C0YQvCVCdwYl2wOtE8= -golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58= +golang.org/x/term v0.19.0 h1:+ThwsDv+tYfnJFhF4L8jITxu1tdTWRTZpdsWgEgjL6Q= +golang.org/x/term v0.19.0/go.mod h1:2CuTdWZ7KHSQwUzKva0cbMg6q2DMI3Mmxp+gKJbskEk= 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= diff --git a/provider/cmd/pulumi-resource-random/schema.json b/provider/cmd/pulumi-resource-random/schema.json index 3505ad4003..ec443444b0 100644 --- a/provider/cmd/pulumi-resource-random/schema.json +++ b/provider/cmd/pulumi-resource-random/schema.json @@ -56,7 +56,7 @@ }, "resources": { "random:index/randomBytes:RandomBytes": { - "description": "The resource `random.RandomBytes` generates random bytes that are intended to be used as a secret, or key. Use this in preference to `random.RandomId` when the output is considered sensitive, and should not be displayed in the CLI.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\nimport * as random from \"@pulumi/random\";\n\nconst jwtSecretRandomBytes = new random.RandomBytes(\"jwtSecretRandomBytes\", {length: 64});\nconst jwtSecretSecret = new azure.keyvault.Secret(\"jwtSecretSecret\", {\n keyVaultId: \"some-azure-key-vault-id\",\n value: jwtSecretRandomBytes.base64,\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\nimport pulumi_random as random\n\njwt_secret_random_bytes = random.RandomBytes(\"jwtSecretRandomBytes\", length=64)\njwt_secret_secret = azure.keyvault.Secret(\"jwtSecretSecret\",\n key_vault_id=\"some-azure-key-vault-id\",\n value=jwt_secret_random_bytes.base64)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\nusing Random = Pulumi.Random;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var jwtSecretRandomBytes = new Random.RandomBytes(\"jwtSecretRandomBytes\", new()\n {\n Length = 64,\n });\n\n var jwtSecretSecret = new Azure.KeyVault.Secret(\"jwtSecretSecret\", new()\n {\n KeyVaultId = \"some-azure-key-vault-id\",\n Value = jwtSecretRandomBytes.Base64,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/keyvault\"\n\t\"github.com/pulumi/pulumi-random/sdk/v4/go/random\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tjwtSecretRandomBytes, err := random.NewRandomBytes(ctx, \"jwtSecretRandomBytes\", \u0026random.RandomBytesArgs{\n\t\t\tLength: pulumi.Int(64),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = keyvault.NewSecret(ctx, \"jwtSecretSecret\", \u0026keyvault.SecretArgs{\n\t\t\tKeyVaultId: pulumi.String(\"some-azure-key-vault-id\"),\n\t\t\tValue: jwtSecretRandomBytes.Base64,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.random.RandomBytes;\nimport com.pulumi.random.RandomBytesArgs;\nimport com.pulumi.azure.keyvault.Secret;\nimport com.pulumi.azure.keyvault.SecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var jwtSecretRandomBytes = new RandomBytes(\"jwtSecretRandomBytes\", RandomBytesArgs.builder() \n .length(64)\n .build());\n\n var jwtSecretSecret = new Secret(\"jwtSecretSecret\", SecretArgs.builder() \n .keyVaultId(\"some-azure-key-vault-id\")\n .value(jwtSecretRandomBytes.base64())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n jwtSecretRandomBytes:\n type: random:RandomBytes\n properties:\n length: 64\n jwtSecretSecret:\n type: azure:keyvault:Secret\n properties:\n keyVaultId: some-azure-key-vault-id\n value: ${jwtSecretRandomBytes.base64}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nRandom bytes can be imported by specifying the value as base64 string.\n\n```sh\n$ pulumi import random:index/randomBytes:RandomBytes basic \"8/fu3q+2DcgSJ19i0jZ5Cw==\"\n```\n\n", + "description": "The resource `random.RandomBytes` generates random bytes that are intended to be used as a secret, or key. Use this in preference to `random.RandomId` when the output is considered sensitive, and should not be displayed in the CLI.\n\nThis resource *does* use a cryptographic random number generator.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\nimport * as random from \"@pulumi/random\";\n\nconst jwtSecretRandomBytes = new random.RandomBytes(\"jwtSecretRandomBytes\", {length: 64});\nconst jwtSecretSecret = new azure.keyvault.Secret(\"jwtSecretSecret\", {\n keyVaultId: \"some-azure-key-vault-id\",\n value: jwtSecretRandomBytes.base64,\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\nimport pulumi_random as random\n\njwt_secret_random_bytes = random.RandomBytes(\"jwtSecretRandomBytes\", length=64)\njwt_secret_secret = azure.keyvault.Secret(\"jwtSecretSecret\",\n key_vault_id=\"some-azure-key-vault-id\",\n value=jwt_secret_random_bytes.base64)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\nusing Random = Pulumi.Random;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var jwtSecretRandomBytes = new Random.RandomBytes(\"jwtSecretRandomBytes\", new()\n {\n Length = 64,\n });\n\n var jwtSecretSecret = new Azure.KeyVault.Secret(\"jwtSecretSecret\", new()\n {\n KeyVaultId = \"some-azure-key-vault-id\",\n Value = jwtSecretRandomBytes.Base64,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/keyvault\"\n\t\"github.com/pulumi/pulumi-random/sdk/v4/go/random\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tjwtSecretRandomBytes, err := random.NewRandomBytes(ctx, \"jwtSecretRandomBytes\", \u0026random.RandomBytesArgs{\n\t\t\tLength: pulumi.Int(64),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = keyvault.NewSecret(ctx, \"jwtSecretSecret\", \u0026keyvault.SecretArgs{\n\t\t\tKeyVaultId: pulumi.String(\"some-azure-key-vault-id\"),\n\t\t\tValue: jwtSecretRandomBytes.Base64,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.random.RandomBytes;\nimport com.pulumi.random.RandomBytesArgs;\nimport com.pulumi.azure.keyvault.Secret;\nimport com.pulumi.azure.keyvault.SecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var jwtSecretRandomBytes = new RandomBytes(\"jwtSecretRandomBytes\", RandomBytesArgs.builder() \n .length(64)\n .build());\n\n var jwtSecretSecret = new Secret(\"jwtSecretSecret\", SecretArgs.builder() \n .keyVaultId(\"some-azure-key-vault-id\")\n .value(jwtSecretRandomBytes.base64())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n jwtSecretRandomBytes:\n type: random:RandomBytes\n properties:\n length: 64\n jwtSecretSecret:\n type: azure:keyvault:Secret\n properties:\n keyVaultId: some-azure-key-vault-id\n value: ${jwtSecretRandomBytes.base64}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nRandom bytes can be imported by specifying the value as base64 string.\n\n```sh\n$ pulumi import random:index/randomBytes:RandomBytes basic \"8/fu3q+2DcgSJ19i0jZ5Cw==\"\n```\n\n", "properties": { "base64": { "type": "string", @@ -65,7 +65,7 @@ }, "hex": { "type": "string", - "description": "The generated bytes presented in hex string format.\n", + "description": "The generated bytes presented in lowercase hexadecimal string format. The length of the encoded string is exactly twice the `length` parameter.\n", "secret": true }, "keepers": { @@ -111,7 +111,7 @@ }, "hex": { "type": "string", - "description": "The generated bytes presented in hex string format.\n", + "description": "The generated bytes presented in lowercase hexadecimal string format. The length of the encoded string is exactly twice the `length` parameter.\n", "secret": true }, "keepers": { @@ -357,12 +357,12 @@ }, "number": { "type": "boolean", - "description": "Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead.\n", + "description": "Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead.\n", "deprecationMessage": "**NOTE**: This is deprecated, use `numeric` instead." }, "numeric": { "type": "boolean", - "description": "Include numeric characters in the result. Default value is `true`.\n" + "description": "Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`.\n" }, "overrideSpecial": { "type": "string", @@ -430,12 +430,12 @@ }, "number": { "type": "boolean", - "description": "Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead.\n", + "description": "Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead.\n", "deprecationMessage": "**NOTE**: This is deprecated, use `numeric` instead." }, "numeric": { "type": "boolean", - "description": "Include numeric characters in the result. Default value is `true`.\n" + "description": "Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`.\n" }, "overrideSpecial": { "type": "string", @@ -494,12 +494,12 @@ }, "number": { "type": "boolean", - "description": "Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead.\n", + "description": "Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead.\n", "deprecationMessage": "**NOTE**: This is deprecated, use `numeric` instead." }, "numeric": { "type": "boolean", - "description": "Include numeric characters in the result. Default value is `true`.\n" + "description": "Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`.\n" }, "overrideSpecial": { "type": "string", @@ -622,7 +622,7 @@ "items": { "type": "string" }, - "description": "Random permutation of the list of strings given in `input`.\n" + "description": "Random permutation of the list of strings given in `input`. The number of elements is determined by `result_count` if\nset, or the number of elements in `input`.\n" }, "seed": { "type": "string", @@ -686,7 +686,7 @@ "items": { "type": "string" }, - "description": "Random permutation of the list of strings given in `input`.\n" + "description": "Random permutation of the list of strings given in `input`. The number of elements is determined by `result_count` if\nset, or the number of elements in `input`.\n" }, "seed": { "type": "string", @@ -732,12 +732,12 @@ }, "number": { "type": "boolean", - "description": "Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead.\n", + "description": "Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead.\n", "deprecationMessage": "**NOTE**: This is deprecated, use `numeric` instead." }, "numeric": { "type": "boolean", - "description": "Include numeric characters in the result. Default value is `true`.\n" + "description": "Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`.\n" }, "overrideSpecial": { "type": "string", @@ -803,12 +803,12 @@ }, "number": { "type": "boolean", - "description": "Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead.\n", + "description": "Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead.\n", "deprecationMessage": "**NOTE**: This is deprecated, use `numeric` instead." }, "numeric": { "type": "boolean", - "description": "Include numeric characters in the result. Default value is `true`.\n" + "description": "Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`.\n" }, "overrideSpecial": { "type": "string", @@ -862,12 +862,12 @@ }, "number": { "type": "boolean", - "description": "Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead.\n", + "description": "Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead.\n", "deprecationMessage": "**NOTE**: This is deprecated, use `numeric` instead." }, "numeric": { "type": "boolean", - "description": "Include numeric characters in the result. Default value is `true`.\n" + "description": "Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`.\n" }, "overrideSpecial": { "type": "string", diff --git a/provider/go.mod b/provider/go.mod index 0085e2735f..37ff3f0688 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -107,7 +107,7 @@ require ( github.com/hashicorp/go-cleanhttp v0.5.2 // indirect github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect github.com/hashicorp/go-getter v1.7.1 // indirect - github.com/hashicorp/go-hclog v1.5.0 // indirect + github.com/hashicorp/go-hclog v1.6.2 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect github.com/hashicorp/go-plugin v1.6.0 // indirect @@ -122,7 +122,7 @@ require ( github.com/hashicorp/go-version v1.6.0 // indirect github.com/hashicorp/golang-lru v0.5.4 // indirect github.com/hashicorp/hcl v1.0.0 // indirect - github.com/hashicorp/hcl/v2 v2.19.1 // indirect + github.com/hashicorp/hcl/v2 v2.20.0 // indirect github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93 // indirect github.com/hashicorp/logutils v1.0.0 // indirect github.com/hashicorp/terraform-plugin-framework v1.7.0 // indirect @@ -201,7 +201,7 @@ require ( github.com/spf13/cast v1.5.0 // indirect github.com/spf13/cobra v1.8.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/terraform-providers/terraform-provider-random v1.3.2-0.20231204135814-c6e90de46687 // indirect + github.com/terraform-providers/terraform-provider-random v1.3.2-0.20240416062540-4613beef4506 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect @@ -214,7 +214,7 @@ require ( github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect github.com/xeipuuv/gojsonschema v1.2.0 // indirect - github.com/zclconf/go-cty v1.14.2 // indirect + github.com/zclconf/go-cty v1.14.3 // indirect go.opencensus.io v0.24.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1 // indirect @@ -224,14 +224,14 @@ require ( go.uber.org/atomic v1.9.0 // indirect gocloud.dev v0.36.0 // indirect gocloud.dev/secrets/hashivault v0.27.0 // indirect - golang.org/x/crypto v0.21.0 // indirect + golang.org/x/crypto v0.22.0 // indirect golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect golang.org/x/mod v0.15.0 // indirect golang.org/x/net v0.21.0 // indirect golang.org/x/oauth2 v0.16.0 // indirect golang.org/x/sync v0.6.0 // indirect - golang.org/x/sys v0.18.0 // indirect - golang.org/x/term v0.18.0 // indirect + golang.org/x/sys v0.19.0 // indirect + golang.org/x/term v0.19.0 // indirect golang.org/x/text v0.14.0 // indirect golang.org/x/time v0.5.0 // indirect golang.org/x/tools v0.15.0 // indirect diff --git a/provider/go.sum b/provider/go.sum index a95b057c9d..53ff2e13bd 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1132,8 +1132,8 @@ github.com/hashicorp/go-hclog v0.12.2/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39 github.com/hashicorp/go-hclog v0.14.1/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-hclog v0.16.2/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-hclog v1.2.2/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= -github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= -github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= +github.com/hashicorp/go-hclog v1.6.2 h1:NOtoftovWkDheyUM/8JW3QMiXyxJK3uHRK7wV04nD2I= +github.com/hashicorp/go-hclog v1.6.2/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-immutable-radix v1.2.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= @@ -1191,8 +1191,8 @@ github.com/hashicorp/hc-install v0.6.3 h1:yE/r1yJvWbtrJ0STwScgEnCanb0U9v7zp0Gbkm github.com/hashicorp/hc-install v0.6.3/go.mod h1:KamGdbodYzlufbWh4r9NRo8y6GLHWZP2GBtdnms1Ln0= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/hashicorp/hcl/v2 v2.19.1 h1://i05Jqznmb2EXqa39Nsvyan2o5XyMowW5fnCKW5RPI= -github.com/hashicorp/hcl/v2 v2.19.1/go.mod h1:ThLC89FV4p9MPW804KVbe/cEXoQ8NZEh+JtMeeGErHE= +github.com/hashicorp/hcl/v2 v2.20.0 h1:l++cRs/5jQOiKVvqXZm/P1ZEfVXJmvLS9WSVxkaeTb4= +github.com/hashicorp/hcl/v2 v2.20.0/go.mod h1:WmcD/Ym72MDOOx5F62Ly+leloeu6H7m0pG7VBiU6pQk= github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93 h1:T1Q6ag9tCwun16AW+XK3tAql24P4uTGUMIn1/92WsQQ= github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93/go.mod h1:n2TSygSNwsLJ76m8qFXTSc7beTb+auJxYdqrnoqwZWE= github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y= @@ -1219,8 +1219,8 @@ github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9T github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow= github.com/hashicorp/terraform-plugin-sdk v1.7.0 h1:B//oq0ZORG+EkVrIJy0uPGSonvmXqxSzXe8+GhknoW0= github.com/hashicorp/terraform-plugin-sdk v1.7.0/go.mod h1:OjgQmey5VxnPej/buEhe+YqKm0KNvV3QqU4hkqHqPCY= -github.com/hashicorp/terraform-plugin-testing v1.5.1 h1:T4aQh9JAhmWo4+t1A7x+rnxAJHCDIYW9kXyo4sVO92c= -github.com/hashicorp/terraform-plugin-testing v1.5.1/go.mod h1:dg8clO6K59rZ8w9EshBmDp1CxTIPu3yA4iaDpX1h5u0= +github.com/hashicorp/terraform-plugin-testing v1.7.0 h1:I6aeCyZ30z4NiI3tzyDoO6fS7YxP5xSL1ceOon3gTe8= +github.com/hashicorp/terraform-plugin-testing v1.7.0/go.mod h1:sbAreCleJNOCz+y5vVHV8EJkIWZKi/t4ndKiUjM9vao= github.com/hashicorp/terraform-registry-address v0.2.3 h1:2TAiKJ1A3MAkZlH1YI/aTVcLZRu7JseiXNRHbOAyoTI= github.com/hashicorp/terraform-registry-address v0.2.3/go.mod h1:lFHA76T8jfQteVfT7caREqguFrW3c4MFSPhZB7HHgUM= github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S52uzrw4x0jKQ= @@ -1858,8 +1858,8 @@ github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2/go.mod h1:hkRG github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= github.com/tchap/go-patricia v2.2.6+incompatible/go.mod h1:bmLyhP68RS6kStMGxByiQ23RP/odRBOTVjwp2cDyi6I= github.com/tedsuo/ifrit v0.0.0-20180802180643-bea94bb476cc/go.mod h1:eyZnKCc955uh98WQvzOm0dgAeLnf2O0Rz0LPoC5ze+0= -github.com/terraform-providers/terraform-provider-random v1.3.2-0.20231204135814-c6e90de46687 h1:4gT3jbJFnnGV2Liq4jziT7C4w/OOM+pkuwBGVDagRgc= -github.com/terraform-providers/terraform-provider-random v1.3.2-0.20231204135814-c6e90de46687/go.mod h1:nH2NdrX91QoiiaPJsTZ9vKoezUq5IgHJ8nijpD6lT5o= +github.com/terraform-providers/terraform-provider-random v1.3.2-0.20240416062540-4613beef4506 h1:UDtzIGrFThcurDH4Sc3nOTvdT6yAzYSWLtFfalgcSNA= +github.com/terraform-providers/terraform-provider-random v1.3.2-0.20240416062540-4613beef4506/go.mod h1:AUpPrvzdbMqTbX2oa/76PrCF9v2N00yRJ4iy4fHDF5g= github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U= github.com/texttheater/golang-levenshtein v1.0.1/go.mod h1:PYAKrbF5sAiq9wd+H82hs7gNaen0CplQ9uvm6+enD/8= github.com/tidwall/gjson v1.17.0 h1:/Jocvlh98kcTfpN2+JzGQWQcqrPQwDrVEMApx/M5ZwM= @@ -1936,8 +1936,8 @@ github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5t github.com/yvasiyarov/go-metrics v0.0.0-20140926110328-57bccd1ccd43/go.mod h1:aX5oPXxHm3bOH+xeAttToC8pqch2ScQN/JoXYupl6xs= github.com/yvasiyarov/gorelic v0.0.0-20141212073537-a9bba5b9ab50/go.mod h1:NUSPSUX/bi6SeDMUh6brw0nXpxHnc96TguQh0+r/ssA= github.com/yvasiyarov/newrelic_platform_go v0.0.0-20140908184405-b21fdbd4370f/go.mod h1:GlGEuHIJweS1mbCqG+7vt2nvWLzLLnRHbXz5JKd/Qbg= -github.com/zclconf/go-cty v1.14.2 h1:kTG7lqmBou0Zkx35r6HJHUQTvaRPr5bIAf3AoHS0izI= -github.com/zclconf/go-cty v1.14.2/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= +github.com/zclconf/go-cty v1.14.3 h1:1JXy1XroaGrzZuG6X9dt7HL6s9AwbY+l4UNL8o5B6ho= +github.com/zclconf/go-cty v1.14.3/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= github.com/zclconf/go-cty-yaml v1.0.1 h1:up11wlgAaDvlAGENcFDnZgkn0qUJurso7k6EpURKNF8= github.com/zclconf/go-cty-yaml v1.0.1/go.mod h1:IP3Ylp0wQpYm50IHK8OZWKMu6sPJIUgKa8XhiVHura0= github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q= @@ -2090,8 +2090,8 @@ golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88/go.mod h1:IxCIyHEi3zRg3s0 golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= -golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA= -golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= +golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= +golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -2417,8 +2417,8 @@ golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= -golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= +golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= @@ -2426,8 +2426,8 @@ golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b/go.mod h1:jbD1KX2456YbFQfuX golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= -golang.org/x/term v0.18.0 h1:FcHjZXDMxI8mM3nwhX9HlKop4C0YQvCVCdwYl2wOtE8= -golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58= +golang.org/x/term v0.19.0 h1:+ThwsDv+tYfnJFhF4L8jITxu1tdTWRTZpdsWgEgjL6Q= +golang.org/x/term v0.19.0/go.mod h1:2CuTdWZ7KHSQwUzKva0cbMg6q2DMI3Mmxp+gKJbskEk= 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= diff --git a/provider/shim/go.mod b/provider/shim/go.mod index 79825b1909..23fed859d4 100644 --- a/provider/shim/go.mod +++ b/provider/shim/go.mod @@ -3,24 +3,24 @@ module github.com/terraform-providers/terraform-provider-random/shim go 1.21 require ( - github.com/hashicorp/terraform-plugin-framework v1.4.2 - github.com/terraform-providers/terraform-provider-random v1.3.2-0.20231204135814-c6e90de46687 + github.com/hashicorp/terraform-plugin-framework v1.7.0 + github.com/terraform-providers/terraform-provider-random v1.3.2-0.20240416062540-4613beef4506 ) require ( github.com/dustinkirkland/golang-petname v0.0.0-20191129215211-8e5a1ed0cff0 // indirect - github.com/fatih/color v1.13.0 // indirect - github.com/hashicorp/go-hclog v1.5.0 // indirect + github.com/fatih/color v1.16.0 // indirect + github.com/hashicorp/go-hclog v1.6.2 // indirect github.com/hashicorp/go-uuid v1.0.3 // indirect github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 // indirect - github.com/hashicorp/terraform-plugin-go v0.19.1 // indirect + github.com/hashicorp/terraform-plugin-go v0.22.1 // indirect github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.16 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect github.com/mitchellh/go-testing-interface v1.14.1 // indirect github.com/stretchr/testify v1.8.1 // indirect github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect - golang.org/x/crypto v0.16.0 // indirect - golang.org/x/sys v0.15.0 // indirect + golang.org/x/crypto v0.22.0 // indirect + golang.org/x/sys v0.19.0 // indirect ) diff --git a/provider/shim/go.sum b/provider/shim/go.sum index 6664bee574..c3e7b183d6 100644 --- a/provider/shim/go.sum +++ b/provider/shim/go.sum @@ -1,18 +1,19 @@ -github.com/ProtonMail/go-crypto v0.0.0-20230717121422-5aa5874ade95 h1:KLq8BE0KwCL+mmXnjLWEAOYO+2l2AE4YMmqG1ZpZHBs= -github.com/ProtonMail/go-crypto v0.0.0-20230717121422-5aa5874ade95/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= +github.com/ProtonMail/go-crypto v1.1.0-alpha.0 h1:nHGfwXmFvJrSR9xu8qL7BkO4DqTHXE9N5vPhgY2I+j0= +github.com/ProtonMail/go-crypto v1.1.0-alpha.0/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE= github.com/agext/levenshtein v1.2.2 h1:0S/Yg6LYmFJ5stwQeRp6EeOcCbj7xiqQSdNelsXvaqE= github.com/agext/levenshtein v1.2.2/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY= github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4= -github.com/cloudflare/circl v1.3.3 h1:fE/Qz0QdIGqeWfnwq0RE0R7MI51s0M2E4Ga9kq5AEMs= -github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA= +github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vcU= +github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBSc8r4zxgA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dustinkirkland/golang-petname v0.0.0-20191129215211-8e5a1ed0cff0 h1:90Ly+6UfUypEF6vvvW5rQIv9opIL8CbmW9FT20LDQoY= github.com/dustinkirkland/golang-petname v0.0.0-20191129215211-8e5a1ed0cff0/go.mod h1:V+Qd57rJe8gd4eiGzZyg4h54VLHmYVVw54iMnlAMrF8= -github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= +github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= +github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= @@ -25,52 +26,53 @@ github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9n github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 h1:1/D3zfFHttUKaCaGKZ/dR2roBXv0vKbSCnssIldfQdI= github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320/go.mod h1:EiZBMaudVLy8fmjf9Npq1dq9RalhveqZG5w/yz3mHWs= -github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= -github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= +github.com/hashicorp/go-hclog v1.6.2 h1:NOtoftovWkDheyUM/8JW3QMiXyxJK3uHRK7wV04nD2I= +github.com/hashicorp/go-hclog v1.6.2/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/hashicorp/go-plugin v1.5.2 h1:aWv8eimFqWlsEiMrYZdPYl+FdHaBJSN4AWwGWfT1G2Y= -github.com/hashicorp/go-plugin v1.5.2/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4= +github.com/hashicorp/go-plugin v1.6.0 h1:wgd4KxHJTVGGqWBq4QPB1i5BZNEx9BR8+OFmHDmTk8A= +github.com/hashicorp/go-plugin v1.6.0/go.mod h1:lBS5MtSSBZk0SHc66KACcjjlU6WzEVP/8pwz68aMkCI= github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/hc-install v0.6.0 h1:fDHnU7JNFNSQebVKYhHZ0va1bC6SrPQ8fpebsvNr2w4= -github.com/hashicorp/hc-install v0.6.0/go.mod h1:10I912u3nntx9Umo1VAeYPUUuehk0aRQJYpMwbX5wQA= -github.com/hashicorp/hcl/v2 v2.18.0 h1:wYnG7Lt31t2zYkcquwgKo6MWXzRUDIeIVU5naZwHLl8= -github.com/hashicorp/hcl/v2 v2.18.0/go.mod h1:ThLC89FV4p9MPW804KVbe/cEXoQ8NZEh+JtMeeGErHE= +github.com/hashicorp/hc-install v0.6.3 h1:yE/r1yJvWbtrJ0STwScgEnCanb0U9v7zp0Gbkmcoxqs= +github.com/hashicorp/hc-install v0.6.3/go.mod h1:KamGdbodYzlufbWh4r9NRo8y6GLHWZP2GBtdnms1Ln0= +github.com/hashicorp/hcl/v2 v2.20.0 h1:l++cRs/5jQOiKVvqXZm/P1ZEfVXJmvLS9WSVxkaeTb4= +github.com/hashicorp/hcl/v2 v2.20.0/go.mod h1:WmcD/Ym72MDOOx5F62Ly+leloeu6H7m0pG7VBiU6pQk= github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/terraform-exec v0.19.0 h1:FpqZ6n50Tk95mItTSS9BjeOVUb4eg81SpgVtZNNtFSM= -github.com/hashicorp/terraform-exec v0.19.0/go.mod h1:tbxUpe3JKruE9Cuf65mycSIT8KiNPZ0FkuTE3H4urQg= -github.com/hashicorp/terraform-json v0.17.1 h1:eMfvh/uWggKmY7Pmb3T85u86E2EQg6EQHgyRwf3RkyA= -github.com/hashicorp/terraform-json v0.17.1/go.mod h1:Huy6zt6euxaY9knPAFKjUITn8QxUFIe9VuSzb4zn/0o= -github.com/hashicorp/terraform-plugin-framework v1.4.2 h1:P7a7VP1GZbjc4rv921Xy5OckzhoiO3ig6SGxwelD2sI= -github.com/hashicorp/terraform-plugin-framework v1.4.2/go.mod h1:GWl3InPFZi2wVQmdVnINPKys09s9mLmTZr95/ngLnbY= +github.com/hashicorp/terraform-exec v0.20.0 h1:DIZnPsqzPGuUnq6cH8jWcPunBfY+C+M8JyYF3vpnuEo= +github.com/hashicorp/terraform-exec v0.20.0/go.mod h1:ckKGkJWbsNqFKV1itgMnE0hY9IYf1HoiekpuN0eWoDw= +github.com/hashicorp/terraform-json v0.21.0 h1:9NQxbLNqPbEMze+S6+YluEdXgJmhQykRyRNd+zTI05U= +github.com/hashicorp/terraform-json v0.21.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2Dq6TyE/28JiU4tIQxk= +github.com/hashicorp/terraform-plugin-framework v1.7.0 h1:wOULbVmfONnJo9iq7/q+iBOBJul5vRovaYJIu2cY/Pw= +github.com/hashicorp/terraform-plugin-framework v1.7.0/go.mod h1:jY9Id+3KbZ17OMpulgnWLSfwxNVYSoYBQFTgsx044CI= github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 h1:HOjBuMbOEzl7snOdOoUfE2Jgeto6JOjLVQ39Ls2nksc= github.com/hashicorp/terraform-plugin-framework-validators v0.12.0/go.mod h1:jfHGE/gzjxYz6XoUwi/aYiiKrJDeutQNUtGQXkaHklg= -github.com/hashicorp/terraform-plugin-go v0.19.1 h1:lf/jTGTeELcz5IIbn/94mJdmnTjRYm6S6ct/JqCSr50= -github.com/hashicorp/terraform-plugin-go v0.19.1/go.mod h1:5NMIS+DXkfacX6o5HCpswda5yjkSYfKzn1Nfl9l+qRs= +github.com/hashicorp/terraform-plugin-go v0.22.1 h1:iTS7WHNVrn7uhe3cojtvWWn83cm2Z6ryIUDTRO0EV7w= +github.com/hashicorp/terraform-plugin-go v0.22.1/go.mod h1:qrjnqRghvQ6KnDbB12XeZ4FluclYwptntoWCr9QaXTI= github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0= github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow= -github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0 h1:wcOKYwPI9IorAJEBLzgclh3xVolO7ZorYd6U1vnok14= -github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0/go.mod h1:qH/34G25Ugdj5FcM95cSoXzUgIbgfhVLXCcEcYaMwq8= -github.com/hashicorp/terraform-plugin-testing v1.5.1 h1:T4aQh9JAhmWo4+t1A7x+rnxAJHCDIYW9kXyo4sVO92c= -github.com/hashicorp/terraform-plugin-testing v1.5.1/go.mod h1:dg8clO6K59rZ8w9EshBmDp1CxTIPu3yA4iaDpX1h5u0= +github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 h1:qHprzXy/As0rxedphECBEQAh3R4yp6pKksKHcqZx5G8= +github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0/go.mod h1:H+8tjs9TjV2w57QFVSMBQacf8k/E1XwLXGCARgViC6A= +github.com/hashicorp/terraform-plugin-testing v1.7.0 h1:I6aeCyZ30z4NiI3tzyDoO6fS7YxP5xSL1ceOon3gTe8= +github.com/hashicorp/terraform-plugin-testing v1.7.0/go.mod h1:sbAreCleJNOCz+y5vVHV8EJkIWZKi/t4ndKiUjM9vao= github.com/hashicorp/terraform-registry-address v0.2.3 h1:2TAiKJ1A3MAkZlH1YI/aTVcLZRu7JseiXNRHbOAyoTI= github.com/hashicorp/terraform-registry-address v0.2.3/go.mod h1:lFHA76T8jfQteVfT7caREqguFrW3c4MFSPhZB7HHgUM= github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S52uzrw4x0jKQ= github.com/hashicorp/terraform-svchost v0.1.1/go.mod h1:mNsjQfZyf/Jhz35v6/0LWcv26+X7JPS+buii2c9/ctc= -github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 h1:xixZ2bWeofWV68J+x6AzmKuVM/JWCQwkWm6GW/MUR6I= -github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= +github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE= +github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/mattn/go-isatty v0.0.16 h1:bq3VjFmv/sOjHtdEhmkEV4x1AJtvUvOJ2PFAZ5+peKQ= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= +github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= +github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= @@ -93,42 +95,43 @@ github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1F github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/terraform-providers/terraform-provider-random v1.3.2-0.20231204135814-c6e90de46687 h1:4gT3jbJFnnGV2Liq4jziT7C4w/OOM+pkuwBGVDagRgc= -github.com/terraform-providers/terraform-provider-random v1.3.2-0.20231204135814-c6e90de46687/go.mod h1:nH2NdrX91QoiiaPJsTZ9vKoezUq5IgHJ8nijpD6lT5o= +github.com/terraform-providers/terraform-provider-random v1.3.2-0.20240416062540-4613beef4506 h1:UDtzIGrFThcurDH4Sc3nOTvdT6yAzYSWLtFfalgcSNA= +github.com/terraform-providers/terraform-provider-random v1.3.2-0.20240416062540-4613beef4506/go.mod h1:AUpPrvzdbMqTbX2oa/76PrCF9v2N00yRJ4iy4fHDF5g= github.com/vmihailenco/msgpack v4.0.4+incompatible h1:dSLoQfGFAo3F6OoNhwUmLwVgaUXK79GlxNBwueZn0xI= github.com/vmihailenco/msgpack v4.0.4+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= github.com/vmihailenco/msgpack/v5 v5.4.1 h1:cQriyiUvjTwOHg8QZaPihLWeRAAVoCpE00IUPn0Bjt8= github.com/vmihailenco/msgpack/v5 v5.4.1/go.mod h1:GaZTsDaehaPpQVyxrf5mtQlH+pc21PIudVV/E3rRQok= github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g= github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= -github.com/zclconf/go-cty v1.14.0 h1:/Xrd39K7DXbHzlisFP9c4pHao4yyf+/Ug9LEz+Y/yhc= -github.com/zclconf/go-cty v1.14.0/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= -golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= -golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= -golang.org/x/exp v0.0.0-20230809150735-7b3493d9a819 h1:EDuYyU/MkFXllv9QF9819VlI9a4tzGuCbhG0ExK9o1U= -golang.org/x/exp v0.0.0-20230809150735-7b3493d9a819/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc= -golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc= -golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= -golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= +github.com/zclconf/go-cty v1.14.3 h1:1JXy1XroaGrzZuG6X9dt7HL6s9AwbY+l4UNL8o5B6ho= +github.com/zclconf/go-cty v1.14.3/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= +golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= +golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= +golang.org/x/mod v0.15.0 h1:SernR4v+D55NyBH2QiEQrlBAnj1ECL6AGrA5+dPaMY8= +golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4= +golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= -golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= +golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= -google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d h1:uvYuEyMHKNt+lT4K3bN6fGswmK8qSvcreM3BwjDh+y4= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d/go.mod h1:+Bk1OCOj40wS2hwAMA+aCW9ypzm63QTBBHp6lQ3p+9M= -google.golang.org/grpc v1.59.0 h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk= -google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= -google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= -google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +golang.org/x/tools v0.13.0 h1:Iey4qkscZuv0VvIt8E0neZjtPVQFSc870HQ448QgEmQ= +golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= +google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= +google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 h1:AjyfHzEPEFp/NpvfN5g+KDla3EMojjhRVZc1i7cj+oM= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80/go.mod h1:PAREbraiVEVGVdTZsVWjSbbTtSyGbAgIIvni8a8CD5s= +google.golang.org/grpc v1.62.1 h1:B4n+nfKzOICUXMgyrNd19h/I9oH0L1pizfk1d4zSgTk= +google.golang.org/grpc v1.62.1/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= +google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= +google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= From 320d8d4d62ad93a10fa008c8bcbdb93884d135d8 Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Wed, 17 Apr 2024 03:08:27 +0000 Subject: [PATCH 2/2] make build_sdks --- sdk/dotnet/RandomBytes.cs | 6 ++-- sdk/dotnet/RandomPassword.cs | 12 ++++---- sdk/dotnet/RandomShuffle.cs | 6 ++-- sdk/dotnet/RandomString.cs | 12 ++++---- sdk/go/random/randomBytes.go | 10 ++++--- sdk/go/random/randomPassword.go | 24 ++++++++-------- sdk/go/random/randomShuffle.go | 12 +++++--- sdk/go/random/randomString.go | 24 ++++++++-------- .../java/com/pulumi/random/RandomBytes.java | 6 ++-- .../com/pulumi/random/RandomPassword.java | 8 +++--- .../com/pulumi/random/RandomPasswordArgs.java | 16 +++++------ .../java/com/pulumi/random/RandomShuffle.java | 6 ++-- .../java/com/pulumi/random/RandomString.java | 8 +++--- .../com/pulumi/random/RandomStringArgs.java | 16 +++++------ .../random/inputs/RandomBytesState.java | 8 +++--- .../random/inputs/RandomPasswordState.java | 16 +++++------ .../random/inputs/RandomShuffleState.java | 15 ++++++---- .../random/inputs/RandomStringState.java | 16 +++++------ sdk/nodejs/randomBytes.ts | 6 ++-- sdk/nodejs/randomPassword.ts | 12 ++++---- sdk/nodejs/randomShuffle.ts | 6 ++-- sdk/nodejs/randomString.ts | 12 ++++---- sdk/python/pulumi_random/random_bytes.py | 12 +++++--- sdk/python/pulumi_random/random_password.py | 28 +++++++++---------- sdk/python/pulumi_random/random_shuffle.py | 12 +++++--- sdk/python/pulumi_random/random_string.py | 28 +++++++++---------- 26 files changed, 184 insertions(+), 153 deletions(-) diff --git a/sdk/dotnet/RandomBytes.cs b/sdk/dotnet/RandomBytes.cs index 6d341c02db..486fa631ae 100644 --- a/sdk/dotnet/RandomBytes.cs +++ b/sdk/dotnet/RandomBytes.cs @@ -12,6 +12,8 @@ namespace Pulumi.Random /// /// The resource `random.RandomBytes` generates random bytes that are intended to be used as a secret, or key. Use this in preference to `random.RandomId` when the output is considered sensitive, and should not be displayed in the CLI. /// + /// This resource *does* use a cryptographic random number generator. + /// /// ## Example Usage /// /// <!--Start PulumiCodeChooser --> @@ -57,7 +59,7 @@ public partial class RandomBytes : global::Pulumi.CustomResource public Output Base64 { get; private set; } = null!; /// - /// The generated bytes presented in hex string format. + /// The generated bytes presented in lowercase hexadecimal string format. The length of the encoded string is exactly twice the `length` parameter. /// [Output("hex")] public Output Hex { get; private set; } = null!; @@ -171,7 +173,7 @@ public Input? Base64 private Input? _hex; /// - /// The generated bytes presented in hex string format. + /// The generated bytes presented in lowercase hexadecimal string format. The length of the encoded string is exactly twice the `length` parameter. /// public Input? Hex { diff --git a/sdk/dotnet/RandomPassword.cs b/sdk/dotnet/RandomPassword.cs index fbb760d547..21fdf730a8 100644 --- a/sdk/dotnet/RandomPassword.cs +++ b/sdk/dotnet/RandomPassword.cs @@ -102,13 +102,13 @@ public partial class RandomPassword : global::Pulumi.CustomResource public Output MinUpper { get; private set; } = null!; /// - /// Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + /// Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. /// [Output("number")] public Output Number { get; private set; } = null!; /// - /// Include numeric characters in the result. Default value is `true`. + /// Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. /// [Output("numeric")] public Output Numeric { get; private set; } = null!; @@ -237,13 +237,13 @@ public InputMap Keepers public Input? MinUpper { get; set; } /// - /// Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + /// Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. /// [Input("number")] public Input? Number { get; set; } /// - /// Include numeric characters in the result. Default value is `true`. + /// Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. /// [Input("numeric")] public Input? Numeric { get; set; } @@ -339,13 +339,13 @@ public InputMap Keepers public Input? MinUpper { get; set; } /// - /// Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + /// Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. /// [Input("number")] public Input? Number { get; set; } /// - /// Include numeric characters in the result. Default value is `true`. + /// Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. /// [Input("numeric")] public Input? Numeric { get; set; } diff --git a/sdk/dotnet/RandomShuffle.cs b/sdk/dotnet/RandomShuffle.cs index 150cdf9503..2edd79f95b 100644 --- a/sdk/dotnet/RandomShuffle.cs +++ b/sdk/dotnet/RandomShuffle.cs @@ -68,7 +68,8 @@ public partial class RandomShuffle : global::Pulumi.CustomResource public Output ResultCount { get; private set; } = null!; /// - /// Random permutation of the list of strings given in `input`. + /// Random permutation of the list of strings given in `input`. The number of elements is determined by `result_count` if + /// set, or the number of elements in `input`. /// [Output("results")] public Output> Results { get; private set; } = null!; @@ -203,7 +204,8 @@ public InputMap Keepers private InputList? _results; /// - /// Random permutation of the list of strings given in `input`. + /// Random permutation of the list of strings given in `input`. The number of elements is determined by `result_count` if + /// set, or the number of elements in `input`. /// public InputList Results { diff --git a/sdk/dotnet/RandomString.cs b/sdk/dotnet/RandomString.cs index 6cf4d50a3e..90b17fbdd5 100644 --- a/sdk/dotnet/RandomString.cs +++ b/sdk/dotnet/RandomString.cs @@ -88,13 +88,13 @@ public partial class RandomString : global::Pulumi.CustomResource public Output MinUpper { get; private set; } = null!; /// - /// Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + /// Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. /// [Output("number")] public Output Number { get; private set; } = null!; /// - /// Include numeric characters in the result. Default value is `true`. + /// Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. /// [Output("numeric")] public Output Numeric { get; private set; } = null!; @@ -218,13 +218,13 @@ public InputMap Keepers public Input? MinUpper { get; set; } /// - /// Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + /// Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. /// [Input("number")] public Input? Number { get; set; } /// - /// Include numeric characters in the result. Default value is `true`. + /// Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. /// [Input("numeric")] public Input? Numeric { get; set; } @@ -304,13 +304,13 @@ public InputMap Keepers public Input? MinUpper { get; set; } /// - /// Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + /// Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. /// [Input("number")] public Input? Number { get; set; } /// - /// Include numeric characters in the result. Default value is `true`. + /// Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. /// [Input("numeric")] public Input? Numeric { get; set; } diff --git a/sdk/go/random/randomBytes.go b/sdk/go/random/randomBytes.go index bb26fc34d2..3840a6b807 100644 --- a/sdk/go/random/randomBytes.go +++ b/sdk/go/random/randomBytes.go @@ -14,6 +14,8 @@ import ( // The resource `RandomBytes` generates random bytes that are intended to be used as a secret, or key. Use this in preference to `RandomId` when the output is considered sensitive, and should not be displayed in the CLI. // +// This resource *does* use a cryptographic random number generator. +// // ## Example Usage // // @@ -62,7 +64,7 @@ type RandomBytes struct { // The generated bytes presented in base64 string format. Base64 pulumi.StringOutput `pulumi:"base64"` - // The generated bytes presented in hex string format. + // The generated bytes presented in lowercase hexadecimal string format. The length of the encoded string is exactly twice the `length` parameter. Hex pulumi.StringOutput `pulumi:"hex"` // Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information. Keepers pulumi.StringMapOutput `pulumi:"keepers"` @@ -110,7 +112,7 @@ func GetRandomBytes(ctx *pulumi.Context, type randomBytesState struct { // The generated bytes presented in base64 string format. Base64 *string `pulumi:"base64"` - // The generated bytes presented in hex string format. + // The generated bytes presented in lowercase hexadecimal string format. The length of the encoded string is exactly twice the `length` parameter. Hex *string `pulumi:"hex"` // Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information. Keepers map[string]string `pulumi:"keepers"` @@ -121,7 +123,7 @@ type randomBytesState struct { type RandomBytesState struct { // The generated bytes presented in base64 string format. Base64 pulumi.StringPtrInput - // The generated bytes presented in hex string format. + // The generated bytes presented in lowercase hexadecimal string format. The length of the encoded string is exactly twice the `length` parameter. Hex pulumi.StringPtrInput // Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information. Keepers pulumi.StringMapInput @@ -240,7 +242,7 @@ func (o RandomBytesOutput) Base64() pulumi.StringOutput { return o.ApplyT(func(v *RandomBytes) pulumi.StringOutput { return v.Base64 }).(pulumi.StringOutput) } -// The generated bytes presented in hex string format. +// The generated bytes presented in lowercase hexadecimal string format. The length of the encoded string is exactly twice the `length` parameter. func (o RandomBytesOutput) Hex() pulumi.StringOutput { return o.ApplyT(func(v *RandomBytes) pulumi.StringOutput { return v.Hex }).(pulumi.StringOutput) } diff --git a/sdk/go/random/randomPassword.go b/sdk/go/random/randomPassword.go index 0c73acb07f..fd05ccde9a 100644 --- a/sdk/go/random/randomPassword.go +++ b/sdk/go/random/randomPassword.go @@ -79,11 +79,11 @@ type RandomPassword struct { MinSpecial pulumi.IntOutput `pulumi:"minSpecial"` // Minimum number of uppercase alphabet characters in the result. Default value is `0`. MinUpper pulumi.IntOutput `pulumi:"minUpper"` - // Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + // Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. // // Deprecated: **NOTE**: This is deprecated, use `numeric` instead. Number pulumi.BoolOutput `pulumi:"number"` - // Include numeric characters in the result. Default value is `true`. + // Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. Numeric pulumi.BoolOutput `pulumi:"numeric"` // Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation. OverrideSpecial pulumi.StringPtrOutput `pulumi:"overrideSpecial"` @@ -149,11 +149,11 @@ type randomPasswordState struct { MinSpecial *int `pulumi:"minSpecial"` // Minimum number of uppercase alphabet characters in the result. Default value is `0`. MinUpper *int `pulumi:"minUpper"` - // Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + // Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. // // Deprecated: **NOTE**: This is deprecated, use `numeric` instead. Number *bool `pulumi:"number"` - // Include numeric characters in the result. Default value is `true`. + // Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. Numeric *bool `pulumi:"numeric"` // Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation. OverrideSpecial *string `pulumi:"overrideSpecial"` @@ -182,11 +182,11 @@ type RandomPasswordState struct { MinSpecial pulumi.IntPtrInput // Minimum number of uppercase alphabet characters in the result. Default value is `0`. MinUpper pulumi.IntPtrInput - // Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + // Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. // // Deprecated: **NOTE**: This is deprecated, use `numeric` instead. Number pulumi.BoolPtrInput - // Include numeric characters in the result. Default value is `true`. + // Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. Numeric pulumi.BoolPtrInput // Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation. OverrideSpecial pulumi.StringPtrInput @@ -217,11 +217,11 @@ type randomPasswordArgs struct { MinSpecial *int `pulumi:"minSpecial"` // Minimum number of uppercase alphabet characters in the result. Default value is `0`. MinUpper *int `pulumi:"minUpper"` - // Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + // Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. // // Deprecated: **NOTE**: This is deprecated, use `numeric` instead. Number *bool `pulumi:"number"` - // Include numeric characters in the result. Default value is `true`. + // Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. Numeric *bool `pulumi:"numeric"` // Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation. OverrideSpecial *string `pulumi:"overrideSpecial"` @@ -247,11 +247,11 @@ type RandomPasswordArgs struct { MinSpecial pulumi.IntPtrInput // Minimum number of uppercase alphabet characters in the result. Default value is `0`. MinUpper pulumi.IntPtrInput - // Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + // Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. // // Deprecated: **NOTE**: This is deprecated, use `numeric` instead. Number pulumi.BoolPtrInput - // Include numeric characters in the result. Default value is `true`. + // Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. Numeric pulumi.BoolPtrInput // Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation. OverrideSpecial pulumi.StringPtrInput @@ -388,14 +388,14 @@ func (o RandomPasswordOutput) MinUpper() pulumi.IntOutput { return o.ApplyT(func(v *RandomPassword) pulumi.IntOutput { return v.MinUpper }).(pulumi.IntOutput) } -// Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. +// Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. // // Deprecated: **NOTE**: This is deprecated, use `numeric` instead. func (o RandomPasswordOutput) Number() pulumi.BoolOutput { return o.ApplyT(func(v *RandomPassword) pulumi.BoolOutput { return v.Number }).(pulumi.BoolOutput) } -// Include numeric characters in the result. Default value is `true`. +// Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. func (o RandomPasswordOutput) Numeric() pulumi.BoolOutput { return o.ApplyT(func(v *RandomPassword) pulumi.BoolOutput { return v.Numeric }).(pulumi.BoolOutput) } diff --git a/sdk/go/random/randomShuffle.go b/sdk/go/random/randomShuffle.go index 80991a75f1..e7867aca39 100644 --- a/sdk/go/random/randomShuffle.go +++ b/sdk/go/random/randomShuffle.go @@ -63,7 +63,8 @@ type RandomShuffle struct { Keepers pulumi.StringMapOutput `pulumi:"keepers"` // The number of results to return. Defaults to the number of items in the `input` list. If fewer items are requested, some elements will be excluded from the result. If more items are requested, items will be repeated in the result but not more frequently than the number of items in the input list. ResultCount pulumi.IntPtrOutput `pulumi:"resultCount"` - // Random permutation of the list of strings given in `input`. + // Random permutation of the list of strings given in `input`. The number of elements is determined by `result_count` if + // set, or the number of elements in `input`. Results pulumi.StringArrayOutput `pulumi:"results"` // Arbitrary string with which to seed the random number generator, in order to produce less-volatile permutations of the list. Seed pulumi.StringPtrOutput `pulumi:"seed"` @@ -108,7 +109,8 @@ type randomShuffleState struct { Keepers map[string]string `pulumi:"keepers"` // The number of results to return. Defaults to the number of items in the `input` list. If fewer items are requested, some elements will be excluded from the result. If more items are requested, items will be repeated in the result but not more frequently than the number of items in the input list. ResultCount *int `pulumi:"resultCount"` - // Random permutation of the list of strings given in `input`. + // Random permutation of the list of strings given in `input`. The number of elements is determined by `result_count` if + // set, or the number of elements in `input`. Results []string `pulumi:"results"` // Arbitrary string with which to seed the random number generator, in order to produce less-volatile permutations of the list. Seed *string `pulumi:"seed"` @@ -121,7 +123,8 @@ type RandomShuffleState struct { Keepers pulumi.StringMapInput // The number of results to return. Defaults to the number of items in the `input` list. If fewer items are requested, some elements will be excluded from the result. If more items are requested, items will be repeated in the result but not more frequently than the number of items in the input list. ResultCount pulumi.IntPtrInput - // Random permutation of the list of strings given in `input`. + // Random permutation of the list of strings given in `input`. The number of elements is determined by `result_count` if + // set, or the number of elements in `input`. Results pulumi.StringArrayInput // Arbitrary string with which to seed the random number generator, in order to produce less-volatile permutations of the list. Seed pulumi.StringPtrInput @@ -256,7 +259,8 @@ func (o RandomShuffleOutput) ResultCount() pulumi.IntPtrOutput { return o.ApplyT(func(v *RandomShuffle) pulumi.IntPtrOutput { return v.ResultCount }).(pulumi.IntPtrOutput) } -// Random permutation of the list of strings given in `input`. +// Random permutation of the list of strings given in `input`. The number of elements is determined by `result_count` if +// set, or the number of elements in `input`. func (o RandomShuffleOutput) Results() pulumi.StringArrayOutput { return o.ApplyT(func(v *RandomShuffle) pulumi.StringArrayOutput { return v.Results }).(pulumi.StringArrayOutput) } diff --git a/sdk/go/random/randomString.go b/sdk/go/random/randomString.go index 9c4a022a6f..3ab5f834e5 100644 --- a/sdk/go/random/randomString.go +++ b/sdk/go/random/randomString.go @@ -68,11 +68,11 @@ type RandomString struct { MinSpecial pulumi.IntOutput `pulumi:"minSpecial"` // Minimum number of uppercase alphabet characters in the result. Default value is `0`. MinUpper pulumi.IntOutput `pulumi:"minUpper"` - // Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + // Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. // // Deprecated: **NOTE**: This is deprecated, use `numeric` instead. Number pulumi.BoolOutput `pulumi:"number"` - // Include numeric characters in the result. Default value is `true`. + // Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. Numeric pulumi.BoolOutput `pulumi:"numeric"` // Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation. OverrideSpecial pulumi.StringPtrOutput `pulumi:"overrideSpecial"` @@ -131,11 +131,11 @@ type randomStringState struct { MinSpecial *int `pulumi:"minSpecial"` // Minimum number of uppercase alphabet characters in the result. Default value is `0`. MinUpper *int `pulumi:"minUpper"` - // Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + // Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. // // Deprecated: **NOTE**: This is deprecated, use `numeric` instead. Number *bool `pulumi:"number"` - // Include numeric characters in the result. Default value is `true`. + // Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. Numeric *bool `pulumi:"numeric"` // Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation. OverrideSpecial *string `pulumi:"overrideSpecial"` @@ -162,11 +162,11 @@ type RandomStringState struct { MinSpecial pulumi.IntPtrInput // Minimum number of uppercase alphabet characters in the result. Default value is `0`. MinUpper pulumi.IntPtrInput - // Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + // Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. // // Deprecated: **NOTE**: This is deprecated, use `numeric` instead. Number pulumi.BoolPtrInput - // Include numeric characters in the result. Default value is `true`. + // Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. Numeric pulumi.BoolPtrInput // Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation. OverrideSpecial pulumi.StringPtrInput @@ -197,11 +197,11 @@ type randomStringArgs struct { MinSpecial *int `pulumi:"minSpecial"` // Minimum number of uppercase alphabet characters in the result. Default value is `0`. MinUpper *int `pulumi:"minUpper"` - // Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + // Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. // // Deprecated: **NOTE**: This is deprecated, use `numeric` instead. Number *bool `pulumi:"number"` - // Include numeric characters in the result. Default value is `true`. + // Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. Numeric *bool `pulumi:"numeric"` // Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation. OverrideSpecial *string `pulumi:"overrideSpecial"` @@ -227,11 +227,11 @@ type RandomStringArgs struct { MinSpecial pulumi.IntPtrInput // Minimum number of uppercase alphabet characters in the result. Default value is `0`. MinUpper pulumi.IntPtrInput - // Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + // Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. // // Deprecated: **NOTE**: This is deprecated, use `numeric` instead. Number pulumi.BoolPtrInput - // Include numeric characters in the result. Default value is `true`. + // Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. Numeric pulumi.BoolPtrInput // Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation. OverrideSpecial pulumi.StringPtrInput @@ -363,14 +363,14 @@ func (o RandomStringOutput) MinUpper() pulumi.IntOutput { return o.ApplyT(func(v *RandomString) pulumi.IntOutput { return v.MinUpper }).(pulumi.IntOutput) } -// Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. +// Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. // // Deprecated: **NOTE**: This is deprecated, use `numeric` instead. func (o RandomStringOutput) Number() pulumi.BoolOutput { return o.ApplyT(func(v *RandomString) pulumi.BoolOutput { return v.Number }).(pulumi.BoolOutput) } -// Include numeric characters in the result. Default value is `true`. +// Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. func (o RandomStringOutput) Numeric() pulumi.BoolOutput { return o.ApplyT(func(v *RandomString) pulumi.BoolOutput { return v.Numeric }).(pulumi.BoolOutput) } diff --git a/sdk/java/src/main/java/com/pulumi/random/RandomBytes.java b/sdk/java/src/main/java/com/pulumi/random/RandomBytes.java index f6a1c6cb1f..015ca724f7 100644 --- a/sdk/java/src/main/java/com/pulumi/random/RandomBytes.java +++ b/sdk/java/src/main/java/com/pulumi/random/RandomBytes.java @@ -20,6 +20,8 @@ /** * The resource `random.RandomBytes` generates random bytes that are intended to be used as a secret, or key. Use this in preference to `random.RandomId` when the output is considered sensitive, and should not be displayed in the CLI. * + * This resource *does* use a cryptographic random number generator. + * * ## Example Usage * * <!--Start PulumiCodeChooser --> @@ -86,14 +88,14 @@ public Output base64() { return this.base64; } /** - * The generated bytes presented in hex string format. + * The generated bytes presented in lowercase hexadecimal string format. The length of the encoded string is exactly twice the `length` parameter. * */ @Export(name="hex", refs={String.class}, tree="[0]") private Output hex; /** - * @return The generated bytes presented in hex string format. + * @return The generated bytes presented in lowercase hexadecimal string format. The length of the encoded string is exactly twice the `length` parameter. * */ public Output hex() { diff --git a/sdk/java/src/main/java/com/pulumi/random/RandomPassword.java b/sdk/java/src/main/java/com/pulumi/random/RandomPassword.java index 99300b826e..df31550d1c 100644 --- a/sdk/java/src/main/java/com/pulumi/random/RandomPassword.java +++ b/sdk/java/src/main/java/com/pulumi/random/RandomPassword.java @@ -188,7 +188,7 @@ public Output minUpper() { return this.minUpper; } /** - * Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @deprecated * **NOTE**: This is deprecated, use `numeric` instead. @@ -199,21 +199,21 @@ public Output minUpper() { private Output number; /** - * @return Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * @return Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * */ public Output number() { return this.number; } /** - * Include numeric characters in the result. Default value is `true`. + * Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. * */ @Export(name="numeric", refs={Boolean.class}, tree="[0]") private Output numeric; /** - * @return Include numeric characters in the result. Default value is `true`. + * @return Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. * */ public Output numeric() { diff --git a/sdk/java/src/main/java/com/pulumi/random/RandomPasswordArgs.java b/sdk/java/src/main/java/com/pulumi/random/RandomPasswordArgs.java index c43ccfae22..e6a9ba6cc8 100644 --- a/sdk/java/src/main/java/com/pulumi/random/RandomPasswordArgs.java +++ b/sdk/java/src/main/java/com/pulumi/random/RandomPasswordArgs.java @@ -125,7 +125,7 @@ public Optional> minUpper() { } /** - * Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @deprecated * **NOTE**: This is deprecated, use `numeric` instead. @@ -136,7 +136,7 @@ public Optional> minUpper() { private @Nullable Output number; /** - * @return Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * @return Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @deprecated * **NOTE**: This is deprecated, use `numeric` instead. @@ -148,14 +148,14 @@ public Optional> number() { } /** - * Include numeric characters in the result. Default value is `true`. + * Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. * */ @Import(name="numeric") private @Nullable Output numeric; /** - * @return Include numeric characters in the result. Default value is `true`. + * @return Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. * */ public Optional> numeric() { @@ -390,7 +390,7 @@ public Builder minUpper(Integer minUpper) { } /** - * @param number Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * @param number Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @return builder * @@ -405,7 +405,7 @@ public Builder number(@Nullable Output number) { } /** - * @param number Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * @param number Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @return builder * @@ -419,7 +419,7 @@ public Builder number(Boolean number) { } /** - * @param numeric Include numeric characters in the result. Default value is `true`. + * @param numeric Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. * * @return builder * @@ -430,7 +430,7 @@ public Builder numeric(@Nullable Output numeric) { } /** - * @param numeric Include numeric characters in the result. Default value is `true`. + * @param numeric Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/random/RandomShuffle.java b/sdk/java/src/main/java/com/pulumi/random/RandomShuffle.java index 31e95ac37e..755cf05798 100644 --- a/sdk/java/src/main/java/com/pulumi/random/RandomShuffle.java +++ b/sdk/java/src/main/java/com/pulumi/random/RandomShuffle.java @@ -111,14 +111,16 @@ public Output> resultCount() { return Codegen.optional(this.resultCount); } /** - * Random permutation of the list of strings given in `input`. + * Random permutation of the list of strings given in `input`. The number of elements is determined by `result_count` if + * set, or the number of elements in `input`. * */ @Export(name="results", refs={List.class,String.class}, tree="[0,1]") private Output> results; /** - * @return Random permutation of the list of strings given in `input`. + * @return Random permutation of the list of strings given in `input`. The number of elements is determined by `result_count` if + * set, or the number of elements in `input`. * */ public Output> results() { diff --git a/sdk/java/src/main/java/com/pulumi/random/RandomString.java b/sdk/java/src/main/java/com/pulumi/random/RandomString.java index f5738dc809..d6b22a15b6 100644 --- a/sdk/java/src/main/java/com/pulumi/random/RandomString.java +++ b/sdk/java/src/main/java/com/pulumi/random/RandomString.java @@ -165,7 +165,7 @@ public Output minUpper() { return this.minUpper; } /** - * Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @deprecated * **NOTE**: This is deprecated, use `numeric` instead. @@ -176,21 +176,21 @@ public Output minUpper() { private Output number; /** - * @return Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * @return Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * */ public Output number() { return this.number; } /** - * Include numeric characters in the result. Default value is `true`. + * Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. * */ @Export(name="numeric", refs={Boolean.class}, tree="[0]") private Output numeric; /** - * @return Include numeric characters in the result. Default value is `true`. + * @return Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. * */ public Output numeric() { diff --git a/sdk/java/src/main/java/com/pulumi/random/RandomStringArgs.java b/sdk/java/src/main/java/com/pulumi/random/RandomStringArgs.java index dfefb8d9c0..cfa2cc9edb 100644 --- a/sdk/java/src/main/java/com/pulumi/random/RandomStringArgs.java +++ b/sdk/java/src/main/java/com/pulumi/random/RandomStringArgs.java @@ -125,7 +125,7 @@ public Optional> minUpper() { } /** - * Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @deprecated * **NOTE**: This is deprecated, use `numeric` instead. @@ -136,7 +136,7 @@ public Optional> minUpper() { private @Nullable Output number; /** - * @return Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * @return Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @deprecated * **NOTE**: This is deprecated, use `numeric` instead. @@ -148,14 +148,14 @@ public Optional> number() { } /** - * Include numeric characters in the result. Default value is `true`. + * Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. * */ @Import(name="numeric") private @Nullable Output numeric; /** - * @return Include numeric characters in the result. Default value is `true`. + * @return Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. * */ public Optional> numeric() { @@ -390,7 +390,7 @@ public Builder minUpper(Integer minUpper) { } /** - * @param number Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * @param number Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @return builder * @@ -405,7 +405,7 @@ public Builder number(@Nullable Output number) { } /** - * @param number Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * @param number Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @return builder * @@ -419,7 +419,7 @@ public Builder number(Boolean number) { } /** - * @param numeric Include numeric characters in the result. Default value is `true`. + * @param numeric Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. * * @return builder * @@ -430,7 +430,7 @@ public Builder numeric(@Nullable Output numeric) { } /** - * @param numeric Include numeric characters in the result. Default value is `true`. + * @param numeric Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/random/inputs/RandomBytesState.java b/sdk/java/src/main/java/com/pulumi/random/inputs/RandomBytesState.java index af4e684437..3523922bdd 100644 --- a/sdk/java/src/main/java/com/pulumi/random/inputs/RandomBytesState.java +++ b/sdk/java/src/main/java/com/pulumi/random/inputs/RandomBytesState.java @@ -33,14 +33,14 @@ public Optional> base64() { } /** - * The generated bytes presented in hex string format. + * The generated bytes presented in lowercase hexadecimal string format. The length of the encoded string is exactly twice the `length` parameter. * */ @Import(name="hex") private @Nullable Output hex; /** - * @return The generated bytes presented in hex string format. + * @return The generated bytes presented in lowercase hexadecimal string format. The length of the encoded string is exactly twice the `length` parameter. * */ public Optional> hex() { @@ -126,7 +126,7 @@ public Builder base64(String base64) { } /** - * @param hex The generated bytes presented in hex string format. + * @param hex The generated bytes presented in lowercase hexadecimal string format. The length of the encoded string is exactly twice the `length` parameter. * * @return builder * @@ -137,7 +137,7 @@ public Builder hex(@Nullable Output hex) { } /** - * @param hex The generated bytes presented in hex string format. + * @param hex The generated bytes presented in lowercase hexadecimal string format. The length of the encoded string is exactly twice the `length` parameter. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/random/inputs/RandomPasswordState.java b/sdk/java/src/main/java/com/pulumi/random/inputs/RandomPasswordState.java index e5b331c3e1..a20e6d8f8d 100644 --- a/sdk/java/src/main/java/com/pulumi/random/inputs/RandomPasswordState.java +++ b/sdk/java/src/main/java/com/pulumi/random/inputs/RandomPasswordState.java @@ -139,7 +139,7 @@ public Optional> minUpper() { } /** - * Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @deprecated * **NOTE**: This is deprecated, use `numeric` instead. @@ -150,7 +150,7 @@ public Optional> minUpper() { private @Nullable Output number; /** - * @return Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * @return Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @deprecated * **NOTE**: This is deprecated, use `numeric` instead. @@ -162,14 +162,14 @@ public Optional> number() { } /** - * Include numeric characters in the result. Default value is `true`. + * Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. * */ @Import(name="numeric") private @Nullable Output numeric; /** - * @return Include numeric characters in the result. Default value is `true`. + * @return Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. * */ public Optional> numeric() { @@ -442,7 +442,7 @@ public Builder minUpper(Integer minUpper) { } /** - * @param number Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * @param number Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @return builder * @@ -457,7 +457,7 @@ public Builder number(@Nullable Output number) { } /** - * @param number Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * @param number Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @return builder * @@ -471,7 +471,7 @@ public Builder number(Boolean number) { } /** - * @param numeric Include numeric characters in the result. Default value is `true`. + * @param numeric Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. * * @return builder * @@ -482,7 +482,7 @@ public Builder numeric(@Nullable Output numeric) { } /** - * @param numeric Include numeric characters in the result. Default value is `true`. + * @param numeric Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/random/inputs/RandomShuffleState.java b/sdk/java/src/main/java/com/pulumi/random/inputs/RandomShuffleState.java index 28e6972893..89cbb419ff 100644 --- a/sdk/java/src/main/java/com/pulumi/random/inputs/RandomShuffleState.java +++ b/sdk/java/src/main/java/com/pulumi/random/inputs/RandomShuffleState.java @@ -64,14 +64,16 @@ public Optional> resultCount() { } /** - * Random permutation of the list of strings given in `input`. + * Random permutation of the list of strings given in `input`. The number of elements is determined by `result_count` if + * set, or the number of elements in `input`. * */ @Import(name="results") private @Nullable Output> results; /** - * @return Random permutation of the list of strings given in `input`. + * @return Random permutation of the list of strings given in `input`. The number of elements is determined by `result_count` if + * set, or the number of elements in `input`. * */ public Optional>> results() { @@ -195,7 +197,8 @@ public Builder resultCount(Integer resultCount) { } /** - * @param results Random permutation of the list of strings given in `input`. + * @param results Random permutation of the list of strings given in `input`. The number of elements is determined by `result_count` if + * set, or the number of elements in `input`. * * @return builder * @@ -206,7 +209,8 @@ public Builder results(@Nullable Output> results) { } /** - * @param results Random permutation of the list of strings given in `input`. + * @param results Random permutation of the list of strings given in `input`. The number of elements is determined by `result_count` if + * set, or the number of elements in `input`. * * @return builder * @@ -216,7 +220,8 @@ public Builder results(List results) { } /** - * @param results Random permutation of the list of strings given in `input`. + * @param results Random permutation of the list of strings given in `input`. The number of elements is determined by `result_count` if + * set, or the number of elements in `input`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/random/inputs/RandomStringState.java b/sdk/java/src/main/java/com/pulumi/random/inputs/RandomStringState.java index d6ccb8b501..1ee87b1693 100644 --- a/sdk/java/src/main/java/com/pulumi/random/inputs/RandomStringState.java +++ b/sdk/java/src/main/java/com/pulumi/random/inputs/RandomStringState.java @@ -124,7 +124,7 @@ public Optional> minUpper() { } /** - * Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @deprecated * **NOTE**: This is deprecated, use `numeric` instead. @@ -135,7 +135,7 @@ public Optional> minUpper() { private @Nullable Output number; /** - * @return Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * @return Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @deprecated * **NOTE**: This is deprecated, use `numeric` instead. @@ -147,14 +147,14 @@ public Optional> number() { } /** - * Include numeric characters in the result. Default value is `true`. + * Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. * */ @Import(name="numeric") private @Nullable Output numeric; /** - * @return Include numeric characters in the result. Default value is `true`. + * @return Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. * */ public Optional> numeric() { @@ -405,7 +405,7 @@ public Builder minUpper(Integer minUpper) { } /** - * @param number Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * @param number Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @return builder * @@ -420,7 +420,7 @@ public Builder number(@Nullable Output number) { } /** - * @param number Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * @param number Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @return builder * @@ -434,7 +434,7 @@ public Builder number(Boolean number) { } /** - * @param numeric Include numeric characters in the result. Default value is `true`. + * @param numeric Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. * * @return builder * @@ -445,7 +445,7 @@ public Builder numeric(@Nullable Output numeric) { } /** - * @param numeric Include numeric characters in the result. Default value is `true`. + * @param numeric Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. * * @return builder * diff --git a/sdk/nodejs/randomBytes.ts b/sdk/nodejs/randomBytes.ts index a36d333a3a..4edc495952 100644 --- a/sdk/nodejs/randomBytes.ts +++ b/sdk/nodejs/randomBytes.ts @@ -7,6 +7,8 @@ import * as utilities from "./utilities"; /** * The resource `random.RandomBytes` generates random bytes that are intended to be used as a secret, or key. Use this in preference to `random.RandomId` when the output is considered sensitive, and should not be displayed in the CLI. * + * This resource *does* use a cryptographic random number generator. + * * ## Example Usage * * @@ -64,7 +66,7 @@ export class RandomBytes extends pulumi.CustomResource { */ public /*out*/ readonly base64!: pulumi.Output; /** - * The generated bytes presented in hex string format. + * The generated bytes presented in lowercase hexadecimal string format. The length of the encoded string is exactly twice the `length` parameter. */ public /*out*/ readonly hex!: pulumi.Output; /** @@ -119,7 +121,7 @@ export interface RandomBytesState { */ base64?: pulumi.Input; /** - * The generated bytes presented in hex string format. + * The generated bytes presented in lowercase hexadecimal string format. The length of the encoded string is exactly twice the `length` parameter. */ hex?: pulumi.Input; /** diff --git a/sdk/nodejs/randomPassword.ts b/sdk/nodejs/randomPassword.ts index 8705dabfc9..dc1b334f17 100644 --- a/sdk/nodejs/randomPassword.ts +++ b/sdk/nodejs/randomPassword.ts @@ -97,13 +97,13 @@ export class RandomPassword extends pulumi.CustomResource { */ public readonly minUpper!: pulumi.Output; /** - * Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @deprecated **NOTE**: This is deprecated, use `numeric` instead. */ public readonly number!: pulumi.Output; /** - * Include numeric characters in the result. Default value is `true`. + * Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. */ public readonly numeric!: pulumi.Output; /** @@ -214,13 +214,13 @@ export interface RandomPasswordState { */ minUpper?: pulumi.Input; /** - * Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @deprecated **NOTE**: This is deprecated, use `numeric` instead. */ number?: pulumi.Input; /** - * Include numeric characters in the result. Default value is `true`. + * Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. */ numeric?: pulumi.Input; /** @@ -274,13 +274,13 @@ export interface RandomPasswordArgs { */ minUpper?: pulumi.Input; /** - * Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @deprecated **NOTE**: This is deprecated, use `numeric` instead. */ number?: pulumi.Input; /** - * Include numeric characters in the result. Default value is `true`. + * Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. */ numeric?: pulumi.Input; /** diff --git a/sdk/nodejs/randomShuffle.ts b/sdk/nodejs/randomShuffle.ts index ab943cf67e..451cb86ec9 100644 --- a/sdk/nodejs/randomShuffle.ts +++ b/sdk/nodejs/randomShuffle.ts @@ -70,7 +70,8 @@ export class RandomShuffle extends pulumi.CustomResource { */ public readonly resultCount!: pulumi.Output; /** - * Random permutation of the list of strings given in `input`. + * Random permutation of the list of strings given in `input`. The number of elements is determined by `result_count` if + * set, or the number of elements in `input`. */ public /*out*/ readonly results!: pulumi.Output; /** @@ -129,7 +130,8 @@ export interface RandomShuffleState { */ resultCount?: pulumi.Input; /** - * Random permutation of the list of strings given in `input`. + * Random permutation of the list of strings given in `input`. The number of elements is determined by `result_count` if + * set, or the number of elements in `input`. */ results?: pulumi.Input[]>; /** diff --git a/sdk/nodejs/randomString.ts b/sdk/nodejs/randomString.ts index 8e0ba932e8..5638f859cb 100644 --- a/sdk/nodejs/randomString.ts +++ b/sdk/nodejs/randomString.ts @@ -87,13 +87,13 @@ export class RandomString extends pulumi.CustomResource { */ public readonly minUpper!: pulumi.Output; /** - * Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @deprecated **NOTE**: This is deprecated, use `numeric` instead. */ public readonly number!: pulumi.Output; /** - * Include numeric characters in the result. Default value is `true`. + * Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. */ public readonly numeric!: pulumi.Output; /** @@ -196,13 +196,13 @@ export interface RandomStringState { */ minUpper?: pulumi.Input; /** - * Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @deprecated **NOTE**: This is deprecated, use `numeric` instead. */ number?: pulumi.Input; /** - * Include numeric characters in the result. Default value is `true`. + * Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. */ numeric?: pulumi.Input; /** @@ -256,13 +256,13 @@ export interface RandomStringArgs { */ minUpper?: pulumi.Input; /** - * Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + * Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. * * @deprecated **NOTE**: This is deprecated, use `numeric` instead. */ number?: pulumi.Input; /** - * Include numeric characters in the result. Default value is `true`. + * Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. */ numeric?: pulumi.Input; /** diff --git a/sdk/python/pulumi_random/random_bytes.py b/sdk/python/pulumi_random/random_bytes.py index f532e45cc9..8fc2b5027e 100644 --- a/sdk/python/pulumi_random/random_bytes.py +++ b/sdk/python/pulumi_random/random_bytes.py @@ -60,7 +60,7 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering RandomBytes resources. :param pulumi.Input[str] base64: The generated bytes presented in base64 string format. - :param pulumi.Input[str] hex: The generated bytes presented in hex string format. + :param pulumi.Input[str] hex: The generated bytes presented in lowercase hexadecimal string format. The length of the encoded string is exactly twice the `length` parameter. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] keepers: Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information. :param pulumi.Input[int] length: The number of bytes requested. The minimum value for length is 1. """ @@ -89,7 +89,7 @@ def base64(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def hex(self) -> Optional[pulumi.Input[str]]: """ - The generated bytes presented in hex string format. + The generated bytes presented in lowercase hexadecimal string format. The length of the encoded string is exactly twice the `length` parameter. """ return pulumi.get(self, "hex") @@ -133,6 +133,8 @@ def __init__(__self__, """ The resource `RandomBytes` generates random bytes that are intended to be used as a secret, or key. Use this in preference to `RandomId` when the output is considered sensitive, and should not be displayed in the CLI. + This resource *does* use a cryptographic random number generator. + ## Example Usage @@ -170,6 +172,8 @@ def __init__(__self__, """ The resource `RandomBytes` generates random bytes that are intended to be used as a secret, or key. Use this in preference to `RandomId` when the output is considered sensitive, and should not be displayed in the CLI. + This resource *does* use a cryptographic random number generator. + ## Example Usage @@ -249,7 +253,7 @@ def get(resource_name: str, :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] base64: The generated bytes presented in base64 string format. - :param pulumi.Input[str] hex: The generated bytes presented in hex string format. + :param pulumi.Input[str] hex: The generated bytes presented in lowercase hexadecimal string format. The length of the encoded string is exactly twice the `length` parameter. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] keepers: Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information. :param pulumi.Input[int] length: The number of bytes requested. The minimum value for length is 1. """ @@ -275,7 +279,7 @@ def base64(self) -> pulumi.Output[str]: @pulumi.getter def hex(self) -> pulumi.Output[str]: """ - The generated bytes presented in hex string format. + The generated bytes presented in lowercase hexadecimal string format. The length of the encoded string is exactly twice the `length` parameter. """ return pulumi.get(self, "hex") diff --git a/sdk/python/pulumi_random/random_password.py b/sdk/python/pulumi_random/random_password.py index 4c699b6b65..c835e46ad5 100644 --- a/sdk/python/pulumi_random/random_password.py +++ b/sdk/python/pulumi_random/random_password.py @@ -35,8 +35,8 @@ def __init__(__self__, *, :param pulumi.Input[int] min_numeric: Minimum number of numeric characters in the result. Default value is `0`. :param pulumi.Input[int] min_special: Minimum number of special characters in the result. Default value is `0`. :param pulumi.Input[int] min_upper: Minimum number of uppercase alphabet characters in the result. Default value is `0`. - :param pulumi.Input[bool] number: Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. - :param pulumi.Input[bool] numeric: Include numeric characters in the result. Default value is `true`. + :param pulumi.Input[bool] number: Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. + :param pulumi.Input[bool] numeric: Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. :param pulumi.Input[str] override_special: Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation. :param pulumi.Input[bool] special: Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`. :param pulumi.Input[bool] upper: Include uppercase alphabet characters in the result. Default value is `true`. @@ -156,7 +156,7 @@ def min_upper(self, value: Optional[pulumi.Input[int]]): @pulumi.getter def number(self) -> Optional[pulumi.Input[bool]]: """ - Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. """ warnings.warn("""**NOTE**: This is deprecated, use `numeric` instead.""", DeprecationWarning) pulumi.log.warn("""number is deprecated: **NOTE**: This is deprecated, use `numeric` instead.""") @@ -171,7 +171,7 @@ def number(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter def numeric(self) -> Optional[pulumi.Input[bool]]: """ - Include numeric characters in the result. Default value is `true`. + Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. """ return pulumi.get(self, "numeric") @@ -243,8 +243,8 @@ def __init__(__self__, *, :param pulumi.Input[int] min_numeric: Minimum number of numeric characters in the result. Default value is `0`. :param pulumi.Input[int] min_special: Minimum number of special characters in the result. Default value is `0`. :param pulumi.Input[int] min_upper: Minimum number of uppercase alphabet characters in the result. Default value is `0`. - :param pulumi.Input[bool] number: Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. - :param pulumi.Input[bool] numeric: Include numeric characters in the result. Default value is `true`. + :param pulumi.Input[bool] number: Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. + :param pulumi.Input[bool] numeric: Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. :param pulumi.Input[str] override_special: Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation. :param pulumi.Input[str] result: The generated random string. :param pulumi.Input[bool] special: Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`. @@ -382,7 +382,7 @@ def min_upper(self, value: Optional[pulumi.Input[int]]): @pulumi.getter def number(self) -> Optional[pulumi.Input[bool]]: """ - Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. """ warnings.warn("""**NOTE**: This is deprecated, use `numeric` instead.""", DeprecationWarning) pulumi.log.warn("""number is deprecated: **NOTE**: This is deprecated, use `numeric` instead.""") @@ -397,7 +397,7 @@ def number(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter def numeric(self) -> Optional[pulumi.Input[bool]]: """ - Include numeric characters in the result. Default value is `true`. + Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. """ return pulumi.get(self, "numeric") @@ -511,8 +511,8 @@ def __init__(__self__, :param pulumi.Input[int] min_numeric: Minimum number of numeric characters in the result. Default value is `0`. :param pulumi.Input[int] min_special: Minimum number of special characters in the result. Default value is `0`. :param pulumi.Input[int] min_upper: Minimum number of uppercase alphabet characters in the result. Default value is `0`. - :param pulumi.Input[bool] number: Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. - :param pulumi.Input[bool] numeric: Include numeric characters in the result. Default value is `true`. + :param pulumi.Input[bool] number: Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. + :param pulumi.Input[bool] numeric: Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. :param pulumi.Input[str] override_special: Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation. :param pulumi.Input[bool] special: Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`. :param pulumi.Input[bool] upper: Include uppercase alphabet characters in the result. Default value is `true`. @@ -646,8 +646,8 @@ def get(resource_name: str, :param pulumi.Input[int] min_numeric: Minimum number of numeric characters in the result. Default value is `0`. :param pulumi.Input[int] min_special: Minimum number of special characters in the result. Default value is `0`. :param pulumi.Input[int] min_upper: Minimum number of uppercase alphabet characters in the result. Default value is `0`. - :param pulumi.Input[bool] number: Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. - :param pulumi.Input[bool] numeric: Include numeric characters in the result. Default value is `true`. + :param pulumi.Input[bool] number: Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. + :param pulumi.Input[bool] numeric: Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. :param pulumi.Input[str] override_special: Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation. :param pulumi.Input[str] result: The generated random string. :param pulumi.Input[bool] special: Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`. @@ -741,7 +741,7 @@ def min_upper(self) -> pulumi.Output[int]: @pulumi.getter def number(self) -> pulumi.Output[bool]: """ - Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. """ warnings.warn("""**NOTE**: This is deprecated, use `numeric` instead.""", DeprecationWarning) pulumi.log.warn("""number is deprecated: **NOTE**: This is deprecated, use `numeric` instead.""") @@ -752,7 +752,7 @@ def number(self) -> pulumi.Output[bool]: @pulumi.getter def numeric(self) -> pulumi.Output[bool]: """ - Include numeric characters in the result. Default value is `true`. + Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. """ return pulumi.get(self, "numeric") diff --git a/sdk/python/pulumi_random/random_shuffle.py b/sdk/python/pulumi_random/random_shuffle.py index 7da6480423..31727bbd05 100644 --- a/sdk/python/pulumi_random/random_shuffle.py +++ b/sdk/python/pulumi_random/random_shuffle.py @@ -95,7 +95,8 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] inputs: The list of strings to shuffle. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] keepers: Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information. :param pulumi.Input[int] result_count: The number of results to return. Defaults to the number of items in the `input` list. If fewer items are requested, some elements will be excluded from the result. If more items are requested, items will be repeated in the result but not more frequently than the number of items in the input list. - :param pulumi.Input[Sequence[pulumi.Input[str]]] results: Random permutation of the list of strings given in `input`. + :param pulumi.Input[Sequence[pulumi.Input[str]]] results: Random permutation of the list of strings given in `input`. The number of elements is determined by `result_count` if + set, or the number of elements in `input`. :param pulumi.Input[str] seed: Arbitrary string with which to seed the random number generator, in order to produce less-volatile permutations of the list. """ if inputs is not None: @@ -149,7 +150,8 @@ def result_count(self, value: Optional[pulumi.Input[int]]): @pulumi.getter def results(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Random permutation of the list of strings given in `input`. + Random permutation of the list of strings given in `input`. The number of elements is determined by `result_count` if + set, or the number of elements in `input`. """ return pulumi.get(self, "results") @@ -301,7 +303,8 @@ def get(resource_name: str, :param pulumi.Input[Sequence[pulumi.Input[str]]] inputs: The list of strings to shuffle. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] keepers: Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information. :param pulumi.Input[int] result_count: The number of results to return. Defaults to the number of items in the `input` list. If fewer items are requested, some elements will be excluded from the result. If more items are requested, items will be repeated in the result but not more frequently than the number of items in the input list. - :param pulumi.Input[Sequence[pulumi.Input[str]]] results: Random permutation of the list of strings given in `input`. + :param pulumi.Input[Sequence[pulumi.Input[str]]] results: Random permutation of the list of strings given in `input`. The number of elements is determined by `result_count` if + set, or the number of elements in `input`. :param pulumi.Input[str] seed: Arbitrary string with which to seed the random number generator, in order to produce less-volatile permutations of the list. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -343,7 +346,8 @@ def result_count(self) -> pulumi.Output[Optional[int]]: @pulumi.getter def results(self) -> pulumi.Output[Sequence[str]]: """ - Random permutation of the list of strings given in `input`. + Random permutation of the list of strings given in `input`. The number of elements is determined by `result_count` if + set, or the number of elements in `input`. """ return pulumi.get(self, "results") diff --git a/sdk/python/pulumi_random/random_string.py b/sdk/python/pulumi_random/random_string.py index c1cac3985b..d13554dd40 100644 --- a/sdk/python/pulumi_random/random_string.py +++ b/sdk/python/pulumi_random/random_string.py @@ -35,8 +35,8 @@ def __init__(__self__, *, :param pulumi.Input[int] min_numeric: Minimum number of numeric characters in the result. Default value is `0`. :param pulumi.Input[int] min_special: Minimum number of special characters in the result. Default value is `0`. :param pulumi.Input[int] min_upper: Minimum number of uppercase alphabet characters in the result. Default value is `0`. - :param pulumi.Input[bool] number: Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. - :param pulumi.Input[bool] numeric: Include numeric characters in the result. Default value is `true`. + :param pulumi.Input[bool] number: Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. + :param pulumi.Input[bool] numeric: Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. :param pulumi.Input[str] override_special: Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation. :param pulumi.Input[bool] special: Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`. :param pulumi.Input[bool] upper: Include uppercase alphabet characters in the result. Default value is `true`. @@ -156,7 +156,7 @@ def min_upper(self, value: Optional[pulumi.Input[int]]): @pulumi.getter def number(self) -> Optional[pulumi.Input[bool]]: """ - Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. """ warnings.warn("""**NOTE**: This is deprecated, use `numeric` instead.""", DeprecationWarning) pulumi.log.warn("""number is deprecated: **NOTE**: This is deprecated, use `numeric` instead.""") @@ -171,7 +171,7 @@ def number(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter def numeric(self) -> Optional[pulumi.Input[bool]]: """ - Include numeric characters in the result. Default value is `true`. + Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. """ return pulumi.get(self, "numeric") @@ -241,8 +241,8 @@ def __init__(__self__, *, :param pulumi.Input[int] min_numeric: Minimum number of numeric characters in the result. Default value is `0`. :param pulumi.Input[int] min_special: Minimum number of special characters in the result. Default value is `0`. :param pulumi.Input[int] min_upper: Minimum number of uppercase alphabet characters in the result. Default value is `0`. - :param pulumi.Input[bool] number: Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. - :param pulumi.Input[bool] numeric: Include numeric characters in the result. Default value is `true`. + :param pulumi.Input[bool] number: Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. + :param pulumi.Input[bool] numeric: Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. :param pulumi.Input[str] override_special: Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation. :param pulumi.Input[str] result: The generated random string. :param pulumi.Input[bool] special: Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`. @@ -366,7 +366,7 @@ def min_upper(self, value: Optional[pulumi.Input[int]]): @pulumi.getter def number(self) -> Optional[pulumi.Input[bool]]: """ - Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. """ warnings.warn("""**NOTE**: This is deprecated, use `numeric` instead.""", DeprecationWarning) pulumi.log.warn("""number is deprecated: **NOTE**: This is deprecated, use `numeric` instead.""") @@ -381,7 +381,7 @@ def number(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter def numeric(self) -> Optional[pulumi.Input[bool]]: """ - Include numeric characters in the result. Default value is `true`. + Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. """ return pulumi.get(self, "numeric") @@ -490,8 +490,8 @@ def __init__(__self__, :param pulumi.Input[int] min_numeric: Minimum number of numeric characters in the result. Default value is `0`. :param pulumi.Input[int] min_special: Minimum number of special characters in the result. Default value is `0`. :param pulumi.Input[int] min_upper: Minimum number of uppercase alphabet characters in the result. Default value is `0`. - :param pulumi.Input[bool] number: Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. - :param pulumi.Input[bool] numeric: Include numeric characters in the result. Default value is `true`. + :param pulumi.Input[bool] number: Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. + :param pulumi.Input[bool] numeric: Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. :param pulumi.Input[str] override_special: Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation. :param pulumi.Input[bool] special: Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`. :param pulumi.Input[bool] upper: Include uppercase alphabet characters in the result. Default value is `true`. @@ -615,8 +615,8 @@ def get(resource_name: str, :param pulumi.Input[int] min_numeric: Minimum number of numeric characters in the result. Default value is `0`. :param pulumi.Input[int] min_special: Minimum number of special characters in the result. Default value is `0`. :param pulumi.Input[int] min_upper: Minimum number of uppercase alphabet characters in the result. Default value is `0`. - :param pulumi.Input[bool] number: Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. - :param pulumi.Input[bool] numeric: Include numeric characters in the result. Default value is `true`. + :param pulumi.Input[bool] number: Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. + :param pulumi.Input[bool] numeric: Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. :param pulumi.Input[str] override_special: Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation. :param pulumi.Input[str] result: The generated random string. :param pulumi.Input[bool] special: Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`. @@ -701,7 +701,7 @@ def min_upper(self) -> pulumi.Output[int]: @pulumi.getter def number(self) -> pulumi.Output[bool]: """ - Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead. + Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead. """ warnings.warn("""**NOTE**: This is deprecated, use `numeric` instead.""", DeprecationWarning) pulumi.log.warn("""number is deprecated: **NOTE**: This is deprecated, use `numeric` instead.""") @@ -712,7 +712,7 @@ def number(self) -> pulumi.Output[bool]: @pulumi.getter def numeric(self) -> pulumi.Output[bool]: """ - Include numeric characters in the result. Default value is `true`. + Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. """ return pulumi.get(self, "numeric")