From fcaf6a716540f59767e2b37de84afd625422d226 Mon Sep 17 00:00:00 2001 From: Anton Tayanovskyy Date: Fri, 19 Apr 2024 15:28:11 -0400 Subject: [PATCH] Rollout improved example converter (#360) Rolls out improved TF example converter. --- .ci-mgmt.yaml | 5 ++ Makefile | 3 +- .../cmd/pulumi-resource-minio/schema.json | 34 +++++----- sdk/dotnet/GetIamPolicyDocument.cs | 6 +- sdk/dotnet/IamGroup.cs | 5 +- sdk/dotnet/IamGroupPolicy.cs | 15 +++-- sdk/dotnet/IamGroupUserAttachment.cs | 14 +++-- sdk/dotnet/IamPolicy.cs | 3 +- sdk/dotnet/IamServiceAccount.cs | 3 +- sdk/dotnet/IamUser.cs | 9 +-- sdk/dotnet/IamUserPolicyAttachment.cs | 50 --------------- sdk/dotnet/S3Bucket.cs | 4 +- sdk/dotnet/S3Object.cs | 4 +- sdk/go/minio/getIamPolicyDocument.go | 3 +- sdk/go/minio/iamGroup.go | 4 +- sdk/go/minio/iamGroupPolicy.go | 13 ++-- sdk/go/minio/iamGroupUserAttachment.go | 12 ++-- sdk/go/minio/iamPolicy.go | 3 +- sdk/go/minio/iamServiceAccount.go | 3 +- sdk/go/minio/iamUser.go | 9 +-- sdk/go/minio/iamUserPolicyAttachment.go | 61 ------------------ sdk/go/minio/s3bucket.go | 4 +- sdk/go/minio/s3object.go | 4 +- .../main/java/com/pulumi/minio/IamGroup.java | 5 +- .../java/com/pulumi/minio/IamGroupPolicy.java | 13 ++-- .../minio/IamGroupPolicyAttachment.java | 62 ------------------- .../pulumi/minio/IamGroupUserAttachment.java | 12 +++- .../main/java/com/pulumi/minio/IamPolicy.java | 1 + .../com/pulumi/minio/IamServiceAccount.java | 1 + .../main/java/com/pulumi/minio/IamUser.java | 9 +-- .../pulumi/minio/IamUserPolicyAttachment.java | 62 ------------------- .../java/com/pulumi/minio/MinioFunctions.java | 6 ++ .../main/java/com/pulumi/minio/S3Bucket.java | 2 +- sdk/nodejs/getIamPolicyDocument.ts | 10 ++- sdk/nodejs/iamGroup.ts | 2 +- sdk/nodejs/iamGroupPolicy.ts | 12 ++-- sdk/nodejs/iamGroupUserAttachment.ts | 8 +-- sdk/nodejs/iamPolicy.ts | 7 ++- sdk/nodejs/iamServiceAccount.ts | 3 +- sdk/nodejs/iamUser.ts | 23 ++++--- sdk/nodejs/iamUserPolicyAttachment.ts | 33 ---------- sdk/nodejs/s3bucket.ts | 4 +- sdk/nodejs/s3object.ts | 4 +- .../pulumi_minio/get_iam_policy_document.py | 8 ++- sdk/python/pulumi_minio/iam_group.py | 4 +- sdk/python/pulumi_minio/iam_group_policy.py | 24 +++---- .../pulumi_minio/iam_group_user_attachment.py | 16 ++--- sdk/python/pulumi_minio/iam_policy.py | 8 ++- .../pulumi_minio/iam_service_account.py | 6 +- sdk/python/pulumi_minio/iam_user.py | 18 +++--- .../iam_user_policy_attachment.py | 62 ------------------- sdk/python/pulumi_minio/s3_bucket.py | 12 ++-- sdk/python/pulumi_minio/s3_object.py | 8 +-- 53 files changed, 235 insertions(+), 481 deletions(-) diff --git a/.ci-mgmt.yaml b/.ci-mgmt.yaml index 1ab7add..69088c8 100644 --- a/.ci-mgmt.yaml +++ b/.ci-mgmt.yaml @@ -9,6 +9,11 @@ env: skipWindowsArmBuild: true makeTemplate: bridged plugins: + - name: terraform + version: "1.0.16" + kind: converter + - name: aws version: "4.10.0" team: ecosystem +pulumiConvert: 1 diff --git a/Makefile b/Makefile index 558c539..d538fd3 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ VERSION := $(shell pulumictl get version) JAVA_GEN := pulumi-java-gen TESTPARALLELISM := 10 WORKING_DIR := $(shell pwd) -PULUMI_CONVERT := 0 +PULUMI_CONVERT := 1 development: install_plugins provider build_sdks install_sdks @@ -111,6 +111,7 @@ install_nodejs_sdk: install_plugins: export PULUMI_HOME := $(WORKING_DIR)/.pulumi install_plugins: export PATH := $(WORKING_DIR)/.pulumi/bin:$(PATH) install_plugins: .pulumi/bin/pulumi + .pulumi/bin/pulumi plugin install converter terraform 1.0.16 .pulumi/bin/pulumi plugin install resource aws 4.10.0 lint_provider: provider diff --git a/provider/cmd/pulumi-resource-minio/schema.json b/provider/cmd/pulumi-resource-minio/schema.json index 47a853f..b311701 100644 --- a/provider/cmd/pulumi-resource-minio/schema.json +++ b/provider/cmd/pulumi-resource-minio/schema.json @@ -374,7 +374,7 @@ }, "resources": { "minio:index/iamGroup:IamGroup": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as minio from \"@pulumi/minio\";\n\nconst developer = new minio.IamGroup(\"developer\", {});\nexport const minioUserGroup = developer.groupName;\n```\n```python\nimport pulumi\nimport pulumi_minio as minio\n\ndeveloper = minio.IamGroup(\"developer\")\npulumi.export(\"minioUserGroup\", developer.group_name)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Minio = Pulumi.Minio;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var developer = new Minio.IamGroup(\"developer\");\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"minioUserGroup\"] = developer.GroupName,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-minio/sdk/go/minio\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tdeveloper, err := minio.NewIamGroup(ctx, \"developer\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"minioUserGroup\", developer.GroupName)\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.minio.IamGroup;\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 developer = new IamGroup(\"developer\");\n\n ctx.export(\"minioUserGroup\", developer.groupName());\n }\n}\n```\n```yaml\nresources:\n developer:\n type: minio:IamGroup\noutputs:\n minioUserGroup: ${developer.groupName}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as minio from \"@pulumi/minio\";\n\nconst developer = new minio.IamGroup(\"developer\", {name: \"developer\"});\nexport const minioUserGroup = developer.groupName;\n```\n```python\nimport pulumi\nimport pulumi_minio as minio\n\ndeveloper = minio.IamGroup(\"developer\", name=\"developer\")\npulumi.export(\"minioUserGroup\", developer.group_name)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Minio = Pulumi.Minio;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var developer = new Minio.IamGroup(\"developer\", new()\n {\n Name = \"developer\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"minioUserGroup\"] = developer.GroupName,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-minio/sdk/go/minio\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tdeveloper, err := minio.NewIamGroup(ctx, \"developer\", \u0026minio.IamGroupArgs{\n\t\t\tName: pulumi.String(\"developer\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"minioUserGroup\", developer.GroupName)\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.minio.IamGroup;\nimport com.pulumi.minio.IamGroupArgs;\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 developer = new IamGroup(\"developer\", IamGroupArgs.builder() \n .name(\"developer\")\n .build());\n\n ctx.export(\"minioUserGroup\", developer.groupName());\n }\n}\n```\n```yaml\nresources:\n developer:\n type: minio:IamGroup\n properties:\n name: developer\noutputs:\n minioUserGroup: ${developer.groupName}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "disableGroup": { "type": "boolean", @@ -500,7 +500,7 @@ } }, "minio:index/iamGroupPolicy:IamGroupPolicy": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as minio from \"@pulumi/minio\";\n\nconst developer = new minio.IamGroup(\"developer\", {});\nconst testPolicy = new minio.IamGroupPolicy(\"testPolicy\", {\n group: developer.id,\n policy: `{\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n}\n\n`,\n});\nexport const minioName = minio_iam_group_membership.developer.id;\nexport const minioPolicy = minio_iam_group_membership.developer.policy;\nexport const minioGroup = minio_iam_group_membership.developer.group;\n```\n```python\nimport pulumi\nimport pulumi_minio as minio\n\ndeveloper = minio.IamGroup(\"developer\")\ntest_policy = minio.IamGroupPolicy(\"testPolicy\",\n group=developer.id,\n policy=\"\"\"{\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n}\n\n\"\"\")\npulumi.export(\"minioName\", minio_iam_group_membership[\"developer\"][\"id\"])\npulumi.export(\"minioPolicy\", minio_iam_group_membership[\"developer\"][\"policy\"])\npulumi.export(\"minioGroup\", minio_iam_group_membership[\"developer\"][\"group\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Minio = Pulumi.Minio;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var developer = new Minio.IamGroup(\"developer\");\n\n var testPolicy = new Minio.IamGroupPolicy(\"testPolicy\", new()\n {\n Group = developer.Id,\n Policy = @\"{\n \"\"Version\"\":\"\"2012-10-17\"\",\n \"\"Statement\"\": [\n {\n \"\"Sid\"\":\"\"ListAllBucket\"\",\n \"\"Effect\"\": \"\"Allow\"\",\n \"\"Action\"\": [\"\"s3:PutObject\"\"],\n \"\"Principal\"\":\"\"*\"\",\n \"\"Resource\"\": \"\"arn:aws:s3:::state-terraform-s3/*\"\"\n }\n ]\n}\n\n\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"minioName\"] = minio_iam_group_membership.Developer.Id,\n [\"minioPolicy\"] = minio_iam_group_membership.Developer.Policy,\n [\"minioGroup\"] = minio_iam_group_membership.Developer.Group,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-minio/sdk/go/minio\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tdeveloper, err := minio.NewIamGroup(ctx, \"developer\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = minio.NewIamGroupPolicy(ctx, \"testPolicy\", \u0026minio.IamGroupPolicyArgs{\n\t\t\tGroup: developer.ID(),\n\t\t\tPolicy: pulumi.String(`{\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n}\n\n`),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"minioName\", minio_iam_group_membership.Developer.Id)\n\t\tctx.Export(\"minioPolicy\", minio_iam_group_membership.Developer.Policy)\n\t\tctx.Export(\"minioGroup\", minio_iam_group_membership.Developer.Group)\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.minio.IamGroup;\nimport com.pulumi.minio.IamGroupPolicy;\nimport com.pulumi.minio.IamGroupPolicyArgs;\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 developer = new IamGroup(\"developer\");\n\n var testPolicy = new IamGroupPolicy(\"testPolicy\", IamGroupPolicyArgs.builder() \n .group(developer.id())\n .policy(\"\"\"\n{\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n}\n\n \"\"\")\n .build());\n\n ctx.export(\"minioName\", minio_iam_group_membership.developer().id());\n ctx.export(\"minioPolicy\", minio_iam_group_membership.developer().policy());\n ctx.export(\"minioGroup\", minio_iam_group_membership.developer().group());\n }\n}\n```\n```yaml\nresources:\n developer:\n type: minio:IamGroup\n testPolicy:\n type: minio:IamGroupPolicy\n properties:\n group: ${developer.id}\n policy: |+\n {\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n }\n\noutputs:\n minioName: ${minio_iam_group_membership.developer.id}\n minioPolicy: ${minio_iam_group_membership.developer.policy}\n minioGroup: ${minio_iam_group_membership.developer.group}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as minio from \"@pulumi/minio\";\n\nconst developer = new minio.IamGroup(\"developer\", {name: \"developer\"});\nconst testPolicy = new minio.IamGroupPolicy(\"test_policy\", {\n name: \"state-terraform-s3\",\n group: developer.id,\n policy: `{\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n}\n`,\n});\nexport const minioName = developerMinioIamGroupMembership.id;\nexport const minioPolicy = developerMinioIamGroupMembership.policy;\nexport const minioGroup = developerMinioIamGroupMembership.group;\n```\n```python\nimport pulumi\nimport pulumi_minio as minio\n\ndeveloper = minio.IamGroup(\"developer\", name=\"developer\")\ntest_policy = minio.IamGroupPolicy(\"test_policy\",\n name=\"state-terraform-s3\",\n group=developer.id,\n policy=\"\"\"{\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n}\n\"\"\")\npulumi.export(\"minioName\", developer_minio_iam_group_membership[\"id\"])\npulumi.export(\"minioPolicy\", developer_minio_iam_group_membership[\"policy\"])\npulumi.export(\"minioGroup\", developer_minio_iam_group_membership[\"group\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Minio = Pulumi.Minio;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var developer = new Minio.IamGroup(\"developer\", new()\n {\n Name = \"developer\",\n });\n\n var testPolicy = new Minio.IamGroupPolicy(\"test_policy\", new()\n {\n Name = \"state-terraform-s3\",\n Group = developer.Id,\n Policy = @\"{\n \"\"Version\"\":\"\"2012-10-17\"\",\n \"\"Statement\"\": [\n {\n \"\"Sid\"\":\"\"ListAllBucket\"\",\n \"\"Effect\"\": \"\"Allow\"\",\n \"\"Action\"\": [\"\"s3:PutObject\"\"],\n \"\"Principal\"\":\"\"*\"\",\n \"\"Resource\"\": \"\"arn:aws:s3:::state-terraform-s3/*\"\"\n }\n ]\n}\n\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"minioName\"] = developerMinioIamGroupMembership.Id,\n [\"minioPolicy\"] = developerMinioIamGroupMembership.Policy,\n [\"minioGroup\"] = developerMinioIamGroupMembership.Group,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-minio/sdk/go/minio\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tdeveloper, err := minio.NewIamGroup(ctx, \"developer\", \u0026minio.IamGroupArgs{\n\t\t\tName: pulumi.String(\"developer\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = minio.NewIamGroupPolicy(ctx, \"test_policy\", \u0026minio.IamGroupPolicyArgs{\n\t\t\tName: pulumi.String(\"state-terraform-s3\"),\n\t\t\tGroup: developer.ID(),\n\t\t\tPolicy: pulumi.String(`{\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n}\n`),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"minioName\", developerMinioIamGroupMembership.Id)\n\t\tctx.Export(\"minioPolicy\", developerMinioIamGroupMembership.Policy)\n\t\tctx.Export(\"minioGroup\", developerMinioIamGroupMembership.Group)\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.minio.IamGroup;\nimport com.pulumi.minio.IamGroupArgs;\nimport com.pulumi.minio.IamGroupPolicy;\nimport com.pulumi.minio.IamGroupPolicyArgs;\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 developer = new IamGroup(\"developer\", IamGroupArgs.builder() \n .name(\"developer\")\n .build());\n\n var testPolicy = new IamGroupPolicy(\"testPolicy\", IamGroupPolicyArgs.builder() \n .name(\"state-terraform-s3\")\n .group(developer.id())\n .policy(\"\"\"\n{\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n}\n \"\"\")\n .build());\n\n ctx.export(\"minioName\", developerMinioIamGroupMembership.id());\n ctx.export(\"minioPolicy\", developerMinioIamGroupMembership.policy());\n ctx.export(\"minioGroup\", developerMinioIamGroupMembership.group());\n }\n}\n```\n```yaml\nresources:\n developer:\n type: minio:IamGroup\n properties:\n name: developer\n testPolicy:\n type: minio:IamGroupPolicy\n name: test_policy\n properties:\n name: state-terraform-s3\n group: ${developer.id}\n policy: |\n {\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n }\noutputs:\n minioName: ${developerMinioIamGroupMembership.id}\n minioPolicy: ${developerMinioIamGroupMembership.policy}\n minioGroup: ${developerMinioIamGroupMembership.group}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "group": { "type": "string" @@ -564,7 +564,7 @@ } }, "minio:index/iamGroupPolicyAttachment:IamGroupPolicyAttachment": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.minio.IamGroup;\nimport com.pulumi.minio.IamGroupPolicy;\nimport com.pulumi.minio.IamGroupPolicyArgs;\nimport com.pulumi.minio.IamGroupPolicyAttachment;\nimport com.pulumi.minio.IamGroupPolicyAttachmentArgs;\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 developerIamGroup = new IamGroup(\"developerIamGroup\");\n\n var testPolicy = new IamGroupPolicy(\"testPolicy\", IamGroupPolicyArgs.builder() \n .policy(\"\"\"\n{\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n}\n \"\"\")\n .build());\n\n var developerIamGroupPolicyAttachment = new IamGroupPolicyAttachment(\"developerIamGroupPolicyAttachment\", IamGroupPolicyAttachmentArgs.builder() \n .groupName(minio_iam_group.group().name())\n .policyName(minio_iam_policy.test_policy().id())\n .build());\n\n ctx.export(\"minioName\", developerIamGroupPolicyAttachment.id());\n ctx.export(\"minioUsers\", developerIamGroupPolicyAttachment.groupName());\n ctx.export(\"minioGroup\", developerIamGroupPolicyAttachment.policyName());\n var developerIndex_iamGroupPolicyAttachmentIamGroupPolicyAttachment = new IamGroupPolicyAttachment(\"developerIndex/iamGroupPolicyAttachmentIamGroupPolicyAttachment\", IamGroupPolicyAttachmentArgs.builder() \n .userName(\"OU=Unit,DC=example,DC=com\")\n .policyName(minio_iam_policy.test_policy().id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n developerIamGroup:\n type: minio:IamGroup\n testPolicy:\n type: minio:IamGroupPolicy\n properties:\n policy: |\n {\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n }\n developerIamGroupPolicyAttachment:\n type: minio:IamGroupPolicyAttachment\n properties:\n groupName: ${minio_iam_group.group.name}\n policyName: ${minio_iam_policy.test_policy.id}\n developerIndex/iamGroupPolicyAttachmentIamGroupPolicyAttachment:\n type: minio:IamGroupPolicyAttachment\n properties:\n userName: OU=Unit,DC=example,DC=com\n policyName: ${minio_iam_policy.test_policy.id}\noutputs:\n minioName: ${developerIamGroupPolicyAttachment.id}\n minioUsers: ${developerIamGroupPolicyAttachment.groupName}\n minioGroup: ${developerIamGroupPolicyAttachment.policyName} # Example using an LDAP Group instead of a static MinIO group\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "## Example Usage\n\n", "properties": { "groupName": { "type": "string" @@ -607,7 +607,7 @@ } }, "minio:index/iamGroupUserAttachment:IamGroupUserAttachment": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as minio from \"@pulumi/minio\";\n\nconst developerIamGroup = new minio.IamGroup(\"developerIamGroup\", {});\nconst userOne = new minio.IamUser(\"userOne\", {});\nconst developerIamGroupUserAttachment = new minio.IamGroupUserAttachment(\"developerIamGroupUserAttachment\", {\n groupName: minio_iam_group.group.name,\n userName: userOne.name,\n});\nexport const minioName = developerIamGroupUserAttachment.id;\nexport const minioUsers = developerIamGroupUserAttachment.groupName;\nexport const minioGroup = developerIamGroupUserAttachment.userName;\n```\n```python\nimport pulumi\nimport pulumi_minio as minio\n\ndeveloper_iam_group = minio.IamGroup(\"developerIamGroup\")\nuser_one = minio.IamUser(\"userOne\")\ndeveloper_iam_group_user_attachment = minio.IamGroupUserAttachment(\"developerIamGroupUserAttachment\",\n group_name=minio_iam_group[\"group\"][\"name\"],\n user_name=user_one.name)\npulumi.export(\"minioName\", developer_iam_group_user_attachment.id)\npulumi.export(\"minioUsers\", developer_iam_group_user_attachment.group_name)\npulumi.export(\"minioGroup\", developer_iam_group_user_attachment.user_name)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Minio = Pulumi.Minio;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var developerIamGroup = new Minio.IamGroup(\"developerIamGroup\");\n\n var userOne = new Minio.IamUser(\"userOne\");\n\n var developerIamGroupUserAttachment = new Minio.IamGroupUserAttachment(\"developerIamGroupUserAttachment\", new()\n {\n GroupName = minio_iam_group.Group.Name,\n UserName = userOne.Name,\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"minioName\"] = developerIamGroupUserAttachment.Id,\n [\"minioUsers\"] = developerIamGroupUserAttachment.GroupName,\n [\"minioGroup\"] = developerIamGroupUserAttachment.UserName,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-minio/sdk/go/minio\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := minio.NewIamGroup(ctx, \"developerIamGroup\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tuserOne, err := minio.NewIamUser(ctx, \"userOne\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tdeveloperIamGroupUserAttachment, err := minio.NewIamGroupUserAttachment(ctx, \"developerIamGroupUserAttachment\", \u0026minio.IamGroupUserAttachmentArgs{\n\t\t\tGroupName: pulumi.Any(minio_iam_group.Group.Name),\n\t\t\tUserName: userOne.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"minioName\", developerIamGroupUserAttachment.ID())\n\t\tctx.Export(\"minioUsers\", developerIamGroupUserAttachment.GroupName)\n\t\tctx.Export(\"minioGroup\", developerIamGroupUserAttachment.UserName)\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.minio.IamGroup;\nimport com.pulumi.minio.IamUser;\nimport com.pulumi.minio.IamGroupUserAttachment;\nimport com.pulumi.minio.IamGroupUserAttachmentArgs;\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 developerIamGroup = new IamGroup(\"developerIamGroup\");\n\n var userOne = new IamUser(\"userOne\");\n\n var developerIamGroupUserAttachment = new IamGroupUserAttachment(\"developerIamGroupUserAttachment\", IamGroupUserAttachmentArgs.builder() \n .groupName(minio_iam_group.group().name())\n .userName(userOne.name())\n .build());\n\n ctx.export(\"minioName\", developerIamGroupUserAttachment.id());\n ctx.export(\"minioUsers\", developerIamGroupUserAttachment.groupName());\n ctx.export(\"minioGroup\", developerIamGroupUserAttachment.userName());\n }\n}\n```\n```yaml\nresources:\n developerIamGroup:\n type: minio:IamGroup\n userOne:\n type: minio:IamUser\n developerIamGroupUserAttachment:\n type: minio:IamGroupUserAttachment\n properties:\n groupName: ${minio_iam_group.group.name}\n userName: ${userOne.name}\noutputs:\n minioName: ${developerIamGroupUserAttachment.id}\n minioUsers: ${developerIamGroupUserAttachment.groupName}\n minioGroup: ${developerIamGroupUserAttachment.userName}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as minio from \"@pulumi/minio\";\n\nconst developer = new minio.IamGroup(\"developer\", {name: \"developer\"});\nconst userOne = new minio.IamUser(\"user_one\", {name: \"test-user\"});\nconst developerIamGroupUserAttachment = new minio.IamGroupUserAttachment(\"developer\", {\n groupName: group.name,\n userName: userOne.name,\n});\nexport const minioName = developerIamGroupUserAttachment.id;\nexport const minioUsers = developerIamGroupUserAttachment.groupName;\nexport const minioGroup = developerIamGroupUserAttachment.userName;\n```\n```python\nimport pulumi\nimport pulumi_minio as minio\n\ndeveloper = minio.IamGroup(\"developer\", name=\"developer\")\nuser_one = minio.IamUser(\"user_one\", name=\"test-user\")\ndeveloper_iam_group_user_attachment = minio.IamGroupUserAttachment(\"developer\",\n group_name=group[\"name\"],\n user_name=user_one.name)\npulumi.export(\"minioName\", developer_iam_group_user_attachment.id)\npulumi.export(\"minioUsers\", developer_iam_group_user_attachment.group_name)\npulumi.export(\"minioGroup\", developer_iam_group_user_attachment.user_name)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Minio = Pulumi.Minio;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var developer = new Minio.IamGroup(\"developer\", new()\n {\n Name = \"developer\",\n });\n\n var userOne = new Minio.IamUser(\"user_one\", new()\n {\n Name = \"test-user\",\n });\n\n var developerIamGroupUserAttachment = new Minio.IamGroupUserAttachment(\"developer\", new()\n {\n GroupName = @group.Name,\n UserName = userOne.Name,\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"minioName\"] = developerIamGroupUserAttachment.Id,\n [\"minioUsers\"] = developerIamGroupUserAttachment.GroupName,\n [\"minioGroup\"] = developerIamGroupUserAttachment.UserName,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-minio/sdk/go/minio\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := minio.NewIamGroup(ctx, \"developer\", \u0026minio.IamGroupArgs{\n\t\t\tName: pulumi.String(\"developer\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tuserOne, err := minio.NewIamUser(ctx, \"user_one\", \u0026minio.IamUserArgs{\n\t\t\tName: pulumi.String(\"test-user\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tdeveloperIamGroupUserAttachment, err := minio.NewIamGroupUserAttachment(ctx, \"developer\", \u0026minio.IamGroupUserAttachmentArgs{\n\t\t\tGroupName: pulumi.Any(group.Name),\n\t\t\tUserName: userOne.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"minioName\", developerIamGroupUserAttachment.ID())\n\t\tctx.Export(\"minioUsers\", developerIamGroupUserAttachment.GroupName)\n\t\tctx.Export(\"minioGroup\", developerIamGroupUserAttachment.UserName)\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.minio.IamGroup;\nimport com.pulumi.minio.IamGroupArgs;\nimport com.pulumi.minio.IamUser;\nimport com.pulumi.minio.IamUserArgs;\nimport com.pulumi.minio.IamGroupUserAttachment;\nimport com.pulumi.minio.IamGroupUserAttachmentArgs;\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 developer = new IamGroup(\"developer\", IamGroupArgs.builder() \n .name(\"developer\")\n .build());\n\n var userOne = new IamUser(\"userOne\", IamUserArgs.builder() \n .name(\"test-user\")\n .build());\n\n var developerIamGroupUserAttachment = new IamGroupUserAttachment(\"developerIamGroupUserAttachment\", IamGroupUserAttachmentArgs.builder() \n .groupName(group.name())\n .userName(userOne.name())\n .build());\n\n ctx.export(\"minioName\", developerIamGroupUserAttachment.id());\n ctx.export(\"minioUsers\", developerIamGroupUserAttachment.groupName());\n ctx.export(\"minioGroup\", developerIamGroupUserAttachment.userName());\n }\n}\n```\n```yaml\nresources:\n developer:\n type: minio:IamGroup\n properties:\n name: developer\n userOne:\n type: minio:IamUser\n name: user_one\n properties:\n name: test-user\n developerIamGroupUserAttachment:\n type: minio:IamGroupUserAttachment\n name: developer\n properties:\n groupName: ${group.name}\n userName: ${userOne.name}\noutputs:\n minioName: ${developerIamGroupUserAttachment.id}\n minioUsers: ${developerIamGroupUserAttachment.groupName}\n minioGroup: ${developerIamGroupUserAttachment.userName}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "groupName": { "type": "string" @@ -650,7 +650,7 @@ } }, "minio:index/iamPolicy:IamPolicy": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as minio from \"@pulumi/minio\";\n\nconst testPolicy = new minio.IamPolicy(\"testPolicy\", {policy: `{\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n}\n`});\nexport const minioId = testPolicy.id;\nexport const minioPolicy = testPolicy.policy;\n```\n```python\nimport pulumi\nimport pulumi_minio as minio\n\ntest_policy = minio.IamPolicy(\"testPolicy\", policy=\"\"\"{\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n}\n\"\"\")\npulumi.export(\"minioId\", test_policy.id)\npulumi.export(\"minioPolicy\", test_policy.policy)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Minio = Pulumi.Minio;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var testPolicy = new Minio.IamPolicy(\"testPolicy\", new()\n {\n Policy = @\"{\n \"\"Version\"\":\"\"2012-10-17\"\",\n \"\"Statement\"\": [\n {\n \"\"Sid\"\":\"\"ListAllBucket\"\",\n \"\"Effect\"\": \"\"Allow\"\",\n \"\"Action\"\": [\"\"s3:PutObject\"\"],\n \"\"Principal\"\":\"\"*\"\",\n \"\"Resource\"\": \"\"arn:aws:s3:::state-terraform-s3/*\"\"\n }\n ]\n}\n\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"minioId\"] = testPolicy.Id,\n [\"minioPolicy\"] = testPolicy.Policy,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-minio/sdk/go/minio\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttestPolicy, err := minio.NewIamPolicy(ctx, \"testPolicy\", \u0026minio.IamPolicyArgs{\n\t\t\tPolicy: pulumi.String(`{\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n}\n`),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"minioId\", testPolicy.ID())\n\t\tctx.Export(\"minioPolicy\", testPolicy.Policy)\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.minio.IamPolicy;\nimport com.pulumi.minio.IamPolicyArgs;\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 testPolicy = new IamPolicy(\"testPolicy\", IamPolicyArgs.builder() \n .policy(\"\"\"\n{\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n}\n \"\"\")\n .build());\n\n ctx.export(\"minioId\", testPolicy.id());\n ctx.export(\"minioPolicy\", testPolicy.policy());\n }\n}\n```\n```yaml\nresources:\n testPolicy:\n type: minio:IamPolicy\n properties:\n policy: |\n {\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n }\noutputs:\n minioId: ${testPolicy.id}\n minioPolicy: ${testPolicy.policy}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as minio from \"@pulumi/minio\";\n\nconst testPolicy = new minio.IamPolicy(\"test_policy\", {\n name: \"state-terraform-s3\",\n policy: `{\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n}\n`,\n});\nexport const minioId = testPolicy.id;\nexport const minioPolicy = testPolicy.policy;\n```\n```python\nimport pulumi\nimport pulumi_minio as minio\n\ntest_policy = minio.IamPolicy(\"test_policy\",\n name=\"state-terraform-s3\",\n policy=\"\"\"{\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n}\n\"\"\")\npulumi.export(\"minioId\", test_policy.id)\npulumi.export(\"minioPolicy\", test_policy.policy)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Minio = Pulumi.Minio;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var testPolicy = new Minio.IamPolicy(\"test_policy\", new()\n {\n Name = \"state-terraform-s3\",\n Policy = @\"{\n \"\"Version\"\":\"\"2012-10-17\"\",\n \"\"Statement\"\": [\n {\n \"\"Sid\"\":\"\"ListAllBucket\"\",\n \"\"Effect\"\": \"\"Allow\"\",\n \"\"Action\"\": [\"\"s3:PutObject\"\"],\n \"\"Principal\"\":\"\"*\"\",\n \"\"Resource\"\": \"\"arn:aws:s3:::state-terraform-s3/*\"\"\n }\n ]\n}\n\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"minioId\"] = testPolicy.Id,\n [\"minioPolicy\"] = testPolicy.Policy,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-minio/sdk/go/minio\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttestPolicy, err := minio.NewIamPolicy(ctx, \"test_policy\", \u0026minio.IamPolicyArgs{\n\t\t\tName: pulumi.String(\"state-terraform-s3\"),\n\t\t\tPolicy: pulumi.String(`{\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n}\n`),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"minioId\", testPolicy.ID())\n\t\tctx.Export(\"minioPolicy\", testPolicy.Policy)\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.minio.IamPolicy;\nimport com.pulumi.minio.IamPolicyArgs;\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 testPolicy = new IamPolicy(\"testPolicy\", IamPolicyArgs.builder() \n .name(\"state-terraform-s3\")\n .policy(\"\"\"\n{\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n}\n \"\"\")\n .build());\n\n ctx.export(\"minioId\", testPolicy.id());\n ctx.export(\"minioPolicy\", testPolicy.policy());\n }\n}\n```\n```yaml\nresources:\n testPolicy:\n type: minio:IamPolicy\n name: test_policy\n properties:\n name: state-terraform-s3\n policy: |\n {\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n }\noutputs:\n minioId: ${testPolicy.id}\n minioPolicy: ${testPolicy.policy}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "name": { "type": "string" @@ -701,7 +701,7 @@ } }, "minio:index/iamServiceAccount:IamServiceAccount": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as minio from \"@pulumi/minio\";\n\nconst test = new minio.IamUser(\"test\", {\n forceDestroy: true,\n tags: {\n \"tag-key\": \"tag-value\",\n },\n});\nconst testServiceAccount = new minio.IamServiceAccount(\"testServiceAccount\", {targetUser: test.name});\nexport const minioUser = testServiceAccount.accessKey;\nexport const minioPassword = testServiceAccount.secretKey;\n```\n```python\nimport pulumi\nimport pulumi_minio as minio\n\ntest = minio.IamUser(\"test\",\n force_destroy=True,\n tags={\n \"tag-key\": \"tag-value\",\n })\ntest_service_account = minio.IamServiceAccount(\"testServiceAccount\", target_user=test.name)\npulumi.export(\"minioUser\", test_service_account.access_key)\npulumi.export(\"minioPassword\", test_service_account.secret_key)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Minio = Pulumi.Minio;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = new Minio.IamUser(\"test\", new()\n {\n ForceDestroy = true,\n Tags = \n {\n { \"tag-key\", \"tag-value\" },\n },\n });\n\n var testServiceAccount = new Minio.IamServiceAccount(\"testServiceAccount\", new()\n {\n TargetUser = test.Name,\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"minioUser\"] = testServiceAccount.AccessKey,\n [\"minioPassword\"] = testServiceAccount.SecretKey,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-minio/sdk/go/minio\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttest, err := minio.NewIamUser(ctx, \"test\", \u0026minio.IamUserArgs{\n\t\t\tForceDestroy: pulumi.Bool(true),\n\t\t\tTags: pulumi.Map{\n\t\t\t\t\"tag-key\": pulumi.Any(\"tag-value\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttestServiceAccount, err := minio.NewIamServiceAccount(ctx, \"testServiceAccount\", \u0026minio.IamServiceAccountArgs{\n\t\t\tTargetUser: test.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"minioUser\", testServiceAccount.AccessKey)\n\t\tctx.Export(\"minioPassword\", testServiceAccount.SecretKey)\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.minio.IamUser;\nimport com.pulumi.minio.IamUserArgs;\nimport com.pulumi.minio.IamServiceAccount;\nimport com.pulumi.minio.IamServiceAccountArgs;\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 test = new IamUser(\"test\", IamUserArgs.builder() \n .forceDestroy(true)\n .tags(Map.of(\"tag-key\", \"tag-value\"))\n .build());\n\n var testServiceAccount = new IamServiceAccount(\"testServiceAccount\", IamServiceAccountArgs.builder() \n .targetUser(test.name())\n .build());\n\n ctx.export(\"minioUser\", testServiceAccount.accessKey());\n ctx.export(\"minioPassword\", testServiceAccount.secretKey());\n }\n}\n```\n```yaml\nresources:\n test:\n type: minio:IamUser\n properties:\n forceDestroy: true\n tags:\n tag-key: tag-value\n testServiceAccount:\n type: minio:IamServiceAccount\n properties:\n targetUser: ${test.name}\noutputs:\n minioUser: ${testServiceAccount.accessKey}\n minioPassword: ${testServiceAccount.secretKey}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as minio from \"@pulumi/minio\";\n\nconst test = new minio.IamUser(\"test\", {\n name: \"test\",\n forceDestroy: true,\n tags: {\n \"tag-key\": \"tag-value\",\n },\n});\nconst testServiceAccount = new minio.IamServiceAccount(\"test_service_account\", {targetUser: test.name});\nexport const minioUser = testServiceAccount.accessKey;\nexport const minioPassword = testServiceAccount.secretKey;\n```\n```python\nimport pulumi\nimport pulumi_minio as minio\n\ntest = minio.IamUser(\"test\",\n name=\"test\",\n force_destroy=True,\n tags={\n \"tag-key\": \"tag-value\",\n })\ntest_service_account = minio.IamServiceAccount(\"test_service_account\", target_user=test.name)\npulumi.export(\"minioUser\", test_service_account.access_key)\npulumi.export(\"minioPassword\", test_service_account.secret_key)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Minio = Pulumi.Minio;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = new Minio.IamUser(\"test\", new()\n {\n Name = \"test\",\n ForceDestroy = true,\n Tags = \n {\n { \"tag-key\", \"tag-value\" },\n },\n });\n\n var testServiceAccount = new Minio.IamServiceAccount(\"test_service_account\", new()\n {\n TargetUser = test.Name,\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"minioUser\"] = testServiceAccount.AccessKey,\n [\"minioPassword\"] = testServiceAccount.SecretKey,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-minio/sdk/go/minio\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttest, err := minio.NewIamUser(ctx, \"test\", \u0026minio.IamUserArgs{\n\t\t\tName: pulumi.String(\"test\"),\n\t\t\tForceDestroy: pulumi.Bool(true),\n\t\t\tTags: pulumi.Map{\n\t\t\t\t\"tag-key\": pulumi.Any(\"tag-value\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttestServiceAccount, err := minio.NewIamServiceAccount(ctx, \"test_service_account\", \u0026minio.IamServiceAccountArgs{\n\t\t\tTargetUser: test.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"minioUser\", testServiceAccount.AccessKey)\n\t\tctx.Export(\"minioPassword\", testServiceAccount.SecretKey)\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.minio.IamUser;\nimport com.pulumi.minio.IamUserArgs;\nimport com.pulumi.minio.IamServiceAccount;\nimport com.pulumi.minio.IamServiceAccountArgs;\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 test = new IamUser(\"test\", IamUserArgs.builder() \n .name(\"test\")\n .forceDestroy(true)\n .tags(Map.of(\"tag-key\", \"tag-value\"))\n .build());\n\n var testServiceAccount = new IamServiceAccount(\"testServiceAccount\", IamServiceAccountArgs.builder() \n .targetUser(test.name())\n .build());\n\n ctx.export(\"minioUser\", testServiceAccount.accessKey());\n ctx.export(\"minioPassword\", testServiceAccount.secretKey());\n }\n}\n```\n```yaml\nresources:\n test:\n type: minio:IamUser\n properties:\n name: test\n forceDestroy: true\n tags:\n tag-key: tag-value\n testServiceAccount:\n type: minio:IamServiceAccount\n name: test_service_account\n properties:\n targetUser: ${test.name}\noutputs:\n minioUser: ${testServiceAccount.accessKey}\n minioPassword: ${testServiceAccount.secretKey}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "accessKey": { "type": "string" @@ -790,7 +790,7 @@ } }, "minio:index/iamUser:IamUser": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as minio from \"@pulumi/minio\";\n\nconst testIamUser = new minio.IamUser(\"testIamUser\", {\n forceDestroy: true,\n tags: {\n \"tag-key\": \"tag-value\",\n },\n});\nexport const test = testIamUser.id;\nexport const status = testIamUser.status;\nexport const secret = testIamUser.secret;\n```\n```python\nimport pulumi\nimport pulumi_minio as minio\n\ntest_iam_user = minio.IamUser(\"testIamUser\",\n force_destroy=True,\n tags={\n \"tag-key\": \"tag-value\",\n })\npulumi.export(\"test\", test_iam_user.id)\npulumi.export(\"status\", test_iam_user.status)\npulumi.export(\"secret\", test_iam_user.secret)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Minio = Pulumi.Minio;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var testIamUser = new Minio.IamUser(\"testIamUser\", new()\n {\n ForceDestroy = true,\n Tags = \n {\n { \"tag-key\", \"tag-value\" },\n },\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"test\"] = testIamUser.Id,\n [\"status\"] = testIamUser.Status,\n [\"secret\"] = testIamUser.Secret,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-minio/sdk/go/minio\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttestIamUser, err := minio.NewIamUser(ctx, \"testIamUser\", \u0026minio.IamUserArgs{\n\t\t\tForceDestroy: pulumi.Bool(true),\n\t\t\tTags: pulumi.Map{\n\t\t\t\t\"tag-key\": pulumi.Any(\"tag-value\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"test\", testIamUser.ID())\n\t\tctx.Export(\"status\", testIamUser.Status)\n\t\tctx.Export(\"secret\", testIamUser.Secret)\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.minio.IamUser;\nimport com.pulumi.minio.IamUserArgs;\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 testIamUser = new IamUser(\"testIamUser\", IamUserArgs.builder() \n .forceDestroy(true)\n .tags(Map.of(\"tag-key\", \"tag-value\"))\n .build());\n\n ctx.export(\"test\", testIamUser.id());\n ctx.export(\"status\", testIamUser.status());\n ctx.export(\"secret\", testIamUser.secret());\n }\n}\n```\n```yaml\nresources:\n testIamUser:\n type: minio:IamUser\n properties:\n forceDestroy: true\n tags:\n tag-key: tag-value\noutputs:\n test: ${testIamUser.id}\n status: ${testIamUser.status}\n secret: ${testIamUser.secret}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as minio from \"@pulumi/minio\";\n\nexport = async () =\u003e {\n const test = new minio.IamUser(\"test\", {\n name: \"test\",\n forceDestroy: true,\n tags: {\n \"tag-key\": \"tag-value\",\n },\n });\n return {\n test: test.id,\n status: test.status,\n secret: test.secret,\n };\n}\n```\n```python\nimport pulumi\nimport pulumi_minio as minio\n\ntest = minio.IamUser(\"test\",\n name=\"test\",\n force_destroy=True,\n tags={\n \"tag-key\": \"tag-value\",\n })\npulumi.export(\"test\", test.id)\npulumi.export(\"status\", test.status)\npulumi.export(\"secret\", test.secret)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Minio = Pulumi.Minio;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = new Minio.IamUser(\"test\", new()\n {\n Name = \"test\",\n ForceDestroy = true,\n Tags = \n {\n { \"tag-key\", \"tag-value\" },\n },\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"test\"] = test.Id,\n [\"status\"] = test.Status,\n [\"secret\"] = test.Secret,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-minio/sdk/go/minio\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttest, err := minio.NewIamUser(ctx, \"test\", \u0026minio.IamUserArgs{\n\t\t\tName: pulumi.String(\"test\"),\n\t\t\tForceDestroy: pulumi.Bool(true),\n\t\t\tTags: pulumi.Map{\n\t\t\t\t\"tag-key\": pulumi.Any(\"tag-value\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"test\", test.ID())\n\t\tctx.Export(\"status\", test.Status)\n\t\tctx.Export(\"secret\", test.Secret)\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.minio.IamUser;\nimport com.pulumi.minio.IamUserArgs;\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 test = new IamUser(\"test\", IamUserArgs.builder() \n .name(\"test\")\n .forceDestroy(true)\n .tags(Map.of(\"tag-key\", \"tag-value\"))\n .build());\n\n ctx.export(\"test\", test.id());\n ctx.export(\"status\", test.status());\n ctx.export(\"secret\", test.secret());\n }\n}\n```\n```yaml\nresources:\n test:\n type: minio:IamUser\n properties:\n name: test\n forceDestroy: true\n tags:\n tag-key: tag-value\noutputs:\n test: ${test.id}\n status: ${test.status}\n secret: ${test.secret}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "disableUser": { "type": "boolean", @@ -891,7 +891,7 @@ } }, "minio:index/iamUserPolicyAttachment:IamUserPolicyAttachment": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as minio from \"@pulumi/minio\";\n\nconst testUser = new minio.IamUser(\"testUser\", {});\nconst testPolicy = new minio.IamPolicy(\"testPolicy\", {policy: `{\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n}\n`});\nconst developerIamUserPolicyAttachment = new minio.IamUserPolicyAttachment(\"developerIamUserPolicyAttachment\", {\n userName: testUser.id,\n policyName: testPolicy.id,\n});\nexport const minioName = developerIamUserPolicyAttachment.id;\nexport const minioUsers = developerIamUserPolicyAttachment.userName;\nexport const minioGroup = developerIamUserPolicyAttachment.policyName;\nconst developerIndex_iamUserPolicyAttachmentIamUserPolicyAttachment = new minio.IamUserPolicyAttachment(\"developerIndex/iamUserPolicyAttachmentIamUserPolicyAttachment\", {\n userName: \"CN=My User,OU=Unit,DC=example,DC=com\",\n policyName: testPolicy.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_minio as minio\n\ntest_user = minio.IamUser(\"testUser\")\ntest_policy = minio.IamPolicy(\"testPolicy\", policy=\"\"\"{\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n}\n\"\"\")\ndeveloper_iam_user_policy_attachment = minio.IamUserPolicyAttachment(\"developerIamUserPolicyAttachment\",\n user_name=test_user.id,\n policy_name=test_policy.id)\npulumi.export(\"minioName\", developer_iam_user_policy_attachment.id)\npulumi.export(\"minioUsers\", developer_iam_user_policy_attachment.user_name)\npulumi.export(\"minioGroup\", developer_iam_user_policy_attachment.policy_name)\ndeveloper_index_iam_user_policy_attachment_iam_user_policy_attachment = minio.IamUserPolicyAttachment(\"developerIndex/iamUserPolicyAttachmentIamUserPolicyAttachment\",\n user_name=\"CN=My User,OU=Unit,DC=example,DC=com\",\n policy_name=test_policy.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Minio = Pulumi.Minio;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var testUser = new Minio.IamUser(\"testUser\");\n\n var testPolicy = new Minio.IamPolicy(\"testPolicy\", new()\n {\n Policy = @\"{\n \"\"Version\"\":\"\"2012-10-17\"\",\n \"\"Statement\"\": [\n {\n \"\"Sid\"\":\"\"ListAllBucket\"\",\n \"\"Effect\"\": \"\"Allow\"\",\n \"\"Action\"\": [\"\"s3:PutObject\"\"],\n \"\"Principal\"\":\"\"*\"\",\n \"\"Resource\"\": \"\"arn:aws:s3:::state-terraform-s3/*\"\"\n }\n ]\n}\n\",\n });\n\n var developerIamUserPolicyAttachment = new Minio.IamUserPolicyAttachment(\"developerIamUserPolicyAttachment\", new()\n {\n UserName = testUser.Id,\n PolicyName = testPolicy.Id,\n });\n\n var developerIndex_iamUserPolicyAttachmentIamUserPolicyAttachment = new Minio.IamUserPolicyAttachment(\"developerIndex/iamUserPolicyAttachmentIamUserPolicyAttachment\", new()\n {\n UserName = \"CN=My User,OU=Unit,DC=example,DC=com\",\n PolicyName = testPolicy.Id,\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"minioName\"] = developerIamUserPolicyAttachment.Id,\n [\"minioUsers\"] = developerIamUserPolicyAttachment.UserName,\n [\"minioGroup\"] = developerIamUserPolicyAttachment.PolicyName,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-minio/sdk/go/minio\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttestUser, err := minio.NewIamUser(ctx, \"testUser\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttestPolicy, err := minio.NewIamPolicy(ctx, \"testPolicy\", \u0026minio.IamPolicyArgs{\n\t\t\tPolicy: pulumi.String(`{\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n}\n`),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tdeveloperIamUserPolicyAttachment, err := minio.NewIamUserPolicyAttachment(ctx, \"developerIamUserPolicyAttachment\", \u0026minio.IamUserPolicyAttachmentArgs{\n\t\t\tUserName: testUser.ID(),\n\t\t\tPolicyName: testPolicy.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"minioName\", developerIamUserPolicyAttachment.ID())\n\t\tctx.Export(\"minioUsers\", developerIamUserPolicyAttachment.UserName)\n\t\tctx.Export(\"minioGroup\", developerIamUserPolicyAttachment.PolicyName)\n\t\t_, err = minio.NewIamUserPolicyAttachment(ctx, \"developerIndex/iamUserPolicyAttachmentIamUserPolicyAttachment\", \u0026minio.IamUserPolicyAttachmentArgs{\n\t\t\tUserName: pulumi.String(\"CN=My User,OU=Unit,DC=example,DC=com\"),\n\t\t\tPolicyName: testPolicy.ID(),\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.minio.IamUser;\nimport com.pulumi.minio.IamPolicy;\nimport com.pulumi.minio.IamPolicyArgs;\nimport com.pulumi.minio.IamUserPolicyAttachment;\nimport com.pulumi.minio.IamUserPolicyAttachmentArgs;\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 testUser = new IamUser(\"testUser\");\n\n var testPolicy = new IamPolicy(\"testPolicy\", IamPolicyArgs.builder() \n .policy(\"\"\"\n{\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n}\n \"\"\")\n .build());\n\n var developerIamUserPolicyAttachment = new IamUserPolicyAttachment(\"developerIamUserPolicyAttachment\", IamUserPolicyAttachmentArgs.builder() \n .userName(testUser.id())\n .policyName(testPolicy.id())\n .build());\n\n ctx.export(\"minioName\", developerIamUserPolicyAttachment.id());\n ctx.export(\"minioUsers\", developerIamUserPolicyAttachment.userName());\n ctx.export(\"minioGroup\", developerIamUserPolicyAttachment.policyName());\n var developerIndex_iamUserPolicyAttachmentIamUserPolicyAttachment = new IamUserPolicyAttachment(\"developerIndex/iamUserPolicyAttachmentIamUserPolicyAttachment\", IamUserPolicyAttachmentArgs.builder() \n .userName(\"CN=My User,OU=Unit,DC=example,DC=com\")\n .policyName(testPolicy.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n testUser:\n type: minio:IamUser\n testPolicy:\n type: minio:IamPolicy\n properties:\n policy: |\n {\n \"Version\":\"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\":\"ListAllBucket\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:PutObject\"],\n \"Principal\":\"*\",\n \"Resource\": \"arn:aws:s3:::state-terraform-s3/*\"\n }\n ]\n }\n developerIamUserPolicyAttachment:\n type: minio:IamUserPolicyAttachment\n properties:\n userName: ${testUser.id}\n policyName: ${testPolicy.id}\n developerIndex/iamUserPolicyAttachmentIamUserPolicyAttachment:\n type: minio:IamUserPolicyAttachment\n properties:\n userName: CN=My User,OU=Unit,DC=example,DC=com\n policyName: ${testPolicy.id}\noutputs:\n minioName: ${developerIamUserPolicyAttachment.id}\n minioUsers: ${developerIamUserPolicyAttachment.userName}\n minioGroup: ${developerIamUserPolicyAttachment.policyName} # Example using an LDAP User instead of a static MinIO group\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "## Example Usage\n\n", "properties": { "policyName": { "type": "string" @@ -1013,7 +1013,7 @@ } }, "minio:index/s3Bucket:S3Bucket": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as minio from \"@pulumi/minio\";\n\nconst stateTerraformS3 = new minio.S3Bucket(\"stateTerraformS3\", {\n acl: \"public\",\n bucket: \"state-terraform-s3\",\n});\nexport const minioId = stateTerraformS3.id;\nexport const minioUrl = stateTerraformS3.bucketDomainName;\n```\n```python\nimport pulumi\nimport pulumi_minio as minio\n\nstate_terraform_s3 = minio.S3Bucket(\"stateTerraformS3\",\n acl=\"public\",\n bucket=\"state-terraform-s3\")\npulumi.export(\"minioId\", state_terraform_s3.id)\npulumi.export(\"minioUrl\", state_terraform_s3.bucket_domain_name)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Minio = Pulumi.Minio;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var stateTerraformS3 = new Minio.S3Bucket(\"stateTerraformS3\", new()\n {\n Acl = \"public\",\n Bucket = \"state-terraform-s3\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"minioId\"] = stateTerraformS3.Id,\n [\"minioUrl\"] = stateTerraformS3.BucketDomainName,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-minio/sdk/go/minio\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tstateTerraformS3, err := minio.NewS3Bucket(ctx, \"stateTerraformS3\", \u0026minio.S3BucketArgs{\n\t\t\tAcl: pulumi.String(\"public\"),\n\t\t\tBucket: pulumi.String(\"state-terraform-s3\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"minioId\", stateTerraformS3.ID())\n\t\tctx.Export(\"minioUrl\", stateTerraformS3.BucketDomainName)\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.minio.S3Bucket;\nimport com.pulumi.minio.S3BucketArgs;\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 stateTerraformS3 = new S3Bucket(\"stateTerraformS3\", S3BucketArgs.builder() \n .acl(\"public\")\n .bucket(\"state-terraform-s3\")\n .build());\n\n ctx.export(\"minioId\", stateTerraformS3.id());\n ctx.export(\"minioUrl\", stateTerraformS3.bucketDomainName());\n }\n}\n```\n```yaml\nresources:\n stateTerraformS3:\n type: minio:S3Bucket\n properties:\n acl: public\n bucket: state-terraform-s3\noutputs:\n minioId: ${stateTerraformS3.id}\n minioUrl: ${stateTerraformS3.bucketDomainName}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as minio from \"@pulumi/minio\";\n\nconst stateTerraformS3 = new minio.S3Bucket(\"state_terraform_s3\", {\n bucket: \"state-terraform-s3\",\n acl: \"public\",\n});\nexport const minioId = stateTerraformS3.id;\nexport const minioUrl = stateTerraformS3.bucketDomainName;\n```\n```python\nimport pulumi\nimport pulumi_minio as minio\n\nstate_terraform_s3 = minio.S3Bucket(\"state_terraform_s3\",\n bucket=\"state-terraform-s3\",\n acl=\"public\")\npulumi.export(\"minioId\", state_terraform_s3.id)\npulumi.export(\"minioUrl\", state_terraform_s3.bucket_domain_name)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Minio = Pulumi.Minio;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var stateTerraformS3 = new Minio.S3Bucket(\"state_terraform_s3\", new()\n {\n Bucket = \"state-terraform-s3\",\n Acl = \"public\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"minioId\"] = stateTerraformS3.Id,\n [\"minioUrl\"] = stateTerraformS3.BucketDomainName,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-minio/sdk/go/minio\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tstateTerraformS3, err := minio.NewS3Bucket(ctx, \"state_terraform_s3\", \u0026minio.S3BucketArgs{\n\t\t\tBucket: pulumi.String(\"state-terraform-s3\"),\n\t\t\tAcl: pulumi.String(\"public\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"minioId\", stateTerraformS3.ID())\n\t\tctx.Export(\"minioUrl\", stateTerraformS3.BucketDomainName)\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.minio.S3Bucket;\nimport com.pulumi.minio.S3BucketArgs;\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 stateTerraformS3 = new S3Bucket(\"stateTerraformS3\", S3BucketArgs.builder() \n .bucket(\"state-terraform-s3\")\n .acl(\"public\")\n .build());\n\n ctx.export(\"minioId\", stateTerraformS3.id());\n ctx.export(\"minioUrl\", stateTerraformS3.bucketDomainName());\n }\n}\n```\n```yaml\nresources:\n stateTerraformS3:\n type: minio:S3Bucket\n name: state_terraform_s3\n properties:\n bucket: state-terraform-s3\n acl: public\noutputs:\n minioId: ${stateTerraformS3.id}\n minioUrl: ${stateTerraformS3.bucketDomainName}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "acl": { "type": "string" @@ -1279,7 +1279,7 @@ } }, "minio:index/s3Object:S3Object": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as minio from \"@pulumi/minio\";\n\nconst stateTerraformS3 = new minio.S3Bucket(\"stateTerraformS3\", {\n bucket: \"state-terraform-s3\",\n acl: \"public\",\n});\nconst txtFile = new minio.S3Object(\"txtFile\", {\n bucketName: stateTerraformS3.bucket,\n objectName: \"text.txt\",\n content: \"Lorem ipsum dolor sit amet.\",\n contentType: \"text/plain\",\n}, {\n dependsOn: [stateTerraformS3],\n});\nexport const minioId = txtFile.id;\n```\n```python\nimport pulumi\nimport pulumi_minio as minio\n\nstate_terraform_s3 = minio.S3Bucket(\"stateTerraformS3\",\n bucket=\"state-terraform-s3\",\n acl=\"public\")\ntxt_file = minio.S3Object(\"txtFile\",\n bucket_name=state_terraform_s3.bucket,\n object_name=\"text.txt\",\n content=\"Lorem ipsum dolor sit amet.\",\n content_type=\"text/plain\",\n opts=pulumi.ResourceOptions(depends_on=[state_terraform_s3]))\npulumi.export(\"minioId\", txt_file.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Minio = Pulumi.Minio;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var stateTerraformS3 = new Minio.S3Bucket(\"stateTerraformS3\", new()\n {\n Bucket = \"state-terraform-s3\",\n Acl = \"public\",\n });\n\n var txtFile = new Minio.S3Object(\"txtFile\", new()\n {\n BucketName = stateTerraformS3.Bucket,\n ObjectName = \"text.txt\",\n Content = \"Lorem ipsum dolor sit amet.\",\n ContentType = \"text/plain\",\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n stateTerraformS3, \n },\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"minioId\"] = txtFile.Id,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-minio/sdk/go/minio\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tstateTerraformS3, err := minio.NewS3Bucket(ctx, \"stateTerraformS3\", \u0026minio.S3BucketArgs{\n\t\t\tBucket: pulumi.String(\"state-terraform-s3\"),\n\t\t\tAcl: pulumi.String(\"public\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttxtFile, err := minio.NewS3Object(ctx, \"txtFile\", \u0026minio.S3ObjectArgs{\n\t\t\tBucketName: stateTerraformS3.Bucket,\n\t\t\tObjectName: pulumi.String(\"text.txt\"),\n\t\t\tContent: pulumi.String(\"Lorem ipsum dolor sit amet.\"),\n\t\t\tContentType: pulumi.String(\"text/plain\"),\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\tstateTerraformS3,\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"minioId\", txtFile.ID())\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.minio.S3Bucket;\nimport com.pulumi.minio.S3BucketArgs;\nimport com.pulumi.minio.S3Object;\nimport com.pulumi.minio.S3ObjectArgs;\nimport com.pulumi.resources.CustomResourceOptions;\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 stateTerraformS3 = new S3Bucket(\"stateTerraformS3\", S3BucketArgs.builder() \n .bucket(\"state-terraform-s3\")\n .acl(\"public\")\n .build());\n\n var txtFile = new S3Object(\"txtFile\", S3ObjectArgs.builder() \n .bucketName(stateTerraformS3.bucket())\n .objectName(\"text.txt\")\n .content(\"Lorem ipsum dolor sit amet.\")\n .contentType(\"text/plain\")\n .build(), CustomResourceOptions.builder()\n .dependsOn(stateTerraformS3)\n .build());\n\n ctx.export(\"minioId\", txtFile.id());\n }\n}\n```\n```yaml\nresources:\n stateTerraformS3:\n type: minio:S3Bucket\n properties:\n bucket: state-terraform-s3\n acl: public\n txtFile:\n type: minio:S3Object\n properties:\n bucketName: ${stateTerraformS3.bucket}\n objectName: text.txt\n content: Lorem ipsum dolor sit amet.\n contentType: text/plain\n options:\n dependson:\n - ${stateTerraformS3}\noutputs:\n minioId: ${txtFile.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as minio from \"@pulumi/minio\";\n\nconst stateTerraformS3 = new minio.S3Bucket(\"state_terraform_s3\", {\n bucket: \"state-terraform-s3\",\n acl: \"public\",\n});\nconst txtFile = new minio.S3Object(\"txt_file\", {\n bucketName: stateTerraformS3.bucket,\n objectName: \"text.txt\",\n content: \"Lorem ipsum dolor sit amet.\",\n contentType: \"text/plain\",\n}, {\n dependsOn: [stateTerraformS3],\n});\nexport const minioId = txtFile.id;\n```\n```python\nimport pulumi\nimport pulumi_minio as minio\n\nstate_terraform_s3 = minio.S3Bucket(\"state_terraform_s3\",\n bucket=\"state-terraform-s3\",\n acl=\"public\")\ntxt_file = minio.S3Object(\"txt_file\",\n bucket_name=state_terraform_s3.bucket,\n object_name=\"text.txt\",\n content=\"Lorem ipsum dolor sit amet.\",\n content_type=\"text/plain\",\n opts=pulumi.ResourceOptions(depends_on=[state_terraform_s3]))\npulumi.export(\"minioId\", txt_file.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Minio = Pulumi.Minio;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var stateTerraformS3 = new Minio.S3Bucket(\"state_terraform_s3\", new()\n {\n Bucket = \"state-terraform-s3\",\n Acl = \"public\",\n });\n\n var txtFile = new Minio.S3Object(\"txt_file\", new()\n {\n BucketName = stateTerraformS3.Bucket,\n ObjectName = \"text.txt\",\n Content = \"Lorem ipsum dolor sit amet.\",\n ContentType = \"text/plain\",\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n stateTerraformS3, \n },\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"minioId\"] = txtFile.Id,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-minio/sdk/go/minio\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tstateTerraformS3, err := minio.NewS3Bucket(ctx, \"state_terraform_s3\", \u0026minio.S3BucketArgs{\n\t\t\tBucket: pulumi.String(\"state-terraform-s3\"),\n\t\t\tAcl: pulumi.String(\"public\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttxtFile, err := minio.NewS3Object(ctx, \"txt_file\", \u0026minio.S3ObjectArgs{\n\t\t\tBucketName: stateTerraformS3.Bucket,\n\t\t\tObjectName: pulumi.String(\"text.txt\"),\n\t\t\tContent: pulumi.String(\"Lorem ipsum dolor sit amet.\"),\n\t\t\tContentType: pulumi.String(\"text/plain\"),\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\tstateTerraformS3,\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"minioId\", txtFile.ID())\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.minio.S3Bucket;\nimport com.pulumi.minio.S3BucketArgs;\nimport com.pulumi.minio.S3Object;\nimport com.pulumi.minio.S3ObjectArgs;\nimport com.pulumi.resources.CustomResourceOptions;\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 stateTerraformS3 = new S3Bucket(\"stateTerraformS3\", S3BucketArgs.builder() \n .bucket(\"state-terraform-s3\")\n .acl(\"public\")\n .build());\n\n var txtFile = new S3Object(\"txtFile\", S3ObjectArgs.builder() \n .bucketName(stateTerraformS3.bucket())\n .objectName(\"text.txt\")\n .content(\"Lorem ipsum dolor sit amet.\")\n .contentType(\"text/plain\")\n .build(), CustomResourceOptions.builder()\n .dependsOn(stateTerraformS3)\n .build());\n\n ctx.export(\"minioId\", txtFile.id());\n }\n}\n```\n```yaml\nresources:\n stateTerraformS3:\n type: minio:S3Bucket\n name: state_terraform_s3\n properties:\n bucket: state-terraform-s3\n acl: public\n txtFile:\n type: minio:S3Object\n name: txt_file\n properties:\n bucketName: ${stateTerraformS3.bucket}\n objectName: text.txt\n content: Lorem ipsum dolor sit amet.\n contentType: text/plain\n options:\n dependson:\n - ${stateTerraformS3}\noutputs:\n minioId: ${txtFile.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "bucketName": { "type": "string" @@ -1381,7 +1381,7 @@ }, "functions": { "minio:index/getIamPolicyDocument:getIamPolicyDocument": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as minio from \"@pulumi/minio\";\n\nconst example = minio.getIamPolicyDocument({\n statements: [\n {\n sid: \"1\",\n actions: [\n \"s3:ListAllMyBuckets\",\n \"s3:GetBucketLocation\",\n ],\n resources: [\"arn:aws:s3:::*\"],\n },\n {\n actions: [\"s3:ListBucket\"],\n resources: [\"arn:aws:s3:::state-terraform-s3\"],\n conditions: [{\n test: \"StringLike\",\n variable: \"s3:prefix\",\n values: [\n \"\",\n \"home/\",\n ],\n }],\n },\n {\n actions: [\"s3:PutObject\"],\n resources: [\n \"arn:aws:s3:::state-terraform-s3\",\n \"arn:aws:s3:::state-terraform-s3/*\",\n ],\n },\n ],\n});\nconst testPolicy = new minio.IamPolicy(\"testPolicy\", {policy: example.then(example =\u003e example.json)});\n```\n```python\nimport pulumi\nimport pulumi_minio as minio\n\nexample = minio.get_iam_policy_document(statements=[\n minio.GetIamPolicyDocumentStatementArgs(\n sid=\"1\",\n actions=[\n \"s3:ListAllMyBuckets\",\n \"s3:GetBucketLocation\",\n ],\n resources=[\"arn:aws:s3:::*\"],\n ),\n minio.GetIamPolicyDocumentStatementArgs(\n actions=[\"s3:ListBucket\"],\n resources=[\"arn:aws:s3:::state-terraform-s3\"],\n conditions=[minio.GetIamPolicyDocumentStatementConditionArgs(\n test=\"StringLike\",\n variable=\"s3:prefix\",\n values=[\n \"\",\n \"home/\",\n ],\n )],\n ),\n minio.GetIamPolicyDocumentStatementArgs(\n actions=[\"s3:PutObject\"],\n resources=[\n \"arn:aws:s3:::state-terraform-s3\",\n \"arn:aws:s3:::state-terraform-s3/*\",\n ],\n ),\n])\ntest_policy = minio.IamPolicy(\"testPolicy\", policy=example.json)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Minio = Pulumi.Minio;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Minio.GetIamPolicyDocument.Invoke(new()\n {\n Statements = new[]\n {\n new Minio.Inputs.GetIamPolicyDocumentStatementInputArgs\n {\n Sid = \"1\",\n Actions = new[]\n {\n \"s3:ListAllMyBuckets\",\n \"s3:GetBucketLocation\",\n },\n Resources = new[]\n {\n \"arn:aws:s3:::*\",\n },\n },\n new Minio.Inputs.GetIamPolicyDocumentStatementInputArgs\n {\n Actions = new[]\n {\n \"s3:ListBucket\",\n },\n Resources = new[]\n {\n \"arn:aws:s3:::state-terraform-s3\",\n },\n Conditions = new[]\n {\n new Minio.Inputs.GetIamPolicyDocumentStatementConditionInputArgs\n {\n Test = \"StringLike\",\n Variable = \"s3:prefix\",\n Values = new[]\n {\n \"\",\n \"home/\",\n },\n },\n },\n },\n new Minio.Inputs.GetIamPolicyDocumentStatementInputArgs\n {\n Actions = new[]\n {\n \"s3:PutObject\",\n },\n Resources = new[]\n {\n \"arn:aws:s3:::state-terraform-s3\",\n \"arn:aws:s3:::state-terraform-s3/*\",\n },\n },\n },\n });\n\n var testPolicy = new Minio.IamPolicy(\"testPolicy\", new()\n {\n Policy = example.Apply(getIamPolicyDocumentResult =\u003e getIamPolicyDocumentResult.Json),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-minio/sdk/go/minio\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := minio.GetIamPolicyDocument(ctx, \u0026minio.GetIamPolicyDocumentArgs{\n\t\t\tStatements: pulumi.Array{\n\t\t\t\tminio.GetIamPolicyDocumentStatement{\n\t\t\t\t\tSid: pulumi.StringRef(\"1\"),\n\t\t\t\t\tActions: []string{\n\t\t\t\t\t\t\"s3:ListAllMyBuckets\",\n\t\t\t\t\t\t\"s3:GetBucketLocation\",\n\t\t\t\t\t},\n\t\t\t\t\tResources: []string{\n\t\t\t\t\t\t\"arn:aws:s3:::*\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tminio.GetIamPolicyDocumentStatement{\n\t\t\t\t\tActions: []string{\n\t\t\t\t\t\t\"s3:ListBucket\",\n\t\t\t\t\t},\n\t\t\t\t\tResources: []string{\n\t\t\t\t\t\t\"arn:aws:s3:::state-terraform-s3\",\n\t\t\t\t\t},\n\t\t\t\t\tConditions: []minio.GetIamPolicyDocumentStatementCondition{\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tTest: \"StringLike\",\n\t\t\t\t\t\t\tVariable: \"s3:prefix\",\n\t\t\t\t\t\t\tValues: []string{\n\t\t\t\t\t\t\t\t\"\",\n\t\t\t\t\t\t\t\t\"home/\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tminio.GetIamPolicyDocumentStatement{\n\t\t\t\t\tActions: []string{\n\t\t\t\t\t\t\"s3:PutObject\",\n\t\t\t\t\t},\n\t\t\t\t\tResources: []string{\n\t\t\t\t\t\t\"arn:aws:s3:::state-terraform-s3\",\n\t\t\t\t\t\t\"arn:aws:s3:::state-terraform-s3/*\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = minio.NewIamPolicy(ctx, \"testPolicy\", \u0026minio.IamPolicyArgs{\n\t\t\tPolicy: pulumi.String(example.Json),\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.minio.MinioFunctions;\nimport com.pulumi.minio.inputs.GetIamPolicyDocumentArgs;\nimport com.pulumi.minio.IamPolicy;\nimport com.pulumi.minio.IamPolicyArgs;\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 final var example = MinioFunctions.getIamPolicyDocument(GetIamPolicyDocumentArgs.builder()\n .statements( \n GetIamPolicyDocumentStatementArgs.builder()\n .sid(\"1\")\n .actions( \n \"s3:ListAllMyBuckets\",\n \"s3:GetBucketLocation\")\n .resources(\"arn:aws:s3:::*\")\n .build(),\n GetIamPolicyDocumentStatementArgs.builder()\n .actions(\"s3:ListBucket\")\n .resources(\"arn:aws:s3:::state-terraform-s3\")\n .conditions(GetIamPolicyDocumentStatementConditionArgs.builder()\n .test(\"StringLike\")\n .variable(\"s3:prefix\")\n .values( \n \"\",\n \"home/\")\n .build())\n .build(),\n GetIamPolicyDocumentStatementArgs.builder()\n .actions(\"s3:PutObject\")\n .resources( \n \"arn:aws:s3:::state-terraform-s3\",\n \"arn:aws:s3:::state-terraform-s3/*\")\n .build())\n .build());\n\n var testPolicy = new IamPolicy(\"testPolicy\", IamPolicyArgs.builder() \n .policy(example.applyValue(getIamPolicyDocumentResult -\u003e getIamPolicyDocumentResult.json()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n testPolicy:\n type: minio:IamPolicy\n properties:\n policy: ${example.json}\nvariables:\n example:\n fn::invoke:\n Function: minio:getIamPolicyDocument\n Arguments:\n statements:\n - sid: '1'\n actions:\n - s3:ListAllMyBuckets\n - s3:GetBucketLocation\n resources:\n - arn:aws:s3:::*\n - actions:\n - s3:ListBucket\n resources:\n - arn:aws:s3:::state-terraform-s3\n conditions:\n - test: StringLike\n variable: s3:prefix\n values:\n -\n - home/\n - actions:\n - s3:PutObject\n resources:\n - arn:aws:s3:::state-terraform-s3\n - arn:aws:s3:::state-terraform-s3/*\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as minio from \"@pulumi/minio\";\n\nconst example = minio.getIamPolicyDocument({\n statements: [\n {\n sid: \"1\",\n actions: [\n \"s3:ListAllMyBuckets\",\n \"s3:GetBucketLocation\",\n ],\n resources: [\"arn:aws:s3:::*\"],\n },\n {\n actions: [\"s3:ListBucket\"],\n resources: [\"arn:aws:s3:::state-terraform-s3\"],\n conditions: [{\n test: \"StringLike\",\n variable: \"s3:prefix\",\n values: [\n \"\",\n \"home/\",\n ],\n }],\n },\n {\n actions: [\"s3:PutObject\"],\n resources: [\n \"arn:aws:s3:::state-terraform-s3\",\n \"arn:aws:s3:::state-terraform-s3/*\",\n ],\n },\n ],\n});\nconst testPolicy = new minio.IamPolicy(\"test_policy\", {\n name: \"state-terraform-s3\",\n policy: example.then(example =\u003e example.json),\n});\n```\n```python\nimport pulumi\nimport pulumi_minio as minio\n\nexample = minio.get_iam_policy_document(statements=[\n minio.GetIamPolicyDocumentStatementArgs(\n sid=\"1\",\n actions=[\n \"s3:ListAllMyBuckets\",\n \"s3:GetBucketLocation\",\n ],\n resources=[\"arn:aws:s3:::*\"],\n ),\n minio.GetIamPolicyDocumentStatementArgs(\n actions=[\"s3:ListBucket\"],\n resources=[\"arn:aws:s3:::state-terraform-s3\"],\n conditions=[minio.GetIamPolicyDocumentStatementConditionArgs(\n test=\"StringLike\",\n variable=\"s3:prefix\",\n values=[\n \"\",\n \"home/\",\n ],\n )],\n ),\n minio.GetIamPolicyDocumentStatementArgs(\n actions=[\"s3:PutObject\"],\n resources=[\n \"arn:aws:s3:::state-terraform-s3\",\n \"arn:aws:s3:::state-terraform-s3/*\",\n ],\n ),\n])\ntest_policy = minio.IamPolicy(\"test_policy\",\n name=\"state-terraform-s3\",\n policy=example.json)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Minio = Pulumi.Minio;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Minio.GetIamPolicyDocument.Invoke(new()\n {\n Statements = new[]\n {\n new Minio.Inputs.GetIamPolicyDocumentStatementInputArgs\n {\n Sid = \"1\",\n Actions = new[]\n {\n \"s3:ListAllMyBuckets\",\n \"s3:GetBucketLocation\",\n },\n Resources = new[]\n {\n \"arn:aws:s3:::*\",\n },\n },\n new Minio.Inputs.GetIamPolicyDocumentStatementInputArgs\n {\n Actions = new[]\n {\n \"s3:ListBucket\",\n },\n Resources = new[]\n {\n \"arn:aws:s3:::state-terraform-s3\",\n },\n Conditions = new[]\n {\n new Minio.Inputs.GetIamPolicyDocumentStatementConditionInputArgs\n {\n Test = \"StringLike\",\n Variable = \"s3:prefix\",\n Values = new[]\n {\n \"\",\n \"home/\",\n },\n },\n },\n },\n new Minio.Inputs.GetIamPolicyDocumentStatementInputArgs\n {\n Actions = new[]\n {\n \"s3:PutObject\",\n },\n Resources = new[]\n {\n \"arn:aws:s3:::state-terraform-s3\",\n \"arn:aws:s3:::state-terraform-s3/*\",\n },\n },\n },\n });\n\n var testPolicy = new Minio.IamPolicy(\"test_policy\", new()\n {\n Name = \"state-terraform-s3\",\n Policy = example.Apply(getIamPolicyDocumentResult =\u003e getIamPolicyDocumentResult.Json),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-minio/sdk/go/minio\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := minio.GetIamPolicyDocument(ctx, \u0026minio.GetIamPolicyDocumentArgs{\n\t\t\tStatements: pulumi.Array{\n\t\t\t\tminio.GetIamPolicyDocumentStatement{\n\t\t\t\t\tSid: pulumi.StringRef(\"1\"),\n\t\t\t\t\tActions: []string{\n\t\t\t\t\t\t\"s3:ListAllMyBuckets\",\n\t\t\t\t\t\t\"s3:GetBucketLocation\",\n\t\t\t\t\t},\n\t\t\t\t\tResources: []string{\n\t\t\t\t\t\t\"arn:aws:s3:::*\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tminio.GetIamPolicyDocumentStatement{\n\t\t\t\t\tActions: []string{\n\t\t\t\t\t\t\"s3:ListBucket\",\n\t\t\t\t\t},\n\t\t\t\t\tResources: []string{\n\t\t\t\t\t\t\"arn:aws:s3:::state-terraform-s3\",\n\t\t\t\t\t},\n\t\t\t\t\tConditions: []minio.GetIamPolicyDocumentStatementCondition{\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tTest: \"StringLike\",\n\t\t\t\t\t\t\tVariable: \"s3:prefix\",\n\t\t\t\t\t\t\tValues: []string{\n\t\t\t\t\t\t\t\t\"\",\n\t\t\t\t\t\t\t\t\"home/\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tminio.GetIamPolicyDocumentStatement{\n\t\t\t\t\tActions: []string{\n\t\t\t\t\t\t\"s3:PutObject\",\n\t\t\t\t\t},\n\t\t\t\t\tResources: []string{\n\t\t\t\t\t\t\"arn:aws:s3:::state-terraform-s3\",\n\t\t\t\t\t\t\"arn:aws:s3:::state-terraform-s3/*\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = minio.NewIamPolicy(ctx, \"test_policy\", \u0026minio.IamPolicyArgs{\n\t\t\tName: pulumi.String(\"state-terraform-s3\"),\n\t\t\tPolicy: pulumi.String(example.Json),\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.minio.MinioFunctions;\nimport com.pulumi.minio.inputs.GetIamPolicyDocumentArgs;\nimport com.pulumi.minio.IamPolicy;\nimport com.pulumi.minio.IamPolicyArgs;\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 final var example = MinioFunctions.getIamPolicyDocument(GetIamPolicyDocumentArgs.builder()\n .statements( \n GetIamPolicyDocumentStatementArgs.builder()\n .sid(\"1\")\n .actions( \n \"s3:ListAllMyBuckets\",\n \"s3:GetBucketLocation\")\n .resources(\"arn:aws:s3:::*\")\n .build(),\n GetIamPolicyDocumentStatementArgs.builder()\n .actions(\"s3:ListBucket\")\n .resources(\"arn:aws:s3:::state-terraform-s3\")\n .conditions(GetIamPolicyDocumentStatementConditionArgs.builder()\n .test(\"StringLike\")\n .variable(\"s3:prefix\")\n .values( \n \"\",\n \"home/\")\n .build())\n .build(),\n GetIamPolicyDocumentStatementArgs.builder()\n .actions(\"s3:PutObject\")\n .resources( \n \"arn:aws:s3:::state-terraform-s3\",\n \"arn:aws:s3:::state-terraform-s3/*\")\n .build())\n .build());\n\n var testPolicy = new IamPolicy(\"testPolicy\", IamPolicyArgs.builder() \n .name(\"state-terraform-s3\")\n .policy(example.applyValue(getIamPolicyDocumentResult -\u003e getIamPolicyDocumentResult.json()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n testPolicy:\n type: minio:IamPolicy\n name: test_policy\n properties:\n name: state-terraform-s3\n policy: ${example.json}\nvariables:\n example:\n fn::invoke:\n Function: minio:getIamPolicyDocument\n Arguments:\n statements:\n - sid: '1'\n actions:\n - s3:ListAllMyBuckets\n - s3:GetBucketLocation\n resources:\n - arn:aws:s3:::*\n - actions:\n - s3:ListBucket\n resources:\n - arn:aws:s3:::state-terraform-s3\n conditions:\n - test: StringLike\n variable: s3:prefix\n values:\n -\n - home/\n - actions:\n - s3:PutObject\n resources:\n - arn:aws:s3:::state-terraform-s3\n - arn:aws:s3:::state-terraform-s3/*\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getIamPolicyDocument.\n", "properties": { @@ -1410,8 +1410,8 @@ "description": "A collection of values returned by getIamPolicyDocument.\n", "properties": { "id": { - "type": "string", - "description": "The provider-assigned unique ID for this managed resource.\n" + "description": "The provider-assigned unique ID for this managed resource.\n", + "type": "string" }, "json": { "type": "string" @@ -1426,20 +1426,20 @@ "type": "string" }, "statements": { - "type": "array", "items": { "$ref": "#/types/minio:index/getIamPolicyDocumentStatement:getIamPolicyDocumentStatement" - } + }, + "type": "array" }, "version": { "type": "string" } }, - "type": "object", "required": [ "json", "id" - ] + ], + "type": "object" } } } diff --git a/sdk/dotnet/GetIamPolicyDocument.cs b/sdk/dotnet/GetIamPolicyDocument.cs index 19228a2..abea467 100644 --- a/sdk/dotnet/GetIamPolicyDocument.cs +++ b/sdk/dotnet/GetIamPolicyDocument.cs @@ -79,8 +79,9 @@ public static class GetIamPolicyDocument /// }, /// }); /// - /// var testPolicy = new Minio.IamPolicy("testPolicy", new() + /// var testPolicy = new Minio.IamPolicy("test_policy", new() /// { + /// Name = "state-terraform-s3", /// Policy = example.Apply(getIamPolicyDocumentResult => getIamPolicyDocumentResult.Json), /// }); /// @@ -159,8 +160,9 @@ public static Task InvokeAsync(GetIamPolicyDocumentA /// }, /// }); /// - /// var testPolicy = new Minio.IamPolicy("testPolicy", new() + /// var testPolicy = new Minio.IamPolicy("test_policy", new() /// { + /// Name = "state-terraform-s3", /// Policy = example.Apply(getIamPolicyDocumentResult => getIamPolicyDocumentResult.Json), /// }); /// diff --git a/sdk/dotnet/IamGroup.cs b/sdk/dotnet/IamGroup.cs index 39c3c3b..b3ec4ad 100644 --- a/sdk/dotnet/IamGroup.cs +++ b/sdk/dotnet/IamGroup.cs @@ -21,7 +21,10 @@ namespace Pulumi.Minio /// /// return await Deployment.RunAsync(() => /// { - /// var developer = new Minio.IamGroup("developer"); + /// var developer = new Minio.IamGroup("developer", new() + /// { + /// Name = "developer", + /// }); /// /// return new Dictionary<string, object?> /// { diff --git a/sdk/dotnet/IamGroupPolicy.cs b/sdk/dotnet/IamGroupPolicy.cs index 048cb7b..53c7978 100644 --- a/sdk/dotnet/IamGroupPolicy.cs +++ b/sdk/dotnet/IamGroupPolicy.cs @@ -21,10 +21,14 @@ namespace Pulumi.Minio /// /// return await Deployment.RunAsync(() => /// { - /// var developer = new Minio.IamGroup("developer"); + /// var developer = new Minio.IamGroup("developer", new() + /// { + /// Name = "developer", + /// }); /// - /// var testPolicy = new Minio.IamGroupPolicy("testPolicy", new() + /// var testPolicy = new Minio.IamGroupPolicy("test_policy", new() /// { + /// Name = "state-terraform-s3", /// Group = developer.Id, /// Policy = @"{ /// ""Version"":""2012-10-17"", @@ -38,15 +42,14 @@ namespace Pulumi.Minio /// } /// ] /// } - /// /// ", /// }); /// /// return new Dictionary<string, object?> /// { - /// ["minioName"] = minio_iam_group_membership.Developer.Id, - /// ["minioPolicy"] = minio_iam_group_membership.Developer.Policy, - /// ["minioGroup"] = minio_iam_group_membership.Developer.Group, + /// ["minioName"] = developerMinioIamGroupMembership.Id, + /// ["minioPolicy"] = developerMinioIamGroupMembership.Policy, + /// ["minioGroup"] = developerMinioIamGroupMembership.Group, /// }; /// }); /// ``` diff --git a/sdk/dotnet/IamGroupUserAttachment.cs b/sdk/dotnet/IamGroupUserAttachment.cs index 74e9b97..f1c3695 100644 --- a/sdk/dotnet/IamGroupUserAttachment.cs +++ b/sdk/dotnet/IamGroupUserAttachment.cs @@ -21,13 +21,19 @@ namespace Pulumi.Minio /// /// return await Deployment.RunAsync(() => /// { - /// var developerIamGroup = new Minio.IamGroup("developerIamGroup"); + /// var developer = new Minio.IamGroup("developer", new() + /// { + /// Name = "developer", + /// }); /// - /// var userOne = new Minio.IamUser("userOne"); + /// var userOne = new Minio.IamUser("user_one", new() + /// { + /// Name = "test-user", + /// }); /// - /// var developerIamGroupUserAttachment = new Minio.IamGroupUserAttachment("developerIamGroupUserAttachment", new() + /// var developerIamGroupUserAttachment = new Minio.IamGroupUserAttachment("developer", new() /// { - /// GroupName = minio_iam_group.Group.Name, + /// GroupName = @group.Name, /// UserName = userOne.Name, /// }); /// diff --git a/sdk/dotnet/IamPolicy.cs b/sdk/dotnet/IamPolicy.cs index 7288e93..4e10927 100644 --- a/sdk/dotnet/IamPolicy.cs +++ b/sdk/dotnet/IamPolicy.cs @@ -21,8 +21,9 @@ namespace Pulumi.Minio /// /// return await Deployment.RunAsync(() => /// { - /// var testPolicy = new Minio.IamPolicy("testPolicy", new() + /// var testPolicy = new Minio.IamPolicy("test_policy", new() /// { + /// Name = "state-terraform-s3", /// Policy = @"{ /// ""Version"":""2012-10-17"", /// ""Statement"": [ diff --git a/sdk/dotnet/IamServiceAccount.cs b/sdk/dotnet/IamServiceAccount.cs index e6ac812..05d5d88 100644 --- a/sdk/dotnet/IamServiceAccount.cs +++ b/sdk/dotnet/IamServiceAccount.cs @@ -23,6 +23,7 @@ namespace Pulumi.Minio /// { /// var test = new Minio.IamUser("test", new() /// { + /// Name = "test", /// ForceDestroy = true, /// Tags = /// { @@ -30,7 +31,7 @@ namespace Pulumi.Minio /// }, /// }); /// - /// var testServiceAccount = new Minio.IamServiceAccount("testServiceAccount", new() + /// var testServiceAccount = new Minio.IamServiceAccount("test_service_account", new() /// { /// TargetUser = test.Name, /// }); diff --git a/sdk/dotnet/IamUser.cs b/sdk/dotnet/IamUser.cs index e2b679e..5aca4c1 100644 --- a/sdk/dotnet/IamUser.cs +++ b/sdk/dotnet/IamUser.cs @@ -21,8 +21,9 @@ namespace Pulumi.Minio /// /// return await Deployment.RunAsync(() => /// { - /// var testIamUser = new Minio.IamUser("testIamUser", new() + /// var test = new Minio.IamUser("test", new() /// { + /// Name = "test", /// ForceDestroy = true, /// Tags = /// { @@ -32,9 +33,9 @@ namespace Pulumi.Minio /// /// return new Dictionary<string, object?> /// { - /// ["test"] = testIamUser.Id, - /// ["status"] = testIamUser.Status, - /// ["secret"] = testIamUser.Secret, + /// ["test"] = test.Id, + /// ["status"] = test.Status, + /// ["secret"] = test.Secret, /// }; /// }); /// ``` diff --git a/sdk/dotnet/IamUserPolicyAttachment.cs b/sdk/dotnet/IamUserPolicyAttachment.cs index 612e933..db15def 100644 --- a/sdk/dotnet/IamUserPolicyAttachment.cs +++ b/sdk/dotnet/IamUserPolicyAttachment.cs @@ -11,56 +11,6 @@ namespace Pulumi.Minio { /// /// ## Example Usage - /// - /// <!--Start PulumiCodeChooser --> - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using Minio = Pulumi.Minio; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var testUser = new Minio.IamUser("testUser"); - /// - /// var testPolicy = new Minio.IamPolicy("testPolicy", new() - /// { - /// Policy = @"{ - /// ""Version"":""2012-10-17"", - /// ""Statement"": [ - /// { - /// ""Sid"":""ListAllBucket"", - /// ""Effect"": ""Allow"", - /// ""Action"": [""s3:PutObject""], - /// ""Principal"":""*"", - /// ""Resource"": ""arn:aws:s3:::state-terraform-s3/*"" - /// } - /// ] - /// } - /// ", - /// }); - /// - /// var developerIamUserPolicyAttachment = new Minio.IamUserPolicyAttachment("developerIamUserPolicyAttachment", new() - /// { - /// UserName = testUser.Id, - /// PolicyName = testPolicy.Id, - /// }); - /// - /// var developerIndex_iamUserPolicyAttachmentIamUserPolicyAttachment = new Minio.IamUserPolicyAttachment("developerIndex/iamUserPolicyAttachmentIamUserPolicyAttachment", new() - /// { - /// UserName = "CN=My User,OU=Unit,DC=example,DC=com", - /// PolicyName = testPolicy.Id, - /// }); - /// - /// return new Dictionary<string, object?> - /// { - /// ["minioName"] = developerIamUserPolicyAttachment.Id, - /// ["minioUsers"] = developerIamUserPolicyAttachment.UserName, - /// ["minioGroup"] = developerIamUserPolicyAttachment.PolicyName, - /// }; - /// }); - /// ``` - /// <!--End PulumiCodeChooser --> /// [MinioResourceType("minio:index/iamUserPolicyAttachment:IamUserPolicyAttachment")] public partial class IamUserPolicyAttachment : global::Pulumi.CustomResource diff --git a/sdk/dotnet/S3Bucket.cs b/sdk/dotnet/S3Bucket.cs index da1b9c6..147ec31 100644 --- a/sdk/dotnet/S3Bucket.cs +++ b/sdk/dotnet/S3Bucket.cs @@ -21,10 +21,10 @@ namespace Pulumi.Minio /// /// return await Deployment.RunAsync(() => /// { - /// var stateTerraformS3 = new Minio.S3Bucket("stateTerraformS3", new() + /// var stateTerraformS3 = new Minio.S3Bucket("state_terraform_s3", new() /// { - /// Acl = "public", /// Bucket = "state-terraform-s3", + /// Acl = "public", /// }); /// /// return new Dictionary<string, object?> diff --git a/sdk/dotnet/S3Object.cs b/sdk/dotnet/S3Object.cs index 567aabc..3be12d0 100644 --- a/sdk/dotnet/S3Object.cs +++ b/sdk/dotnet/S3Object.cs @@ -21,13 +21,13 @@ namespace Pulumi.Minio /// /// return await Deployment.RunAsync(() => /// { - /// var stateTerraformS3 = new Minio.S3Bucket("stateTerraformS3", new() + /// var stateTerraformS3 = new Minio.S3Bucket("state_terraform_s3", new() /// { /// Bucket = "state-terraform-s3", /// Acl = "public", /// }); /// - /// var txtFile = new Minio.S3Object("txtFile", new() + /// var txtFile = new Minio.S3Object("txt_file", new() /// { /// BucketName = stateTerraformS3.Bucket, /// ObjectName = "text.txt", diff --git a/sdk/go/minio/getIamPolicyDocument.go b/sdk/go/minio/getIamPolicyDocument.go index 51c5523..cf6182e 100644 --- a/sdk/go/minio/getIamPolicyDocument.go +++ b/sdk/go/minio/getIamPolicyDocument.go @@ -70,7 +70,8 @@ import ( // if err != nil { // return err // } -// _, err = minio.NewIamPolicy(ctx, "testPolicy", &minio.IamPolicyArgs{ +// _, err = minio.NewIamPolicy(ctx, "test_policy", &minio.IamPolicyArgs{ +// Name: pulumi.String("state-terraform-s3"), // Policy: pulumi.String(example.Json), // }) // if err != nil { diff --git a/sdk/go/minio/iamGroup.go b/sdk/go/minio/iamGroup.go index 9a6810f..3d03556 100644 --- a/sdk/go/minio/iamGroup.go +++ b/sdk/go/minio/iamGroup.go @@ -26,7 +26,9 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// developer, err := minio.NewIamGroup(ctx, "developer", nil) +// developer, err := minio.NewIamGroup(ctx, "developer", &minio.IamGroupArgs{ +// Name: pulumi.String("developer"), +// }) // if err != nil { // return err // } diff --git a/sdk/go/minio/iamGroupPolicy.go b/sdk/go/minio/iamGroupPolicy.go index 1cecde0..8cb2920 100644 --- a/sdk/go/minio/iamGroupPolicy.go +++ b/sdk/go/minio/iamGroupPolicy.go @@ -27,11 +27,14 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// developer, err := minio.NewIamGroup(ctx, "developer", nil) +// developer, err := minio.NewIamGroup(ctx, "developer", &minio.IamGroupArgs{ +// Name: pulumi.String("developer"), +// }) // if err != nil { // return err // } -// _, err = minio.NewIamGroupPolicy(ctx, "testPolicy", &minio.IamGroupPolicyArgs{ +// _, err = minio.NewIamGroupPolicy(ctx, "test_policy", &minio.IamGroupPolicyArgs{ +// Name: pulumi.String("state-terraform-s3"), // Group: developer.ID(), // Policy: pulumi.String(`{ // "Version":"2012-10-17", @@ -52,9 +55,9 @@ import ( // if err != nil { // return err // } -// ctx.Export("minioName", minio_iam_group_membership.Developer.Id) -// ctx.Export("minioPolicy", minio_iam_group_membership.Developer.Policy) -// ctx.Export("minioGroup", minio_iam_group_membership.Developer.Group) +// ctx.Export("minioName", developerMinioIamGroupMembership.Id) +// ctx.Export("minioPolicy", developerMinioIamGroupMembership.Policy) +// ctx.Export("minioGroup", developerMinioIamGroupMembership.Group) // return nil // }) // } diff --git a/sdk/go/minio/iamGroupUserAttachment.go b/sdk/go/minio/iamGroupUserAttachment.go index 6cb9110..8581724 100644 --- a/sdk/go/minio/iamGroupUserAttachment.go +++ b/sdk/go/minio/iamGroupUserAttachment.go @@ -27,16 +27,20 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := minio.NewIamGroup(ctx, "developerIamGroup", nil) +// _, err := minio.NewIamGroup(ctx, "developer", &minio.IamGroupArgs{ +// Name: pulumi.String("developer"), +// }) // if err != nil { // return err // } -// userOne, err := minio.NewIamUser(ctx, "userOne", nil) +// userOne, err := minio.NewIamUser(ctx, "user_one", &minio.IamUserArgs{ +// Name: pulumi.String("test-user"), +// }) // if err != nil { // return err // } -// developerIamGroupUserAttachment, err := minio.NewIamGroupUserAttachment(ctx, "developerIamGroupUserAttachment", &minio.IamGroupUserAttachmentArgs{ -// GroupName: pulumi.Any(minio_iam_group.Group.Name), +// developerIamGroupUserAttachment, err := minio.NewIamGroupUserAttachment(ctx, "developer", &minio.IamGroupUserAttachmentArgs{ +// GroupName: pulumi.Any(group.Name), // UserName: userOne.Name, // }) // if err != nil { diff --git a/sdk/go/minio/iamPolicy.go b/sdk/go/minio/iamPolicy.go index b36fe4a..30d31d8 100644 --- a/sdk/go/minio/iamPolicy.go +++ b/sdk/go/minio/iamPolicy.go @@ -27,7 +27,8 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// testPolicy, err := minio.NewIamPolicy(ctx, "testPolicy", &minio.IamPolicyArgs{ +// testPolicy, err := minio.NewIamPolicy(ctx, "test_policy", &minio.IamPolicyArgs{ +// Name: pulumi.String("state-terraform-s3"), // Policy: pulumi.String(`{ // "Version":"2012-10-17", // "Statement": [ diff --git a/sdk/go/minio/iamServiceAccount.go b/sdk/go/minio/iamServiceAccount.go index fbd99f4..06b5984 100644 --- a/sdk/go/minio/iamServiceAccount.go +++ b/sdk/go/minio/iamServiceAccount.go @@ -28,6 +28,7 @@ import ( // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // test, err := minio.NewIamUser(ctx, "test", &minio.IamUserArgs{ +// Name: pulumi.String("test"), // ForceDestroy: pulumi.Bool(true), // Tags: pulumi.Map{ // "tag-key": pulumi.Any("tag-value"), @@ -36,7 +37,7 @@ import ( // if err != nil { // return err // } -// testServiceAccount, err := minio.NewIamServiceAccount(ctx, "testServiceAccount", &minio.IamServiceAccountArgs{ +// testServiceAccount, err := minio.NewIamServiceAccount(ctx, "test_service_account", &minio.IamServiceAccountArgs{ // TargetUser: test.Name, // }) // if err != nil { diff --git a/sdk/go/minio/iamUser.go b/sdk/go/minio/iamUser.go index c8968a3..2f18ee1 100644 --- a/sdk/go/minio/iamUser.go +++ b/sdk/go/minio/iamUser.go @@ -26,7 +26,8 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// testIamUser, err := minio.NewIamUser(ctx, "testIamUser", &minio.IamUserArgs{ +// test, err := minio.NewIamUser(ctx, "test", &minio.IamUserArgs{ +// Name: pulumi.String("test"), // ForceDestroy: pulumi.Bool(true), // Tags: pulumi.Map{ // "tag-key": pulumi.Any("tag-value"), @@ -35,9 +36,9 @@ import ( // if err != nil { // return err // } -// ctx.Export("test", testIamUser.ID()) -// ctx.Export("status", testIamUser.Status) -// ctx.Export("secret", testIamUser.Secret) +// ctx.Export("test", test.ID()) +// ctx.Export("status", test.Status) +// ctx.Export("secret", test.Secret) // return nil // }) // } diff --git a/sdk/go/minio/iamUserPolicyAttachment.go b/sdk/go/minio/iamUserPolicyAttachment.go index a79b008..25265eb 100644 --- a/sdk/go/minio/iamUserPolicyAttachment.go +++ b/sdk/go/minio/iamUserPolicyAttachment.go @@ -13,67 +13,6 @@ import ( ) // ## Example Usage -// -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-minio/sdk/go/minio" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// testUser, err := minio.NewIamUser(ctx, "testUser", nil) -// if err != nil { -// return err -// } -// testPolicy, err := minio.NewIamPolicy(ctx, "testPolicy", &minio.IamPolicyArgs{ -// Policy: pulumi.String(`{ -// "Version":"2012-10-17", -// "Statement": [ -// { -// "Sid":"ListAllBucket", -// "Effect": "Allow", -// "Action": ["s3:PutObject"], -// "Principal":"*", -// "Resource": "arn:aws:s3:::state-terraform-s3/*" -// } -// ] -// } -// -// `), -// -// }) -// if err != nil { -// return err -// } -// developerIamUserPolicyAttachment, err := minio.NewIamUserPolicyAttachment(ctx, "developerIamUserPolicyAttachment", &minio.IamUserPolicyAttachmentArgs{ -// UserName: testUser.ID(), -// PolicyName: testPolicy.ID(), -// }) -// if err != nil { -// return err -// } -// ctx.Export("minioName", developerIamUserPolicyAttachment.ID()) -// ctx.Export("minioUsers", developerIamUserPolicyAttachment.UserName) -// ctx.Export("minioGroup", developerIamUserPolicyAttachment.PolicyName) -// _, err = minio.NewIamUserPolicyAttachment(ctx, "developerIndex/iamUserPolicyAttachmentIamUserPolicyAttachment", &minio.IamUserPolicyAttachmentArgs{ -// UserName: pulumi.String("CN=My User,OU=Unit,DC=example,DC=com"), -// PolicyName: testPolicy.ID(), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// type IamUserPolicyAttachment struct { pulumi.CustomResourceState diff --git a/sdk/go/minio/s3bucket.go b/sdk/go/minio/s3bucket.go index 445a037..52f251f 100644 --- a/sdk/go/minio/s3bucket.go +++ b/sdk/go/minio/s3bucket.go @@ -26,9 +26,9 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// stateTerraformS3, err := minio.NewS3Bucket(ctx, "stateTerraformS3", &minio.S3BucketArgs{ -// Acl: pulumi.String("public"), +// stateTerraformS3, err := minio.NewS3Bucket(ctx, "state_terraform_s3", &minio.S3BucketArgs{ // Bucket: pulumi.String("state-terraform-s3"), +// Acl: pulumi.String("public"), // }) // if err != nil { // return err diff --git a/sdk/go/minio/s3object.go b/sdk/go/minio/s3object.go index 3e61688..6bea487 100644 --- a/sdk/go/minio/s3object.go +++ b/sdk/go/minio/s3object.go @@ -27,14 +27,14 @@ import ( // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// stateTerraformS3, err := minio.NewS3Bucket(ctx, "stateTerraformS3", &minio.S3BucketArgs{ +// stateTerraformS3, err := minio.NewS3Bucket(ctx, "state_terraform_s3", &minio.S3BucketArgs{ // Bucket: pulumi.String("state-terraform-s3"), // Acl: pulumi.String("public"), // }) // if err != nil { // return err // } -// txtFile, err := minio.NewS3Object(ctx, "txtFile", &minio.S3ObjectArgs{ +// txtFile, err := minio.NewS3Object(ctx, "txt_file", &minio.S3ObjectArgs{ // BucketName: stateTerraformS3.Bucket, // ObjectName: pulumi.String("text.txt"), // Content: pulumi.String("Lorem ipsum dolor sit amet."), diff --git a/sdk/java/src/main/java/com/pulumi/minio/IamGroup.java b/sdk/java/src/main/java/com/pulumi/minio/IamGroup.java index 8608f26..7d7805e 100644 --- a/sdk/java/src/main/java/com/pulumi/minio/IamGroup.java +++ b/sdk/java/src/main/java/com/pulumi/minio/IamGroup.java @@ -26,6 +26,7 @@ * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.minio.IamGroup; + * import com.pulumi.minio.IamGroupArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -39,7 +40,9 @@ * } * * public static void stack(Context ctx) { - * var developer = new IamGroup("developer"); + * var developer = new IamGroup("developer", IamGroupArgs.builder() + * .name("developer") + * .build()); * * ctx.export("minioUserGroup", developer.groupName()); * } diff --git a/sdk/java/src/main/java/com/pulumi/minio/IamGroupPolicy.java b/sdk/java/src/main/java/com/pulumi/minio/IamGroupPolicy.java index 054040c..2105183 100644 --- a/sdk/java/src/main/java/com/pulumi/minio/IamGroupPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/minio/IamGroupPolicy.java @@ -25,6 +25,7 @@ * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.minio.IamGroup; + * import com.pulumi.minio.IamGroupArgs; * import com.pulumi.minio.IamGroupPolicy; * import com.pulumi.minio.IamGroupPolicyArgs; * import java.util.List; @@ -40,9 +41,12 @@ * } * * public static void stack(Context ctx) { - * var developer = new IamGroup("developer"); + * var developer = new IamGroup("developer", IamGroupArgs.builder() + * .name("developer") + * .build()); * * var testPolicy = new IamGroupPolicy("testPolicy", IamGroupPolicyArgs.builder() + * .name("state-terraform-s3") * .group(developer.id()) * .policy(""" * { @@ -57,13 +61,12 @@ * } * ] * } - * * """) * .build()); * - * ctx.export("minioName", minio_iam_group_membership.developer().id()); - * ctx.export("minioPolicy", minio_iam_group_membership.developer().policy()); - * ctx.export("minioGroup", minio_iam_group_membership.developer().group()); + * ctx.export("minioName", developerMinioIamGroupMembership.id()); + * ctx.export("minioPolicy", developerMinioIamGroupMembership.policy()); + * ctx.export("minioGroup", developerMinioIamGroupMembership.group()); * } * } * ``` diff --git a/sdk/java/src/main/java/com/pulumi/minio/IamGroupPolicyAttachment.java b/sdk/java/src/main/java/com/pulumi/minio/IamGroupPolicyAttachment.java index 0c8340f..c7eb003 100644 --- a/sdk/java/src/main/java/com/pulumi/minio/IamGroupPolicyAttachment.java +++ b/sdk/java/src/main/java/com/pulumi/minio/IamGroupPolicyAttachment.java @@ -16,68 +16,6 @@ /** * ## Example Usage * - * <!--Start PulumiCodeChooser --> - * ```java - * package generated_program; - * - * import com.pulumi.Context; - * import com.pulumi.Pulumi; - * import com.pulumi.core.Output; - * import com.pulumi.minio.IamGroup; - * import com.pulumi.minio.IamGroupPolicy; - * import com.pulumi.minio.IamGroupPolicyArgs; - * import com.pulumi.minio.IamGroupPolicyAttachment; - * import com.pulumi.minio.IamGroupPolicyAttachmentArgs; - * import java.util.List; - * import java.util.ArrayList; - * import java.util.Map; - * import java.io.File; - * import java.nio.file.Files; - * import java.nio.file.Paths; - * - * public class App { - * public static void main(String[] args) { - * Pulumi.run(App::stack); - * } - * - * public static void stack(Context ctx) { - * var developerIamGroup = new IamGroup("developerIamGroup"); - * - * var testPolicy = new IamGroupPolicy("testPolicy", IamGroupPolicyArgs.builder() - * .policy(""" - * { - * "Version":"2012-10-17", - * "Statement": [ - * { - * "Sid":"ListAllBucket", - * "Effect": "Allow", - * "Action": ["s3:PutObject"], - * "Principal":"*", - * "Resource": "arn:aws:s3:::state-terraform-s3/*" - * } - * ] - * } - * """) - * .build()); - * - * var developerIamGroupPolicyAttachment = new IamGroupPolicyAttachment("developerIamGroupPolicyAttachment", IamGroupPolicyAttachmentArgs.builder() - * .groupName(minio_iam_group.group().name()) - * .policyName(minio_iam_policy.test_policy().id()) - * .build()); - * - * ctx.export("minioName", developerIamGroupPolicyAttachment.id()); - * ctx.export("minioUsers", developerIamGroupPolicyAttachment.groupName()); - * ctx.export("minioGroup", developerIamGroupPolicyAttachment.policyName()); - * var developerIndex_iamGroupPolicyAttachmentIamGroupPolicyAttachment = new IamGroupPolicyAttachment("developerIndex/iamGroupPolicyAttachmentIamGroupPolicyAttachment", IamGroupPolicyAttachmentArgs.builder() - * .userName("OU=Unit,DC=example,DC=com") - * .policyName(minio_iam_policy.test_policy().id()) - * .build()); - * - * } - * } - * ``` - * <!--End PulumiCodeChooser --> - * */ @ResourceType(type="minio:index/iamGroupPolicyAttachment:IamGroupPolicyAttachment") public class IamGroupPolicyAttachment extends com.pulumi.resources.CustomResource { diff --git a/sdk/java/src/main/java/com/pulumi/minio/IamGroupUserAttachment.java b/sdk/java/src/main/java/com/pulumi/minio/IamGroupUserAttachment.java index d4abfbf..2c5a9d2 100644 --- a/sdk/java/src/main/java/com/pulumi/minio/IamGroupUserAttachment.java +++ b/sdk/java/src/main/java/com/pulumi/minio/IamGroupUserAttachment.java @@ -24,7 +24,9 @@ * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.minio.IamGroup; + * import com.pulumi.minio.IamGroupArgs; * import com.pulumi.minio.IamUser; + * import com.pulumi.minio.IamUserArgs; * import com.pulumi.minio.IamGroupUserAttachment; * import com.pulumi.minio.IamGroupUserAttachmentArgs; * import java.util.List; @@ -40,12 +42,16 @@ * } * * public static void stack(Context ctx) { - * var developerIamGroup = new IamGroup("developerIamGroup"); + * var developer = new IamGroup("developer", IamGroupArgs.builder() + * .name("developer") + * .build()); * - * var userOne = new IamUser("userOne"); + * var userOne = new IamUser("userOne", IamUserArgs.builder() + * .name("test-user") + * .build()); * * var developerIamGroupUserAttachment = new IamGroupUserAttachment("developerIamGroupUserAttachment", IamGroupUserAttachmentArgs.builder() - * .groupName(minio_iam_group.group().name()) + * .groupName(group.name()) * .userName(userOne.name()) * .build()); * diff --git a/sdk/java/src/main/java/com/pulumi/minio/IamPolicy.java b/sdk/java/src/main/java/com/pulumi/minio/IamPolicy.java index 12a5fd2..1f1992c 100644 --- a/sdk/java/src/main/java/com/pulumi/minio/IamPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/minio/IamPolicy.java @@ -40,6 +40,7 @@ * * public static void stack(Context ctx) { * var testPolicy = new IamPolicy("testPolicy", IamPolicyArgs.builder() + * .name("state-terraform-s3") * .policy(""" * { * "Version":"2012-10-17", 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 b00622e..d6e646f 100644 --- a/sdk/java/src/main/java/com/pulumi/minio/IamServiceAccount.java +++ b/sdk/java/src/main/java/com/pulumi/minio/IamServiceAccount.java @@ -44,6 +44,7 @@ * * public static void stack(Context ctx) { * var test = new IamUser("test", IamUserArgs.builder() + * .name("test") * .forceDestroy(true) * .tags(Map.of("tag-key", "tag-value")) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/minio/IamUser.java b/sdk/java/src/main/java/com/pulumi/minio/IamUser.java index 43e067d..b21c7b8 100644 --- a/sdk/java/src/main/java/com/pulumi/minio/IamUser.java +++ b/sdk/java/src/main/java/com/pulumi/minio/IamUser.java @@ -43,14 +43,15 @@ * } * * public static void stack(Context ctx) { - * var testIamUser = new IamUser("testIamUser", IamUserArgs.builder() + * var test = new IamUser("test", IamUserArgs.builder() + * .name("test") * .forceDestroy(true) * .tags(Map.of("tag-key", "tag-value")) * .build()); * - * ctx.export("test", testIamUser.id()); - * ctx.export("status", testIamUser.status()); - * ctx.export("secret", testIamUser.secret()); + * ctx.export("test", test.id()); + * ctx.export("status", test.status()); + * ctx.export("secret", test.secret()); * } * } * ``` diff --git a/sdk/java/src/main/java/com/pulumi/minio/IamUserPolicyAttachment.java b/sdk/java/src/main/java/com/pulumi/minio/IamUserPolicyAttachment.java index 6d274c0..38f9934 100644 --- a/sdk/java/src/main/java/com/pulumi/minio/IamUserPolicyAttachment.java +++ b/sdk/java/src/main/java/com/pulumi/minio/IamUserPolicyAttachment.java @@ -16,68 +16,6 @@ /** * ## Example Usage * - * <!--Start PulumiCodeChooser --> - * ```java - * package generated_program; - * - * import com.pulumi.Context; - * import com.pulumi.Pulumi; - * import com.pulumi.core.Output; - * import com.pulumi.minio.IamUser; - * import com.pulumi.minio.IamPolicy; - * import com.pulumi.minio.IamPolicyArgs; - * import com.pulumi.minio.IamUserPolicyAttachment; - * import com.pulumi.minio.IamUserPolicyAttachmentArgs; - * import java.util.List; - * import java.util.ArrayList; - * import java.util.Map; - * import java.io.File; - * import java.nio.file.Files; - * import java.nio.file.Paths; - * - * public class App { - * public static void main(String[] args) { - * Pulumi.run(App::stack); - * } - * - * public static void stack(Context ctx) { - * var testUser = new IamUser("testUser"); - * - * var testPolicy = new IamPolicy("testPolicy", IamPolicyArgs.builder() - * .policy(""" - * { - * "Version":"2012-10-17", - * "Statement": [ - * { - * "Sid":"ListAllBucket", - * "Effect": "Allow", - * "Action": ["s3:PutObject"], - * "Principal":"*", - * "Resource": "arn:aws:s3:::state-terraform-s3/*" - * } - * ] - * } - * """) - * .build()); - * - * var developerIamUserPolicyAttachment = new IamUserPolicyAttachment("developerIamUserPolicyAttachment", IamUserPolicyAttachmentArgs.builder() - * .userName(testUser.id()) - * .policyName(testPolicy.id()) - * .build()); - * - * ctx.export("minioName", developerIamUserPolicyAttachment.id()); - * ctx.export("minioUsers", developerIamUserPolicyAttachment.userName()); - * ctx.export("minioGroup", developerIamUserPolicyAttachment.policyName()); - * var developerIndex_iamUserPolicyAttachmentIamUserPolicyAttachment = new IamUserPolicyAttachment("developerIndex/iamUserPolicyAttachmentIamUserPolicyAttachment", IamUserPolicyAttachmentArgs.builder() - * .userName("CN=My User,OU=Unit,DC=example,DC=com") - * .policyName(testPolicy.id()) - * .build()); - * - * } - * } - * ``` - * <!--End PulumiCodeChooser --> - * */ @ResourceType(type="minio:index/iamUserPolicyAttachment:IamUserPolicyAttachment") public class IamUserPolicyAttachment extends com.pulumi.resources.CustomResource { diff --git a/sdk/java/src/main/java/com/pulumi/minio/MinioFunctions.java b/sdk/java/src/main/java/com/pulumi/minio/MinioFunctions.java index 9e26504..6cdecb3 100644 --- a/sdk/java/src/main/java/com/pulumi/minio/MinioFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/minio/MinioFunctions.java @@ -70,6 +70,7 @@ public final class MinioFunctions { * .build()); * * var testPolicy = new IamPolicy("testPolicy", IamPolicyArgs.builder() + * .name("state-terraform-s3") * .policy(example.applyValue(getIamPolicyDocumentResult -> getIamPolicyDocumentResult.json())) * .build()); * @@ -138,6 +139,7 @@ public static Output getIamPolicyDocument() { * .build()); * * var testPolicy = new IamPolicy("testPolicy", IamPolicyArgs.builder() + * .name("state-terraform-s3") * .policy(example.applyValue(getIamPolicyDocumentResult -> getIamPolicyDocumentResult.json())) * .build()); * @@ -206,6 +208,7 @@ public static CompletableFuture getIamPolicyDocument * .build()); * * var testPolicy = new IamPolicy("testPolicy", IamPolicyArgs.builder() + * .name("state-terraform-s3") * .policy(example.applyValue(getIamPolicyDocumentResult -> getIamPolicyDocumentResult.json())) * .build()); * @@ -274,6 +277,7 @@ public static Output getIamPolicyDocument(GetIamPoli * .build()); * * var testPolicy = new IamPolicy("testPolicy", IamPolicyArgs.builder() + * .name("state-terraform-s3") * .policy(example.applyValue(getIamPolicyDocumentResult -> getIamPolicyDocumentResult.json())) * .build()); * @@ -342,6 +346,7 @@ public static CompletableFuture getIamPolicyDocument * .build()); * * var testPolicy = new IamPolicy("testPolicy", IamPolicyArgs.builder() + * .name("state-terraform-s3") * .policy(example.applyValue(getIamPolicyDocumentResult -> getIamPolicyDocumentResult.json())) * .build()); * @@ -410,6 +415,7 @@ public static Output getIamPolicyDocument(GetIamPoli * .build()); * * var testPolicy = new IamPolicy("testPolicy", IamPolicyArgs.builder() + * .name("state-terraform-s3") * .policy(example.applyValue(getIamPolicyDocumentResult -> getIamPolicyDocumentResult.json())) * .build()); * diff --git a/sdk/java/src/main/java/com/pulumi/minio/S3Bucket.java b/sdk/java/src/main/java/com/pulumi/minio/S3Bucket.java index f284812..aa63abe 100644 --- a/sdk/java/src/main/java/com/pulumi/minio/S3Bucket.java +++ b/sdk/java/src/main/java/com/pulumi/minio/S3Bucket.java @@ -42,8 +42,8 @@ * * public static void stack(Context ctx) { * var stateTerraformS3 = new S3Bucket("stateTerraformS3", S3BucketArgs.builder() - * .acl("public") * .bucket("state-terraform-s3") + * .acl("public") * .build()); * * ctx.export("minioId", stateTerraformS3.id()); diff --git a/sdk/nodejs/getIamPolicyDocument.ts b/sdk/nodejs/getIamPolicyDocument.ts index 6f31fcd..6930118 100644 --- a/sdk/nodejs/getIamPolicyDocument.ts +++ b/sdk/nodejs/getIamPolicyDocument.ts @@ -45,7 +45,10 @@ import * as utilities from "./utilities"; * }, * ], * }); - * const testPolicy = new minio.IamPolicy("testPolicy", {policy: example.then(example => example.json)}); + * const testPolicy = new minio.IamPolicy("test_policy", { + * name: "state-terraform-s3", + * policy: example.then(example => example.json), + * }); * ``` * */ @@ -127,7 +130,10 @@ export interface GetIamPolicyDocumentResult { * }, * ], * }); - * const testPolicy = new minio.IamPolicy("testPolicy", {policy: example.then(example => example.json)}); + * const testPolicy = new minio.IamPolicy("test_policy", { + * name: "state-terraform-s3", + * policy: example.then(example => example.json), + * }); * ``` * */ diff --git a/sdk/nodejs/iamGroup.ts b/sdk/nodejs/iamGroup.ts index 96595fa..5436649 100644 --- a/sdk/nodejs/iamGroup.ts +++ b/sdk/nodejs/iamGroup.ts @@ -12,7 +12,7 @@ import * as utilities from "./utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as minio from "@pulumi/minio"; * - * const developer = new minio.IamGroup("developer", {}); + * const developer = new minio.IamGroup("developer", {name: "developer"}); * export const minioUserGroup = developer.groupName; * ``` * diff --git a/sdk/nodejs/iamGroupPolicy.ts b/sdk/nodejs/iamGroupPolicy.ts index 0ae31fc..e8546ef 100644 --- a/sdk/nodejs/iamGroupPolicy.ts +++ b/sdk/nodejs/iamGroupPolicy.ts @@ -12,8 +12,9 @@ import * as utilities from "./utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as minio from "@pulumi/minio"; * - * const developer = new minio.IamGroup("developer", {}); - * const testPolicy = new minio.IamGroupPolicy("testPolicy", { + * const developer = new minio.IamGroup("developer", {name: "developer"}); + * const testPolicy = new minio.IamGroupPolicy("test_policy", { + * name: "state-terraform-s3", * group: developer.id, * policy: `{ * "Version":"2012-10-17", @@ -27,12 +28,11 @@ import * as utilities from "./utilities"; * } * ] * } - * * `, * }); - * export const minioName = minio_iam_group_membership.developer.id; - * export const minioPolicy = minio_iam_group_membership.developer.policy; - * export const minioGroup = minio_iam_group_membership.developer.group; + * export const minioName = developerMinioIamGroupMembership.id; + * export const minioPolicy = developerMinioIamGroupMembership.policy; + * export const minioGroup = developerMinioIamGroupMembership.group; * ``` * */ diff --git a/sdk/nodejs/iamGroupUserAttachment.ts b/sdk/nodejs/iamGroupUserAttachment.ts index 70a1f21..670c5b4 100644 --- a/sdk/nodejs/iamGroupUserAttachment.ts +++ b/sdk/nodejs/iamGroupUserAttachment.ts @@ -12,10 +12,10 @@ import * as utilities from "./utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as minio from "@pulumi/minio"; * - * const developerIamGroup = new minio.IamGroup("developerIamGroup", {}); - * const userOne = new minio.IamUser("userOne", {}); - * const developerIamGroupUserAttachment = new minio.IamGroupUserAttachment("developerIamGroupUserAttachment", { - * groupName: minio_iam_group.group.name, + * const developer = new minio.IamGroup("developer", {name: "developer"}); + * const userOne = new minio.IamUser("user_one", {name: "test-user"}); + * const developerIamGroupUserAttachment = new minio.IamGroupUserAttachment("developer", { + * groupName: group.name, * userName: userOne.name, * }); * export const minioName = developerIamGroupUserAttachment.id; diff --git a/sdk/nodejs/iamPolicy.ts b/sdk/nodejs/iamPolicy.ts index 0ab8bd9..f6dceb0 100644 --- a/sdk/nodejs/iamPolicy.ts +++ b/sdk/nodejs/iamPolicy.ts @@ -12,7 +12,9 @@ import * as utilities from "./utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as minio from "@pulumi/minio"; * - * const testPolicy = new minio.IamPolicy("testPolicy", {policy: `{ + * const testPolicy = new minio.IamPolicy("test_policy", { + * name: "state-terraform-s3", + * policy: `{ * "Version":"2012-10-17", * "Statement": [ * { @@ -24,7 +26,8 @@ import * as utilities from "./utilities"; * } * ] * } - * `}); + * `, + * }); * export const minioId = testPolicy.id; * export const minioPolicy = testPolicy.policy; * ``` diff --git a/sdk/nodejs/iamServiceAccount.ts b/sdk/nodejs/iamServiceAccount.ts index 2f5e639..936abe7 100644 --- a/sdk/nodejs/iamServiceAccount.ts +++ b/sdk/nodejs/iamServiceAccount.ts @@ -13,12 +13,13 @@ import * as utilities from "./utilities"; * import * as minio from "@pulumi/minio"; * * const test = new minio.IamUser("test", { + * name: "test", * forceDestroy: true, * tags: { * "tag-key": "tag-value", * }, * }); - * const testServiceAccount = new minio.IamServiceAccount("testServiceAccount", {targetUser: test.name}); + * const testServiceAccount = new minio.IamServiceAccount("test_service_account", {targetUser: test.name}); * export const minioUser = testServiceAccount.accessKey; * export const minioPassword = testServiceAccount.secretKey; * ``` diff --git a/sdk/nodejs/iamUser.ts b/sdk/nodejs/iamUser.ts index 9ef28c0..8963d2c 100644 --- a/sdk/nodejs/iamUser.ts +++ b/sdk/nodejs/iamUser.ts @@ -12,15 +12,20 @@ import * as utilities from "./utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as minio from "@pulumi/minio"; * - * const testIamUser = new minio.IamUser("testIamUser", { - * forceDestroy: true, - * tags: { - * "tag-key": "tag-value", - * }, - * }); - * export const test = testIamUser.id; - * export const status = testIamUser.status; - * export const secret = testIamUser.secret; + * export = async () => { + * const test = new minio.IamUser("test", { + * name: "test", + * forceDestroy: true, + * tags: { + * "tag-key": "tag-value", + * }, + * }); + * return { + * test: test.id, + * status: test.status, + * secret: test.secret, + * }; + * } * ``` * */ diff --git a/sdk/nodejs/iamUserPolicyAttachment.ts b/sdk/nodejs/iamUserPolicyAttachment.ts index 8a4da87..d95d82c 100644 --- a/sdk/nodejs/iamUserPolicyAttachment.ts +++ b/sdk/nodejs/iamUserPolicyAttachment.ts @@ -6,39 +6,6 @@ import * as utilities from "./utilities"; /** * ## Example Usage - * - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as minio from "@pulumi/minio"; - * - * const testUser = new minio.IamUser("testUser", {}); - * const testPolicy = new minio.IamPolicy("testPolicy", {policy: `{ - * "Version":"2012-10-17", - * "Statement": [ - * { - * "Sid":"ListAllBucket", - * "Effect": "Allow", - * "Action": ["s3:PutObject"], - * "Principal":"*", - * "Resource": "arn:aws:s3:::state-terraform-s3/*" - * } - * ] - * } - * `}); - * const developerIamUserPolicyAttachment = new minio.IamUserPolicyAttachment("developerIamUserPolicyAttachment", { - * userName: testUser.id, - * policyName: testPolicy.id, - * }); - * export const minioName = developerIamUserPolicyAttachment.id; - * export const minioUsers = developerIamUserPolicyAttachment.userName; - * export const minioGroup = developerIamUserPolicyAttachment.policyName; - * const developerIndex_iamUserPolicyAttachmentIamUserPolicyAttachment = new minio.IamUserPolicyAttachment("developerIndex/iamUserPolicyAttachmentIamUserPolicyAttachment", { - * userName: "CN=My User,OU=Unit,DC=example,DC=com", - * policyName: testPolicy.id, - * }); - * ``` - * */ export class IamUserPolicyAttachment extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/s3bucket.ts b/sdk/nodejs/s3bucket.ts index f0782ad..75d37d4 100644 --- a/sdk/nodejs/s3bucket.ts +++ b/sdk/nodejs/s3bucket.ts @@ -12,9 +12,9 @@ import * as utilities from "./utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as minio from "@pulumi/minio"; * - * const stateTerraformS3 = new minio.S3Bucket("stateTerraformS3", { - * acl: "public", + * const stateTerraformS3 = new minio.S3Bucket("state_terraform_s3", { * bucket: "state-terraform-s3", + * acl: "public", * }); * export const minioId = stateTerraformS3.id; * export const minioUrl = stateTerraformS3.bucketDomainName; diff --git a/sdk/nodejs/s3object.ts b/sdk/nodejs/s3object.ts index 5570f99..d8b4265 100644 --- a/sdk/nodejs/s3object.ts +++ b/sdk/nodejs/s3object.ts @@ -12,11 +12,11 @@ import * as utilities from "./utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as minio from "@pulumi/minio"; * - * const stateTerraformS3 = new minio.S3Bucket("stateTerraformS3", { + * const stateTerraformS3 = new minio.S3Bucket("state_terraform_s3", { * bucket: "state-terraform-s3", * acl: "public", * }); - * const txtFile = new minio.S3Object("txtFile", { + * const txtFile = new minio.S3Object("txt_file", { * bucketName: stateTerraformS3.bucket, * objectName: "text.txt", * content: "Lorem ipsum dolor sit amet.", diff --git a/sdk/python/pulumi_minio/get_iam_policy_document.py b/sdk/python/pulumi_minio/get_iam_policy_document.py index c62fcd7..c65cbb1 100644 --- a/sdk/python/pulumi_minio/get_iam_policy_document.py +++ b/sdk/python/pulumi_minio/get_iam_policy_document.py @@ -143,7 +143,9 @@ def get_iam_policy_document(override_json: Optional[str] = None, ], ), ]) - test_policy = minio.IamPolicy("testPolicy", policy=example.json) + test_policy = minio.IamPolicy("test_policy", + name="state-terraform-s3", + policy=example.json) ``` """ @@ -210,7 +212,9 @@ def get_iam_policy_document_output(override_json: Optional[pulumi.Input[Optional ], ), ]) - test_policy = minio.IamPolicy("testPolicy", policy=example.json) + test_policy = minio.IamPolicy("test_policy", + name="state-terraform-s3", + policy=example.json) ``` """ diff --git a/sdk/python/pulumi_minio/iam_group.py b/sdk/python/pulumi_minio/iam_group.py index 3cf7874..38f488a 100644 --- a/sdk/python/pulumi_minio/iam_group.py +++ b/sdk/python/pulumi_minio/iam_group.py @@ -144,7 +144,7 @@ def __init__(__self__, import pulumi import pulumi_minio as minio - developer = minio.IamGroup("developer") + developer = minio.IamGroup("developer", name="developer") pulumi.export("minioUserGroup", developer.group_name) ``` @@ -168,7 +168,7 @@ def __init__(__self__, import pulumi import pulumi_minio as minio - developer = minio.IamGroup("developer") + developer = minio.IamGroup("developer", name="developer") pulumi.export("minioUserGroup", developer.group_name) ``` diff --git a/sdk/python/pulumi_minio/iam_group_policy.py b/sdk/python/pulumi_minio/iam_group_policy.py index fbf94ba..8ffa02e 100644 --- a/sdk/python/pulumi_minio/iam_group_policy.py +++ b/sdk/python/pulumi_minio/iam_group_policy.py @@ -139,8 +139,9 @@ def __init__(__self__, import pulumi import pulumi_minio as minio - developer = minio.IamGroup("developer") - test_policy = minio.IamGroupPolicy("testPolicy", + developer = minio.IamGroup("developer", name="developer") + test_policy = minio.IamGroupPolicy("test_policy", + name="state-terraform-s3", group=developer.id, policy=\"\"\"{ "Version":"2012-10-17", @@ -154,11 +155,10 @@ def __init__(__self__, } ] } - \"\"\") - pulumi.export("minioName", minio_iam_group_membership["developer"]["id"]) - pulumi.export("minioPolicy", minio_iam_group_membership["developer"]["policy"]) - pulumi.export("minioGroup", minio_iam_group_membership["developer"]["group"]) + pulumi.export("minioName", developer_minio_iam_group_membership["id"]) + pulumi.export("minioPolicy", developer_minio_iam_group_membership["policy"]) + pulumi.export("minioGroup", developer_minio_iam_group_membership["group"]) ``` @@ -179,8 +179,9 @@ def __init__(__self__, import pulumi import pulumi_minio as minio - developer = minio.IamGroup("developer") - test_policy = minio.IamGroupPolicy("testPolicy", + developer = minio.IamGroup("developer", name="developer") + test_policy = minio.IamGroupPolicy("test_policy", + name="state-terraform-s3", group=developer.id, policy=\"\"\"{ "Version":"2012-10-17", @@ -194,11 +195,10 @@ def __init__(__self__, } ] } - \"\"\") - pulumi.export("minioName", minio_iam_group_membership["developer"]["id"]) - pulumi.export("minioPolicy", minio_iam_group_membership["developer"]["policy"]) - pulumi.export("minioGroup", minio_iam_group_membership["developer"]["group"]) + pulumi.export("minioName", developer_minio_iam_group_membership["id"]) + pulumi.export("minioPolicy", developer_minio_iam_group_membership["policy"]) + pulumi.export("minioGroup", developer_minio_iam_group_membership["group"]) ``` diff --git a/sdk/python/pulumi_minio/iam_group_user_attachment.py b/sdk/python/pulumi_minio/iam_group_user_attachment.py index ce8d050..9e6ac78 100644 --- a/sdk/python/pulumi_minio/iam_group_user_attachment.py +++ b/sdk/python/pulumi_minio/iam_group_user_attachment.py @@ -89,10 +89,10 @@ def __init__(__self__, import pulumi import pulumi_minio as minio - developer_iam_group = minio.IamGroup("developerIamGroup") - user_one = minio.IamUser("userOne") - developer_iam_group_user_attachment = minio.IamGroupUserAttachment("developerIamGroupUserAttachment", - group_name=minio_iam_group["group"]["name"], + developer = minio.IamGroup("developer", name="developer") + user_one = minio.IamUser("user_one", name="test-user") + developer_iam_group_user_attachment = minio.IamGroupUserAttachment("developer", + group_name=group["name"], user_name=user_one.name) pulumi.export("minioName", developer_iam_group_user_attachment.id) pulumi.export("minioUsers", developer_iam_group_user_attachment.group_name) @@ -117,10 +117,10 @@ def __init__(__self__, import pulumi import pulumi_minio as minio - developer_iam_group = minio.IamGroup("developerIamGroup") - user_one = minio.IamUser("userOne") - developer_iam_group_user_attachment = minio.IamGroupUserAttachment("developerIamGroupUserAttachment", - group_name=minio_iam_group["group"]["name"], + developer = minio.IamGroup("developer", name="developer") + user_one = minio.IamUser("user_one", name="test-user") + developer_iam_group_user_attachment = minio.IamGroupUserAttachment("developer", + group_name=group["name"], user_name=user_one.name) pulumi.export("minioName", developer_iam_group_user_attachment.id) pulumi.export("minioUsers", developer_iam_group_user_attachment.group_name) diff --git a/sdk/python/pulumi_minio/iam_policy.py b/sdk/python/pulumi_minio/iam_policy.py index 29406ac..aacd842 100644 --- a/sdk/python/pulumi_minio/iam_policy.py +++ b/sdk/python/pulumi_minio/iam_policy.py @@ -115,7 +115,9 @@ def __init__(__self__, import pulumi import pulumi_minio as minio - test_policy = minio.IamPolicy("testPolicy", policy=\"\"\"{ + test_policy = minio.IamPolicy("test_policy", + name="state-terraform-s3", + policy=\"\"\"{ "Version":"2012-10-17", "Statement": [ { @@ -150,7 +152,9 @@ def __init__(__self__, import pulumi import pulumi_minio as minio - test_policy = minio.IamPolicy("testPolicy", policy=\"\"\"{ + test_policy = minio.IamPolicy("test_policy", + name="state-terraform-s3", + policy=\"\"\"{ "Version":"2012-10-17", "Statement": [ { diff --git a/sdk/python/pulumi_minio/iam_service_account.py b/sdk/python/pulumi_minio/iam_service_account.py index fa47fff..88e75fc 100644 --- a/sdk/python/pulumi_minio/iam_service_account.py +++ b/sdk/python/pulumi_minio/iam_service_account.py @@ -201,11 +201,12 @@ def __init__(__self__, import pulumi_minio as minio test = minio.IamUser("test", + name="test", force_destroy=True, tags={ "tag-key": "tag-value", }) - test_service_account = minio.IamServiceAccount("testServiceAccount", target_user=test.name) + test_service_account = minio.IamServiceAccount("test_service_account", target_user=test.name) pulumi.export("minioUser", test_service_account.access_key) pulumi.export("minioPassword", test_service_account.secret_key) ``` @@ -232,11 +233,12 @@ def __init__(__self__, import pulumi_minio as minio test = minio.IamUser("test", + name="test", force_destroy=True, tags={ "tag-key": "tag-value", }) - test_service_account = minio.IamServiceAccount("testServiceAccount", target_user=test.name) + test_service_account = minio.IamServiceAccount("test_service_account", target_user=test.name) pulumi.export("minioUser", test_service_account.access_key) pulumi.export("minioPassword", test_service_account.secret_key) ``` diff --git a/sdk/python/pulumi_minio/iam_user.py b/sdk/python/pulumi_minio/iam_user.py index b12d2d6..7d65877 100644 --- a/sdk/python/pulumi_minio/iam_user.py +++ b/sdk/python/pulumi_minio/iam_user.py @@ -227,14 +227,15 @@ def __init__(__self__, import pulumi import pulumi_minio as minio - test_iam_user = minio.IamUser("testIamUser", + test = minio.IamUser("test", + name="test", force_destroy=True, tags={ "tag-key": "tag-value", }) - pulumi.export("test", test_iam_user.id) - pulumi.export("status", test_iam_user.status) - pulumi.export("secret", test_iam_user.secret) + pulumi.export("test", test.id) + pulumi.export("status", test.status) + pulumi.export("secret", test.secret) ``` @@ -258,14 +259,15 @@ def __init__(__self__, import pulumi import pulumi_minio as minio - test_iam_user = minio.IamUser("testIamUser", + test = minio.IamUser("test", + name="test", force_destroy=True, tags={ "tag-key": "tag-value", }) - pulumi.export("test", test_iam_user.id) - pulumi.export("status", test_iam_user.status) - pulumi.export("secret", test_iam_user.secret) + pulumi.export("test", test.id) + pulumi.export("status", test.status) + pulumi.export("secret", test.secret) ``` diff --git a/sdk/python/pulumi_minio/iam_user_policy_attachment.py b/sdk/python/pulumi_minio/iam_user_policy_attachment.py index 83ab12d..04aadb8 100644 --- a/sdk/python/pulumi_minio/iam_user_policy_attachment.py +++ b/sdk/python/pulumi_minio/iam_user_policy_attachment.py @@ -84,37 +84,6 @@ def __init__(__self__, """ ## Example Usage - - ```python - import pulumi - import pulumi_minio as minio - - test_user = minio.IamUser("testUser") - test_policy = minio.IamPolicy("testPolicy", policy=\"\"\"{ - "Version":"2012-10-17", - "Statement": [ - { - "Sid":"ListAllBucket", - "Effect": "Allow", - "Action": ["s3:PutObject"], - "Principal":"*", - "Resource": "arn:aws:s3:::state-terraform-s3/*" - } - ] - } - \"\"\") - developer_iam_user_policy_attachment = minio.IamUserPolicyAttachment("developerIamUserPolicyAttachment", - user_name=test_user.id, - policy_name=test_policy.id) - pulumi.export("minioName", developer_iam_user_policy_attachment.id) - pulumi.export("minioUsers", developer_iam_user_policy_attachment.user_name) - pulumi.export("minioGroup", developer_iam_user_policy_attachment.policy_name) - developer_index_iam_user_policy_attachment_iam_user_policy_attachment = minio.IamUserPolicyAttachment("developerIndex/iamUserPolicyAttachmentIamUserPolicyAttachment", - user_name="CN=My User,OU=Unit,DC=example,DC=com", - policy_name=test_policy.id) - ``` - - :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. """ @@ -127,37 +96,6 @@ def __init__(__self__, """ ## Example Usage - - ```python - import pulumi - import pulumi_minio as minio - - test_user = minio.IamUser("testUser") - test_policy = minio.IamPolicy("testPolicy", policy=\"\"\"{ - "Version":"2012-10-17", - "Statement": [ - { - "Sid":"ListAllBucket", - "Effect": "Allow", - "Action": ["s3:PutObject"], - "Principal":"*", - "Resource": "arn:aws:s3:::state-terraform-s3/*" - } - ] - } - \"\"\") - developer_iam_user_policy_attachment = minio.IamUserPolicyAttachment("developerIamUserPolicyAttachment", - user_name=test_user.id, - policy_name=test_policy.id) - pulumi.export("minioName", developer_iam_user_policy_attachment.id) - pulumi.export("minioUsers", developer_iam_user_policy_attachment.user_name) - pulumi.export("minioGroup", developer_iam_user_policy_attachment.policy_name) - developer_index_iam_user_policy_attachment_iam_user_policy_attachment = minio.IamUserPolicyAttachment("developerIndex/iamUserPolicyAttachmentIamUserPolicyAttachment", - user_name="CN=My User,OU=Unit,DC=example,DC=com", - policy_name=test_policy.id) - ``` - - :param str resource_name: The name of the resource. :param IamUserPolicyAttachmentArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/pulumi_minio/s3_bucket.py b/sdk/python/pulumi_minio/s3_bucket.py index 224153a..c508688 100644 --- a/sdk/python/pulumi_minio/s3_bucket.py +++ b/sdk/python/pulumi_minio/s3_bucket.py @@ -215,9 +215,9 @@ def __init__(__self__, import pulumi import pulumi_minio as minio - state_terraform_s3 = minio.S3Bucket("stateTerraformS3", - acl="public", - bucket="state-terraform-s3") + state_terraform_s3 = minio.S3Bucket("state_terraform_s3", + bucket="state-terraform-s3", + acl="public") pulumi.export("minioId", state_terraform_s3.id) pulumi.export("minioUrl", state_terraform_s3.bucket_domain_name) ``` @@ -240,9 +240,9 @@ def __init__(__self__, import pulumi import pulumi_minio as minio - state_terraform_s3 = minio.S3Bucket("stateTerraformS3", - acl="public", - bucket="state-terraform-s3") + state_terraform_s3 = minio.S3Bucket("state_terraform_s3", + bucket="state-terraform-s3", + acl="public") pulumi.export("minioId", state_terraform_s3.id) pulumi.export("minioUrl", state_terraform_s3.bucket_domain_name) ``` diff --git a/sdk/python/pulumi_minio/s3_object.py b/sdk/python/pulumi_minio/s3_object.py index 9c826c7..ebd9b2e 100644 --- a/sdk/python/pulumi_minio/s3_object.py +++ b/sdk/python/pulumi_minio/s3_object.py @@ -239,10 +239,10 @@ def __init__(__self__, import pulumi import pulumi_minio as minio - state_terraform_s3 = minio.S3Bucket("stateTerraformS3", + state_terraform_s3 = minio.S3Bucket("state_terraform_s3", bucket="state-terraform-s3", acl="public") - txt_file = minio.S3Object("txtFile", + txt_file = minio.S3Object("txt_file", bucket_name=state_terraform_s3.bucket, object_name="text.txt", content="Lorem ipsum dolor sit amet.", @@ -269,10 +269,10 @@ def __init__(__self__, import pulumi import pulumi_minio as minio - state_terraform_s3 = minio.S3Bucket("stateTerraformS3", + state_terraform_s3 = minio.S3Bucket("state_terraform_s3", bucket="state-terraform-s3", acl="public") - txt_file = minio.S3Object("txtFile", + txt_file = minio.S3Object("txt_file", bucket_name=state_terraform_s3.bucket, object_name="text.txt", content="Lorem ipsum dolor sit amet.",