diff --git a/provider/cmd/pulumi-resource-minio/schema.json b/provider/cmd/pulumi-resource-minio/schema.json index b0eb126..61f2046 100644 --- a/provider/cmd/pulumi-resource-minio/schema.json +++ b/provider/cmd/pulumi-resource-minio/schema.json @@ -705,6 +705,10 @@ "type": "boolean", "description": "Disable service account\n" }, + "policy": { + "type": "string", + "description": "policy of service account\n" + }, "secretKey": { "type": "string", "secret": true @@ -731,6 +735,10 @@ "type": "boolean", "description": "Disable service account\n" }, + "policy": { + "type": "string", + "description": "policy of service account\n" + }, "targetUser": { "type": "string", "willReplaceOnChanges": true @@ -753,6 +761,10 @@ "type": "boolean", "description": "Disable service account\n" }, + "policy": { + "type": "string", + "description": "policy of service account\n" + }, "secretKey": { "type": "string", "secret": true diff --git a/provider/go.mod b/provider/go.mod index 71746c4..ddf4702 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -11,8 +11,8 @@ replace ( ) require ( - github.com/aminueza/terraform-provider-minio v1.17.2 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.56.0 + github.com/aminueza/terraform-provider-minio v1.18.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.58.0 github.com/pulumi/pulumi/sdk/v3 v3.76.1 ) @@ -57,7 +57,7 @@ require ( github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect github.com/armon/go-metrics v0.4.0 // indirect github.com/armon/go-radix v1.0.0 // indirect - github.com/aws/aws-sdk-go v1.44.312 // indirect + github.com/aws/aws-sdk-go v1.45.2 // indirect github.com/aws/aws-sdk-go-v2 v1.17.3 // indirect github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.3 // indirect github.com/aws/aws-sdk-go-v2/config v1.15.15 // indirect @@ -136,10 +136,10 @@ require ( github.com/hashicorp/hcl/v2 v2.17.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-go v0.16.0 // indirect + github.com/hashicorp/terraform-plugin-go v0.18.0 // indirect github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect github.com/hashicorp/terraform-plugin-sdk v1.9.1 // indirect - github.com/hashicorp/terraform-plugin-sdk/v2 v2.27.0 // indirect + github.com/hashicorp/terraform-plugin-sdk/v2 v2.28.0 // indirect github.com/hashicorp/terraform-svchost v0.1.1 // indirect github.com/hashicorp/vault/api v1.8.2 // indirect github.com/hashicorp/vault/sdk v0.6.1 // indirect @@ -163,7 +163,7 @@ require ( github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect github.com/minio/madmin-go v1.7.5 // indirect github.com/minio/md5-simd v1.1.2 // indirect - github.com/minio/minio-go/v7 v7.0.61 // indirect + github.com/minio/minio-go/v7 v7.0.63 // indirect github.com/minio/sha256-simd v1.0.1 // indirect github.com/mitchellh/cli v1.1.5 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect @@ -235,21 +235,21 @@ require ( go.uber.org/atomic v1.9.0 // indirect gocloud.dev v0.27.0 // indirect gocloud.dev/secrets/hashivault v0.27.0 // indirect - golang.org/x/crypto v0.11.0 // indirect + golang.org/x/crypto v0.12.0 // indirect golang.org/x/mod v0.10.0 // indirect - golang.org/x/net v0.12.0 // indirect + golang.org/x/net v0.14.0 // indirect golang.org/x/oauth2 v0.7.0 // indirect golang.org/x/sync v0.2.0 // indirect - golang.org/x/sys v0.10.0 // indirect - golang.org/x/term v0.10.0 // indirect - golang.org/x/text v0.11.0 // indirect + golang.org/x/sys v0.11.0 // indirect + golang.org/x/term v0.11.0 // indirect + golang.org/x/text v0.12.0 // indirect golang.org/x/time v0.3.0 // indirect golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect google.golang.org/api v0.114.0 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect google.golang.org/grpc v1.56.1 // indirect - google.golang.org/protobuf v1.30.0 // indirect + google.golang.org/protobuf v1.31.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/square/go-jose.v2 v2.6.0 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect diff --git a/provider/go.sum b/provider/go.sum index fb04340..b9c2172 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -772,8 +772,8 @@ github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk5 github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= github.com/alexflint/go-filemutex v0.0.0-20171022225611-72bdc8eae2ae/go.mod h1:CgnQgUtFrFz9mxFNtED3jI5tLDjKlOM+oUF/sTk6ps0= github.com/alexflint/go-filemutex v1.1.0/go.mod h1:7P4iRhttt/nUvUOrYIhcpMzv2G6CY9UnI16Z+UJqRyk= -github.com/aminueza/terraform-provider-minio v1.17.2 h1:mcrSiz0lTHfft8E/ts81zW28YsLOMYtzXLmpFsbtCBo= -github.com/aminueza/terraform-provider-minio v1.17.2/go.mod h1:ey2nFrkQSDrrzR9ft38O9PoP12/4Y1L8dIgju4+1m/k= +github.com/aminueza/terraform-provider-minio v1.18.0 h1:sMf5EtNIqsGKwvbdqeufxLHh8XDknwekVjoGVCaygzk= +github.com/aminueza/terraform-provider-minio v1.18.0/go.mod h1:Bz6tmI2swZlXBOPdqWKWvx4l2QVcOTtv3lfSlNgBQGY= github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8= @@ -822,8 +822,8 @@ github.com/aws/aws-sdk-go v1.43.31/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4 github.com/aws/aws-sdk-go v1.44.45/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= github.com/aws/aws-sdk-go v1.44.68/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= -github.com/aws/aws-sdk-go v1.44.312 h1:llrElfzeqG/YOLFFKjg1xNpZCFJ2xraIi3PqSuP+95k= -github.com/aws/aws-sdk-go v1.44.312/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= +github.com/aws/aws-sdk-go v1.45.2 h1:hTong9YUklQKqzrGk3WnKABReb5R8GjbG4Y6dEQfjnk= +github.com/aws/aws-sdk-go v1.45.2/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= github.com/aws/aws-sdk-go-v2 v1.16.8/go.mod h1:6CpKuLXg2w7If3ABZCl/qZ6rEgwtjZTn4eAf4RcEyuw= github.com/aws/aws-sdk-go-v2 v1.17.3 h1:shN7NlnVzvDUgPQ+1rLMSxY8OWRNDRYtiqe0p/PgrhY= @@ -1645,10 +1645,12 @@ github.com/hashicorp/terraform-exec v0.18.1 h1:LAbfDvNQU1l0NOQlTuudjczVhHj061fNX github.com/hashicorp/terraform-exec v0.18.1/go.mod h1:58wg4IeuAJ6LVsLUeD2DWZZoc/bYi6dzhLHzxM41980= github.com/hashicorp/terraform-json v0.4.0/go.mod h1:eAbqb4w0pSlRmdvl8fOyHAi/+8jnkVYN28gJkSJrLhU= github.com/hashicorp/terraform-json v0.15.0/go.mod h1:+L1RNzjDU5leLFZkHTFTbJXaoqUC6TqXlFgDoOXrtvk= -github.com/hashicorp/terraform-json v0.17.0 h1:EiA1Wp07nknYQAiv+jIt4dX4Cq5crgP+TsTE45MjMmM= github.com/hashicorp/terraform-json v0.17.0/go.mod h1:Huy6zt6euxaY9knPAFKjUITn8QxUFIe9VuSzb4zn/0o= -github.com/hashicorp/terraform-plugin-go v0.16.0 h1:DSOQ0rz5FUiVO4NUzMs8ln9gsPgHMTsfns7Nk+6gPuE= +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-go v0.16.0/go.mod h1:4sn8bFuDbt+2+Yztt35IbOrvZc0zyEi87gJzsTgCES8= +github.com/hashicorp/terraform-plugin-go v0.18.0 h1:IwTkOS9cOW1ehLd/rG0y+u/TGLK9y6fGoBjXVUquzpE= +github.com/hashicorp/terraform-plugin-go v0.18.0/go.mod h1:l7VK+2u5Kf2y+A+742GX0ouLut3gttudmvMgN0PA74Y= 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 v1.7.0/go.mod h1:OjgQmey5VxnPej/buEhe+YqKm0KNvV3QqU4hkqHqPCY= @@ -2174,8 +2176,8 @@ github.com/pulumi/pulumi-java/pkg v0.9.4 h1:gIQZmlUI1o9ye8CL2XFqtmAX6Lwr9uj/+Hzj github.com/pulumi/pulumi-java/pkg v0.9.4/go.mod h1:c6rSw/+q4O0IImgJ9axxoC6QesbPYWBaG5gimbHouUQ= github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1 h1:SCg1gjfY9N4yn8U8peIUYATifjoDABkyR7H9lmefsfc= github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1/go.mod h1:7OeUPH8rpt5ipyj9EFcnXpuzQ8SHL0dyqdfa8nOacdk= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.56.0 h1:3ga+bvWnGH9+Ukxn24prZovhpIXcU7QRhu8iWzs905o= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.56.0/go.mod h1:ykaml8e6XS/yI9JOcNZ+6gLirs6EWTB0FmjbT+JyEdU= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.58.0 h1:1vQokJDOEQQuPAsvIHoqb0x7yGflfmXYcjkHrT5tkXg= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.58.0/go.mod h1:ykaml8e6XS/yI9JOcNZ+6gLirs6EWTB0FmjbT+JyEdU= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4 h1:rIzMmtcVpPX8ynaz6/nW5AHNY63DiNfCohqmxWvMpM4= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4/go.mod h1:Kt8RIZWa/N8rW3+0g6NrqCBmF3o+HuIhFaZpssEkG6w= github.com/pulumi/pulumi-yaml v1.1.1 h1:8pyBNIU8+ym0wYpjhsCqN+cutygfK1XbhY2YEeNfyXY= @@ -2576,8 +2578,8 @@ golang.org/x/crypto v0.5.0/go.mod h1:NK/OQwhpMQP3MwtdjgLlYHnH9ebylxKWv3e0fK+mkQU golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= golang.org/x/crypto v0.8.0/go.mod h1:mRqEX+O9/h5TFCrQhkgjo2yKi0yYA+9ecGkdQoHrywE= golang.org/x/crypto v0.10.0/go.mod h1:o4eNf7Ede1fv+hwOwZsTHl9EsPFO6q6ZvYR8vYfY45I= -golang.org/x/crypto v0.11.0 h1:6Ewdq3tDic1mg5xRO4milcWCfMVQhI4NkqWWvqejpuA= -golang.org/x/crypto v0.11.0/go.mod h1:xgJhtzW8F9jGdVFWZESrid1U1bjeNy4zgy5cRr/CIio= +golang.org/x/crypto v0.12.0 h1:tFM/ta59kqch6LlvYnPa0yx5a83cL2nHflFhYKvv9Yk= +golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -2736,8 +2738,8 @@ golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/net v0.11.0/go.mod h1:2L/ixqYpgIVXmeoSA/4Lu7BzTG4KIyPIryS4IsOd1oQ= -golang.org/x/net v0.12.0 h1:cfawfvKITfUsFCeJIHJrbSxpeu/E81khclypR0GVT50= -golang.org/x/net v0.12.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= +golang.org/x/net v0.14.0 h1:BONx9s002vGdD9umnlX1Po8vOZmrgH34qlHcD1MfK14= +golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -2954,8 +2956,8 @@ golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA= -golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM= +golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 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= @@ -2971,8 +2973,8 @@ golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= golang.org/x/term v0.7.0/go.mod h1:P32HKFT3hSsZrRxla30E9HqToFYAQPCMs/zFMBUFqPY= golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= golang.org/x/term v0.9.0/go.mod h1:M6DEAAIenWoTxdKrOltXcmDY3rSplQUkrvaDU5FcQyo= -golang.org/x/term v0.10.0 h1:3R7pNqamzBraeqj/Tj8qt1aQ2HpmlC+Cx/qL/7hn4/c= -golang.org/x/term v0.10.0/go.mod h1:lpqdcUyK/oCiQxvxVrppt5ggO2KCZ5QblwqPnfZ6d5o= +golang.org/x/term v0.11.0 h1:F9tnn/DA/Im8nCwm+fX+1/eBwi4qFjRT++MhtVC4ZX0= +golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU= 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= @@ -2990,8 +2992,8 @@ golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.10.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= -golang.org/x/text v0.11.0 h1:LAntKIrcmeSKERyiOh0XMV39LXS8IE9UL2yP7+f5ij4= -golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.12.0 h1:k+n5B8goJNdU7hSvEtMUz3d1Q6D/XW4COJSJR6fN0mc= +golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -3420,8 +3422,9 @@ google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQ google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.29.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= +google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/airbrake/gobrake.v2 v2.0.9/go.mod h1:/h5ZAUhDkGaJfjzjKLSjv6zCL6O0LLBxU4K+aSYdM/U= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/sdk/dotnet/IamServiceAccount.cs b/sdk/dotnet/IamServiceAccount.cs index 98c832d..db02620 100644 --- a/sdk/dotnet/IamServiceAccount.cs +++ b/sdk/dotnet/IamServiceAccount.cs @@ -54,6 +54,12 @@ public partial class IamServiceAccount : global::Pulumi.CustomResource [Output("disableUser")] public Output DisableUser { get; private set; } = null!; + /// + /// policy of service account + /// + [Output("policy")] + public Output Policy { get; private set; } = null!; + [Output("secretKey")] public Output SecretKey { get; private set; } = null!; @@ -125,6 +131,12 @@ public sealed class IamServiceAccountArgs : global::Pulumi.ResourceArgs [Input("disableUser")] public Input? DisableUser { get; set; } + /// + /// policy of service account + /// + [Input("policy")] + public Input? Policy { get; set; } + [Input("targetUser", required: true)] public Input TargetUser { get; set; } = null!; @@ -151,6 +163,12 @@ public sealed class IamServiceAccountState : global::Pulumi.ResourceArgs [Input("disableUser")] public Input? DisableUser { get; set; } + /// + /// policy of service account + /// + [Input("policy")] + public Input? Policy { get; set; } + [Input("secretKey")] private Input? _secretKey; public Input? SecretKey diff --git a/sdk/go/minio/iamServiceAccount.go b/sdk/go/minio/iamServiceAccount.go index 292a12c..7b09416 100644 --- a/sdk/go/minio/iamServiceAccount.go +++ b/sdk/go/minio/iamServiceAccount.go @@ -54,9 +54,11 @@ type IamServiceAccount struct { AccessKey pulumi.StringOutput `pulumi:"accessKey"` // Disable service account DisableUser pulumi.BoolPtrOutput `pulumi:"disableUser"` - SecretKey pulumi.StringOutput `pulumi:"secretKey"` - Status pulumi.StringOutput `pulumi:"status"` - TargetUser pulumi.StringOutput `pulumi:"targetUser"` + // policy of service account + Policy pulumi.StringPtrOutput `pulumi:"policy"` + SecretKey pulumi.StringOutput `pulumi:"secretKey"` + Status pulumi.StringOutput `pulumi:"status"` + TargetUser pulumi.StringOutput `pulumi:"targetUser"` // rotate secret key UpdateSecret pulumi.BoolPtrOutput `pulumi:"updateSecret"` } @@ -100,10 +102,12 @@ func GetIamServiceAccount(ctx *pulumi.Context, type iamServiceAccountState struct { AccessKey *string `pulumi:"accessKey"` // Disable service account - DisableUser *bool `pulumi:"disableUser"` - SecretKey *string `pulumi:"secretKey"` - Status *string `pulumi:"status"` - TargetUser *string `pulumi:"targetUser"` + DisableUser *bool `pulumi:"disableUser"` + // policy of service account + Policy *string `pulumi:"policy"` + SecretKey *string `pulumi:"secretKey"` + Status *string `pulumi:"status"` + TargetUser *string `pulumi:"targetUser"` // rotate secret key UpdateSecret *bool `pulumi:"updateSecret"` } @@ -112,9 +116,11 @@ type IamServiceAccountState struct { AccessKey pulumi.StringPtrInput // Disable service account DisableUser pulumi.BoolPtrInput - SecretKey pulumi.StringPtrInput - Status pulumi.StringPtrInput - TargetUser pulumi.StringPtrInput + // policy of service account + Policy pulumi.StringPtrInput + SecretKey pulumi.StringPtrInput + Status pulumi.StringPtrInput + TargetUser pulumi.StringPtrInput // rotate secret key UpdateSecret pulumi.BoolPtrInput } @@ -125,8 +131,10 @@ func (IamServiceAccountState) ElementType() reflect.Type { type iamServiceAccountArgs struct { // Disable service account - DisableUser *bool `pulumi:"disableUser"` - TargetUser string `pulumi:"targetUser"` + DisableUser *bool `pulumi:"disableUser"` + // policy of service account + Policy *string `pulumi:"policy"` + TargetUser string `pulumi:"targetUser"` // rotate secret key UpdateSecret *bool `pulumi:"updateSecret"` } @@ -135,7 +143,9 @@ type iamServiceAccountArgs struct { type IamServiceAccountArgs struct { // Disable service account DisableUser pulumi.BoolPtrInput - TargetUser pulumi.StringInput + // policy of service account + Policy pulumi.StringPtrInput + TargetUser pulumi.StringInput // rotate secret key UpdateSecret pulumi.BoolPtrInput } @@ -236,6 +246,11 @@ func (o IamServiceAccountOutput) DisableUser() pulumi.BoolPtrOutput { return o.ApplyT(func(v *IamServiceAccount) pulumi.BoolPtrOutput { return v.DisableUser }).(pulumi.BoolPtrOutput) } +// policy of service account +func (o IamServiceAccountOutput) Policy() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IamServiceAccount) pulumi.StringPtrOutput { return v.Policy }).(pulumi.StringPtrOutput) +} + func (o IamServiceAccountOutput) SecretKey() pulumi.StringOutput { return o.ApplyT(func(v *IamServiceAccount) pulumi.StringOutput { return v.SecretKey }).(pulumi.StringOutput) } diff --git a/sdk/java/src/main/java/com/pulumi/minio/IamServiceAccount.java b/sdk/java/src/main/java/com/pulumi/minio/IamServiceAccount.java index 5ce10e5..90ef910 100644 --- a/sdk/java/src/main/java/com/pulumi/minio/IamServiceAccount.java +++ b/sdk/java/src/main/java/com/pulumi/minio/IamServiceAccount.java @@ -79,6 +79,20 @@ public Output accessKey() { public Output> disableUser() { return Codegen.optional(this.disableUser); } + /** + * policy of service account + * + */ + @Export(name="policy", type=String.class, parameters={}) + private Output policy; + + /** + * @return policy of service account + * + */ + public Output> policy() { + return Codegen.optional(this.policy); + } @Export(name="secretKey", type=String.class, parameters={}) private Output secretKey; diff --git a/sdk/java/src/main/java/com/pulumi/minio/IamServiceAccountArgs.java b/sdk/java/src/main/java/com/pulumi/minio/IamServiceAccountArgs.java index 8506ca4..3104d4c 100644 --- a/sdk/java/src/main/java/com/pulumi/minio/IamServiceAccountArgs.java +++ b/sdk/java/src/main/java/com/pulumi/minio/IamServiceAccountArgs.java @@ -31,6 +31,21 @@ public Optional> disableUser() { return Optional.ofNullable(this.disableUser); } + /** + * policy of service account + * + */ + @Import(name="policy") + private @Nullable Output policy; + + /** + * @return policy of service account + * + */ + public Optional> policy() { + return Optional.ofNullable(this.policy); + } + @Import(name="targetUser", required=true) private Output targetUser; @@ -57,6 +72,7 @@ private IamServiceAccountArgs() {} private IamServiceAccountArgs(IamServiceAccountArgs $) { this.disableUser = $.disableUser; + this.policy = $.policy; this.targetUser = $.targetUser; this.updateSecret = $.updateSecret; } @@ -100,6 +116,27 @@ public Builder disableUser(Boolean disableUser) { return disableUser(Output.of(disableUser)); } + /** + * @param policy policy of service account + * + * @return builder + * + */ + public Builder policy(@Nullable Output policy) { + $.policy = policy; + return this; + } + + /** + * @param policy policy of service account + * + * @return builder + * + */ + public Builder policy(String policy) { + return policy(Output.of(policy)); + } + public Builder targetUser(Output targetUser) { $.targetUser = targetUser; return this; diff --git a/sdk/java/src/main/java/com/pulumi/minio/inputs/IamServiceAccountState.java b/sdk/java/src/main/java/com/pulumi/minio/inputs/IamServiceAccountState.java index 0a72e42..4611ad1 100644 --- a/sdk/java/src/main/java/com/pulumi/minio/inputs/IamServiceAccountState.java +++ b/sdk/java/src/main/java/com/pulumi/minio/inputs/IamServiceAccountState.java @@ -38,6 +38,21 @@ public Optional> disableUser() { return Optional.ofNullable(this.disableUser); } + /** + * policy of service account + * + */ + @Import(name="policy") + private @Nullable Output policy; + + /** + * @return policy of service account + * + */ + public Optional> policy() { + return Optional.ofNullable(this.policy); + } + @Import(name="secretKey") private @Nullable Output secretKey; @@ -79,6 +94,7 @@ private IamServiceAccountState() {} private IamServiceAccountState(IamServiceAccountState $) { this.accessKey = $.accessKey; this.disableUser = $.disableUser; + this.policy = $.policy; this.secretKey = $.secretKey; this.status = $.status; this.targetUser = $.targetUser; @@ -133,6 +149,27 @@ public Builder disableUser(Boolean disableUser) { return disableUser(Output.of(disableUser)); } + /** + * @param policy policy of service account + * + * @return builder + * + */ + public Builder policy(@Nullable Output policy) { + $.policy = policy; + return this; + } + + /** + * @param policy policy of service account + * + * @return builder + * + */ + public Builder policy(String policy) { + return policy(Output.of(policy)); + } + public Builder secretKey(@Nullable Output secretKey) { $.secretKey = secretKey; return this; diff --git a/sdk/nodejs/iamServiceAccount.ts b/sdk/nodejs/iamServiceAccount.ts index 4c58a77..306ee34 100644 --- a/sdk/nodejs/iamServiceAccount.ts +++ b/sdk/nodejs/iamServiceAccount.ts @@ -55,6 +55,10 @@ export class IamServiceAccount extends pulumi.CustomResource { * Disable service account */ public readonly disableUser!: pulumi.Output; + /** + * policy of service account + */ + public readonly policy!: pulumi.Output; public /*out*/ readonly secretKey!: pulumi.Output; public /*out*/ readonly status!: pulumi.Output; public readonly targetUser!: pulumi.Output; @@ -78,6 +82,7 @@ export class IamServiceAccount extends pulumi.CustomResource { const state = argsOrState as IamServiceAccountState | undefined; resourceInputs["accessKey"] = state ? state.accessKey : undefined; resourceInputs["disableUser"] = state ? state.disableUser : undefined; + resourceInputs["policy"] = state ? state.policy : undefined; resourceInputs["secretKey"] = state ? state.secretKey : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["targetUser"] = state ? state.targetUser : undefined; @@ -88,6 +93,7 @@ export class IamServiceAccount extends pulumi.CustomResource { throw new Error("Missing required property 'targetUser'"); } resourceInputs["disableUser"] = args ? args.disableUser : undefined; + resourceInputs["policy"] = args ? args.policy : undefined; resourceInputs["targetUser"] = args ? args.targetUser : undefined; resourceInputs["updateSecret"] = args ? args.updateSecret : undefined; resourceInputs["accessKey"] = undefined /*out*/; @@ -110,6 +116,10 @@ export interface IamServiceAccountState { * Disable service account */ disableUser?: pulumi.Input; + /** + * policy of service account + */ + policy?: pulumi.Input; secretKey?: pulumi.Input; status?: pulumi.Input; targetUser?: pulumi.Input; @@ -127,6 +137,10 @@ export interface IamServiceAccountArgs { * Disable service account */ disableUser?: pulumi.Input; + /** + * policy of service account + */ + policy?: pulumi.Input; targetUser: pulumi.Input; /** * rotate secret key diff --git a/sdk/python/pulumi_minio/iam_service_account.py b/sdk/python/pulumi_minio/iam_service_account.py index 7b630c2..acc7fcf 100644 --- a/sdk/python/pulumi_minio/iam_service_account.py +++ b/sdk/python/pulumi_minio/iam_service_account.py @@ -16,15 +16,19 @@ class IamServiceAccountArgs: def __init__(__self__, *, target_user: pulumi.Input[str], disable_user: Optional[pulumi.Input[bool]] = None, + policy: Optional[pulumi.Input[str]] = None, update_secret: Optional[pulumi.Input[bool]] = None): """ The set of arguments for constructing a IamServiceAccount resource. :param pulumi.Input[bool] disable_user: Disable service account + :param pulumi.Input[str] policy: policy of service account :param pulumi.Input[bool] update_secret: rotate secret key """ pulumi.set(__self__, "target_user", target_user) if disable_user is not None: pulumi.set(__self__, "disable_user", disable_user) + if policy is not None: + pulumi.set(__self__, "policy", policy) if update_secret is not None: pulumi.set(__self__, "update_secret", update_secret) @@ -49,6 +53,18 @@ def disable_user(self) -> Optional[pulumi.Input[bool]]: def disable_user(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "disable_user", value) + @property + @pulumi.getter + def policy(self) -> Optional[pulumi.Input[str]]: + """ + policy of service account + """ + return pulumi.get(self, "policy") + + @policy.setter + def policy(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "policy", value) + @property @pulumi.getter(name="updateSecret") def update_secret(self) -> Optional[pulumi.Input[bool]]: @@ -67,6 +83,7 @@ class _IamServiceAccountState: def __init__(__self__, *, access_key: Optional[pulumi.Input[str]] = None, disable_user: Optional[pulumi.Input[bool]] = None, + policy: Optional[pulumi.Input[str]] = None, secret_key: Optional[pulumi.Input[str]] = None, status: Optional[pulumi.Input[str]] = None, target_user: Optional[pulumi.Input[str]] = None, @@ -74,12 +91,15 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering IamServiceAccount resources. :param pulumi.Input[bool] disable_user: Disable service account + :param pulumi.Input[str] policy: policy of service account :param pulumi.Input[bool] update_secret: rotate secret key """ if access_key is not None: pulumi.set(__self__, "access_key", access_key) if disable_user is not None: pulumi.set(__self__, "disable_user", disable_user) + if policy is not None: + pulumi.set(__self__, "policy", policy) if secret_key is not None: pulumi.set(__self__, "secret_key", secret_key) if status is not None: @@ -110,6 +130,18 @@ def disable_user(self) -> Optional[pulumi.Input[bool]]: def disable_user(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "disable_user", value) + @property + @pulumi.getter + def policy(self) -> Optional[pulumi.Input[str]]: + """ + policy of service account + """ + return pulumi.get(self, "policy") + + @policy.setter + def policy(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "policy", value) + @property @pulumi.getter(name="secretKey") def secret_key(self) -> Optional[pulumi.Input[str]]: @@ -156,6 +188,7 @@ def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, disable_user: Optional[pulumi.Input[bool]] = None, + policy: Optional[pulumi.Input[str]] = None, target_user: Optional[pulumi.Input[str]] = None, update_secret: Optional[pulumi.Input[bool]] = None, __props__=None): @@ -179,6 +212,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[bool] disable_user: Disable service account + :param pulumi.Input[str] policy: policy of service account :param pulumi.Input[bool] update_secret: rotate secret key """ ... @@ -220,6 +254,7 @@ def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, disable_user: Optional[pulumi.Input[bool]] = None, + policy: Optional[pulumi.Input[str]] = None, target_user: Optional[pulumi.Input[str]] = None, update_secret: Optional[pulumi.Input[bool]] = None, __props__=None): @@ -232,6 +267,7 @@ def _internal_init(__self__, __props__ = IamServiceAccountArgs.__new__(IamServiceAccountArgs) __props__.__dict__["disable_user"] = disable_user + __props__.__dict__["policy"] = policy if target_user is None and not opts.urn: raise TypeError("Missing required property 'target_user'") __props__.__dict__["target_user"] = target_user @@ -253,6 +289,7 @@ def get(resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, access_key: Optional[pulumi.Input[str]] = None, disable_user: Optional[pulumi.Input[bool]] = None, + policy: Optional[pulumi.Input[str]] = None, secret_key: Optional[pulumi.Input[str]] = None, status: Optional[pulumi.Input[str]] = None, target_user: Optional[pulumi.Input[str]] = None, @@ -265,6 +302,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[bool] disable_user: Disable service account + :param pulumi.Input[str] policy: policy of service account :param pulumi.Input[bool] update_secret: rotate secret key """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -273,6 +311,7 @@ def get(resource_name: str, __props__.__dict__["access_key"] = access_key __props__.__dict__["disable_user"] = disable_user + __props__.__dict__["policy"] = policy __props__.__dict__["secret_key"] = secret_key __props__.__dict__["status"] = status __props__.__dict__["target_user"] = target_user @@ -292,6 +331,14 @@ def disable_user(self) -> pulumi.Output[Optional[bool]]: """ return pulumi.get(self, "disable_user") + @property + @pulumi.getter + def policy(self) -> pulumi.Output[Optional[str]]: + """ + policy of service account + """ + return pulumi.get(self, "policy") + @property @pulumi.getter(name="secretKey") def secret_key(self) -> pulumi.Output[str]: