From 07153f73869af3a235b33c3e125c43522c1f2a64 Mon Sep 17 00:00:00 2001 From: Ian Wahbe Date: Thu, 8 Aug 2024 02:25:42 -0700 Subject: [PATCH] Upgrade terraform-provider-vault to v4.4.0 (#581) This PR was generated via `$ upgrade-provider pulumi/pulumi-vault`. --- - Updating Java Gen version from 0.12.0 to 0.13.0. - Upgrading terraform-provider-vault from 4.3.0 to 4.4.0. Fixes #580 --- .pulumi-java-gen.version | 2 +- .../0001-dummy-for-module-resolution.patch | 1 - patches/0001-empty.patch | 14 +++ .../cmd/pulumi-resource-vault/schema.json | 41 ++++++- provider/go.mod | 2 +- provider/go.sum | 4 +- sdk/dotnet/Aws/SecretBackendRole.cs | 57 +++++++++ sdk/dotnet/Identity/GetEntity.cs | 4 +- sdk/dotnet/Mount.cs | 9 +- sdk/go/vault/aws/secretBackendRole.go | 48 ++++++++ sdk/go/vault/identity/getEntity.go | 2 +- sdk/go/vault/mount.go | 18 ++- sdk/java/build.gradle | 4 +- .../src/main/java/com/pulumi/vault/Audit.java | 9 +- .../com/pulumi/vault/AuditRequestHeader.java | 9 +- .../java/com/pulumi/vault/AuthBackend.java | 9 +- .../com/pulumi/vault/CertAuthBackendRole.java | 9 +- .../main/java/com/pulumi/vault/EgpPolicy.java | 9 +- .../main/java/com/pulumi/vault/MfaDuo.java | 9 +- .../main/java/com/pulumi/vault/MfaOkta.java | 9 +- .../main/java/com/pulumi/vault/MfaPingid.java | 9 +- .../main/java/com/pulumi/vault/MfaTotp.java | 9 +- .../src/main/java/com/pulumi/vault/Mount.java | 15 ++- .../main/java/com/pulumi/vault/MountArgs.java | 12 +- .../main/java/com/pulumi/vault/Namespace.java | 9 +- .../com/pulumi/vault/NomadSecretBackend.java | 9 +- .../com/pulumi/vault/NomadSecretRole.java | 9 +- .../java/com/pulumi/vault/PasswordPolicy.java | 9 +- .../main/java/com/pulumi/vault/Plugin.java | 9 +- .../com/pulumi/vault/PluginPinnedVersion.java | 9 +- .../main/java/com/pulumi/vault/Policy.java | 9 +- .../main/java/com/pulumi/vault/Provider.java | 9 +- .../com/pulumi/vault/QuotaLeaseCount.java | 9 +- .../java/com/pulumi/vault/QuotaRateLimit.java | 9 +- .../java/com/pulumi/vault/RaftAutopilot.java | 9 +- .../pulumi/vault/RaftSnapshotAgentConfig.java | 9 +- .../main/java/com/pulumi/vault/RgpPolicy.java | 9 +- .../src/main/java/com/pulumi/vault/Token.java | 9 +- .../com/pulumi/vault/ad/SecretBackend.java | 9 +- .../com/pulumi/vault/ad/SecretLibrary.java | 9 +- .../java/com/pulumi/vault/ad/SecretRole.java | 9 +- .../vault/alicloud/AuthBackendRole.java | 9 +- .../vault/appRole/AuthBackendLogin.java | 9 +- .../pulumi/vault/appRole/AuthBackendRole.java | 9 +- .../appRole/AuthBackendRoleSecretId.java | 9 +- .../com/pulumi/vault/aws/AuthBackendCert.java | 9 +- .../pulumi/vault/aws/AuthBackendClient.java | 9 +- .../vault/aws/AuthBackendConfigIdentity.java | 9 +- .../aws/AuthBackendIdentityWhitelist.java | 9 +- .../pulumi/vault/aws/AuthBackendLogin.java | 9 +- .../com/pulumi/vault/aws/AuthBackendRole.java | 9 +- .../pulumi/vault/aws/AuthBackendRoleTag.java | 9 +- .../aws/AuthBackendRoletagBlacklist.java | 9 +- .../pulumi/vault/aws/AuthBackendStsRole.java | 9 +- .../com/pulumi/vault/aws/SecretBackend.java | 9 +- .../pulumi/vault/aws/SecretBackendRole.java | 43 ++++++- .../vault/aws/SecretBackendRoleArgs.java | 86 +++++++++++++ .../vault/aws/SecretBackendStaticRole.java | 9 +- .../aws/inputs/SecretBackendRoleState.java | 86 +++++++++++++ .../pulumi/vault/azure/AuthBackendConfig.java | 9 +- .../pulumi/vault/azure/AuthBackendRole.java | 9 +- .../java/com/pulumi/vault/azure/Backend.java | 9 +- .../com/pulumi/vault/azure/BackendRole.java | 9 +- .../pulumi/vault/config/UiCustomMessage.java | 9 +- .../pulumi/vault/consul/SecretBackend.java | 9 +- .../vault/consul/SecretBackendRole.java | 9 +- .../database/SecretBackendConnection.java | 9 +- .../vault/database/SecretBackendRole.java | 9 +- .../database/SecretBackendStaticRole.java | 9 +- .../pulumi/vault/database/SecretsMount.java | 9 +- .../com/pulumi/vault/gcp/AuthBackend.java | 9 +- .../com/pulumi/vault/gcp/AuthBackendRole.java | 9 +- .../com/pulumi/vault/gcp/SecretBackend.java | 9 +- .../vault/gcp/SecretImpersonatedAccount.java | 9 +- .../com/pulumi/vault/gcp/SecretRoleset.java | 9 +- .../pulumi/vault/gcp/SecretStaticAccount.java | 9 +- .../com/pulumi/vault/generic/Endpoint.java | 9 +- .../java/com/pulumi/vault/generic/Secret.java | 9 +- .../com/pulumi/vault/github/AuthBackend.java | 9 +- .../java/com/pulumi/vault/github/Team.java | 9 +- .../java/com/pulumi/vault/github/User.java | 9 +- .../com/pulumi/vault/identity/Entity.java | 9 +- .../pulumi/vault/identity/EntityAlias.java | 9 +- .../pulumi/vault/identity/EntityPolicies.java | 9 +- .../java/com/pulumi/vault/identity/Group.java | 9 +- .../com/pulumi/vault/identity/GroupAlias.java | 9 +- .../vault/identity/GroupMemberEntityIds.java | 9 +- .../vault/identity/GroupMemberGroupIds.java | 9 +- .../pulumi/vault/identity/GroupPolicies.java | 9 +- .../vault/identity/IdentityFunctions.java | 12 +- .../com/pulumi/vault/identity/MfaDuo.java | 9 +- .../vault/identity/MfaLoginEnforcement.java | 9 +- .../com/pulumi/vault/identity/MfaOkta.java | 9 +- .../com/pulumi/vault/identity/MfaPingid.java | 9 +- .../com/pulumi/vault/identity/MfaTotp.java | 9 +- .../java/com/pulumi/vault/identity/Oidc.java | 9 +- .../pulumi/vault/identity/OidcAssignment.java | 9 +- .../com/pulumi/vault/identity/OidcClient.java | 9 +- .../com/pulumi/vault/identity/OidcKey.java | 9 +- .../identity/OidcKeyAllowedClientID.java | 9 +- .../pulumi/vault/identity/OidcProvider.java | 9 +- .../com/pulumi/vault/identity/OidcRole.java | 9 +- .../com/pulumi/vault/identity/OidcScope.java | 9 +- .../com/pulumi/vault/inputs/MountState.java | 12 +- .../com/pulumi/vault/jwt/AuthBackend.java | 9 +- .../com/pulumi/vault/jwt/AuthBackendRole.java | 9 +- .../com/pulumi/vault/kmip/SecretBackend.java | 9 +- .../com/pulumi/vault/kmip/SecretRole.java | 9 +- .../com/pulumi/vault/kmip/SecretScope.java | 9 +- .../vault/kubernetes/AuthBackendConfig.java | 9 +- .../vault/kubernetes/AuthBackendRole.java | 9 +- .../vault/kubernetes/SecretBackend.java | 9 +- .../vault/kubernetes/SecretBackendRole.java | 9 +- .../main/java/com/pulumi/vault/kv/Secret.java | 9 +- .../com/pulumi/vault/kv/SecretBackendV2.java | 9 +- .../java/com/pulumi/vault/kv/SecretV2.java | 9 +- .../com/pulumi/vault/ldap/AuthBackend.java | 9 +- .../pulumi/vault/ldap/AuthBackendGroup.java | 9 +- .../pulumi/vault/ldap/AuthBackendUser.java | 9 +- .../com/pulumi/vault/ldap/SecretBackend.java | 9 +- .../vault/ldap/SecretBackendDynamicRole.java | 9 +- .../vault/ldap/SecretBackendLibrarySet.java | 9 +- .../vault/ldap/SecretBackendStaticRole.java | 9 +- .../java/com/pulumi/vault/managed/Keys.java | 9 +- .../vault/mongodbatlas/SecretBackend.java | 9 +- .../pulumi/vault/mongodbatlas/SecretRole.java | 9 +- .../com/pulumi/vault/okta/AuthBackend.java | 9 +- .../pulumi/vault/okta/AuthBackendGroup.java | 9 +- .../pulumi/vault/okta/AuthBackendUser.java | 9 +- .../vault/pkiSecret/BackendConfigCluster.java | 9 +- .../vault/pkiSecret/BackendConfigEst.java | 9 +- .../vault/pkiSecret/SecretBackendCert.java | 9 +- .../pkiSecret/SecretBackendConfigCa.java | 9 +- .../pkiSecret/SecretBackendConfigIssuers.java | 9 +- .../pkiSecret/SecretBackendConfigUrls.java | 9 +- .../pkiSecret/SecretBackendCrlConfig.java | 9 +- .../SecretBackendIntermediateCertRequest.java | 9 +- .../SecretBackendIntermediateSetSigned.java | 9 +- .../vault/pkiSecret/SecretBackendIssuer.java | 9 +- .../vault/pkiSecret/SecretBackendKey.java | 9 +- .../vault/pkiSecret/SecretBackendRole.java | 9 +- .../pkiSecret/SecretBackendRootCert.java | 9 +- .../SecretBackendRootSignIntermediate.java | 9 +- .../vault/pkiSecret/SecretBackendSign.java | 9 +- .../pulumi/vault/rabbitMq/SecretBackend.java | 9 +- .../vault/rabbitMq/SecretBackendRole.java | 9 +- .../com/pulumi/vault/saml/AuthBackend.java | 9 +- .../pulumi/vault/saml/AuthBackendRole.java | 9 +- .../pulumi/vault/secrets/SyncAssociation.java | 9 +- .../vault/secrets/SyncAwsDestination.java | 9 +- .../vault/secrets/SyncAzureDestination.java | 9 +- .../com/pulumi/vault/secrets/SyncConfig.java | 9 +- .../vault/secrets/SyncGcpDestination.java | 9 +- .../vault/secrets/SyncGhDestination.java | 9 +- .../pulumi/vault/secrets/SyncGithubApps.java | 9 +- .../vault/secrets/SyncVercelDestination.java | 9 +- .../com/pulumi/vault/ssh/SecretBackendCa.java | 9 +- .../pulumi/vault/ssh/SecretBackendRole.java | 9 +- .../vault/terraformcloud/SecretBackend.java | 9 +- .../vault/terraformcloud/SecretCreds.java | 9 +- .../vault/terraformcloud/SecretRole.java | 9 +- .../vault/tokenauth/AuthBackendRole.java | 9 +- .../com/pulumi/vault/transform/Alphabet.java | 9 +- .../java/com/pulumi/vault/transform/Role.java | 9 +- .../com/pulumi/vault/transform/Template.java | 9 +- .../vault/transform/Transformation.java | 9 +- .../vault/transit/SecretBackendKey.java | 9 +- .../vault/transit/SecretCacheConfig.java | 9 +- sdk/nodejs/aws/secretBackendRole.ts | 37 ++++++ sdk/nodejs/identity/getEntity.ts | 4 +- sdk/nodejs/mount.ts | 9 +- .../pulumi_vault/aws/secret_backend_role.py | 115 ++++++++++++++++++ .../pulumi_vault/identity/get_entity.py | 4 +- sdk/python/pulumi_vault/mount.py | 21 ++-- upstream | 2 +- 175 files changed, 1792 insertions(+), 204 deletions(-) delete mode 100644 patches/0001-dummy-for-module-resolution.patch create mode 100644 patches/0001-empty.patch diff --git a/.pulumi-java-gen.version b/.pulumi-java-gen.version index d33c3a212..51de3305b 100644 --- a/.pulumi-java-gen.version +++ b/.pulumi-java-gen.version @@ -1 +1 @@ -0.12.0 \ No newline at end of file +0.13.0 \ No newline at end of file diff --git a/patches/0001-dummy-for-module-resolution.patch b/patches/0001-dummy-for-module-resolution.patch deleted file mode 100644 index 837fd1aba..000000000 --- a/patches/0001-dummy-for-module-resolution.patch +++ /dev/null @@ -1 +0,0 @@ -This patch is intentionally empty so we can use the `upstream` submodule for dependency resolution, since the upstream provider does not follow Go module versioning standards. \ No newline at end of file diff --git a/patches/0001-empty.patch b/patches/0001-empty.patch new file mode 100644 index 000000000..c3444535e --- /dev/null +++ b/patches/0001-empty.patch @@ -0,0 +1,14 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Ian Wahbe +Date: Thu, 8 Aug 2024 10:53:10 +0200 +Subject: [PATCH] empty + + +diff --git a/empty.md b/empty.md +new file mode 100644 +index 00000000..cc4b43f2 +--- /dev/null ++++ b/empty.md +@@ -0,0 +1,2 @@ ++This patch is intentionally empty so we can use the `upstream` submodule for dependency ++resolution, since the upstream provider does not follow Go module versioning standards. diff --git a/provider/cmd/pulumi-resource-vault/schema.json b/provider/cmd/pulumi-resource-vault/schema.json index 78e7f1b71..07fb73608 100644 --- a/provider/cmd/pulumi-resource-vault/schema.json +++ b/provider/cmd/pulumi-resource-vault/schema.json @@ -8154,6 +8154,10 @@ "type": "integer", "description": "The default TTL in seconds for STS credentials.\nWhen a TTL is not specified when STS credentials are requested,\nand a default TTL is specified on the role,\nthen this default TTL will be used. Valid only when `credential_type` is one of\n`assumed_role` or `federation_token`.\n" }, + "externalId": { + "type": "string", + "description": "External ID to set for assume role creds. \nValid only when `credential_type` is set to `assumed_role`.\n" + }, "iamGroups": { "type": "array", "items": { @@ -8202,6 +8206,13 @@ }, "description": "Specifies the ARNs of the AWS roles this Vault role\nis allowed to assume. Required when `credential_type` is `assumed_role` and\nprohibited otherwise.\n" }, + "sessionTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A map of strings representing key/value pairs to be set\nduring assume role creds creation. Valid only when `credential_type` is set to\n`assumed_role`.\n" + }, "userPath": { "type": "string", "description": "The path for the user name. Valid only when \n`credential_type` is `iam_user`. Default is `/`.\n" @@ -8228,6 +8239,10 @@ "type": "integer", "description": "The default TTL in seconds for STS credentials.\nWhen a TTL is not specified when STS credentials are requested,\nand a default TTL is specified on the role,\nthen this default TTL will be used. Valid only when `credential_type` is one of\n`assumed_role` or `federation_token`.\n" }, + "externalId": { + "type": "string", + "description": "External ID to set for assume role creds. \nValid only when `credential_type` is set to `assumed_role`.\n" + }, "iamGroups": { "type": "array", "items": { @@ -8279,6 +8294,13 @@ "description": "Specifies the ARNs of the AWS roles this Vault role\nis allowed to assume. Required when `credential_type` is `assumed_role` and\nprohibited otherwise.\n", "willReplaceOnChanges": true }, + "sessionTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A map of strings representing key/value pairs to be set\nduring assume role creds creation. Valid only when `credential_type` is set to\n`assumed_role`.\n" + }, "userPath": { "type": "string", "description": "The path for the user name. Valid only when \n`credential_type` is `iam_user`. Default is `/`.\n" @@ -8304,6 +8326,10 @@ "type": "integer", "description": "The default TTL in seconds for STS credentials.\nWhen a TTL is not specified when STS credentials are requested,\nand a default TTL is specified on the role,\nthen this default TTL will be used. Valid only when `credential_type` is one of\n`assumed_role` or `federation_token`.\n" }, + "externalId": { + "type": "string", + "description": "External ID to set for assume role creds. \nValid only when `credential_type` is set to `assumed_role`.\n" + }, "iamGroups": { "type": "array", "items": { @@ -8355,6 +8381,13 @@ "description": "Specifies the ARNs of the AWS roles this Vault role\nis allowed to assume. Required when `credential_type` is `assumed_role` and\nprohibited otherwise.\n", "willReplaceOnChanges": true }, + "sessionTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A map of strings representing key/value pairs to be set\nduring assume role creds creation. Valid only when `credential_type` is set to\n`assumed_role`.\n" + }, "userPath": { "type": "string", "description": "The path for the user name. Valid only when \n`credential_type` is `iam_user`. Default is `/`.\n" @@ -17048,7 +17081,7 @@ }, "listingVisibility": { "type": "string", - "description": "Specifies whether to show this mount in the UI-specific listing endpoint\n" + "description": "Specifies whether to show this mount in the UI-specific\nlisting endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`.\n" }, "local": { "type": "boolean", @@ -17158,7 +17191,7 @@ }, "listingVisibility": { "type": "string", - "description": "Specifies whether to show this mount in the UI-specific listing endpoint\n" + "description": "Specifies whether to show this mount in the UI-specific\nlisting endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`.\n" }, "local": { "type": "boolean", @@ -17272,7 +17305,7 @@ }, "listingVisibility": { "type": "string", - "description": "Specifies whether to show this mount in the UI-specific listing endpoint\n" + "description": "Specifies whether to show this mount in the UI-specific\nlisting endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`.\n" }, "local": { "type": "boolean", @@ -32663,7 +32696,7 @@ } }, "vault:identity/getEntity:getEntity": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as vault from \"@pulumi/vault\";\n\nconst entity = vault.identity.getEntity({\n entityName: \"entity_12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_vault as vault\n\nentity = vault.identity.get_entity(entity_name=\"entity_12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Vault = Pulumi.Vault;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var entity = Vault.Identity.GetEntity.Invoke(new()\n {\n EntityName = \"entity_12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/identity\"\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 := identity.LookupEntity(ctx, \u0026identity.LookupEntityArgs{\n\t\t\tEntityName: pulumi.StringRef(\"entity_12345\"),\n\t\t}, nil)\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.vault.identity.IdentityFunctions;\nimport com.pulumi.vault.identity.inputs.GetEntityArgs;\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 entity = IdentityFunctions.getEntity(GetEntityArgs.builder()\n .entityName(\"entity_12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n entity:\n fn::invoke:\n Function: vault:identity:getEntity\n Arguments:\n entityName: entity_12345\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Required Vault Capabilities\n\nUse of this resource requires the `create` capability on `/identity/lookup/entity`.\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as vault from \"@pulumi/vault\";\n\nconst entity = vault.identity.getEntity({\n entityName: \"entity_12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_vault as vault\n\nentity = vault.identity.get_entity(entity_name=\"entity_12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Vault = Pulumi.Vault;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var entity = Vault.Identity.GetEntity.Invoke(new()\n {\n EntityName = \"entity_12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/identity\"\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 := identity.LookupEntity(ctx, \u0026identity.LookupEntityArgs{\n\t\t\tEntityName: pulumi.StringRef(\"entity_12345\"),\n\t\t}, nil)\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.vault.identity.IdentityFunctions;\nimport com.pulumi.vault.identity.inputs.GetEntityArgs;\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 entity = IdentityFunctions.getEntity(GetEntityArgs.builder()\n .entityName(\"entity_12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n entity:\n fn::invoke:\n Function: vault:identity:getEntity\n Arguments:\n entityName: entity_12345\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Required Vault Capabilities\n\nUse of this resource requires the `update` capability on `/identity/lookup/entity`.\n", "inputs": { "description": "A collection of arguments for invoking getEntity.\n", "properties": { diff --git a/provider/go.mod b/provider/go.mod index 9c076a741..f7f88527f 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -75,7 +75,7 @@ require ( github.com/deckarep/golang-set/v2 v2.5.0 // indirect github.com/distribution/reference v0.6.0 // indirect github.com/djherbis/times v1.5.0 // indirect - github.com/docker/docker v25.0.5+incompatible // indirect + github.com/docker/docker v25.0.6+incompatible // indirect github.com/docker/go-connections v0.4.0 // indirect github.com/docker/go-units v0.5.0 // indirect github.com/edsrzf/mmap-go v1.1.0 // indirect diff --git a/provider/go.sum b/provider/go.sum index b4286c448..7aaa49536 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1698,8 +1698,8 @@ github.com/docker/docker v20.10.17+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05 github.com/docker/docker v20.10.20+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/docker v24.0.5+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/docker v24.0.9+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker v25.0.5+incompatible h1:UmQydMduGkrD5nQde1mecF/YnSbTOaPeFIeP5C4W+DE= -github.com/docker/docker v25.0.5+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/docker v25.0.6+incompatible h1:5cPwbwriIcsua2REJe8HqQV+6WlWc1byg2QSXzBxBGg= +github.com/docker/docker v25.0.6+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/docker-credential-helpers v0.6.3/go.mod h1:WRaJzqw3CTB9bk10avuGsjVBZsD05qeibJ1/TYlvc0Y= github.com/docker/docker-credential-helpers v0.6.4/go.mod h1:ofX3UI0Gz1TteYBjtgs07O36Pyasyp66D2uKT7H8W1c= github.com/docker/docker-credential-helpers v0.7.0/go.mod h1:rETQfLdHNT3foU5kuNkFR1R1V12OJRRO5lzt2D1b5X0= diff --git a/sdk/dotnet/Aws/SecretBackendRole.cs b/sdk/dotnet/Aws/SecretBackendRole.cs index 337016d98..b25e8e59e 100644 --- a/sdk/dotnet/Aws/SecretBackendRole.cs +++ b/sdk/dotnet/Aws/SecretBackendRole.cs @@ -83,6 +83,13 @@ public partial class SecretBackendRole : global::Pulumi.CustomResource [Output("defaultStsTtl")] public Output DefaultStsTtl { get; private set; } = null!; + /// + /// External ID to set for assume role creds. + /// Valid only when `credential_type` is set to `assumed_role`. + /// + [Output("externalId")] + public Output ExternalId { get; private set; } = null!; + /// /// A list of IAM group names. IAM users generated /// against this vault role will be added to these IAM Groups. For a credential @@ -164,6 +171,14 @@ public partial class SecretBackendRole : global::Pulumi.CustomResource [Output("roleArns")] public Output> RoleArns { get; private set; } = null!; + /// + /// A map of strings representing key/value pairs to be set + /// during assume role creds creation. Valid only when `credential_type` is set to + /// `assumed_role`. + /// + [Output("sessionTags")] + public Output?> SessionTags { get; private set; } = null!; + /// /// The path for the user name. Valid only when /// `credential_type` is `iam_user`. Default is `/`. @@ -242,6 +257,13 @@ public sealed class SecretBackendRoleArgs : global::Pulumi.ResourceArgs [Input("defaultStsTtl")] public Input? DefaultStsTtl { get; set; } + /// + /// External ID to set for assume role creds. + /// Valid only when `credential_type` is set to `assumed_role`. + /// + [Input("externalId")] + public Input? ExternalId { get; set; } + [Input("iamGroups")] private InputList? _iamGroups; @@ -347,6 +369,20 @@ public InputList RoleArns set => _roleArns = value; } + [Input("sessionTags")] + private InputMap? _sessionTags; + + /// + /// A map of strings representing key/value pairs to be set + /// during assume role creds creation. Valid only when `credential_type` is set to + /// `assumed_role`. + /// + public InputMap SessionTags + { + get => _sessionTags ?? (_sessionTags = new InputMap()); + set => _sessionTags = value; + } + /// /// The path for the user name. Valid only when /// `credential_type` is `iam_user`. Default is `/`. @@ -387,6 +423,13 @@ public sealed class SecretBackendRoleState : global::Pulumi.ResourceArgs [Input("defaultStsTtl")] public Input? DefaultStsTtl { get; set; } + /// + /// External ID to set for assume role creds. + /// Valid only when `credential_type` is set to `assumed_role`. + /// + [Input("externalId")] + public Input? ExternalId { get; set; } + [Input("iamGroups")] private InputList? _iamGroups; @@ -492,6 +535,20 @@ public InputList RoleArns set => _roleArns = value; } + [Input("sessionTags")] + private InputMap? _sessionTags; + + /// + /// A map of strings representing key/value pairs to be set + /// during assume role creds creation. Valid only when `credential_type` is set to + /// `assumed_role`. + /// + public InputMap SessionTags + { + get => _sessionTags ?? (_sessionTags = new InputMap()); + set => _sessionTags = value; + } + /// /// The path for the user name. Valid only when /// `credential_type` is `iam_user`. Default is `/`. diff --git a/sdk/dotnet/Identity/GetEntity.cs b/sdk/dotnet/Identity/GetEntity.cs index f37488307..c615f2c69 100644 --- a/sdk/dotnet/Identity/GetEntity.cs +++ b/sdk/dotnet/Identity/GetEntity.cs @@ -32,7 +32,7 @@ public static class GetEntity /// /// ## Required Vault Capabilities /// - /// Use of this resource requires the `create` capability on `/identity/lookup/entity`. + /// Use of this resource requires the `update` capability on `/identity/lookup/entity`. /// public static Task InvokeAsync(GetEntityArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vault:identity/getEntity:getEntity", args ?? new GetEntityArgs(), options.WithDefaults()); @@ -58,7 +58,7 @@ public static Task InvokeAsync(GetEntityArgs? args = null, Invo /// /// ## Required Vault Capabilities /// - /// Use of this resource requires the `create` capability on `/identity/lookup/entity`. + /// Use of this resource requires the `update` capability on `/identity/lookup/entity`. /// public static Output Invoke(GetEntityInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vault:identity/getEntity:getEntity", args ?? new GetEntityInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/Mount.cs b/sdk/dotnet/Mount.cs index d770c1b37..6896df8ee 100644 --- a/sdk/dotnet/Mount.cs +++ b/sdk/dotnet/Mount.cs @@ -172,7 +172,8 @@ public partial class Mount : global::Pulumi.CustomResource public Output IdentityTokenKey { get; private set; } = null!; /// - /// Specifies whether to show this mount in the UI-specific listing endpoint + /// Specifies whether to show this mount in the UI-specific + /// listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. /// [Output("listingVisibility")] public Output ListingVisibility { get; private set; } = null!; @@ -371,7 +372,8 @@ public InputList DelegatedAuthAccessors public Input? IdentityTokenKey { get; set; } /// - /// Specifies whether to show this mount in the UI-specific listing endpoint + /// Specifies whether to show this mount in the UI-specific + /// listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. /// [Input("listingVisibility")] public Input? ListingVisibility { get; set; } @@ -550,7 +552,8 @@ public InputList DelegatedAuthAccessors public Input? IdentityTokenKey { get; set; } /// - /// Specifies whether to show this mount in the UI-specific listing endpoint + /// Specifies whether to show this mount in the UI-specific + /// listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. /// [Input("listingVisibility")] public Input? ListingVisibility { get; set; } diff --git a/sdk/go/vault/aws/secretBackendRole.go b/sdk/go/vault/aws/secretBackendRole.go index 7afe00ea9..37c08f3bf 100644 --- a/sdk/go/vault/aws/secretBackendRole.go +++ b/sdk/go/vault/aws/secretBackendRole.go @@ -83,6 +83,9 @@ type SecretBackendRole struct { // then this default TTL will be used. Valid only when `credentialType` is one of // `assumedRole` or `federationToken`. DefaultStsTtl pulumi.IntOutput `pulumi:"defaultStsTtl"` + // External ID to set for assume role creds. + // Valid only when `credentialType` is set to `assumedRole`. + ExternalId pulumi.StringPtrOutput `pulumi:"externalId"` // A list of IAM group names. IAM users generated // against this vault role will be added to these IAM Groups. For a credential // type of `assumedRole` or `federationToken`, the policies sent to the @@ -128,6 +131,10 @@ type SecretBackendRole struct { // is allowed to assume. Required when `credentialType` is `assumedRole` and // prohibited otherwise. RoleArns pulumi.StringArrayOutput `pulumi:"roleArns"` + // A map of strings representing key/value pairs to be set + // during assume role creds creation. Valid only when `credentialType` is set to + // `assumedRole`. + SessionTags pulumi.StringMapOutput `pulumi:"sessionTags"` // The path for the user name. Valid only when // `credentialType` is `iamUser`. Default is `/`. UserPath pulumi.StringPtrOutput `pulumi:"userPath"` @@ -182,6 +189,9 @@ type secretBackendRoleState struct { // then this default TTL will be used. Valid only when `credentialType` is one of // `assumedRole` or `federationToken`. DefaultStsTtl *int `pulumi:"defaultStsTtl"` + // External ID to set for assume role creds. + // Valid only when `credentialType` is set to `assumedRole`. + ExternalId *string `pulumi:"externalId"` // A list of IAM group names. IAM users generated // against this vault role will be added to these IAM Groups. For a credential // type of `assumedRole` or `federationToken`, the policies sent to the @@ -227,6 +237,10 @@ type secretBackendRoleState struct { // is allowed to assume. Required when `credentialType` is `assumedRole` and // prohibited otherwise. RoleArns []string `pulumi:"roleArns"` + // A map of strings representing key/value pairs to be set + // during assume role creds creation. Valid only when `credentialType` is set to + // `assumedRole`. + SessionTags map[string]string `pulumi:"sessionTags"` // The path for the user name. Valid only when // `credentialType` is `iamUser`. Default is `/`. UserPath *string `pulumi:"userPath"` @@ -246,6 +260,9 @@ type SecretBackendRoleState struct { // then this default TTL will be used. Valid only when `credentialType` is one of // `assumedRole` or `federationToken`. DefaultStsTtl pulumi.IntPtrInput + // External ID to set for assume role creds. + // Valid only when `credentialType` is set to `assumedRole`. + ExternalId pulumi.StringPtrInput // A list of IAM group names. IAM users generated // against this vault role will be added to these IAM Groups. For a credential // type of `assumedRole` or `federationToken`, the policies sent to the @@ -291,6 +308,10 @@ type SecretBackendRoleState struct { // is allowed to assume. Required when `credentialType` is `assumedRole` and // prohibited otherwise. RoleArns pulumi.StringArrayInput + // A map of strings representing key/value pairs to be set + // during assume role creds creation. Valid only when `credentialType` is set to + // `assumedRole`. + SessionTags pulumi.StringMapInput // The path for the user name. Valid only when // `credentialType` is `iamUser`. Default is `/`. UserPath pulumi.StringPtrInput @@ -314,6 +335,9 @@ type secretBackendRoleArgs struct { // then this default TTL will be used. Valid only when `credentialType` is one of // `assumedRole` or `federationToken`. DefaultStsTtl *int `pulumi:"defaultStsTtl"` + // External ID to set for assume role creds. + // Valid only when `credentialType` is set to `assumedRole`. + ExternalId *string `pulumi:"externalId"` // A list of IAM group names. IAM users generated // against this vault role will be added to these IAM Groups. For a credential // type of `assumedRole` or `federationToken`, the policies sent to the @@ -359,6 +383,10 @@ type secretBackendRoleArgs struct { // is allowed to assume. Required when `credentialType` is `assumedRole` and // prohibited otherwise. RoleArns []string `pulumi:"roleArns"` + // A map of strings representing key/value pairs to be set + // during assume role creds creation. Valid only when `credentialType` is set to + // `assumedRole`. + SessionTags map[string]string `pulumi:"sessionTags"` // The path for the user name. Valid only when // `credentialType` is `iamUser`. Default is `/`. UserPath *string `pulumi:"userPath"` @@ -379,6 +407,9 @@ type SecretBackendRoleArgs struct { // then this default TTL will be used. Valid only when `credentialType` is one of // `assumedRole` or `federationToken`. DefaultStsTtl pulumi.IntPtrInput + // External ID to set for assume role creds. + // Valid only when `credentialType` is set to `assumedRole`. + ExternalId pulumi.StringPtrInput // A list of IAM group names. IAM users generated // against this vault role will be added to these IAM Groups. For a credential // type of `assumedRole` or `federationToken`, the policies sent to the @@ -424,6 +455,10 @@ type SecretBackendRoleArgs struct { // is allowed to assume. Required when `credentialType` is `assumedRole` and // prohibited otherwise. RoleArns pulumi.StringArrayInput + // A map of strings representing key/value pairs to be set + // during assume role creds creation. Valid only when `credentialType` is set to + // `assumedRole`. + SessionTags pulumi.StringMapInput // The path for the user name. Valid only when // `credentialType` is `iamUser`. Default is `/`. UserPath pulumi.StringPtrInput @@ -538,6 +573,12 @@ func (o SecretBackendRoleOutput) DefaultStsTtl() pulumi.IntOutput { return o.ApplyT(func(v *SecretBackendRole) pulumi.IntOutput { return v.DefaultStsTtl }).(pulumi.IntOutput) } +// External ID to set for assume role creds. +// Valid only when `credentialType` is set to `assumedRole`. +func (o SecretBackendRoleOutput) ExternalId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *SecretBackendRole) pulumi.StringPtrOutput { return v.ExternalId }).(pulumi.StringPtrOutput) +} + // A list of IAM group names. IAM users generated // against this vault role will be added to these IAM Groups. For a credential // type of `assumedRole` or `federationToken`, the policies sent to the @@ -610,6 +651,13 @@ func (o SecretBackendRoleOutput) RoleArns() pulumi.StringArrayOutput { return o.ApplyT(func(v *SecretBackendRole) pulumi.StringArrayOutput { return v.RoleArns }).(pulumi.StringArrayOutput) } +// A map of strings representing key/value pairs to be set +// during assume role creds creation. Valid only when `credentialType` is set to +// `assumedRole`. +func (o SecretBackendRoleOutput) SessionTags() pulumi.StringMapOutput { + return o.ApplyT(func(v *SecretBackendRole) pulumi.StringMapOutput { return v.SessionTags }).(pulumi.StringMapOutput) +} + // The path for the user name. Valid only when // `credentialType` is `iamUser`. Default is `/`. func (o SecretBackendRoleOutput) UserPath() pulumi.StringPtrOutput { diff --git a/sdk/go/vault/identity/getEntity.go b/sdk/go/vault/identity/getEntity.go index 38b8792d9..501ceb76c 100644 --- a/sdk/go/vault/identity/getEntity.go +++ b/sdk/go/vault/identity/getEntity.go @@ -39,7 +39,7 @@ import ( // // ## Required Vault Capabilities // -// Use of this resource requires the `create` capability on `/identity/lookup/entity`. +// Use of this resource requires the `update` capability on `/identity/lookup/entity`. func LookupEntity(ctx *pulumi.Context, args *LookupEntityArgs, opts ...pulumi.InvokeOption) (*LookupEntityResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupEntityResult diff --git a/sdk/go/vault/mount.go b/sdk/go/vault/mount.go index 4d032a6e2..4cf24281a 100644 --- a/sdk/go/vault/mount.go +++ b/sdk/go/vault/mount.go @@ -162,7 +162,8 @@ type Mount struct { // The key to use for signing plugin workload identity tokens. If // not provided, this will default to Vault's OIDC default key. IdentityTokenKey pulumi.StringPtrOutput `pulumi:"identityTokenKey"` - // Specifies whether to show this mount in the UI-specific listing endpoint + // Specifies whether to show this mount in the UI-specific + // listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. ListingVisibility pulumi.StringPtrOutput `pulumi:"listingVisibility"` // Boolean flag that can be explicitly set to true to enforce local mount in HA environment Local pulumi.BoolPtrOutput `pulumi:"local"` @@ -249,7 +250,8 @@ type mountState struct { // The key to use for signing plugin workload identity tokens. If // not provided, this will default to Vault's OIDC default key. IdentityTokenKey *string `pulumi:"identityTokenKey"` - // Specifies whether to show this mount in the UI-specific listing endpoint + // Specifies whether to show this mount in the UI-specific + // listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. ListingVisibility *string `pulumi:"listingVisibility"` // Boolean flag that can be explicitly set to true to enforce local mount in HA environment Local *bool `pulumi:"local"` @@ -301,7 +303,8 @@ type MountState struct { // The key to use for signing plugin workload identity tokens. If // not provided, this will default to Vault's OIDC default key. IdentityTokenKey pulumi.StringPtrInput - // Specifies whether to show this mount in the UI-specific listing endpoint + // Specifies whether to show this mount in the UI-specific + // listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. ListingVisibility pulumi.StringPtrInput // Boolean flag that can be explicitly set to true to enforce local mount in HA environment Local pulumi.BoolPtrInput @@ -355,7 +358,8 @@ type mountArgs struct { // The key to use for signing plugin workload identity tokens. If // not provided, this will default to Vault's OIDC default key. IdentityTokenKey *string `pulumi:"identityTokenKey"` - // Specifies whether to show this mount in the UI-specific listing endpoint + // Specifies whether to show this mount in the UI-specific + // listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. ListingVisibility *string `pulumi:"listingVisibility"` // Boolean flag that can be explicitly set to true to enforce local mount in HA environment Local *bool `pulumi:"local"` @@ -406,7 +410,8 @@ type MountArgs struct { // The key to use for signing plugin workload identity tokens. If // not provided, this will default to Vault's OIDC default key. IdentityTokenKey pulumi.StringPtrInput - // Specifies whether to show this mount in the UI-specific listing endpoint + // Specifies whether to show this mount in the UI-specific + // listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. ListingVisibility pulumi.StringPtrInput // Boolean flag that can be explicitly set to true to enforce local mount in HA environment Local pulumi.BoolPtrInput @@ -574,7 +579,8 @@ func (o MountOutput) IdentityTokenKey() pulumi.StringPtrOutput { return o.ApplyT(func(v *Mount) pulumi.StringPtrOutput { return v.IdentityTokenKey }).(pulumi.StringPtrOutput) } -// Specifies whether to show this mount in the UI-specific listing endpoint +// Specifies whether to show this mount in the UI-specific +// listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. func (o MountOutput) ListingVisibility() pulumi.StringPtrOutput { return o.ApplyT(func(v *Mount) pulumi.StringPtrOutput { return v.ListingVisibility }).(pulumi.StringPtrOutput) } diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index d976f08a7..fe700f663 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -44,7 +44,7 @@ repositories { dependencies { implementation("com.google.code.findbugs:jsr305:3.0.2") implementation("com.google.code.gson:gson:2.8.9") - implementation("com.pulumi:pulumi:0.12.0") + implementation("com.pulumi:pulumi:0.13.0") } task sourcesJar(type: Jar) { @@ -150,4 +150,4 @@ if (signingKey) { useInMemoryPgpKeys(signingKey, signingPassword) sign publishing.publications.mainPublication } -} \ No newline at end of file +} diff --git a/sdk/java/src/main/java/com/pulumi/vault/Audit.java b/sdk/java/src/main/java/com/pulumi/vault/Audit.java index ca8e01387..f6a4d4716 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/Audit.java +++ b/sdk/java/src/main/java/com/pulumi/vault/Audit.java @@ -225,13 +225,20 @@ public Audit(String name, AuditArgs args) { * @param options A bag of options that control this resource's behavior. */ public Audit(String name, AuditArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/audit:Audit", name, args == null ? AuditArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/audit:Audit", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Audit(String name, Output id, @Nullable AuditState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/audit:Audit", name, state, makeResourceOptions(options, id)); } + private static AuditArgs makeArgs(AuditArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuditArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/AuditRequestHeader.java b/sdk/java/src/main/java/com/pulumi/vault/AuditRequestHeader.java index 9ff403979..8e3ed0031 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/AuditRequestHeader.java +++ b/sdk/java/src/main/java/com/pulumi/vault/AuditRequestHeader.java @@ -127,13 +127,20 @@ public AuditRequestHeader(String name, @Nullable AuditRequestHeaderArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuditRequestHeader(String name, @Nullable AuditRequestHeaderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/auditRequestHeader:AuditRequestHeader", name, args == null ? AuditRequestHeaderArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/auditRequestHeader:AuditRequestHeader", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuditRequestHeader(String name, Output id, @Nullable AuditRequestHeaderState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/auditRequestHeader:AuditRequestHeader", name, state, makeResourceOptions(options, id)); } + private static AuditRequestHeaderArgs makeArgs(@Nullable AuditRequestHeaderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuditRequestHeaderArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/AuthBackend.java b/sdk/java/src/main/java/com/pulumi/vault/AuthBackend.java index cdc2db101..e8a24250d 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/AuthBackend.java +++ b/sdk/java/src/main/java/com/pulumi/vault/AuthBackend.java @@ -189,13 +189,20 @@ public AuthBackend(String name, AuthBackendArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackend(String name, AuthBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/authBackend:AuthBackend", name, args == null ? AuthBackendArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/authBackend:AuthBackend", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackend(String name, Output id, @Nullable AuthBackendState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/authBackend:AuthBackend", name, state, makeResourceOptions(options, id)); } + private static AuthBackendArgs makeArgs(AuthBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/CertAuthBackendRole.java b/sdk/java/src/main/java/com/pulumi/vault/CertAuthBackendRole.java index c9e73693b..542a75548 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/CertAuthBackendRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/CertAuthBackendRole.java @@ -494,13 +494,20 @@ public CertAuthBackendRole(String name, CertAuthBackendRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public CertAuthBackendRole(String name, CertAuthBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/certAuthBackendRole:CertAuthBackendRole", name, args == null ? CertAuthBackendRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/certAuthBackendRole:CertAuthBackendRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private CertAuthBackendRole(String name, Output id, @Nullable CertAuthBackendRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/certAuthBackendRole:CertAuthBackendRole", name, state, makeResourceOptions(options, id)); } + private static CertAuthBackendRoleArgs makeArgs(CertAuthBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CertAuthBackendRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/EgpPolicy.java b/sdk/java/src/main/java/com/pulumi/vault/EgpPolicy.java index 81cff4383..d593bee98 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/EgpPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/vault/EgpPolicy.java @@ -164,13 +164,20 @@ public EgpPolicy(String name, EgpPolicyArgs args) { * @param options A bag of options that control this resource's behavior. */ public EgpPolicy(String name, EgpPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/egpPolicy:EgpPolicy", name, args == null ? EgpPolicyArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/egpPolicy:EgpPolicy", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private EgpPolicy(String name, Output id, @Nullable EgpPolicyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/egpPolicy:EgpPolicy", name, state, makeResourceOptions(options, id)); } + private static EgpPolicyArgs makeArgs(EgpPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? EgpPolicyArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/MfaDuo.java b/sdk/java/src/main/java/com/pulumi/vault/MfaDuo.java index 1f0c2f145..2b44b5434 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/MfaDuo.java +++ b/sdk/java/src/main/java/com/pulumi/vault/MfaDuo.java @@ -226,13 +226,20 @@ public MfaDuo(String name, MfaDuoArgs args) { * @param options A bag of options that control this resource's behavior. */ public MfaDuo(String name, MfaDuoArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/mfaDuo:MfaDuo", name, args == null ? MfaDuoArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/mfaDuo:MfaDuo", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private MfaDuo(String name, Output id, @Nullable MfaDuoState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/mfaDuo:MfaDuo", name, state, makeResourceOptions(options, id)); } + private static MfaDuoArgs makeArgs(MfaDuoArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? MfaDuoArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/MfaOkta.java b/sdk/java/src/main/java/com/pulumi/vault/MfaOkta.java index 7f898aa85..6725241a1 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/MfaOkta.java +++ b/sdk/java/src/main/java/com/pulumi/vault/MfaOkta.java @@ -237,13 +237,20 @@ public MfaOkta(String name, MfaOktaArgs args) { * @param options A bag of options that control this resource's behavior. */ public MfaOkta(String name, MfaOktaArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/mfaOkta:MfaOkta", name, args == null ? MfaOktaArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/mfaOkta:MfaOkta", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private MfaOkta(String name, Output id, @Nullable MfaOktaState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/mfaOkta:MfaOkta", name, state, makeResourceOptions(options, id)); } + private static MfaOktaArgs makeArgs(MfaOktaArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? MfaOktaArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/MfaPingid.java b/sdk/java/src/main/java/com/pulumi/vault/MfaPingid.java index 048d664e1..d0a92fcea 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/MfaPingid.java +++ b/sdk/java/src/main/java/com/pulumi/vault/MfaPingid.java @@ -291,13 +291,20 @@ public MfaPingid(String name, MfaPingidArgs args) { * @param options A bag of options that control this resource's behavior. */ public MfaPingid(String name, MfaPingidArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/mfaPingid:MfaPingid", name, args == null ? MfaPingidArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/mfaPingid:MfaPingid", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private MfaPingid(String name, Output id, @Nullable MfaPingidState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/mfaPingid:MfaPingid", name, state, makeResourceOptions(options, id)); } + private static MfaPingidArgs makeArgs(MfaPingidArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? MfaPingidArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/MfaTotp.java b/sdk/java/src/main/java/com/pulumi/vault/MfaTotp.java index 2a2cd358e..cf745b09f 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/MfaTotp.java +++ b/sdk/java/src/main/java/com/pulumi/vault/MfaTotp.java @@ -232,13 +232,20 @@ public MfaTotp(String name, MfaTotpArgs args) { * @param options A bag of options that control this resource's behavior. */ public MfaTotp(String name, MfaTotpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/mfaTotp:MfaTotp", name, args == null ? MfaTotpArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/mfaTotp:MfaTotp", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private MfaTotp(String name, Output id, @Nullable MfaTotpState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/mfaTotp:MfaTotp", name, state, makeResourceOptions(options, id)); } + private static MfaTotpArgs makeArgs(MfaTotpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? MfaTotpArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/Mount.java b/sdk/java/src/main/java/com/pulumi/vault/Mount.java index eed387444..48be1d4d9 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/Mount.java +++ b/sdk/java/src/main/java/com/pulumi/vault/Mount.java @@ -329,14 +329,16 @@ public Output> identityTokenKey() { return Codegen.optional(this.identityTokenKey); } /** - * Specifies whether to show this mount in the UI-specific listing endpoint + * Specifies whether to show this mount in the UI-specific + * listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. * */ @Export(name="listingVisibility", refs={String.class}, tree="[0]") private Output listingVisibility; /** - * @return Specifies whether to show this mount in the UI-specific listing endpoint + * @return Specifies whether to show this mount in the UI-specific + * listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. * */ public Output> listingVisibility() { @@ -503,13 +505,20 @@ public Mount(String name, MountArgs args) { * @param options A bag of options that control this resource's behavior. */ public Mount(String name, MountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/mount:Mount", name, args == null ? MountArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/mount:Mount", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Mount(String name, Output id, @Nullable MountState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/mount:Mount", name, state, makeResourceOptions(options, id)); } + private static MountArgs makeArgs(MountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? MountArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/MountArgs.java b/sdk/java/src/main/java/com/pulumi/vault/MountArgs.java index e07f11484..3c8e6074d 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/MountArgs.java +++ b/sdk/java/src/main/java/com/pulumi/vault/MountArgs.java @@ -163,14 +163,16 @@ public Optional> identityTokenKey() { } /** - * Specifies whether to show this mount in the UI-specific listing endpoint + * Specifies whether to show this mount in the UI-specific + * listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. * */ @Import(name="listingVisibility") private @Nullable Output listingVisibility; /** - * @return Specifies whether to show this mount in the UI-specific listing endpoint + * @return Specifies whether to show this mount in the UI-specific + * listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. * */ public Optional> listingVisibility() { @@ -614,7 +616,8 @@ public Builder identityTokenKey(String identityTokenKey) { } /** - * @param listingVisibility Specifies whether to show this mount in the UI-specific listing endpoint + * @param listingVisibility Specifies whether to show this mount in the UI-specific + * listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. * * @return builder * @@ -625,7 +628,8 @@ public Builder listingVisibility(@Nullable Output listingVisibility) { } /** - * @param listingVisibility Specifies whether to show this mount in the UI-specific listing endpoint + * @param listingVisibility Specifies whether to show this mount in the UI-specific + * listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/vault/Namespace.java b/sdk/java/src/main/java/com/pulumi/vault/Namespace.java index 6707a8e0d..6be12e3b7 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/Namespace.java +++ b/sdk/java/src/main/java/com/pulumi/vault/Namespace.java @@ -173,13 +173,20 @@ public Namespace(String name, NamespaceArgs args) { * @param options A bag of options that control this resource's behavior. */ public Namespace(String name, NamespaceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/namespace:Namespace", name, args == null ? NamespaceArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/namespace:Namespace", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Namespace(String name, Output id, @Nullable NamespaceState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/namespace:Namespace", name, state, makeResourceOptions(options, id)); } + private static NamespaceArgs makeArgs(NamespaceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? NamespaceArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/NomadSecretBackend.java b/sdk/java/src/main/java/com/pulumi/vault/NomadSecretBackend.java index d5c8578af..346ea54ac 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/NomadSecretBackend.java +++ b/sdk/java/src/main/java/com/pulumi/vault/NomadSecretBackend.java @@ -324,13 +324,20 @@ public NomadSecretBackend(String name, @Nullable NomadSecretBackendArgs args) { * @param options A bag of options that control this resource's behavior. */ public NomadSecretBackend(String name, @Nullable NomadSecretBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/nomadSecretBackend:NomadSecretBackend", name, args == null ? NomadSecretBackendArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/nomadSecretBackend:NomadSecretBackend", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private NomadSecretBackend(String name, Output id, @Nullable NomadSecretBackendState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/nomadSecretBackend:NomadSecretBackend", name, state, makeResourceOptions(options, id)); } + private static NomadSecretBackendArgs makeArgs(@Nullable NomadSecretBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? NomadSecretBackendArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/NomadSecretRole.java b/sdk/java/src/main/java/com/pulumi/vault/NomadSecretRole.java index b59cd9dd8..a8533af5f 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/NomadSecretRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/NomadSecretRole.java @@ -198,13 +198,20 @@ public NomadSecretRole(String name, NomadSecretRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public NomadSecretRole(String name, NomadSecretRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/nomadSecretRole:NomadSecretRole", name, args == null ? NomadSecretRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/nomadSecretRole:NomadSecretRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private NomadSecretRole(String name, Output id, @Nullable NomadSecretRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/nomadSecretRole:NomadSecretRole", name, state, makeResourceOptions(options, id)); } + private static NomadSecretRoleArgs makeArgs(NomadSecretRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? NomadSecretRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/PasswordPolicy.java b/sdk/java/src/main/java/com/pulumi/vault/PasswordPolicy.java index 82ce92112..567229c39 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/PasswordPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/vault/PasswordPolicy.java @@ -142,13 +142,20 @@ public PasswordPolicy(String name, PasswordPolicyArgs args) { * @param options A bag of options that control this resource's behavior. */ public PasswordPolicy(String name, PasswordPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/passwordPolicy:PasswordPolicy", name, args == null ? PasswordPolicyArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/passwordPolicy:PasswordPolicy", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private PasswordPolicy(String name, Output id, @Nullable PasswordPolicyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/passwordPolicy:PasswordPolicy", name, state, makeResourceOptions(options, id)); } + private static PasswordPolicyArgs makeArgs(PasswordPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? PasswordPolicyArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/Plugin.java b/sdk/java/src/main/java/com/pulumi/vault/Plugin.java index 8b73068d6..67a0d1795 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/Plugin.java +++ b/sdk/java/src/main/java/com/pulumi/vault/Plugin.java @@ -229,13 +229,20 @@ public Plugin(String name, PluginArgs args) { * @param options A bag of options that control this resource's behavior. */ public Plugin(String name, PluginArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/plugin:Plugin", name, args == null ? PluginArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/plugin:Plugin", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Plugin(String name, Output id, @Nullable PluginState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/plugin:Plugin", name, state, makeResourceOptions(options, id)); } + private static PluginArgs makeArgs(PluginArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? PluginArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/PluginPinnedVersion.java b/sdk/java/src/main/java/com/pulumi/vault/PluginPinnedVersion.java index 6d5ec5213..75a939c61 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/PluginPinnedVersion.java +++ b/sdk/java/src/main/java/com/pulumi/vault/PluginPinnedVersion.java @@ -144,13 +144,20 @@ public PluginPinnedVersion(String name, PluginPinnedVersionArgs args) { * @param options A bag of options that control this resource's behavior. */ public PluginPinnedVersion(String name, PluginPinnedVersionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/pluginPinnedVersion:PluginPinnedVersion", name, args == null ? PluginPinnedVersionArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/pluginPinnedVersion:PluginPinnedVersion", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private PluginPinnedVersion(String name, Output id, @Nullable PluginPinnedVersionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/pluginPinnedVersion:PluginPinnedVersion", name, state, makeResourceOptions(options, id)); } + private static PluginPinnedVersionArgs makeArgs(PluginPinnedVersionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? PluginPinnedVersionArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/Policy.java b/sdk/java/src/main/java/com/pulumi/vault/Policy.java index f7ac97b59..5b8b77087 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/Policy.java +++ b/sdk/java/src/main/java/com/pulumi/vault/Policy.java @@ -97,13 +97,20 @@ public Policy(String name, PolicyArgs args) { * @param options A bag of options that control this resource's behavior. */ public Policy(String name, PolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/policy:Policy", name, args == null ? PolicyArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/policy:Policy", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Policy(String name, Output id, @Nullable PolicyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/policy:Policy", name, state, makeResourceOptions(options, id)); } + private static PolicyArgs makeArgs(PolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? PolicyArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/Provider.java b/sdk/java/src/main/java/com/pulumi/vault/Provider.java index 4ca9fc724..8b5162900 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/Provider.java +++ b/sdk/java/src/main/java/com/pulumi/vault/Provider.java @@ -163,7 +163,14 @@ public Provider(String name, ProviderArgs args) { * @param options A bag of options that control this resource's behavior. */ public Provider(String name, ProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault", name, args == null ? ProviderArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); + } + + private static ProviderArgs makeArgs(ProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ProviderArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { diff --git a/sdk/java/src/main/java/com/pulumi/vault/QuotaLeaseCount.java b/sdk/java/src/main/java/com/pulumi/vault/QuotaLeaseCount.java index 56a82c494..a8e3b8338 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/QuotaLeaseCount.java +++ b/sdk/java/src/main/java/com/pulumi/vault/QuotaLeaseCount.java @@ -199,13 +199,20 @@ public QuotaLeaseCount(String name, QuotaLeaseCountArgs args) { * @param options A bag of options that control this resource's behavior. */ public QuotaLeaseCount(String name, QuotaLeaseCountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/quotaLeaseCount:QuotaLeaseCount", name, args == null ? QuotaLeaseCountArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/quotaLeaseCount:QuotaLeaseCount", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private QuotaLeaseCount(String name, Output id, @Nullable QuotaLeaseCountState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/quotaLeaseCount:QuotaLeaseCount", name, state, makeResourceOptions(options, id)); } + private static QuotaLeaseCountArgs makeArgs(QuotaLeaseCountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? QuotaLeaseCountArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/QuotaRateLimit.java b/sdk/java/src/main/java/com/pulumi/vault/QuotaRateLimit.java index 7d8b5a16c..6b3c9973c 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/QuotaRateLimit.java +++ b/sdk/java/src/main/java/com/pulumi/vault/QuotaRateLimit.java @@ -228,13 +228,20 @@ public QuotaRateLimit(String name, QuotaRateLimitArgs args) { * @param options A bag of options that control this resource's behavior. */ public QuotaRateLimit(String name, QuotaRateLimitArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/quotaRateLimit:QuotaRateLimit", name, args == null ? QuotaRateLimitArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/quotaRateLimit:QuotaRateLimit", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private QuotaRateLimit(String name, Output id, @Nullable QuotaRateLimitState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/quotaRateLimit:QuotaRateLimit", name, state, makeResourceOptions(options, id)); } + private static QuotaRateLimitArgs makeArgs(QuotaRateLimitArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? QuotaRateLimitArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/RaftAutopilot.java b/sdk/java/src/main/java/com/pulumi/vault/RaftAutopilot.java index 574e99347..bc829a7a2 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/RaftAutopilot.java +++ b/sdk/java/src/main/java/com/pulumi/vault/RaftAutopilot.java @@ -230,13 +230,20 @@ public RaftAutopilot(String name, @Nullable RaftAutopilotArgs args) { * @param options A bag of options that control this resource's behavior. */ public RaftAutopilot(String name, @Nullable RaftAutopilotArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/raftAutopilot:RaftAutopilot", name, args == null ? RaftAutopilotArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/raftAutopilot:RaftAutopilot", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private RaftAutopilot(String name, Output id, @Nullable RaftAutopilotState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/raftAutopilot:RaftAutopilot", name, state, makeResourceOptions(options, id)); } + private static RaftAutopilotArgs makeArgs(@Nullable RaftAutopilotArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? RaftAutopilotArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/RaftSnapshotAgentConfig.java b/sdk/java/src/main/java/com/pulumi/vault/RaftSnapshotAgentConfig.java index bbfaf93a0..dd16caf42 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/RaftSnapshotAgentConfig.java +++ b/sdk/java/src/main/java/com/pulumi/vault/RaftSnapshotAgentConfig.java @@ -603,13 +603,20 @@ public RaftSnapshotAgentConfig(String name, RaftSnapshotAgentConfigArgs args) { * @param options A bag of options that control this resource's behavior. */ public RaftSnapshotAgentConfig(String name, RaftSnapshotAgentConfigArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/raftSnapshotAgentConfig:RaftSnapshotAgentConfig", name, args == null ? RaftSnapshotAgentConfigArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/raftSnapshotAgentConfig:RaftSnapshotAgentConfig", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private RaftSnapshotAgentConfig(String name, Output id, @Nullable RaftSnapshotAgentConfigState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/raftSnapshotAgentConfig:RaftSnapshotAgentConfig", name, state, makeResourceOptions(options, id)); } + private static RaftSnapshotAgentConfigArgs makeArgs(RaftSnapshotAgentConfigArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? RaftSnapshotAgentConfigArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/RgpPolicy.java b/sdk/java/src/main/java/com/pulumi/vault/RgpPolicy.java index da1ea5c51..8ab9c240e 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/RgpPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/vault/RgpPolicy.java @@ -148,13 +148,20 @@ public RgpPolicy(String name, RgpPolicyArgs args) { * @param options A bag of options that control this resource's behavior. */ public RgpPolicy(String name, RgpPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/rgpPolicy:RgpPolicy", name, args == null ? RgpPolicyArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/rgpPolicy:RgpPolicy", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private RgpPolicy(String name, Output id, @Nullable RgpPolicyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/rgpPolicy:RgpPolicy", name, state, makeResourceOptions(options, id)); } + private static RgpPolicyArgs makeArgs(RgpPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? RgpPolicyArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/Token.java b/sdk/java/src/main/java/com/pulumi/vault/Token.java index b0e8935f3..9e87aeb54 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/Token.java +++ b/sdk/java/src/main/java/com/pulumi/vault/Token.java @@ -382,13 +382,20 @@ public Token(String name, @Nullable TokenArgs args) { * @param options A bag of options that control this resource's behavior. */ public Token(String name, @Nullable TokenArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:index/token:Token", name, args == null ? TokenArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:index/token:Token", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Token(String name, Output id, @Nullable TokenState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:index/token:Token", name, state, makeResourceOptions(options, id)); } + private static TokenArgs makeArgs(@Nullable TokenArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? TokenArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/ad/SecretBackend.java b/sdk/java/src/main/java/com/pulumi/vault/ad/SecretBackend.java index 591b28020..a2f0891fa 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/ad/SecretBackend.java +++ b/sdk/java/src/main/java/com/pulumi/vault/ad/SecretBackend.java @@ -616,13 +616,20 @@ public SecretBackend(String name, SecretBackendArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackend(String name, SecretBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:ad/secretBackend:SecretBackend", name, args == null ? SecretBackendArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:ad/secretBackend:SecretBackend", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackend(String name, Output id, @Nullable SecretBackendState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:ad/secretBackend:SecretBackend", name, state, makeResourceOptions(options, id)); } + private static SecretBackendArgs makeArgs(SecretBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/ad/SecretLibrary.java b/sdk/java/src/main/java/com/pulumi/vault/ad/SecretLibrary.java index 81df17644..c70ecb5a4 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/ad/SecretLibrary.java +++ b/sdk/java/src/main/java/com/pulumi/vault/ad/SecretLibrary.java @@ -217,13 +217,20 @@ public SecretLibrary(String name, SecretLibraryArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretLibrary(String name, SecretLibraryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:ad/secretLibrary:SecretLibrary", name, args == null ? SecretLibraryArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:ad/secretLibrary:SecretLibrary", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretLibrary(String name, Output id, @Nullable SecretLibraryState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:ad/secretLibrary:SecretLibrary", name, state, makeResourceOptions(options, id)); } + private static SecretLibraryArgs makeArgs(SecretLibraryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretLibraryArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/ad/SecretRole.java b/sdk/java/src/main/java/com/pulumi/vault/ad/SecretRole.java index 11c494407..627d5d027 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/ad/SecretRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/ad/SecretRole.java @@ -211,13 +211,20 @@ public SecretRole(String name, SecretRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretRole(String name, SecretRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:ad/secretRole:SecretRole", name, args == null ? SecretRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:ad/secretRole:SecretRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretRole(String name, Output id, @Nullable SecretRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:ad/secretRole:SecretRole", name, state, makeResourceOptions(options, id)); } + private static SecretRoleArgs makeArgs(SecretRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/alicloud/AuthBackendRole.java b/sdk/java/src/main/java/com/pulumi/vault/alicloud/AuthBackendRole.java index 50a198d66..472b3f631 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/alicloud/AuthBackendRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/alicloud/AuthBackendRole.java @@ -294,13 +294,20 @@ public AuthBackendRole(String name, AuthBackendRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackendRole(String name, AuthBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:alicloud/authBackendRole:AuthBackendRole", name, args == null ? AuthBackendRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:alicloud/authBackendRole:AuthBackendRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendRole(String name, Output id, @Nullable AuthBackendRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:alicloud/authBackendRole:AuthBackendRole", name, state, makeResourceOptions(options, id)); } + private static AuthBackendRoleArgs makeArgs(AuthBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/appRole/AuthBackendLogin.java b/sdk/java/src/main/java/com/pulumi/vault/appRole/AuthBackendLogin.java index e19ecb094..76bc813dc 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/appRole/AuthBackendLogin.java +++ b/sdk/java/src/main/java/com/pulumi/vault/appRole/AuthBackendLogin.java @@ -272,13 +272,20 @@ public AuthBackendLogin(String name, AuthBackendLoginArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackendLogin(String name, AuthBackendLoginArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:appRole/authBackendLogin:AuthBackendLogin", name, args == null ? AuthBackendLoginArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:appRole/authBackendLogin:AuthBackendLogin", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendLogin(String name, Output id, @Nullable AuthBackendLoginState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:appRole/authBackendLogin:AuthBackendLogin", name, state, makeResourceOptions(options, id)); } + private static AuthBackendLoginArgs makeArgs(AuthBackendLoginArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendLoginArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/appRole/AuthBackendRole.java b/sdk/java/src/main/java/com/pulumi/vault/appRole/AuthBackendRole.java index dad01d75a..e3f16ff32 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/appRole/AuthBackendRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/appRole/AuthBackendRole.java @@ -360,13 +360,20 @@ public AuthBackendRole(String name, AuthBackendRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackendRole(String name, AuthBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:appRole/authBackendRole:AuthBackendRole", name, args == null ? AuthBackendRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:appRole/authBackendRole:AuthBackendRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendRole(String name, Output id, @Nullable AuthBackendRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:appRole/authBackendRole:AuthBackendRole", name, state, makeResourceOptions(options, id)); } + private static AuthBackendRoleArgs makeArgs(AuthBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/appRole/AuthBackendRoleSecretId.java b/sdk/java/src/main/java/com/pulumi/vault/appRole/AuthBackendRoleSecretId.java index 52b29d41a..9228bb15b 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/appRole/AuthBackendRoleSecretId.java +++ b/sdk/java/src/main/java/com/pulumi/vault/appRole/AuthBackendRoleSecretId.java @@ -284,13 +284,20 @@ public AuthBackendRoleSecretId(String name, AuthBackendRoleSecretIdArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackendRoleSecretId(String name, AuthBackendRoleSecretIdArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:appRole/authBackendRoleSecretId:AuthBackendRoleSecretId", name, args == null ? AuthBackendRoleSecretIdArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:appRole/authBackendRoleSecretId:AuthBackendRoleSecretId", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendRoleSecretId(String name, Output id, @Nullable AuthBackendRoleSecretIdState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:appRole/authBackendRoleSecretId:AuthBackendRoleSecretId", name, state, makeResourceOptions(options, id)); } + private static AuthBackendRoleSecretIdArgs makeArgs(AuthBackendRoleSecretIdArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendRoleSecretIdArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendCert.java b/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendCert.java index b8f9aceac..82de7050f 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendCert.java +++ b/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendCert.java @@ -139,13 +139,20 @@ public AuthBackendCert(String name, AuthBackendCertArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackendCert(String name, AuthBackendCertArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:aws/authBackendCert:AuthBackendCert", name, args == null ? AuthBackendCertArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:aws/authBackendCert:AuthBackendCert", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendCert(String name, Output id, @Nullable AuthBackendCertState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:aws/authBackendCert:AuthBackendCert", name, state, makeResourceOptions(options, id)); } + private static AuthBackendCertArgs makeArgs(AuthBackendCertArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendCertArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendClient.java b/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendClient.java index 9af4888a9..2347fbe80 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendClient.java +++ b/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendClient.java @@ -373,13 +373,20 @@ public AuthBackendClient(String name, @Nullable AuthBackendClientArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackendClient(String name, @Nullable AuthBackendClientArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:aws/authBackendClient:AuthBackendClient", name, args == null ? AuthBackendClientArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:aws/authBackendClient:AuthBackendClient", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendClient(String name, Output id, @Nullable AuthBackendClientState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:aws/authBackendClient:AuthBackendClient", name, state, makeResourceOptions(options, id)); } + private static AuthBackendClientArgs makeArgs(@Nullable AuthBackendClientArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendClientArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendConfigIdentity.java b/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendConfigIdentity.java index 94987afd6..ad6da7c03 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendConfigIdentity.java +++ b/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendConfigIdentity.java @@ -197,13 +197,20 @@ public AuthBackendConfigIdentity(String name, @Nullable AuthBackendConfigIdentit * @param options A bag of options that control this resource's behavior. */ public AuthBackendConfigIdentity(String name, @Nullable AuthBackendConfigIdentityArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:aws/authBackendConfigIdentity:AuthBackendConfigIdentity", name, args == null ? AuthBackendConfigIdentityArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:aws/authBackendConfigIdentity:AuthBackendConfigIdentity", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendConfigIdentity(String name, Output id, @Nullable AuthBackendConfigIdentityState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:aws/authBackendConfigIdentity:AuthBackendConfigIdentity", name, state, makeResourceOptions(options, id)); } + private static AuthBackendConfigIdentityArgs makeArgs(@Nullable AuthBackendConfigIdentityArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendConfigIdentityArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendIdentityWhitelist.java b/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendIdentityWhitelist.java index 25aab6b8f..0b88f399a 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendIdentityWhitelist.java +++ b/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendIdentityWhitelist.java @@ -166,13 +166,20 @@ public AuthBackendIdentityWhitelist(String name, @Nullable AuthBackendIdentityWh * @param options A bag of options that control this resource's behavior. */ public AuthBackendIdentityWhitelist(String name, @Nullable AuthBackendIdentityWhitelistArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:aws/authBackendIdentityWhitelist:AuthBackendIdentityWhitelist", name, args == null ? AuthBackendIdentityWhitelistArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:aws/authBackendIdentityWhitelist:AuthBackendIdentityWhitelist", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendIdentityWhitelist(String name, Output id, @Nullable AuthBackendIdentityWhitelistState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:aws/authBackendIdentityWhitelist:AuthBackendIdentityWhitelist", name, state, makeResourceOptions(options, id)); } + private static AuthBackendIdentityWhitelistArgs makeArgs(@Nullable AuthBackendIdentityWhitelistArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendIdentityWhitelistArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendLogin.java b/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendLogin.java index 21781b89e..7578fff4a 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendLogin.java +++ b/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendLogin.java @@ -352,13 +352,20 @@ public AuthBackendLogin(String name, @Nullable AuthBackendLoginArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackendLogin(String name, @Nullable AuthBackendLoginArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:aws/authBackendLogin:AuthBackendLogin", name, args == null ? AuthBackendLoginArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:aws/authBackendLogin:AuthBackendLogin", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendLogin(String name, Output id, @Nullable AuthBackendLoginState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:aws/authBackendLogin:AuthBackendLogin", name, state, makeResourceOptions(options, id)); } + private static AuthBackendLoginArgs makeArgs(@Nullable AuthBackendLoginArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendLoginArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendRole.java b/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendRole.java index c7e3c151c..8e5b484ac 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendRole.java @@ -629,13 +629,20 @@ public AuthBackendRole(String name, AuthBackendRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackendRole(String name, AuthBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:aws/authBackendRole:AuthBackendRole", name, args == null ? AuthBackendRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:aws/authBackendRole:AuthBackendRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendRole(String name, Output id, @Nullable AuthBackendRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:aws/authBackendRole:AuthBackendRole", name, state, makeResourceOptions(options, id)); } + private static AuthBackendRoleArgs makeArgs(AuthBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendRoleTag.java b/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendRoleTag.java index 5e696de44..532ad3cf9 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendRoleTag.java +++ b/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendRoleTag.java @@ -200,13 +200,20 @@ public AuthBackendRoleTag(String name, AuthBackendRoleTagArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackendRoleTag(String name, AuthBackendRoleTagArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:aws/authBackendRoleTag:AuthBackendRoleTag", name, args == null ? AuthBackendRoleTagArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:aws/authBackendRoleTag:AuthBackendRoleTag", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendRoleTag(String name, Output id, @Nullable AuthBackendRoleTagState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:aws/authBackendRoleTag:AuthBackendRoleTag", name, state, makeResourceOptions(options, id)); } + private static AuthBackendRoleTagArgs makeArgs(AuthBackendRoleTagArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendRoleTagArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendRoletagBlacklist.java b/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendRoletagBlacklist.java index edf580c5f..07a006929 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendRoletagBlacklist.java +++ b/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendRoletagBlacklist.java @@ -157,13 +157,20 @@ public AuthBackendRoletagBlacklist(String name, AuthBackendRoletagBlacklistArgs * @param options A bag of options that control this resource's behavior. */ public AuthBackendRoletagBlacklist(String name, AuthBackendRoletagBlacklistArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:aws/authBackendRoletagBlacklist:AuthBackendRoletagBlacklist", name, args == null ? AuthBackendRoletagBlacklistArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:aws/authBackendRoletagBlacklist:AuthBackendRoletagBlacklist", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendRoletagBlacklist(String name, Output id, @Nullable AuthBackendRoletagBlacklistState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:aws/authBackendRoletagBlacklist:AuthBackendRoletagBlacklist", name, state, makeResourceOptions(options, id)); } + private static AuthBackendRoletagBlacklistArgs makeArgs(AuthBackendRoletagBlacklistArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendRoletagBlacklistArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendStsRole.java b/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendStsRole.java index 461629def..e349f24fa 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendStsRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/aws/AuthBackendStsRole.java @@ -158,13 +158,20 @@ public AuthBackendStsRole(String name, AuthBackendStsRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackendStsRole(String name, AuthBackendStsRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:aws/authBackendStsRole:AuthBackendStsRole", name, args == null ? AuthBackendStsRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:aws/authBackendStsRole:AuthBackendStsRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendStsRole(String name, Output id, @Nullable AuthBackendStsRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:aws/authBackendStsRole:AuthBackendStsRole", name, state, makeResourceOptions(options, id)); } + private static AuthBackendStsRoleArgs makeArgs(AuthBackendStsRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendStsRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/aws/SecretBackend.java b/sdk/java/src/main/java/com/pulumi/vault/aws/SecretBackend.java index 407857148..8a9ee3856 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/aws/SecretBackend.java +++ b/sdk/java/src/main/java/com/pulumi/vault/aws/SecretBackend.java @@ -306,13 +306,20 @@ public SecretBackend(String name, @Nullable SecretBackendArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackend(String name, @Nullable SecretBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:aws/secretBackend:SecretBackend", name, args == null ? SecretBackendArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:aws/secretBackend:SecretBackend", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackend(String name, Output id, @Nullable SecretBackendState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:aws/secretBackend:SecretBackend", name, state, makeResourceOptions(options, id)); } + private static SecretBackendArgs makeArgs(@Nullable SecretBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/aws/SecretBackendRole.java b/sdk/java/src/main/java/com/pulumi/vault/aws/SecretBackendRole.java index 10ef0c83f..e03e198d7 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/aws/SecretBackendRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/aws/SecretBackendRole.java @@ -141,6 +141,22 @@ public Output credentialType() { public Output defaultStsTtl() { return this.defaultStsTtl; } + /** + * External ID to set for assume role creds. + * Valid only when `credential_type` is set to `assumed_role`. + * + */ + @Export(name="externalId", refs={String.class}, tree="[0]") + private Output externalId; + + /** + * @return External ID to set for assume role creds. + * Valid only when `credential_type` is set to `assumed_role`. + * + */ + public Output> externalId() { + return Codegen.optional(this.externalId); + } /** * A list of IAM group names. IAM users generated * against this vault role will be added to these IAM Groups. For a credential @@ -321,6 +337,24 @@ public Output> policyDocument() { public Output>> roleArns() { return Codegen.optional(this.roleArns); } + /** + * A map of strings representing key/value pairs to be set + * during assume role creds creation. Valid only when `credential_type` is set to + * `assumed_role`. + * + */ + @Export(name="sessionTags", refs={Map.class,String.class}, tree="[0,1,1]") + private Output> sessionTags; + + /** + * @return A map of strings representing key/value pairs to be set + * during assume role creds creation. Valid only when `credential_type` is set to + * `assumed_role`. + * + */ + public Output>> sessionTags() { + return Codegen.optional(this.sessionTags); + } /** * The path for the user name. Valid only when * `credential_type` is `iam_user`. Default is `/`. @@ -360,13 +394,20 @@ public SecretBackendRole(String name, SecretBackendRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendRole(String name, SecretBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:aws/secretBackendRole:SecretBackendRole", name, args == null ? SecretBackendRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:aws/secretBackendRole:SecretBackendRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendRole(String name, Output id, @Nullable SecretBackendRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:aws/secretBackendRole:SecretBackendRole", name, state, makeResourceOptions(options, id)); } + private static SecretBackendRoleArgs makeArgs(SecretBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/aws/SecretBackendRoleArgs.java b/sdk/java/src/main/java/com/pulumi/vault/aws/SecretBackendRoleArgs.java index 9b3945d1f..3daa75764 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/aws/SecretBackendRoleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/vault/aws/SecretBackendRoleArgs.java @@ -78,6 +78,23 @@ public Optional> defaultStsTtl() { return Optional.ofNullable(this.defaultStsTtl); } + /** + * External ID to set for assume role creds. + * Valid only when `credential_type` is set to `assumed_role`. + * + */ + @Import(name="externalId") + private @Nullable Output externalId; + + /** + * @return External ID to set for assume role creds. + * Valid only when `credential_type` is set to `assumed_role`. + * + */ + public Optional> externalId() { + return Optional.ofNullable(this.externalId); + } + /** * A list of IAM group names. IAM users generated * against this vault role will be added to these IAM Groups. For a credential @@ -267,6 +284,25 @@ public Optional>> roleArns() { return Optional.ofNullable(this.roleArns); } + /** + * A map of strings representing key/value pairs to be set + * during assume role creds creation. Valid only when `credential_type` is set to + * `assumed_role`. + * + */ + @Import(name="sessionTags") + private @Nullable Output> sessionTags; + + /** + * @return A map of strings representing key/value pairs to be set + * during assume role creds creation. Valid only when `credential_type` is set to + * `assumed_role`. + * + */ + public Optional>> sessionTags() { + return Optional.ofNullable(this.sessionTags); + } + /** * The path for the user name. Valid only when * `credential_type` is `iam_user`. Default is `/`. @@ -290,6 +326,7 @@ private SecretBackendRoleArgs(SecretBackendRoleArgs $) { this.backend = $.backend; this.credentialType = $.credentialType; this.defaultStsTtl = $.defaultStsTtl; + this.externalId = $.externalId; this.iamGroups = $.iamGroups; this.iamTags = $.iamTags; this.maxStsTtl = $.maxStsTtl; @@ -299,6 +336,7 @@ private SecretBackendRoleArgs(SecretBackendRoleArgs $) { this.policyArns = $.policyArns; this.policyDocument = $.policyDocument; this.roleArns = $.roleArns; + this.sessionTags = $.sessionTags; this.userPath = $.userPath; } @@ -397,6 +435,29 @@ public Builder defaultStsTtl(Integer defaultStsTtl) { return defaultStsTtl(Output.of(defaultStsTtl)); } + /** + * @param externalId External ID to set for assume role creds. + * Valid only when `credential_type` is set to `assumed_role`. + * + * @return builder + * + */ + public Builder externalId(@Nullable Output externalId) { + $.externalId = externalId; + return this; + } + + /** + * @param externalId External ID to set for assume role creds. + * Valid only when `credential_type` is set to `assumed_role`. + * + * @return builder + * + */ + public Builder externalId(String externalId) { + return externalId(Output.of(externalId)); + } + /** * @param iamGroups A list of IAM group names. IAM users generated * against this vault role will be added to these IAM Groups. For a credential @@ -683,6 +744,31 @@ public Builder roleArns(String... roleArns) { return roleArns(List.of(roleArns)); } + /** + * @param sessionTags A map of strings representing key/value pairs to be set + * during assume role creds creation. Valid only when `credential_type` is set to + * `assumed_role`. + * + * @return builder + * + */ + public Builder sessionTags(@Nullable Output> sessionTags) { + $.sessionTags = sessionTags; + return this; + } + + /** + * @param sessionTags A map of strings representing key/value pairs to be set + * during assume role creds creation. Valid only when `credential_type` is set to + * `assumed_role`. + * + * @return builder + * + */ + public Builder sessionTags(Map sessionTags) { + return sessionTags(Output.of(sessionTags)); + } + /** * @param userPath The path for the user name. Valid only when * `credential_type` is `iam_user`. Default is `/`. diff --git a/sdk/java/src/main/java/com/pulumi/vault/aws/SecretBackendStaticRole.java b/sdk/java/src/main/java/com/pulumi/vault/aws/SecretBackendStaticRole.java index 9c9801dd0..328f92a0a 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/aws/SecretBackendStaticRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/aws/SecretBackendStaticRole.java @@ -176,13 +176,20 @@ public SecretBackendStaticRole(String name, SecretBackendStaticRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendStaticRole(String name, SecretBackendStaticRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:aws/secretBackendStaticRole:SecretBackendStaticRole", name, args == null ? SecretBackendStaticRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:aws/secretBackendStaticRole:SecretBackendStaticRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendStaticRole(String name, Output id, @Nullable SecretBackendStaticRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:aws/secretBackendStaticRole:SecretBackendStaticRole", name, state, makeResourceOptions(options, id)); } + private static SecretBackendStaticRoleArgs makeArgs(SecretBackendStaticRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendStaticRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/aws/inputs/SecretBackendRoleState.java b/sdk/java/src/main/java/com/pulumi/vault/aws/inputs/SecretBackendRoleState.java index e5fe3fe01..bfb1e69cf 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/aws/inputs/SecretBackendRoleState.java +++ b/sdk/java/src/main/java/com/pulumi/vault/aws/inputs/SecretBackendRoleState.java @@ -77,6 +77,23 @@ public Optional> defaultStsTtl() { return Optional.ofNullable(this.defaultStsTtl); } + /** + * External ID to set for assume role creds. + * Valid only when `credential_type` is set to `assumed_role`. + * + */ + @Import(name="externalId") + private @Nullable Output externalId; + + /** + * @return External ID to set for assume role creds. + * Valid only when `credential_type` is set to `assumed_role`. + * + */ + public Optional> externalId() { + return Optional.ofNullable(this.externalId); + } + /** * A list of IAM group names. IAM users generated * against this vault role will be added to these IAM Groups. For a credential @@ -266,6 +283,25 @@ public Optional>> roleArns() { return Optional.ofNullable(this.roleArns); } + /** + * A map of strings representing key/value pairs to be set + * during assume role creds creation. Valid only when `credential_type` is set to + * `assumed_role`. + * + */ + @Import(name="sessionTags") + private @Nullable Output> sessionTags; + + /** + * @return A map of strings representing key/value pairs to be set + * during assume role creds creation. Valid only when `credential_type` is set to + * `assumed_role`. + * + */ + public Optional>> sessionTags() { + return Optional.ofNullable(this.sessionTags); + } + /** * The path for the user name. Valid only when * `credential_type` is `iam_user`. Default is `/`. @@ -289,6 +325,7 @@ private SecretBackendRoleState(SecretBackendRoleState $) { this.backend = $.backend; this.credentialType = $.credentialType; this.defaultStsTtl = $.defaultStsTtl; + this.externalId = $.externalId; this.iamGroups = $.iamGroups; this.iamTags = $.iamTags; this.maxStsTtl = $.maxStsTtl; @@ -298,6 +335,7 @@ private SecretBackendRoleState(SecretBackendRoleState $) { this.policyArns = $.policyArns; this.policyDocument = $.policyDocument; this.roleArns = $.roleArns; + this.sessionTags = $.sessionTags; this.userPath = $.userPath; } @@ -396,6 +434,29 @@ public Builder defaultStsTtl(Integer defaultStsTtl) { return defaultStsTtl(Output.of(defaultStsTtl)); } + /** + * @param externalId External ID to set for assume role creds. + * Valid only when `credential_type` is set to `assumed_role`. + * + * @return builder + * + */ + public Builder externalId(@Nullable Output externalId) { + $.externalId = externalId; + return this; + } + + /** + * @param externalId External ID to set for assume role creds. + * Valid only when `credential_type` is set to `assumed_role`. + * + * @return builder + * + */ + public Builder externalId(String externalId) { + return externalId(Output.of(externalId)); + } + /** * @param iamGroups A list of IAM group names. IAM users generated * against this vault role will be added to these IAM Groups. For a credential @@ -682,6 +743,31 @@ public Builder roleArns(String... roleArns) { return roleArns(List.of(roleArns)); } + /** + * @param sessionTags A map of strings representing key/value pairs to be set + * during assume role creds creation. Valid only when `credential_type` is set to + * `assumed_role`. + * + * @return builder + * + */ + public Builder sessionTags(@Nullable Output> sessionTags) { + $.sessionTags = sessionTags; + return this; + } + + /** + * @param sessionTags A map of strings representing key/value pairs to be set + * during assume role creds creation. Valid only when `credential_type` is set to + * `assumed_role`. + * + * @return builder + * + */ + public Builder sessionTags(Map sessionTags) { + return sessionTags(Output.of(sessionTags)); + } + /** * @param userPath The path for the user name. Valid only when * `credential_type` is `iam_user`. Default is `/`. diff --git a/sdk/java/src/main/java/com/pulumi/vault/azure/AuthBackendConfig.java b/sdk/java/src/main/java/com/pulumi/vault/azure/AuthBackendConfig.java index be1008ce6..304c9a102 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/azure/AuthBackendConfig.java +++ b/sdk/java/src/main/java/com/pulumi/vault/azure/AuthBackendConfig.java @@ -289,13 +289,20 @@ public AuthBackendConfig(String name, AuthBackendConfigArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackendConfig(String name, AuthBackendConfigArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:azure/authBackendConfig:AuthBackendConfig", name, args == null ? AuthBackendConfigArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:azure/authBackendConfig:AuthBackendConfig", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendConfig(String name, Output id, @Nullable AuthBackendConfigState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:azure/authBackendConfig:AuthBackendConfig", name, state, makeResourceOptions(options, id)); } + private static AuthBackendConfigArgs makeArgs(AuthBackendConfigArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendConfigArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/azure/AuthBackendRole.java b/sdk/java/src/main/java/com/pulumi/vault/azure/AuthBackendRole.java index 5d7f90c83..c1bb4fff2 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/azure/AuthBackendRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/azure/AuthBackendRole.java @@ -390,13 +390,20 @@ public AuthBackendRole(String name, AuthBackendRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackendRole(String name, AuthBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:azure/authBackendRole:AuthBackendRole", name, args == null ? AuthBackendRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:azure/authBackendRole:AuthBackendRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendRole(String name, Output id, @Nullable AuthBackendRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:azure/authBackendRole:AuthBackendRole", name, state, makeResourceOptions(options, id)); } + private static AuthBackendRoleArgs makeArgs(AuthBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/azure/Backend.java b/sdk/java/src/main/java/com/pulumi/vault/azure/Backend.java index 92eccbb30..894865b5f 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/azure/Backend.java +++ b/sdk/java/src/main/java/com/pulumi/vault/azure/Backend.java @@ -364,13 +364,20 @@ public Backend(String name, BackendArgs args) { * @param options A bag of options that control this resource's behavior. */ public Backend(String name, BackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:azure/backend:Backend", name, args == null ? BackendArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:azure/backend:Backend", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Backend(String name, Output id, @Nullable BackendState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:azure/backend:Backend", name, state, makeResourceOptions(options, id)); } + private static BackendArgs makeArgs(BackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? BackendArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/azure/BackendRole.java b/sdk/java/src/main/java/com/pulumi/vault/azure/BackendRole.java index 09c6ed36a..a82042507 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/azure/BackendRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/azure/BackendRole.java @@ -293,13 +293,20 @@ public BackendRole(String name, BackendRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public BackendRole(String name, BackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:azure/backendRole:BackendRole", name, args == null ? BackendRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:azure/backendRole:BackendRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private BackendRole(String name, Output id, @Nullable BackendRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:azure/backendRole:BackendRole", name, state, makeResourceOptions(options, id)); } + private static BackendRoleArgs makeArgs(BackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? BackendRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/config/UiCustomMessage.java b/sdk/java/src/main/java/com/pulumi/vault/config/UiCustomMessage.java index cc49b7886..ed97facb5 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/config/UiCustomMessage.java +++ b/sdk/java/src/main/java/com/pulumi/vault/config/UiCustomMessage.java @@ -169,13 +169,20 @@ public UiCustomMessage(String name, UiCustomMessageArgs args) { * @param options A bag of options that control this resource's behavior. */ public UiCustomMessage(String name, UiCustomMessageArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:config/uiCustomMessage:UiCustomMessage", name, args == null ? UiCustomMessageArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:config/uiCustomMessage:UiCustomMessage", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private UiCustomMessage(String name, Output id, @Nullable UiCustomMessageState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:config/uiCustomMessage:UiCustomMessage", name, state, makeResourceOptions(options, id)); } + private static UiCustomMessageArgs makeArgs(UiCustomMessageArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? UiCustomMessageArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/consul/SecretBackend.java b/sdk/java/src/main/java/com/pulumi/vault/consul/SecretBackend.java index 7e354d5ad..b9a678481 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/consul/SecretBackend.java +++ b/sdk/java/src/main/java/com/pulumi/vault/consul/SecretBackend.java @@ -340,13 +340,20 @@ public SecretBackend(String name, SecretBackendArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackend(String name, SecretBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:consul/secretBackend:SecretBackend", name, args == null ? SecretBackendArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:consul/secretBackend:SecretBackend", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackend(String name, Output id, @Nullable SecretBackendState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:consul/secretBackend:SecretBackend", name, state, makeResourceOptions(options, id)); } + private static SecretBackendArgs makeArgs(SecretBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/consul/SecretBackendRole.java b/sdk/java/src/main/java/com/pulumi/vault/consul/SecretBackendRole.java index b51463382..ac1908916 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/consul/SecretBackendRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/consul/SecretBackendRole.java @@ -308,13 +308,20 @@ public SecretBackendRole(String name, @Nullable SecretBackendRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendRole(String name, @Nullable SecretBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:consul/secretBackendRole:SecretBackendRole", name, args == null ? SecretBackendRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:consul/secretBackendRole:SecretBackendRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendRole(String name, Output id, @Nullable SecretBackendRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:consul/secretBackendRole:SecretBackendRole", name, state, makeResourceOptions(options, id)); } + private static SecretBackendRoleArgs makeArgs(@Nullable SecretBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/database/SecretBackendConnection.java b/sdk/java/src/main/java/com/pulumi/vault/database/SecretBackendConnection.java index 5e03dc26e..034ad966e 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/database/SecretBackendConnection.java +++ b/sdk/java/src/main/java/com/pulumi/vault/database/SecretBackendConnection.java @@ -499,13 +499,20 @@ public SecretBackendConnection(String name, SecretBackendConnectionArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendConnection(String name, SecretBackendConnectionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:database/secretBackendConnection:SecretBackendConnection", name, args == null ? SecretBackendConnectionArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:database/secretBackendConnection:SecretBackendConnection", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendConnection(String name, Output id, @Nullable SecretBackendConnectionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:database/secretBackendConnection:SecretBackendConnection", name, state, makeResourceOptions(options, id)); } + private static SecretBackendConnectionArgs makeArgs(SecretBackendConnectionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendConnectionArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/database/SecretBackendRole.java b/sdk/java/src/main/java/com/pulumi/vault/database/SecretBackendRole.java index c90b74faf..46a32e97e 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/database/SecretBackendRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/database/SecretBackendRole.java @@ -310,13 +310,20 @@ public SecretBackendRole(String name, SecretBackendRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendRole(String name, SecretBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:database/secretBackendRole:SecretBackendRole", name, args == null ? SecretBackendRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:database/secretBackendRole:SecretBackendRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendRole(String name, Output id, @Nullable SecretBackendRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:database/secretBackendRole:SecretBackendRole", name, state, makeResourceOptions(options, id)); } + private static SecretBackendRoleArgs makeArgs(SecretBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/database/SecretBackendStaticRole.java b/sdk/java/src/main/java/com/pulumi/vault/database/SecretBackendStaticRole.java index 47e699335..9db8aab43 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/database/SecretBackendStaticRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/database/SecretBackendStaticRole.java @@ -270,13 +270,20 @@ public SecretBackendStaticRole(String name, SecretBackendStaticRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendStaticRole(String name, SecretBackendStaticRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:database/secretBackendStaticRole:SecretBackendStaticRole", name, args == null ? SecretBackendStaticRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:database/secretBackendStaticRole:SecretBackendStaticRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendStaticRole(String name, Output id, @Nullable SecretBackendStaticRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:database/secretBackendStaticRole:SecretBackendStaticRole", name, state, makeResourceOptions(options, id)); } + private static SecretBackendStaticRoleArgs makeArgs(SecretBackendStaticRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendStaticRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/database/SecretsMount.java b/sdk/java/src/main/java/com/pulumi/vault/database/SecretsMount.java index a8e2956ea..cea2814b1 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/database/SecretsMount.java +++ b/sdk/java/src/main/java/com/pulumi/vault/database/SecretsMount.java @@ -717,13 +717,20 @@ public SecretsMount(String name, SecretsMountArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretsMount(String name, SecretsMountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:database/secretsMount:SecretsMount", name, args == null ? SecretsMountArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:database/secretsMount:SecretsMount", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretsMount(String name, Output id, @Nullable SecretsMountState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:database/secretsMount:SecretsMount", name, state, makeResourceOptions(options, id)); } + private static SecretsMountArgs makeArgs(SecretsMountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretsMountArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/gcp/AuthBackend.java b/sdk/java/src/main/java/com/pulumi/vault/gcp/AuthBackend.java index 776cb0034..5164f1339 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/gcp/AuthBackend.java +++ b/sdk/java/src/main/java/com/pulumi/vault/gcp/AuthBackend.java @@ -365,13 +365,20 @@ public AuthBackend(String name, @Nullable AuthBackendArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackend(String name, @Nullable AuthBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:gcp/authBackend:AuthBackend", name, args == null ? AuthBackendArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:gcp/authBackend:AuthBackend", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackend(String name, Output id, @Nullable AuthBackendState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:gcp/authBackend:AuthBackend", name, state, makeResourceOptions(options, id)); } + private static AuthBackendArgs makeArgs(@Nullable AuthBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/gcp/AuthBackendRole.java b/sdk/java/src/main/java/com/pulumi/vault/gcp/AuthBackendRole.java index 51d13db46..03c24b9e3 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/gcp/AuthBackendRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/gcp/AuthBackendRole.java @@ -364,13 +364,20 @@ public AuthBackendRole(String name, AuthBackendRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackendRole(String name, AuthBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:gcp/authBackendRole:AuthBackendRole", name, args == null ? AuthBackendRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:gcp/authBackendRole:AuthBackendRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendRole(String name, Output id, @Nullable AuthBackendRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:gcp/authBackendRole:AuthBackendRole", name, state, makeResourceOptions(options, id)); } + private static AuthBackendRoleArgs makeArgs(AuthBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/gcp/SecretBackend.java b/sdk/java/src/main/java/com/pulumi/vault/gcp/SecretBackend.java index f069894ec..e37319087 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/gcp/SecretBackend.java +++ b/sdk/java/src/main/java/com/pulumi/vault/gcp/SecretBackend.java @@ -322,13 +322,20 @@ public SecretBackend(String name, @Nullable SecretBackendArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackend(String name, @Nullable SecretBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:gcp/secretBackend:SecretBackend", name, args == null ? SecretBackendArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:gcp/secretBackend:SecretBackend", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackend(String name, Output id, @Nullable SecretBackendState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:gcp/secretBackend:SecretBackend", name, state, makeResourceOptions(options, id)); } + private static SecretBackendArgs makeArgs(@Nullable SecretBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/gcp/SecretImpersonatedAccount.java b/sdk/java/src/main/java/com/pulumi/vault/gcp/SecretImpersonatedAccount.java index 179474d2e..f4965830f 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/gcp/SecretImpersonatedAccount.java +++ b/sdk/java/src/main/java/com/pulumi/vault/gcp/SecretImpersonatedAccount.java @@ -192,13 +192,20 @@ public SecretImpersonatedAccount(String name, SecretImpersonatedAccountArgs args * @param options A bag of options that control this resource's behavior. */ public SecretImpersonatedAccount(String name, SecretImpersonatedAccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:gcp/secretImpersonatedAccount:SecretImpersonatedAccount", name, args == null ? SecretImpersonatedAccountArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:gcp/secretImpersonatedAccount:SecretImpersonatedAccount", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretImpersonatedAccount(String name, Output id, @Nullable SecretImpersonatedAccountState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:gcp/secretImpersonatedAccount:SecretImpersonatedAccount", name, state, makeResourceOptions(options, id)); } + private static SecretImpersonatedAccountArgs makeArgs(SecretImpersonatedAccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretImpersonatedAccountArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/gcp/SecretRoleset.java b/sdk/java/src/main/java/com/pulumi/vault/gcp/SecretRoleset.java index b3cf271b6..671cd7e7b 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/gcp/SecretRoleset.java +++ b/sdk/java/src/main/java/com/pulumi/vault/gcp/SecretRoleset.java @@ -228,13 +228,20 @@ public SecretRoleset(String name, SecretRolesetArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretRoleset(String name, SecretRolesetArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:gcp/secretRoleset:SecretRoleset", name, args == null ? SecretRolesetArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:gcp/secretRoleset:SecretRoleset", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretRoleset(String name, Output id, @Nullable SecretRolesetState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:gcp/secretRoleset:SecretRoleset", name, state, makeResourceOptions(options, id)); } + private static SecretRolesetArgs makeArgs(SecretRolesetArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretRolesetArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/gcp/SecretStaticAccount.java b/sdk/java/src/main/java/com/pulumi/vault/gcp/SecretStaticAccount.java index c01effbea..3610e364f 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/gcp/SecretStaticAccount.java +++ b/sdk/java/src/main/java/com/pulumi/vault/gcp/SecretStaticAccount.java @@ -233,13 +233,20 @@ public SecretStaticAccount(String name, SecretStaticAccountArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretStaticAccount(String name, SecretStaticAccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:gcp/secretStaticAccount:SecretStaticAccount", name, args == null ? SecretStaticAccountArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:gcp/secretStaticAccount:SecretStaticAccount", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretStaticAccount(String name, Output id, @Nullable SecretStaticAccountState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:gcp/secretStaticAccount:SecretStaticAccount", name, state, makeResourceOptions(options, id)); } + private static SecretStaticAccountArgs makeArgs(SecretStaticAccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretStaticAccountArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/generic/Endpoint.java b/sdk/java/src/main/java/com/pulumi/vault/generic/Endpoint.java index 5067972d7..7d8f4d3a6 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/generic/Endpoint.java +++ b/sdk/java/src/main/java/com/pulumi/vault/generic/Endpoint.java @@ -322,13 +322,20 @@ public Endpoint(String name, EndpointArgs args) { * @param options A bag of options that control this resource's behavior. */ public Endpoint(String name, EndpointArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:generic/endpoint:Endpoint", name, args == null ? EndpointArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:generic/endpoint:Endpoint", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Endpoint(String name, Output id, @Nullable EndpointState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:generic/endpoint:Endpoint", name, state, makeResourceOptions(options, id)); } + private static EndpointArgs makeArgs(EndpointArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? EndpointArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/generic/Secret.java b/sdk/java/src/main/java/com/pulumi/vault/generic/Secret.java index 37185e40c..b8512cec5 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/generic/Secret.java +++ b/sdk/java/src/main/java/com/pulumi/vault/generic/Secret.java @@ -169,13 +169,20 @@ public Secret(String name, SecretArgs args) { * @param options A bag of options that control this resource's behavior. */ public Secret(String name, SecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:generic/secret:Secret", name, args == null ? SecretArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:generic/secret:Secret", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Secret(String name, Output id, @Nullable SecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:generic/secret:Secret", name, state, makeResourceOptions(options, id)); } + private static SecretArgs makeArgs(SecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/github/AuthBackend.java b/sdk/java/src/main/java/com/pulumi/vault/github/AuthBackend.java index 208d24066..20a09674f 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/github/AuthBackend.java +++ b/sdk/java/src/main/java/com/pulumi/vault/github/AuthBackend.java @@ -392,13 +392,20 @@ public AuthBackend(String name, AuthBackendArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackend(String name, AuthBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:github/authBackend:AuthBackend", name, args == null ? AuthBackendArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:github/authBackend:AuthBackend", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackend(String name, Output id, @Nullable AuthBackendState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:github/authBackend:AuthBackend", name, state, makeResourceOptions(options, id)); } + private static AuthBackendArgs makeArgs(AuthBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/github/Team.java b/sdk/java/src/main/java/com/pulumi/vault/github/Team.java index 638d3a9da..767f0aa85 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/github/Team.java +++ b/sdk/java/src/main/java/com/pulumi/vault/github/Team.java @@ -165,13 +165,20 @@ public Team(String name, TeamArgs args) { * @param options A bag of options that control this resource's behavior. */ public Team(String name, TeamArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:github/team:Team", name, args == null ? TeamArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:github/team:Team", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Team(String name, Output id, @Nullable TeamState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:github/team:Team", name, state, makeResourceOptions(options, id)); } + private static TeamArgs makeArgs(TeamArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? TeamArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/github/User.java b/sdk/java/src/main/java/com/pulumi/vault/github/User.java index ec0cc1d92..977615af2 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/github/User.java +++ b/sdk/java/src/main/java/com/pulumi/vault/github/User.java @@ -165,13 +165,20 @@ public User(String name, UserArgs args) { * @param options A bag of options that control this resource's behavior. */ public User(String name, UserArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:github/user:User", name, args == null ? UserArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:github/user:User", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private User(String name, Output id, @Nullable UserState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:github/user:User", name, state, makeResourceOptions(options, id)); } + private static UserArgs makeArgs(UserArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? UserArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/identity/Entity.java b/sdk/java/src/main/java/com/pulumi/vault/identity/Entity.java index fbe8bbe32..da8daeb8d 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/identity/Entity.java +++ b/sdk/java/src/main/java/com/pulumi/vault/identity/Entity.java @@ -179,13 +179,20 @@ public Entity(String name, @Nullable EntityArgs args) { * @param options A bag of options that control this resource's behavior. */ public Entity(String name, @Nullable EntityArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:identity/entity:Entity", name, args == null ? EntityArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:identity/entity:Entity", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Entity(String name, Output id, @Nullable EntityState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:identity/entity:Entity", name, state, makeResourceOptions(options, id)); } + private static EntityArgs makeArgs(@Nullable EntityArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? EntityArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/identity/EntityAlias.java b/sdk/java/src/main/java/com/pulumi/vault/identity/EntityAlias.java index 1f80f0b18..611bea9ea 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/identity/EntityAlias.java +++ b/sdk/java/src/main/java/com/pulumi/vault/identity/EntityAlias.java @@ -163,13 +163,20 @@ public EntityAlias(String name, EntityAliasArgs args) { * @param options A bag of options that control this resource's behavior. */ public EntityAlias(String name, EntityAliasArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:identity/entityAlias:EntityAlias", name, args == null ? EntityAliasArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:identity/entityAlias:EntityAlias", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private EntityAlias(String name, Output id, @Nullable EntityAliasState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:identity/entityAlias:EntityAlias", name, state, makeResourceOptions(options, id)); } + private static EntityAliasArgs makeArgs(EntityAliasArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? EntityAliasArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/identity/EntityPolicies.java b/sdk/java/src/main/java/com/pulumi/vault/identity/EntityPolicies.java index 1ce7b2e5b..ff5b2f442 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/identity/EntityPolicies.java +++ b/sdk/java/src/main/java/com/pulumi/vault/identity/EntityPolicies.java @@ -229,13 +229,20 @@ public EntityPolicies(String name, EntityPoliciesArgs args) { * @param options A bag of options that control this resource's behavior. */ public EntityPolicies(String name, EntityPoliciesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:identity/entityPolicies:EntityPolicies", name, args == null ? EntityPoliciesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:identity/entityPolicies:EntityPolicies", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private EntityPolicies(String name, Output id, @Nullable EntityPoliciesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:identity/entityPolicies:EntityPolicies", name, state, makeResourceOptions(options, id)); } + private static EntityPoliciesArgs makeArgs(EntityPoliciesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? EntityPoliciesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/identity/Group.java b/sdk/java/src/main/java/com/pulumi/vault/identity/Group.java index d92611d1a..e3a98bf03 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/identity/Group.java +++ b/sdk/java/src/main/java/com/pulumi/vault/identity/Group.java @@ -351,13 +351,20 @@ public Group(String name, @Nullable GroupArgs args) { * @param options A bag of options that control this resource's behavior. */ public Group(String name, @Nullable GroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:identity/group:Group", name, args == null ? GroupArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:identity/group:Group", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Group(String name, Output id, @Nullable GroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:identity/group:Group", name, state, makeResourceOptions(options, id)); } + private static GroupArgs makeArgs(@Nullable GroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? GroupArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/identity/GroupAlias.java b/sdk/java/src/main/java/com/pulumi/vault/identity/GroupAlias.java index 9719fe851..62019d015 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/identity/GroupAlias.java +++ b/sdk/java/src/main/java/com/pulumi/vault/identity/GroupAlias.java @@ -173,13 +173,20 @@ public GroupAlias(String name, GroupAliasArgs args) { * @param options A bag of options that control this resource's behavior. */ public GroupAlias(String name, GroupAliasArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:identity/groupAlias:GroupAlias", name, args == null ? GroupAliasArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:identity/groupAlias:GroupAlias", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private GroupAlias(String name, Output id, @Nullable GroupAliasState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:identity/groupAlias:GroupAlias", name, state, makeResourceOptions(options, id)); } + private static GroupAliasArgs makeArgs(GroupAliasArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? GroupAliasArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/identity/GroupMemberEntityIds.java b/sdk/java/src/main/java/com/pulumi/vault/identity/GroupMemberEntityIds.java index fe19307d4..413ee583f 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/identity/GroupMemberEntityIds.java +++ b/sdk/java/src/main/java/com/pulumi/vault/identity/GroupMemberEntityIds.java @@ -237,13 +237,20 @@ public GroupMemberEntityIds(String name, GroupMemberEntityIdsArgs args) { * @param options A bag of options that control this resource's behavior. */ public GroupMemberEntityIds(String name, GroupMemberEntityIdsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:identity/groupMemberEntityIds:GroupMemberEntityIds", name, args == null ? GroupMemberEntityIdsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:identity/groupMemberEntityIds:GroupMemberEntityIds", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private GroupMemberEntityIds(String name, Output id, @Nullable GroupMemberEntityIdsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:identity/groupMemberEntityIds:GroupMemberEntityIds", name, state, makeResourceOptions(options, id)); } + private static GroupMemberEntityIdsArgs makeArgs(GroupMemberEntityIdsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? GroupMemberEntityIdsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/identity/GroupMemberGroupIds.java b/sdk/java/src/main/java/com/pulumi/vault/identity/GroupMemberGroupIds.java index 2d5c617cf..67d7b002a 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/identity/GroupMemberGroupIds.java +++ b/sdk/java/src/main/java/com/pulumi/vault/identity/GroupMemberGroupIds.java @@ -227,13 +227,20 @@ public GroupMemberGroupIds(String name, GroupMemberGroupIdsArgs args) { * @param options A bag of options that control this resource's behavior. */ public GroupMemberGroupIds(String name, GroupMemberGroupIdsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:identity/groupMemberGroupIds:GroupMemberGroupIds", name, args == null ? GroupMemberGroupIdsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:identity/groupMemberGroupIds:GroupMemberGroupIds", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private GroupMemberGroupIds(String name, Output id, @Nullable GroupMemberGroupIdsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:identity/groupMemberGroupIds:GroupMemberGroupIds", name, state, makeResourceOptions(options, id)); } + private static GroupMemberGroupIdsArgs makeArgs(GroupMemberGroupIdsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? GroupMemberGroupIdsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/identity/GroupPolicies.java b/sdk/java/src/main/java/com/pulumi/vault/identity/GroupPolicies.java index 19323683f..eed26a930 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/identity/GroupPolicies.java +++ b/sdk/java/src/main/java/com/pulumi/vault/identity/GroupPolicies.java @@ -233,13 +233,20 @@ public GroupPolicies(String name, GroupPoliciesArgs args) { * @param options A bag of options that control this resource's behavior. */ public GroupPolicies(String name, GroupPoliciesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:identity/groupPolicies:GroupPolicies", name, args == null ? GroupPoliciesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:identity/groupPolicies:GroupPolicies", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private GroupPolicies(String name, Output id, @Nullable GroupPoliciesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:identity/groupPolicies:GroupPolicies", name, state, makeResourceOptions(options, id)); } + private static GroupPoliciesArgs makeArgs(GroupPoliciesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? GroupPoliciesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/identity/IdentityFunctions.java b/sdk/java/src/main/java/com/pulumi/vault/identity/IdentityFunctions.java index e057908b9..0f59f9006 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/identity/IdentityFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/vault/identity/IdentityFunctions.java @@ -64,7 +64,7 @@ public final class IdentityFunctions { * * ## Required Vault Capabilities * - * Use of this resource requires the `create` capability on `/identity/lookup/entity`. + * Use of this resource requires the `update` capability on `/identity/lookup/entity`. * */ public static Output getEntity() { @@ -108,7 +108,7 @@ public static Output getEntity() { * * ## Required Vault Capabilities * - * Use of this resource requires the `create` capability on `/identity/lookup/entity`. + * Use of this resource requires the `update` capability on `/identity/lookup/entity`. * */ public static CompletableFuture getEntityPlain() { @@ -152,7 +152,7 @@ public static CompletableFuture getEntityPlain() { * * ## Required Vault Capabilities * - * Use of this resource requires the `create` capability on `/identity/lookup/entity`. + * Use of this resource requires the `update` capability on `/identity/lookup/entity`. * */ public static Output getEntity(GetEntityArgs args) { @@ -196,7 +196,7 @@ public static Output getEntity(GetEntityArgs args) { * * ## Required Vault Capabilities * - * Use of this resource requires the `create` capability on `/identity/lookup/entity`. + * Use of this resource requires the `update` capability on `/identity/lookup/entity`. * */ public static CompletableFuture getEntityPlain(GetEntityPlainArgs args) { @@ -240,7 +240,7 @@ public static CompletableFuture getEntityPlain(GetEntityPlainAr * * ## Required Vault Capabilities * - * Use of this resource requires the `create` capability on `/identity/lookup/entity`. + * Use of this resource requires the `update` capability on `/identity/lookup/entity`. * */ public static Output getEntity(GetEntityArgs args, InvokeOptions options) { @@ -284,7 +284,7 @@ public static Output getEntity(GetEntityArgs args, InvokeOption * * ## Required Vault Capabilities * - * Use of this resource requires the `create` capability on `/identity/lookup/entity`. + * Use of this resource requires the `update` capability on `/identity/lookup/entity`. * */ public static CompletableFuture getEntityPlain(GetEntityPlainArgs args, InvokeOptions options) { diff --git a/sdk/java/src/main/java/com/pulumi/vault/identity/MfaDuo.java b/sdk/java/src/main/java/com/pulumi/vault/identity/MfaDuo.java index 708b2f398..0c6584b24 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/identity/MfaDuo.java +++ b/sdk/java/src/main/java/com/pulumi/vault/identity/MfaDuo.java @@ -286,13 +286,20 @@ public MfaDuo(String name, MfaDuoArgs args) { * @param options A bag of options that control this resource's behavior. */ public MfaDuo(String name, MfaDuoArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:identity/mfaDuo:MfaDuo", name, args == null ? MfaDuoArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:identity/mfaDuo:MfaDuo", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private MfaDuo(String name, Output id, @Nullable MfaDuoState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:identity/mfaDuo:MfaDuo", name, state, makeResourceOptions(options, id)); } + private static MfaDuoArgs makeArgs(MfaDuoArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? MfaDuoArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/identity/MfaLoginEnforcement.java b/sdk/java/src/main/java/com/pulumi/vault/identity/MfaLoginEnforcement.java index cf4fc65f2..8c15a9d6c 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/identity/MfaLoginEnforcement.java +++ b/sdk/java/src/main/java/com/pulumi/vault/identity/MfaLoginEnforcement.java @@ -237,13 +237,20 @@ public MfaLoginEnforcement(String name, MfaLoginEnforcementArgs args) { * @param options A bag of options that control this resource's behavior. */ public MfaLoginEnforcement(String name, MfaLoginEnforcementArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:identity/mfaLoginEnforcement:MfaLoginEnforcement", name, args == null ? MfaLoginEnforcementArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:identity/mfaLoginEnforcement:MfaLoginEnforcement", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private MfaLoginEnforcement(String name, Output id, @Nullable MfaLoginEnforcementState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:identity/mfaLoginEnforcement:MfaLoginEnforcement", name, state, makeResourceOptions(options, id)); } + private static MfaLoginEnforcementArgs makeArgs(MfaLoginEnforcementArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? MfaLoginEnforcementArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/identity/MfaOkta.java b/sdk/java/src/main/java/com/pulumi/vault/identity/MfaOkta.java index 582a9129d..7056fb6f8 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/identity/MfaOkta.java +++ b/sdk/java/src/main/java/com/pulumi/vault/identity/MfaOkta.java @@ -272,13 +272,20 @@ public MfaOkta(String name, MfaOktaArgs args) { * @param options A bag of options that control this resource's behavior. */ public MfaOkta(String name, MfaOktaArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:identity/mfaOkta:MfaOkta", name, args == null ? MfaOktaArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:identity/mfaOkta:MfaOkta", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private MfaOkta(String name, Output id, @Nullable MfaOktaState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:identity/mfaOkta:MfaOkta", name, state, makeResourceOptions(options, id)); } + private static MfaOktaArgs makeArgs(MfaOktaArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? MfaOktaArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/identity/MfaPingid.java b/sdk/java/src/main/java/com/pulumi/vault/identity/MfaPingid.java index 828b2f1b0..0b2e36dd2 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/identity/MfaPingid.java +++ b/sdk/java/src/main/java/com/pulumi/vault/identity/MfaPingid.java @@ -297,13 +297,20 @@ public MfaPingid(String name, MfaPingidArgs args) { * @param options A bag of options that control this resource's behavior. */ public MfaPingid(String name, MfaPingidArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:identity/mfaPingid:MfaPingid", name, args == null ? MfaPingidArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:identity/mfaPingid:MfaPingid", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private MfaPingid(String name, Output id, @Nullable MfaPingidState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:identity/mfaPingid:MfaPingid", name, state, makeResourceOptions(options, id)); } + private static MfaPingidArgs makeArgs(MfaPingidArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? MfaPingidArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/identity/MfaTotp.java b/sdk/java/src/main/java/com/pulumi/vault/identity/MfaTotp.java index f24d75ca5..a12d40b2c 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/identity/MfaTotp.java +++ b/sdk/java/src/main/java/com/pulumi/vault/identity/MfaTotp.java @@ -311,13 +311,20 @@ public MfaTotp(String name, MfaTotpArgs args) { * @param options A bag of options that control this resource's behavior. */ public MfaTotp(String name, MfaTotpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:identity/mfaTotp:MfaTotp", name, args == null ? MfaTotpArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:identity/mfaTotp:MfaTotp", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private MfaTotp(String name, Output id, @Nullable MfaTotpState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:identity/mfaTotp:MfaTotp", name, state, makeResourceOptions(options, id)); } + private static MfaTotpArgs makeArgs(MfaTotpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? MfaTotpArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/identity/Oidc.java b/sdk/java/src/main/java/com/pulumi/vault/identity/Oidc.java index 1827c1c34..d5c3787ec 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/identity/Oidc.java +++ b/sdk/java/src/main/java/com/pulumi/vault/identity/Oidc.java @@ -123,13 +123,20 @@ public Oidc(String name, @Nullable OidcArgs args) { * @param options A bag of options that control this resource's behavior. */ public Oidc(String name, @Nullable OidcArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:identity/oidc:Oidc", name, args == null ? OidcArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:identity/oidc:Oidc", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Oidc(String name, Output id, @Nullable OidcState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:identity/oidc:Oidc", name, state, makeResourceOptions(options, id)); } + private static OidcArgs makeArgs(@Nullable OidcArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OidcArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/identity/OidcAssignment.java b/sdk/java/src/main/java/com/pulumi/vault/identity/OidcAssignment.java index 54030722a..b7441bf82 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/identity/OidcAssignment.java +++ b/sdk/java/src/main/java/com/pulumi/vault/identity/OidcAssignment.java @@ -169,13 +169,20 @@ public OidcAssignment(String name, @Nullable OidcAssignmentArgs args) { * @param options A bag of options that control this resource's behavior. */ public OidcAssignment(String name, @Nullable OidcAssignmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:identity/oidcAssignment:OidcAssignment", name, args == null ? OidcAssignmentArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:identity/oidcAssignment:OidcAssignment", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private OidcAssignment(String name, Output id, @Nullable OidcAssignmentState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:identity/oidcAssignment:OidcAssignment", name, state, makeResourceOptions(options, id)); } + private static OidcAssignmentArgs makeArgs(@Nullable OidcAssignmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OidcAssignmentArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/identity/OidcClient.java b/sdk/java/src/main/java/com/pulumi/vault/identity/OidcClient.java index 0131872d9..5cd278d40 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/identity/OidcClient.java +++ b/sdk/java/src/main/java/com/pulumi/vault/identity/OidcClient.java @@ -264,13 +264,20 @@ public OidcClient(String name, @Nullable OidcClientArgs args) { * @param options A bag of options that control this resource's behavior. */ public OidcClient(String name, @Nullable OidcClientArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:identity/oidcClient:OidcClient", name, args == null ? OidcClientArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:identity/oidcClient:OidcClient", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private OidcClient(String name, Output id, @Nullable OidcClientState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:identity/oidcClient:OidcClient", name, state, makeResourceOptions(options, id)); } + private static OidcClientArgs makeArgs(@Nullable OidcClientArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OidcClientArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/identity/OidcKey.java b/sdk/java/src/main/java/com/pulumi/vault/identity/OidcKey.java index 0c173784d..20b627236 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/identity/OidcKey.java +++ b/sdk/java/src/main/java/com/pulumi/vault/identity/OidcKey.java @@ -197,13 +197,20 @@ public OidcKey(String name, @Nullable OidcKeyArgs args) { * @param options A bag of options that control this resource's behavior. */ public OidcKey(String name, @Nullable OidcKeyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:identity/oidcKey:OidcKey", name, args == null ? OidcKeyArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:identity/oidcKey:OidcKey", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private OidcKey(String name, Output id, @Nullable OidcKeyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:identity/oidcKey:OidcKey", name, state, makeResourceOptions(options, id)); } + private static OidcKeyArgs makeArgs(@Nullable OidcKeyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OidcKeyArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/identity/OidcKeyAllowedClientID.java b/sdk/java/src/main/java/com/pulumi/vault/identity/OidcKeyAllowedClientID.java index e50eac13b..920f09720 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/identity/OidcKeyAllowedClientID.java +++ b/sdk/java/src/main/java/com/pulumi/vault/identity/OidcKeyAllowedClientID.java @@ -139,13 +139,20 @@ public OidcKeyAllowedClientID(String name, OidcKeyAllowedClientIDArgs args) { * @param options A bag of options that control this resource's behavior. */ public OidcKeyAllowedClientID(String name, OidcKeyAllowedClientIDArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:identity/oidcKeyAllowedClientID:OidcKeyAllowedClientID", name, args == null ? OidcKeyAllowedClientIDArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:identity/oidcKeyAllowedClientID:OidcKeyAllowedClientID", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private OidcKeyAllowedClientID(String name, Output id, @Nullable OidcKeyAllowedClientIDState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:identity/oidcKeyAllowedClientID:OidcKeyAllowedClientID", name, state, makeResourceOptions(options, id)); } + private static OidcKeyAllowedClientIDArgs makeArgs(OidcKeyAllowedClientIDArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OidcKeyAllowedClientIDArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/identity/OidcProvider.java b/sdk/java/src/main/java/com/pulumi/vault/identity/OidcProvider.java index 3505b0a1f..45532b328 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/identity/OidcProvider.java +++ b/sdk/java/src/main/java/com/pulumi/vault/identity/OidcProvider.java @@ -246,13 +246,20 @@ public OidcProvider(String name, @Nullable OidcProviderArgs args) { * @param options A bag of options that control this resource's behavior. */ public OidcProvider(String name, @Nullable OidcProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:identity/oidcProvider:OidcProvider", name, args == null ? OidcProviderArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:identity/oidcProvider:OidcProvider", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private OidcProvider(String name, Output id, @Nullable OidcProviderState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:identity/oidcProvider:OidcProvider", name, state, makeResourceOptions(options, id)); } + private static OidcProviderArgs makeArgs(@Nullable OidcProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OidcProviderArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/identity/OidcRole.java b/sdk/java/src/main/java/com/pulumi/vault/identity/OidcRole.java index 336994bb5..394c79d63 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/identity/OidcRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/identity/OidcRole.java @@ -253,13 +253,20 @@ public OidcRole(String name, OidcRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public OidcRole(String name, OidcRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:identity/oidcRole:OidcRole", name, args == null ? OidcRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:identity/oidcRole:OidcRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private OidcRole(String name, Output id, @Nullable OidcRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:identity/oidcRole:OidcRole", name, state, makeResourceOptions(options, id)); } + private static OidcRoleArgs makeArgs(OidcRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OidcRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/identity/OidcScope.java b/sdk/java/src/main/java/com/pulumi/vault/identity/OidcScope.java index d781a037c..f5ebf4734 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/identity/OidcScope.java +++ b/sdk/java/src/main/java/com/pulumi/vault/identity/OidcScope.java @@ -151,13 +151,20 @@ public OidcScope(String name, @Nullable OidcScopeArgs args) { * @param options A bag of options that control this resource's behavior. */ public OidcScope(String name, @Nullable OidcScopeArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:identity/oidcScope:OidcScope", name, args == null ? OidcScopeArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:identity/oidcScope:OidcScope", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private OidcScope(String name, Output id, @Nullable OidcScopeState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:identity/oidcScope:OidcScope", name, state, makeResourceOptions(options, id)); } + private static OidcScopeArgs makeArgs(@Nullable OidcScopeArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OidcScopeArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/inputs/MountState.java b/sdk/java/src/main/java/com/pulumi/vault/inputs/MountState.java index 98116484c..89ad7630b 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/inputs/MountState.java +++ b/sdk/java/src/main/java/com/pulumi/vault/inputs/MountState.java @@ -177,14 +177,16 @@ public Optional> identityTokenKey() { } /** - * Specifies whether to show this mount in the UI-specific listing endpoint + * Specifies whether to show this mount in the UI-specific + * listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. * */ @Import(name="listingVisibility") private @Nullable Output listingVisibility; /** - * @return Specifies whether to show this mount in the UI-specific listing endpoint + * @return Specifies whether to show this mount in the UI-specific + * listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. * */ public Optional> listingVisibility() { @@ -650,7 +652,8 @@ public Builder identityTokenKey(String identityTokenKey) { } /** - * @param listingVisibility Specifies whether to show this mount in the UI-specific listing endpoint + * @param listingVisibility Specifies whether to show this mount in the UI-specific + * listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. * * @return builder * @@ -661,7 +664,8 @@ public Builder listingVisibility(@Nullable Output listingVisibility) { } /** - * @param listingVisibility Specifies whether to show this mount in the UI-specific listing endpoint + * @param listingVisibility Specifies whether to show this mount in the UI-specific + * listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/vault/jwt/AuthBackend.java b/sdk/java/src/main/java/com/pulumi/vault/jwt/AuthBackend.java index 778ef8633..8f2df2e88 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/jwt/AuthBackend.java +++ b/sdk/java/src/main/java/com/pulumi/vault/jwt/AuthBackend.java @@ -506,13 +506,20 @@ public AuthBackend(String name, @Nullable AuthBackendArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackend(String name, @Nullable AuthBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:jwt/authBackend:AuthBackend", name, args == null ? AuthBackendArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:jwt/authBackend:AuthBackend", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackend(String name, Output id, @Nullable AuthBackendState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:jwt/authBackend:AuthBackend", name, state, makeResourceOptions(options, id)); } + private static AuthBackendArgs makeArgs(@Nullable AuthBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/jwt/AuthBackendRole.java b/sdk/java/src/main/java/com/pulumi/vault/jwt/AuthBackendRole.java index 19412ae08..6b0f7efe8 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/jwt/AuthBackendRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/jwt/AuthBackendRole.java @@ -626,13 +626,20 @@ public AuthBackendRole(String name, AuthBackendRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackendRole(String name, AuthBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:jwt/authBackendRole:AuthBackendRole", name, args == null ? AuthBackendRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:jwt/authBackendRole:AuthBackendRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendRole(String name, Output id, @Nullable AuthBackendRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:jwt/authBackendRole:AuthBackendRole", name, state, makeResourceOptions(options, id)); } + private static AuthBackendRoleArgs makeArgs(AuthBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/kmip/SecretBackend.java b/sdk/java/src/main/java/com/pulumi/vault/kmip/SecretBackend.java index 6c64ffc10..ffba063d4 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/kmip/SecretBackend.java +++ b/sdk/java/src/main/java/com/pulumi/vault/kmip/SecretBackend.java @@ -292,13 +292,20 @@ public SecretBackend(String name, SecretBackendArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackend(String name, SecretBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:kmip/secretBackend:SecretBackend", name, args == null ? SecretBackendArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:kmip/secretBackend:SecretBackend", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackend(String name, Output id, @Nullable SecretBackendState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:kmip/secretBackend:SecretBackend", name, state, makeResourceOptions(options, id)); } + private static SecretBackendArgs makeArgs(SecretBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/kmip/SecretRole.java b/sdk/java/src/main/java/com/pulumi/vault/kmip/SecretRole.java index 7509230ff..79c76ea95 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/kmip/SecretRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/kmip/SecretRole.java @@ -416,13 +416,20 @@ public SecretRole(String name, SecretRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretRole(String name, SecretRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:kmip/secretRole:SecretRole", name, args == null ? SecretRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:kmip/secretRole:SecretRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretRole(String name, Output id, @Nullable SecretRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:kmip/secretRole:SecretRole", name, state, makeResourceOptions(options, id)); } + private static SecretRoleArgs makeArgs(SecretRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/kmip/SecretScope.java b/sdk/java/src/main/java/com/pulumi/vault/kmip/SecretScope.java index 4751a5b0a..535483687 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/kmip/SecretScope.java +++ b/sdk/java/src/main/java/com/pulumi/vault/kmip/SecretScope.java @@ -162,13 +162,20 @@ public SecretScope(String name, SecretScopeArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretScope(String name, SecretScopeArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:kmip/secretScope:SecretScope", name, args == null ? SecretScopeArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:kmip/secretScope:SecretScope", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretScope(String name, Output id, @Nullable SecretScopeState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:kmip/secretScope:SecretScope", name, state, makeResourceOptions(options, id)); } + private static SecretScopeArgs makeArgs(SecretScopeArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretScopeArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/kubernetes/AuthBackendConfig.java b/sdk/java/src/main/java/com/pulumi/vault/kubernetes/AuthBackendConfig.java index 9ea2f2a02..b0d984d2b 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/kubernetes/AuthBackendConfig.java +++ b/sdk/java/src/main/java/com/pulumi/vault/kubernetes/AuthBackendConfig.java @@ -236,13 +236,20 @@ public AuthBackendConfig(String name, AuthBackendConfigArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackendConfig(String name, AuthBackendConfigArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:kubernetes/authBackendConfig:AuthBackendConfig", name, args == null ? AuthBackendConfigArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:kubernetes/authBackendConfig:AuthBackendConfig", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendConfig(String name, Output id, @Nullable AuthBackendConfigState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:kubernetes/authBackendConfig:AuthBackendConfig", name, state, makeResourceOptions(options, id)); } + private static AuthBackendConfigArgs makeArgs(AuthBackendConfigArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendConfigArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/kubernetes/AuthBackendRole.java b/sdk/java/src/main/java/com/pulumi/vault/kubernetes/AuthBackendRole.java index 465decc12..3c49df34a 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/kubernetes/AuthBackendRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/kubernetes/AuthBackendRole.java @@ -346,13 +346,20 @@ public AuthBackendRole(String name, AuthBackendRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackendRole(String name, AuthBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:kubernetes/authBackendRole:AuthBackendRole", name, args == null ? AuthBackendRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:kubernetes/authBackendRole:AuthBackendRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendRole(String name, Output id, @Nullable AuthBackendRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:kubernetes/authBackendRole:AuthBackendRole", name, state, makeResourceOptions(options, id)); } + private static AuthBackendRoleArgs makeArgs(AuthBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/kubernetes/SecretBackend.java b/sdk/java/src/main/java/com/pulumi/vault/kubernetes/SecretBackend.java index 365f8a699..ab3575dd4 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/kubernetes/SecretBackend.java +++ b/sdk/java/src/main/java/com/pulumi/vault/kubernetes/SecretBackend.java @@ -444,13 +444,20 @@ public SecretBackend(String name, SecretBackendArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackend(String name, SecretBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:kubernetes/secretBackend:SecretBackend", name, args == null ? SecretBackendArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:kubernetes/secretBackend:SecretBackend", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackend(String name, Output id, @Nullable SecretBackendState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:kubernetes/secretBackend:SecretBackend", name, state, makeResourceOptions(options, id)); } + private static SecretBackendArgs makeArgs(SecretBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/kubernetes/SecretBackendRole.java b/sdk/java/src/main/java/com/pulumi/vault/kubernetes/SecretBackendRole.java index af0d78f67..165a5da56 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/kubernetes/SecretBackendRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/kubernetes/SecretBackendRole.java @@ -493,13 +493,20 @@ public SecretBackendRole(String name, SecretBackendRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendRole(String name, SecretBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:kubernetes/secretBackendRole:SecretBackendRole", name, args == null ? SecretBackendRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:kubernetes/secretBackendRole:SecretBackendRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendRole(String name, Output id, @Nullable SecretBackendRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:kubernetes/secretBackendRole:SecretBackendRole", name, state, makeResourceOptions(options, id)); } + private static SecretBackendRoleArgs makeArgs(SecretBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/kv/Secret.java b/sdk/java/src/main/java/com/pulumi/vault/kv/Secret.java index 96a12ce3d..00a517ad2 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/kv/Secret.java +++ b/sdk/java/src/main/java/com/pulumi/vault/kv/Secret.java @@ -184,13 +184,20 @@ public Secret(String name, SecretArgs args) { * @param options A bag of options that control this resource's behavior. */ public Secret(String name, SecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:kv/secret:Secret", name, args == null ? SecretArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:kv/secret:Secret", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Secret(String name, Output id, @Nullable SecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:kv/secret:Secret", name, state, makeResourceOptions(options, id)); } + private static SecretArgs makeArgs(SecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/kv/SecretBackendV2.java b/sdk/java/src/main/java/com/pulumi/vault/kv/SecretBackendV2.java index 9227d94e7..bc9b7c5d3 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/kv/SecretBackendV2.java +++ b/sdk/java/src/main/java/com/pulumi/vault/kv/SecretBackendV2.java @@ -192,13 +192,20 @@ public SecretBackendV2(String name, SecretBackendV2Args args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendV2(String name, SecretBackendV2Args args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:kv/secretBackendV2:SecretBackendV2", name, args == null ? SecretBackendV2Args.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:kv/secretBackendV2:SecretBackendV2", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendV2(String name, Output id, @Nullable SecretBackendV2State state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:kv/secretBackendV2:SecretBackendV2", name, state, makeResourceOptions(options, id)); } + private static SecretBackendV2Args makeArgs(SecretBackendV2Args args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendV2Args.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/kv/SecretV2.java b/sdk/java/src/main/java/com/pulumi/vault/kv/SecretV2.java index aed8ec428..2db561279 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/kv/SecretV2.java +++ b/sdk/java/src/main/java/com/pulumi/vault/kv/SecretV2.java @@ -342,13 +342,20 @@ public SecretV2(String name, SecretV2Args args) { * @param options A bag of options that control this resource's behavior. */ public SecretV2(String name, SecretV2Args args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:kv/secretV2:SecretV2", name, args == null ? SecretV2Args.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:kv/secretV2:SecretV2", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretV2(String name, Output id, @Nullable SecretV2State state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:kv/secretV2:SecretV2", name, state, makeResourceOptions(options, id)); } + private static SecretV2Args makeArgs(SecretV2Args args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretV2Args.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/ldap/AuthBackend.java b/sdk/java/src/main/java/com/pulumi/vault/ldap/AuthBackend.java index 30ed45c97..cbea1152a 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/ldap/AuthBackend.java +++ b/sdk/java/src/main/java/com/pulumi/vault/ldap/AuthBackend.java @@ -622,13 +622,20 @@ public AuthBackend(String name, AuthBackendArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackend(String name, AuthBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:ldap/authBackend:AuthBackend", name, args == null ? AuthBackendArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:ldap/authBackend:AuthBackend", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackend(String name, Output id, @Nullable AuthBackendState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:ldap/authBackend:AuthBackend", name, state, makeResourceOptions(options, id)); } + private static AuthBackendArgs makeArgs(AuthBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/ldap/AuthBackendGroup.java b/sdk/java/src/main/java/com/pulumi/vault/ldap/AuthBackendGroup.java index de53e500a..32f43f6ee 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/ldap/AuthBackendGroup.java +++ b/sdk/java/src/main/java/com/pulumi/vault/ldap/AuthBackendGroup.java @@ -168,13 +168,20 @@ public AuthBackendGroup(String name, AuthBackendGroupArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackendGroup(String name, AuthBackendGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:ldap/authBackendGroup:AuthBackendGroup", name, args == null ? AuthBackendGroupArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:ldap/authBackendGroup:AuthBackendGroup", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendGroup(String name, Output id, @Nullable AuthBackendGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:ldap/authBackendGroup:AuthBackendGroup", name, state, makeResourceOptions(options, id)); } + private static AuthBackendGroupArgs makeArgs(AuthBackendGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendGroupArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/ldap/AuthBackendUser.java b/sdk/java/src/main/java/com/pulumi/vault/ldap/AuthBackendUser.java index e100441f3..880d3fa95 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/ldap/AuthBackendUser.java +++ b/sdk/java/src/main/java/com/pulumi/vault/ldap/AuthBackendUser.java @@ -184,13 +184,20 @@ public AuthBackendUser(String name, AuthBackendUserArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackendUser(String name, AuthBackendUserArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:ldap/authBackendUser:AuthBackendUser", name, args == null ? AuthBackendUserArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:ldap/authBackendUser:AuthBackendUser", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendUser(String name, Output id, @Nullable AuthBackendUserState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:ldap/authBackendUser:AuthBackendUser", name, state, makeResourceOptions(options, id)); } + private static AuthBackendUserArgs makeArgs(AuthBackendUserArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendUserArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/ldap/SecretBackend.java b/sdk/java/src/main/java/com/pulumi/vault/ldap/SecretBackend.java index 3861a6dd9..a5e87b293 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/ldap/SecretBackend.java +++ b/sdk/java/src/main/java/com/pulumi/vault/ldap/SecretBackend.java @@ -620,13 +620,20 @@ public SecretBackend(String name, SecretBackendArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackend(String name, SecretBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:ldap/secretBackend:SecretBackend", name, args == null ? SecretBackendArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:ldap/secretBackend:SecretBackend", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackend(String name, Output id, @Nullable SecretBackendState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:ldap/secretBackend:SecretBackend", name, state, makeResourceOptions(options, id)); } + private static SecretBackendArgs makeArgs(SecretBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/ldap/SecretBackendDynamicRole.java b/sdk/java/src/main/java/com/pulumi/vault/ldap/SecretBackendDynamicRole.java index 226f2539f..e0be4bdd5 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/ldap/SecretBackendDynamicRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/ldap/SecretBackendDynamicRole.java @@ -285,13 +285,20 @@ public SecretBackendDynamicRole(String name, SecretBackendDynamicRoleArgs args) * @param options A bag of options that control this resource's behavior. */ public SecretBackendDynamicRole(String name, SecretBackendDynamicRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:ldap/secretBackendDynamicRole:SecretBackendDynamicRole", name, args == null ? SecretBackendDynamicRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:ldap/secretBackendDynamicRole:SecretBackendDynamicRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendDynamicRole(String name, Output id, @Nullable SecretBackendDynamicRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:ldap/secretBackendDynamicRole:SecretBackendDynamicRole", name, state, makeResourceOptions(options, id)); } + private static SecretBackendDynamicRoleArgs makeArgs(SecretBackendDynamicRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendDynamicRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/ldap/SecretBackendLibrarySet.java b/sdk/java/src/main/java/com/pulumi/vault/ldap/SecretBackendLibrarySet.java index 1653c0165..12c9d5c80 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/ldap/SecretBackendLibrarySet.java +++ b/sdk/java/src/main/java/com/pulumi/vault/ldap/SecretBackendLibrarySet.java @@ -219,13 +219,20 @@ public SecretBackendLibrarySet(String name, SecretBackendLibrarySetArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendLibrarySet(String name, SecretBackendLibrarySetArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:ldap/secretBackendLibrarySet:SecretBackendLibrarySet", name, args == null ? SecretBackendLibrarySetArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:ldap/secretBackendLibrarySet:SecretBackendLibrarySet", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendLibrarySet(String name, Output id, @Nullable SecretBackendLibrarySetState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:ldap/secretBackendLibrarySet:SecretBackendLibrarySet", name, state, makeResourceOptions(options, id)); } + private static SecretBackendLibrarySetArgs makeArgs(SecretBackendLibrarySetArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendLibrarySetArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/ldap/SecretBackendStaticRole.java b/sdk/java/src/main/java/com/pulumi/vault/ldap/SecretBackendStaticRole.java index a6c0c178a..542b22057 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/ldap/SecretBackendStaticRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/ldap/SecretBackendStaticRole.java @@ -214,13 +214,20 @@ public SecretBackendStaticRole(String name, SecretBackendStaticRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendStaticRole(String name, SecretBackendStaticRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:ldap/secretBackendStaticRole:SecretBackendStaticRole", name, args == null ? SecretBackendStaticRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:ldap/secretBackendStaticRole:SecretBackendStaticRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendStaticRole(String name, Output id, @Nullable SecretBackendStaticRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:ldap/secretBackendStaticRole:SecretBackendStaticRole", name, state, makeResourceOptions(options, id)); } + private static SecretBackendStaticRoleArgs makeArgs(SecretBackendStaticRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendStaticRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/managed/Keys.java b/sdk/java/src/main/java/com/pulumi/vault/managed/Keys.java index 48571fc3a..3c52dddf4 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/managed/Keys.java +++ b/sdk/java/src/main/java/com/pulumi/vault/managed/Keys.java @@ -113,13 +113,20 @@ public Keys(String name, @Nullable KeysArgs args) { * @param options A bag of options that control this resource's behavior. */ public Keys(String name, @Nullable KeysArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:managed/keys:Keys", name, args == null ? KeysArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:managed/keys:Keys", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Keys(String name, Output id, @Nullable KeysState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:managed/keys:Keys", name, state, makeResourceOptions(options, id)); } + private static KeysArgs makeArgs(@Nullable KeysArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? KeysArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/mongodbatlas/SecretBackend.java b/sdk/java/src/main/java/com/pulumi/vault/mongodbatlas/SecretBackend.java index f142e1273..c4e45ee5e 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/mongodbatlas/SecretBackend.java +++ b/sdk/java/src/main/java/com/pulumi/vault/mongodbatlas/SecretBackend.java @@ -170,13 +170,20 @@ public SecretBackend(String name, SecretBackendArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackend(String name, SecretBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:mongodbatlas/secretBackend:SecretBackend", name, args == null ? SecretBackendArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:mongodbatlas/secretBackend:SecretBackend", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackend(String name, Output id, @Nullable SecretBackendState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:mongodbatlas/secretBackend:SecretBackend", name, state, makeResourceOptions(options, id)); } + private static SecretBackendArgs makeArgs(SecretBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/mongodbatlas/SecretRole.java b/sdk/java/src/main/java/com/pulumi/vault/mongodbatlas/SecretRole.java index 6f9046e72..369321536 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/mongodbatlas/SecretRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/mongodbatlas/SecretRole.java @@ -275,13 +275,20 @@ public SecretRole(String name, SecretRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretRole(String name, SecretRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:mongodbatlas/secretRole:SecretRole", name, args == null ? SecretRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:mongodbatlas/secretRole:SecretRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretRole(String name, Output id, @Nullable SecretRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:mongodbatlas/secretRole:SecretRole", name, state, makeResourceOptions(options, id)); } + private static SecretRoleArgs makeArgs(SecretRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/okta/AuthBackend.java b/sdk/java/src/main/java/com/pulumi/vault/okta/AuthBackend.java index 9728ac905..c1bc29ce2 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/okta/AuthBackend.java +++ b/sdk/java/src/main/java/com/pulumi/vault/okta/AuthBackend.java @@ -440,13 +440,20 @@ public AuthBackend(String name, AuthBackendArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackend(String name, AuthBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:okta/authBackend:AuthBackend", name, args == null ? AuthBackendArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:okta/authBackend:AuthBackend", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackend(String name, Output id, @Nullable AuthBackendState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:okta/authBackend:AuthBackend", name, state, makeResourceOptions(options, id)); } + private static AuthBackendArgs makeArgs(AuthBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/okta/AuthBackendGroup.java b/sdk/java/src/main/java/com/pulumi/vault/okta/AuthBackendGroup.java index 95b6fe850..9c8621b25 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/okta/AuthBackendGroup.java +++ b/sdk/java/src/main/java/com/pulumi/vault/okta/AuthBackendGroup.java @@ -161,13 +161,20 @@ public AuthBackendGroup(String name, AuthBackendGroupArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackendGroup(String name, AuthBackendGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:okta/authBackendGroup:AuthBackendGroup", name, args == null ? AuthBackendGroupArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:okta/authBackendGroup:AuthBackendGroup", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendGroup(String name, Output id, @Nullable AuthBackendGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:okta/authBackendGroup:AuthBackendGroup", name, state, makeResourceOptions(options, id)); } + private static AuthBackendGroupArgs makeArgs(AuthBackendGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendGroupArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/okta/AuthBackendUser.java b/sdk/java/src/main/java/com/pulumi/vault/okta/AuthBackendUser.java index ba09b51bb..a339d4c75 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/okta/AuthBackendUser.java +++ b/sdk/java/src/main/java/com/pulumi/vault/okta/AuthBackendUser.java @@ -175,13 +175,20 @@ public AuthBackendUser(String name, AuthBackendUserArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackendUser(String name, AuthBackendUserArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:okta/authBackendUser:AuthBackendUser", name, args == null ? AuthBackendUserArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:okta/authBackendUser:AuthBackendUser", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendUser(String name, Output id, @Nullable AuthBackendUserState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:okta/authBackendUser:AuthBackendUser", name, state, makeResourceOptions(options, id)); } + private static AuthBackendUserArgs makeArgs(AuthBackendUserArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendUserArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/BackendConfigCluster.java b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/BackendConfigCluster.java index 089e49ebe..175586490 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/BackendConfigCluster.java +++ b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/BackendConfigCluster.java @@ -162,13 +162,20 @@ public BackendConfigCluster(String name, BackendConfigClusterArgs args) { * @param options A bag of options that control this resource's behavior. */ public BackendConfigCluster(String name, BackendConfigClusterArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:pkiSecret/backendConfigCluster:BackendConfigCluster", name, args == null ? BackendConfigClusterArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:pkiSecret/backendConfigCluster:BackendConfigCluster", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private BackendConfigCluster(String name, Output id, @Nullable BackendConfigClusterState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:pkiSecret/backendConfigCluster:BackendConfigCluster", name, state, makeResourceOptions(options, id)); } + private static BackendConfigClusterArgs makeArgs(BackendConfigClusterArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? BackendConfigClusterArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/BackendConfigEst.java b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/BackendConfigEst.java index f5e508c8e..418fba381 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/BackendConfigEst.java +++ b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/BackendConfigEst.java @@ -210,13 +210,20 @@ public BackendConfigEst(String name, BackendConfigEstArgs args) { * @param options A bag of options that control this resource's behavior. */ public BackendConfigEst(String name, BackendConfigEstArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:pkiSecret/backendConfigEst:BackendConfigEst", name, args == null ? BackendConfigEstArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:pkiSecret/backendConfigEst:BackendConfigEst", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private BackendConfigEst(String name, Output id, @Nullable BackendConfigEstState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:pkiSecret/backendConfigEst:BackendConfigEst", name, state, makeResourceOptions(options, id)); } + private static BackendConfigEstArgs makeArgs(BackendConfigEstArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? BackendConfigEstArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendCert.java b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendCert.java index 477eaac05..4be5e4a51 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendCert.java +++ b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendCert.java @@ -440,13 +440,20 @@ public SecretBackendCert(String name, SecretBackendCertArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendCert(String name, SecretBackendCertArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:pkiSecret/secretBackendCert:SecretBackendCert", name, args == null ? SecretBackendCertArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:pkiSecret/secretBackendCert:SecretBackendCert", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendCert(String name, Output id, @Nullable SecretBackendCertState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:pkiSecret/secretBackendCert:SecretBackendCert", name, state, makeResourceOptions(options, id)); } + private static SecretBackendCertArgs makeArgs(SecretBackendCertArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendCertArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendConfigCa.java b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendConfigCa.java index bc092bd93..0f1353390 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendConfigCa.java +++ b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendConfigCa.java @@ -178,13 +178,20 @@ public SecretBackendConfigCa(String name, SecretBackendConfigCaArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendConfigCa(String name, SecretBackendConfigCaArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:pkiSecret/secretBackendConfigCa:SecretBackendConfigCa", name, args == null ? SecretBackendConfigCaArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:pkiSecret/secretBackendConfigCa:SecretBackendConfigCa", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendConfigCa(String name, Output id, @Nullable SecretBackendConfigCaState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:pkiSecret/secretBackendConfigCa:SecretBackendConfigCa", name, state, makeResourceOptions(options, id)); } + private static SecretBackendConfigCaArgs makeArgs(SecretBackendConfigCaArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendConfigCaArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendConfigIssuers.java b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendConfigIssuers.java index 61d693888..59c58f006 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendConfigIssuers.java +++ b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendConfigIssuers.java @@ -179,13 +179,20 @@ public SecretBackendConfigIssuers(String name, SecretBackendConfigIssuersArgs ar * @param options A bag of options that control this resource's behavior. */ public SecretBackendConfigIssuers(String name, SecretBackendConfigIssuersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:pkiSecret/secretBackendConfigIssuers:SecretBackendConfigIssuers", name, args == null ? SecretBackendConfigIssuersArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:pkiSecret/secretBackendConfigIssuers:SecretBackendConfigIssuers", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendConfigIssuers(String name, Output id, @Nullable SecretBackendConfigIssuersState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:pkiSecret/secretBackendConfigIssuers:SecretBackendConfigIssuers", name, state, makeResourceOptions(options, id)); } + private static SecretBackendConfigIssuersArgs makeArgs(SecretBackendConfigIssuersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendConfigIssuersArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendConfigUrls.java b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendConfigUrls.java index bcea8f1a5..75986e45b 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendConfigUrls.java +++ b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendConfigUrls.java @@ -191,13 +191,20 @@ public SecretBackendConfigUrls(String name, SecretBackendConfigUrlsArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendConfigUrls(String name, SecretBackendConfigUrlsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:pkiSecret/secretBackendConfigUrls:SecretBackendConfigUrls", name, args == null ? SecretBackendConfigUrlsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:pkiSecret/secretBackendConfigUrls:SecretBackendConfigUrls", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendConfigUrls(String name, Output id, @Nullable SecretBackendConfigUrlsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:pkiSecret/secretBackendConfigUrls:SecretBackendConfigUrls", name, state, makeResourceOptions(options, id)); } + private static SecretBackendConfigUrlsArgs makeArgs(SecretBackendConfigUrlsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendConfigUrlsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendCrlConfig.java b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendCrlConfig.java index 9a4fe9dc8..ea0f6c75d 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendCrlConfig.java +++ b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendCrlConfig.java @@ -284,13 +284,20 @@ public SecretBackendCrlConfig(String name, SecretBackendCrlConfigArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendCrlConfig(String name, SecretBackendCrlConfigArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:pkiSecret/secretBackendCrlConfig:SecretBackendCrlConfig", name, args == null ? SecretBackendCrlConfigArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:pkiSecret/secretBackendCrlConfig:SecretBackendCrlConfig", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendCrlConfig(String name, Output id, @Nullable SecretBackendCrlConfigState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:pkiSecret/secretBackendCrlConfig:SecretBackendCrlConfig", name, state, makeResourceOptions(options, id)); } + private static SecretBackendCrlConfigArgs makeArgs(SecretBackendCrlConfigArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendCrlConfigArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendIntermediateCertRequest.java b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendIntermediateCertRequest.java index 1c358a40d..9481fab9c 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendIntermediateCertRequest.java +++ b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendIntermediateCertRequest.java @@ -510,13 +510,20 @@ public SecretBackendIntermediateCertRequest(String name, SecretBackendIntermedia * @param options A bag of options that control this resource's behavior. */ public SecretBackendIntermediateCertRequest(String name, SecretBackendIntermediateCertRequestArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:pkiSecret/secretBackendIntermediateCertRequest:SecretBackendIntermediateCertRequest", name, args == null ? SecretBackendIntermediateCertRequestArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:pkiSecret/secretBackendIntermediateCertRequest:SecretBackendIntermediateCertRequest", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendIntermediateCertRequest(String name, Output id, @Nullable SecretBackendIntermediateCertRequestState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:pkiSecret/secretBackendIntermediateCertRequest:SecretBackendIntermediateCertRequest", name, state, makeResourceOptions(options, id)); } + private static SecretBackendIntermediateCertRequestArgs makeArgs(SecretBackendIntermediateCertRequestArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendIntermediateCertRequestArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendIntermediateSetSigned.java b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendIntermediateSetSigned.java index 0f3d8f100..ba1cc8b0c 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendIntermediateSetSigned.java +++ b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendIntermediateSetSigned.java @@ -220,13 +220,20 @@ public SecretBackendIntermediateSetSigned(String name, SecretBackendIntermediate * @param options A bag of options that control this resource's behavior. */ public SecretBackendIntermediateSetSigned(String name, SecretBackendIntermediateSetSignedArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:pkiSecret/secretBackendIntermediateSetSigned:SecretBackendIntermediateSetSigned", name, args == null ? SecretBackendIntermediateSetSignedArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:pkiSecret/secretBackendIntermediateSetSigned:SecretBackendIntermediateSetSigned", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendIntermediateSetSigned(String name, Output id, @Nullable SecretBackendIntermediateSetSignedState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:pkiSecret/secretBackendIntermediateSetSigned:SecretBackendIntermediateSetSigned", name, state, makeResourceOptions(options, id)); } + private static SecretBackendIntermediateSetSignedArgs makeArgs(SecretBackendIntermediateSetSignedArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendIntermediateSetSignedArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendIssuer.java b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendIssuer.java index d37698834..18075b84f 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendIssuer.java +++ b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendIssuer.java @@ -308,13 +308,20 @@ public SecretBackendIssuer(String name, SecretBackendIssuerArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendIssuer(String name, SecretBackendIssuerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:pkiSecret/secretBackendIssuer:SecretBackendIssuer", name, args == null ? SecretBackendIssuerArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:pkiSecret/secretBackendIssuer:SecretBackendIssuer", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendIssuer(String name, Output id, @Nullable SecretBackendIssuerState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:pkiSecret/secretBackendIssuer:SecretBackendIssuer", name, state, makeResourceOptions(options, id)); } + private static SecretBackendIssuerArgs makeArgs(SecretBackendIssuerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendIssuerArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendKey.java b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendKey.java index 3f302de3f..99c17235b 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendKey.java +++ b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendKey.java @@ -197,13 +197,20 @@ public SecretBackendKey(String name, SecretBackendKeyArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendKey(String name, SecretBackendKeyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:pkiSecret/secretBackendKey:SecretBackendKey", name, args == null ? SecretBackendKeyArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:pkiSecret/secretBackendKey:SecretBackendKey", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendKey(String name, Output id, @Nullable SecretBackendKeyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:pkiSecret/secretBackendKey:SecretBackendKey", name, state, makeResourceOptions(options, id)); } + private static SecretBackendKeyArgs makeArgs(SecretBackendKeyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendKeyArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendRole.java b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendRole.java index f89ee0a7e..44209a8e6 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendRole.java @@ -770,13 +770,20 @@ public SecretBackendRole(String name, SecretBackendRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendRole(String name, SecretBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:pkiSecret/secretBackendRole:SecretBackendRole", name, args == null ? SecretBackendRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:pkiSecret/secretBackendRole:SecretBackendRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendRole(String name, Output id, @Nullable SecretBackendRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:pkiSecret/secretBackendRole:SecretBackendRole", name, state, makeResourceOptions(options, id)); } + private static SecretBackendRoleArgs makeArgs(SecretBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendRootCert.java b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendRootCert.java index 0ab071b11..36a760fa3 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendRootCert.java +++ b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendRootCert.java @@ -572,13 +572,20 @@ public SecretBackendRootCert(String name, SecretBackendRootCertArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendRootCert(String name, SecretBackendRootCertArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:pkiSecret/secretBackendRootCert:SecretBackendRootCert", name, args == null ? SecretBackendRootCertArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:pkiSecret/secretBackendRootCert:SecretBackendRootCert", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendRootCert(String name, Output id, @Nullable SecretBackendRootCertState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:pkiSecret/secretBackendRootCert:SecretBackendRootCert", name, state, makeResourceOptions(options, id)); } + private static SecretBackendRootCertArgs makeArgs(SecretBackendRootCertArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendRootCertArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendRootSignIntermediate.java b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendRootSignIntermediate.java index 5cf7bb9c4..ea5cf3a60 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendRootSignIntermediate.java +++ b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendRootSignIntermediate.java @@ -495,13 +495,20 @@ public SecretBackendRootSignIntermediate(String name, SecretBackendRootSignInter * @param options A bag of options that control this resource's behavior. */ public SecretBackendRootSignIntermediate(String name, SecretBackendRootSignIntermediateArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:pkiSecret/secretBackendRootSignIntermediate:SecretBackendRootSignIntermediate", name, args == null ? SecretBackendRootSignIntermediateArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:pkiSecret/secretBackendRootSignIntermediate:SecretBackendRootSignIntermediate", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendRootSignIntermediate(String name, Output id, @Nullable SecretBackendRootSignIntermediateState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:pkiSecret/secretBackendRootSignIntermediate:SecretBackendRootSignIntermediate", name, state, makeResourceOptions(options, id)); } + private static SecretBackendRootSignIntermediateArgs makeArgs(SecretBackendRootSignIntermediateArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendRootSignIntermediateArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendSign.java b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendSign.java index c916731be..b911b02e3 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendSign.java +++ b/sdk/java/src/main/java/com/pulumi/vault/pkiSecret/SecretBackendSign.java @@ -419,13 +419,20 @@ public SecretBackendSign(String name, SecretBackendSignArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendSign(String name, SecretBackendSignArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:pkiSecret/secretBackendSign:SecretBackendSign", name, args == null ? SecretBackendSignArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:pkiSecret/secretBackendSign:SecretBackendSign", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendSign(String name, Output id, @Nullable SecretBackendSignState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:pkiSecret/secretBackendSign:SecretBackendSign", name, state, makeResourceOptions(options, id)); } + private static SecretBackendSignArgs makeArgs(SecretBackendSignArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendSignArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/rabbitMq/SecretBackend.java b/sdk/java/src/main/java/com/pulumi/vault/rabbitMq/SecretBackend.java index 9d9e80bf6..7f7affe06 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/rabbitMq/SecretBackend.java +++ b/sdk/java/src/main/java/com/pulumi/vault/rabbitMq/SecretBackend.java @@ -273,13 +273,20 @@ public SecretBackend(String name, SecretBackendArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackend(String name, SecretBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:rabbitMq/secretBackend:SecretBackend", name, args == null ? SecretBackendArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:rabbitMq/secretBackend:SecretBackend", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackend(String name, Output id, @Nullable SecretBackendState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:rabbitMq/secretBackend:SecretBackend", name, state, makeResourceOptions(options, id)); } + private static SecretBackendArgs makeArgs(SecretBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/rabbitMq/SecretBackendRole.java b/sdk/java/src/main/java/com/pulumi/vault/rabbitMq/SecretBackendRole.java index 5dbbe6f6c..5f006c3ba 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/rabbitMq/SecretBackendRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/rabbitMq/SecretBackendRole.java @@ -207,13 +207,20 @@ public SecretBackendRole(String name, SecretBackendRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendRole(String name, SecretBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:rabbitMq/secretBackendRole:SecretBackendRole", name, args == null ? SecretBackendRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:rabbitMq/secretBackendRole:SecretBackendRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendRole(String name, Output id, @Nullable SecretBackendRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:rabbitMq/secretBackendRole:SecretBackendRole", name, state, makeResourceOptions(options, id)); } + private static SecretBackendRoleArgs makeArgs(SecretBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/saml/AuthBackend.java b/sdk/java/src/main/java/com/pulumi/vault/saml/AuthBackend.java index 15e0e0f89..7a0f93827 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/saml/AuthBackend.java +++ b/sdk/java/src/main/java/com/pulumi/vault/saml/AuthBackend.java @@ -270,13 +270,20 @@ public AuthBackend(String name, AuthBackendArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackend(String name, AuthBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:saml/authBackend:AuthBackend", name, args == null ? AuthBackendArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:saml/authBackend:AuthBackend", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackend(String name, Output id, @Nullable AuthBackendState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:saml/authBackend:AuthBackend", name, state, makeResourceOptions(options, id)); } + private static AuthBackendArgs makeArgs(AuthBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/saml/AuthBackendRole.java b/sdk/java/src/main/java/com/pulumi/vault/saml/AuthBackendRole.java index f6b1dc325..e07605db8 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/saml/AuthBackendRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/saml/AuthBackendRole.java @@ -359,13 +359,20 @@ public AuthBackendRole(String name, AuthBackendRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackendRole(String name, AuthBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:saml/authBackendRole:AuthBackendRole", name, args == null ? AuthBackendRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:saml/authBackendRole:AuthBackendRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendRole(String name, Output id, @Nullable AuthBackendRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:saml/authBackendRole:AuthBackendRole", name, state, makeResourceOptions(options, id)); } + private static AuthBackendRoleArgs makeArgs(AuthBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncAssociation.java b/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncAssociation.java index a4e14765a..2bb792eb5 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncAssociation.java +++ b/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncAssociation.java @@ -201,13 +201,20 @@ public SyncAssociation(String name, SyncAssociationArgs args) { * @param options A bag of options that control this resource's behavior. */ public SyncAssociation(String name, SyncAssociationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:secrets/syncAssociation:SyncAssociation", name, args == null ? SyncAssociationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:secrets/syncAssociation:SyncAssociation", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SyncAssociation(String name, Output id, @Nullable SyncAssociationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:secrets/syncAssociation:SyncAssociation", name, state, makeResourceOptions(options, id)); } + private static SyncAssociationArgs makeArgs(SyncAssociationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SyncAssociationArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncAwsDestination.java b/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncAwsDestination.java index 06706a861..7e9819e06 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncAwsDestination.java +++ b/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncAwsDestination.java @@ -284,13 +284,20 @@ public SyncAwsDestination(String name, @Nullable SyncAwsDestinationArgs args) { * @param options A bag of options that control this resource's behavior. */ public SyncAwsDestination(String name, @Nullable SyncAwsDestinationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:secrets/syncAwsDestination:SyncAwsDestination", name, args == null ? SyncAwsDestinationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:secrets/syncAwsDestination:SyncAwsDestination", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SyncAwsDestination(String name, Output id, @Nullable SyncAwsDestinationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:secrets/syncAwsDestination:SyncAwsDestination", name, state, makeResourceOptions(options, id)); } + private static SyncAwsDestinationArgs makeArgs(@Nullable SyncAwsDestinationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SyncAwsDestinationArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncAzureDestination.java b/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncAzureDestination.java index 740096d66..3c5f2c932 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncAzureDestination.java +++ b/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncAzureDestination.java @@ -271,13 +271,20 @@ public SyncAzureDestination(String name, @Nullable SyncAzureDestinationArgs args * @param options A bag of options that control this resource's behavior. */ public SyncAzureDestination(String name, @Nullable SyncAzureDestinationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:secrets/syncAzureDestination:SyncAzureDestination", name, args == null ? SyncAzureDestinationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:secrets/syncAzureDestination:SyncAzureDestination", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SyncAzureDestination(String name, Output id, @Nullable SyncAzureDestinationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:secrets/syncAzureDestination:SyncAzureDestination", name, state, makeResourceOptions(options, id)); } + private static SyncAzureDestinationArgs makeArgs(@Nullable SyncAzureDestinationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SyncAzureDestinationArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncConfig.java b/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncConfig.java index 150dc08c0..f1b6f3c53 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncConfig.java +++ b/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncConfig.java @@ -138,13 +138,20 @@ public SyncConfig(String name, @Nullable SyncConfigArgs args) { * @param options A bag of options that control this resource's behavior. */ public SyncConfig(String name, @Nullable SyncConfigArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:secrets/syncConfig:SyncConfig", name, args == null ? SyncConfigArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:secrets/syncConfig:SyncConfig", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SyncConfig(String name, Output id, @Nullable SyncConfigState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:secrets/syncConfig:SyncConfig", name, state, makeResourceOptions(options, id)); } + private static SyncConfigArgs makeArgs(@Nullable SyncConfigArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SyncConfigArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncGcpDestination.java b/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncGcpDestination.java index bd9588628..27c3e9854 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncGcpDestination.java +++ b/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncGcpDestination.java @@ -223,13 +223,20 @@ public SyncGcpDestination(String name, @Nullable SyncGcpDestinationArgs args) { * @param options A bag of options that control this resource's behavior. */ public SyncGcpDestination(String name, @Nullable SyncGcpDestinationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:secrets/syncGcpDestination:SyncGcpDestination", name, args == null ? SyncGcpDestinationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:secrets/syncGcpDestination:SyncGcpDestination", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SyncGcpDestination(String name, Output id, @Nullable SyncGcpDestinationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:secrets/syncGcpDestination:SyncGcpDestination", name, state, makeResourceOptions(options, id)); } + private static SyncGcpDestinationArgs makeArgs(@Nullable SyncGcpDestinationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SyncGcpDestinationArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncGhDestination.java b/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncGhDestination.java index 8e2084915..7f16c671c 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncGhDestination.java +++ b/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncGhDestination.java @@ -256,13 +256,20 @@ public SyncGhDestination(String name, @Nullable SyncGhDestinationArgs args) { * @param options A bag of options that control this resource's behavior. */ public SyncGhDestination(String name, @Nullable SyncGhDestinationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:secrets/syncGhDestination:SyncGhDestination", name, args == null ? SyncGhDestinationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:secrets/syncGhDestination:SyncGhDestination", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SyncGhDestination(String name, Output id, @Nullable SyncGhDestinationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:secrets/syncGhDestination:SyncGhDestination", name, state, makeResourceOptions(options, id)); } + private static SyncGhDestinationArgs makeArgs(@Nullable SyncGhDestinationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SyncGhDestinationArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncGithubApps.java b/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncGithubApps.java index 5dd8a96d3..114b8101d 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncGithubApps.java +++ b/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncGithubApps.java @@ -164,13 +164,20 @@ public SyncGithubApps(String name, SyncGithubAppsArgs args) { * @param options A bag of options that control this resource's behavior. */ public SyncGithubApps(String name, SyncGithubAppsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:secrets/syncGithubApps:SyncGithubApps", name, args == null ? SyncGithubAppsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:secrets/syncGithubApps:SyncGithubApps", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SyncGithubApps(String name, Output id, @Nullable SyncGithubAppsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:secrets/syncGithubApps:SyncGithubApps", name, state, makeResourceOptions(options, id)); } + private static SyncGithubAppsArgs makeArgs(SyncGithubAppsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SyncGithubAppsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncVercelDestination.java b/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncVercelDestination.java index c53034bac..28577e8e6 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncVercelDestination.java +++ b/sdk/java/src/main/java/com/pulumi/vault/secrets/SyncVercelDestination.java @@ -230,13 +230,20 @@ public SyncVercelDestination(String name, SyncVercelDestinationArgs args) { * @param options A bag of options that control this resource's behavior. */ public SyncVercelDestination(String name, SyncVercelDestinationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:secrets/syncVercelDestination:SyncVercelDestination", name, args == null ? SyncVercelDestinationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:secrets/syncVercelDestination:SyncVercelDestination", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SyncVercelDestination(String name, Output id, @Nullable SyncVercelDestinationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:secrets/syncVercelDestination:SyncVercelDestination", name, state, makeResourceOptions(options, id)); } + private static SyncVercelDestinationArgs makeArgs(SyncVercelDestinationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SyncVercelDestinationArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/ssh/SecretBackendCa.java b/sdk/java/src/main/java/com/pulumi/vault/ssh/SecretBackendCa.java index 7bf8896bf..44cf2eddf 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/ssh/SecretBackendCa.java +++ b/sdk/java/src/main/java/com/pulumi/vault/ssh/SecretBackendCa.java @@ -200,13 +200,20 @@ public SecretBackendCa(String name, @Nullable SecretBackendCaArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendCa(String name, @Nullable SecretBackendCaArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:ssh/secretBackendCa:SecretBackendCa", name, args == null ? SecretBackendCaArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:ssh/secretBackendCa:SecretBackendCa", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendCa(String name, Output id, @Nullable SecretBackendCaState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:ssh/secretBackendCa:SecretBackendCa", name, state, makeResourceOptions(options, id)); } + private static SecretBackendCaArgs makeArgs(@Nullable SecretBackendCaArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendCaArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/ssh/SecretBackendRole.java b/sdk/java/src/main/java/com/pulumi/vault/ssh/SecretBackendRole.java index 9e62eaebe..b843304ca 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/ssh/SecretBackendRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/ssh/SecretBackendRole.java @@ -486,13 +486,20 @@ public SecretBackendRole(String name, SecretBackendRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendRole(String name, SecretBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:ssh/secretBackendRole:SecretBackendRole", name, args == null ? SecretBackendRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:ssh/secretBackendRole:SecretBackendRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendRole(String name, Output id, @Nullable SecretBackendRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:ssh/secretBackendRole:SecretBackendRole", name, state, makeResourceOptions(options, id)); } + private static SecretBackendRoleArgs makeArgs(SecretBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/terraformcloud/SecretBackend.java b/sdk/java/src/main/java/com/pulumi/vault/terraformcloud/SecretBackend.java index 9a1db3276..07d7cd469 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/terraformcloud/SecretBackend.java +++ b/sdk/java/src/main/java/com/pulumi/vault/terraformcloud/SecretBackend.java @@ -193,13 +193,20 @@ public SecretBackend(String name, @Nullable SecretBackendArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackend(String name, @Nullable SecretBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:terraformcloud/secretBackend:SecretBackend", name, args == null ? SecretBackendArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:terraformcloud/secretBackend:SecretBackend", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackend(String name, Output id, @Nullable SecretBackendState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:terraformcloud/secretBackend:SecretBackend", name, state, makeResourceOptions(options, id)); } + private static SecretBackendArgs makeArgs(@Nullable SecretBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/terraformcloud/SecretCreds.java b/sdk/java/src/main/java/com/pulumi/vault/terraformcloud/SecretCreds.java index d54a561b3..fa3829841 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/terraformcloud/SecretCreds.java +++ b/sdk/java/src/main/java/com/pulumi/vault/terraformcloud/SecretCreds.java @@ -211,13 +211,20 @@ public SecretCreds(String name, SecretCredsArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretCreds(String name, SecretCredsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:terraformcloud/secretCreds:SecretCreds", name, args == null ? SecretCredsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:terraformcloud/secretCreds:SecretCreds", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretCreds(String name, Output id, @Nullable SecretCredsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:terraformcloud/secretCreds:SecretCreds", name, state, makeResourceOptions(options, id)); } + private static SecretCredsArgs makeArgs(SecretCredsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretCredsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/terraformcloud/SecretRole.java b/sdk/java/src/main/java/com/pulumi/vault/terraformcloud/SecretRole.java index 6c2942def..67903c02c 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/terraformcloud/SecretRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/terraformcloud/SecretRole.java @@ -174,13 +174,20 @@ public SecretRole(String name, @Nullable SecretRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretRole(String name, @Nullable SecretRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:terraformcloud/secretRole:SecretRole", name, args == null ? SecretRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:terraformcloud/secretRole:SecretRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretRole(String name, Output id, @Nullable SecretRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:terraformcloud/secretRole:SecretRole", name, state, makeResourceOptions(options, id)); } + private static SecretRoleArgs makeArgs(@Nullable SecretRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/tokenauth/AuthBackendRole.java b/sdk/java/src/main/java/com/pulumi/vault/tokenauth/AuthBackendRole.java index c2a57385f..842bf634f 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/tokenauth/AuthBackendRole.java +++ b/sdk/java/src/main/java/com/pulumi/vault/tokenauth/AuthBackendRole.java @@ -377,13 +377,20 @@ public AuthBackendRole(String name, AuthBackendRoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public AuthBackendRole(String name, AuthBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:tokenauth/authBackendRole:AuthBackendRole", name, args == null ? AuthBackendRoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:tokenauth/authBackendRole:AuthBackendRole", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AuthBackendRole(String name, Output id, @Nullable AuthBackendRoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:tokenauth/authBackendRole:AuthBackendRole", name, state, makeResourceOptions(options, id)); } + private static AuthBackendRoleArgs makeArgs(AuthBackendRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthBackendRoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/transform/Alphabet.java b/sdk/java/src/main/java/com/pulumi/vault/transform/Alphabet.java index 05c525e85..2a98d9358 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/transform/Alphabet.java +++ b/sdk/java/src/main/java/com/pulumi/vault/transform/Alphabet.java @@ -151,13 +151,20 @@ public Alphabet(String name, AlphabetArgs args) { * @param options A bag of options that control this resource's behavior. */ public Alphabet(String name, AlphabetArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:transform/alphabet:Alphabet", name, args == null ? AlphabetArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:transform/alphabet:Alphabet", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Alphabet(String name, Output id, @Nullable AlphabetState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:transform/alphabet:Alphabet", name, state, makeResourceOptions(options, id)); } + private static AlphabetArgs makeArgs(AlphabetArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AlphabetArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/transform/Role.java b/sdk/java/src/main/java/com/pulumi/vault/transform/Role.java index 133ed2054..a216af420 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/transform/Role.java +++ b/sdk/java/src/main/java/com/pulumi/vault/transform/Role.java @@ -153,13 +153,20 @@ public Role(String name, RoleArgs args) { * @param options A bag of options that control this resource's behavior. */ public Role(String name, RoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:transform/role:Role", name, args == null ? RoleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:transform/role:Role", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Role(String name, Output id, @Nullable RoleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:transform/role:Role", name, state, makeResourceOptions(options, id)); } + private static RoleArgs makeArgs(RoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? RoleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/transform/Template.java b/sdk/java/src/main/java/com/pulumi/vault/transform/Template.java index a5682f9e1..e149a3051 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/transform/Template.java +++ b/sdk/java/src/main/java/com/pulumi/vault/transform/Template.java @@ -236,13 +236,20 @@ public Template(String name, TemplateArgs args) { * @param options A bag of options that control this resource's behavior. */ public Template(String name, TemplateArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:transform/template:Template", name, args == null ? TemplateArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:transform/template:Template", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Template(String name, Output id, @Nullable TemplateState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:transform/template:Template", name, state, makeResourceOptions(options, id)); } + private static TemplateArgs makeArgs(TemplateArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? TemplateArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/transform/Transformation.java b/sdk/java/src/main/java/com/pulumi/vault/transform/Transformation.java index fd2745224..a18d68f4a 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/transform/Transformation.java +++ b/sdk/java/src/main/java/com/pulumi/vault/transform/Transformation.java @@ -191,13 +191,20 @@ public Transformation(String name, TransformationArgs args) { * @param options A bag of options that control this resource's behavior. */ public Transformation(String name, TransformationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:transform/transformation:Transformation", name, args == null ? TransformationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:transform/transformation:Transformation", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Transformation(String name, Output id, @Nullable TransformationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:transform/transformation:Transformation", name, state, makeResourceOptions(options, id)); } + private static TransformationArgs makeArgs(TransformationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? TransformationArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/transit/SecretBackendKey.java b/sdk/java/src/main/java/com/pulumi/vault/transit/SecretBackendKey.java index ffd755e43..864d62bbb 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/transit/SecretBackendKey.java +++ b/sdk/java/src/main/java/com/pulumi/vault/transit/SecretBackendKey.java @@ -398,13 +398,20 @@ public SecretBackendKey(String name, SecretBackendKeyArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretBackendKey(String name, SecretBackendKeyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:transit/secretBackendKey:SecretBackendKey", name, args == null ? SecretBackendKeyArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:transit/secretBackendKey:SecretBackendKey", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretBackendKey(String name, Output id, @Nullable SecretBackendKeyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:transit/secretBackendKey:SecretBackendKey", name, state, makeResourceOptions(options, id)); } + private static SecretBackendKeyArgs makeArgs(SecretBackendKeyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretBackendKeyArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/vault/transit/SecretCacheConfig.java b/sdk/java/src/main/java/com/pulumi/vault/transit/SecretCacheConfig.java index 0cbeb02cb..8348329fa 100644 --- a/sdk/java/src/main/java/com/pulumi/vault/transit/SecretCacheConfig.java +++ b/sdk/java/src/main/java/com/pulumi/vault/transit/SecretCacheConfig.java @@ -138,13 +138,20 @@ public SecretCacheConfig(String name, SecretCacheConfigArgs args) { * @param options A bag of options that control this resource's behavior. */ public SecretCacheConfig(String name, SecretCacheConfigArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("vault:transit/secretCacheConfig:SecretCacheConfig", name, args == null ? SecretCacheConfigArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("vault:transit/secretCacheConfig:SecretCacheConfig", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SecretCacheConfig(String name, Output id, @Nullable SecretCacheConfigState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("vault:transit/secretCacheConfig:SecretCacheConfig", name, state, makeResourceOptions(options, id)); } + private static SecretCacheConfigArgs makeArgs(SecretCacheConfigArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SecretCacheConfigArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/nodejs/aws/secretBackendRole.ts b/sdk/nodejs/aws/secretBackendRole.ts index 0b01695f6..177ff7ffb 100644 --- a/sdk/nodejs/aws/secretBackendRole.ts +++ b/sdk/nodejs/aws/secretBackendRole.ts @@ -88,6 +88,11 @@ export class SecretBackendRole extends pulumi.CustomResource { * `assumedRole` or `federationToken`. */ public readonly defaultStsTtl!: pulumi.Output; + /** + * External ID to set for assume role creds. + * Valid only when `credentialType` is set to `assumedRole`. + */ + public readonly externalId!: pulumi.Output; /** * A list of IAM group names. IAM users generated * against this vault role will be added to these IAM Groups. For a credential @@ -151,6 +156,12 @@ export class SecretBackendRole extends pulumi.CustomResource { * prohibited otherwise. */ public readonly roleArns!: pulumi.Output; + /** + * A map of strings representing key/value pairs to be set + * during assume role creds creation. Valid only when `credentialType` is set to + * `assumedRole`. + */ + public readonly sessionTags!: pulumi.Output<{[key: string]: string} | undefined>; /** * The path for the user name. Valid only when * `credentialType` is `iamUser`. Default is `/`. @@ -173,6 +184,7 @@ export class SecretBackendRole extends pulumi.CustomResource { resourceInputs["backend"] = state ? state.backend : undefined; resourceInputs["credentialType"] = state ? state.credentialType : undefined; resourceInputs["defaultStsTtl"] = state ? state.defaultStsTtl : undefined; + resourceInputs["externalId"] = state ? state.externalId : undefined; resourceInputs["iamGroups"] = state ? state.iamGroups : undefined; resourceInputs["iamTags"] = state ? state.iamTags : undefined; resourceInputs["maxStsTtl"] = state ? state.maxStsTtl : undefined; @@ -182,6 +194,7 @@ export class SecretBackendRole extends pulumi.CustomResource { resourceInputs["policyArns"] = state ? state.policyArns : undefined; resourceInputs["policyDocument"] = state ? state.policyDocument : undefined; resourceInputs["roleArns"] = state ? state.roleArns : undefined; + resourceInputs["sessionTags"] = state ? state.sessionTags : undefined; resourceInputs["userPath"] = state ? state.userPath : undefined; } else { const args = argsOrState as SecretBackendRoleArgs | undefined; @@ -194,6 +207,7 @@ export class SecretBackendRole extends pulumi.CustomResource { resourceInputs["backend"] = args ? args.backend : undefined; resourceInputs["credentialType"] = args ? args.credentialType : undefined; resourceInputs["defaultStsTtl"] = args ? args.defaultStsTtl : undefined; + resourceInputs["externalId"] = args ? args.externalId : undefined; resourceInputs["iamGroups"] = args ? args.iamGroups : undefined; resourceInputs["iamTags"] = args ? args.iamTags : undefined; resourceInputs["maxStsTtl"] = args ? args.maxStsTtl : undefined; @@ -203,6 +217,7 @@ export class SecretBackendRole extends pulumi.CustomResource { resourceInputs["policyArns"] = args ? args.policyArns : undefined; resourceInputs["policyDocument"] = args ? args.policyDocument : undefined; resourceInputs["roleArns"] = args ? args.roleArns : undefined; + resourceInputs["sessionTags"] = args ? args.sessionTags : undefined; resourceInputs["userPath"] = args ? args.userPath : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); @@ -233,6 +248,11 @@ export interface SecretBackendRoleState { * `assumedRole` or `federationToken`. */ defaultStsTtl?: pulumi.Input; + /** + * External ID to set for assume role creds. + * Valid only when `credentialType` is set to `assumedRole`. + */ + externalId?: pulumi.Input; /** * A list of IAM group names. IAM users generated * against this vault role will be added to these IAM Groups. For a credential @@ -296,6 +316,12 @@ export interface SecretBackendRoleState { * prohibited otherwise. */ roleArns?: pulumi.Input[]>; + /** + * A map of strings representing key/value pairs to be set + * during assume role creds creation. Valid only when `credentialType` is set to + * `assumedRole`. + */ + sessionTags?: pulumi.Input<{[key: string]: pulumi.Input}>; /** * The path for the user name. Valid only when * `credentialType` is `iamUser`. Default is `/`. @@ -326,6 +352,11 @@ export interface SecretBackendRoleArgs { * `assumedRole` or `federationToken`. */ defaultStsTtl?: pulumi.Input; + /** + * External ID to set for assume role creds. + * Valid only when `credentialType` is set to `assumedRole`. + */ + externalId?: pulumi.Input; /** * A list of IAM group names. IAM users generated * against this vault role will be added to these IAM Groups. For a credential @@ -389,6 +420,12 @@ export interface SecretBackendRoleArgs { * prohibited otherwise. */ roleArns?: pulumi.Input[]>; + /** + * A map of strings representing key/value pairs to be set + * during assume role creds creation. Valid only when `credentialType` is set to + * `assumedRole`. + */ + sessionTags?: pulumi.Input<{[key: string]: pulumi.Input}>; /** * The path for the user name. Valid only when * `credentialType` is `iamUser`. Default is `/`. diff --git a/sdk/nodejs/identity/getEntity.ts b/sdk/nodejs/identity/getEntity.ts index 6269e6ccf..7f7a8dc90 100644 --- a/sdk/nodejs/identity/getEntity.ts +++ b/sdk/nodejs/identity/getEntity.ts @@ -20,7 +20,7 @@ import * as utilities from "../utilities"; * * ## Required Vault Capabilities * - * Use of this resource requires the `create` capability on `/identity/lookup/entity`. + * Use of this resource requires the `update` capability on `/identity/lookup/entity`. */ export function getEntity(args?: GetEntityArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -152,7 +152,7 @@ export interface GetEntityResult { * * ## Required Vault Capabilities * - * Use of this resource requires the `create` capability on `/identity/lookup/entity`. + * Use of this resource requires the `update` capability on `/identity/lookup/entity`. */ export function getEntityOutput(args?: GetEntityOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getEntity(a, opts)) diff --git a/sdk/nodejs/mount.ts b/sdk/nodejs/mount.ts index b2983c5be..3bb869665 100644 --- a/sdk/nodejs/mount.ts +++ b/sdk/nodejs/mount.ts @@ -142,7 +142,8 @@ export class Mount extends pulumi.CustomResource { */ public readonly identityTokenKey!: pulumi.Output; /** - * Specifies whether to show this mount in the UI-specific listing endpoint + * Specifies whether to show this mount in the UI-specific + * listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. */ public readonly listingVisibility!: pulumi.Output; /** @@ -303,7 +304,8 @@ export interface MountState { */ identityTokenKey?: pulumi.Input; /** - * Specifies whether to show this mount in the UI-specific listing endpoint + * Specifies whether to show this mount in the UI-specific + * listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. */ listingVisibility?: pulumi.Input; /** @@ -394,7 +396,8 @@ export interface MountArgs { */ identityTokenKey?: pulumi.Input; /** - * Specifies whether to show this mount in the UI-specific listing endpoint + * Specifies whether to show this mount in the UI-specific + * listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. */ listingVisibility?: pulumi.Input; /** diff --git a/sdk/python/pulumi_vault/aws/secret_backend_role.py b/sdk/python/pulumi_vault/aws/secret_backend_role.py index 6699e863c..1be948123 100644 --- a/sdk/python/pulumi_vault/aws/secret_backend_role.py +++ b/sdk/python/pulumi_vault/aws/secret_backend_role.py @@ -17,6 +17,7 @@ def __init__(__self__, *, backend: pulumi.Input[str], credential_type: pulumi.Input[str], default_sts_ttl: Optional[pulumi.Input[int]] = None, + external_id: Optional[pulumi.Input[str]] = None, iam_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, iam_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, max_sts_ttl: Optional[pulumi.Input[int]] = None, @@ -26,6 +27,7 @@ def __init__(__self__, *, policy_arns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, policy_document: Optional[pulumi.Input[str]] = None, role_arns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + session_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, user_path: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a SecretBackendRole resource. @@ -39,6 +41,8 @@ def __init__(__self__, *, and a default TTL is specified on the role, then this default TTL will be used. Valid only when `credential_type` is one of `assumed_role` or `federation_token`. + :param pulumi.Input[str] external_id: External ID to set for assume role creds. + Valid only when `credential_type` is set to `assumed_role`. :param pulumi.Input[Sequence[pulumi.Input[str]]] iam_groups: A list of IAM group names. IAM users generated against this vault role will be added to these IAM Groups. For a credential type of `assumed_role` or `federation_token`, the policies sent to the @@ -75,6 +79,9 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] role_arns: Specifies the ARNs of the AWS roles this Vault role is allowed to assume. Required when `credential_type` is `assumed_role` and prohibited otherwise. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] session_tags: A map of strings representing key/value pairs to be set + during assume role creds creation. Valid only when `credential_type` is set to + `assumed_role`. :param pulumi.Input[str] user_path: The path for the user name. Valid only when `credential_type` is `iam_user`. Default is `/`. """ @@ -82,6 +89,8 @@ def __init__(__self__, *, pulumi.set(__self__, "credential_type", credential_type) if default_sts_ttl is not None: pulumi.set(__self__, "default_sts_ttl", default_sts_ttl) + if external_id is not None: + pulumi.set(__self__, "external_id", external_id) if iam_groups is not None: pulumi.set(__self__, "iam_groups", iam_groups) if iam_tags is not None: @@ -100,6 +109,8 @@ def __init__(__self__, *, pulumi.set(__self__, "policy_document", policy_document) if role_arns is not None: pulumi.set(__self__, "role_arns", role_arns) + if session_tags is not None: + pulumi.set(__self__, "session_tags", session_tags) if user_path is not None: pulumi.set(__self__, "user_path", user_path) @@ -146,6 +157,19 @@ def default_sts_ttl(self) -> Optional[pulumi.Input[int]]: def default_sts_ttl(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "default_sts_ttl", value) + @property + @pulumi.getter(name="externalId") + def external_id(self) -> Optional[pulumi.Input[str]]: + """ + External ID to set for assume role creds. + Valid only when `credential_type` is set to `assumed_role`. + """ + return pulumi.get(self, "external_id") + + @external_id.setter + def external_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "external_id", value) + @property @pulumi.getter(name="iamGroups") def iam_groups(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: @@ -281,6 +305,20 @@ def role_arns(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: def role_arns(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "role_arns", value) + @property + @pulumi.getter(name="sessionTags") + def session_tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + A map of strings representing key/value pairs to be set + during assume role creds creation. Valid only when `credential_type` is set to + `assumed_role`. + """ + return pulumi.get(self, "session_tags") + + @session_tags.setter + def session_tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "session_tags", value) + @property @pulumi.getter(name="userPath") def user_path(self) -> Optional[pulumi.Input[str]]: @@ -301,6 +339,7 @@ def __init__(__self__, *, backend: Optional[pulumi.Input[str]] = None, credential_type: Optional[pulumi.Input[str]] = None, default_sts_ttl: Optional[pulumi.Input[int]] = None, + external_id: Optional[pulumi.Input[str]] = None, iam_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, iam_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, max_sts_ttl: Optional[pulumi.Input[int]] = None, @@ -310,6 +349,7 @@ def __init__(__self__, *, policy_arns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, policy_document: Optional[pulumi.Input[str]] = None, role_arns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + session_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, user_path: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering SecretBackendRole resources. @@ -323,6 +363,8 @@ def __init__(__self__, *, and a default TTL is specified on the role, then this default TTL will be used. Valid only when `credential_type` is one of `assumed_role` or `federation_token`. + :param pulumi.Input[str] external_id: External ID to set for assume role creds. + Valid only when `credential_type` is set to `assumed_role`. :param pulumi.Input[Sequence[pulumi.Input[str]]] iam_groups: A list of IAM group names. IAM users generated against this vault role will be added to these IAM Groups. For a credential type of `assumed_role` or `federation_token`, the policies sent to the @@ -359,6 +401,9 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] role_arns: Specifies the ARNs of the AWS roles this Vault role is allowed to assume. Required when `credential_type` is `assumed_role` and prohibited otherwise. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] session_tags: A map of strings representing key/value pairs to be set + during assume role creds creation. Valid only when `credential_type` is set to + `assumed_role`. :param pulumi.Input[str] user_path: The path for the user name. Valid only when `credential_type` is `iam_user`. Default is `/`. """ @@ -368,6 +413,8 @@ def __init__(__self__, *, pulumi.set(__self__, "credential_type", credential_type) if default_sts_ttl is not None: pulumi.set(__self__, "default_sts_ttl", default_sts_ttl) + if external_id is not None: + pulumi.set(__self__, "external_id", external_id) if iam_groups is not None: pulumi.set(__self__, "iam_groups", iam_groups) if iam_tags is not None: @@ -386,6 +433,8 @@ def __init__(__self__, *, pulumi.set(__self__, "policy_document", policy_document) if role_arns is not None: pulumi.set(__self__, "role_arns", role_arns) + if session_tags is not None: + pulumi.set(__self__, "session_tags", session_tags) if user_path is not None: pulumi.set(__self__, "user_path", user_path) @@ -432,6 +481,19 @@ def default_sts_ttl(self) -> Optional[pulumi.Input[int]]: def default_sts_ttl(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "default_sts_ttl", value) + @property + @pulumi.getter(name="externalId") + def external_id(self) -> Optional[pulumi.Input[str]]: + """ + External ID to set for assume role creds. + Valid only when `credential_type` is set to `assumed_role`. + """ + return pulumi.get(self, "external_id") + + @external_id.setter + def external_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "external_id", value) + @property @pulumi.getter(name="iamGroups") def iam_groups(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: @@ -567,6 +629,20 @@ def role_arns(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: def role_arns(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "role_arns", value) + @property + @pulumi.getter(name="sessionTags") + def session_tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + A map of strings representing key/value pairs to be set + during assume role creds creation. Valid only when `credential_type` is set to + `assumed_role`. + """ + return pulumi.get(self, "session_tags") + + @session_tags.setter + def session_tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "session_tags", value) + @property @pulumi.getter(name="userPath") def user_path(self) -> Optional[pulumi.Input[str]]: @@ -589,6 +665,7 @@ def __init__(__self__, backend: Optional[pulumi.Input[str]] = None, credential_type: Optional[pulumi.Input[str]] = None, default_sts_ttl: Optional[pulumi.Input[int]] = None, + external_id: Optional[pulumi.Input[str]] = None, iam_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, iam_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, max_sts_ttl: Optional[pulumi.Input[int]] = None, @@ -598,6 +675,7 @@ def __init__(__self__, policy_arns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, policy_document: Optional[pulumi.Input[str]] = None, role_arns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + session_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, user_path: Optional[pulumi.Input[str]] = None, __props__=None): """ @@ -647,6 +725,8 @@ def __init__(__self__, and a default TTL is specified on the role, then this default TTL will be used. Valid only when `credential_type` is one of `assumed_role` or `federation_token`. + :param pulumi.Input[str] external_id: External ID to set for assume role creds. + Valid only when `credential_type` is set to `assumed_role`. :param pulumi.Input[Sequence[pulumi.Input[str]]] iam_groups: A list of IAM group names. IAM users generated against this vault role will be added to these IAM Groups. For a credential type of `assumed_role` or `federation_token`, the policies sent to the @@ -683,6 +763,9 @@ def __init__(__self__, :param pulumi.Input[Sequence[pulumi.Input[str]]] role_arns: Specifies the ARNs of the AWS roles this Vault role is allowed to assume. Required when `credential_type` is `assumed_role` and prohibited otherwise. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] session_tags: A map of strings representing key/value pairs to be set + during assume role creds creation. Valid only when `credential_type` is set to + `assumed_role`. :param pulumi.Input[str] user_path: The path for the user name. Valid only when `credential_type` is `iam_user`. Default is `/`. """ @@ -745,6 +828,7 @@ def _internal_init(__self__, backend: Optional[pulumi.Input[str]] = None, credential_type: Optional[pulumi.Input[str]] = None, default_sts_ttl: Optional[pulumi.Input[int]] = None, + external_id: Optional[pulumi.Input[str]] = None, iam_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, iam_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, max_sts_ttl: Optional[pulumi.Input[int]] = None, @@ -754,6 +838,7 @@ def _internal_init(__self__, policy_arns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, policy_document: Optional[pulumi.Input[str]] = None, role_arns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + session_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, user_path: Optional[pulumi.Input[str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) @@ -771,6 +856,7 @@ def _internal_init(__self__, raise TypeError("Missing required property 'credential_type'") __props__.__dict__["credential_type"] = credential_type __props__.__dict__["default_sts_ttl"] = default_sts_ttl + __props__.__dict__["external_id"] = external_id __props__.__dict__["iam_groups"] = iam_groups __props__.__dict__["iam_tags"] = iam_tags __props__.__dict__["max_sts_ttl"] = max_sts_ttl @@ -780,6 +866,7 @@ def _internal_init(__self__, __props__.__dict__["policy_arns"] = policy_arns __props__.__dict__["policy_document"] = policy_document __props__.__dict__["role_arns"] = role_arns + __props__.__dict__["session_tags"] = session_tags __props__.__dict__["user_path"] = user_path super(SecretBackendRole, __self__).__init__( 'vault:aws/secretBackendRole:SecretBackendRole', @@ -794,6 +881,7 @@ def get(resource_name: str, backend: Optional[pulumi.Input[str]] = None, credential_type: Optional[pulumi.Input[str]] = None, default_sts_ttl: Optional[pulumi.Input[int]] = None, + external_id: Optional[pulumi.Input[str]] = None, iam_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, iam_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, max_sts_ttl: Optional[pulumi.Input[int]] = None, @@ -803,6 +891,7 @@ def get(resource_name: str, policy_arns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, policy_document: Optional[pulumi.Input[str]] = None, role_arns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + session_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, user_path: Optional[pulumi.Input[str]] = None) -> 'SecretBackendRole': """ Get an existing SecretBackendRole resource's state with the given name, id, and optional extra @@ -821,6 +910,8 @@ def get(resource_name: str, and a default TTL is specified on the role, then this default TTL will be used. Valid only when `credential_type` is one of `assumed_role` or `federation_token`. + :param pulumi.Input[str] external_id: External ID to set for assume role creds. + Valid only when `credential_type` is set to `assumed_role`. :param pulumi.Input[Sequence[pulumi.Input[str]]] iam_groups: A list of IAM group names. IAM users generated against this vault role will be added to these IAM Groups. For a credential type of `assumed_role` or `federation_token`, the policies sent to the @@ -857,6 +948,9 @@ def get(resource_name: str, :param pulumi.Input[Sequence[pulumi.Input[str]]] role_arns: Specifies the ARNs of the AWS roles this Vault role is allowed to assume. Required when `credential_type` is `assumed_role` and prohibited otherwise. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] session_tags: A map of strings representing key/value pairs to be set + during assume role creds creation. Valid only when `credential_type` is set to + `assumed_role`. :param pulumi.Input[str] user_path: The path for the user name. Valid only when `credential_type` is `iam_user`. Default is `/`. """ @@ -867,6 +961,7 @@ def get(resource_name: str, __props__.__dict__["backend"] = backend __props__.__dict__["credential_type"] = credential_type __props__.__dict__["default_sts_ttl"] = default_sts_ttl + __props__.__dict__["external_id"] = external_id __props__.__dict__["iam_groups"] = iam_groups __props__.__dict__["iam_tags"] = iam_tags __props__.__dict__["max_sts_ttl"] = max_sts_ttl @@ -876,6 +971,7 @@ def get(resource_name: str, __props__.__dict__["policy_arns"] = policy_arns __props__.__dict__["policy_document"] = policy_document __props__.__dict__["role_arns"] = role_arns + __props__.__dict__["session_tags"] = session_tags __props__.__dict__["user_path"] = user_path return SecretBackendRole(resource_name, opts=opts, __props__=__props__) @@ -910,6 +1006,15 @@ def default_sts_ttl(self) -> pulumi.Output[int]: """ return pulumi.get(self, "default_sts_ttl") + @property + @pulumi.getter(name="externalId") + def external_id(self) -> pulumi.Output[Optional[str]]: + """ + External ID to set for assume role creds. + Valid only when `credential_type` is set to `assumed_role`. + """ + return pulumi.get(self, "external_id") + @property @pulumi.getter(name="iamGroups") def iam_groups(self) -> pulumi.Output[Optional[Sequence[str]]]: @@ -1009,6 +1114,16 @@ def role_arns(self) -> pulumi.Output[Optional[Sequence[str]]]: """ return pulumi.get(self, "role_arns") + @property + @pulumi.getter(name="sessionTags") + def session_tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]: + """ + A map of strings representing key/value pairs to be set + during assume role creds creation. Valid only when `credential_type` is set to + `assumed_role`. + """ + return pulumi.get(self, "session_tags") + @property @pulumi.getter(name="userPath") def user_path(self) -> pulumi.Output[Optional[str]]: diff --git a/sdk/python/pulumi_vault/identity/get_entity.py b/sdk/python/pulumi_vault/identity/get_entity.py index 7ee173581..a9123df95 100644 --- a/sdk/python/pulumi_vault/identity/get_entity.py +++ b/sdk/python/pulumi_vault/identity/get_entity.py @@ -263,7 +263,7 @@ def get_entity(alias_id: Optional[str] = None, ## Required Vault Capabilities - Use of this resource requires the `create` capability on `/identity/lookup/entity`. + Use of this resource requires the `update` capability on `/identity/lookup/entity`. :param str alias_id: ID of the alias. @@ -333,7 +333,7 @@ def get_entity_output(alias_id: Optional[pulumi.Input[Optional[str]]] = None, ## Required Vault Capabilities - Use of this resource requires the `create` capability on `/identity/lookup/entity`. + Use of this resource requires the `update` capability on `/identity/lookup/entity`. :param str alias_id: ID of the alias. diff --git a/sdk/python/pulumi_vault/mount.py b/sdk/python/pulumi_vault/mount.py index edc7bf9c1..961857265 100644 --- a/sdk/python/pulumi_vault/mount.py +++ b/sdk/python/pulumi_vault/mount.py @@ -49,7 +49,8 @@ def __init__(__self__, *, :param pulumi.Input[bool] external_entropy_access: Boolean flag that can be explicitly set to true to enable the secrets engine to access Vault's external entropy source :param pulumi.Input[str] identity_token_key: The key to use for signing plugin workload identity tokens. If not provided, this will default to Vault's OIDC default key. - :param pulumi.Input[str] listing_visibility: Specifies whether to show this mount in the UI-specific listing endpoint + :param pulumi.Input[str] listing_visibility: Specifies whether to show this mount in the UI-specific + listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. :param pulumi.Input[bool] local: Boolean flag that can be explicitly set to true to enforce local mount in HA environment :param pulumi.Input[int] max_lease_ttl_seconds: Maximum possible lease duration for tokens and secrets in seconds :param pulumi.Input[str] namespace: The namespace to provision the resource in. @@ -240,7 +241,8 @@ def identity_token_key(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="listingVisibility") def listing_visibility(self) -> Optional[pulumi.Input[str]]: """ - Specifies whether to show this mount in the UI-specific listing endpoint + Specifies whether to show this mount in the UI-specific + listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. """ return pulumi.get(self, "listing_visibility") @@ -377,7 +379,8 @@ def __init__(__self__, *, :param pulumi.Input[bool] external_entropy_access: Boolean flag that can be explicitly set to true to enable the secrets engine to access Vault's external entropy source :param pulumi.Input[str] identity_token_key: The key to use for signing plugin workload identity tokens. If not provided, this will default to Vault's OIDC default key. - :param pulumi.Input[str] listing_visibility: Specifies whether to show this mount in the UI-specific listing endpoint + :param pulumi.Input[str] listing_visibility: Specifies whether to show this mount in the UI-specific + listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. :param pulumi.Input[bool] local: Boolean flag that can be explicitly set to true to enforce local mount in HA environment :param pulumi.Input[int] max_lease_ttl_seconds: Maximum possible lease duration for tokens and secrets in seconds :param pulumi.Input[str] namespace: The namespace to provision the resource in. @@ -562,7 +565,8 @@ def identity_token_key(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="listingVisibility") def listing_visibility(self) -> Optional[pulumi.Input[str]]: """ - Specifies whether to show this mount in the UI-specific listing endpoint + Specifies whether to show this mount in the UI-specific + listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. """ return pulumi.get(self, "listing_visibility") @@ -786,7 +790,8 @@ def __init__(__self__, :param pulumi.Input[bool] external_entropy_access: Boolean flag that can be explicitly set to true to enable the secrets engine to access Vault's external entropy source :param pulumi.Input[str] identity_token_key: The key to use for signing plugin workload identity tokens. If not provided, this will default to Vault's OIDC default key. - :param pulumi.Input[str] listing_visibility: Specifies whether to show this mount in the UI-specific listing endpoint + :param pulumi.Input[str] listing_visibility: Specifies whether to show this mount in the UI-specific + listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. :param pulumi.Input[bool] local: Boolean flag that can be explicitly set to true to enforce local mount in HA environment :param pulumi.Input[int] max_lease_ttl_seconds: Maximum possible lease duration for tokens and secrets in seconds :param pulumi.Input[str] namespace: The namespace to provision the resource in. @@ -988,7 +993,8 @@ def get(resource_name: str, :param pulumi.Input[bool] external_entropy_access: Boolean flag that can be explicitly set to true to enable the secrets engine to access Vault's external entropy source :param pulumi.Input[str] identity_token_key: The key to use for signing plugin workload identity tokens. If not provided, this will default to Vault's OIDC default key. - :param pulumi.Input[str] listing_visibility: Specifies whether to show this mount in the UI-specific listing endpoint + :param pulumi.Input[str] listing_visibility: Specifies whether to show this mount in the UI-specific + listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. :param pulumi.Input[bool] local: Boolean flag that can be explicitly set to true to enforce local mount in HA environment :param pulumi.Input[int] max_lease_ttl_seconds: Maximum possible lease duration for tokens and secrets in seconds :param pulumi.Input[str] namespace: The namespace to provision the resource in. @@ -1118,7 +1124,8 @@ def identity_token_key(self) -> pulumi.Output[Optional[str]]: @pulumi.getter(name="listingVisibility") def listing_visibility(self) -> pulumi.Output[Optional[str]]: """ - Specifies whether to show this mount in the UI-specific listing endpoint + Specifies whether to show this mount in the UI-specific + listing endpoint. Valid values are `unauth` or `hidden`. If not set, behaves like `hidden`. """ return pulumi.get(self, "listing_visibility") diff --git a/upstream b/upstream index 86ea3221e..32c490c02 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit 86ea3221e51eaa9564d66f2328832758c5915b47 +Subproject commit 32c490c0268310e70e180ce2cd749d9428eb34bd