From 2befa89be89894e3c7045b4643485063b17bbd4c Mon Sep 17 00:00:00 2001 From: Paul Stack Date: Wed, 17 Aug 2022 20:06:02 +0100 Subject: [PATCH] Upgrade to v2.27.0 of the AzureAD Terraform Provider (#296) --- .github/workflows/main.yml | 36 +- .github/workflows/master.yml | 36 +- .github/workflows/nightly-test.yml | 18 +- .github/workflows/prerelease.yml | 34 +- .github/workflows/release.yml | 34 +- .github/workflows/run-acceptance-tests.yml | 34 +- .github/workflows/update-bridge.yml | 6 +- .../workflows/update-upstream-provider.yml | 6 +- .../cmd/pulumi-resource-azuread/schema.json | 554 ++-- provider/go.mod | 134 +- provider/go.sum | 503 ++- provider/shim/go.mod | 2 +- provider/shim/go.sum | 4 +- sdk/dotnet/AdministrativeUnit.cs | 8 +- sdk/dotnet/AdministrativeUnitMember.cs | 42 +- sdk/dotnet/AppRoleAssignment.cs | 278 +- sdk/dotnet/Application.cs | 303 +- sdk/dotnet/ApplicationCertificate.cs | 8 +- .../ApplicationFederatedIdentityCredential.cs | 45 +- sdk/dotnet/ApplicationPassword.cs | 14 +- sdk/dotnet/ApplicationPreAuthorized.cs | 92 +- sdk/dotnet/ClaimsMappingPolicy.cs | 70 +- sdk/dotnet/ConditionalAccessPolicy.cs | 140 +- sdk/dotnet/CustomDirectoryRole.cs | 60 +- sdk/dotnet/DirectoryRole.cs | 36 +- sdk/dotnet/DirectoryRoleAssignment.cs | 8 +- sdk/dotnet/DirectoryRoleMember.cs | 42 +- sdk/dotnet/GetAdministrativeUnit.cs | 62 +- sdk/dotnet/GetApplication.cs | 48 +- sdk/dotnet/GetApplicationPublishedAppIds.cs | 71 +- sdk/dotnet/GetApplicationTemplate.cs | 48 +- sdk/dotnet/GetClientConfig.cs | 17 +- sdk/dotnet/GetDomains.cs | 48 +- sdk/dotnet/GetGroup.cs | 38 +- sdk/dotnet/GetGroups.cs | 174 +- sdk/dotnet/GetServicePrincipal.cs | 90 +- sdk/dotnet/GetServicePrincipals.cs | 146 +- sdk/dotnet/GetUser.cs | 34 +- sdk/dotnet/GetUsers.cs | 46 +- sdk/dotnet/Group.cs | 8 +- sdk/dotnet/GroupMember.cs | 44 +- sdk/dotnet/Inputs/ApplicationApiArgs.cs | 3 +- sdk/dotnet/Inputs/ApplicationApiGetArgs.cs | 3 +- ...ApplicationApiOauth2PermissionScopeArgs.cs | 3 +- ...licationApiOauth2PermissionScopeGetArgs.cs | 3 +- sdk/dotnet/Inputs/ApplicationAppRoleArgs.cs | 3 +- .../Inputs/ApplicationAppRoleGetArgs.cs | 3 +- .../Inputs/ApplicationFeatureTagArgs.cs | 3 +- .../Inputs/ApplicationFeatureTagGetArgs.cs | 3 +- ...pplicationOptionalClaimsAccessTokenArgs.cs | 3 +- ...icationOptionalClaimsAccessTokenGetArgs.cs | 3 +- .../Inputs/ApplicationOptionalClaimsArgs.cs | 3 +- .../ApplicationOptionalClaimsGetArgs.cs | 3 +- .../ApplicationOptionalClaimsIdTokenArgs.cs | 3 +- ...ApplicationOptionalClaimsIdTokenGetArgs.cs | 3 +- ...ApplicationOptionalClaimsSaml2TokenArgs.cs | 3 +- ...licationOptionalClaimsSaml2TokenGetArgs.cs | 3 +- .../Inputs/ApplicationPublicClientArgs.cs | 3 +- .../Inputs/ApplicationPublicClientGetArgs.cs | 3 +- .../ApplicationRequiredResourceAccessArgs.cs | 3 +- ...pplicationRequiredResourceAccessGetArgs.cs | 3 +- ...equiredResourceAccessResourceAccessArgs.cs | 3 +- ...iredResourceAccessResourceAccessGetArgs.cs | 3 +- .../ApplicationSinglePageApplicationArgs.cs | 3 +- ...ApplicationSinglePageApplicationGetArgs.cs | 3 +- sdk/dotnet/Inputs/ApplicationWebArgs.cs | 3 +- sdk/dotnet/Inputs/ApplicationWebGetArgs.cs | 3 +- .../Inputs/ApplicationWebImplicitGrantArgs.cs | 3 +- .../ApplicationWebImplicitGrantGetArgs.cs | 3 +- ...lAccessPolicyConditionsApplicationsArgs.cs | 3 +- ...cessPolicyConditionsApplicationsGetArgs.cs | 3 +- .../ConditionalAccessPolicyConditionsArgs.cs | 3 +- ...tionalAccessPolicyConditionsDevicesArgs.cs | 3 +- ...AccessPolicyConditionsDevicesFilterArgs.cs | 3 +- ...essPolicyConditionsDevicesFilterGetArgs.cs | 3 +- ...nalAccessPolicyConditionsDevicesGetArgs.cs | 3 +- ...onditionalAccessPolicyConditionsGetArgs.cs | 3 +- ...onalAccessPolicyConditionsLocationsArgs.cs | 3 +- ...lAccessPolicyConditionsLocationsGetArgs.cs | 3 +- ...onalAccessPolicyConditionsPlatformsArgs.cs | 3 +- ...lAccessPolicyConditionsPlatformsGetArgs.cs | 3 +- ...ditionalAccessPolicyConditionsUsersArgs.cs | 3 +- ...ionalAccessPolicyConditionsUsersGetArgs.cs | 3 +- ...onditionalAccessPolicyGrantControlsArgs.cs | 3 +- ...itionalAccessPolicyGrantControlsGetArgs.cs | 3 +- ...ditionalAccessPolicySessionControlsArgs.cs | 3 +- ...ionalAccessPolicySessionControlsGetArgs.cs | 3 +- .../CustomDirectoryRolePermissionArgs.cs | 3 +- .../CustomDirectoryRolePermissionGetArgs.cs | 3 +- .../Inputs/GroupDynamicMembershipArgs.cs | 3 +- .../Inputs/GroupDynamicMembershipGetArgs.cs | 3 +- sdk/dotnet/Inputs/InvitationMessageArgs.cs | 3 +- sdk/dotnet/Inputs/InvitationMessageGetArgs.cs | 3 +- sdk/dotnet/Inputs/NamedLocationCountryArgs.cs | 3 +- .../Inputs/NamedLocationCountryGetArgs.cs | 3 +- sdk/dotnet/Inputs/NamedLocationIpArgs.cs | 3 +- sdk/dotnet/Inputs/NamedLocationIpGetArgs.cs | 3 +- .../Inputs/ServicePrincipalAppRoleArgs.cs | 3 +- .../Inputs/ServicePrincipalAppRoleGetArgs.cs | 3 +- .../Inputs/ServicePrincipalFeatureArgs.cs | 3 +- .../Inputs/ServicePrincipalFeatureGetArgs.cs | 3 +- .../Inputs/ServicePrincipalFeatureTagArgs.cs | 3 +- .../ServicePrincipalFeatureTagGetArgs.cs | 3 +- ...rvicePrincipalOauth2PermissionScopeArgs.cs | 3 +- ...cePrincipalOauth2PermissionScopeGetArgs.cs | 3 +- .../ServicePrincipalSamlSingleSignOnArgs.cs | 3 +- ...ServicePrincipalSamlSingleSignOnGetArgs.cs | 3 +- sdk/dotnet/Invitation.cs | 72 +- sdk/dotnet/NamedLocation.cs | 55 +- sdk/dotnet/Provider.cs | 5 +- sdk/dotnet/ServicePrincipal.cs | 155 +- sdk/dotnet/ServicePrincipalCertificate.cs | 8 +- ...ePrincipalClaimsMappingPolicyAssignment.cs | 24 +- ...ervicePrincipalDelegatedPermissionGrant.cs | 189 +- sdk/dotnet/ServicePrincipalPassword.cs | 8 +- sdk/dotnet/User.cs | 28 +- sdk/dotnet/Utilities.cs | 2 +- sdk/go.mod | 4 +- sdk/go.sum | 9 +- sdk/go/azuread/administrativeUnit.go | 8 +- sdk/go/azuread/administrativeUnitMember.go | 65 +- sdk/go/azuread/appRoleAssignment.go | 417 +-- sdk/go/azuread/application.go | 370 +-- sdk/go/azuread/applicationCertificate.go | 10 +- .../applicationFederatedIdentityCredential.go | 65 +- sdk/go/azuread/applicationPassword.go | 16 +- sdk/go/azuread/applicationPreAuthorized.go | 117 +- sdk/go/azuread/claimsMappingPolicy.go | 93 +- sdk/go/azuread/conditionalAccessPolicy.go | 157 +- sdk/go/azuread/customDirectoryRole.go | 75 +- sdk/go/azuread/directoryRole.go | 62 +- sdk/go/azuread/directoryRoleAssignment.go | 8 +- sdk/go/azuread/directoryRoleMember.go | 65 +- sdk/go/azuread/doc.go | 2 +- sdk/go/azuread/getAdministrativeUnit.go | 58 +- sdk/go/azuread/getApplication.go | 31 +- .../azuread/getApplicationPublishedAppIds.go | 116 +- sdk/go/azuread/getApplicationTemplate.go | 31 +- sdk/go/azuread/getClientConfig.go | 27 +- sdk/go/azuread/getGroup.go | 31 +- sdk/go/azuread/getGroups.go | 157 +- sdk/go/azuread/getServicePrincipal.go | 87 +- sdk/go/azuread/getServicePrincipals.go | 109 +- sdk/go/azuread/getUser.go | 29 +- sdk/go/azuread/getUsers.go | 35 +- sdk/go/azuread/group.go | 8 +- sdk/go/azuread/groupMember.go | 67 +- sdk/go/azuread/invitation.go | 113 +- sdk/go/azuread/namedLocation.go | 77 +- sdk/go/azuread/pulumiTypes.go | 304 +- sdk/go/azuread/servicePrincipal.go | 242 +- sdk/go/azuread/servicePrincipalCertificate.go | 10 +- ...ePrincipalClaimsMappingPolicyAssignment.go | 39 +- ...ervicePrincipalDelegatedPermissionGrant.go | 274 +- sdk/go/azuread/servicePrincipalPassword.go | 4 +- sdk/go/azuread/user.go | 43 +- .../pulumi/azuread/AdministrativeUnit.java | 17 +- .../azuread/AdministrativeUnitMember.java | 29 +- .../com/pulumi/azuread/AppRoleAssignment.java | 140 +- .../java/com/pulumi/azuread/Application.java | 98 +- ...pplicationFederatedIdentityCredential.java | 21 +- .../pulumi/azuread/ApplicationPassword.java | 4 +- .../azuread/ApplicationPasswordArgs.java | 8 +- .../azuread/ApplicationPreAuthorized.java | 30 +- .../com/pulumi/azuread/AzureadFunctions.java | 2880 +++++++++++------ .../pulumi/azuread/ClaimsMappingPolicy.java | 17 +- .../azuread/ConditionalAccessPolicy.java | 44 +- .../pulumi/azuread/CustomDirectoryRole.java | 22 +- .../com/pulumi/azuread/DirectoryRole.java | 34 +- .../pulumi/azuread/DirectoryRoleMember.java | 29 +- .../main/java/com/pulumi/azuread/Group.java | 101 +- .../java/com/pulumi/azuread/GroupMember.java | 29 +- .../java/com/pulumi/azuread/Invitation.java | 57 +- .../com/pulumi/azuread/NamedLocation.java | 23 +- .../com/pulumi/azuread/ServicePrincipal.java | 110 +- ...rincipalClaimsMappingPolicyAssignment.java | 21 +- ...vicePrincipalDelegatedPermissionGrant.java | 94 +- .../main/java/com/pulumi/azuread/User.java | 17 +- .../inputs/ApplicationPasswordState.java | 8 +- sdk/nodejs/README.md | 4 +- sdk/nodejs/application.ts | 2 +- sdk/nodejs/applicationPassword.ts | 6 +- sdk/nodejs/package.json | 3 +- sdk/nodejs/types/input.ts | 1 + sdk/nodejs/types/output.ts | 1 - sdk/python/pulumi_azuread/README.md | 4 +- sdk/python/pulumi_azuread/_inputs.py | 1 + sdk/python/pulumi_azuread/_utilities.py | 14 + .../pulumi_azuread/administrative_unit.py | 6 +- .../administrative_unit_member.py | 6 +- .../pulumi_azuread/app_role_assignment.py | 216 +- sdk/python/pulumi_azuread/application.py | 6 +- .../pulumi_azuread/application_certificate.py | 6 +- ...plication_federated_identity_credential.py | 6 +- .../pulumi_azuread/application_password.py | 20 +- .../application_pre_authorized.py | 6 +- .../pulumi_azuread/claims_mapping_policy.py | 6 +- .../conditional_access_policy.py | 10 +- sdk/python/pulumi_azuread/config/__init__.pyi | 1 + sdk/python/pulumi_azuread/config/vars.py | 1 + .../pulumi_azuread/custom_directory_role.py | 6 +- sdk/python/pulumi_azuread/directory_role.py | 6 +- .../directory_role_assignment.py | 6 +- .../pulumi_azuread/directory_role_member.py | 6 +- .../pulumi_azuread/get_administrative_unit.py | 6 +- sdk/python/pulumi_azuread/get_application.py | 6 +- .../get_application_published_app_ids.py | 45 +- .../get_application_template.py | 6 +- .../pulumi_azuread/get_client_config.py | 6 +- sdk/python/pulumi_azuread/get_domains.py | 6 +- sdk/python/pulumi_azuread/get_group.py | 6 +- sdk/python/pulumi_azuread/get_groups.py | 6 +- .../pulumi_azuread/get_service_principal.py | 6 +- .../pulumi_azuread/get_service_principals.py | 6 +- sdk/python/pulumi_azuread/get_user.py | 6 +- sdk/python/pulumi_azuread/get_users.py | 6 +- sdk/python/pulumi_azuread/group.py | 6 +- sdk/python/pulumi_azuread/group_member.py | 6 +- sdk/python/pulumi_azuread/invitation.py | 6 +- sdk/python/pulumi_azuread/named_location.py | 6 +- sdk/python/pulumi_azuread/outputs.py | 1 + sdk/python/pulumi_azuread/provider.py | 6 +- .../pulumi_azuread/service_principal.py | 136 +- .../service_principal_certificate.py | 6 +- ...ncipal_claims_mapping_policy_assignment.py | 6 +- ...ce_principal_delegated_permission_grant.py | 162 +- .../service_principal_password.py | 6 +- sdk/python/pulumi_azuread/user.py | 6 +- 228 files changed, 6623 insertions(+), 5624 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 71be86ac2..a6cff56a3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -107,7 +107,7 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x javaversion: - "11" language: @@ -117,9 +117,9 @@ jobs: - go - java nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" generate_coverage_data: continue-on-error: true env: @@ -175,7 +175,7 @@ jobs: fail-fast: true matrix: goversion: - - 1.18.x + - 1.19.x lint: container: golangci/golangci-lint:latest name: lint @@ -212,7 +212,7 @@ jobs: fail-fast: true matrix: goversion: - - 1.18.x + - 1.19.x lint_sdk: container: golangci/golangci-lint:latest name: lint-sdk @@ -250,7 +250,7 @@ jobs: fail-fast: true matrix: goversion: - - 1.18.x + - 1.19.x prerequisites: name: prerequisites runs-on: ubuntu-latest @@ -320,11 +320,11 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" publish: name: publish needs: test @@ -376,11 +376,11 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" publish_sdk: name: publish_sdk needs: publish @@ -483,13 +483,13 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x javaversion: - "11" nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" test: name: test needs: build_sdk @@ -581,7 +581,7 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x javaversion: - "11" language: @@ -591,9 +591,9 @@ jobs: - go - java nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" name: main on: push: diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 202b64b07..00c1cc4a0 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -107,7 +107,7 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x javaversion: - "11" language: @@ -117,9 +117,9 @@ jobs: - go - java nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" generate_coverage_data: continue-on-error: true env: @@ -175,7 +175,7 @@ jobs: fail-fast: true matrix: goversion: - - 1.18.x + - 1.19.x lint: container: golangci/golangci-lint:latest name: lint @@ -212,7 +212,7 @@ jobs: fail-fast: true matrix: goversion: - - 1.18.x + - 1.19.x lint_sdk: container: golangci/golangci-lint:latest name: lint-sdk @@ -250,7 +250,7 @@ jobs: fail-fast: true matrix: goversion: - - 1.18.x + - 1.19.x prerequisites: name: prerequisites runs-on: ubuntu-latest @@ -320,11 +320,11 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" publish: name: publish needs: test @@ -376,11 +376,11 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" publish_sdk: name: publish_sdk needs: publish @@ -483,13 +483,13 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x javaversion: - "11" nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" test: name: test needs: build_sdk @@ -581,7 +581,7 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x javaversion: - "11" language: @@ -591,9 +591,9 @@ jobs: - go - java nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" name: master on: push: diff --git a/.github/workflows/nightly-test.yml b/.github/workflows/nightly-test.yml index cda143b9d..c9292ea68 100644 --- a/.github/workflows/nightly-test.yml +++ b/.github/workflows/nightly-test.yml @@ -107,7 +107,7 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x javaversion: - "11" language: @@ -117,9 +117,9 @@ jobs: - go - java nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" prerequisites: name: prerequisites runs-on: ubuntu-latest @@ -189,11 +189,11 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" test: name: test needs: build_sdk @@ -285,7 +285,7 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x javaversion: - "11" language: @@ -295,9 +295,9 @@ jobs: - go - java nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" name: cron on: schedule: diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index dd406a34a..1b28da896 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -107,7 +107,7 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x javaversion: - "11" language: @@ -117,9 +117,9 @@ jobs: - go - java nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" lint: container: golangci/golangci-lint:latest name: lint @@ -156,7 +156,7 @@ jobs: fail-fast: true matrix: goversion: - - 1.18.x + - 1.19.x lint_sdk: container: golangci/golangci-lint:latest name: lint-sdk @@ -194,7 +194,7 @@ jobs: fail-fast: true matrix: goversion: - - 1.18.x + - 1.19.x prerequisites: name: prerequisites runs-on: ubuntu-latest @@ -264,11 +264,11 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" publish: name: publish needs: test @@ -320,11 +320,11 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" publish_sdk: name: publish_sdk needs: publish @@ -427,13 +427,13 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x javaversion: - "11" nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" test: name: test needs: build_sdk @@ -525,7 +525,7 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x javaversion: - "11" language: @@ -535,9 +535,9 @@ jobs: - go - java nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" name: prerelease on: push: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 73005e378..f17f44723 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -107,7 +107,7 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x javaversion: - "11" language: @@ -117,9 +117,9 @@ jobs: - go - java nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" create_docs_build: name: create_docs_build needs: tag_sdk @@ -170,7 +170,7 @@ jobs: fail-fast: true matrix: goversion: - - 1.18.x + - 1.19.x lint_sdk: container: golangci/golangci-lint:latest name: lint-sdk @@ -208,7 +208,7 @@ jobs: fail-fast: true matrix: goversion: - - 1.18.x + - 1.19.x prerequisites: name: prerequisites runs-on: ubuntu-latest @@ -278,11 +278,11 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" publish: name: publish needs: test @@ -333,11 +333,11 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" publish_sdk: name: publish_sdk needs: publish @@ -440,13 +440,13 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x javaversion: - "11" nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" tag_sdk: name: tag_sdk needs: publish_sdk @@ -552,7 +552,7 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x javaversion: - "11" language: @@ -562,9 +562,9 @@ jobs: - go - java nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" name: release on: push: diff --git a/.github/workflows/run-acceptance-tests.yml b/.github/workflows/run-acceptance-tests.yml index 2f49df254..5c4c29082 100644 --- a/.github/workflows/run-acceptance-tests.yml +++ b/.github/workflows/run-acceptance-tests.yml @@ -112,7 +112,7 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x javaversion: - "11" language: @@ -122,9 +122,9 @@ jobs: - go - java nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" comment-notification: if: github.event_name == 'repository_dispatch' name: comment-notification @@ -181,7 +181,7 @@ jobs: fail-fast: true matrix: goversion: - - 1.18.x + - 1.19.x lint_sdk: container: golangci/golangci-lint:latest if: github.event_name == 'repository_dispatch' || @@ -223,7 +223,7 @@ jobs: fail-fast: true matrix: goversion: - - 1.18.x + - 1.19.x prerequisites: if: github.event_name == 'repository_dispatch' || github.event.pull_request.head.repo.full_name == github.repository @@ -297,11 +297,23 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" + sentinel: + if: github.event_name == 'repository_dispatch' || + github.event.pull_request.head.repo.full_name == github.repository + name: sentinel + needs: + - test + - lint + - lint_sdk + runs-on: ubuntu-latest + steps: + - name: Is workflow a success + run: echo yes test: if: github.event_name == 'repository_dispatch' || github.event.pull_request.head.repo.full_name == github.repository @@ -397,7 +409,7 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x javaversion: - "11" language: @@ -407,9 +419,9 @@ jobs: - go - java nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" name: run-acceptance-tests on: pull_request: diff --git a/.github/workflows/update-bridge.yml b/.github/workflows/update-bridge.yml index faf15a97e..83921b39b 100644 --- a/.github/workflows/update-bridge.yml +++ b/.github/workflows/update-bridge.yml @@ -78,11 +78,11 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" name: Update pulumi-terraform-bridge on: workflow_dispatch: diff --git a/.github/workflows/update-upstream-provider.yml b/.github/workflows/update-upstream-provider.yml index 8c5f5e197..feff8f148 100644 --- a/.github/workflows/update-upstream-provider.yml +++ b/.github/workflows/update-upstream-provider.yml @@ -136,11 +136,11 @@ jobs: dotnetversion: - 3.1.301 goversion: - - 1.18.x + - 1.19.x nodeversion: - - 14.x + - 16.x pythonversion: - - "3.7" + - "3.9" name: Update upstream provider on: workflow_dispatch: diff --git a/provider/cmd/pulumi-resource-azuread/schema.json b/provider/cmd/pulumi-resource-azuread/schema.json index c76afee89..31675c2a1 100644 --- a/provider/cmd/pulumi-resource-azuread/schema.json +++ b/provider/cmd/pulumi-resource-azuread/schema.json @@ -12,6 +12,44 @@ "meta": { "moduleFormat": "(.*)(?:/[^/]*)" }, + "language": { + "csharp": { + "compatibility": "tfbridge20", + "namespaces": { + "azuread": "AzureAD" + }, + "packageReferences": { + "Pulumi": "3.*" + } + }, + "go": { + "generateExtraInputTypes": true, + "generateResourceContainerTypes": true, + "importBasePath": "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" + }, + "nodejs": { + "compatibility": "tfbridge20", + "dependencies": { + "@pulumi/pulumi": "^3.0.0" + }, + "devDependencies": { + "@types/mime": "^2.0.0", + "@types/node": "^10.0.0" + }, + "disableUnionOutputTypes": true, + "packageDescription": "A Pulumi package for creating and managing azuread cloud resources.", + "packageName": "", + "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/hashicorp/terraform-provider-azuread)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-azuread` repo](https://github.com/pulumi/pulumi-azuread/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-azuread` repo](https://github.com/hashicorp/terraform-provider-azuread/issues).", + "typescriptVersion": "" + }, + "python": { + "compatibility": "tfbridge20", + "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/hashicorp/terraform-provider-azuread)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-azuread` repo](https://github.com/pulumi/pulumi-azuread/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-azuread` repo](https://github.com/hashicorp/terraform-provider-azuread/issues).", + "requires": { + "pulumi": "\u003e=3.0.0,\u003c4.0.0" + } + } + }, "config": { "variables": { "clientCertificate": { @@ -2968,7 +3006,7 @@ }, "resources": { "azuread:index/administrativeUnit:AdministrativeUnit": { - "description": "Manages an Administrative Unit within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires one of the following application roles: `AdministrativeUnit.ReadWrite.All` or `Directory.ReadWrite.All`\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Privileged Role Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.AdministrativeUnit(\"example\", {\n description: \"Just an example\",\n displayName: \"Example-AU\",\n visibility: \"Public\",\n});\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new AdministrativeUnit(\"example\", AdministrativeUnitArgs.builder() \n .description(\"Just an example\")\n .displayName(\"Example-AU\")\n .visibility(\"Public\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azuread:AdministrativeUnit\n properties:\n description: Just an example\n displayName: Example-AU\n visibility: Public\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nAdministrative units can be imported using their object ID, e.g.\n\n```sh\n $ pulumi import azuread:index/administrativeUnit:AdministrativeUnit example 00000000-0000-0000-0000-000000000000\n```\n\n ", + "description": "Manages an Administrative Unit within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires one of the following application roles: `AdministrativeUnit.ReadWrite.All` or `Directory.ReadWrite.All`\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Privileged Role Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.AdministrativeUnit(\"example\", {\n description: \"Just an example\",\n displayName: \"Example-AU\",\n visibility: \"Public\",\n});\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AdministrativeUnit;\nimport com.pulumi.azuread.AdministrativeUnitArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new AdministrativeUnit(\"example\", AdministrativeUnitArgs.builder() \n .description(\"Just an example\")\n .displayName(\"Example-AU\")\n .visibility(\"Public\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azuread:AdministrativeUnit\n properties:\n description: Just an example\n displayName: Example-AU\n visibility: Public\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nAdministrative units can be imported using their object ID, e.g.\n\n```sh\n $ pulumi import azuread:index/administrativeUnit:AdministrativeUnit example 00000000-0000-0000-0000-000000000000\n```\n\n ", "properties": { "description": { "type": "string", @@ -3066,7 +3104,7 @@ } }, "azuread:index/administrativeUnitMember:AdministrativeUnitMember": { - "description": "Manages a single administrative unit membership within Azure Active Directory.\n\n\u003e **Warning** Do not use this resource at the same time as the `members` property of the `azuread.AdministrativeUnit` resource for the same administrative unit. Doing so will cause a conflict and administrative unit members will be removed.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires one of the following application roles: `AdministrativeUnit.ReadWrite.All` or `Directory.ReadWrite.All`\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Privileged Role Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleUser = azuread.getUser({\n userPrincipalName: \"jdoe@hashicorp.com\",\n});\nconst exampleAdministrativeUnit = new azuread.AdministrativeUnit(\"exampleAdministrativeUnit\", {displayName: \"Example-AU\"});\nconst exampleAdministrativeUnitMember = new azuread.AdministrativeUnitMember(\"exampleAdministrativeUnitMember\", {\n administrativeUnitObjectId: exampleAdministrativeUnit.id,\n memberObjectId: exampleUser.then(exampleUser =\u003e exampleUser.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_user = azuread.get_user(user_principal_name=\"jdoe@hashicorp.com\")\nexample_administrative_unit = azuread.AdministrativeUnit(\"exampleAdministrativeUnit\", display_name=\"Example-AU\")\nexample_administrative_unit_member = azuread.AdministrativeUnitMember(\"exampleAdministrativeUnitMember\",\n administrative_unit_object_id=example_administrative_unit.id,\n member_object_id=example_user.id)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleUser = Output.Create(AzureAD.GetUser.InvokeAsync(new AzureAD.GetUserArgs\n {\n UserPrincipalName = \"jdoe@hashicorp.com\",\n }));\n var exampleAdministrativeUnit = new AzureAD.AdministrativeUnit(\"exampleAdministrativeUnit\", new AzureAD.AdministrativeUnitArgs\n {\n DisplayName = \"Example-AU\",\n });\n var exampleAdministrativeUnitMember = new AzureAD.AdministrativeUnitMember(\"exampleAdministrativeUnitMember\", new AzureAD.AdministrativeUnitMemberArgs\n {\n AdministrativeUnitObjectId = exampleAdministrativeUnit.Id,\n MemberObjectId = exampleUser.Apply(exampleUser =\u003e exampleUser.Id),\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleUser, err := azuread.LookupUser(ctx, \u0026GetUserArgs{\n\t\t\tUserPrincipalName: pulumi.StringRef(\"jdoe@hashicorp.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAdministrativeUnit, err := azuread.NewAdministrativeUnit(ctx, \"exampleAdministrativeUnit\", \u0026azuread.AdministrativeUnitArgs{\n\t\t\tDisplayName: pulumi.String(\"Example-AU\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewAdministrativeUnitMember(ctx, \"exampleAdministrativeUnitMember\", \u0026azuread.AdministrativeUnitMemberArgs{\n\t\t\tAdministrativeUnitObjectId: exampleAdministrativeUnit.ID(),\n\t\t\tMemberObjectId: pulumi.String(exampleUser.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 exampleUser = Output.of(AzureadFunctions.getUser(GetUserArgs.builder()\n .userPrincipalName(\"jdoe@hashicorp.com\")\n .build()));\n\n var exampleAdministrativeUnit = new AdministrativeUnit(\"exampleAdministrativeUnit\", AdministrativeUnitArgs.builder() \n .displayName(\"Example-AU\")\n .build());\n\n var exampleAdministrativeUnitMember = new AdministrativeUnitMember(\"exampleAdministrativeUnitMember\", AdministrativeUnitMemberArgs.builder() \n .administrativeUnitObjectId(exampleAdministrativeUnit.getId())\n .memberObjectId(exampleUser.apply(getUserResult -\u003e getUserResult.getId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleAdministrativeUnit:\n type: azuread:AdministrativeUnit\n properties:\n displayName: Example-AU\n exampleAdministrativeUnitMember:\n type: azuread:AdministrativeUnitMember\n properties:\n administrativeUnitObjectId: ${exampleAdministrativeUnit.id}\n memberObjectId: ${exampleUser.id}\nvariables:\n exampleUser:\n Fn::Invoke:\n Function: azuread:getUser\n Arguments:\n userPrincipalName: jdoe@hashicorp.com\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nAdministrative unit members can be imported using the object ID of the administrative unit and the object ID of the member, e.g.\n\n```sh\n $ pulumi import azuread:index/administrativeUnitMember:AdministrativeUnitMember test 00000000-0000-0000-0000-000000000000/member/11111111-1111-1111-1111-111111111111\n```\n\n -\u003e This ID format is unique to Terraform and is composed of the Administrative Unit Object ID and the target Member Object ID in the format `{AdministrativeUnitObjectID}/member/{MemberObjectID}`. ", + "description": "Manages a single administrative unit membership within Azure Active Directory.\n\n\u003e **Warning** Do not use this resource at the same time as the `members` property of the `azuread.AdministrativeUnit` resource for the same administrative unit. Doing so will cause a conflict and administrative unit members will be removed.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires one of the following application roles: `AdministrativeUnit.ReadWrite.All` or `Directory.ReadWrite.All`\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Privileged Role Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleUser = azuread.getUser({\n userPrincipalName: \"jdoe@hashicorp.com\",\n});\nconst exampleAdministrativeUnit = new azuread.AdministrativeUnit(\"exampleAdministrativeUnit\", {displayName: \"Example-AU\"});\nconst exampleAdministrativeUnitMember = new azuread.AdministrativeUnitMember(\"exampleAdministrativeUnitMember\", {\n administrativeUnitObjectId: exampleAdministrativeUnit.id,\n memberObjectId: exampleUser.then(exampleUser =\u003e exampleUser.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_user = azuread.get_user(user_principal_name=\"jdoe@hashicorp.com\")\nexample_administrative_unit = azuread.AdministrativeUnit(\"exampleAdministrativeUnit\", display_name=\"Example-AU\")\nexample_administrative_unit_member = azuread.AdministrativeUnitMember(\"exampleAdministrativeUnitMember\",\n administrative_unit_object_id=example_administrative_unit.id,\n member_object_id=example_user.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleUser = AzureAD.GetUser.Invoke(new()\n {\n UserPrincipalName = \"jdoe@hashicorp.com\",\n });\n\n var exampleAdministrativeUnit = new AzureAD.AdministrativeUnit(\"exampleAdministrativeUnit\", new()\n {\n DisplayName = \"Example-AU\",\n });\n\n var exampleAdministrativeUnitMember = new AzureAD.AdministrativeUnitMember(\"exampleAdministrativeUnitMember\", new()\n {\n AdministrativeUnitObjectId = exampleAdministrativeUnit.Id,\n MemberObjectId = exampleUser.Apply(getUserResult =\u003e getUserResult.Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleUser, err := azuread.LookupUser(ctx, \u0026GetUserArgs{\n\t\t\tUserPrincipalName: pulumi.StringRef(\"jdoe@hashicorp.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAdministrativeUnit, err := azuread.NewAdministrativeUnit(ctx, \"exampleAdministrativeUnit\", \u0026azuread.AdministrativeUnitArgs{\n\t\t\tDisplayName: pulumi.String(\"Example-AU\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewAdministrativeUnitMember(ctx, \"exampleAdministrativeUnitMember\", \u0026azuread.AdministrativeUnitMemberArgs{\n\t\t\tAdministrativeUnitObjectId: exampleAdministrativeUnit.ID(),\n\t\t\tMemberObjectId: pulumi.String(exampleUser.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetUserArgs;\nimport com.pulumi.azuread.AdministrativeUnit;\nimport com.pulumi.azuread.AdministrativeUnitArgs;\nimport com.pulumi.azuread.AdministrativeUnitMember;\nimport com.pulumi.azuread.AdministrativeUnitMemberArgs;\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 exampleUser = AzureadFunctions.getUser(GetUserArgs.builder()\n .userPrincipalName(\"jdoe@hashicorp.com\")\n .build());\n\n var exampleAdministrativeUnit = new AdministrativeUnit(\"exampleAdministrativeUnit\", AdministrativeUnitArgs.builder() \n .displayName(\"Example-AU\")\n .build());\n\n var exampleAdministrativeUnitMember = new AdministrativeUnitMember(\"exampleAdministrativeUnitMember\", AdministrativeUnitMemberArgs.builder() \n .administrativeUnitObjectId(exampleAdministrativeUnit.id())\n .memberObjectId(exampleUser.applyValue(getUserResult -\u003e getUserResult.id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleAdministrativeUnit:\n type: azuread:AdministrativeUnit\n properties:\n displayName: Example-AU\n exampleAdministrativeUnitMember:\n type: azuread:AdministrativeUnitMember\n properties:\n administrativeUnitObjectId: ${exampleAdministrativeUnit.id}\n memberObjectId: ${exampleUser.id}\nvariables:\n exampleUser:\n Fn::Invoke:\n Function: azuread:getUser\n Arguments:\n userPrincipalName: jdoe@hashicorp.com\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nAdministrative unit members can be imported using the object ID of the administrative unit and the object ID of the member, e.g.\n\n```sh\n $ pulumi import azuread:index/administrativeUnitMember:AdministrativeUnitMember test 00000000-0000-0000-0000-000000000000/member/11111111-1111-1111-1111-111111111111\n```\n\n -\u003e This ID format is unique to Terraform and is composed of the Administrative Unit Object ID and the target Member Object ID in the format `{AdministrativeUnitObjectID}/member/{MemberObjectID}`. ", "properties": { "administrativeUnitObjectId": { "type": "string", @@ -3080,11 +3118,13 @@ "inputProperties": { "administrativeUnitObjectId": { "type": "string", - "description": "The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.\n" + "description": "The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "memberObjectId": { "type": "string", - "description": "The object ID of the user or group you want to add as a member of the administrative unit. Changing this forces a new resource to be created.\n" + "description": "The object ID of the user or group you want to add as a member of the administrative unit. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true } }, "stateInputs": { @@ -3092,18 +3132,20 @@ "properties": { "administrativeUnitObjectId": { "type": "string", - "description": "The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.\n" + "description": "The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "memberObjectId": { "type": "string", - "description": "The object ID of the user or group you want to add as a member of the administrative unit. Changing this forces a new resource to be created.\n" + "description": "The object ID of the user or group you want to add as a member of the administrative unit. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true } }, "type": "object" } }, "azuread:index/appRoleAssignment:AppRoleAssignment": { - "description": "Manages an app role assignment for a group, user or service principal. Can be used to grant admin consent for application permissions.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires one of the following application roles: `AppRoleAssignment.ReadWrite.All` and `Application.Read.All`, or `AppRoleAssignment.ReadWrite.All` and `Directory.Read.All`, or `Application.ReadWrite.All`, or `Directory.ReadWrite.All`\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Application Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*App role assignment for accessing Microsoft Graph*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst wellKnown = azuread.getApplicationPublishedAppIds({});\nconst msgraph = new azuread.ServicePrincipal(\"msgraph\", {\n applicationId: wellKnown.then(wellKnown =\u003e wellKnown.result?.MicrosoftGraph),\n useExisting: true,\n});\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {\n displayName: \"example\",\n requiredResourceAccesses: [{\n resourceAppId: wellKnown.then(wellKnown =\u003e wellKnown.result?.MicrosoftGraph),\n resourceAccesses: [\n {\n id: msgraph.appRoleIds[\"User.Read.All\"],\n type: \"Role\",\n },\n {\n id: msgraph.oauth2PermissionScopeIds[\"User.ReadWrite\"],\n type: \"Scope\",\n },\n ],\n }],\n});\nconst exampleServicePrincipal = new azuread.ServicePrincipal(\"exampleServicePrincipal\", {applicationId: exampleApplication.applicationId});\nconst exampleAppRoleAssignment = new azuread.AppRoleAssignment(\"exampleAppRoleAssignment\", {\n appRoleId: msgraph.appRoleIds[\"User.Read.All\"],\n principalObjectId: exampleServicePrincipal.objectId,\n resourceObjectId: msgraph.objectId,\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nwell_known = azuread.get_application_published_app_ids()\nmsgraph = azuread.ServicePrincipal(\"msgraph\",\n application_id=well_known.result[\"MicrosoftGraph\"],\n use_existing=True)\nexample_application = azuread.Application(\"exampleApplication\",\n display_name=\"example\",\n required_resource_accesses=[azuread.ApplicationRequiredResourceAccessArgs(\n resource_app_id=well_known.result[\"MicrosoftGraph\"],\n resource_accesses=[\n azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=msgraph.app_role_ids[\"User.Read.All\"],\n type=\"Role\",\n ),\n azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=msgraph.oauth2_permission_scope_ids[\"User.ReadWrite\"],\n type=\"Scope\",\n ),\n ],\n )])\nexample_service_principal = azuread.ServicePrincipal(\"exampleServicePrincipal\", application_id=example_application.application_id)\nexample_app_role_assignment = azuread.AppRoleAssignment(\"exampleAppRoleAssignment\",\n app_role_id=msgraph.app_role_ids[\"User.Read.All\"],\n principal_object_id=example_service_principal.object_id,\n resource_object_id=msgraph.object_id)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var wellKnown = Output.Create(AzureAD.GetApplicationPublishedAppIds.InvokeAsync());\n var msgraph = new AzureAD.ServicePrincipal(\"msgraph\", new AzureAD.ServicePrincipalArgs\n {\n ApplicationId = wellKnown.Apply(wellKnown =\u003e wellKnown.Result?.MicrosoftGraph),\n UseExisting = true,\n });\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new AzureAD.ApplicationArgs\n {\n DisplayName = \"example\",\n RequiredResourceAccesses = \n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs\n {\n ResourceAppId = wellKnown.Apply(wellKnown =\u003e wellKnown.Result?.MicrosoftGraph),\n ResourceAccesses = \n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = msgraph.AppRoleIds.Apply(appRoleIds =\u003e appRoleIds.User_Read_All),\n Type = \"Role\",\n },\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds =\u003e oauth2PermissionScopeIds.User_ReadWrite),\n Type = \"Scope\",\n },\n },\n },\n },\n });\n var exampleServicePrincipal = new AzureAD.ServicePrincipal(\"exampleServicePrincipal\", new AzureAD.ServicePrincipalArgs\n {\n ApplicationId = exampleApplication.ApplicationId,\n });\n var exampleAppRoleAssignment = new AzureAD.AppRoleAssignment(\"exampleAppRoleAssignment\", new AzureAD.AppRoleAssignmentArgs\n {\n AppRoleId = msgraph.AppRoleIds.Apply(appRoleIds =\u003e appRoleIds.User_Read_All),\n PrincipalObjectId = exampleServicePrincipal.ObjectId,\n ResourceObjectId = msgraph.ObjectId,\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\twellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tmsgraph, err := azuread.NewServicePrincipal(ctx, \"msgraph\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: pulumi.String(wellKnown.Result.MicrosoftGraph),\n\t\t\tUseExisting: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tRequiredResourceAccesses: ApplicationRequiredResourceAccessArray{\n\t\t\t\t\u0026ApplicationRequiredResourceAccessArgs{\n\t\t\t\t\tResourceAppId: pulumi.String(wellKnown.Result.MicrosoftGraph),\n\t\t\t\t\tResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: msgraph.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) {\n\t\t\t\t\t\t\t\treturn appRoleIds.User.Read.All, nil\n\t\t\t\t\t\t\t}).(pulumi.StringOutput),\n\t\t\t\t\t\t\tType: pulumi.String(\"Role\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) {\n\t\t\t\t\t\t\t\treturn oauth2PermissionScopeIds.User.ReadWrite, nil\n\t\t\t\t\t\t\t}).(pulumi.StringOutput),\n\t\t\t\t\t\t\tType: pulumi.String(\"Scope\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServicePrincipal, err := azuread.NewServicePrincipal(ctx, \"exampleServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: exampleApplication.ApplicationId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewAppRoleAssignment(ctx, \"exampleAppRoleAssignment\", \u0026azuread.AppRoleAssignmentArgs{\n\t\t\tAppRoleId: msgraph.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) {\n\t\t\t\treturn appRoleIds.User.Read.All, nil\n\t\t\t}).(pulumi.StringOutput),\n\t\t\tPrincipalObjectId: exampleServicePrincipal.ObjectId,\n\t\t\tResourceObjectId: msgraph.ObjectId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 wellKnown = Output.of(AzureadFunctions.getApplicationPublishedAppIds());\n\n var msgraph = new ServicePrincipal(\"msgraph\", ServicePrincipalArgs.builder() \n .applicationId(wellKnown.apply(getApplicationPublishedAppIdsResult -\u003e getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph()))\n .useExisting(true)\n .build());\n\n var exampleApplication = new Application(\"exampleApplication\", ApplicationArgs.builder() \n .displayName(\"example\")\n .requiredResourceAccesses(ApplicationRequiredResourceAccess.builder()\n .resourceAppId(wellKnown.apply(getApplicationPublishedAppIdsResult -\u003e getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph()))\n .resourceAccesses( \n ApplicationRequiredResourceAccessResourceAccess.builder()\n .id(msgraph.getAppRoleIds().apply(appRoleIds -\u003e appRoleIds.getUser.Read.All()))\n .type(\"Role\")\n .build(),\n ApplicationRequiredResourceAccessResourceAccess.builder()\n .id(msgraph.getOauth2PermissionScopeIds().apply(oauth2PermissionScopeIds -\u003e oauth2PermissionScopeIds.getUser.ReadWrite()))\n .type(\"Scope\")\n .build())\n .build())\n .build());\n\n var exampleServicePrincipal = new ServicePrincipal(\"exampleServicePrincipal\", ServicePrincipalArgs.builder() \n .applicationId(exampleApplication.getApplicationId())\n .build());\n\n var exampleAppRoleAssignment = new AppRoleAssignment(\"exampleAppRoleAssignment\", AppRoleAssignmentArgs.builder() \n .appRoleId(msgraph.getAppRoleIds().apply(appRoleIds -\u003e appRoleIds.getUser.Read.All()))\n .principalObjectId(exampleServicePrincipal.getObjectId())\n .resourceObjectId(msgraph.getObjectId())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n msgraph:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${wellKnown.result.MicrosoftGraph}\n useExisting: true\n exampleApplication:\n type: azuread:Application\n properties:\n displayName: example\n requiredResourceAccesses:\n - resourceAppId: ${wellKnown.result.MicrosoftGraph}\n resourceAccesses:\n - id: ${msgraph.appRoleIds\"User.Read.All\"[%!s(MISSING)]}\n type: Role\n - id: ${msgraph.oauth2PermissionScopeIds\"User.ReadWrite\"[%!s(MISSING)]}\n type: Scope\n exampleServicePrincipal:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${exampleApplication.applicationId}\n exampleAppRoleAssignment:\n type: azuread:AppRoleAssignment\n properties:\n appRoleId: ${msgraph.appRoleIds\"User.Read.All\"[%!s(MISSING)]}\n principalObjectId: ${exampleServicePrincipal.objectId}\n resourceObjectId: ${msgraph.objectId}\nvariables:\n wellKnown:\n Fn::Invoke:\n Function: azuread:getApplicationPublishedAppIds\n Arguments: {}\n```\n\n*App role assignment for internal application*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst internalApplication = new azuread.Application(\"internalApplication\", {\n displayName: \"internal\",\n appRoles: [{\n allowedMemberTypes: [\"Application\"],\n description: \"Apps can query the database\",\n displayName: \"Query\",\n enabled: true,\n id: \"00000000-0000-0000-0000-111111111111\",\n value: \"Query.All\",\n }],\n});\nconst internalServicePrincipal = new azuread.ServicePrincipal(\"internalServicePrincipal\", {applicationId: internalApplication.applicationId});\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {\n displayName: \"example\",\n requiredResourceAccesses: [{\n resourceAppId: internalApplication.applicationId,\n resourceAccesses: [{\n id: internalServicePrincipal.appRoleIds[\"Query.All\"],\n type: \"Role\",\n }],\n }],\n});\nconst exampleServicePrincipal = new azuread.ServicePrincipal(\"exampleServicePrincipal\", {applicationId: exampleApplication.applicationId});\nconst exampleAppRoleAssignment = new azuread.AppRoleAssignment(\"exampleAppRoleAssignment\", {\n appRoleId: internalServicePrincipal.appRoleIds[\"Query.All\"],\n principalObjectId: exampleServicePrincipal.objectId,\n resourceObjectId: internalServicePrincipal.objectId,\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\ninternal_application = azuread.Application(\"internalApplication\",\n display_name=\"internal\",\n app_roles=[azuread.ApplicationAppRoleArgs(\n allowed_member_types=[\"Application\"],\n description=\"Apps can query the database\",\n display_name=\"Query\",\n enabled=True,\n id=\"00000000-0000-0000-0000-111111111111\",\n value=\"Query.All\",\n )])\ninternal_service_principal = azuread.ServicePrincipal(\"internalServicePrincipal\", application_id=internal_application.application_id)\nexample_application = azuread.Application(\"exampleApplication\",\n display_name=\"example\",\n required_resource_accesses=[azuread.ApplicationRequiredResourceAccessArgs(\n resource_app_id=internal_application.application_id,\n resource_accesses=[azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=internal_service_principal.app_role_ids[\"Query.All\"],\n type=\"Role\",\n )],\n )])\nexample_service_principal = azuread.ServicePrincipal(\"exampleServicePrincipal\", application_id=example_application.application_id)\nexample_app_role_assignment = azuread.AppRoleAssignment(\"exampleAppRoleAssignment\",\n app_role_id=internal_service_principal.app_role_ids[\"Query.All\"],\n principal_object_id=example_service_principal.object_id,\n resource_object_id=internal_service_principal.object_id)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var internalApplication = new AzureAD.Application(\"internalApplication\", new AzureAD.ApplicationArgs\n {\n DisplayName = \"internal\",\n AppRoles = \n {\n new AzureAD.Inputs.ApplicationAppRoleArgs\n {\n AllowedMemberTypes = \n {\n \"Application\",\n },\n Description = \"Apps can query the database\",\n DisplayName = \"Query\",\n Enabled = true,\n Id = \"00000000-0000-0000-0000-111111111111\",\n Value = \"Query.All\",\n },\n },\n });\n var internalServicePrincipal = new AzureAD.ServicePrincipal(\"internalServicePrincipal\", new AzureAD.ServicePrincipalArgs\n {\n ApplicationId = internalApplication.ApplicationId,\n });\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new AzureAD.ApplicationArgs\n {\n DisplayName = \"example\",\n RequiredResourceAccesses = \n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs\n {\n ResourceAppId = internalApplication.ApplicationId,\n ResourceAccesses = \n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = internalServicePrincipal.AppRoleIds.Apply(appRoleIds =\u003e appRoleIds.Query_All),\n Type = \"Role\",\n },\n },\n },\n },\n });\n var exampleServicePrincipal = new AzureAD.ServicePrincipal(\"exampleServicePrincipal\", new AzureAD.ServicePrincipalArgs\n {\n ApplicationId = exampleApplication.ApplicationId,\n });\n var exampleAppRoleAssignment = new AzureAD.AppRoleAssignment(\"exampleAppRoleAssignment\", new AzureAD.AppRoleAssignmentArgs\n {\n AppRoleId = internalServicePrincipal.AppRoleIds.Apply(appRoleIds =\u003e appRoleIds.Query_All),\n PrincipalObjectId = exampleServicePrincipal.ObjectId,\n ResourceObjectId = internalServicePrincipal.ObjectId,\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tinternalApplication, err := azuread.NewApplication(ctx, \"internalApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"internal\"),\n\t\t\tAppRoles: ApplicationAppRoleArray{\n\t\t\t\t\u0026ApplicationAppRoleArgs{\n\t\t\t\t\tAllowedMemberTypes: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"Application\"),\n\t\t\t\t\t},\n\t\t\t\t\tDescription: pulumi.String(\"Apps can query the database\"),\n\t\t\t\t\tDisplayName: pulumi.String(\"Query\"),\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tId: pulumi.String(\"00000000-0000-0000-0000-111111111111\"),\n\t\t\t\t\tValue: pulumi.String(\"Query.All\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tinternalServicePrincipal, err := azuread.NewServicePrincipal(ctx, \"internalServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: internalApplication.ApplicationId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tRequiredResourceAccesses: ApplicationRequiredResourceAccessArray{\n\t\t\t\t\u0026ApplicationRequiredResourceAccessArgs{\n\t\t\t\t\tResourceAppId: internalApplication.ApplicationId,\n\t\t\t\t\tResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: internalServicePrincipal.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) {\n\t\t\t\t\t\t\t\treturn appRoleIds.Query.All, nil\n\t\t\t\t\t\t\t}).(pulumi.StringOutput),\n\t\t\t\t\t\t\tType: pulumi.String(\"Role\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServicePrincipal, err := azuread.NewServicePrincipal(ctx, \"exampleServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: exampleApplication.ApplicationId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewAppRoleAssignment(ctx, \"exampleAppRoleAssignment\", \u0026azuread.AppRoleAssignmentArgs{\n\t\t\tAppRoleId: internalServicePrincipal.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) {\n\t\t\t\treturn appRoleIds.Query.All, nil\n\t\t\t}).(pulumi.StringOutput),\n\t\t\tPrincipalObjectId: exampleServicePrincipal.ObjectId,\n\t\t\tResourceObjectId: internalServicePrincipal.ObjectId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var internalApplication = new Application(\"internalApplication\", ApplicationArgs.builder() \n .displayName(\"internal\")\n .appRoles(ApplicationAppRole.builder()\n .allowedMemberTypes(\"Application\")\n .description(\"Apps can query the database\")\n .displayName(\"Query\")\n .enabled(true)\n .id(\"00000000-0000-0000-0000-111111111111\")\n .value(\"Query.All\")\n .build())\n .build());\n\n var internalServicePrincipal = new ServicePrincipal(\"internalServicePrincipal\", ServicePrincipalArgs.builder() \n .applicationId(internalApplication.getApplicationId())\n .build());\n\n var exampleApplication = new Application(\"exampleApplication\", ApplicationArgs.builder() \n .displayName(\"example\")\n .requiredResourceAccesses(ApplicationRequiredResourceAccess.builder()\n .resourceAppId(internalApplication.getApplicationId())\n .resourceAccesses(ApplicationRequiredResourceAccessResourceAccess.builder()\n .id(internalServicePrincipal.getAppRoleIds().apply(appRoleIds -\u003e appRoleIds.getQuery.All()))\n .type(\"Role\")\n .build())\n .build())\n .build());\n\n var exampleServicePrincipal = new ServicePrincipal(\"exampleServicePrincipal\", ServicePrincipalArgs.builder() \n .applicationId(exampleApplication.getApplicationId())\n .build());\n\n var exampleAppRoleAssignment = new AppRoleAssignment(\"exampleAppRoleAssignment\", AppRoleAssignmentArgs.builder() \n .appRoleId(internalServicePrincipal.getAppRoleIds().apply(appRoleIds -\u003e appRoleIds.getQuery.All()))\n .principalObjectId(exampleServicePrincipal.getObjectId())\n .resourceObjectId(internalServicePrincipal.getObjectId())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n internalApplication:\n type: azuread:Application\n properties:\n displayName: internal\n appRoles:\n - allowedMemberTypes:\n - Application\n description: Apps can query the database\n displayName: Query\n enabled: true\n id: 00000000-0000-0000-0000-111111111111\n value: Query.All\n internalServicePrincipal:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${internalApplication.applicationId}\n exampleApplication:\n type: azuread:Application\n properties:\n displayName: example\n requiredResourceAccesses:\n - resourceAppId: ${internalApplication.applicationId}\n resourceAccesses:\n - id: ${internalServicePrincipal.appRoleIds\"Query.All\"[%!s(MISSING)]}\n type: Role\n exampleServicePrincipal:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${exampleApplication.applicationId}\n exampleAppRoleAssignment:\n type: azuread:AppRoleAssignment\n properties:\n appRoleId: ${internalServicePrincipal.appRoleIds\"Query.All\"[%!s(MISSING)]}\n principalObjectId: ${exampleServicePrincipal.objectId}\n resourceObjectId: ${internalServicePrincipal.objectId}\n```\n\n*Assign a user and group to an internal application*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleDomains = azuread.getDomains({\n onlyInitial: true,\n});\nconst internalApplication = new azuread.Application(\"internalApplication\", {\n displayName: \"internal\",\n appRoles: [{\n allowedMemberTypes: [\n \"Application\",\n \"User\",\n ],\n description: \"Admins can perform all task actions\",\n displayName: \"Admin\",\n enabled: true,\n id: \"00000000-0000-0000-0000-222222222222\",\n value: \"Admin.All\",\n }],\n});\nconst internalServicePrincipal = new azuread.ServicePrincipal(\"internalServicePrincipal\", {applicationId: internalApplication.applicationId});\nconst exampleGroup = new azuread.Group(\"exampleGroup\", {\n displayName: \"example\",\n securityEnabled: true,\n});\nconst exampleAppRoleAssignment = new azuread.AppRoleAssignment(\"exampleAppRoleAssignment\", {\n appRoleId: internalServicePrincipal.appRoleIds[\"Admin.All\"],\n principalObjectId: exampleGroup.objectId,\n resourceObjectId: internalServicePrincipal.objectId,\n});\nconst exampleUser = new azuread.User(\"exampleUser\", {\n displayName: \"D. Duck\",\n password: \"SecretP@sswd99!\",\n userPrincipalName: exampleDomains.then(exampleDomains =\u003e `d.duck@${exampleDomains.domains?[0]?.domainName}`),\n});\nconst exampleIndex_appRoleAssignmentAppRoleAssignment = new azuread.AppRoleAssignment(\"exampleIndex/appRoleAssignmentAppRoleAssignment\", {\n appRoleId: internalServicePrincipal.appRoleIds[\"Admin.All\"],\n principalObjectId: exampleUser.objectId,\n resourceObjectId: internalServicePrincipal.objectId,\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_domains = azuread.get_domains(only_initial=True)\ninternal_application = azuread.Application(\"internalApplication\",\n display_name=\"internal\",\n app_roles=[azuread.ApplicationAppRoleArgs(\n allowed_member_types=[\n \"Application\",\n \"User\",\n ],\n description=\"Admins can perform all task actions\",\n display_name=\"Admin\",\n enabled=True,\n id=\"00000000-0000-0000-0000-222222222222\",\n value=\"Admin.All\",\n )])\ninternal_service_principal = azuread.ServicePrincipal(\"internalServicePrincipal\", application_id=internal_application.application_id)\nexample_group = azuread.Group(\"exampleGroup\",\n display_name=\"example\",\n security_enabled=True)\nexample_app_role_assignment = azuread.AppRoleAssignment(\"exampleAppRoleAssignment\",\n app_role_id=internal_service_principal.app_role_ids[\"Admin.All\"],\n principal_object_id=example_group.object_id,\n resource_object_id=internal_service_principal.object_id)\nexample_user = azuread.User(\"exampleUser\",\n display_name=\"D. Duck\",\n password=\"SecretP@sswd99!\",\n user_principal_name=f\"d.duck@{example_domains.domains[0].domain_name}\")\nexample_index_app_role_assignment_app_role_assignment = azuread.AppRoleAssignment(\"exampleIndex/appRoleAssignmentAppRoleAssignment\",\n app_role_id=internal_service_principal.app_role_ids[\"Admin.All\"],\n principal_object_id=example_user.object_id,\n resource_object_id=internal_service_principal.object_id)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleDomains = Output.Create(AzureAD.GetDomains.InvokeAsync(new AzureAD.GetDomainsArgs\n {\n OnlyInitial = true,\n }));\n var internalApplication = new AzureAD.Application(\"internalApplication\", new AzureAD.ApplicationArgs\n {\n DisplayName = \"internal\",\n AppRoles = \n {\n new AzureAD.Inputs.ApplicationAppRoleArgs\n {\n AllowedMemberTypes = \n {\n \"Application\",\n \"User\",\n },\n Description = \"Admins can perform all task actions\",\n DisplayName = \"Admin\",\n Enabled = true,\n Id = \"00000000-0000-0000-0000-222222222222\",\n Value = \"Admin.All\",\n },\n },\n });\n var internalServicePrincipal = new AzureAD.ServicePrincipal(\"internalServicePrincipal\", new AzureAD.ServicePrincipalArgs\n {\n ApplicationId = internalApplication.ApplicationId,\n });\n var exampleGroup = new AzureAD.Group(\"exampleGroup\", new AzureAD.GroupArgs\n {\n DisplayName = \"example\",\n SecurityEnabled = true,\n });\n var exampleAppRoleAssignment = new AzureAD.AppRoleAssignment(\"exampleAppRoleAssignment\", new AzureAD.AppRoleAssignmentArgs\n {\n AppRoleId = internalServicePrincipal.AppRoleIds.Apply(appRoleIds =\u003e appRoleIds.Admin_All),\n PrincipalObjectId = exampleGroup.ObjectId,\n ResourceObjectId = internalServicePrincipal.ObjectId,\n });\n var exampleUser = new AzureAD.User(\"exampleUser\", new AzureAD.UserArgs\n {\n DisplayName = \"D. Duck\",\n Password = \"SecretP@sswd99!\",\n UserPrincipalName = exampleDomains.Apply(exampleDomains =\u003e $\"d.duck@{exampleDomains.Domains?[0]?.DomainName}\"),\n });\n var exampleIndex_appRoleAssignmentAppRoleAssignment = new AzureAD.AppRoleAssignment(\"exampleIndex/appRoleAssignmentAppRoleAssignment\", new AzureAD.AppRoleAssignmentArgs\n {\n AppRoleId = internalServicePrincipal.AppRoleIds.Apply(appRoleIds =\u003e appRoleIds.Admin_All),\n PrincipalObjectId = exampleUser.ObjectId,\n ResourceObjectId = internalServicePrincipal.ObjectId,\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDomains, err := azuread.GetDomains(ctx, \u0026GetDomainsArgs{\n\t\t\tOnlyInitial: pulumi.BoolRef(true),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tinternalApplication, err := azuread.NewApplication(ctx, \"internalApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"internal\"),\n\t\t\tAppRoles: ApplicationAppRoleArray{\n\t\t\t\t\u0026ApplicationAppRoleArgs{\n\t\t\t\t\tAllowedMemberTypes: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"Application\"),\n\t\t\t\t\t\tpulumi.String(\"User\"),\n\t\t\t\t\t},\n\t\t\t\t\tDescription: pulumi.String(\"Admins can perform all task actions\"),\n\t\t\t\t\tDisplayName: pulumi.String(\"Admin\"),\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tId: pulumi.String(\"00000000-0000-0000-0000-222222222222\"),\n\t\t\t\t\tValue: pulumi.String(\"Admin.All\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tinternalServicePrincipal, err := azuread.NewServicePrincipal(ctx, \"internalServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: internalApplication.ApplicationId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleGroup, err := azuread.NewGroup(ctx, \"exampleGroup\", \u0026azuread.GroupArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tSecurityEnabled: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewAppRoleAssignment(ctx, \"exampleAppRoleAssignment\", \u0026azuread.AppRoleAssignmentArgs{\n\t\t\tAppRoleId: internalServicePrincipal.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) {\n\t\t\t\treturn appRoleIds.Admin.All, nil\n\t\t\t}).(pulumi.StringOutput),\n\t\t\tPrincipalObjectId: exampleGroup.ObjectId,\n\t\t\tResourceObjectId: internalServicePrincipal.ObjectId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleUser, err := azuread.NewUser(ctx, \"exampleUser\", \u0026azuread.UserArgs{\n\t\t\tDisplayName: pulumi.String(\"D. Duck\"),\n\t\t\tPassword: pulumi.String(\"SecretP@sswd99!\"),\n\t\t\tUserPrincipalName: pulumi.String(fmt.Sprintf(\"%v%v\", \"d.duck@\", exampleDomains.Domains[0].DomainName)),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewAppRoleAssignment(ctx, \"exampleIndex/appRoleAssignmentAppRoleAssignment\", \u0026azuread.AppRoleAssignmentArgs{\n\t\t\tAppRoleId: internalServicePrincipal.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) {\n\t\t\t\treturn appRoleIds.Admin.All, nil\n\t\t\t}).(pulumi.StringOutput),\n\t\t\tPrincipalObjectId: exampleUser.ObjectId,\n\t\t\tResourceObjectId: internalServicePrincipal.ObjectId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 exampleDomains = Output.of(AzureadFunctions.getDomains(GetDomainsArgs.builder()\n .onlyInitial(true)\n .build()));\n\n var internalApplication = new Application(\"internalApplication\", ApplicationArgs.builder() \n .displayName(\"internal\")\n .appRoles(ApplicationAppRole.builder()\n .allowedMemberTypes( \n \"Application\",\n \"User\")\n .description(\"Admins can perform all task actions\")\n .displayName(\"Admin\")\n .enabled(true)\n .id(\"00000000-0000-0000-0000-222222222222\")\n .value(\"Admin.All\")\n .build())\n .build());\n\n var internalServicePrincipal = new ServicePrincipal(\"internalServicePrincipal\", ServicePrincipalArgs.builder() \n .applicationId(internalApplication.getApplicationId())\n .build());\n\n var exampleGroup = new Group(\"exampleGroup\", GroupArgs.builder() \n .displayName(\"example\")\n .securityEnabled(true)\n .build());\n\n var exampleAppRoleAssignment = new AppRoleAssignment(\"exampleAppRoleAssignment\", AppRoleAssignmentArgs.builder() \n .appRoleId(internalServicePrincipal.getAppRoleIds().apply(appRoleIds -\u003e appRoleIds.getAdmin.All()))\n .principalObjectId(exampleGroup.getObjectId())\n .resourceObjectId(internalServicePrincipal.getObjectId())\n .build());\n\n var exampleUser = new User(\"exampleUser\", UserArgs.builder() \n .displayName(\"D. Duck\")\n .password(\"SecretP@sswd99!\")\n .userPrincipalName(String.format(\"d.duck@%s\", exampleDomains.apply(getDomainsResult -\u003e getDomainsResult.getDomains()[0].getDomainName())))\n .build());\n\n var exampleIndex_appRoleAssignmentAppRoleAssignment = new AppRoleAssignment(\"exampleIndex/appRoleAssignmentAppRoleAssignment\", AppRoleAssignmentArgs.builder() \n .appRoleId(internalServicePrincipal.getAppRoleIds().apply(appRoleIds -\u003e appRoleIds.getAdmin.All()))\n .principalObjectId(exampleUser.getObjectId())\n .resourceObjectId(internalServicePrincipal.getObjectId())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n internalApplication:\n type: azuread:Application\n properties:\n displayName: internal\n appRoles:\n - allowedMemberTypes:\n - Application\n - User\n description: Admins can perform all task actions\n displayName: Admin\n enabled: true\n id: 00000000-0000-0000-0000-222222222222\n value: Admin.All\n internalServicePrincipal:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${internalApplication.applicationId}\n exampleGroup:\n type: azuread:Group\n properties:\n displayName: example\n securityEnabled: true\n exampleAppRoleAssignment:\n type: azuread:AppRoleAssignment\n properties:\n appRoleId: ${internalServicePrincipal.appRoleIds\"Admin.All\"[%!s(MISSING)]}\n principalObjectId: ${exampleGroup.objectId}\n resourceObjectId: ${internalServicePrincipal.objectId}\n exampleUser:\n type: azuread:User\n properties:\n displayName: D. Duck\n password: SecretP@sswd99!\n userPrincipalName: d.duck@${exampleDomains.domains[0].domainName}\n exampleIndex/appRoleAssignmentAppRoleAssignment:\n type: azuread:AppRoleAssignment\n properties:\n appRoleId: ${internalServicePrincipal.appRoleIds\"Admin.All\"[%!s(MISSING)]}\n principalObjectId: ${exampleUser.objectId}\n resourceObjectId: ${internalServicePrincipal.objectId}\nvariables:\n exampleDomains:\n Fn::Invoke:\n Function: azuread:getDomains\n Arguments:\n onlyInitial: true\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nApp role assignments can be imported using the object ID of the service principal representing the resource and the ID of the app role assignment (note_not_ the ID of the app role), e.g.\n\n```sh\n $ pulumi import azuread:index/appRoleAssignment:AppRoleAssignment example 00000000-0000-0000-0000-000000000000/appRoleAssignment/aaBBcDDeFG6h5JKLMN2PQrrssTTUUvWWxxxxxyyyzzz\n```\n\n -\u003e This ID format is unique to Terraform and is composed of the Resource Service Principal Object ID and the ID of the App Role Assignment in the format `{ResourcePrincipalID}/appRoleAssignment/{AppRoleAssignmentID}`. ", + "description": "Manages an app role assignment for a group, user or service principal. Can be used to grant admin consent for application permissions.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires one of the following application roles: `AppRoleAssignment.ReadWrite.All` and `Application.Read.All`, or `AppRoleAssignment.ReadWrite.All` and `Directory.Read.All`, or `Application.ReadWrite.All`, or `Directory.ReadWrite.All`\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Application Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*App role assignment for accessing Microsoft Graph*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst wellKnown = azuread.getApplicationPublishedAppIds({});\nconst msgraph = new azuread.ServicePrincipal(\"msgraph\", {\n applicationId: wellKnown.then(wellKnown =\u003e wellKnown.result?.MicrosoftGraph),\n useExisting: true,\n});\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {\n displayName: \"example\",\n requiredResourceAccesses: [{\n resourceAppId: wellKnown.then(wellKnown =\u003e wellKnown.result?.MicrosoftGraph),\n resourceAccesses: [\n {\n id: msgraph.appRoleIds[\"User.Read.All\"],\n type: \"Role\",\n },\n {\n id: msgraph.oauth2PermissionScopeIds[\"User.ReadWrite\"],\n type: \"Scope\",\n },\n ],\n }],\n});\nconst exampleServicePrincipal = new azuread.ServicePrincipal(\"exampleServicePrincipal\", {applicationId: exampleApplication.applicationId});\nconst exampleAppRoleAssignment = new azuread.AppRoleAssignment(\"exampleAppRoleAssignment\", {\n appRoleId: msgraph.appRoleIds[\"User.Read.All\"],\n principalObjectId: exampleServicePrincipal.objectId,\n resourceObjectId: msgraph.objectId,\n});\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var wellKnown = AzureAD.GetApplicationPublishedAppIds.Invoke();\n\n var msgraph = new AzureAD.ServicePrincipal(\"msgraph\", new()\n {\n ApplicationId = wellKnown.Apply(getApplicationPublishedAppIdsResult =\u003e getApplicationPublishedAppIdsResult.Result?.MicrosoftGraph),\n UseExisting = true,\n });\n\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new()\n {\n DisplayName = \"example\",\n RequiredResourceAccesses = new[]\n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs\n {\n ResourceAppId = wellKnown.Apply(getApplicationPublishedAppIdsResult =\u003e getApplicationPublishedAppIdsResult.Result?.MicrosoftGraph),\n ResourceAccesses = new[]\n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = msgraph.AppRoleIds.Apply(appRoleIds =\u003e appRoleIds.User_Read_All),\n Type = \"Role\",\n },\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds =\u003e oauth2PermissionScopeIds.User_ReadWrite),\n Type = \"Scope\",\n },\n },\n },\n },\n });\n\n var exampleServicePrincipal = new AzureAD.ServicePrincipal(\"exampleServicePrincipal\", new()\n {\n ApplicationId = exampleApplication.ApplicationId,\n });\n\n var exampleAppRoleAssignment = new AzureAD.AppRoleAssignment(\"exampleAppRoleAssignment\", new()\n {\n AppRoleId = msgraph.AppRoleIds.Apply(appRoleIds =\u003e appRoleIds.User_Read_All),\n PrincipalObjectId = exampleServicePrincipal.ObjectId,\n ResourceObjectId = msgraph.ObjectId,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\twellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tmsgraph, err := azuread.NewServicePrincipal(ctx, \"msgraph\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: pulumi.String(wellKnown.Result.MicrosoftGraph),\n\t\t\tUseExisting: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tRequiredResourceAccesses: ApplicationRequiredResourceAccessArray{\n\t\t\t\t\u0026ApplicationRequiredResourceAccessArgs{\n\t\t\t\t\tResourceAppId: pulumi.String(wellKnown.Result.MicrosoftGraph),\n\t\t\t\t\tResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: msgraph.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) {\n\t\t\t\t\t\t\t\treturn appRoleIds.User.Read.All, nil\n\t\t\t\t\t\t\t}).(pulumi.StringOutput),\n\t\t\t\t\t\t\tType: pulumi.String(\"Role\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) {\n\t\t\t\t\t\t\t\treturn oauth2PermissionScopeIds.User.ReadWrite, nil\n\t\t\t\t\t\t\t}).(pulumi.StringOutput),\n\t\t\t\t\t\t\tType: pulumi.String(\"Scope\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServicePrincipal, err := azuread.NewServicePrincipal(ctx, \"exampleServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: exampleApplication.ApplicationId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewAppRoleAssignment(ctx, \"exampleAppRoleAssignment\", \u0026azuread.AppRoleAssignmentArgs{\n\t\t\tAppRoleId: msgraph.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) {\n\t\t\t\treturn appRoleIds.User.Read.All, nil\n\t\t\t}).(pulumi.StringOutput),\n\t\t\tPrincipalObjectId: exampleServicePrincipal.ObjectId,\n\t\t\tResourceObjectId: msgraph.ObjectId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.ServicePrincipal;\nimport com.pulumi.azuread.ServicePrincipalArgs;\nimport com.pulumi.azuread.Application;\nimport com.pulumi.azuread.ApplicationArgs;\nimport com.pulumi.azuread.inputs.ApplicationRequiredResourceAccessArgs;\nimport com.pulumi.azuread.AppRoleAssignment;\nimport com.pulumi.azuread.AppRoleAssignmentArgs;\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 wellKnown = AzureadFunctions.getApplicationPublishedAppIds();\n\n var msgraph = new ServicePrincipal(\"msgraph\", ServicePrincipalArgs.builder() \n .applicationId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -\u003e getApplicationPublishedAppIdsResult.result().MicrosoftGraph()))\n .useExisting(true)\n .build());\n\n var exampleApplication = new Application(\"exampleApplication\", ApplicationArgs.builder() \n .displayName(\"example\")\n .requiredResourceAccesses(ApplicationRequiredResourceAccessArgs.builder()\n .resourceAppId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -\u003e getApplicationPublishedAppIdsResult.result().MicrosoftGraph()))\n .resourceAccesses( \n ApplicationRequiredResourceAccessResourceAccessArgs.builder()\n .id(msgraph.appRoleIds().applyValue(appRoleIds -\u003e appRoleIds.User.Read.All()))\n .type(\"Role\")\n .build(),\n ApplicationRequiredResourceAccessResourceAccessArgs.builder()\n .id(msgraph.oauth2PermissionScopeIds().applyValue(oauth2PermissionScopeIds -\u003e oauth2PermissionScopeIds.User.ReadWrite()))\n .type(\"Scope\")\n .build())\n .build())\n .build());\n\n var exampleServicePrincipal = new ServicePrincipal(\"exampleServicePrincipal\", ServicePrincipalArgs.builder() \n .applicationId(exampleApplication.applicationId())\n .build());\n\n var exampleAppRoleAssignment = new AppRoleAssignment(\"exampleAppRoleAssignment\", AppRoleAssignmentArgs.builder() \n .appRoleId(msgraph.appRoleIds().applyValue(appRoleIds -\u003e appRoleIds.User.Read.All()))\n .principalObjectId(exampleServicePrincipal.objectId())\n .resourceObjectId(msgraph.objectId())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n msgraph:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${wellKnown.result.MicrosoftGraph}\n useExisting: true\n exampleApplication:\n type: azuread:Application\n properties:\n displayName: example\n requiredResourceAccesses:\n - resourceAppId: ${wellKnown.result.MicrosoftGraph}\n resourceAccesses:\n - id: ${msgraph.appRoleIds\"User.Read.All\"[%!s(MISSING)]}\n type: Role\n - id: ${msgraph.oauth2PermissionScopeIds\"User.ReadWrite\"[%!s(MISSING)]}\n type: Scope\n exampleServicePrincipal:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${exampleApplication.applicationId}\n exampleAppRoleAssignment:\n type: azuread:AppRoleAssignment\n properties:\n appRoleId: ${msgraph.appRoleIds\"User.Read.All\"[%!s(MISSING)]}\n principalObjectId: ${exampleServicePrincipal.objectId}\n resourceObjectId: ${msgraph.objectId}\nvariables:\n wellKnown:\n Fn::Invoke:\n Function: azuread:getApplicationPublishedAppIds\n Arguments: {}\n```\n\n*App role assignment for internal application*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst internalApplication = new azuread.Application(\"internalApplication\", {\n displayName: \"internal\",\n appRoles: [{\n allowedMemberTypes: [\"Application\"],\n description: \"Apps can query the database\",\n displayName: \"Query\",\n enabled: true,\n id: \"00000000-0000-0000-0000-111111111111\",\n value: \"Query.All\",\n }],\n});\nconst internalServicePrincipal = new azuread.ServicePrincipal(\"internalServicePrincipal\", {applicationId: internalApplication.applicationId});\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {\n displayName: \"example\",\n requiredResourceAccesses: [{\n resourceAppId: internalApplication.applicationId,\n resourceAccesses: [{\n id: internalServicePrincipal.appRoleIds[\"Query.All\"],\n type: \"Role\",\n }],\n }],\n});\nconst exampleServicePrincipal = new azuread.ServicePrincipal(\"exampleServicePrincipal\", {applicationId: exampleApplication.applicationId});\nconst exampleAppRoleAssignment = new azuread.AppRoleAssignment(\"exampleAppRoleAssignment\", {\n appRoleId: internalServicePrincipal.appRoleIds[\"Query.All\"],\n principalObjectId: exampleServicePrincipal.objectId,\n resourceObjectId: internalServicePrincipal.objectId,\n});\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var internalApplication = new AzureAD.Application(\"internalApplication\", new()\n {\n DisplayName = \"internal\",\n AppRoles = new[]\n {\n new AzureAD.Inputs.ApplicationAppRoleArgs\n {\n AllowedMemberTypes = new[]\n {\n \"Application\",\n },\n Description = \"Apps can query the database\",\n DisplayName = \"Query\",\n Enabled = true,\n Id = \"00000000-0000-0000-0000-111111111111\",\n Value = \"Query.All\",\n },\n },\n });\n\n var internalServicePrincipal = new AzureAD.ServicePrincipal(\"internalServicePrincipal\", new()\n {\n ApplicationId = internalApplication.ApplicationId,\n });\n\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new()\n {\n DisplayName = \"example\",\n RequiredResourceAccesses = new[]\n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs\n {\n ResourceAppId = internalApplication.ApplicationId,\n ResourceAccesses = new[]\n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = internalServicePrincipal.AppRoleIds.Apply(appRoleIds =\u003e appRoleIds.Query_All),\n Type = \"Role\",\n },\n },\n },\n },\n });\n\n var exampleServicePrincipal = new AzureAD.ServicePrincipal(\"exampleServicePrincipal\", new()\n {\n ApplicationId = exampleApplication.ApplicationId,\n });\n\n var exampleAppRoleAssignment = new AzureAD.AppRoleAssignment(\"exampleAppRoleAssignment\", new()\n {\n AppRoleId = internalServicePrincipal.AppRoleIds.Apply(appRoleIds =\u003e appRoleIds.Query_All),\n PrincipalObjectId = exampleServicePrincipal.ObjectId,\n ResourceObjectId = internalServicePrincipal.ObjectId,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tinternalApplication, err := azuread.NewApplication(ctx, \"internalApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"internal\"),\n\t\t\tAppRoles: ApplicationAppRoleArray{\n\t\t\t\t\u0026ApplicationAppRoleArgs{\n\t\t\t\t\tAllowedMemberTypes: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"Application\"),\n\t\t\t\t\t},\n\t\t\t\t\tDescription: pulumi.String(\"Apps can query the database\"),\n\t\t\t\t\tDisplayName: pulumi.String(\"Query\"),\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tId: pulumi.String(\"00000000-0000-0000-0000-111111111111\"),\n\t\t\t\t\tValue: pulumi.String(\"Query.All\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tinternalServicePrincipal, err := azuread.NewServicePrincipal(ctx, \"internalServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: internalApplication.ApplicationId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tRequiredResourceAccesses: ApplicationRequiredResourceAccessArray{\n\t\t\t\t\u0026ApplicationRequiredResourceAccessArgs{\n\t\t\t\t\tResourceAppId: internalApplication.ApplicationId,\n\t\t\t\t\tResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: internalServicePrincipal.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) {\n\t\t\t\t\t\t\t\treturn appRoleIds.Query.All, nil\n\t\t\t\t\t\t\t}).(pulumi.StringOutput),\n\t\t\t\t\t\t\tType: pulumi.String(\"Role\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServicePrincipal, err := azuread.NewServicePrincipal(ctx, \"exampleServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: exampleApplication.ApplicationId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewAppRoleAssignment(ctx, \"exampleAppRoleAssignment\", \u0026azuread.AppRoleAssignmentArgs{\n\t\t\tAppRoleId: internalServicePrincipal.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) {\n\t\t\t\treturn appRoleIds.Query.All, nil\n\t\t\t}).(pulumi.StringOutput),\n\t\t\tPrincipalObjectId: exampleServicePrincipal.ObjectId,\n\t\t\tResourceObjectId: internalServicePrincipal.ObjectId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.Application;\nimport com.pulumi.azuread.ApplicationArgs;\nimport com.pulumi.azuread.inputs.ApplicationAppRoleArgs;\nimport com.pulumi.azuread.ServicePrincipal;\nimport com.pulumi.azuread.ServicePrincipalArgs;\nimport com.pulumi.azuread.inputs.ApplicationRequiredResourceAccessArgs;\nimport com.pulumi.azuread.AppRoleAssignment;\nimport com.pulumi.azuread.AppRoleAssignmentArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var internalApplication = new Application(\"internalApplication\", ApplicationArgs.builder() \n .displayName(\"internal\")\n .appRoles(ApplicationAppRoleArgs.builder()\n .allowedMemberTypes(\"Application\")\n .description(\"Apps can query the database\")\n .displayName(\"Query\")\n .enabled(true)\n .id(\"00000000-0000-0000-0000-111111111111\")\n .value(\"Query.All\")\n .build())\n .build());\n\n var internalServicePrincipal = new ServicePrincipal(\"internalServicePrincipal\", ServicePrincipalArgs.builder() \n .applicationId(internalApplication.applicationId())\n .build());\n\n var exampleApplication = new Application(\"exampleApplication\", ApplicationArgs.builder() \n .displayName(\"example\")\n .requiredResourceAccesses(ApplicationRequiredResourceAccessArgs.builder()\n .resourceAppId(internalApplication.applicationId())\n .resourceAccesses(ApplicationRequiredResourceAccessResourceAccessArgs.builder()\n .id(internalServicePrincipal.appRoleIds().applyValue(appRoleIds -\u003e appRoleIds.Query.All()))\n .type(\"Role\")\n .build())\n .build())\n .build());\n\n var exampleServicePrincipal = new ServicePrincipal(\"exampleServicePrincipal\", ServicePrincipalArgs.builder() \n .applicationId(exampleApplication.applicationId())\n .build());\n\n var exampleAppRoleAssignment = new AppRoleAssignment(\"exampleAppRoleAssignment\", AppRoleAssignmentArgs.builder() \n .appRoleId(internalServicePrincipal.appRoleIds().applyValue(appRoleIds -\u003e appRoleIds.Query.All()))\n .principalObjectId(exampleServicePrincipal.objectId())\n .resourceObjectId(internalServicePrincipal.objectId())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n internalApplication:\n type: azuread:Application\n properties:\n displayName: internal\n appRoles:\n - allowedMemberTypes:\n - Application\n description: Apps can query the database\n displayName: Query\n enabled: true\n id: 00000000-0000-0000-0000-111111111111\n value: Query.All\n internalServicePrincipal:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${internalApplication.applicationId}\n exampleApplication:\n type: azuread:Application\n properties:\n displayName: example\n requiredResourceAccesses:\n - resourceAppId: ${internalApplication.applicationId}\n resourceAccesses:\n - id: ${internalServicePrincipal.appRoleIds\"Query.All\"[%!s(MISSING)]}\n type: Role\n exampleServicePrincipal:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${exampleApplication.applicationId}\n exampleAppRoleAssignment:\n type: azuread:AppRoleAssignment\n properties:\n appRoleId: ${internalServicePrincipal.appRoleIds\"Query.All\"[%!s(MISSING)]}\n principalObjectId: ${exampleServicePrincipal.objectId}\n resourceObjectId: ${internalServicePrincipal.objectId}\n```\n\n*Assign a user and group to an internal application*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleDomains = azuread.getDomains({\n onlyInitial: true,\n});\nconst internalApplication = new azuread.Application(\"internalApplication\", {\n displayName: \"internal\",\n appRoles: [{\n allowedMemberTypes: [\n \"Application\",\n \"User\",\n ],\n description: \"Admins can perform all task actions\",\n displayName: \"Admin\",\n enabled: true,\n id: \"00000000-0000-0000-0000-222222222222\",\n value: \"Admin.All\",\n }],\n});\nconst internalServicePrincipal = new azuread.ServicePrincipal(\"internalServicePrincipal\", {applicationId: internalApplication.applicationId});\nconst exampleGroup = new azuread.Group(\"exampleGroup\", {\n displayName: \"example\",\n securityEnabled: true,\n});\nconst exampleAppRoleAssignment = new azuread.AppRoleAssignment(\"exampleAppRoleAssignment\", {\n appRoleId: internalServicePrincipal.appRoleIds[\"Admin.All\"],\n principalObjectId: exampleGroup.objectId,\n resourceObjectId: internalServicePrincipal.objectId,\n});\nconst exampleUser = new azuread.User(\"exampleUser\", {\n displayName: \"D. Duck\",\n password: \"SecretP@sswd99!\",\n userPrincipalName: exampleDomains.then(exampleDomains =\u003e `d.duck@${exampleDomains.domains?[0]?.domainName}`),\n});\nconst exampleIndex_appRoleAssignmentAppRoleAssignment = new azuread.AppRoleAssignment(\"exampleIndex/appRoleAssignmentAppRoleAssignment\", {\n appRoleId: internalServicePrincipal.appRoleIds[\"Admin.All\"],\n principalObjectId: exampleUser.objectId,\n resourceObjectId: internalServicePrincipal.objectId,\n});\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleDomains = AzureAD.GetDomains.Invoke(new()\n {\n OnlyInitial = true,\n });\n\n var internalApplication = new AzureAD.Application(\"internalApplication\", new()\n {\n DisplayName = \"internal\",\n AppRoles = new[]\n {\n new AzureAD.Inputs.ApplicationAppRoleArgs\n {\n AllowedMemberTypes = new[]\n {\n \"Application\",\n \"User\",\n },\n Description = \"Admins can perform all task actions\",\n DisplayName = \"Admin\",\n Enabled = true,\n Id = \"00000000-0000-0000-0000-222222222222\",\n Value = \"Admin.All\",\n },\n },\n });\n\n var internalServicePrincipal = new AzureAD.ServicePrincipal(\"internalServicePrincipal\", new()\n {\n ApplicationId = internalApplication.ApplicationId,\n });\n\n var exampleGroup = new AzureAD.Group(\"exampleGroup\", new()\n {\n DisplayName = \"example\",\n SecurityEnabled = true,\n });\n\n var exampleAppRoleAssignment = new AzureAD.AppRoleAssignment(\"exampleAppRoleAssignment\", new()\n {\n AppRoleId = internalServicePrincipal.AppRoleIds.Apply(appRoleIds =\u003e appRoleIds.Admin_All),\n PrincipalObjectId = exampleGroup.ObjectId,\n ResourceObjectId = internalServicePrincipal.ObjectId,\n });\n\n var exampleUser = new AzureAD.User(\"exampleUser\", new()\n {\n DisplayName = \"D. Duck\",\n Password = \"SecretP@sswd99!\",\n UserPrincipalName = $\"d.duck@{exampleDomains.Apply(getDomainsResult =\u003e getDomainsResult.Domains[0]?.DomainName)}\",\n });\n\n var exampleIndex_appRoleAssignmentAppRoleAssignment = new AzureAD.AppRoleAssignment(\"exampleIndex/appRoleAssignmentAppRoleAssignment\", new()\n {\n AppRoleId = internalServicePrincipal.AppRoleIds.Apply(appRoleIds =\u003e appRoleIds.Admin_All),\n PrincipalObjectId = exampleUser.ObjectId,\n ResourceObjectId = internalServicePrincipal.ObjectId,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDomains, err := azuread.GetDomains(ctx, \u0026GetDomainsArgs{\n\t\t\tOnlyInitial: pulumi.BoolRef(true),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tinternalApplication, err := azuread.NewApplication(ctx, \"internalApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"internal\"),\n\t\t\tAppRoles: ApplicationAppRoleArray{\n\t\t\t\t\u0026ApplicationAppRoleArgs{\n\t\t\t\t\tAllowedMemberTypes: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"Application\"),\n\t\t\t\t\t\tpulumi.String(\"User\"),\n\t\t\t\t\t},\n\t\t\t\t\tDescription: pulumi.String(\"Admins can perform all task actions\"),\n\t\t\t\t\tDisplayName: pulumi.String(\"Admin\"),\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tId: pulumi.String(\"00000000-0000-0000-0000-222222222222\"),\n\t\t\t\t\tValue: pulumi.String(\"Admin.All\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tinternalServicePrincipal, err := azuread.NewServicePrincipal(ctx, \"internalServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: internalApplication.ApplicationId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleGroup, err := azuread.NewGroup(ctx, \"exampleGroup\", \u0026azuread.GroupArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tSecurityEnabled: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewAppRoleAssignment(ctx, \"exampleAppRoleAssignment\", \u0026azuread.AppRoleAssignmentArgs{\n\t\t\tAppRoleId: internalServicePrincipal.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) {\n\t\t\t\treturn appRoleIds.Admin.All, nil\n\t\t\t}).(pulumi.StringOutput),\n\t\t\tPrincipalObjectId: exampleGroup.ObjectId,\n\t\t\tResourceObjectId: internalServicePrincipal.ObjectId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleUser, err := azuread.NewUser(ctx, \"exampleUser\", \u0026azuread.UserArgs{\n\t\t\tDisplayName: pulumi.String(\"D. Duck\"),\n\t\t\tPassword: pulumi.String(\"SecretP@sswd99!\"),\n\t\t\tUserPrincipalName: pulumi.String(fmt.Sprintf(\"d.duck@%v\", exampleDomains.Domains[0].DomainName)),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewAppRoleAssignment(ctx, \"exampleIndex/appRoleAssignmentAppRoleAssignment\", \u0026azuread.AppRoleAssignmentArgs{\n\t\t\tAppRoleId: internalServicePrincipal.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) {\n\t\t\t\treturn appRoleIds.Admin.All, nil\n\t\t\t}).(pulumi.StringOutput),\n\t\t\tPrincipalObjectId: exampleUser.ObjectId,\n\t\t\tResourceObjectId: internalServicePrincipal.ObjectId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetDomainsArgs;\nimport com.pulumi.azuread.Application;\nimport com.pulumi.azuread.ApplicationArgs;\nimport com.pulumi.azuread.inputs.ApplicationAppRoleArgs;\nimport com.pulumi.azuread.ServicePrincipal;\nimport com.pulumi.azuread.ServicePrincipalArgs;\nimport com.pulumi.azuread.Group;\nimport com.pulumi.azuread.GroupArgs;\nimport com.pulumi.azuread.AppRoleAssignment;\nimport com.pulumi.azuread.AppRoleAssignmentArgs;\nimport com.pulumi.azuread.User;\nimport com.pulumi.azuread.UserArgs;\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 exampleDomains = AzureadFunctions.getDomains(GetDomainsArgs.builder()\n .onlyInitial(true)\n .build());\n\n var internalApplication = new Application(\"internalApplication\", ApplicationArgs.builder() \n .displayName(\"internal\")\n .appRoles(ApplicationAppRoleArgs.builder()\n .allowedMemberTypes( \n \"Application\",\n \"User\")\n .description(\"Admins can perform all task actions\")\n .displayName(\"Admin\")\n .enabled(true)\n .id(\"00000000-0000-0000-0000-222222222222\")\n .value(\"Admin.All\")\n .build())\n .build());\n\n var internalServicePrincipal = new ServicePrincipal(\"internalServicePrincipal\", ServicePrincipalArgs.builder() \n .applicationId(internalApplication.applicationId())\n .build());\n\n var exampleGroup = new Group(\"exampleGroup\", GroupArgs.builder() \n .displayName(\"example\")\n .securityEnabled(true)\n .build());\n\n var exampleAppRoleAssignment = new AppRoleAssignment(\"exampleAppRoleAssignment\", AppRoleAssignmentArgs.builder() \n .appRoleId(internalServicePrincipal.appRoleIds().applyValue(appRoleIds -\u003e appRoleIds.Admin.All()))\n .principalObjectId(exampleGroup.objectId())\n .resourceObjectId(internalServicePrincipal.objectId())\n .build());\n\n var exampleUser = new User(\"exampleUser\", UserArgs.builder() \n .displayName(\"D. Duck\")\n .password(\"SecretP@sswd99!\")\n .userPrincipalName(String.format(\"d.duck@%s\", exampleDomains.applyValue(getDomainsResult -\u003e getDomainsResult.domains()[0].domainName())))\n .build());\n\n var exampleIndex_appRoleAssignmentAppRoleAssignment = new AppRoleAssignment(\"exampleIndex/appRoleAssignmentAppRoleAssignment\", AppRoleAssignmentArgs.builder() \n .appRoleId(internalServicePrincipal.appRoleIds().applyValue(appRoleIds -\u003e appRoleIds.Admin.All()))\n .principalObjectId(exampleUser.objectId())\n .resourceObjectId(internalServicePrincipal.objectId())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n internalApplication:\n type: azuread:Application\n properties:\n displayName: internal\n appRoles:\n - allowedMemberTypes:\n - Application\n - User\n description: Admins can perform all task actions\n displayName: Admin\n enabled: true\n id: 00000000-0000-0000-0000-222222222222\n value: Admin.All\n internalServicePrincipal:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${internalApplication.applicationId}\n exampleGroup:\n type: azuread:Group\n properties:\n displayName: example\n securityEnabled: true\n exampleAppRoleAssignment:\n type: azuread:AppRoleAssignment\n properties:\n appRoleId: ${internalServicePrincipal.appRoleIds\"Admin.All\"[%!s(MISSING)]}\n principalObjectId: ${exampleGroup.objectId}\n resourceObjectId: ${internalServicePrincipal.objectId}\n exampleUser:\n type: azuread:User\n properties:\n displayName: D. Duck\n password: SecretP@sswd99!\n userPrincipalName: d.duck@${exampleDomains.domains[0].domainName}\n exampleIndex/appRoleAssignmentAppRoleAssignment:\n type: azuread:AppRoleAssignment\n properties:\n appRoleId: ${internalServicePrincipal.appRoleIds\"Admin.All\"[%!s(MISSING)]}\n principalObjectId: ${exampleUser.objectId}\n resourceObjectId: ${internalServicePrincipal.objectId}\nvariables:\n exampleDomains:\n Fn::Invoke:\n Function: azuread:getDomains\n Arguments:\n onlyInitial: true\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nApp role assignments can be imported using the object ID of the service principal representing the resource and the ID of the app role assignment (note_not_ the ID of the app role), e.g.\n\n```sh\n $ pulumi import azuread:index/appRoleAssignment:AppRoleAssignment example 00000000-0000-0000-0000-000000000000/appRoleAssignment/aaBBcDDeFG6h5JKLMN2PQrrssTTUUvWWxxxxxyyyzzz\n```\n\n -\u003e This ID format is unique to Terraform and is composed of the Resource Service Principal Object ID and the ID of the App Role Assignment in the format `{ResourcePrincipalID}/appRoleAssignment/{AppRoleAssignmentID}`. ", "properties": { "appRoleId": { "type": "string", @@ -3141,15 +3183,18 @@ "inputProperties": { "appRoleId": { "type": "string", - "description": "The ID of the app role to be assigned. Changing this forces a new resource to be created.\n" + "description": "The ID of the app role to be assigned. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "principalObjectId": { "type": "string", - "description": "The object ID of the user, group or service principal to be assigned this app role. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.\n" + "description": "The object ID of the user, group or service principal to be assigned this app role. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "resourceObjectId": { "type": "string", - "description": "The object ID of the service principal representing the resource. Changing this forces a new resource to be created.\n" + "description": "The object ID of the service principal representing the resource. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true } }, "requiredInputs": [ @@ -3162,7 +3207,8 @@ "properties": { "appRoleId": { "type": "string", - "description": "The ID of the app role to be assigned. Changing this forces a new resource to be created.\n" + "description": "The ID of the app role to be assigned. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "principalDisplayName": { "type": "string", @@ -3170,7 +3216,8 @@ }, "principalObjectId": { "type": "string", - "description": "The object ID of the user, group or service principal to be assigned this app role. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.\n" + "description": "The object ID of the user, group or service principal to be assigned this app role. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "principalType": { "type": "string", @@ -3182,14 +3229,15 @@ }, "resourceObjectId": { "type": "string", - "description": "The object ID of the service principal representing the resource. Changing this forces a new resource to be created.\n" + "description": "The object ID of the service principal representing the resource. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true } }, "type": "object" } }, "azuread:index/application:Application": { - "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*Create an application*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\nimport * from \"fs\";\n\nconst current = azuread.getClientConfig({});\nconst example = new azuread.Application(\"example\", {\n displayName: \"example\",\n identifierUris: [\"api://example-app\"],\n logoImage: Buffer.from(fs.readFileSync(\"/path/to/logo.png\"), 'binary').toString('base64'),\n owners: [current.then(current =\u003e current.objectId)],\n signInAudience: \"AzureADMultipleOrgs\",\n api: {\n mappedClaimsEnabled: true,\n requestedAccessTokenVersion: 2,\n knownClientApplications: [\n azuread_application.known1.application_id,\n azuread_application.known2.application_id,\n ],\n oauth2PermissionScopes: [\n {\n adminConsentDescription: \"Allow the application to access example on behalf of the signed-in user.\",\n adminConsentDisplayName: \"Access example\",\n enabled: true,\n id: \"96183846-204b-4b43-82e1-5d2222eb4b9b\",\n type: \"User\",\n userConsentDescription: \"Allow the application to access example on your behalf.\",\n userConsentDisplayName: \"Access example\",\n value: \"user_impersonation\",\n },\n {\n adminConsentDescription: \"Administer the example application\",\n adminConsentDisplayName: \"Administer\",\n enabled: true,\n id: \"be98fa3e-ab5b-4b11-83d9-04ba2b7946bc\",\n type: \"Admin\",\n value: \"administer\",\n },\n ],\n },\n appRoles: [\n {\n allowedMemberTypes: [\n \"User\",\n \"Application\",\n ],\n description: \"Admins can manage roles and perform all task actions\",\n displayName: \"Admin\",\n enabled: true,\n id: \"1b19509b-32b1-4e9f-b71d-4992aa991967\",\n value: \"admin\",\n },\n {\n allowedMemberTypes: [\"User\"],\n description: \"ReadOnly roles have limited query access\",\n displayName: \"ReadOnly\",\n enabled: true,\n id: \"497406e4-012a-4267-bf18-45a1cb148a01\",\n value: \"User\",\n },\n ],\n featureTags: [{\n enterprise: true,\n gallery: true,\n }],\n optionalClaims: {\n accessTokens: [\n {\n name: \"myclaim\",\n },\n {\n name: \"otherclaim\",\n },\n ],\n idTokens: [{\n name: \"userclaim\",\n source: \"user\",\n essential: true,\n additionalProperties: [\"emit_as_roles\"],\n }],\n saml2Tokens: [{\n name: \"samlexample\",\n }],\n },\n requiredResourceAccesses: [\n {\n resourceAppId: \"00000003-0000-0000-c000-000000000000\",\n resourceAccesses: [\n {\n id: \"df021288-bdef-4463-88db-98f22de89214\",\n type: \"Role\",\n },\n {\n id: \"b4e74841-8e56-480b-be8b-910348b18b4c\",\n type: \"Scope\",\n },\n ],\n },\n {\n resourceAppId: \"c5393580-f805-4401-95e8-94b7a6ef2fc2\",\n resourceAccesses: [{\n id: \"594c1fb6-4f81-4475-ae41-0c394909246c\",\n type: \"Role\",\n }],\n },\n ],\n web: {\n homepageUrl: \"https://app.example.net\",\n logoutUrl: \"https://app.example.net/logout\",\n redirectUris: [\"https://app.example.net/account\"],\n implicitGrant: {\n accessTokenIssuanceEnabled: true,\n idTokenIssuanceEnabled: true,\n },\n },\n});\n```\n```python\nimport pulumi\nimport base64\nimport pulumi_azuread as azuread\n\ncurrent = azuread.get_client_config()\nexample = azuread.Application(\"example\",\n display_name=\"example\",\n identifier_uris=[\"api://example-app\"],\n logo_image=(lambda path: base64.b64encode(open(path).read().encode()).decode())(\"/path/to/logo.png\"),\n owners=[current.object_id],\n sign_in_audience=\"AzureADMultipleOrgs\",\n api=azuread.ApplicationApiArgs(\n mapped_claims_enabled=True,\n requested_access_token_version=2,\n known_client_applications=[\n azuread_application[\"known1\"][\"application_id\"],\n azuread_application[\"known2\"][\"application_id\"],\n ],\n oauth2_permission_scopes=[\n azuread.ApplicationApiOauth2PermissionScopeArgs(\n admin_consent_description=\"Allow the application to access example on behalf of the signed-in user.\",\n admin_consent_display_name=\"Access example\",\n enabled=True,\n id=\"96183846-204b-4b43-82e1-5d2222eb4b9b\",\n type=\"User\",\n user_consent_description=\"Allow the application to access example on your behalf.\",\n user_consent_display_name=\"Access example\",\n value=\"user_impersonation\",\n ),\n azuread.ApplicationApiOauth2PermissionScopeArgs(\n admin_consent_description=\"Administer the example application\",\n admin_consent_display_name=\"Administer\",\n enabled=True,\n id=\"be98fa3e-ab5b-4b11-83d9-04ba2b7946bc\",\n type=\"Admin\",\n value=\"administer\",\n ),\n ],\n ),\n app_roles=[\n azuread.ApplicationAppRoleArgs(\n allowed_member_types=[\n \"User\",\n \"Application\",\n ],\n description=\"Admins can manage roles and perform all task actions\",\n display_name=\"Admin\",\n enabled=True,\n id=\"1b19509b-32b1-4e9f-b71d-4992aa991967\",\n value=\"admin\",\n ),\n azuread.ApplicationAppRoleArgs(\n allowed_member_types=[\"User\"],\n description=\"ReadOnly roles have limited query access\",\n display_name=\"ReadOnly\",\n enabled=True,\n id=\"497406e4-012a-4267-bf18-45a1cb148a01\",\n value=\"User\",\n ),\n ],\n feature_tags=[azuread.ApplicationFeatureTagArgs(\n enterprise=True,\n gallery=True,\n )],\n optional_claims=azuread.ApplicationOptionalClaimsArgs(\n access_tokens=[\n azuread.ApplicationOptionalClaimsAccessTokenArgs(\n name=\"myclaim\",\n ),\n azuread.ApplicationOptionalClaimsAccessTokenArgs(\n name=\"otherclaim\",\n ),\n ],\n id_tokens=[azuread.ApplicationOptionalClaimsIdTokenArgs(\n name=\"userclaim\",\n source=\"user\",\n essential=True,\n additional_properties=[\"emit_as_roles\"],\n )],\n saml2_tokens=[azuread.ApplicationOptionalClaimsSaml2TokenArgs(\n name=\"samlexample\",\n )],\n ),\n required_resource_accesses=[\n azuread.ApplicationRequiredResourceAccessArgs(\n resource_app_id=\"00000003-0000-0000-c000-000000000000\",\n resource_accesses=[\n azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=\"df021288-bdef-4463-88db-98f22de89214\",\n type=\"Role\",\n ),\n azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=\"b4e74841-8e56-480b-be8b-910348b18b4c\",\n type=\"Scope\",\n ),\n ],\n ),\n azuread.ApplicationRequiredResourceAccessArgs(\n resource_app_id=\"c5393580-f805-4401-95e8-94b7a6ef2fc2\",\n resource_accesses=[azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=\"594c1fb6-4f81-4475-ae41-0c394909246c\",\n type=\"Role\",\n )],\n ),\n ],\n web=azuread.ApplicationWebArgs(\n homepage_url=\"https://app.example.net\",\n logout_url=\"https://app.example.net/logout\",\n redirect_uris=[\"https://app.example.net/account\"],\n implicit_grant=azuread.ApplicationWebImplicitGrantArgs(\n access_token_issuance_enabled=True,\n id_token_issuance_enabled=True,\n ),\n ))\n```\n```csharp\nusing System;\nusing System.IO;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n\tprivate static string ReadFileBase64(string path) {\n\t\treturn Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path)))\n\t}\n\n public MyStack()\n {\n var current = Output.Create(AzureAD.GetClientConfig.InvokeAsync());\n var example = new AzureAD.Application(\"example\", new AzureAD.ApplicationArgs\n {\n DisplayName = \"example\",\n IdentifierUris = \n {\n \"api://example-app\",\n },\n LogoImage = ReadFileBase64(\"/path/to/logo.png\"),\n Owners = \n {\n current.Apply(current =\u003e current.ObjectId),\n },\n SignInAudience = \"AzureADMultipleOrgs\",\n Api = new AzureAD.Inputs.ApplicationApiArgs\n {\n MappedClaimsEnabled = true,\n RequestedAccessTokenVersion = 2,\n KnownClientApplications = \n {\n azuread_application.Known1.Application_id,\n azuread_application.Known2.Application_id,\n },\n Oauth2PermissionScopes = \n {\n new AzureAD.Inputs.ApplicationApiOauth2PermissionScopeArgs\n {\n AdminConsentDescription = \"Allow the application to access example on behalf of the signed-in user.\",\n AdminConsentDisplayName = \"Access example\",\n Enabled = true,\n Id = \"96183846-204b-4b43-82e1-5d2222eb4b9b\",\n Type = \"User\",\n UserConsentDescription = \"Allow the application to access example on your behalf.\",\n UserConsentDisplayName = \"Access example\",\n Value = \"user_impersonation\",\n },\n new AzureAD.Inputs.ApplicationApiOauth2PermissionScopeArgs\n {\n AdminConsentDescription = \"Administer the example application\",\n AdminConsentDisplayName = \"Administer\",\n Enabled = true,\n Id = \"be98fa3e-ab5b-4b11-83d9-04ba2b7946bc\",\n Type = \"Admin\",\n Value = \"administer\",\n },\n },\n },\n AppRoles = \n {\n new AzureAD.Inputs.ApplicationAppRoleArgs\n {\n AllowedMemberTypes = \n {\n \"User\",\n \"Application\",\n },\n Description = \"Admins can manage roles and perform all task actions\",\n DisplayName = \"Admin\",\n Enabled = true,\n Id = \"1b19509b-32b1-4e9f-b71d-4992aa991967\",\n Value = \"admin\",\n },\n new AzureAD.Inputs.ApplicationAppRoleArgs\n {\n AllowedMemberTypes = \n {\n \"User\",\n },\n Description = \"ReadOnly roles have limited query access\",\n DisplayName = \"ReadOnly\",\n Enabled = true,\n Id = \"497406e4-012a-4267-bf18-45a1cb148a01\",\n Value = \"User\",\n },\n },\n FeatureTags = \n {\n new AzureAD.Inputs.ApplicationFeatureTagArgs\n {\n Enterprise = true,\n Gallery = true,\n },\n },\n OptionalClaims = new AzureAD.Inputs.ApplicationOptionalClaimsArgs\n {\n AccessTokens = \n {\n new AzureAD.Inputs.ApplicationOptionalClaimsAccessTokenArgs\n {\n Name = \"myclaim\",\n },\n new AzureAD.Inputs.ApplicationOptionalClaimsAccessTokenArgs\n {\n Name = \"otherclaim\",\n },\n },\n IdTokens = \n {\n new AzureAD.Inputs.ApplicationOptionalClaimsIdTokenArgs\n {\n Name = \"userclaim\",\n Source = \"user\",\n Essential = true,\n AdditionalProperties = \n {\n \"emit_as_roles\",\n },\n },\n },\n Saml2Tokens = \n {\n new AzureAD.Inputs.ApplicationOptionalClaimsSaml2TokenArgs\n {\n Name = \"samlexample\",\n },\n },\n },\n RequiredResourceAccesses = \n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs\n {\n ResourceAppId = \"00000003-0000-0000-c000-000000000000\",\n ResourceAccesses = \n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = \"df021288-bdef-4463-88db-98f22de89214\",\n Type = \"Role\",\n },\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = \"b4e74841-8e56-480b-be8b-910348b18b4c\",\n Type = \"Scope\",\n },\n },\n },\n new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs\n {\n ResourceAppId = \"c5393580-f805-4401-95e8-94b7a6ef2fc2\",\n ResourceAccesses = \n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = \"594c1fb6-4f81-4475-ae41-0c394909246c\",\n Type = \"Role\",\n },\n },\n },\n },\n Web = new AzureAD.Inputs.ApplicationWebArgs\n {\n HomepageUrl = \"https://app.example.net\",\n LogoutUrl = \"https://app.example.net/logout\",\n RedirectUris = \n {\n \"https://app.example.net/account\",\n },\n ImplicitGrant = new AzureAD.Inputs.ApplicationWebImplicitGrantArgs\n {\n AccessTokenIssuanceEnabled = true,\n IdTokenIssuanceEnabled = true,\n },\n },\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"encoding/base64\"\n\t\"io/ioutil\"\n\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc filebase64OrPanic(path string) pulumi.StringPtrInput {\n\tif fileData, err := ioutil.ReadFile(path); err == nil {\n\t\treturn pulumi.String(base64.StdEncoding.EncodeToString(fileData[:]))\n\t} else {\n\t\tpanic(err.Error())\n\t}\n}\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := azuread.GetClientConfig(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewApplication(ctx, \"example\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tIdentifierUris: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"api://example-app\"),\n\t\t\t},\n\t\t\tLogoImage: filebase64OrPanic(\"/path/to/logo.png\"),\n\t\t\tOwners: pulumi.StringArray{\n\t\t\t\tpulumi.String(current.ObjectId),\n\t\t\t},\n\t\t\tSignInAudience: pulumi.String(\"AzureADMultipleOrgs\"),\n\t\t\tApi: \u0026ApplicationApiArgs{\n\t\t\t\tMappedClaimsEnabled: pulumi.Bool(true),\n\t\t\t\tRequestedAccessTokenVersion: pulumi.Int(2),\n\t\t\t\tKnownClientApplications: pulumi.StringArray{\n\t\t\t\t\tpulumi.Any(azuread_application.Known1.Application_id),\n\t\t\t\t\tpulumi.Any(azuread_application.Known2.Application_id),\n\t\t\t\t},\n\t\t\t\tOauth2PermissionScopes: ApplicationApiOauth2PermissionScopeArray{\n\t\t\t\t\t\u0026ApplicationApiOauth2PermissionScopeArgs{\n\t\t\t\t\t\tAdminConsentDescription: pulumi.String(\"Allow the application to access example on behalf of the signed-in user.\"),\n\t\t\t\t\t\tAdminConsentDisplayName: pulumi.String(\"Access example\"),\n\t\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\t\tId: pulumi.String(\"96183846-204b-4b43-82e1-5d2222eb4b9b\"),\n\t\t\t\t\t\tType: pulumi.String(\"User\"),\n\t\t\t\t\t\tUserConsentDescription: pulumi.String(\"Allow the application to access example on your behalf.\"),\n\t\t\t\t\t\tUserConsentDisplayName: pulumi.String(\"Access example\"),\n\t\t\t\t\t\tValue: pulumi.String(\"user_impersonation\"),\n\t\t\t\t\t},\n\t\t\t\t\t\u0026ApplicationApiOauth2PermissionScopeArgs{\n\t\t\t\t\t\tAdminConsentDescription: pulumi.String(\"Administer the example application\"),\n\t\t\t\t\t\tAdminConsentDisplayName: pulumi.String(\"Administer\"),\n\t\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\t\tId: pulumi.String(\"be98fa3e-ab5b-4b11-83d9-04ba2b7946bc\"),\n\t\t\t\t\t\tType: pulumi.String(\"Admin\"),\n\t\t\t\t\t\tValue: pulumi.String(\"administer\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tAppRoles: ApplicationAppRoleArray{\n\t\t\t\t\u0026ApplicationAppRoleArgs{\n\t\t\t\t\tAllowedMemberTypes: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"User\"),\n\t\t\t\t\t\tpulumi.String(\"Application\"),\n\t\t\t\t\t},\n\t\t\t\t\tDescription: pulumi.String(\"Admins can manage roles and perform all task actions\"),\n\t\t\t\t\tDisplayName: pulumi.String(\"Admin\"),\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tId: pulumi.String(\"1b19509b-32b1-4e9f-b71d-4992aa991967\"),\n\t\t\t\t\tValue: pulumi.String(\"admin\"),\n\t\t\t\t},\n\t\t\t\t\u0026ApplicationAppRoleArgs{\n\t\t\t\t\tAllowedMemberTypes: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"User\"),\n\t\t\t\t\t},\n\t\t\t\t\tDescription: pulumi.String(\"ReadOnly roles have limited query access\"),\n\t\t\t\t\tDisplayName: pulumi.String(\"ReadOnly\"),\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tId: pulumi.String(\"497406e4-012a-4267-bf18-45a1cb148a01\"),\n\t\t\t\t\tValue: pulumi.String(\"User\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tFeatureTags: ApplicationFeatureTagArray{\n\t\t\t\t\u0026ApplicationFeatureTagArgs{\n\t\t\t\t\tEnterprise: pulumi.Bool(true),\n\t\t\t\t\tGallery: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tOptionalClaims: \u0026ApplicationOptionalClaimsArgs{\n\t\t\t\tAccessTokens: ApplicationOptionalClaimsAccessTokenArray{\n\t\t\t\t\t\u0026ApplicationOptionalClaimsAccessTokenArgs{\n\t\t\t\t\t\tName: pulumi.String(\"myclaim\"),\n\t\t\t\t\t},\n\t\t\t\t\t\u0026ApplicationOptionalClaimsAccessTokenArgs{\n\t\t\t\t\t\tName: pulumi.String(\"otherclaim\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tIdTokens: ApplicationOptionalClaimsIdTokenArray{\n\t\t\t\t\t\u0026ApplicationOptionalClaimsIdTokenArgs{\n\t\t\t\t\t\tName: pulumi.String(\"userclaim\"),\n\t\t\t\t\t\tSource: pulumi.String(\"user\"),\n\t\t\t\t\t\tEssential: pulumi.Bool(true),\n\t\t\t\t\t\tAdditionalProperties: pulumi.StringArray{\n\t\t\t\t\t\t\tpulumi.String(\"emit_as_roles\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tSaml2Tokens: ApplicationOptionalClaimsSaml2TokenArray{\n\t\t\t\t\t\u0026ApplicationOptionalClaimsSaml2TokenArgs{\n\t\t\t\t\t\tName: pulumi.String(\"samlexample\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tRequiredResourceAccesses: ApplicationRequiredResourceAccessArray{\n\t\t\t\t\u0026ApplicationRequiredResourceAccessArgs{\n\t\t\t\t\tResourceAppId: pulumi.String(\"00000003-0000-0000-c000-000000000000\"),\n\t\t\t\t\tResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: pulumi.String(\"df021288-bdef-4463-88db-98f22de89214\"),\n\t\t\t\t\t\t\tType: pulumi.String(\"Role\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: pulumi.String(\"b4e74841-8e56-480b-be8b-910348b18b4c\"),\n\t\t\t\t\t\t\tType: pulumi.String(\"Scope\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026ApplicationRequiredResourceAccessArgs{\n\t\t\t\t\tResourceAppId: pulumi.String(\"c5393580-f805-4401-95e8-94b7a6ef2fc2\"),\n\t\t\t\t\tResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: pulumi.String(\"594c1fb6-4f81-4475-ae41-0c394909246c\"),\n\t\t\t\t\t\t\tType: pulumi.String(\"Role\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tWeb: \u0026ApplicationWebArgs{\n\t\t\t\tHomepageUrl: pulumi.String(\"https://app.example.net\"),\n\t\t\t\tLogoutUrl: pulumi.String(\"https://app.example.net/logout\"),\n\t\t\t\tRedirectUris: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"https://app.example.net/account\"),\n\t\t\t\t},\n\t\t\t\tImplicitGrant: \u0026ApplicationWebImplicitGrantArgs{\n\t\t\t\t\tAccessTokenIssuanceEnabled: pulumi.Bool(true),\n\t\t\t\t\tIdTokenIssuanceEnabled: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 current = Output.of(AzureadFunctions.getClientConfig());\n\n var example = new Application(\"example\", ApplicationArgs.builder() \n .displayName(\"example\")\n .identifierUris(\"api://example-app\")\n .logoImage(Base64.getEncoder().encodeToString(Files.readAllBytes(Paths.get(\"/path/to/logo.png\"))))\n .owners(current.apply(getClientConfigResult -\u003e getClientConfigResult.getObjectId()))\n .signInAudience(\"AzureADMultipleOrgs\")\n .api(ApplicationApi.builder()\n .mappedClaimsEnabled(true)\n .requestedAccessTokenVersion(2)\n .knownClientApplications( \n azuread_application.getKnown1().getApplication_id(),\n azuread_application.getKnown2().getApplication_id())\n .oauth2PermissionScopes( \n ApplicationApiOauth2PermissionScope.builder()\n .adminConsentDescription(\"Allow the application to access example on behalf of the signed-in user.\")\n .adminConsentDisplayName(\"Access example\")\n .enabled(true)\n .id(\"96183846-204b-4b43-82e1-5d2222eb4b9b\")\n .type(\"User\")\n .userConsentDescription(\"Allow the application to access example on your behalf.\")\n .userConsentDisplayName(\"Access example\")\n .value(\"user_impersonation\")\n .build(),\n ApplicationApiOauth2PermissionScope.builder()\n .adminConsentDescription(\"Administer the example application\")\n .adminConsentDisplayName(\"Administer\")\n .enabled(true)\n .id(\"be98fa3e-ab5b-4b11-83d9-04ba2b7946bc\")\n .type(\"Admin\")\n .value(\"administer\")\n .build())\n .build())\n .appRoles( \n ApplicationAppRole.builder()\n .allowedMemberTypes( \n \"User\",\n \"Application\")\n .description(\"Admins can manage roles and perform all task actions\")\n .displayName(\"Admin\")\n .enabled(true)\n .id(\"1b19509b-32b1-4e9f-b71d-4992aa991967\")\n .value(\"admin\")\n .build(),\n ApplicationAppRole.builder()\n .allowedMemberTypes(\"User\")\n .description(\"ReadOnly roles have limited query access\")\n .displayName(\"ReadOnly\")\n .enabled(true)\n .id(\"497406e4-012a-4267-bf18-45a1cb148a01\")\n .value(\"User\")\n .build())\n .featureTags(ApplicationFeatureTag.builder()\n .enterprise(true)\n .gallery(true)\n .build())\n .optionalClaims(ApplicationOptionalClaims.builder()\n .accessTokens( \n ApplicationOptionalClaimsAccessToken.builder()\n .name(\"myclaim\")\n .build(),\n ApplicationOptionalClaimsAccessToken.builder()\n .name(\"otherclaim\")\n .build())\n .idTokens(ApplicationOptionalClaimsIdToken.builder()\n .name(\"userclaim\")\n .source(\"user\")\n .essential(true)\n .additionalProperties(\"emit_as_roles\")\n .build())\n .saml2Tokens(ApplicationOptionalClaimsSaml2Token.builder()\n .name(\"samlexample\")\n .build())\n .build())\n .requiredResourceAccesses( \n ApplicationRequiredResourceAccess.builder()\n .resourceAppId(\"00000003-0000-0000-c000-000000000000\")\n .resourceAccesses( \n ApplicationRequiredResourceAccessResourceAccess.builder()\n .id(\"df021288-bdef-4463-88db-98f22de89214\")\n .type(\"Role\")\n .build(),\n ApplicationRequiredResourceAccessResourceAccess.builder()\n .id(\"b4e74841-8e56-480b-be8b-910348b18b4c\")\n .type(\"Scope\")\n .build())\n .build(),\n ApplicationRequiredResourceAccess.builder()\n .resourceAppId(\"c5393580-f805-4401-95e8-94b7a6ef2fc2\")\n .resourceAccesses(ApplicationRequiredResourceAccessResourceAccess.builder()\n .id(\"594c1fb6-4f81-4475-ae41-0c394909246c\")\n .type(\"Role\")\n .build())\n .build())\n .web(ApplicationWeb.builder()\n .homepageUrl(\"https://app.example.net\")\n .logoutUrl(\"https://app.example.net/logout\")\n .redirectUris(\"https://app.example.net/account\")\n .implicitGrant(ApplicationWebImplicitGrant.builder()\n .accessTokenIssuanceEnabled(true)\n .idTokenIssuanceEnabled(true)\n .build())\n .build())\n .build());\n\n }\n}\n```\n\n*Create application from a gallery template*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleApplicationTemplate = azuread.getApplicationTemplate({\n displayName: \"Marketo\",\n});\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {\n displayName: \"example\",\n templateId: exampleApplicationTemplate.then(exampleApplicationTemplate =\u003e exampleApplicationTemplate.templateId),\n});\nconst exampleServicePrincipal = new azuread.ServicePrincipal(\"exampleServicePrincipal\", {\n applicationId: exampleApplication.applicationId,\n useExisting: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_application_template = azuread.get_application_template(display_name=\"Marketo\")\nexample_application = azuread.Application(\"exampleApplication\",\n display_name=\"example\",\n template_id=example_application_template.template_id)\nexample_service_principal = azuread.ServicePrincipal(\"exampleServicePrincipal\",\n application_id=example_application.application_id,\n use_existing=True)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleApplicationTemplate = Output.Create(AzureAD.GetApplicationTemplate.InvokeAsync(new AzureAD.GetApplicationTemplateArgs\n {\n DisplayName = \"Marketo\",\n }));\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new AzureAD.ApplicationArgs\n {\n DisplayName = \"example\",\n TemplateId = exampleApplicationTemplate.Apply(exampleApplicationTemplate =\u003e exampleApplicationTemplate.TemplateId),\n });\n var exampleServicePrincipal = new AzureAD.ServicePrincipal(\"exampleServicePrincipal\", new AzureAD.ServicePrincipalArgs\n {\n ApplicationId = exampleApplication.ApplicationId,\n UseExisting = true,\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleApplicationTemplate, err := azuread.GetApplicationTemplate(ctx, \u0026GetApplicationTemplateArgs{\n\t\t\tDisplayName: pulumi.StringRef(\"Marketo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tTemplateId: pulumi.String(exampleApplicationTemplate.TemplateId),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewServicePrincipal(ctx, \"exampleServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: exampleApplication.ApplicationId,\n\t\t\tUseExisting: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 exampleApplicationTemplate = Output.of(AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder()\n .displayName(\"Marketo\")\n .build()));\n\n var exampleApplication = new Application(\"exampleApplication\", ApplicationArgs.builder() \n .displayName(\"example\")\n .templateId(exampleApplicationTemplate.apply(getApplicationTemplateResult -\u003e getApplicationTemplateResult.getTemplateId()))\n .build());\n\n var exampleServicePrincipal = new ServicePrincipal(\"exampleServicePrincipal\", ServicePrincipalArgs.builder() \n .applicationId(exampleApplication.getApplicationId())\n .useExisting(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleApplication:\n type: azuread:Application\n properties:\n displayName: example\n templateId: ${exampleApplicationTemplate.templateId}\n exampleServicePrincipal:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${exampleApplication.applicationId}\n useExisting: true\nvariables:\n exampleApplicationTemplate:\n Fn::Invoke:\n Function: azuread:getApplicationTemplate\n Arguments:\n displayName: Marketo\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nApplications can be imported using their object ID, e.g.\n\n```sh\n $ pulumi import azuread:index/application:Application test 00000000-0000-0000-0000-000000000000\n```\n\n ", + "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*Create an application*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\nimport * as fs from \"fs\";\n\nconst current = azuread.getClientConfig({});\nconst example = new azuread.Application(\"example\", {\n displayName: \"example\",\n identifierUris: [\"api://example-app\"],\n logoImage: Buffer.from(fs.readFileSync(\"/path/to/logo.png\"), 'binary').toString('base64'),\n owners: [current.then(current =\u003e current.objectId)],\n signInAudience: \"AzureADMultipleOrgs\",\n api: {\n mappedClaimsEnabled: true,\n requestedAccessTokenVersion: 2,\n knownClientApplications: [\n azuread_application.known1.application_id,\n azuread_application.known2.application_id,\n ],\n oauth2PermissionScopes: [\n {\n adminConsentDescription: \"Allow the application to access example on behalf of the signed-in user.\",\n adminConsentDisplayName: \"Access example\",\n enabled: true,\n id: \"96183846-204b-4b43-82e1-5d2222eb4b9b\",\n type: \"User\",\n userConsentDescription: \"Allow the application to access example on your behalf.\",\n userConsentDisplayName: \"Access example\",\n value: \"user_impersonation\",\n },\n {\n adminConsentDescription: \"Administer the example application\",\n adminConsentDisplayName: \"Administer\",\n enabled: true,\n id: \"be98fa3e-ab5b-4b11-83d9-04ba2b7946bc\",\n type: \"Admin\",\n value: \"administer\",\n },\n ],\n },\n appRoles: [\n {\n allowedMemberTypes: [\n \"User\",\n \"Application\",\n ],\n description: \"Admins can manage roles and perform all task actions\",\n displayName: \"Admin\",\n enabled: true,\n id: \"1b19509b-32b1-4e9f-b71d-4992aa991967\",\n value: \"admin\",\n },\n {\n allowedMemberTypes: [\"User\"],\n description: \"ReadOnly roles have limited query access\",\n displayName: \"ReadOnly\",\n enabled: true,\n id: \"497406e4-012a-4267-bf18-45a1cb148a01\",\n value: \"User\",\n },\n ],\n featureTags: [{\n enterprise: true,\n gallery: true,\n }],\n optionalClaims: {\n accessTokens: [\n {\n name: \"myclaim\",\n },\n {\n name: \"otherclaim\",\n },\n ],\n idTokens: [{\n name: \"userclaim\",\n source: \"user\",\n essential: true,\n additionalProperties: [\"emit_as_roles\"],\n }],\n saml2Tokens: [{\n name: \"samlexample\",\n }],\n },\n requiredResourceAccesses: [\n {\n resourceAppId: \"00000003-0000-0000-c000-000000000000\",\n resourceAccesses: [\n {\n id: \"df021288-bdef-4463-88db-98f22de89214\",\n type: \"Role\",\n },\n {\n id: \"b4e74841-8e56-480b-be8b-910348b18b4c\",\n type: \"Scope\",\n },\n ],\n },\n {\n resourceAppId: \"c5393580-f805-4401-95e8-94b7a6ef2fc2\",\n resourceAccesses: [{\n id: \"594c1fb6-4f81-4475-ae41-0c394909246c\",\n type: \"Role\",\n }],\n },\n ],\n web: {\n homepageUrl: \"https://app.example.net\",\n logoutUrl: \"https://app.example.net/logout\",\n redirectUris: [\"https://app.example.net/account\"],\n implicitGrant: {\n accessTokenIssuanceEnabled: true,\n idTokenIssuanceEnabled: true,\n },\n },\n});\n```\n```python\nimport pulumi\nimport base64\nimport pulumi_azuread as azuread\n\ncurrent = azuread.get_client_config()\nexample = azuread.Application(\"example\",\n display_name=\"example\",\n identifier_uris=[\"api://example-app\"],\n logo_image=(lambda path: base64.b64encode(open(path).read().encode()).decode())(\"/path/to/logo.png\"),\n owners=[current.object_id],\n sign_in_audience=\"AzureADMultipleOrgs\",\n api=azuread.ApplicationApiArgs(\n mapped_claims_enabled=True,\n requested_access_token_version=2,\n known_client_applications=[\n azuread_application[\"known1\"][\"application_id\"],\n azuread_application[\"known2\"][\"application_id\"],\n ],\n oauth2_permission_scopes=[\n azuread.ApplicationApiOauth2PermissionScopeArgs(\n admin_consent_description=\"Allow the application to access example on behalf of the signed-in user.\",\n admin_consent_display_name=\"Access example\",\n enabled=True,\n id=\"96183846-204b-4b43-82e1-5d2222eb4b9b\",\n type=\"User\",\n user_consent_description=\"Allow the application to access example on your behalf.\",\n user_consent_display_name=\"Access example\",\n value=\"user_impersonation\",\n ),\n azuread.ApplicationApiOauth2PermissionScopeArgs(\n admin_consent_description=\"Administer the example application\",\n admin_consent_display_name=\"Administer\",\n enabled=True,\n id=\"be98fa3e-ab5b-4b11-83d9-04ba2b7946bc\",\n type=\"Admin\",\n value=\"administer\",\n ),\n ],\n ),\n app_roles=[\n azuread.ApplicationAppRoleArgs(\n allowed_member_types=[\n \"User\",\n \"Application\",\n ],\n description=\"Admins can manage roles and perform all task actions\",\n display_name=\"Admin\",\n enabled=True,\n id=\"1b19509b-32b1-4e9f-b71d-4992aa991967\",\n value=\"admin\",\n ),\n azuread.ApplicationAppRoleArgs(\n allowed_member_types=[\"User\"],\n description=\"ReadOnly roles have limited query access\",\n display_name=\"ReadOnly\",\n enabled=True,\n id=\"497406e4-012a-4267-bf18-45a1cb148a01\",\n value=\"User\",\n ),\n ],\n feature_tags=[azuread.ApplicationFeatureTagArgs(\n enterprise=True,\n gallery=True,\n )],\n optional_claims=azuread.ApplicationOptionalClaimsArgs(\n access_tokens=[\n azuread.ApplicationOptionalClaimsAccessTokenArgs(\n name=\"myclaim\",\n ),\n azuread.ApplicationOptionalClaimsAccessTokenArgs(\n name=\"otherclaim\",\n ),\n ],\n id_tokens=[azuread.ApplicationOptionalClaimsIdTokenArgs(\n name=\"userclaim\",\n source=\"user\",\n essential=True,\n additional_properties=[\"emit_as_roles\"],\n )],\n saml2_tokens=[azuread.ApplicationOptionalClaimsSaml2TokenArgs(\n name=\"samlexample\",\n )],\n ),\n required_resource_accesses=[\n azuread.ApplicationRequiredResourceAccessArgs(\n resource_app_id=\"00000003-0000-0000-c000-000000000000\",\n resource_accesses=[\n azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=\"df021288-bdef-4463-88db-98f22de89214\",\n type=\"Role\",\n ),\n azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=\"b4e74841-8e56-480b-be8b-910348b18b4c\",\n type=\"Scope\",\n ),\n ],\n ),\n azuread.ApplicationRequiredResourceAccessArgs(\n resource_app_id=\"c5393580-f805-4401-95e8-94b7a6ef2fc2\",\n resource_accesses=[azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=\"594c1fb6-4f81-4475-ae41-0c394909246c\",\n type=\"Role\",\n )],\n ),\n ],\n web=azuread.ApplicationWebArgs(\n homepage_url=\"https://app.example.net\",\n logout_url=\"https://app.example.net/logout\",\n redirect_uris=[\"https://app.example.net/account\"],\n implicit_grant=azuread.ApplicationWebImplicitGrantArgs(\n access_token_issuance_enabled=True,\n id_token_issuance_enabled=True,\n ),\n ))\n```\n```csharp\nusing System;\nusing System.Collections.Generic;\nusing System.IO;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\n\tprivate static string ReadFileBase64(string path) {\n\t\treturn Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path)))\n\t}\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var current = AzureAD.GetClientConfig.Invoke();\n\n var example = new AzureAD.Application(\"example\", new()\n {\n DisplayName = \"example\",\n IdentifierUris = new[]\n {\n \"api://example-app\",\n },\n LogoImage = ReadFileBase64(\"/path/to/logo.png\"),\n Owners = new[]\n {\n current.Apply(getClientConfigResult =\u003e getClientConfigResult.ObjectId),\n },\n SignInAudience = \"AzureADMultipleOrgs\",\n Api = new AzureAD.Inputs.ApplicationApiArgs\n {\n MappedClaimsEnabled = true,\n RequestedAccessTokenVersion = 2,\n KnownClientApplications = new[]\n {\n azuread_application.Known1.Application_id,\n azuread_application.Known2.Application_id,\n },\n Oauth2PermissionScopes = new[]\n {\n new AzureAD.Inputs.ApplicationApiOauth2PermissionScopeArgs\n {\n AdminConsentDescription = \"Allow the application to access example on behalf of the signed-in user.\",\n AdminConsentDisplayName = \"Access example\",\n Enabled = true,\n Id = \"96183846-204b-4b43-82e1-5d2222eb4b9b\",\n Type = \"User\",\n UserConsentDescription = \"Allow the application to access example on your behalf.\",\n UserConsentDisplayName = \"Access example\",\n Value = \"user_impersonation\",\n },\n new AzureAD.Inputs.ApplicationApiOauth2PermissionScopeArgs\n {\n AdminConsentDescription = \"Administer the example application\",\n AdminConsentDisplayName = \"Administer\",\n Enabled = true,\n Id = \"be98fa3e-ab5b-4b11-83d9-04ba2b7946bc\",\n Type = \"Admin\",\n Value = \"administer\",\n },\n },\n },\n AppRoles = new[]\n {\n new AzureAD.Inputs.ApplicationAppRoleArgs\n {\n AllowedMemberTypes = new[]\n {\n \"User\",\n \"Application\",\n },\n Description = \"Admins can manage roles and perform all task actions\",\n DisplayName = \"Admin\",\n Enabled = true,\n Id = \"1b19509b-32b1-4e9f-b71d-4992aa991967\",\n Value = \"admin\",\n },\n new AzureAD.Inputs.ApplicationAppRoleArgs\n {\n AllowedMemberTypes = new[]\n {\n \"User\",\n },\n Description = \"ReadOnly roles have limited query access\",\n DisplayName = \"ReadOnly\",\n Enabled = true,\n Id = \"497406e4-012a-4267-bf18-45a1cb148a01\",\n Value = \"User\",\n },\n },\n FeatureTags = new[]\n {\n new AzureAD.Inputs.ApplicationFeatureTagArgs\n {\n Enterprise = true,\n Gallery = true,\n },\n },\n OptionalClaims = new AzureAD.Inputs.ApplicationOptionalClaimsArgs\n {\n AccessTokens = new[]\n {\n new AzureAD.Inputs.ApplicationOptionalClaimsAccessTokenArgs\n {\n Name = \"myclaim\",\n },\n new AzureAD.Inputs.ApplicationOptionalClaimsAccessTokenArgs\n {\n Name = \"otherclaim\",\n },\n },\n IdTokens = new[]\n {\n new AzureAD.Inputs.ApplicationOptionalClaimsIdTokenArgs\n {\n Name = \"userclaim\",\n Source = \"user\",\n Essential = true,\n AdditionalProperties = new[]\n {\n \"emit_as_roles\",\n },\n },\n },\n Saml2Tokens = new[]\n {\n new AzureAD.Inputs.ApplicationOptionalClaimsSaml2TokenArgs\n {\n Name = \"samlexample\",\n },\n },\n },\n RequiredResourceAccesses = new[]\n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs\n {\n ResourceAppId = \"00000003-0000-0000-c000-000000000000\",\n ResourceAccesses = new[]\n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = \"df021288-bdef-4463-88db-98f22de89214\",\n Type = \"Role\",\n },\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = \"b4e74841-8e56-480b-be8b-910348b18b4c\",\n Type = \"Scope\",\n },\n },\n },\n new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs\n {\n ResourceAppId = \"c5393580-f805-4401-95e8-94b7a6ef2fc2\",\n ResourceAccesses = new[]\n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = \"594c1fb6-4f81-4475-ae41-0c394909246c\",\n Type = \"Role\",\n },\n },\n },\n },\n Web = new AzureAD.Inputs.ApplicationWebArgs\n {\n HomepageUrl = \"https://app.example.net\",\n LogoutUrl = \"https://app.example.net/logout\",\n RedirectUris = new[]\n {\n \"https://app.example.net/account\",\n },\n ImplicitGrant = new AzureAD.Inputs.ApplicationWebImplicitGrantArgs\n {\n AccessTokenIssuanceEnabled = true,\n IdTokenIssuanceEnabled = true,\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/base64\"\n\t\"io/ioutil\"\n\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc filebase64OrPanic(path string) pulumi.StringPtrInput {\n\tif fileData, err := ioutil.ReadFile(path); err == nil {\n\t\treturn pulumi.String(base64.StdEncoding.EncodeToString(fileData[:]))\n\t} else {\n\t\tpanic(err.Error())\n\t}\n}\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := azuread.GetClientConfig(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewApplication(ctx, \"example\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tIdentifierUris: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"api://example-app\"),\n\t\t\t},\n\t\t\tLogoImage: filebase64OrPanic(\"/path/to/logo.png\"),\n\t\t\tOwners: pulumi.StringArray{\n\t\t\t\tpulumi.String(current.ObjectId),\n\t\t\t},\n\t\t\tSignInAudience: pulumi.String(\"AzureADMultipleOrgs\"),\n\t\t\tApi: \u0026ApplicationApiArgs{\n\t\t\t\tMappedClaimsEnabled: pulumi.Bool(true),\n\t\t\t\tRequestedAccessTokenVersion: pulumi.Int(2),\n\t\t\t\tKnownClientApplications: pulumi.StringArray{\n\t\t\t\t\tpulumi.Any(azuread_application.Known1.Application_id),\n\t\t\t\t\tpulumi.Any(azuread_application.Known2.Application_id),\n\t\t\t\t},\n\t\t\t\tOauth2PermissionScopes: ApplicationApiOauth2PermissionScopeArray{\n\t\t\t\t\t\u0026ApplicationApiOauth2PermissionScopeArgs{\n\t\t\t\t\t\tAdminConsentDescription: pulumi.String(\"Allow the application to access example on behalf of the signed-in user.\"),\n\t\t\t\t\t\tAdminConsentDisplayName: pulumi.String(\"Access example\"),\n\t\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\t\tId: pulumi.String(\"96183846-204b-4b43-82e1-5d2222eb4b9b\"),\n\t\t\t\t\t\tType: pulumi.String(\"User\"),\n\t\t\t\t\t\tUserConsentDescription: pulumi.String(\"Allow the application to access example on your behalf.\"),\n\t\t\t\t\t\tUserConsentDisplayName: pulumi.String(\"Access example\"),\n\t\t\t\t\t\tValue: pulumi.String(\"user_impersonation\"),\n\t\t\t\t\t},\n\t\t\t\t\t\u0026ApplicationApiOauth2PermissionScopeArgs{\n\t\t\t\t\t\tAdminConsentDescription: pulumi.String(\"Administer the example application\"),\n\t\t\t\t\t\tAdminConsentDisplayName: pulumi.String(\"Administer\"),\n\t\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\t\tId: pulumi.String(\"be98fa3e-ab5b-4b11-83d9-04ba2b7946bc\"),\n\t\t\t\t\t\tType: pulumi.String(\"Admin\"),\n\t\t\t\t\t\tValue: pulumi.String(\"administer\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tAppRoles: ApplicationAppRoleArray{\n\t\t\t\t\u0026ApplicationAppRoleArgs{\n\t\t\t\t\tAllowedMemberTypes: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"User\"),\n\t\t\t\t\t\tpulumi.String(\"Application\"),\n\t\t\t\t\t},\n\t\t\t\t\tDescription: pulumi.String(\"Admins can manage roles and perform all task actions\"),\n\t\t\t\t\tDisplayName: pulumi.String(\"Admin\"),\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tId: pulumi.String(\"1b19509b-32b1-4e9f-b71d-4992aa991967\"),\n\t\t\t\t\tValue: pulumi.String(\"admin\"),\n\t\t\t\t},\n\t\t\t\t\u0026ApplicationAppRoleArgs{\n\t\t\t\t\tAllowedMemberTypes: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"User\"),\n\t\t\t\t\t},\n\t\t\t\t\tDescription: pulumi.String(\"ReadOnly roles have limited query access\"),\n\t\t\t\t\tDisplayName: pulumi.String(\"ReadOnly\"),\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tId: pulumi.String(\"497406e4-012a-4267-bf18-45a1cb148a01\"),\n\t\t\t\t\tValue: pulumi.String(\"User\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tFeatureTags: ApplicationFeatureTagArray{\n\t\t\t\t\u0026ApplicationFeatureTagArgs{\n\t\t\t\t\tEnterprise: pulumi.Bool(true),\n\t\t\t\t\tGallery: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tOptionalClaims: \u0026ApplicationOptionalClaimsArgs{\n\t\t\t\tAccessTokens: ApplicationOptionalClaimsAccessTokenArray{\n\t\t\t\t\t\u0026ApplicationOptionalClaimsAccessTokenArgs{\n\t\t\t\t\t\tName: pulumi.String(\"myclaim\"),\n\t\t\t\t\t},\n\t\t\t\t\t\u0026ApplicationOptionalClaimsAccessTokenArgs{\n\t\t\t\t\t\tName: pulumi.String(\"otherclaim\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tIdTokens: ApplicationOptionalClaimsIdTokenArray{\n\t\t\t\t\t\u0026ApplicationOptionalClaimsIdTokenArgs{\n\t\t\t\t\t\tName: pulumi.String(\"userclaim\"),\n\t\t\t\t\t\tSource: pulumi.String(\"user\"),\n\t\t\t\t\t\tEssential: pulumi.Bool(true),\n\t\t\t\t\t\tAdditionalProperties: pulumi.StringArray{\n\t\t\t\t\t\t\tpulumi.String(\"emit_as_roles\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tSaml2Tokens: ApplicationOptionalClaimsSaml2TokenArray{\n\t\t\t\t\t\u0026ApplicationOptionalClaimsSaml2TokenArgs{\n\t\t\t\t\t\tName: pulumi.String(\"samlexample\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tRequiredResourceAccesses: ApplicationRequiredResourceAccessArray{\n\t\t\t\t\u0026ApplicationRequiredResourceAccessArgs{\n\t\t\t\t\tResourceAppId: pulumi.String(\"00000003-0000-0000-c000-000000000000\"),\n\t\t\t\t\tResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: pulumi.String(\"df021288-bdef-4463-88db-98f22de89214\"),\n\t\t\t\t\t\t\tType: pulumi.String(\"Role\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: pulumi.String(\"b4e74841-8e56-480b-be8b-910348b18b4c\"),\n\t\t\t\t\t\t\tType: pulumi.String(\"Scope\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026ApplicationRequiredResourceAccessArgs{\n\t\t\t\t\tResourceAppId: pulumi.String(\"c5393580-f805-4401-95e8-94b7a6ef2fc2\"),\n\t\t\t\t\tResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: pulumi.String(\"594c1fb6-4f81-4475-ae41-0c394909246c\"),\n\t\t\t\t\t\t\tType: pulumi.String(\"Role\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tWeb: \u0026ApplicationWebArgs{\n\t\t\t\tHomepageUrl: pulumi.String(\"https://app.example.net\"),\n\t\t\t\tLogoutUrl: pulumi.String(\"https://app.example.net/logout\"),\n\t\t\t\tRedirectUris: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"https://app.example.net/account\"),\n\t\t\t\t},\n\t\t\t\tImplicitGrant: \u0026ApplicationWebImplicitGrantArgs{\n\t\t\t\t\tAccessTokenIssuanceEnabled: pulumi.Bool(true),\n\t\t\t\t\tIdTokenIssuanceEnabled: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.Application;\nimport com.pulumi.azuread.ApplicationArgs;\nimport com.pulumi.azuread.inputs.ApplicationApiArgs;\nimport com.pulumi.azuread.inputs.ApplicationAppRoleArgs;\nimport com.pulumi.azuread.inputs.ApplicationFeatureTagArgs;\nimport com.pulumi.azuread.inputs.ApplicationOptionalClaimsArgs;\nimport com.pulumi.azuread.inputs.ApplicationRequiredResourceAccessArgs;\nimport com.pulumi.azuread.inputs.ApplicationWebArgs;\nimport com.pulumi.azuread.inputs.ApplicationWebImplicitGrantArgs;\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 current = AzureadFunctions.getClientConfig();\n\n var example = new Application(\"example\", ApplicationArgs.builder() \n .displayName(\"example\")\n .identifierUris(\"api://example-app\")\n .logoImage(Base64.getEncoder().encodeToString(Files.readAllBytes(Paths.get(\"/path/to/logo.png\"))))\n .owners(current.applyValue(getClientConfigResult -\u003e getClientConfigResult.objectId()))\n .signInAudience(\"AzureADMultipleOrgs\")\n .api(ApplicationApiArgs.builder()\n .mappedClaimsEnabled(true)\n .requestedAccessTokenVersion(2)\n .knownClientApplications( \n azuread_application.known1().application_id(),\n azuread_application.known2().application_id())\n .oauth2PermissionScopes( \n ApplicationApiOauth2PermissionScopeArgs.builder()\n .adminConsentDescription(\"Allow the application to access example on behalf of the signed-in user.\")\n .adminConsentDisplayName(\"Access example\")\n .enabled(true)\n .id(\"96183846-204b-4b43-82e1-5d2222eb4b9b\")\n .type(\"User\")\n .userConsentDescription(\"Allow the application to access example on your behalf.\")\n .userConsentDisplayName(\"Access example\")\n .value(\"user_impersonation\")\n .build(),\n ApplicationApiOauth2PermissionScopeArgs.builder()\n .adminConsentDescription(\"Administer the example application\")\n .adminConsentDisplayName(\"Administer\")\n .enabled(true)\n .id(\"be98fa3e-ab5b-4b11-83d9-04ba2b7946bc\")\n .type(\"Admin\")\n .value(\"administer\")\n .build())\n .build())\n .appRoles( \n ApplicationAppRoleArgs.builder()\n .allowedMemberTypes( \n \"User\",\n \"Application\")\n .description(\"Admins can manage roles and perform all task actions\")\n .displayName(\"Admin\")\n .enabled(true)\n .id(\"1b19509b-32b1-4e9f-b71d-4992aa991967\")\n .value(\"admin\")\n .build(),\n ApplicationAppRoleArgs.builder()\n .allowedMemberTypes(\"User\")\n .description(\"ReadOnly roles have limited query access\")\n .displayName(\"ReadOnly\")\n .enabled(true)\n .id(\"497406e4-012a-4267-bf18-45a1cb148a01\")\n .value(\"User\")\n .build())\n .featureTags(ApplicationFeatureTagArgs.builder()\n .enterprise(true)\n .gallery(true)\n .build())\n .optionalClaims(ApplicationOptionalClaimsArgs.builder()\n .accessTokens( \n ApplicationOptionalClaimsAccessTokenArgs.builder()\n .name(\"myclaim\")\n .build(),\n ApplicationOptionalClaimsAccessTokenArgs.builder()\n .name(\"otherclaim\")\n .build())\n .idTokens(ApplicationOptionalClaimsIdTokenArgs.builder()\n .name(\"userclaim\")\n .source(\"user\")\n .essential(true)\n .additionalProperties(\"emit_as_roles\")\n .build())\n .saml2Tokens(ApplicationOptionalClaimsSaml2TokenArgs.builder()\n .name(\"samlexample\")\n .build())\n .build())\n .requiredResourceAccesses( \n ApplicationRequiredResourceAccessArgs.builder()\n .resourceAppId(\"00000003-0000-0000-c000-000000000000\")\n .resourceAccesses( \n ApplicationRequiredResourceAccessResourceAccessArgs.builder()\n .id(\"df021288-bdef-4463-88db-98f22de89214\")\n .type(\"Role\")\n .build(),\n ApplicationRequiredResourceAccessResourceAccessArgs.builder()\n .id(\"b4e74841-8e56-480b-be8b-910348b18b4c\")\n .type(\"Scope\")\n .build())\n .build(),\n ApplicationRequiredResourceAccessArgs.builder()\n .resourceAppId(\"c5393580-f805-4401-95e8-94b7a6ef2fc2\")\n .resourceAccesses(ApplicationRequiredResourceAccessResourceAccessArgs.builder()\n .id(\"594c1fb6-4f81-4475-ae41-0c394909246c\")\n .type(\"Role\")\n .build())\n .build())\n .web(ApplicationWebArgs.builder()\n .homepageUrl(\"https://app.example.net\")\n .logoutUrl(\"https://app.example.net/logout\")\n .redirectUris(\"https://app.example.net/account\")\n .implicitGrant(ApplicationWebImplicitGrantArgs.builder()\n .accessTokenIssuanceEnabled(true)\n .idTokenIssuanceEnabled(true)\n .build())\n .build())\n .build());\n\n }\n}\n```\n\n*Create application from a gallery template*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleApplicationTemplate = azuread.getApplicationTemplate({\n displayName: \"Marketo\",\n});\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {\n displayName: \"example\",\n templateId: exampleApplicationTemplate.then(exampleApplicationTemplate =\u003e exampleApplicationTemplate.templateId),\n});\nconst exampleServicePrincipal = new azuread.ServicePrincipal(\"exampleServicePrincipal\", {\n applicationId: exampleApplication.applicationId,\n useExisting: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_application_template = azuread.get_application_template(display_name=\"Marketo\")\nexample_application = azuread.Application(\"exampleApplication\",\n display_name=\"example\",\n template_id=example_application_template.template_id)\nexample_service_principal = azuread.ServicePrincipal(\"exampleServicePrincipal\",\n application_id=example_application.application_id,\n use_existing=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleApplicationTemplate = AzureAD.GetApplicationTemplate.Invoke(new()\n {\n DisplayName = \"Marketo\",\n });\n\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new()\n {\n DisplayName = \"example\",\n TemplateId = exampleApplicationTemplate.Apply(getApplicationTemplateResult =\u003e getApplicationTemplateResult.TemplateId),\n });\n\n var exampleServicePrincipal = new AzureAD.ServicePrincipal(\"exampleServicePrincipal\", new()\n {\n ApplicationId = exampleApplication.ApplicationId,\n UseExisting = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleApplicationTemplate, err := azuread.GetApplicationTemplate(ctx, \u0026GetApplicationTemplateArgs{\n\t\t\tDisplayName: pulumi.StringRef(\"Marketo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tTemplateId: pulumi.String(exampleApplicationTemplate.TemplateId),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewServicePrincipal(ctx, \"exampleServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: exampleApplication.ApplicationId,\n\t\t\tUseExisting: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetApplicationTemplateArgs;\nimport com.pulumi.azuread.Application;\nimport com.pulumi.azuread.ApplicationArgs;\nimport com.pulumi.azuread.ServicePrincipal;\nimport com.pulumi.azuread.ServicePrincipalArgs;\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 exampleApplicationTemplate = AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder()\n .displayName(\"Marketo\")\n .build());\n\n var exampleApplication = new Application(\"exampleApplication\", ApplicationArgs.builder() \n .displayName(\"example\")\n .templateId(exampleApplicationTemplate.applyValue(getApplicationTemplateResult -\u003e getApplicationTemplateResult.templateId()))\n .build());\n\n var exampleServicePrincipal = new ServicePrincipal(\"exampleServicePrincipal\", ServicePrincipalArgs.builder() \n .applicationId(exampleApplication.applicationId())\n .useExisting(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleApplication:\n type: azuread:Application\n properties:\n displayName: example\n templateId: ${exampleApplicationTemplate.templateId}\n exampleServicePrincipal:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${exampleApplication.applicationId}\n useExisting: true\nvariables:\n exampleApplicationTemplate:\n Fn::Invoke:\n Function: azuread:getApplicationTemplate\n Arguments:\n displayName: Marketo\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nApplications can be imported using their object ID, e.g.\n\n```sh\n $ pulumi import azuread:index/application:Application test 00000000-0000-0000-0000-000000000000\n```\n\n ", "properties": { "api": { "$ref": "#/types/azuread:index/ApplicationApi:ApplicationApi", @@ -3464,7 +3512,8 @@ }, "templateId": { "type": "string", - "description": "Unique ID for a templated application in the Azure AD App Gallery, from which to create the application. Changing this forces a new resource to be created.\n" + "description": "Unique ID for a templated application in the Azure AD App Gallery, from which to create the application. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "termsOfServiceUrl": { "type": "string", @@ -3622,7 +3671,8 @@ }, "templateId": { "type": "string", - "description": "Unique ID for a templated application in the Azure AD App Gallery, from which to create the application. Changing this forces a new resource to be created.\n" + "description": "Unique ID for a templated application in the Azure AD App Gallery, from which to create the application. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "termsOfServiceUrl": { "type": "string", @@ -3682,35 +3732,43 @@ "inputProperties": { "applicationObjectId": { "type": "string", - "description": "The object ID of the application for which this certificate should be created. Changing this field forces a new resource to be created.\n" + "description": "The object ID of the application for which this certificate should be created. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "encoding": { "type": "string", - "description": "Specifies the encoding used for the supplied certificate data. Must be one of `pem`, `base64` or `hex`. Defaults to `pem`.\n" + "description": "Specifies the encoding used for the supplied certificate data. Must be one of `pem`, `base64` or `hex`. Defaults to `pem`.\n", + "willReplaceOnChanges": true }, "endDate": { "type": "string", - "description": "The end date until which the certificate is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If omitted, the API will decide a suitable expiry date, which is typically around 2 years from the start date. Changing this field forces a new resource to be created.\n" + "description": "The end date until which the certificate is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If omitted, the API will decide a suitable expiry date, which is typically around 2 years from the start date. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "endDateRelative": { "type": "string", - "description": "A relative duration for which the certificate is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.\n" + "description": "A relative duration for which the certificate is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "keyId": { "type": "string", - "description": "A UUID used to uniquely identify this certificate. If omitted, a random UUID will be automatically generated. Changing this field forces a new resource to be created.\n" + "description": "A UUID used to uniquely identify this certificate. If omitted, a random UUID will be automatically generated. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "startDate": { "type": "string", - "description": "The start date from which the certificate is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date and time are used. Changing this field forces a new resource to be created.\n" + "description": "The start date from which the certificate is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date and time are used. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "type": { "type": "string", - "description": "The type of key/certificate. Must be one of `AsymmetricX509Cert` or `Symmetric`. Changing this fields forces a new resource to be created.\n" + "description": "The type of key/certificate. Must be one of `AsymmetricX509Cert` or `Symmetric`. Changing this fields forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "value": { "type": "string", - "description": "The certificate data, which can be PEM encoded, base64 encoded DER or hexadecimal encoded DER. See also the `encoding` argument.\n" + "description": "The certificate data, which can be PEM encoded, base64 encoded DER or hexadecimal encoded DER. See also the `encoding` argument.\n", + "willReplaceOnChanges": true } }, "requiredInputs": [ @@ -3722,42 +3780,50 @@ "properties": { "applicationObjectId": { "type": "string", - "description": "The object ID of the application for which this certificate should be created. Changing this field forces a new resource to be created.\n" + "description": "The object ID of the application for which this certificate should be created. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "encoding": { "type": "string", - "description": "Specifies the encoding used for the supplied certificate data. Must be one of `pem`, `base64` or `hex`. Defaults to `pem`.\n" + "description": "Specifies the encoding used for the supplied certificate data. Must be one of `pem`, `base64` or `hex`. Defaults to `pem`.\n", + "willReplaceOnChanges": true }, "endDate": { "type": "string", - "description": "The end date until which the certificate is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If omitted, the API will decide a suitable expiry date, which is typically around 2 years from the start date. Changing this field forces a new resource to be created.\n" + "description": "The end date until which the certificate is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If omitted, the API will decide a suitable expiry date, which is typically around 2 years from the start date. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "endDateRelative": { "type": "string", - "description": "A relative duration for which the certificate is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.\n" + "description": "A relative duration for which the certificate is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "keyId": { "type": "string", - "description": "A UUID used to uniquely identify this certificate. If omitted, a random UUID will be automatically generated. Changing this field forces a new resource to be created.\n" + "description": "A UUID used to uniquely identify this certificate. If omitted, a random UUID will be automatically generated. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "startDate": { "type": "string", - "description": "The start date from which the certificate is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date and time are used. Changing this field forces a new resource to be created.\n" + "description": "The start date from which the certificate is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date and time are used. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "type": { "type": "string", - "description": "The type of key/certificate. Must be one of `AsymmetricX509Cert` or `Symmetric`. Changing this fields forces a new resource to be created.\n" + "description": "The type of key/certificate. Must be one of `AsymmetricX509Cert` or `Symmetric`. Changing this fields forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "value": { "type": "string", - "description": "The certificate data, which can be PEM encoded, base64 encoded DER or hexadecimal encoded DER. See also the `encoding` argument.\n" + "description": "The certificate data, which can be PEM encoded, base64 encoded DER or hexadecimal encoded DER. See also the `encoding` argument.\n", + "willReplaceOnChanges": true } }, "type": "object" } }, "azuread:index/applicationFederatedIdentityCredential:ApplicationFederatedIdentityCredential": { - "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {displayName: \"example\"});\nconst exampleApplicationFederatedIdentityCredential = new azuread.ApplicationFederatedIdentityCredential(\"exampleApplicationFederatedIdentityCredential\", {\n applicationObjectId: exampleApplication.objectId,\n displayName: \"my-repo-deploy\",\n description: \"Deployments for my-repo\",\n audiences: [\"api://AzureADTokenExchange\"],\n issuer: \"https://token.actions.githubusercontent.com\",\n subject: \"repo:my-organization/my-repo:environment:prod\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_application = azuread.Application(\"exampleApplication\", display_name=\"example\")\nexample_application_federated_identity_credential = azuread.ApplicationFederatedIdentityCredential(\"exampleApplicationFederatedIdentityCredential\",\n application_object_id=example_application.object_id,\n display_name=\"my-repo-deploy\",\n description=\"Deployments for my-repo\",\n audiences=[\"api://AzureADTokenExchange\"],\n issuer=\"https://token.actions.githubusercontent.com\",\n subject=\"repo:my-organization/my-repo:environment:prod\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new AzureAD.ApplicationArgs\n {\n DisplayName = \"example\",\n });\n var exampleApplicationFederatedIdentityCredential = new AzureAD.ApplicationFederatedIdentityCredential(\"exampleApplicationFederatedIdentityCredential\", new AzureAD.ApplicationFederatedIdentityCredentialArgs\n {\n ApplicationObjectId = exampleApplication.ObjectId,\n DisplayName = \"my-repo-deploy\",\n Description = \"Deployments for my-repo\",\n Audiences = \n {\n \"api://AzureADTokenExchange\",\n },\n Issuer = \"https://token.actions.githubusercontent.com\",\n Subject = \"repo:my-organization/my-repo:environment:prod\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewApplicationFederatedIdentityCredential(ctx, \"exampleApplicationFederatedIdentityCredential\", \u0026azuread.ApplicationFederatedIdentityCredentialArgs{\n\t\t\tApplicationObjectId: exampleApplication.ObjectId,\n\t\t\tDisplayName: pulumi.String(\"my-repo-deploy\"),\n\t\t\tDescription: pulumi.String(\"Deployments for my-repo\"),\n\t\t\tAudiences: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"api://AzureADTokenExchange\"),\n\t\t\t},\n\t\t\tIssuer: pulumi.String(\"https://token.actions.githubusercontent.com\"),\n\t\t\tSubject: pulumi.String(\"repo:my-organization/my-repo:environment:prod\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleApplication = new Application(\"exampleApplication\", ApplicationArgs.builder() \n .displayName(\"example\")\n .build());\n\n var exampleApplicationFederatedIdentityCredential = new ApplicationFederatedIdentityCredential(\"exampleApplicationFederatedIdentityCredential\", ApplicationFederatedIdentityCredentialArgs.builder() \n .applicationObjectId(exampleApplication.getObjectId())\n .displayName(\"my-repo-deploy\")\n .description(\"Deployments for my-repo\")\n .audiences(\"api://AzureADTokenExchange\")\n .issuer(\"https://token.actions.githubusercontent.com\")\n .subject(\"repo:my-organization/my-repo:environment:prod\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleApplication:\n type: azuread:Application\n properties:\n displayName: example\n exampleApplicationFederatedIdentityCredential:\n type: azuread:ApplicationFederatedIdentityCredential\n properties:\n applicationObjectId: ${exampleApplication.objectId}\n displayName: my-repo-deploy\n description: Deployments for my-repo\n audiences:\n - api://AzureADTokenExchange\n issuer: https://token.actions.githubusercontent.com\n subject: repo:my-organization/my-repo:environment:prod\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nFederated Identity Credentials can be imported using the object ID of the associated application and the ID of the federated identity credential, e.g.\n\n```sh\n $ pulumi import azuread:index/applicationFederatedIdentityCredential:ApplicationFederatedIdentityCredential test 00000000-0000-0000-0000-000000000000/federatedIdentityCredential/11111111-1111-1111-1111-111111111111\n```\n\n -\u003e This ID format is unique to Terraform and is composed of the application's object ID, the string \"federatedIdentityCredential\" and the credential ID in the format `{ObjectId}/federatedIdentityCredential/{CredentialId}`. ", + "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {displayName: \"example\"});\nconst exampleApplicationFederatedIdentityCredential = new azuread.ApplicationFederatedIdentityCredential(\"exampleApplicationFederatedIdentityCredential\", {\n applicationObjectId: exampleApplication.objectId,\n displayName: \"my-repo-deploy\",\n description: \"Deployments for my-repo\",\n audiences: [\"api://AzureADTokenExchange\"],\n issuer: \"https://token.actions.githubusercontent.com\",\n subject: \"repo:my-organization/my-repo:environment:prod\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_application = azuread.Application(\"exampleApplication\", display_name=\"example\")\nexample_application_federated_identity_credential = azuread.ApplicationFederatedIdentityCredential(\"exampleApplicationFederatedIdentityCredential\",\n application_object_id=example_application.object_id,\n display_name=\"my-repo-deploy\",\n description=\"Deployments for my-repo\",\n audiences=[\"api://AzureADTokenExchange\"],\n issuer=\"https://token.actions.githubusercontent.com\",\n subject=\"repo:my-organization/my-repo:environment:prod\")\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new()\n {\n DisplayName = \"example\",\n });\n\n var exampleApplicationFederatedIdentityCredential = new AzureAD.ApplicationFederatedIdentityCredential(\"exampleApplicationFederatedIdentityCredential\", new()\n {\n ApplicationObjectId = exampleApplication.ObjectId,\n DisplayName = \"my-repo-deploy\",\n Description = \"Deployments for my-repo\",\n Audiences = new[]\n {\n \"api://AzureADTokenExchange\",\n },\n Issuer = \"https://token.actions.githubusercontent.com\",\n Subject = \"repo:my-organization/my-repo:environment:prod\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewApplicationFederatedIdentityCredential(ctx, \"exampleApplicationFederatedIdentityCredential\", \u0026azuread.ApplicationFederatedIdentityCredentialArgs{\n\t\t\tApplicationObjectId: exampleApplication.ObjectId,\n\t\t\tDisplayName: pulumi.String(\"my-repo-deploy\"),\n\t\t\tDescription: pulumi.String(\"Deployments for my-repo\"),\n\t\t\tAudiences: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"api://AzureADTokenExchange\"),\n\t\t\t},\n\t\t\tIssuer: pulumi.String(\"https://token.actions.githubusercontent.com\"),\n\t\t\tSubject: pulumi.String(\"repo:my-organization/my-repo:environment:prod\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.Application;\nimport com.pulumi.azuread.ApplicationArgs;\nimport com.pulumi.azuread.ApplicationFederatedIdentityCredential;\nimport com.pulumi.azuread.ApplicationFederatedIdentityCredentialArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleApplication = new Application(\"exampleApplication\", ApplicationArgs.builder() \n .displayName(\"example\")\n .build());\n\n var exampleApplicationFederatedIdentityCredential = new ApplicationFederatedIdentityCredential(\"exampleApplicationFederatedIdentityCredential\", ApplicationFederatedIdentityCredentialArgs.builder() \n .applicationObjectId(exampleApplication.objectId())\n .displayName(\"my-repo-deploy\")\n .description(\"Deployments for my-repo\")\n .audiences(\"api://AzureADTokenExchange\")\n .issuer(\"https://token.actions.githubusercontent.com\")\n .subject(\"repo:my-organization/my-repo:environment:prod\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleApplication:\n type: azuread:Application\n properties:\n displayName: example\n exampleApplicationFederatedIdentityCredential:\n type: azuread:ApplicationFederatedIdentityCredential\n properties:\n applicationObjectId: ${exampleApplication.objectId}\n displayName: my-repo-deploy\n description: Deployments for my-repo\n audiences:\n - api://AzureADTokenExchange\n issuer: https://token.actions.githubusercontent.com\n subject: repo:my-organization/my-repo:environment:prod\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nFederated Identity Credentials can be imported using the object ID of the associated application and the ID of the federated identity credential, e.g.\n\n```sh\n $ pulumi import azuread:index/applicationFederatedIdentityCredential:ApplicationFederatedIdentityCredential test 00000000-0000-0000-0000-000000000000/federatedIdentityCredential/11111111-1111-1111-1111-111111111111\n```\n\n -\u003e This ID format is unique to Terraform and is composed of the application's object ID, the string \"federatedIdentityCredential\" and the credential ID in the format `{ObjectId}/federatedIdentityCredential/{CredentialId}`. ", "properties": { "applicationObjectId": { "type": "string", @@ -3802,7 +3868,8 @@ "inputProperties": { "applicationObjectId": { "type": "string", - "description": "The object ID of the application for which this federated identity credential should be created. Changing this field forces a new resource to be created.\n" + "description": "The object ID of the application for which this federated identity credential should be created. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "audiences": { "type": "array", @@ -3817,7 +3884,8 @@ }, "displayName": { "type": "string", - "description": "A unique display name for the federated identity credential. Changing this forces a new resource to be created.\n" + "description": "A unique display name for the federated identity credential. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "issuer": { "type": "string", @@ -3840,7 +3908,8 @@ "properties": { "applicationObjectId": { "type": "string", - "description": "The object ID of the application for which this federated identity credential should be created. Changing this field forces a new resource to be created.\n" + "description": "The object ID of the application for which this federated identity credential should be created. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "audiences": { "type": "array", @@ -3859,7 +3928,8 @@ }, "displayName": { "type": "string", - "description": "A unique display name for the federated identity credential. Changing this forces a new resource to be created.\n" + "description": "A unique display name for the federated identity credential. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "issuer": { "type": "string", @@ -3882,7 +3952,7 @@ }, "displayName": { "type": "string", - "description": "A display name for the password.\n" + "description": "A display name for the password. Changing this field forces a new resource to be created.\n" }, "endDate": { "type": "string", @@ -3923,30 +3993,36 @@ "inputProperties": { "applicationObjectId": { "type": "string", - "description": "The object ID of the application for which this password should be created. Changing this field forces a new resource to be created.\n" + "description": "The object ID of the application for which this password should be created. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "displayName": { "type": "string", - "description": "A display name for the password.\n" + "description": "A display name for the password. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "endDate": { "type": "string", - "description": "The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.\n" + "description": "The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "endDateRelative": { "type": "string", - "description": "A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.\n" + "description": "A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "rotateWhenChanged": { "type": "object", "additionalProperties": { "type": "string" }, - "description": "A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.\n" + "description": "A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "startDate": { "type": "string", - "description": "The start date from which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.\n" + "description": "The start date from which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true } }, "requiredInputs": [ @@ -3957,19 +4033,23 @@ "properties": { "applicationObjectId": { "type": "string", - "description": "The object ID of the application for which this password should be created. Changing this field forces a new resource to be created.\n" + "description": "The object ID of the application for which this password should be created. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "displayName": { "type": "string", - "description": "A display name for the password.\n" + "description": "A display name for the password. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "endDate": { "type": "string", - "description": "The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.\n" + "description": "The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "endDateRelative": { "type": "string", - "description": "A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.\n" + "description": "A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "keyId": { "type": "string", @@ -3980,11 +4060,13 @@ "additionalProperties": { "type": "string" }, - "description": "A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.\n" + "description": "A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "startDate": { "type": "string", - "description": "The start date from which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.\n" + "description": "The start date from which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "value": { "type": "string", @@ -3995,7 +4077,7 @@ } }, "azuread:index/applicationPreAuthorized:ApplicationPreAuthorized": { - "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst authorized = new azuread.Application(\"authorized\", {displayName: \"example-authorized-app\"});\nconst authorizer = new azuread.Application(\"authorizer\", {\n displayName: \"example-authorizing-app\",\n api: {\n oauth2PermissionScopes: [\n {\n adminConsentDescription: \"Administer the application\",\n adminConsentDisplayName: \"Administer\",\n enabled: true,\n id: \"ced9c4c3-c273-4f0f-ac71-a20377b90f9c\",\n type: \"Admin\",\n value: \"administer\",\n },\n {\n adminConsentDescription: \"Access the application\",\n adminConsentDisplayName: \"Access\",\n enabled: true,\n id: \"2d5e07ca-664d-4d9b-ad61-ec07fd215213\",\n type: \"User\",\n userConsentDescription: \"Access the application\",\n userConsentDisplayName: \"Access\",\n value: \"user_impersonation\",\n },\n ],\n },\n});\nconst example = new azuread.ApplicationPreAuthorized(\"example\", {\n applicationObjectId: authorizer.objectId,\n authorizedAppId: authorized.applicationId,\n permissionIds: [\n \"ced9c4c3-c273-4f0f-ac71-a20377b90f9c\",\n \"2d5e07ca-664d-4d9b-ad61-ec07fd215213\",\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nauthorized = azuread.Application(\"authorized\", display_name=\"example-authorized-app\")\nauthorizer = azuread.Application(\"authorizer\",\n display_name=\"example-authorizing-app\",\n api=azuread.ApplicationApiArgs(\n oauth2_permission_scopes=[\n azuread.ApplicationApiOauth2PermissionScopeArgs(\n admin_consent_description=\"Administer the application\",\n admin_consent_display_name=\"Administer\",\n enabled=True,\n id=\"ced9c4c3-c273-4f0f-ac71-a20377b90f9c\",\n type=\"Admin\",\n value=\"administer\",\n ),\n azuread.ApplicationApiOauth2PermissionScopeArgs(\n admin_consent_description=\"Access the application\",\n admin_consent_display_name=\"Access\",\n enabled=True,\n id=\"2d5e07ca-664d-4d9b-ad61-ec07fd215213\",\n type=\"User\",\n user_consent_description=\"Access the application\",\n user_consent_display_name=\"Access\",\n value=\"user_impersonation\",\n ),\n ],\n ))\nexample = azuread.ApplicationPreAuthorized(\"example\",\n application_object_id=authorizer.object_id,\n authorized_app_id=authorized.application_id,\n permission_ids=[\n \"ced9c4c3-c273-4f0f-ac71-a20377b90f9c\",\n \"2d5e07ca-664d-4d9b-ad61-ec07fd215213\",\n ])\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var authorized = new AzureAD.Application(\"authorized\", new AzureAD.ApplicationArgs\n {\n DisplayName = \"example-authorized-app\",\n });\n var authorizer = new AzureAD.Application(\"authorizer\", new AzureAD.ApplicationArgs\n {\n DisplayName = \"example-authorizing-app\",\n Api = new AzureAD.Inputs.ApplicationApiArgs\n {\n Oauth2PermissionScopes = \n {\n new AzureAD.Inputs.ApplicationApiOauth2PermissionScopeArgs\n {\n AdminConsentDescription = \"Administer the application\",\n AdminConsentDisplayName = \"Administer\",\n Enabled = true,\n Id = \"ced9c4c3-c273-4f0f-ac71-a20377b90f9c\",\n Type = \"Admin\",\n Value = \"administer\",\n },\n new AzureAD.Inputs.ApplicationApiOauth2PermissionScopeArgs\n {\n AdminConsentDescription = \"Access the application\",\n AdminConsentDisplayName = \"Access\",\n Enabled = true,\n Id = \"2d5e07ca-664d-4d9b-ad61-ec07fd215213\",\n Type = \"User\",\n UserConsentDescription = \"Access the application\",\n UserConsentDisplayName = \"Access\",\n Value = \"user_impersonation\",\n },\n },\n },\n });\n var example = new AzureAD.ApplicationPreAuthorized(\"example\", new AzureAD.ApplicationPreAuthorizedArgs\n {\n ApplicationObjectId = authorizer.ObjectId,\n AuthorizedAppId = authorized.ApplicationId,\n PermissionIds = \n {\n \"ced9c4c3-c273-4f0f-ac71-a20377b90f9c\",\n \"2d5e07ca-664d-4d9b-ad61-ec07fd215213\",\n },\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tauthorized, err := azuread.NewApplication(ctx, \"authorized\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example-authorized-app\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tauthorizer, err := azuread.NewApplication(ctx, \"authorizer\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example-authorizing-app\"),\n\t\t\tApi: \u0026ApplicationApiArgs{\n\t\t\t\tOauth2PermissionScopes: ApplicationApiOauth2PermissionScopeArray{\n\t\t\t\t\t\u0026ApplicationApiOauth2PermissionScopeArgs{\n\t\t\t\t\t\tAdminConsentDescription: pulumi.String(\"Administer the application\"),\n\t\t\t\t\t\tAdminConsentDisplayName: pulumi.String(\"Administer\"),\n\t\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\t\tId: pulumi.String(\"ced9c4c3-c273-4f0f-ac71-a20377b90f9c\"),\n\t\t\t\t\t\tType: pulumi.String(\"Admin\"),\n\t\t\t\t\t\tValue: pulumi.String(\"administer\"),\n\t\t\t\t\t},\n\t\t\t\t\t\u0026ApplicationApiOauth2PermissionScopeArgs{\n\t\t\t\t\t\tAdminConsentDescription: pulumi.String(\"Access the application\"),\n\t\t\t\t\t\tAdminConsentDisplayName: pulumi.String(\"Access\"),\n\t\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\t\tId: pulumi.String(\"2d5e07ca-664d-4d9b-ad61-ec07fd215213\"),\n\t\t\t\t\t\tType: pulumi.String(\"User\"),\n\t\t\t\t\t\tUserConsentDescription: pulumi.String(\"Access the application\"),\n\t\t\t\t\t\tUserConsentDisplayName: pulumi.String(\"Access\"),\n\t\t\t\t\t\tValue: pulumi.String(\"user_impersonation\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewApplicationPreAuthorized(ctx, \"example\", \u0026azuread.ApplicationPreAuthorizedArgs{\n\t\t\tApplicationObjectId: authorizer.ObjectId,\n\t\t\tAuthorizedAppId: authorized.ApplicationId,\n\t\t\tPermissionIds: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"ced9c4c3-c273-4f0f-ac71-a20377b90f9c\"),\n\t\t\t\tpulumi.String(\"2d5e07ca-664d-4d9b-ad61-ec07fd215213\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var authorized = new Application(\"authorized\", ApplicationArgs.builder() \n .displayName(\"example-authorized-app\")\n .build());\n\n var authorizer = new Application(\"authorizer\", ApplicationArgs.builder() \n .displayName(\"example-authorizing-app\")\n .api(ApplicationApi.builder()\n .oauth2PermissionScopes( \n ApplicationApiOauth2PermissionScope.builder()\n .adminConsentDescription(\"Administer the application\")\n .adminConsentDisplayName(\"Administer\")\n .enabled(true)\n .id(\"ced9c4c3-c273-4f0f-ac71-a20377b90f9c\")\n .type(\"Admin\")\n .value(\"administer\")\n .build(),\n ApplicationApiOauth2PermissionScope.builder()\n .adminConsentDescription(\"Access the application\")\n .adminConsentDisplayName(\"Access\")\n .enabled(true)\n .id(\"2d5e07ca-664d-4d9b-ad61-ec07fd215213\")\n .type(\"User\")\n .userConsentDescription(\"Access the application\")\n .userConsentDisplayName(\"Access\")\n .value(\"user_impersonation\")\n .build())\n .build())\n .build());\n\n var example = new ApplicationPreAuthorized(\"example\", ApplicationPreAuthorizedArgs.builder() \n .applicationObjectId(authorizer.getObjectId())\n .authorizedAppId(authorized.getApplicationId())\n .permissionIds( \n \"ced9c4c3-c273-4f0f-ac71-a20377b90f9c\",\n \"2d5e07ca-664d-4d9b-ad61-ec07fd215213\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n authorized:\n type: azuread:Application\n properties:\n displayName: example-authorized-app\n authorizer:\n type: azuread:Application\n properties:\n displayName: example-authorizing-app\n api:\n oauth2PermissionScopes:\n - adminConsentDescription: Administer the application\n adminConsentDisplayName: Administer\n enabled: true\n id: ced9c4c3-c273-4f0f-ac71-a20377b90f9c\n type: Admin\n value: administer\n - adminConsentDescription: Access the application\n adminConsentDisplayName: Access\n enabled: true\n id: 2d5e07ca-664d-4d9b-ad61-ec07fd215213\n type: User\n userConsentDescription: Access the application\n userConsentDisplayName: Access\n value: user_impersonation\n example:\n type: azuread:ApplicationPreAuthorized\n properties:\n applicationObjectId: ${authorizer.objectId}\n authorizedAppId: ${authorized.applicationId}\n permissionIds:\n - ced9c4c3-c273-4f0f-ac71-a20377b90f9c\n - 2d5e07ca-664d-4d9b-ad61-ec07fd215213\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nPre-authorized applications can be imported using the object ID of the authorizing application and the application ID of the application being authorized, e.g.\n\n```sh\n $ pulumi import azuread:index/applicationPreAuthorized:ApplicationPreAuthorized example 00000000-0000-0000-0000-000000000000/preAuthorizedApplication/11111111-1111-1111-1111-111111111111\n```\n\n -\u003e This ID format is unique to Terraform and is composed of the authorizing application's object ID, the string \"preAuthorizedApplication\" and the authorized application's application ID (client ID) in the format `{ObjectId}/preAuthorizedApplication/{ApplicationId}`. ", + "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst authorized = new azuread.Application(\"authorized\", {displayName: \"example-authorized-app\"});\nconst authorizer = new azuread.Application(\"authorizer\", {\n displayName: \"example-authorizing-app\",\n api: {\n oauth2PermissionScopes: [\n {\n adminConsentDescription: \"Administer the application\",\n adminConsentDisplayName: \"Administer\",\n enabled: true,\n id: \"ced9c4c3-c273-4f0f-ac71-a20377b90f9c\",\n type: \"Admin\",\n value: \"administer\",\n },\n {\n adminConsentDescription: \"Access the application\",\n adminConsentDisplayName: \"Access\",\n enabled: true,\n id: \"2d5e07ca-664d-4d9b-ad61-ec07fd215213\",\n type: \"User\",\n userConsentDescription: \"Access the application\",\n userConsentDisplayName: \"Access\",\n value: \"user_impersonation\",\n },\n ],\n },\n});\nconst example = new azuread.ApplicationPreAuthorized(\"example\", {\n applicationObjectId: authorizer.objectId,\n authorizedAppId: authorized.applicationId,\n permissionIds: [\n \"ced9c4c3-c273-4f0f-ac71-a20377b90f9c\",\n \"2d5e07ca-664d-4d9b-ad61-ec07fd215213\",\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nauthorized = azuread.Application(\"authorized\", display_name=\"example-authorized-app\")\nauthorizer = azuread.Application(\"authorizer\",\n display_name=\"example-authorizing-app\",\n api=azuread.ApplicationApiArgs(\n oauth2_permission_scopes=[\n azuread.ApplicationApiOauth2PermissionScopeArgs(\n admin_consent_description=\"Administer the application\",\n admin_consent_display_name=\"Administer\",\n enabled=True,\n id=\"ced9c4c3-c273-4f0f-ac71-a20377b90f9c\",\n type=\"Admin\",\n value=\"administer\",\n ),\n azuread.ApplicationApiOauth2PermissionScopeArgs(\n admin_consent_description=\"Access the application\",\n admin_consent_display_name=\"Access\",\n enabled=True,\n id=\"2d5e07ca-664d-4d9b-ad61-ec07fd215213\",\n type=\"User\",\n user_consent_description=\"Access the application\",\n user_consent_display_name=\"Access\",\n value=\"user_impersonation\",\n ),\n ],\n ))\nexample = azuread.ApplicationPreAuthorized(\"example\",\n application_object_id=authorizer.object_id,\n authorized_app_id=authorized.application_id,\n permission_ids=[\n \"ced9c4c3-c273-4f0f-ac71-a20377b90f9c\",\n \"2d5e07ca-664d-4d9b-ad61-ec07fd215213\",\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var authorized = new AzureAD.Application(\"authorized\", new()\n {\n DisplayName = \"example-authorized-app\",\n });\n\n var authorizer = new AzureAD.Application(\"authorizer\", new()\n {\n DisplayName = \"example-authorizing-app\",\n Api = new AzureAD.Inputs.ApplicationApiArgs\n {\n Oauth2PermissionScopes = new[]\n {\n new AzureAD.Inputs.ApplicationApiOauth2PermissionScopeArgs\n {\n AdminConsentDescription = \"Administer the application\",\n AdminConsentDisplayName = \"Administer\",\n Enabled = true,\n Id = \"ced9c4c3-c273-4f0f-ac71-a20377b90f9c\",\n Type = \"Admin\",\n Value = \"administer\",\n },\n new AzureAD.Inputs.ApplicationApiOauth2PermissionScopeArgs\n {\n AdminConsentDescription = \"Access the application\",\n AdminConsentDisplayName = \"Access\",\n Enabled = true,\n Id = \"2d5e07ca-664d-4d9b-ad61-ec07fd215213\",\n Type = \"User\",\n UserConsentDescription = \"Access the application\",\n UserConsentDisplayName = \"Access\",\n Value = \"user_impersonation\",\n },\n },\n },\n });\n\n var example = new AzureAD.ApplicationPreAuthorized(\"example\", new()\n {\n ApplicationObjectId = authorizer.ObjectId,\n AuthorizedAppId = authorized.ApplicationId,\n PermissionIds = new[]\n {\n \"ced9c4c3-c273-4f0f-ac71-a20377b90f9c\",\n \"2d5e07ca-664d-4d9b-ad61-ec07fd215213\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tauthorized, err := azuread.NewApplication(ctx, \"authorized\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example-authorized-app\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tauthorizer, err := azuread.NewApplication(ctx, \"authorizer\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example-authorizing-app\"),\n\t\t\tApi: \u0026ApplicationApiArgs{\n\t\t\t\tOauth2PermissionScopes: ApplicationApiOauth2PermissionScopeArray{\n\t\t\t\t\t\u0026ApplicationApiOauth2PermissionScopeArgs{\n\t\t\t\t\t\tAdminConsentDescription: pulumi.String(\"Administer the application\"),\n\t\t\t\t\t\tAdminConsentDisplayName: pulumi.String(\"Administer\"),\n\t\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\t\tId: pulumi.String(\"ced9c4c3-c273-4f0f-ac71-a20377b90f9c\"),\n\t\t\t\t\t\tType: pulumi.String(\"Admin\"),\n\t\t\t\t\t\tValue: pulumi.String(\"administer\"),\n\t\t\t\t\t},\n\t\t\t\t\t\u0026ApplicationApiOauth2PermissionScopeArgs{\n\t\t\t\t\t\tAdminConsentDescription: pulumi.String(\"Access the application\"),\n\t\t\t\t\t\tAdminConsentDisplayName: pulumi.String(\"Access\"),\n\t\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\t\tId: pulumi.String(\"2d5e07ca-664d-4d9b-ad61-ec07fd215213\"),\n\t\t\t\t\t\tType: pulumi.String(\"User\"),\n\t\t\t\t\t\tUserConsentDescription: pulumi.String(\"Access the application\"),\n\t\t\t\t\t\tUserConsentDisplayName: pulumi.String(\"Access\"),\n\t\t\t\t\t\tValue: pulumi.String(\"user_impersonation\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewApplicationPreAuthorized(ctx, \"example\", \u0026azuread.ApplicationPreAuthorizedArgs{\n\t\t\tApplicationObjectId: authorizer.ObjectId,\n\t\t\tAuthorizedAppId: authorized.ApplicationId,\n\t\t\tPermissionIds: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"ced9c4c3-c273-4f0f-ac71-a20377b90f9c\"),\n\t\t\t\tpulumi.String(\"2d5e07ca-664d-4d9b-ad61-ec07fd215213\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.Application;\nimport com.pulumi.azuread.ApplicationArgs;\nimport com.pulumi.azuread.inputs.ApplicationApiArgs;\nimport com.pulumi.azuread.ApplicationPreAuthorized;\nimport com.pulumi.azuread.ApplicationPreAuthorizedArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var authorized = new Application(\"authorized\", ApplicationArgs.builder() \n .displayName(\"example-authorized-app\")\n .build());\n\n var authorizer = new Application(\"authorizer\", ApplicationArgs.builder() \n .displayName(\"example-authorizing-app\")\n .api(ApplicationApiArgs.builder()\n .oauth2PermissionScopes( \n ApplicationApiOauth2PermissionScopeArgs.builder()\n .adminConsentDescription(\"Administer the application\")\n .adminConsentDisplayName(\"Administer\")\n .enabled(true)\n .id(\"ced9c4c3-c273-4f0f-ac71-a20377b90f9c\")\n .type(\"Admin\")\n .value(\"administer\")\n .build(),\n ApplicationApiOauth2PermissionScopeArgs.builder()\n .adminConsentDescription(\"Access the application\")\n .adminConsentDisplayName(\"Access\")\n .enabled(true)\n .id(\"2d5e07ca-664d-4d9b-ad61-ec07fd215213\")\n .type(\"User\")\n .userConsentDescription(\"Access the application\")\n .userConsentDisplayName(\"Access\")\n .value(\"user_impersonation\")\n .build())\n .build())\n .build());\n\n var example = new ApplicationPreAuthorized(\"example\", ApplicationPreAuthorizedArgs.builder() \n .applicationObjectId(authorizer.objectId())\n .authorizedAppId(authorized.applicationId())\n .permissionIds( \n \"ced9c4c3-c273-4f0f-ac71-a20377b90f9c\",\n \"2d5e07ca-664d-4d9b-ad61-ec07fd215213\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n authorized:\n type: azuread:Application\n properties:\n displayName: example-authorized-app\n authorizer:\n type: azuread:Application\n properties:\n displayName: example-authorizing-app\n api:\n oauth2PermissionScopes:\n - adminConsentDescription: Administer the application\n adminConsentDisplayName: Administer\n enabled: true\n id: ced9c4c3-c273-4f0f-ac71-a20377b90f9c\n type: Admin\n value: administer\n - adminConsentDescription: Access the application\n adminConsentDisplayName: Access\n enabled: true\n id: 2d5e07ca-664d-4d9b-ad61-ec07fd215213\n type: User\n userConsentDescription: Access the application\n userConsentDisplayName: Access\n value: user_impersonation\n example:\n type: azuread:ApplicationPreAuthorized\n properties:\n applicationObjectId: ${authorizer.objectId}\n authorizedAppId: ${authorized.applicationId}\n permissionIds:\n - ced9c4c3-c273-4f0f-ac71-a20377b90f9c\n - 2d5e07ca-664d-4d9b-ad61-ec07fd215213\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nPre-authorized applications can be imported using the object ID of the authorizing application and the application ID of the application being authorized, e.g.\n\n```sh\n $ pulumi import azuread:index/applicationPreAuthorized:ApplicationPreAuthorized example 00000000-0000-0000-0000-000000000000/preAuthorizedApplication/11111111-1111-1111-1111-111111111111\n```\n\n -\u003e This ID format is unique to Terraform and is composed of the authorizing application's object ID, the string \"preAuthorizedApplication\" and the authorized application's application ID (client ID) in the format `{ObjectId}/preAuthorizedApplication/{ApplicationId}`. ", "properties": { "applicationObjectId": { "type": "string", @@ -4021,11 +4103,13 @@ "inputProperties": { "applicationObjectId": { "type": "string", - "description": "The object ID of the application for which permissions are being authorized. Changing this field forces a new resource to be created.\n" + "description": "The object ID of the application for which permissions are being authorized. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "authorizedAppId": { "type": "string", - "description": "The application ID of the pre-authorized application\n" + "description": "The application ID of the pre-authorized application\n", + "willReplaceOnChanges": true }, "permissionIds": { "type": "array", @@ -4045,11 +4129,13 @@ "properties": { "applicationObjectId": { "type": "string", - "description": "The object ID of the application for which permissions are being authorized. Changing this field forces a new resource to be created.\n" + "description": "The object ID of the application for which permissions are being authorized. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "authorizedAppId": { "type": "string", - "description": "The application ID of the pre-authorized application\n" + "description": "The application ID of the pre-authorized application\n", + "willReplaceOnChanges": true }, "permissionIds": { "type": "array", @@ -4063,7 +4149,7 @@ } }, "azuread:index/claimsMappingPolicy:ClaimsMappingPolicy": { - "description": "Manages a Claims Mapping Policy within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires the following application roles: `Policy.ReadWrite.ApplicationConfiguration` and `Policy.Read.All`\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Application Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst myPolicy = new azuread.ClaimsMappingPolicy(\"myPolicy\", {\n definitions: [JSON.stringify({\n ClaimsMappingPolicy: {\n ClaimsSchema: [\n {\n ID: \"employeeid\",\n JwtClaimType: \"name\",\n SamlClaimType: \"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name\",\n Source: \"user\",\n },\n {\n ID: \"tenantcountry\",\n JwtClaimType: \"country\",\n SamlClaimType: \"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country\",\n Source: \"company\",\n },\n ],\n IncludeBasicClaimSet: \"true\",\n Version: 1,\n },\n })],\n displayName: \"My Policy\",\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_azuread as azuread\n\nmy_policy = azuread.ClaimsMappingPolicy(\"myPolicy\",\n definitions=[json.dumps({\n \"ClaimsMappingPolicy\": {\n \"ClaimsSchema\": [\n {\n \"ID\": \"employeeid\",\n \"JwtClaimType\": \"name\",\n \"SamlClaimType\": \"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name\",\n \"Source\": \"user\",\n },\n {\n \"ID\": \"tenantcountry\",\n \"JwtClaimType\": \"country\",\n \"SamlClaimType\": \"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country\",\n \"Source\": \"company\",\n },\n ],\n \"IncludeBasicClaimSet\": \"true\",\n \"Version\": 1,\n },\n })],\n display_name=\"My Policy\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Text.Json;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var myPolicy = new AzureAD.ClaimsMappingPolicy(\"myPolicy\", new AzureAD.ClaimsMappingPolicyArgs\n {\n Definitions = \n {\n JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n { \"ClaimsMappingPolicy\", new Dictionary\u003cstring, object?\u003e\n {\n { \"ClaimsSchema\", new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n { \"ID\", \"employeeid\" },\n { \"JwtClaimType\", \"name\" },\n { \"SamlClaimType\", \"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name\" },\n { \"Source\", \"user\" },\n },\n new Dictionary\u003cstring, object?\u003e\n {\n { \"ID\", \"tenantcountry\" },\n { \"JwtClaimType\", \"country\" },\n { \"SamlClaimType\", \"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country\" },\n { \"Source\", \"company\" },\n },\n }\n },\n { \"IncludeBasicClaimSet\", \"true\" },\n { \"Version\", 1 },\n } },\n }),\n },\n DisplayName = \"My Policy\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal(map[string]interface{}{\n\t\t\t\"ClaimsMappingPolicy\": map[string]interface{}{\n\t\t\t\t\"ClaimsSchema\": []map[string]interface{}{\n\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\"ID\": \"employeeid\",\n\t\t\t\t\t\t\"JwtClaimType\": \"name\",\n\t\t\t\t\t\t\"SamlClaimType\": \"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name\",\n\t\t\t\t\t\t\"Source\": \"user\",\n\t\t\t\t\t},\n\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\"ID\": \"tenantcountry\",\n\t\t\t\t\t\t\"JwtClaimType\": \"country\",\n\t\t\t\t\t\t\"SamlClaimType\": \"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country\",\n\t\t\t\t\t\t\"Source\": \"company\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\"IncludeBasicClaimSet\": \"true\",\n\t\t\t\t\"Version\": 1,\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\t_, err := azuread.NewClaimsMappingPolicy(ctx, \"myPolicy\", \u0026azuread.ClaimsMappingPolicyArgs{\n\t\t\tDefinitions: pulumi.StringArray{\n\t\t\t\tpulumi.String(json0),\n\t\t\t},\n\t\t\tDisplayName: pulumi.String(\"My Policy\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\nimport static com.pulumi.codegen.internal.Serialization.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var myPolicy = new ClaimsMappingPolicy(\"myPolicy\", ClaimsMappingPolicyArgs.builder() \n .definitions(serializeJson(\n jsonObject(\n jsonProperty(\"ClaimsMappingPolicy\", jsonObject(\n jsonProperty(\"ClaimsSchema\", jsonArray(\n jsonObject(\n jsonProperty(\"ID\", \"employeeid\"),\n jsonProperty(\"JwtClaimType\", \"name\"),\n jsonProperty(\"SamlClaimType\", \"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name\"),\n jsonProperty(\"Source\", \"user\")\n ), \n jsonObject(\n jsonProperty(\"ID\", \"tenantcountry\"),\n jsonProperty(\"JwtClaimType\", \"country\"),\n jsonProperty(\"SamlClaimType\", \"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country\"),\n jsonProperty(\"Source\", \"company\")\n )\n )),\n jsonProperty(\"IncludeBasicClaimSet\", \"true\"),\n jsonProperty(\"Version\", 1)\n ))\n )))\n .displayName(\"My Policy\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n myPolicy:\n type: azuread:ClaimsMappingPolicy\n properties:\n definitions:\n - Fn::ToJSON:\n ClaimsMappingPolicy:\n ClaimsSchema:\n - ID: employeeid\n JwtClaimType: name\n SamlClaimType: http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name\n Source: user\n - ID: tenantcountry\n JwtClaimType: country\n SamlClaimType: http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country\n Source: company\n IncludeBasicClaimSet: true\n Version: 1\n displayName: My Policy\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nClaims Mapping Policy can be imported using the `id`, e.g.\n\n```sh\n $ pulumi import azuread:index/claimsMappingPolicy:ClaimsMappingPolicy my_policy 00000000-0000-0000-0000-000000000000\n```\n\n ", + "description": "Manages a Claims Mapping Policy within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires the following application roles: `Policy.ReadWrite.ApplicationConfiguration` and `Policy.Read.All`\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Application Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst myPolicy = new azuread.ClaimsMappingPolicy(\"myPolicy\", {\n definitions: [JSON.stringify({\n ClaimsMappingPolicy: {\n ClaimsSchema: [\n {\n ID: \"employeeid\",\n JwtClaimType: \"name\",\n SamlClaimType: \"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name\",\n Source: \"user\",\n },\n {\n ID: \"tenantcountry\",\n JwtClaimType: \"country\",\n SamlClaimType: \"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country\",\n Source: \"company\",\n },\n ],\n IncludeBasicClaimSet: \"true\",\n Version: 1,\n },\n })],\n displayName: \"My Policy\",\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_azuread as azuread\n\nmy_policy = azuread.ClaimsMappingPolicy(\"myPolicy\",\n definitions=[json.dumps({\n \"ClaimsMappingPolicy\": {\n \"ClaimsSchema\": [\n {\n \"ID\": \"employeeid\",\n \"JwtClaimType\": \"name\",\n \"SamlClaimType\": \"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name\",\n \"Source\": \"user\",\n },\n {\n \"ID\": \"tenantcountry\",\n \"JwtClaimType\": \"country\",\n \"SamlClaimType\": \"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country\",\n \"Source\": \"company\",\n },\n ],\n \"IncludeBasicClaimSet\": \"true\",\n \"Version\": 1,\n },\n })],\n display_name=\"My Policy\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Text.Json;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var myPolicy = new AzureAD.ClaimsMappingPolicy(\"myPolicy\", new()\n {\n Definitions = new[]\n {\n JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"ClaimsMappingPolicy\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"ClaimsSchema\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"ID\"] = \"employeeid\",\n [\"JwtClaimType\"] = \"name\",\n [\"SamlClaimType\"] = \"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name\",\n [\"Source\"] = \"user\",\n },\n new Dictionary\u003cstring, object?\u003e\n {\n [\"ID\"] = \"tenantcountry\",\n [\"JwtClaimType\"] = \"country\",\n [\"SamlClaimType\"] = \"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country\",\n [\"Source\"] = \"company\",\n },\n },\n [\"IncludeBasicClaimSet\"] = \"true\",\n [\"Version\"] = 1,\n },\n }),\n },\n DisplayName = \"My Policy\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal(map[string]interface{}{\n\t\t\t\"ClaimsMappingPolicy\": map[string]interface{}{\n\t\t\t\t\"ClaimsSchema\": []map[string]interface{}{\n\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\"ID\": \"employeeid\",\n\t\t\t\t\t\t\"JwtClaimType\": \"name\",\n\t\t\t\t\t\t\"SamlClaimType\": \"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name\",\n\t\t\t\t\t\t\"Source\": \"user\",\n\t\t\t\t\t},\n\t\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\t\"ID\": \"tenantcountry\",\n\t\t\t\t\t\t\"JwtClaimType\": \"country\",\n\t\t\t\t\t\t\"SamlClaimType\": \"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country\",\n\t\t\t\t\t\t\"Source\": \"company\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\"IncludeBasicClaimSet\": \"true\",\n\t\t\t\t\"Version\": 1,\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\t_, err = azuread.NewClaimsMappingPolicy(ctx, \"myPolicy\", \u0026azuread.ClaimsMappingPolicyArgs{\n\t\t\tDefinitions: pulumi.StringArray{\n\t\t\t\tpulumi.String(json0),\n\t\t\t},\n\t\t\tDisplayName: pulumi.String(\"My Policy\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.ClaimsMappingPolicy;\nimport com.pulumi.azuread.ClaimsMappingPolicyArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var myPolicy = new ClaimsMappingPolicy(\"myPolicy\", ClaimsMappingPolicyArgs.builder() \n .definitions(serializeJson(\n jsonObject(\n jsonProperty(\"ClaimsMappingPolicy\", jsonObject(\n jsonProperty(\"ClaimsSchema\", jsonArray(\n jsonObject(\n jsonProperty(\"ID\", \"employeeid\"),\n jsonProperty(\"JwtClaimType\", \"name\"),\n jsonProperty(\"SamlClaimType\", \"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name\"),\n jsonProperty(\"Source\", \"user\")\n ), \n jsonObject(\n jsonProperty(\"ID\", \"tenantcountry\"),\n jsonProperty(\"JwtClaimType\", \"country\"),\n jsonProperty(\"SamlClaimType\", \"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country\"),\n jsonProperty(\"Source\", \"company\")\n )\n )),\n jsonProperty(\"IncludeBasicClaimSet\", \"true\"),\n jsonProperty(\"Version\", 1)\n ))\n )))\n .displayName(\"My Policy\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n myPolicy:\n type: azuread:ClaimsMappingPolicy\n properties:\n definitions:\n - Fn::ToJSON:\n ClaimsMappingPolicy:\n ClaimsSchema:\n - ID: employeeid\n JwtClaimType: name\n SamlClaimType: http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name\n Source: user\n - ID: tenantcountry\n JwtClaimType: country\n SamlClaimType: http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country\n Source: company\n IncludeBasicClaimSet: true\n Version: 1\n displayName: My Policy\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nClaims Mapping Policy can be imported using the `id`, e.g.\n\n```sh\n $ pulumi import azuread:index/claimsMappingPolicy:ClaimsMappingPolicy my_policy 00000000-0000-0000-0000-000000000000\n```\n\n ", "properties": { "definitions": { "type": "array", @@ -4117,7 +4203,7 @@ } }, "azuread:index/conditionalAccessPolicy:ConditionalAccessPolicy": { - "description": "Manages a Conditional Access Policy within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires the following application roles: `Policy.ReadWrite.ConditionalAccess` and `Policy.Read.All`\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Conditional Access Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.ConditionalAccessPolicy(\"example\", {\n conditions: {\n applications: {\n excludedApplications: [],\n includedApplications: [\"All\"],\n },\n clientAppTypes: [\"all\"],\n devices: {\n filter: {\n mode: \"exclude\",\n rule: \"device.operatingSystem eq \\\"Doors\\\"\",\n },\n },\n locations: {\n excludedLocations: [\"AllTrusted\"],\n includedLocations: [\"All\"],\n },\n platforms: {\n excludedPlatforms: [\"iOS\"],\n includedPlatforms: [\"android\"],\n },\n signInRiskLevels: [\"medium\"],\n userRiskLevels: [\"medium\"],\n users: {\n excludedUsers: [\"GuestsOrExternalUsers\"],\n includedUsers: [\"All\"],\n },\n },\n displayName: \"example policy\",\n grantControls: {\n builtInControls: [\"mfa\"],\n operator: \"OR\",\n },\n sessionControls: {\n applicationEnforcedRestrictionsEnabled: true,\n cloudAppSecurityPolicy: \"monitorOnly\",\n signInFrequency: 10,\n signInFrequencyPeriod: \"hours\",\n },\n state: \"disabled\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.ConditionalAccessPolicy(\"example\",\n conditions=azuread.ConditionalAccessPolicyConditionsArgs(\n applications=azuread.ConditionalAccessPolicyConditionsApplicationsArgs(\n excluded_applications=[],\n included_applications=[\"All\"],\n ),\n client_app_types=[\"all\"],\n devices=azuread.ConditionalAccessPolicyConditionsDevicesArgs(\n filter=azuread.ConditionalAccessPolicyConditionsDevicesFilterArgs(\n mode=\"exclude\",\n rule=\"device.operatingSystem eq \\\"Doors\\\"\",\n ),\n ),\n locations=azuread.ConditionalAccessPolicyConditionsLocationsArgs(\n excluded_locations=[\"AllTrusted\"],\n included_locations=[\"All\"],\n ),\n platforms=azuread.ConditionalAccessPolicyConditionsPlatformsArgs(\n excluded_platforms=[\"iOS\"],\n included_platforms=[\"android\"],\n ),\n sign_in_risk_levels=[\"medium\"],\n user_risk_levels=[\"medium\"],\n users=azuread.ConditionalAccessPolicyConditionsUsersArgs(\n excluded_users=[\"GuestsOrExternalUsers\"],\n included_users=[\"All\"],\n ),\n ),\n display_name=\"example policy\",\n grant_controls=azuread.ConditionalAccessPolicyGrantControlsArgs(\n built_in_controls=[\"mfa\"],\n operator=\"OR\",\n ),\n session_controls=azuread.ConditionalAccessPolicySessionControlsArgs(\n application_enforced_restrictions_enabled=True,\n cloud_app_security_policy=\"monitorOnly\",\n sign_in_frequency=10,\n sign_in_frequency_period=\"hours\",\n ),\n state=\"disabled\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = new AzureAD.ConditionalAccessPolicy(\"example\", new AzureAD.ConditionalAccessPolicyArgs\n {\n Conditions = new AzureAD.Inputs.ConditionalAccessPolicyConditionsArgs\n {\n Applications = new AzureAD.Inputs.ConditionalAccessPolicyConditionsApplicationsArgs\n {\n ExcludedApplications = {},\n IncludedApplications = \n {\n \"All\",\n },\n },\n ClientAppTypes = \n {\n \"all\",\n },\n Devices = new AzureAD.Inputs.ConditionalAccessPolicyConditionsDevicesArgs\n {\n Filter = new AzureAD.Inputs.ConditionalAccessPolicyConditionsDevicesFilterArgs\n {\n Mode = \"exclude\",\n Rule = \"device.operatingSystem eq \\\"Doors\\\"\",\n },\n },\n Locations = new AzureAD.Inputs.ConditionalAccessPolicyConditionsLocationsArgs\n {\n ExcludedLocations = \n {\n \"AllTrusted\",\n },\n IncludedLocations = \n {\n \"All\",\n },\n },\n Platforms = new AzureAD.Inputs.ConditionalAccessPolicyConditionsPlatformsArgs\n {\n ExcludedPlatforms = \n {\n \"iOS\",\n },\n IncludedPlatforms = \n {\n \"android\",\n },\n },\n SignInRiskLevels = \n {\n \"medium\",\n },\n UserRiskLevels = \n {\n \"medium\",\n },\n Users = new AzureAD.Inputs.ConditionalAccessPolicyConditionsUsersArgs\n {\n ExcludedUsers = \n {\n \"GuestsOrExternalUsers\",\n },\n IncludedUsers = \n {\n \"All\",\n },\n },\n },\n DisplayName = \"example policy\",\n GrantControls = new AzureAD.Inputs.ConditionalAccessPolicyGrantControlsArgs\n {\n BuiltInControls = \n {\n \"mfa\",\n },\n Operator = \"OR\",\n },\n SessionControls = new AzureAD.Inputs.ConditionalAccessPolicySessionControlsArgs\n {\n ApplicationEnforcedRestrictionsEnabled = true,\n CloudAppSecurityPolicy = \"monitorOnly\",\n SignInFrequency = 10,\n SignInFrequencyPeriod = \"hours\",\n },\n State = \"disabled\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.NewConditionalAccessPolicy(ctx, \"example\", \u0026azuread.ConditionalAccessPolicyArgs{\n\t\t\tConditions: \u0026ConditionalAccessPolicyConditionsArgs{\n\t\t\t\tApplications: \u0026ConditionalAccessPolicyConditionsApplicationsArgs{\n\t\t\t\t\tExcludedApplications: pulumi.StringArray{},\n\t\t\t\t\tIncludedApplications: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"All\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tClientAppTypes: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"all\"),\n\t\t\t\t},\n\t\t\t\tDevices: \u0026ConditionalAccessPolicyConditionsDevicesArgs{\n\t\t\t\t\tFilter: \u0026ConditionalAccessPolicyConditionsDevicesFilterArgs{\n\t\t\t\t\t\tMode: pulumi.String(\"exclude\"),\n\t\t\t\t\t\tRule: pulumi.String(\"device.operatingSystem eq \\\"Doors\\\"\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tLocations: \u0026ConditionalAccessPolicyConditionsLocationsArgs{\n\t\t\t\t\tExcludedLocations: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"AllTrusted\"),\n\t\t\t\t\t},\n\t\t\t\t\tIncludedLocations: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"All\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tPlatforms: \u0026ConditionalAccessPolicyConditionsPlatformsArgs{\n\t\t\t\t\tExcludedPlatforms: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"iOS\"),\n\t\t\t\t\t},\n\t\t\t\t\tIncludedPlatforms: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"android\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tSignInRiskLevels: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"medium\"),\n\t\t\t\t},\n\t\t\t\tUserRiskLevels: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"medium\"),\n\t\t\t\t},\n\t\t\t\tUsers: \u0026ConditionalAccessPolicyConditionsUsersArgs{\n\t\t\t\t\tExcludedUsers: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"GuestsOrExternalUsers\"),\n\t\t\t\t\t},\n\t\t\t\t\tIncludedUsers: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"All\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tDisplayName: pulumi.String(\"example policy\"),\n\t\t\tGrantControls: \u0026ConditionalAccessPolicyGrantControlsArgs{\n\t\t\t\tBuiltInControls: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"mfa\"),\n\t\t\t\t},\n\t\t\t\tOperator: pulumi.String(\"OR\"),\n\t\t\t},\n\t\t\tSessionControls: \u0026ConditionalAccessPolicySessionControlsArgs{\n\t\t\t\tApplicationEnforcedRestrictionsEnabled: pulumi.Bool(true),\n\t\t\t\tCloudAppSecurityPolicy: pulumi.String(\"monitorOnly\"),\n\t\t\t\tSignInFrequency: pulumi.Int(10),\n\t\t\t\tSignInFrequencyPeriod: pulumi.String(\"hours\"),\n\t\t\t},\n\t\t\tState: pulumi.String(\"disabled\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ConditionalAccessPolicy(\"example\", ConditionalAccessPolicyArgs.builder() \n .conditions(ConditionalAccessPolicyConditions.builder()\n .applications(ConditionalAccessPolicyConditionsApplications.builder()\n .excludedApplications()\n .includedApplications(\"All\")\n .build())\n .clientAppTypes(\"all\")\n .devices(ConditionalAccessPolicyConditionsDevices.builder()\n .filter(ConditionalAccessPolicyConditionsDevicesFilter.builder()\n .mode(\"exclude\")\n .rule(\"device.operatingSystem eq \\\"Doors\\\"\")\n .build())\n .build())\n .locations(ConditionalAccessPolicyConditionsLocations.builder()\n .excludedLocations(\"AllTrusted\")\n .includedLocations(\"All\")\n .build())\n .platforms(ConditionalAccessPolicyConditionsPlatforms.builder()\n .excludedPlatforms(\"iOS\")\n .includedPlatforms(\"android\")\n .build())\n .signInRiskLevels(\"medium\")\n .userRiskLevels(\"medium\")\n .users(ConditionalAccessPolicyConditionsUsers.builder()\n .excludedUsers(\"GuestsOrExternalUsers\")\n .includedUsers(\"All\")\n .build())\n .build())\n .displayName(\"example policy\")\n .grantControls(ConditionalAccessPolicyGrantControls.builder()\n .builtInControls(\"mfa\")\n .operator(\"OR\")\n .build())\n .sessionControls(ConditionalAccessPolicySessionControls.builder()\n .applicationEnforcedRestrictionsEnabled(true)\n .cloudAppSecurityPolicy(\"monitorOnly\")\n .signInFrequency(10)\n .signInFrequencyPeriod(\"hours\")\n .build())\n .state(\"disabled\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azuread:ConditionalAccessPolicy\n properties:\n conditions:\n applications:\n excludedApplications: []\n includedApplications:\n - All\n clientAppTypes:\n - all\n devices:\n filter:\n mode: exclude\n rule: device.operatingSystem eq \"Doors\"\n locations:\n excludedLocations:\n - AllTrusted\n includedLocations:\n - All\n platforms:\n excludedPlatforms:\n - iOS\n includedPlatforms:\n - android\n signInRiskLevels:\n - medium\n userRiskLevels:\n - medium\n users:\n excludedUsers:\n - GuestsOrExternalUsers\n includedUsers:\n - All\n displayName: example policy\n grantControls:\n builtInControls:\n - mfa\n operator: OR\n sessionControls:\n applicationEnforcedRestrictionsEnabled: true\n cloudAppSecurityPolicy: monitorOnly\n signInFrequency: 10\n signInFrequencyPeriod: hours\n state: disabled\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nConditional Access Policies can be imported using the `id`, e.g.\n\n```sh\n $ pulumi import azuread:index/conditionalAccessPolicy:ConditionalAccessPolicy my_location 00000000-0000-0000-0000-000000000000\n```\n\n ", + "description": "Manages a Conditional Access Policy within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires the following application roles: `Policy.ReadWrite.ConditionalAccess` and `Policy.Read.All`\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Conditional Access Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.ConditionalAccessPolicy(\"example\", {\n conditions: {\n applications: {\n excludedApplications: [],\n includedApplications: [\"All\"],\n },\n clientAppTypes: [\"all\"],\n devices: {\n filter: {\n mode: \"exclude\",\n rule: \"device.operatingSystem eq \\\"Doors\\\"\",\n },\n },\n locations: {\n excludedLocations: [\"AllTrusted\"],\n includedLocations: [\"All\"],\n },\n platforms: {\n excludedPlatforms: [\"iOS\"],\n includedPlatforms: [\"android\"],\n },\n signInRiskLevels: [\"medium\"],\n userRiskLevels: [\"medium\"],\n users: {\n excludedUsers: [\"GuestsOrExternalUsers\"],\n includedUsers: [\"All\"],\n },\n },\n displayName: \"example policy\",\n grantControls: {\n builtInControls: [\"mfa\"],\n operator: \"OR\",\n },\n sessionControls: {\n applicationEnforcedRestrictionsEnabled: true,\n cloudAppSecurityPolicy: \"monitorOnly\",\n signInFrequency: 10,\n signInFrequencyPeriod: \"hours\",\n },\n state: \"disabled\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.ConditionalAccessPolicy(\"example\",\n conditions=azuread.ConditionalAccessPolicyConditionsArgs(\n applications=azuread.ConditionalAccessPolicyConditionsApplicationsArgs(\n excluded_applications=[],\n included_applications=[\"All\"],\n ),\n client_app_types=[\"all\"],\n devices=azuread.ConditionalAccessPolicyConditionsDevicesArgs(\n filter=azuread.ConditionalAccessPolicyConditionsDevicesFilterArgs(\n mode=\"exclude\",\n rule=\"device.operatingSystem eq \\\"Doors\\\"\",\n ),\n ),\n locations=azuread.ConditionalAccessPolicyConditionsLocationsArgs(\n excluded_locations=[\"AllTrusted\"],\n included_locations=[\"All\"],\n ),\n platforms=azuread.ConditionalAccessPolicyConditionsPlatformsArgs(\n excluded_platforms=[\"iOS\"],\n included_platforms=[\"android\"],\n ),\n sign_in_risk_levels=[\"medium\"],\n user_risk_levels=[\"medium\"],\n users=azuread.ConditionalAccessPolicyConditionsUsersArgs(\n excluded_users=[\"GuestsOrExternalUsers\"],\n included_users=[\"All\"],\n ),\n ),\n display_name=\"example policy\",\n grant_controls=azuread.ConditionalAccessPolicyGrantControlsArgs(\n built_in_controls=[\"mfa\"],\n operator=\"OR\",\n ),\n session_controls=azuread.ConditionalAccessPolicySessionControlsArgs(\n application_enforced_restrictions_enabled=True,\n cloud_app_security_policy=\"monitorOnly\",\n sign_in_frequency=10,\n sign_in_frequency_period=\"hours\",\n ),\n state=\"disabled\")\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new AzureAD.ConditionalAccessPolicy(\"example\", new()\n {\n Conditions = new AzureAD.Inputs.ConditionalAccessPolicyConditionsArgs\n {\n Applications = new AzureAD.Inputs.ConditionalAccessPolicyConditionsApplicationsArgs\n {\n ExcludedApplications = new[] {},\n IncludedApplications = new[]\n {\n \"All\",\n },\n },\n ClientAppTypes = new[]\n {\n \"all\",\n },\n Devices = new AzureAD.Inputs.ConditionalAccessPolicyConditionsDevicesArgs\n {\n Filter = new AzureAD.Inputs.ConditionalAccessPolicyConditionsDevicesFilterArgs\n {\n Mode = \"exclude\",\n Rule = \"device.operatingSystem eq \\\"Doors\\\"\",\n },\n },\n Locations = new AzureAD.Inputs.ConditionalAccessPolicyConditionsLocationsArgs\n {\n ExcludedLocations = new[]\n {\n \"AllTrusted\",\n },\n IncludedLocations = new[]\n {\n \"All\",\n },\n },\n Platforms = new AzureAD.Inputs.ConditionalAccessPolicyConditionsPlatformsArgs\n {\n ExcludedPlatforms = new[]\n {\n \"iOS\",\n },\n IncludedPlatforms = new[]\n {\n \"android\",\n },\n },\n SignInRiskLevels = new[]\n {\n \"medium\",\n },\n UserRiskLevels = new[]\n {\n \"medium\",\n },\n Users = new AzureAD.Inputs.ConditionalAccessPolicyConditionsUsersArgs\n {\n ExcludedUsers = new[]\n {\n \"GuestsOrExternalUsers\",\n },\n IncludedUsers = new[]\n {\n \"All\",\n },\n },\n },\n DisplayName = \"example policy\",\n GrantControls = new AzureAD.Inputs.ConditionalAccessPolicyGrantControlsArgs\n {\n BuiltInControls = new[]\n {\n \"mfa\",\n },\n Operator = \"OR\",\n },\n SessionControls = new AzureAD.Inputs.ConditionalAccessPolicySessionControlsArgs\n {\n ApplicationEnforcedRestrictionsEnabled = true,\n CloudAppSecurityPolicy = \"monitorOnly\",\n SignInFrequency = 10,\n SignInFrequencyPeriod = \"hours\",\n },\n State = \"disabled\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.NewConditionalAccessPolicy(ctx, \"example\", \u0026azuread.ConditionalAccessPolicyArgs{\n\t\t\tConditions: \u0026ConditionalAccessPolicyConditionsArgs{\n\t\t\t\tApplications: \u0026ConditionalAccessPolicyConditionsApplicationsArgs{\n\t\t\t\t\tExcludedApplications: pulumi.StringArray{},\n\t\t\t\t\tIncludedApplications: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"All\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tClientAppTypes: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"all\"),\n\t\t\t\t},\n\t\t\t\tDevices: \u0026ConditionalAccessPolicyConditionsDevicesArgs{\n\t\t\t\t\tFilter: \u0026ConditionalAccessPolicyConditionsDevicesFilterArgs{\n\t\t\t\t\t\tMode: pulumi.String(\"exclude\"),\n\t\t\t\t\t\tRule: pulumi.String(\"device.operatingSystem eq \\\"Doors\\\"\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tLocations: \u0026ConditionalAccessPolicyConditionsLocationsArgs{\n\t\t\t\t\tExcludedLocations: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"AllTrusted\"),\n\t\t\t\t\t},\n\t\t\t\t\tIncludedLocations: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"All\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tPlatforms: \u0026ConditionalAccessPolicyConditionsPlatformsArgs{\n\t\t\t\t\tExcludedPlatforms: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"iOS\"),\n\t\t\t\t\t},\n\t\t\t\t\tIncludedPlatforms: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"android\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tSignInRiskLevels: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"medium\"),\n\t\t\t\t},\n\t\t\t\tUserRiskLevels: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"medium\"),\n\t\t\t\t},\n\t\t\t\tUsers: \u0026ConditionalAccessPolicyConditionsUsersArgs{\n\t\t\t\t\tExcludedUsers: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"GuestsOrExternalUsers\"),\n\t\t\t\t\t},\n\t\t\t\t\tIncludedUsers: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"All\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tDisplayName: pulumi.String(\"example policy\"),\n\t\t\tGrantControls: \u0026ConditionalAccessPolicyGrantControlsArgs{\n\t\t\t\tBuiltInControls: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"mfa\"),\n\t\t\t\t},\n\t\t\t\tOperator: pulumi.String(\"OR\"),\n\t\t\t},\n\t\t\tSessionControls: \u0026ConditionalAccessPolicySessionControlsArgs{\n\t\t\t\tApplicationEnforcedRestrictionsEnabled: pulumi.Bool(true),\n\t\t\t\tCloudAppSecurityPolicy: pulumi.String(\"monitorOnly\"),\n\t\t\t\tSignInFrequency: pulumi.Int(10),\n\t\t\t\tSignInFrequencyPeriod: pulumi.String(\"hours\"),\n\t\t\t},\n\t\t\tState: pulumi.String(\"disabled\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.ConditionalAccessPolicy;\nimport com.pulumi.azuread.ConditionalAccessPolicyArgs;\nimport com.pulumi.azuread.inputs.ConditionalAccessPolicyConditionsArgs;\nimport com.pulumi.azuread.inputs.ConditionalAccessPolicyConditionsApplicationsArgs;\nimport com.pulumi.azuread.inputs.ConditionalAccessPolicyConditionsDevicesArgs;\nimport com.pulumi.azuread.inputs.ConditionalAccessPolicyConditionsDevicesFilterArgs;\nimport com.pulumi.azuread.inputs.ConditionalAccessPolicyConditionsLocationsArgs;\nimport com.pulumi.azuread.inputs.ConditionalAccessPolicyConditionsPlatformsArgs;\nimport com.pulumi.azuread.inputs.ConditionalAccessPolicyConditionsUsersArgs;\nimport com.pulumi.azuread.inputs.ConditionalAccessPolicyGrantControlsArgs;\nimport com.pulumi.azuread.inputs.ConditionalAccessPolicySessionControlsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ConditionalAccessPolicy(\"example\", ConditionalAccessPolicyArgs.builder() \n .conditions(ConditionalAccessPolicyConditionsArgs.builder()\n .applications(ConditionalAccessPolicyConditionsApplicationsArgs.builder()\n .excludedApplications()\n .includedApplications(\"All\")\n .build())\n .clientAppTypes(\"all\")\n .devices(ConditionalAccessPolicyConditionsDevicesArgs.builder()\n .filter(ConditionalAccessPolicyConditionsDevicesFilterArgs.builder()\n .mode(\"exclude\")\n .rule(\"device.operatingSystem eq \\\"Doors\\\"\")\n .build())\n .build())\n .locations(ConditionalAccessPolicyConditionsLocationsArgs.builder()\n .excludedLocations(\"AllTrusted\")\n .includedLocations(\"All\")\n .build())\n .platforms(ConditionalAccessPolicyConditionsPlatformsArgs.builder()\n .excludedPlatforms(\"iOS\")\n .includedPlatforms(\"android\")\n .build())\n .signInRiskLevels(\"medium\")\n .userRiskLevels(\"medium\")\n .users(ConditionalAccessPolicyConditionsUsersArgs.builder()\n .excludedUsers(\"GuestsOrExternalUsers\")\n .includedUsers(\"All\")\n .build())\n .build())\n .displayName(\"example policy\")\n .grantControls(ConditionalAccessPolicyGrantControlsArgs.builder()\n .builtInControls(\"mfa\")\n .operator(\"OR\")\n .build())\n .sessionControls(ConditionalAccessPolicySessionControlsArgs.builder()\n .applicationEnforcedRestrictionsEnabled(true)\n .cloudAppSecurityPolicy(\"monitorOnly\")\n .signInFrequency(10)\n .signInFrequencyPeriod(\"hours\")\n .build())\n .state(\"disabled\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azuread:ConditionalAccessPolicy\n properties:\n conditions:\n applications:\n excludedApplications: []\n includedApplications:\n - All\n clientAppTypes:\n - all\n devices:\n filter:\n mode: exclude\n rule: device.operatingSystem eq \"Doors\"\n locations:\n excludedLocations:\n - AllTrusted\n includedLocations:\n - All\n platforms:\n excludedPlatforms:\n - iOS\n includedPlatforms:\n - android\n signInRiskLevels:\n - medium\n userRiskLevels:\n - medium\n users:\n excludedUsers:\n - GuestsOrExternalUsers\n includedUsers:\n - All\n displayName: example policy\n grantControls:\n builtInControls:\n - mfa\n operator: OR\n sessionControls:\n applicationEnforcedRestrictionsEnabled: true\n cloudAppSecurityPolicy: monitorOnly\n signInFrequency: 10\n signInFrequencyPeriod: hours\n state: disabled\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nConditional Access Policies can be imported using the `id`, e.g.\n\n```sh\n $ pulumi import azuread:index/conditionalAccessPolicy:ConditionalAccessPolicy my_location 00000000-0000-0000-0000-000000000000\n```\n\n ", "properties": { "conditions": { "$ref": "#/types/azuread:index/ConditionalAccessPolicyConditions:ConditionalAccessPolicyConditions", @@ -4202,7 +4288,7 @@ } }, "azuread:index/customDirectoryRole:CustomDirectoryRole": { - "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.CustomDirectoryRole(\"example\", {\n description: \"Allows reading applications and updating groups\",\n displayName: \"My Custom Role\",\n enabled: true,\n permissions: [\n {\n allowedResourceActions: [\n \"microsoft.directory/applications/basic/update\",\n \"microsoft.directory/applications/create\",\n \"microsoft.directory/applications/standard/read\",\n ],\n },\n {\n allowedResourceActions: [\n \"microsoft.directory/groups/allProperties/read\",\n \"microsoft.directory/groups/allProperties/read\",\n \"microsoft.directory/groups/basic/update\",\n \"microsoft.directory/groups/create\",\n \"microsoft.directory/groups/delete\",\n ],\n },\n ],\n version: \"1.0\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.CustomDirectoryRole(\"example\",\n description=\"Allows reading applications and updating groups\",\n display_name=\"My Custom Role\",\n enabled=True,\n permissions=[\n azuread.CustomDirectoryRolePermissionArgs(\n allowed_resource_actions=[\n \"microsoft.directory/applications/basic/update\",\n \"microsoft.directory/applications/create\",\n \"microsoft.directory/applications/standard/read\",\n ],\n ),\n azuread.CustomDirectoryRolePermissionArgs(\n allowed_resource_actions=[\n \"microsoft.directory/groups/allProperties/read\",\n \"microsoft.directory/groups/allProperties/read\",\n \"microsoft.directory/groups/basic/update\",\n \"microsoft.directory/groups/create\",\n \"microsoft.directory/groups/delete\",\n ],\n ),\n ],\n version=\"1.0\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = new AzureAD.CustomDirectoryRole(\"example\", new AzureAD.CustomDirectoryRoleArgs\n {\n Description = \"Allows reading applications and updating groups\",\n DisplayName = \"My Custom Role\",\n Enabled = true,\n Permissions = \n {\n new AzureAD.Inputs.CustomDirectoryRolePermissionArgs\n {\n AllowedResourceActions = \n {\n \"microsoft.directory/applications/basic/update\",\n \"microsoft.directory/applications/create\",\n \"microsoft.directory/applications/standard/read\",\n },\n },\n new AzureAD.Inputs.CustomDirectoryRolePermissionArgs\n {\n AllowedResourceActions = \n {\n \"microsoft.directory/groups/allProperties/read\",\n \"microsoft.directory/groups/allProperties/read\",\n \"microsoft.directory/groups/basic/update\",\n \"microsoft.directory/groups/create\",\n \"microsoft.directory/groups/delete\",\n },\n },\n },\n Version = \"1.0\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.NewCustomDirectoryRole(ctx, \"example\", \u0026azuread.CustomDirectoryRoleArgs{\n\t\t\tDescription: pulumi.String(\"Allows reading applications and updating groups\"),\n\t\t\tDisplayName: pulumi.String(\"My Custom Role\"),\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t\tPermissions: CustomDirectoryRolePermissionArray{\n\t\t\t\t\u0026CustomDirectoryRolePermissionArgs{\n\t\t\t\t\tAllowedResourceActions: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"microsoft.directory/applications/basic/update\"),\n\t\t\t\t\t\tpulumi.String(\"microsoft.directory/applications/create\"),\n\t\t\t\t\t\tpulumi.String(\"microsoft.directory/applications/standard/read\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026CustomDirectoryRolePermissionArgs{\n\t\t\t\t\tAllowedResourceActions: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"microsoft.directory/groups/allProperties/read\"),\n\t\t\t\t\t\tpulumi.String(\"microsoft.directory/groups/allProperties/read\"),\n\t\t\t\t\t\tpulumi.String(\"microsoft.directory/groups/basic/update\"),\n\t\t\t\t\t\tpulumi.String(\"microsoft.directory/groups/create\"),\n\t\t\t\t\t\tpulumi.String(\"microsoft.directory/groups/delete\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tVersion: pulumi.String(\"1.0\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new CustomDirectoryRole(\"example\", CustomDirectoryRoleArgs.builder() \n .description(\"Allows reading applications and updating groups\")\n .displayName(\"My Custom Role\")\n .enabled(true)\n .permissions( \n CustomDirectoryRolePermission.builder()\n .allowedResourceActions( \n \"microsoft.directory/applications/basic/update\",\n \"microsoft.directory/applications/create\",\n \"microsoft.directory/applications/standard/read\")\n .build(),\n CustomDirectoryRolePermission.builder()\n .allowedResourceActions( \n \"microsoft.directory/groups/allProperties/read\",\n \"microsoft.directory/groups/allProperties/read\",\n \"microsoft.directory/groups/basic/update\",\n \"microsoft.directory/groups/create\",\n \"microsoft.directory/groups/delete\")\n .build())\n .version(\"1.0\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azuread:CustomDirectoryRole\n properties:\n description: Allows reading applications and updating groups\n displayName: My Custom Role\n enabled: true\n permissions:\n - allowedResourceActions:\n - microsoft.directory/applications/basic/update\n - microsoft.directory/applications/create\n - microsoft.directory/applications/standard/read\n - allowedResourceActions:\n - microsoft.directory/groups/allProperties/read\n - microsoft.directory/groups/allProperties/read\n - microsoft.directory/groups/basic/update\n - microsoft.directory/groups/create\n - microsoft.directory/groups/delete\n version: 1.0\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nThis resource does not support importing. ", + "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.CustomDirectoryRole(\"example\", {\n description: \"Allows reading applications and updating groups\",\n displayName: \"My Custom Role\",\n enabled: true,\n permissions: [\n {\n allowedResourceActions: [\n \"microsoft.directory/applications/basic/update\",\n \"microsoft.directory/applications/create\",\n \"microsoft.directory/applications/standard/read\",\n ],\n },\n {\n allowedResourceActions: [\n \"microsoft.directory/groups/allProperties/read\",\n \"microsoft.directory/groups/allProperties/read\",\n \"microsoft.directory/groups/basic/update\",\n \"microsoft.directory/groups/create\",\n \"microsoft.directory/groups/delete\",\n ],\n },\n ],\n version: \"1.0\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.CustomDirectoryRole(\"example\",\n description=\"Allows reading applications and updating groups\",\n display_name=\"My Custom Role\",\n enabled=True,\n permissions=[\n azuread.CustomDirectoryRolePermissionArgs(\n allowed_resource_actions=[\n \"microsoft.directory/applications/basic/update\",\n \"microsoft.directory/applications/create\",\n \"microsoft.directory/applications/standard/read\",\n ],\n ),\n azuread.CustomDirectoryRolePermissionArgs(\n allowed_resource_actions=[\n \"microsoft.directory/groups/allProperties/read\",\n \"microsoft.directory/groups/allProperties/read\",\n \"microsoft.directory/groups/basic/update\",\n \"microsoft.directory/groups/create\",\n \"microsoft.directory/groups/delete\",\n ],\n ),\n ],\n version=\"1.0\")\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new AzureAD.CustomDirectoryRole(\"example\", new()\n {\n Description = \"Allows reading applications and updating groups\",\n DisplayName = \"My Custom Role\",\n Enabled = true,\n Permissions = new[]\n {\n new AzureAD.Inputs.CustomDirectoryRolePermissionArgs\n {\n AllowedResourceActions = new[]\n {\n \"microsoft.directory/applications/basic/update\",\n \"microsoft.directory/applications/create\",\n \"microsoft.directory/applications/standard/read\",\n },\n },\n new AzureAD.Inputs.CustomDirectoryRolePermissionArgs\n {\n AllowedResourceActions = new[]\n {\n \"microsoft.directory/groups/allProperties/read\",\n \"microsoft.directory/groups/allProperties/read\",\n \"microsoft.directory/groups/basic/update\",\n \"microsoft.directory/groups/create\",\n \"microsoft.directory/groups/delete\",\n },\n },\n },\n Version = \"1.0\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.NewCustomDirectoryRole(ctx, \"example\", \u0026azuread.CustomDirectoryRoleArgs{\n\t\t\tDescription: pulumi.String(\"Allows reading applications and updating groups\"),\n\t\t\tDisplayName: pulumi.String(\"My Custom Role\"),\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t\tPermissions: CustomDirectoryRolePermissionArray{\n\t\t\t\t\u0026CustomDirectoryRolePermissionArgs{\n\t\t\t\t\tAllowedResourceActions: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"microsoft.directory/applications/basic/update\"),\n\t\t\t\t\t\tpulumi.String(\"microsoft.directory/applications/create\"),\n\t\t\t\t\t\tpulumi.String(\"microsoft.directory/applications/standard/read\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026CustomDirectoryRolePermissionArgs{\n\t\t\t\t\tAllowedResourceActions: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"microsoft.directory/groups/allProperties/read\"),\n\t\t\t\t\t\tpulumi.String(\"microsoft.directory/groups/allProperties/read\"),\n\t\t\t\t\t\tpulumi.String(\"microsoft.directory/groups/basic/update\"),\n\t\t\t\t\t\tpulumi.String(\"microsoft.directory/groups/create\"),\n\t\t\t\t\t\tpulumi.String(\"microsoft.directory/groups/delete\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tVersion: pulumi.String(\"1.0\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.CustomDirectoryRole;\nimport com.pulumi.azuread.CustomDirectoryRoleArgs;\nimport com.pulumi.azuread.inputs.CustomDirectoryRolePermissionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new CustomDirectoryRole(\"example\", CustomDirectoryRoleArgs.builder() \n .description(\"Allows reading applications and updating groups\")\n .displayName(\"My Custom Role\")\n .enabled(true)\n .permissions( \n CustomDirectoryRolePermissionArgs.builder()\n .allowedResourceActions( \n \"microsoft.directory/applications/basic/update\",\n \"microsoft.directory/applications/create\",\n \"microsoft.directory/applications/standard/read\")\n .build(),\n CustomDirectoryRolePermissionArgs.builder()\n .allowedResourceActions( \n \"microsoft.directory/groups/allProperties/read\",\n \"microsoft.directory/groups/allProperties/read\",\n \"microsoft.directory/groups/basic/update\",\n \"microsoft.directory/groups/create\",\n \"microsoft.directory/groups/delete\")\n .build())\n .version(\"1.0\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azuread:CustomDirectoryRole\n properties:\n description: Allows reading applications and updating groups\n displayName: My Custom Role\n enabled: true\n permissions:\n - allowedResourceActions:\n - microsoft.directory/applications/basic/update\n - microsoft.directory/applications/create\n - microsoft.directory/applications/standard/read\n - allowedResourceActions:\n - microsoft.directory/groups/allProperties/read\n - microsoft.directory/groups/allProperties/read\n - microsoft.directory/groups/basic/update\n - microsoft.directory/groups/create\n - microsoft.directory/groups/delete\n version: 1.0\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nThis resource does not support importing. ", "properties": { "description": { "type": "string", @@ -4266,7 +4352,8 @@ }, "templateId": { "type": "string", - "description": "Custom template identifier that is typically used if one needs an identifier to be the same across different directories. Changing this forces a new resource to be created.\n" + "description": "Custom template identifier that is typically used if one needs an identifier to be the same across different directories. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "version": { "type": "string", @@ -4307,7 +4394,8 @@ }, "templateId": { "type": "string", - "description": "Custom template identifier that is typically used if one needs an identifier to be the same across different directories. Changing this forces a new resource to be created.\n" + "description": "Custom template identifier that is typically used if one needs an identifier to be the same across different directories. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "version": { "type": "string", @@ -4318,7 +4406,7 @@ } }, "azuread:index/directoryRole:DirectoryRole": { - "description": "Manages a Directory Role within Azure Active Directory. Directory Roles are also known as Administrator Roles.\n\nDirectory Roles are built-in to Azure Active Directory and are immutable. However, by default they are not activated in a tenant (except for the Global Administrator role). This resource ensures a directory role is activated from its associated role template, and exports the object ID of the role, so that role assignments can be made for it.\n\nOnce activated, directory roles cannot be deactivated and so this resource does not perform any actions on destroy.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires one of the following application roles: `RoleManagement.ReadWrite.Directory` or `Directory.ReadWrite.All`\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Privileged Role Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*Activate a directory role by its template ID*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.DirectoryRole(\"example\", {\n templateId: \"00000000-0000-0000-0000-000000000000\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.DirectoryRole(\"example\", template_id=\"00000000-0000-0000-0000-000000000000\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = new AzureAD.DirectoryRole(\"example\", new AzureAD.DirectoryRoleArgs\n {\n TemplateId = \"00000000-0000-0000-0000-000000000000\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.NewDirectoryRole(ctx, \"example\", \u0026azuread.DirectoryRoleArgs{\n\t\t\tTemplateId: pulumi.String(\"00000000-0000-0000-0000-000000000000\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new DirectoryRole(\"example\", DirectoryRoleArgs.builder() \n .templateId(\"00000000-0000-0000-0000-000000000000\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azuread:DirectoryRole\n properties:\n templateId: 00000000-0000-0000-0000-000000000000\n```\n\n*Activate a directory role by display name*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.DirectoryRole(\"example\", {\n displayName: \"Printer administrator\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.DirectoryRole(\"example\", display_name=\"Printer administrator\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = new AzureAD.DirectoryRole(\"example\", new AzureAD.DirectoryRoleArgs\n {\n DisplayName = \"Printer administrator\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.NewDirectoryRole(ctx, \"example\", \u0026azuread.DirectoryRoleArgs{\n\t\t\tDisplayName: pulumi.String(\"Printer administrator\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new DirectoryRole(\"example\", DirectoryRoleArgs.builder() \n .displayName(\"Printer administrator\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azuread:DirectoryRole\n properties:\n displayName: Printer administrator\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nThis resource does not support importing. ", + "description": "Manages a Directory Role within Azure Active Directory. Directory Roles are also known as Administrator Roles.\n\nDirectory Roles are built-in to Azure Active Directory and are immutable. However, by default they are not activated in a tenant (except for the Global Administrator role). This resource ensures a directory role is activated from its associated role template, and exports the object ID of the role, so that role assignments can be made for it.\n\nOnce activated, directory roles cannot be deactivated and so this resource does not perform any actions on destroy.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires one of the following application roles: `RoleManagement.ReadWrite.Directory` or `Directory.ReadWrite.All`\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Privileged Role Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*Activate a directory role by its template ID*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.DirectoryRole(\"example\", {\n templateId: \"00000000-0000-0000-0000-000000000000\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.DirectoryRole(\"example\", template_id=\"00000000-0000-0000-0000-000000000000\")\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new AzureAD.DirectoryRole(\"example\", new()\n {\n TemplateId = \"00000000-0000-0000-0000-000000000000\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.NewDirectoryRole(ctx, \"example\", \u0026azuread.DirectoryRoleArgs{\n\t\t\tTemplateId: pulumi.String(\"00000000-0000-0000-0000-000000000000\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.DirectoryRole;\nimport com.pulumi.azuread.DirectoryRoleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new DirectoryRole(\"example\", DirectoryRoleArgs.builder() \n .templateId(\"00000000-0000-0000-0000-000000000000\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azuread:DirectoryRole\n properties:\n templateId: 00000000-0000-0000-0000-000000000000\n```\n\n*Activate a directory role by display name*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.DirectoryRole(\"example\", {\n displayName: \"Printer administrator\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.DirectoryRole(\"example\", display_name=\"Printer administrator\")\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new AzureAD.DirectoryRole(\"example\", new()\n {\n DisplayName = \"Printer administrator\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.NewDirectoryRole(ctx, \"example\", \u0026azuread.DirectoryRoleArgs{\n\t\t\tDisplayName: pulumi.String(\"Printer administrator\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.DirectoryRole;\nimport com.pulumi.azuread.DirectoryRoleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new DirectoryRole(\"example\", DirectoryRoleArgs.builder() \n .displayName(\"Printer administrator\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azuread:DirectoryRole\n properties:\n displayName: Printer administrator\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nThis resource does not support importing. ", "properties": { "description": { "type": "string", @@ -4346,11 +4434,13 @@ "inputProperties": { "displayName": { "type": "string", - "description": "The display name of the directory role to activate. Changing this forces a new resource to be created.\n" + "description": "The display name of the directory role to activate. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "templateId": { "type": "string", - "description": "The object ID of the role template from which to activate the directory role. Changing this forces a new resource to be created.\n" + "description": "The object ID of the role template from which to activate the directory role. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true } }, "stateInputs": { @@ -4362,7 +4452,8 @@ }, "displayName": { "type": "string", - "description": "The display name of the directory role to activate. Changing this forces a new resource to be created.\n" + "description": "The display name of the directory role to activate. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "objectId": { "type": "string", @@ -4370,7 +4461,8 @@ }, "templateId": { "type": "string", - "description": "The object ID of the role template from which to activate the directory role. Changing this forces a new resource to be created.\n" + "description": "The object ID of the role template from which to activate the directory role. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true } }, "type": "object" @@ -4416,28 +4508,34 @@ "inputProperties": { "appScopeId": { "type": "string", - "description": "Identifier of the app-specific scope when the assignment scope is app-specific. Cannot be used with `directory_scope_id`. See [official documentation](https://docs.microsoft.com/en-us/graph/api/rbacapplication-post-roleassignments?view=graph-rest-1.0\u0026tabs=http) for example usage. Changing this forces a new resource to be created.\n" + "description": "Identifier of the app-specific scope when the assignment scope is app-specific. Cannot be used with `directory_scope_id`. See [official documentation](https://docs.microsoft.com/en-us/graph/api/rbacapplication-post-roleassignments?view=graph-rest-1.0\u0026tabs=http) for example usage. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "appScopeObjectId": { "type": "string", "description": "Identifier of the app-specific scope when the assignment scope is app-specific\n", - "deprecationMessage": "`app_scope_object_id` has been renamed to `app_scope_id` and will be removed in version 3.0 or the AzureAD Provider" + "deprecationMessage": "`app_scope_object_id` has been renamed to `app_scope_id` and will be removed in version 3.0 or the AzureAD Provider", + "willReplaceOnChanges": true }, "directoryScopeId": { "type": "string", - "description": "Identifier of the directory object representing the scope of the assignment. Cannot be used with `app_scope_id`. See [official documentation](https://docs.microsoft.com/en-us/graph/api/rbacapplication-post-roleassignments?view=graph-rest-1.0\u0026tabs=http) for example usage. Changing this forces a new resource to be created.\n" + "description": "Identifier of the directory object representing the scope of the assignment. Cannot be used with `app_scope_id`. See [official documentation](https://docs.microsoft.com/en-us/graph/api/rbacapplication-post-roleassignments?view=graph-rest-1.0\u0026tabs=http) for example usage. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "directoryScopeObjectId": { "type": "string", - "description": "Identifier of the directory object representing the scope of the assignment\n" + "description": "Identifier of the directory object representing the scope of the assignment\n", + "willReplaceOnChanges": true }, "principalObjectId": { "type": "string", - "description": "The object ID of the principal for you want to create a role assignment. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.\n" + "description": "The object ID of the principal for you want to create a role assignment. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "roleId": { "type": "string", - "description": "The template ID (in the case of built-in roles) or object ID (in the case of custom roles) of the directory role you want to assign. Changing this forces a new resource to be created.\n" + "description": "The template ID (in the case of built-in roles) or object ID (in the case of custom roles) of the directory role you want to assign. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true } }, "requiredInputs": [ @@ -4449,35 +4547,41 @@ "properties": { "appScopeId": { "type": "string", - "description": "Identifier of the app-specific scope when the assignment scope is app-specific. Cannot be used with `directory_scope_id`. See [official documentation](https://docs.microsoft.com/en-us/graph/api/rbacapplication-post-roleassignments?view=graph-rest-1.0\u0026tabs=http) for example usage. Changing this forces a new resource to be created.\n" + "description": "Identifier of the app-specific scope when the assignment scope is app-specific. Cannot be used with `directory_scope_id`. See [official documentation](https://docs.microsoft.com/en-us/graph/api/rbacapplication-post-roleassignments?view=graph-rest-1.0\u0026tabs=http) for example usage. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "appScopeObjectId": { "type": "string", "description": "Identifier of the app-specific scope when the assignment scope is app-specific\n", - "deprecationMessage": "`app_scope_object_id` has been renamed to `app_scope_id` and will be removed in version 3.0 or the AzureAD Provider" + "deprecationMessage": "`app_scope_object_id` has been renamed to `app_scope_id` and will be removed in version 3.0 or the AzureAD Provider", + "willReplaceOnChanges": true }, "directoryScopeId": { "type": "string", - "description": "Identifier of the directory object representing the scope of the assignment. Cannot be used with `app_scope_id`. See [official documentation](https://docs.microsoft.com/en-us/graph/api/rbacapplication-post-roleassignments?view=graph-rest-1.0\u0026tabs=http) for example usage. Changing this forces a new resource to be created.\n" + "description": "Identifier of the directory object representing the scope of the assignment. Cannot be used with `app_scope_id`. See [official documentation](https://docs.microsoft.com/en-us/graph/api/rbacapplication-post-roleassignments?view=graph-rest-1.0\u0026tabs=http) for example usage. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "directoryScopeObjectId": { "type": "string", - "description": "Identifier of the directory object representing the scope of the assignment\n" + "description": "Identifier of the directory object representing the scope of the assignment\n", + "willReplaceOnChanges": true }, "principalObjectId": { "type": "string", - "description": "The object ID of the principal for you want to create a role assignment. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.\n" + "description": "The object ID of the principal for you want to create a role assignment. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "roleId": { "type": "string", - "description": "The template ID (in the case of built-in roles) or object ID (in the case of custom roles) of the directory role you want to assign. Changing this forces a new resource to be created.\n" + "description": "The template ID (in the case of built-in roles) or object ID (in the case of custom roles) of the directory role you want to assign. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true } }, "type": "object" } }, "azuread:index/directoryRoleMember:DirectoryRoleMember": { - "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleUser = azuread.getUser({\n userPrincipalName: \"jdoe@hashicorp.com\",\n});\nconst exampleDirectoryRole = new azuread.DirectoryRole(\"exampleDirectoryRole\", {displayName: \"Security administrator\"});\nconst exampleDirectoryRoleMember = new azuread.DirectoryRoleMember(\"exampleDirectoryRoleMember\", {\n roleObjectId: exampleDirectoryRole.objectId,\n memberObjectId: exampleUser.then(exampleUser =\u003e exampleUser.objectId),\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_user = azuread.get_user(user_principal_name=\"jdoe@hashicorp.com\")\nexample_directory_role = azuread.DirectoryRole(\"exampleDirectoryRole\", display_name=\"Security administrator\")\nexample_directory_role_member = azuread.DirectoryRoleMember(\"exampleDirectoryRoleMember\",\n role_object_id=example_directory_role.object_id,\n member_object_id=example_user.object_id)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleUser = Output.Create(AzureAD.GetUser.InvokeAsync(new AzureAD.GetUserArgs\n {\n UserPrincipalName = \"jdoe@hashicorp.com\",\n }));\n var exampleDirectoryRole = new AzureAD.DirectoryRole(\"exampleDirectoryRole\", new AzureAD.DirectoryRoleArgs\n {\n DisplayName = \"Security administrator\",\n });\n var exampleDirectoryRoleMember = new AzureAD.DirectoryRoleMember(\"exampleDirectoryRoleMember\", new AzureAD.DirectoryRoleMemberArgs\n {\n RoleObjectId = exampleDirectoryRole.ObjectId,\n MemberObjectId = exampleUser.Apply(exampleUser =\u003e exampleUser.ObjectId),\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleUser, err := azuread.LookupUser(ctx, \u0026GetUserArgs{\n\t\t\tUserPrincipalName: pulumi.StringRef(\"jdoe@hashicorp.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleDirectoryRole, err := azuread.NewDirectoryRole(ctx, \"exampleDirectoryRole\", \u0026azuread.DirectoryRoleArgs{\n\t\t\tDisplayName: pulumi.String(\"Security administrator\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewDirectoryRoleMember(ctx, \"exampleDirectoryRoleMember\", \u0026azuread.DirectoryRoleMemberArgs{\n\t\t\tRoleObjectId: exampleDirectoryRole.ObjectId,\n\t\t\tMemberObjectId: pulumi.String(exampleUser.ObjectId),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 exampleUser = Output.of(AzureadFunctions.getUser(GetUserArgs.builder()\n .userPrincipalName(\"jdoe@hashicorp.com\")\n .build()));\n\n var exampleDirectoryRole = new DirectoryRole(\"exampleDirectoryRole\", DirectoryRoleArgs.builder() \n .displayName(\"Security administrator\")\n .build());\n\n var exampleDirectoryRoleMember = new DirectoryRoleMember(\"exampleDirectoryRoleMember\", DirectoryRoleMemberArgs.builder() \n .roleObjectId(exampleDirectoryRole.getObjectId())\n .memberObjectId(exampleUser.apply(getUserResult -\u003e getUserResult.getObjectId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleDirectoryRole:\n type: azuread:DirectoryRole\n properties:\n displayName: Security administrator\n exampleDirectoryRoleMember:\n type: azuread:DirectoryRoleMember\n properties:\n roleObjectId: ${exampleDirectoryRole.objectId}\n memberObjectId: ${exampleUser.objectId}\nvariables:\n exampleUser:\n Fn::Invoke:\n Function: azuread:getUser\n Arguments:\n userPrincipalName: jdoe@hashicorp.com\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nDirectory role members can be imported using the object ID of the role and the object ID of the member, e.g.\n\n```sh\n $ pulumi import azuread:index/directoryRoleMember:DirectoryRoleMember test 00000000-0000-0000-0000-000000000000/member/11111111-1111-1111-1111-111111111111\n```\n\n -\u003e This ID format is unique to Terraform and is composed of the Directory Role Object ID and the target Member Object ID in the format `{RoleObjectID}/member/{MemberObjectID}`. ", + "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleUser = azuread.getUser({\n userPrincipalName: \"jdoe@hashicorp.com\",\n});\nconst exampleDirectoryRole = new azuread.DirectoryRole(\"exampleDirectoryRole\", {displayName: \"Security administrator\"});\nconst exampleDirectoryRoleMember = new azuread.DirectoryRoleMember(\"exampleDirectoryRoleMember\", {\n roleObjectId: exampleDirectoryRole.objectId,\n memberObjectId: exampleUser.then(exampleUser =\u003e exampleUser.objectId),\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_user = azuread.get_user(user_principal_name=\"jdoe@hashicorp.com\")\nexample_directory_role = azuread.DirectoryRole(\"exampleDirectoryRole\", display_name=\"Security administrator\")\nexample_directory_role_member = azuread.DirectoryRoleMember(\"exampleDirectoryRoleMember\",\n role_object_id=example_directory_role.object_id,\n member_object_id=example_user.object_id)\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleUser = AzureAD.GetUser.Invoke(new()\n {\n UserPrincipalName = \"jdoe@hashicorp.com\",\n });\n\n var exampleDirectoryRole = new AzureAD.DirectoryRole(\"exampleDirectoryRole\", new()\n {\n DisplayName = \"Security administrator\",\n });\n\n var exampleDirectoryRoleMember = new AzureAD.DirectoryRoleMember(\"exampleDirectoryRoleMember\", new()\n {\n RoleObjectId = exampleDirectoryRole.ObjectId,\n MemberObjectId = exampleUser.Apply(getUserResult =\u003e getUserResult.ObjectId),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleUser, err := azuread.LookupUser(ctx, \u0026GetUserArgs{\n\t\t\tUserPrincipalName: pulumi.StringRef(\"jdoe@hashicorp.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleDirectoryRole, err := azuread.NewDirectoryRole(ctx, \"exampleDirectoryRole\", \u0026azuread.DirectoryRoleArgs{\n\t\t\tDisplayName: pulumi.String(\"Security administrator\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewDirectoryRoleMember(ctx, \"exampleDirectoryRoleMember\", \u0026azuread.DirectoryRoleMemberArgs{\n\t\t\tRoleObjectId: exampleDirectoryRole.ObjectId,\n\t\t\tMemberObjectId: pulumi.String(exampleUser.ObjectId),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetUserArgs;\nimport com.pulumi.azuread.DirectoryRole;\nimport com.pulumi.azuread.DirectoryRoleArgs;\nimport com.pulumi.azuread.DirectoryRoleMember;\nimport com.pulumi.azuread.DirectoryRoleMemberArgs;\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 exampleUser = AzureadFunctions.getUser(GetUserArgs.builder()\n .userPrincipalName(\"jdoe@hashicorp.com\")\n .build());\n\n var exampleDirectoryRole = new DirectoryRole(\"exampleDirectoryRole\", DirectoryRoleArgs.builder() \n .displayName(\"Security administrator\")\n .build());\n\n var exampleDirectoryRoleMember = new DirectoryRoleMember(\"exampleDirectoryRoleMember\", DirectoryRoleMemberArgs.builder() \n .roleObjectId(exampleDirectoryRole.objectId())\n .memberObjectId(exampleUser.applyValue(getUserResult -\u003e getUserResult.objectId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleDirectoryRole:\n type: azuread:DirectoryRole\n properties:\n displayName: Security administrator\n exampleDirectoryRoleMember:\n type: azuread:DirectoryRoleMember\n properties:\n roleObjectId: ${exampleDirectoryRole.objectId}\n memberObjectId: ${exampleUser.objectId}\nvariables:\n exampleUser:\n Fn::Invoke:\n Function: azuread:getUser\n Arguments:\n userPrincipalName: jdoe@hashicorp.com\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nDirectory role members can be imported using the object ID of the role and the object ID of the member, e.g.\n\n```sh\n $ pulumi import azuread:index/directoryRoleMember:DirectoryRoleMember test 00000000-0000-0000-0000-000000000000/member/11111111-1111-1111-1111-111111111111\n```\n\n -\u003e This ID format is unique to Terraform and is composed of the Directory Role Object ID and the target Member Object ID in the format `{RoleObjectID}/member/{MemberObjectID}`. ", "properties": { "memberObjectId": { "type": "string", @@ -4491,11 +4595,13 @@ "inputProperties": { "memberObjectId": { "type": "string", - "description": "The object ID of the principal you want to add as a member to the directory role. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.\n" + "description": "The object ID of the principal you want to add as a member to the directory role. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "roleObjectId": { "type": "string", - "description": "The object ID of the directory role you want to add the member to. Changing this forces a new resource to be created.\n" + "description": "The object ID of the directory role you want to add the member to. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true } }, "stateInputs": { @@ -4503,18 +4609,20 @@ "properties": { "memberObjectId": { "type": "string", - "description": "The object ID of the principal you want to add as a member to the directory role. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.\n" + "description": "The object ID of the principal you want to add as a member to the directory role. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "roleObjectId": { "type": "string", - "description": "The object ID of the directory role you want to add the member to. Changing this forces a new resource to be created.\n" + "description": "The object ID of the directory role you want to add the member to. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true } }, "type": "object" } }, "azuread:index/group:Group": { - "description": "Manages a group within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires one of the following application roles: `Group.ReadWrite.All` or `Directory.ReadWrite.All`\n\nIf using the `assignable_to_role` property, this resource additionally requires one of the following application roles: `RoleManagement.ReadWrite.Directory` or `Directory.ReadWrite.All`\n\nIf specifying owners for a group, which are user principals, this resource additionally requires one of the following application roles: `User.Read.All`, `User.ReadWrite.All`, `Directory.Read.All` or `Directory.ReadWrite.All`\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Groups Administrator`, `User Administrator` or `Global Administrator`\n\nThe `external_senders_allowed`, `auto_subscribe_new_members`, `hide_from_address_lists` and `hide_from_outlook_clients` properties can only be configured when authenticating as a user and cannot be configured when authenticating as a service principal. Additionally, the user being used for authentication must be a Member of the tenant where the group is being managed and _not_ a Guest. This is a known API issue; please see the [Microsoft Graph Known Issues](https://docs.microsoft.com/en-us/graph/known-issues#groups) official documentation.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*Basic example*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst current = azuread.getClientConfig({});\nconst example = new azuread.Group(\"example\", {\n displayName: \"example\",\n owners: [current.then(current =\u003e current.objectId)],\n securityEnabled: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\ncurrent = azuread.get_client_config()\nexample = azuread.Group(\"example\",\n display_name=\"example\",\n owners=[current.object_id],\n security_enabled=True)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var current = Output.Create(AzureAD.GetClientConfig.InvokeAsync());\n var example = new AzureAD.Group(\"example\", new AzureAD.GroupArgs\n {\n DisplayName = \"example\",\n Owners = \n {\n current.Apply(current =\u003e current.ObjectId),\n },\n SecurityEnabled = true,\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := azuread.GetClientConfig(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewGroup(ctx, \"example\", \u0026azuread.GroupArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tOwners: pulumi.StringArray{\n\t\t\t\tpulumi.String(current.ObjectId),\n\t\t\t},\n\t\t\tSecurityEnabled: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 current = Output.of(AzureadFunctions.getClientConfig());\n\n var example = new Group(\"example\", GroupArgs.builder() \n .displayName(\"example\")\n .owners(current.apply(getClientConfigResult -\u003e getClientConfigResult.getObjectId()))\n .securityEnabled(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azuread:Group\n properties:\n displayName: example\n owners:\n - ${current.objectId}\n securityEnabled: true\nvariables:\n current:\n Fn::Invoke:\n Function: azuread:getClientConfig\n Arguments: {}\n```\n\n*Microsoft 365 group*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst current = azuread.getClientConfig({});\nconst groupOwner = new azuread.User(\"groupOwner\", {\n userPrincipalName: \"example-group-owner@hashicorp.com\",\n displayName: \"Group Owner\",\n mailNickname: \"example-group-owner\",\n password: \"SecretP@sswd99!\",\n});\nconst example = new azuread.Group(\"example\", {\n displayName: \"example\",\n mailEnabled: true,\n mailNickname: \"ExampleGroup\",\n securityEnabled: true,\n types: [\"Unified\"],\n owners: [\n current.then(current =\u003e current.objectId),\n groupOwner.objectId,\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\ncurrent = azuread.get_client_config()\ngroup_owner = azuread.User(\"groupOwner\",\n user_principal_name=\"example-group-owner@hashicorp.com\",\n display_name=\"Group Owner\",\n mail_nickname=\"example-group-owner\",\n password=\"SecretP@sswd99!\")\nexample = azuread.Group(\"example\",\n display_name=\"example\",\n mail_enabled=True,\n mail_nickname=\"ExampleGroup\",\n security_enabled=True,\n types=[\"Unified\"],\n owners=[\n current.object_id,\n group_owner.object_id,\n ])\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var current = Output.Create(AzureAD.GetClientConfig.InvokeAsync());\n var groupOwner = new AzureAD.User(\"groupOwner\", new AzureAD.UserArgs\n {\n UserPrincipalName = \"example-group-owner@hashicorp.com\",\n DisplayName = \"Group Owner\",\n MailNickname = \"example-group-owner\",\n Password = \"SecretP@sswd99!\",\n });\n var example = new AzureAD.Group(\"example\", new AzureAD.GroupArgs\n {\n DisplayName = \"example\",\n MailEnabled = true,\n MailNickname = \"ExampleGroup\",\n SecurityEnabled = true,\n Types = \n {\n \"Unified\",\n },\n Owners = \n {\n current.Apply(current =\u003e current.ObjectId),\n groupOwner.ObjectId,\n },\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := azuread.GetClientConfig(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tgroupOwner, err := azuread.NewUser(ctx, \"groupOwner\", \u0026azuread.UserArgs{\n\t\t\tUserPrincipalName: pulumi.String(\"example-group-owner@hashicorp.com\"),\n\t\t\tDisplayName: pulumi.String(\"Group Owner\"),\n\t\t\tMailNickname: pulumi.String(\"example-group-owner\"),\n\t\t\tPassword: pulumi.String(\"SecretP@sswd99!\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewGroup(ctx, \"example\", \u0026azuread.GroupArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tMailEnabled: pulumi.Bool(true),\n\t\t\tMailNickname: pulumi.String(\"ExampleGroup\"),\n\t\t\tSecurityEnabled: pulumi.Bool(true),\n\t\t\tTypes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"Unified\"),\n\t\t\t},\n\t\t\tOwners: pulumi.StringArray{\n\t\t\t\tpulumi.String(current.ObjectId),\n\t\t\t\tgroupOwner.ObjectId,\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 current = Output.of(AzureadFunctions.getClientConfig());\n\n var groupOwner = new User(\"groupOwner\", UserArgs.builder() \n .userPrincipalName(\"example-group-owner@hashicorp.com\")\n .displayName(\"Group Owner\")\n .mailNickname(\"example-group-owner\")\n .password(\"SecretP@sswd99!\")\n .build());\n\n var example = new Group(\"example\", GroupArgs.builder() \n .displayName(\"example\")\n .mailEnabled(true)\n .mailNickname(\"ExampleGroup\")\n .securityEnabled(true)\n .types(\"Unified\")\n .owners( \n current.apply(getClientConfigResult -\u003e getClientConfigResult.getObjectId()),\n groupOwner.getObjectId())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n groupOwner:\n type: azuread:User\n properties:\n userPrincipalName: example-group-owner@hashicorp.com\n displayName: Group Owner\n mailNickname: example-group-owner\n password: SecretP@sswd99!\n example:\n type: azuread:Group\n properties:\n displayName: example\n mailEnabled: true\n mailNickname: ExampleGroup\n securityEnabled: true\n types:\n - Unified\n owners:\n - ${current.objectId}\n - ${groupOwner.objectId}\nvariables:\n current:\n Fn::Invoke:\n Function: azuread:getClientConfig\n Arguments: {}\n```\n\n*Group with members*\n\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 current = Output.of(AzureadFunctions.getClientConfig());\n\n var exampleUser = new User(\"exampleUser\", UserArgs.builder() \n .displayName(\"J Doe\")\n .owners(current.apply(getClientConfigResult -\u003e getClientConfigResult.getObjectId()))\n .password(\"notSecure123\")\n .userPrincipalName(\"jdoe@hashicorp.com\")\n .build());\n\n var exampleGroup = new Group(\"exampleGroup\", GroupArgs.builder() \n .displayName(\"MyGroup\")\n .owners(current.apply(getClientConfigResult -\u003e getClientConfigResult.getObjectId()))\n .securityEnabled(true)\n .members(exampleUser.getObjectId())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleUser:\n type: azuread:User\n properties:\n displayName: J Doe\n owners:\n - ${current.objectId}\n password: notSecure123\n userPrincipalName: jdoe@hashicorp.com\n exampleGroup:\n type: azuread:Group\n properties:\n displayName: MyGroup\n owners:\n - ${current.objectId}\n securityEnabled: true\n members:\n - ${exampleUser.objectId}\nvariables:\n current:\n Fn::Invoke:\n Function: azuread:getClientConfig\n Arguments: {}\n```\n\n*Group with dynamic membership*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst current = azuread.getClientConfig({});\nconst example = new azuread.Group(\"example\", {\n displayName: \"MyGroup\",\n owners: [current.then(current =\u003e current.objectId)],\n securityEnabled: true,\n types: [\"DynamicMembership\"],\n dynamicMembership: {\n enabled: true,\n rule: \"user.department -eq \\\"Sales\\\"\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\ncurrent = azuread.get_client_config()\nexample = azuread.Group(\"example\",\n display_name=\"MyGroup\",\n owners=[current.object_id],\n security_enabled=True,\n types=[\"DynamicMembership\"],\n dynamic_membership=azuread.GroupDynamicMembershipArgs(\n enabled=True,\n rule=\"user.department -eq \\\"Sales\\\"\",\n ))\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var current = Output.Create(AzureAD.GetClientConfig.InvokeAsync());\n var example = new AzureAD.Group(\"example\", new AzureAD.GroupArgs\n {\n DisplayName = \"MyGroup\",\n Owners = \n {\n current.Apply(current =\u003e current.ObjectId),\n },\n SecurityEnabled = true,\n Types = \n {\n \"DynamicMembership\",\n },\n DynamicMembership = new AzureAD.Inputs.GroupDynamicMembershipArgs\n {\n Enabled = true,\n Rule = \"user.department -eq \\\"Sales\\\"\",\n },\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := azuread.GetClientConfig(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewGroup(ctx, \"example\", \u0026azuread.GroupArgs{\n\t\t\tDisplayName: pulumi.String(\"MyGroup\"),\n\t\t\tOwners: pulumi.StringArray{\n\t\t\t\tpulumi.String(current.ObjectId),\n\t\t\t},\n\t\t\tSecurityEnabled: pulumi.Bool(true),\n\t\t\tTypes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"DynamicMembership\"),\n\t\t\t},\n\t\t\tDynamicMembership: \u0026GroupDynamicMembershipArgs{\n\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\tRule: pulumi.String(\"user.department -eq \\\"Sales\\\"\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 current = Output.of(AzureadFunctions.getClientConfig());\n\n var example = new Group(\"example\", GroupArgs.builder() \n .displayName(\"MyGroup\")\n .owners(current.apply(getClientConfigResult -\u003e getClientConfigResult.getObjectId()))\n .securityEnabled(true)\n .types(\"DynamicMembership\")\n .dynamicMembership(GroupDynamicMembership.builder()\n .enabled(true)\n .rule(\"user.department -eq \\\"Sales\\\"\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azuread:Group\n properties:\n displayName: MyGroup\n owners:\n - ${current.objectId}\n securityEnabled: true\n types:\n - DynamicMembership\n dynamicMembership:\n enabled: true\n rule: user.department -eq \"Sales\"\nvariables:\n current:\n Fn::Invoke:\n Function: azuread:getClientConfig\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nGroups can be imported using their object ID, e.g.\n\n```sh\n $ pulumi import azuread:index/group:Group my_group 00000000-0000-0000-0000-000000000000\n```\n\n ", + "description": "Manages a group within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires one of the following application roles: `Group.ReadWrite.All` or `Directory.ReadWrite.All`\n\nIf using the `assignable_to_role` property, this resource additionally requires one of the following application roles: `RoleManagement.ReadWrite.Directory` or `Directory.ReadWrite.All`\n\nIf specifying owners for a group, which are user principals, this resource additionally requires one of the following application roles: `User.Read.All`, `User.ReadWrite.All`, `Directory.Read.All` or `Directory.ReadWrite.All`\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Groups Administrator`, `User Administrator` or `Global Administrator`\n\nThe `external_senders_allowed`, `auto_subscribe_new_members`, `hide_from_address_lists` and `hide_from_outlook_clients` properties can only be configured when authenticating as a user and cannot be configured when authenticating as a service principal. Additionally, the user being used for authentication must be a Member of the tenant where the group is being managed and _not_ a Guest. This is a known API issue; please see the [Microsoft Graph Known Issues](https://docs.microsoft.com/en-us/graph/known-issues#groups) official documentation.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*Basic example*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst current = azuread.getClientConfig({});\nconst example = new azuread.Group(\"example\", {\n displayName: \"example\",\n owners: [current.then(current =\u003e current.objectId)],\n securityEnabled: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\ncurrent = azuread.get_client_config()\nexample = azuread.Group(\"example\",\n display_name=\"example\",\n owners=[current.object_id],\n security_enabled=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var current = AzureAD.GetClientConfig.Invoke();\n\n var example = new AzureAD.Group(\"example\", new()\n {\n DisplayName = \"example\",\n Owners = new[]\n {\n current.Apply(getClientConfigResult =\u003e getClientConfigResult.ObjectId),\n },\n SecurityEnabled = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := azuread.GetClientConfig(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewGroup(ctx, \"example\", \u0026azuread.GroupArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tOwners: pulumi.StringArray{\n\t\t\t\tpulumi.String(current.ObjectId),\n\t\t\t},\n\t\t\tSecurityEnabled: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.Group;\nimport com.pulumi.azuread.GroupArgs;\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 current = AzureadFunctions.getClientConfig();\n\n var example = new Group(\"example\", GroupArgs.builder() \n .displayName(\"example\")\n .owners(current.applyValue(getClientConfigResult -\u003e getClientConfigResult.objectId()))\n .securityEnabled(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azuread:Group\n properties:\n displayName: example\n owners:\n - ${current.objectId}\n securityEnabled: true\nvariables:\n current:\n Fn::Invoke:\n Function: azuread:getClientConfig\n Arguments: {}\n```\n\n*Microsoft 365 group*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst current = azuread.getClientConfig({});\nconst groupOwner = new azuread.User(\"groupOwner\", {\n userPrincipalName: \"example-group-owner@hashicorp.com\",\n displayName: \"Group Owner\",\n mailNickname: \"example-group-owner\",\n password: \"SecretP@sswd99!\",\n});\nconst example = new azuread.Group(\"example\", {\n displayName: \"example\",\n mailEnabled: true,\n mailNickname: \"ExampleGroup\",\n securityEnabled: true,\n types: [\"Unified\"],\n owners: [\n current.then(current =\u003e current.objectId),\n groupOwner.objectId,\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\ncurrent = azuread.get_client_config()\ngroup_owner = azuread.User(\"groupOwner\",\n user_principal_name=\"example-group-owner@hashicorp.com\",\n display_name=\"Group Owner\",\n mail_nickname=\"example-group-owner\",\n password=\"SecretP@sswd99!\")\nexample = azuread.Group(\"example\",\n display_name=\"example\",\n mail_enabled=True,\n mail_nickname=\"ExampleGroup\",\n security_enabled=True,\n types=[\"Unified\"],\n owners=[\n current.object_id,\n group_owner.object_id,\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var current = AzureAD.GetClientConfig.Invoke();\n\n var groupOwner = new AzureAD.User(\"groupOwner\", new()\n {\n UserPrincipalName = \"example-group-owner@hashicorp.com\",\n DisplayName = \"Group Owner\",\n MailNickname = \"example-group-owner\",\n Password = \"SecretP@sswd99!\",\n });\n\n var example = new AzureAD.Group(\"example\", new()\n {\n DisplayName = \"example\",\n MailEnabled = true,\n MailNickname = \"ExampleGroup\",\n SecurityEnabled = true,\n Types = new[]\n {\n \"Unified\",\n },\n Owners = new[]\n {\n current.Apply(getClientConfigResult =\u003e getClientConfigResult.ObjectId),\n groupOwner.ObjectId,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := azuread.GetClientConfig(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tgroupOwner, err := azuread.NewUser(ctx, \"groupOwner\", \u0026azuread.UserArgs{\n\t\t\tUserPrincipalName: pulumi.String(\"example-group-owner@hashicorp.com\"),\n\t\t\tDisplayName: pulumi.String(\"Group Owner\"),\n\t\t\tMailNickname: pulumi.String(\"example-group-owner\"),\n\t\t\tPassword: pulumi.String(\"SecretP@sswd99!\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewGroup(ctx, \"example\", \u0026azuread.GroupArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tMailEnabled: pulumi.Bool(true),\n\t\t\tMailNickname: pulumi.String(\"ExampleGroup\"),\n\t\t\tSecurityEnabled: pulumi.Bool(true),\n\t\t\tTypes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"Unified\"),\n\t\t\t},\n\t\t\tOwners: pulumi.StringArray{\n\t\t\t\tpulumi.String(current.ObjectId),\n\t\t\t\tgroupOwner.ObjectId,\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.User;\nimport com.pulumi.azuread.UserArgs;\nimport com.pulumi.azuread.Group;\nimport com.pulumi.azuread.GroupArgs;\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 current = AzureadFunctions.getClientConfig();\n\n var groupOwner = new User(\"groupOwner\", UserArgs.builder() \n .userPrincipalName(\"example-group-owner@hashicorp.com\")\n .displayName(\"Group Owner\")\n .mailNickname(\"example-group-owner\")\n .password(\"SecretP@sswd99!\")\n .build());\n\n var example = new Group(\"example\", GroupArgs.builder() \n .displayName(\"example\")\n .mailEnabled(true)\n .mailNickname(\"ExampleGroup\")\n .securityEnabled(true)\n .types(\"Unified\")\n .owners( \n current.applyValue(getClientConfigResult -\u003e getClientConfigResult.objectId()),\n groupOwner.objectId())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n groupOwner:\n type: azuread:User\n properties:\n userPrincipalName: example-group-owner@hashicorp.com\n displayName: Group Owner\n mailNickname: example-group-owner\n password: SecretP@sswd99!\n example:\n type: azuread:Group\n properties:\n displayName: example\n mailEnabled: true\n mailNickname: ExampleGroup\n securityEnabled: true\n types:\n - Unified\n owners:\n - ${current.objectId}\n - ${groupOwner.objectId}\nvariables:\n current:\n Fn::Invoke:\n Function: azuread:getClientConfig\n Arguments: {}\n```\n\n*Group with members*\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.User;\nimport com.pulumi.azuread.UserArgs;\nimport com.pulumi.azuread.Group;\nimport com.pulumi.azuread.GroupArgs;\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 current = AzureadFunctions.getClientConfig();\n\n var exampleUser = new User(\"exampleUser\", UserArgs.builder() \n .displayName(\"J Doe\")\n .owners(current.applyValue(getClientConfigResult -\u003e getClientConfigResult.objectId()))\n .password(\"notSecure123\")\n .userPrincipalName(\"jdoe@hashicorp.com\")\n .build());\n\n var exampleGroup = new Group(\"exampleGroup\", GroupArgs.builder() \n .displayName(\"MyGroup\")\n .owners(current.applyValue(getClientConfigResult -\u003e getClientConfigResult.objectId()))\n .securityEnabled(true)\n .members(exampleUser.objectId())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleUser:\n type: azuread:User\n properties:\n displayName: J Doe\n owners:\n - ${current.objectId}\n password: notSecure123\n userPrincipalName: jdoe@hashicorp.com\n exampleGroup:\n type: azuread:Group\n properties:\n displayName: MyGroup\n owners:\n - ${current.objectId}\n securityEnabled: true\n members:\n - ${exampleUser.objectId}\nvariables:\n current:\n Fn::Invoke:\n Function: azuread:getClientConfig\n Arguments: {}\n```\n\n*Group with dynamic membership*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst current = azuread.getClientConfig({});\nconst example = new azuread.Group(\"example\", {\n displayName: \"MyGroup\",\n owners: [current.then(current =\u003e current.objectId)],\n securityEnabled: true,\n types: [\"DynamicMembership\"],\n dynamicMembership: {\n enabled: true,\n rule: \"user.department -eq \\\"Sales\\\"\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\ncurrent = azuread.get_client_config()\nexample = azuread.Group(\"example\",\n display_name=\"MyGroup\",\n owners=[current.object_id],\n security_enabled=True,\n types=[\"DynamicMembership\"],\n dynamic_membership=azuread.GroupDynamicMembershipArgs(\n enabled=True,\n rule=\"user.department -eq \\\"Sales\\\"\",\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var current = AzureAD.GetClientConfig.Invoke();\n\n var example = new AzureAD.Group(\"example\", new()\n {\n DisplayName = \"MyGroup\",\n Owners = new[]\n {\n current.Apply(getClientConfigResult =\u003e getClientConfigResult.ObjectId),\n },\n SecurityEnabled = true,\n Types = new[]\n {\n \"DynamicMembership\",\n },\n DynamicMembership = new AzureAD.Inputs.GroupDynamicMembershipArgs\n {\n Enabled = true,\n Rule = \"user.department -eq \\\"Sales\\\"\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := azuread.GetClientConfig(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewGroup(ctx, \"example\", \u0026azuread.GroupArgs{\n\t\t\tDisplayName: pulumi.String(\"MyGroup\"),\n\t\t\tOwners: pulumi.StringArray{\n\t\t\t\tpulumi.String(current.ObjectId),\n\t\t\t},\n\t\t\tSecurityEnabled: pulumi.Bool(true),\n\t\t\tTypes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"DynamicMembership\"),\n\t\t\t},\n\t\t\tDynamicMembership: \u0026GroupDynamicMembershipArgs{\n\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\tRule: pulumi.String(\"user.department -eq \\\"Sales\\\"\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.Group;\nimport com.pulumi.azuread.GroupArgs;\nimport com.pulumi.azuread.inputs.GroupDynamicMembershipArgs;\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 current = AzureadFunctions.getClientConfig();\n\n var example = new Group(\"example\", GroupArgs.builder() \n .displayName(\"MyGroup\")\n .owners(current.applyValue(getClientConfigResult -\u003e getClientConfigResult.objectId()))\n .securityEnabled(true)\n .types(\"DynamicMembership\")\n .dynamicMembership(GroupDynamicMembershipArgs.builder()\n .enabled(true)\n .rule(\"user.department -eq \\\"Sales\\\"\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azuread:Group\n properties:\n displayName: MyGroup\n owners:\n - ${current.objectId}\n securityEnabled: true\n types:\n - DynamicMembership\n dynamicMembership:\n enabled: true\n rule: user.department -eq \"Sales\"\nvariables:\n current:\n Fn::Invoke:\n Function: azuread:getClientConfig\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nGroups can be imported using their object ID, e.g.\n\n```sh\n $ pulumi import azuread:index/group:Group my_group 00000000-0000-0000-0000-000000000000\n```\n\n ", "properties": { "assignableToRole": { "type": "boolean", @@ -4670,7 +4778,8 @@ "inputProperties": { "assignableToRole": { "type": "boolean", - "description": "Indicates whether this group can be assigned to an Azure Active Directory role. Can only be `true` for security-enabled groups. Changing this forces a new resource to be created.\n" + "description": "Indicates whether this group can be assigned to an Azure Active Directory role. Can only be `true` for security-enabled groups. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "autoSubscribeNewMembers": { "type": "boolean", @@ -4681,7 +4790,8 @@ "items": { "type": "string" }, - "description": "A set of behaviors for a Microsoft 365 group. Possible values are `AllowOnlyMembersToPost`, `HideGroupInOutlook`, `SubscribeMembersToCalendarEventsDisabled`, `SubscribeNewGroupMembers` and `WelcomeEmailDisabled`. See [official documentation](https://docs.microsoft.com/en-us/graph/group-set-options) for more details. Changing this forces a new resource to be created.\n" + "description": "A set of behaviors for a Microsoft 365 group. Possible values are `AllowOnlyMembersToPost`, `HideGroupInOutlook`, `SubscribeMembersToCalendarEventsDisabled`, `SubscribeNewGroupMembers` and `WelcomeEmailDisabled`. See [official documentation](https://docs.microsoft.com/en-us/graph/group-set-options) for more details. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "description": { "type": "string", @@ -4713,7 +4823,8 @@ }, "mailNickname": { "type": "string", - "description": "The mail alias for the group, unique in the organisation. Required for mail-enabled groups. Changing this forces a new resource to be created.\n" + "description": "The mail alias for the group, unique in the organisation. Required for mail-enabled groups. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "members": { "type": "array", @@ -4738,7 +4849,8 @@ "items": { "type": "string" }, - "description": "A set of provisioning options for a Microsoft 365 group. The only supported value is `Team`. See [official documentation](https://docs.microsoft.com/en-us/graph/group-set-options) for details. Changing this forces a new resource to be created.\n" + "description": "A set of provisioning options for a Microsoft 365 group. The only supported value is `Team`. See [official documentation](https://docs.microsoft.com/en-us/graph/group-set-options) for details. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "securityEnabled": { "type": "boolean", @@ -4753,7 +4865,8 @@ "items": { "type": "string" }, - "description": "A set of group types to configure for the group. Supported values are `DynamicMembership`, which denotes a group with dynamic membership, and `Unified`, which specifies a Microsoft 365 group. Required when `mail_enabled` is true. Changing this forces a new resource to be created.\n" + "description": "A set of group types to configure for the group. Supported values are `DynamicMembership`, which denotes a group with dynamic membership, and `Unified`, which specifies a Microsoft 365 group. Required when `mail_enabled` is true. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "visibility": { "type": "string", @@ -4768,7 +4881,8 @@ "properties": { "assignableToRole": { "type": "boolean", - "description": "Indicates whether this group can be assigned to an Azure Active Directory role. Can only be `true` for security-enabled groups. Changing this forces a new resource to be created.\n" + "description": "Indicates whether this group can be assigned to an Azure Active Directory role. Can only be `true` for security-enabled groups. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "autoSubscribeNewMembers": { "type": "boolean", @@ -4779,7 +4893,8 @@ "items": { "type": "string" }, - "description": "A set of behaviors for a Microsoft 365 group. Possible values are `AllowOnlyMembersToPost`, `HideGroupInOutlook`, `SubscribeMembersToCalendarEventsDisabled`, `SubscribeNewGroupMembers` and `WelcomeEmailDisabled`. See [official documentation](https://docs.microsoft.com/en-us/graph/group-set-options) for more details. Changing this forces a new resource to be created.\n" + "description": "A set of behaviors for a Microsoft 365 group. Possible values are `AllowOnlyMembersToPost`, `HideGroupInOutlook`, `SubscribeMembersToCalendarEventsDisabled`, `SubscribeNewGroupMembers` and `WelcomeEmailDisabled`. See [official documentation](https://docs.microsoft.com/en-us/graph/group-set-options) for more details. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "description": { "type": "string", @@ -4815,7 +4930,8 @@ }, "mailNickname": { "type": "string", - "description": "The mail alias for the group, unique in the organisation. Required for mail-enabled groups. Changing this forces a new resource to be created.\n" + "description": "The mail alias for the group, unique in the organisation. Required for mail-enabled groups. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "members": { "type": "array", @@ -4868,7 +4984,8 @@ "items": { "type": "string" }, - "description": "A set of provisioning options for a Microsoft 365 group. The only supported value is `Team`. See [official documentation](https://docs.microsoft.com/en-us/graph/group-set-options) for details. Changing this forces a new resource to be created.\n" + "description": "A set of provisioning options for a Microsoft 365 group. The only supported value is `Team`. See [official documentation](https://docs.microsoft.com/en-us/graph/group-set-options) for details. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "proxyAddresses": { "type": "array", @@ -4890,7 +5007,8 @@ "items": { "type": "string" }, - "description": "A set of group types to configure for the group. Supported values are `DynamicMembership`, which denotes a group with dynamic membership, and `Unified`, which specifies a Microsoft 365 group. Required when `mail_enabled` is true. Changing this forces a new resource to be created.\n" + "description": "A set of group types to configure for the group. Supported values are `DynamicMembership`, which denotes a group with dynamic membership, and `Unified`, which specifies a Microsoft 365 group. Required when `mail_enabled` is true. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "visibility": { "type": "string", @@ -4901,7 +5019,7 @@ } }, "azuread:index/groupMember:GroupMember": { - "description": "Manages a single group membership within Azure Active Directory.\n\n\u003e **Warning** Do not use this resource at the same time as the `members` property of the `azuread.Group` resource for the same group. Doing so will cause a conflict and group members will be removed.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires one of the following application roles: `Group.ReadWrite.All` or `Directory.ReadWrite.All`\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Groups Administrator`, `User Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleUser = azuread.getUser({\n userPrincipalName: \"jdoe@hashicorp.com\",\n});\nconst exampleGroup = new azuread.Group(\"exampleGroup\", {\n displayName: \"my_group\",\n securityEnabled: true,\n});\nconst exampleGroupMember = new azuread.GroupMember(\"exampleGroupMember\", {\n groupObjectId: exampleGroup.id,\n memberObjectId: exampleUser.then(exampleUser =\u003e exampleUser.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_user = azuread.get_user(user_principal_name=\"jdoe@hashicorp.com\")\nexample_group = azuread.Group(\"exampleGroup\",\n display_name=\"my_group\",\n security_enabled=True)\nexample_group_member = azuread.GroupMember(\"exampleGroupMember\",\n group_object_id=example_group.id,\n member_object_id=example_user.id)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleUser = Output.Create(AzureAD.GetUser.InvokeAsync(new AzureAD.GetUserArgs\n {\n UserPrincipalName = \"jdoe@hashicorp.com\",\n }));\n var exampleGroup = new AzureAD.Group(\"exampleGroup\", new AzureAD.GroupArgs\n {\n DisplayName = \"my_group\",\n SecurityEnabled = true,\n });\n var exampleGroupMember = new AzureAD.GroupMember(\"exampleGroupMember\", new AzureAD.GroupMemberArgs\n {\n GroupObjectId = exampleGroup.Id,\n MemberObjectId = exampleUser.Apply(exampleUser =\u003e exampleUser.Id),\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleUser, err := azuread.LookupUser(ctx, \u0026GetUserArgs{\n\t\t\tUserPrincipalName: pulumi.StringRef(\"jdoe@hashicorp.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleGroup, err := azuread.NewGroup(ctx, \"exampleGroup\", \u0026azuread.GroupArgs{\n\t\t\tDisplayName: pulumi.String(\"my_group\"),\n\t\t\tSecurityEnabled: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewGroupMember(ctx, \"exampleGroupMember\", \u0026azuread.GroupMemberArgs{\n\t\t\tGroupObjectId: exampleGroup.ID(),\n\t\t\tMemberObjectId: pulumi.String(exampleUser.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 exampleUser = Output.of(AzureadFunctions.getUser(GetUserArgs.builder()\n .userPrincipalName(\"jdoe@hashicorp.com\")\n .build()));\n\n var exampleGroup = new Group(\"exampleGroup\", GroupArgs.builder() \n .displayName(\"my_group\")\n .securityEnabled(true)\n .build());\n\n var exampleGroupMember = new GroupMember(\"exampleGroupMember\", GroupMemberArgs.builder() \n .groupObjectId(exampleGroup.getId())\n .memberObjectId(exampleUser.apply(getUserResult -\u003e getUserResult.getId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleGroup:\n type: azuread:Group\n properties:\n displayName: my_group\n securityEnabled: true\n exampleGroupMember:\n type: azuread:GroupMember\n properties:\n groupObjectId: ${exampleGroup.id}\n memberObjectId: ${exampleUser.id}\nvariables:\n exampleUser:\n Fn::Invoke:\n Function: azuread:getUser\n Arguments:\n userPrincipalName: jdoe@hashicorp.com\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nGroup members can be imported using the object ID of the group and the object ID of the member, e.g.\n\n```sh\n $ pulumi import azuread:index/groupMember:GroupMember test 00000000-0000-0000-0000-000000000000/member/11111111-1111-1111-1111-111111111111\n```\n\n -\u003e This ID format is unique to Terraform and is composed of the Azure AD Group Object ID and the target Member Object ID in the format `{GroupObjectID}/member/{MemberObjectID}`. ", + "description": "Manages a single group membership within Azure Active Directory.\n\n\u003e **Warning** Do not use this resource at the same time as the `members` property of the `azuread.Group` resource for the same group. Doing so will cause a conflict and group members will be removed.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires one of the following application roles: `Group.ReadWrite.All` or `Directory.ReadWrite.All`\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Groups Administrator`, `User Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleUser = azuread.getUser({\n userPrincipalName: \"jdoe@hashicorp.com\",\n});\nconst exampleGroup = new azuread.Group(\"exampleGroup\", {\n displayName: \"my_group\",\n securityEnabled: true,\n});\nconst exampleGroupMember = new azuread.GroupMember(\"exampleGroupMember\", {\n groupObjectId: exampleGroup.id,\n memberObjectId: exampleUser.then(exampleUser =\u003e exampleUser.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_user = azuread.get_user(user_principal_name=\"jdoe@hashicorp.com\")\nexample_group = azuread.Group(\"exampleGroup\",\n display_name=\"my_group\",\n security_enabled=True)\nexample_group_member = azuread.GroupMember(\"exampleGroupMember\",\n group_object_id=example_group.id,\n member_object_id=example_user.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleUser = AzureAD.GetUser.Invoke(new()\n {\n UserPrincipalName = \"jdoe@hashicorp.com\",\n });\n\n var exampleGroup = new AzureAD.Group(\"exampleGroup\", new()\n {\n DisplayName = \"my_group\",\n SecurityEnabled = true,\n });\n\n var exampleGroupMember = new AzureAD.GroupMember(\"exampleGroupMember\", new()\n {\n GroupObjectId = exampleGroup.Id,\n MemberObjectId = exampleUser.Apply(getUserResult =\u003e getUserResult.Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleUser, err := azuread.LookupUser(ctx, \u0026GetUserArgs{\n\t\t\tUserPrincipalName: pulumi.StringRef(\"jdoe@hashicorp.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleGroup, err := azuread.NewGroup(ctx, \"exampleGroup\", \u0026azuread.GroupArgs{\n\t\t\tDisplayName: pulumi.String(\"my_group\"),\n\t\t\tSecurityEnabled: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewGroupMember(ctx, \"exampleGroupMember\", \u0026azuread.GroupMemberArgs{\n\t\t\tGroupObjectId: exampleGroup.ID(),\n\t\t\tMemberObjectId: pulumi.String(exampleUser.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetUserArgs;\nimport com.pulumi.azuread.Group;\nimport com.pulumi.azuread.GroupArgs;\nimport com.pulumi.azuread.GroupMember;\nimport com.pulumi.azuread.GroupMemberArgs;\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 exampleUser = AzureadFunctions.getUser(GetUserArgs.builder()\n .userPrincipalName(\"jdoe@hashicorp.com\")\n .build());\n\n var exampleGroup = new Group(\"exampleGroup\", GroupArgs.builder() \n .displayName(\"my_group\")\n .securityEnabled(true)\n .build());\n\n var exampleGroupMember = new GroupMember(\"exampleGroupMember\", GroupMemberArgs.builder() \n .groupObjectId(exampleGroup.id())\n .memberObjectId(exampleUser.applyValue(getUserResult -\u003e getUserResult.id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleGroup:\n type: azuread:Group\n properties:\n displayName: my_group\n securityEnabled: true\n exampleGroupMember:\n type: azuread:GroupMember\n properties:\n groupObjectId: ${exampleGroup.id}\n memberObjectId: ${exampleUser.id}\nvariables:\n exampleUser:\n Fn::Invoke:\n Function: azuread:getUser\n Arguments:\n userPrincipalName: jdoe@hashicorp.com\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nGroup members can be imported using the object ID of the group and the object ID of the member, e.g.\n\n```sh\n $ pulumi import azuread:index/groupMember:GroupMember test 00000000-0000-0000-0000-000000000000/member/11111111-1111-1111-1111-111111111111\n```\n\n -\u003e This ID format is unique to Terraform and is composed of the Azure AD Group Object ID and the target Member Object ID in the format `{GroupObjectID}/member/{MemberObjectID}`. ", "properties": { "groupObjectId": { "type": "string", @@ -4919,11 +5037,13 @@ "inputProperties": { "groupObjectId": { "type": "string", - "description": "The object ID of the group you want to add the member to. Changing this forces a new resource to be created.\n" + "description": "The object ID of the group you want to add the member to. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "memberObjectId": { "type": "string", - "description": "The object ID of the principal you want to add as a member to the group. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.\n" + "description": "The object ID of the principal you want to add as a member to the group. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true } }, "requiredInputs": [ @@ -4935,18 +5055,20 @@ "properties": { "groupObjectId": { "type": "string", - "description": "The object ID of the group you want to add the member to. Changing this forces a new resource to be created.\n" + "description": "The object ID of the group you want to add the member to. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "memberObjectId": { "type": "string", - "description": "The object ID of the principal you want to add as a member to the group. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.\n" + "description": "The object ID of the principal you want to add as a member to the group. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true } }, "type": "object" } }, "azuread:index/invitation:Invitation": { - "description": "Manages an invitation of a guest user within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires one of the following application roles: `User.Invite.All`, `User.ReadWrite.All` or `Directory.ReadWrite.All`\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Guest Inviter`, `User Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*Basic example*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.Invitation(\"example\", {\n redirectUrl: \"https://portal.azure.com\",\n userEmailAddress: \"jdoe@hashicorp.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.Invitation(\"example\",\n redirect_url=\"https://portal.azure.com\",\n user_email_address=\"jdoe@hashicorp.com\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = new AzureAD.Invitation(\"example\", new AzureAD.InvitationArgs\n {\n RedirectUrl = \"https://portal.azure.com\",\n UserEmailAddress = \"jdoe@hashicorp.com\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.NewInvitation(ctx, \"example\", \u0026azuread.InvitationArgs{\n\t\t\tRedirectUrl: pulumi.String(\"https://portal.azure.com\"),\n\t\t\tUserEmailAddress: pulumi.String(\"jdoe@hashicorp.com\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Invitation(\"example\", InvitationArgs.builder() \n .redirectUrl(\"https://portal.azure.com\")\n .userEmailAddress(\"jdoe@hashicorp.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azuread:Invitation\n properties:\n redirectUrl: https://portal.azure.com\n userEmailAddress: jdoe@hashicorp.com\n```\n\n*Invitation with standard message*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.Invitation(\"example\", {\n message: {\n language: \"en-US\",\n },\n redirectUrl: \"https://portal.azure.com\",\n userEmailAddress: \"jdoe@hashicorp.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.Invitation(\"example\",\n message=azuread.InvitationMessageArgs(\n language=\"en-US\",\n ),\n redirect_url=\"https://portal.azure.com\",\n user_email_address=\"jdoe@hashicorp.com\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = new AzureAD.Invitation(\"example\", new AzureAD.InvitationArgs\n {\n Message = new AzureAD.Inputs.InvitationMessageArgs\n {\n Language = \"en-US\",\n },\n RedirectUrl = \"https://portal.azure.com\",\n UserEmailAddress = \"jdoe@hashicorp.com\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.NewInvitation(ctx, \"example\", \u0026azuread.InvitationArgs{\n\t\t\tMessage: \u0026InvitationMessageArgs{\n\t\t\t\tLanguage: pulumi.String(\"en-US\"),\n\t\t\t},\n\t\t\tRedirectUrl: pulumi.String(\"https://portal.azure.com\"),\n\t\t\tUserEmailAddress: pulumi.String(\"jdoe@hashicorp.com\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Invitation(\"example\", InvitationArgs.builder() \n .message(InvitationMessage.builder()\n .language(\"en-US\")\n .build())\n .redirectUrl(\"https://portal.azure.com\")\n .userEmailAddress(\"jdoe@hashicorp.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azuread:Invitation\n properties:\n message:\n language: en-US\n redirectUrl: https://portal.azure.com\n userEmailAddress: jdoe@hashicorp.com\n```\n\n*Invitation with custom message body and an additional recipient*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.Invitation(\"example\", {\n message: {\n additionalRecipients: \"aaliceberg@hashicorp.com\",\n body: \"Hello there! You are invited to join my Azure tenant!\",\n },\n redirectUrl: \"https://portal.azure.com\",\n userDisplayName: \"Bob Bobson\",\n userEmailAddress: \"bbobson@hashicorp.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.Invitation(\"example\",\n message=azuread.InvitationMessageArgs(\n additional_recipients=\"aaliceberg@hashicorp.com\",\n body=\"Hello there! You are invited to join my Azure tenant!\",\n ),\n redirect_url=\"https://portal.azure.com\",\n user_display_name=\"Bob Bobson\",\n user_email_address=\"bbobson@hashicorp.com\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = new AzureAD.Invitation(\"example\", new AzureAD.InvitationArgs\n {\n Message = new AzureAD.Inputs.InvitationMessageArgs\n {\n AdditionalRecipients = \"aaliceberg@hashicorp.com\",\n Body = \"Hello there! You are invited to join my Azure tenant!\",\n },\n RedirectUrl = \"https://portal.azure.com\",\n UserDisplayName = \"Bob Bobson\",\n UserEmailAddress = \"bbobson@hashicorp.com\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.NewInvitation(ctx, \"example\", \u0026azuread.InvitationArgs{\n\t\t\tMessage: \u0026InvitationMessageArgs{\n\t\t\t\tAdditionalRecipients: pulumi.String(\"aaliceberg@hashicorp.com\"),\n\t\t\t\tBody: pulumi.String(\"Hello there! You are invited to join my Azure tenant!\"),\n\t\t\t},\n\t\t\tRedirectUrl: pulumi.String(\"https://portal.azure.com\"),\n\t\t\tUserDisplayName: pulumi.String(\"Bob Bobson\"),\n\t\t\tUserEmailAddress: pulumi.String(\"bbobson@hashicorp.com\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Invitation(\"example\", InvitationArgs.builder() \n .message(InvitationMessage.builder()\n .additionalRecipients(\"aaliceberg@hashicorp.com\")\n .body(\"Hello there! You are invited to join my Azure tenant!\")\n .build())\n .redirectUrl(\"https://portal.azure.com\")\n .userDisplayName(\"Bob Bobson\")\n .userEmailAddress(\"bbobson@hashicorp.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azuread:Invitation\n properties:\n message:\n additionalRecipients: aaliceberg@hashicorp.com\n body: Hello there! You are invited to join my Azure tenant!\n redirectUrl: https://portal.azure.com\n userDisplayName: Bob Bobson\n userEmailAddress: bbobson@hashicorp.com\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nThis resource does not support importing. ", + "description": "Manages an invitation of a guest user within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires one of the following application roles: `User.Invite.All`, `User.ReadWrite.All` or `Directory.ReadWrite.All`\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Guest Inviter`, `User Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*Basic example*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.Invitation(\"example\", {\n redirectUrl: \"https://portal.azure.com\",\n userEmailAddress: \"jdoe@hashicorp.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.Invitation(\"example\",\n redirect_url=\"https://portal.azure.com\",\n user_email_address=\"jdoe@hashicorp.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new AzureAD.Invitation(\"example\", new()\n {\n RedirectUrl = \"https://portal.azure.com\",\n UserEmailAddress = \"jdoe@hashicorp.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.NewInvitation(ctx, \"example\", \u0026azuread.InvitationArgs{\n\t\t\tRedirectUrl: pulumi.String(\"https://portal.azure.com\"),\n\t\t\tUserEmailAddress: pulumi.String(\"jdoe@hashicorp.com\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.Invitation;\nimport com.pulumi.azuread.InvitationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Invitation(\"example\", InvitationArgs.builder() \n .redirectUrl(\"https://portal.azure.com\")\n .userEmailAddress(\"jdoe@hashicorp.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azuread:Invitation\n properties:\n redirectUrl: https://portal.azure.com\n userEmailAddress: jdoe@hashicorp.com\n```\n\n*Invitation with standard message*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.Invitation(\"example\", {\n message: {\n language: \"en-US\",\n },\n redirectUrl: \"https://portal.azure.com\",\n userEmailAddress: \"jdoe@hashicorp.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.Invitation(\"example\",\n message=azuread.InvitationMessageArgs(\n language=\"en-US\",\n ),\n redirect_url=\"https://portal.azure.com\",\n user_email_address=\"jdoe@hashicorp.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new AzureAD.Invitation(\"example\", new()\n {\n Message = new AzureAD.Inputs.InvitationMessageArgs\n {\n Language = \"en-US\",\n },\n RedirectUrl = \"https://portal.azure.com\",\n UserEmailAddress = \"jdoe@hashicorp.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.NewInvitation(ctx, \"example\", \u0026azuread.InvitationArgs{\n\t\t\tMessage: \u0026InvitationMessageArgs{\n\t\t\t\tLanguage: pulumi.String(\"en-US\"),\n\t\t\t},\n\t\t\tRedirectUrl: pulumi.String(\"https://portal.azure.com\"),\n\t\t\tUserEmailAddress: pulumi.String(\"jdoe@hashicorp.com\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.Invitation;\nimport com.pulumi.azuread.InvitationArgs;\nimport com.pulumi.azuread.inputs.InvitationMessageArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Invitation(\"example\", InvitationArgs.builder() \n .message(InvitationMessageArgs.builder()\n .language(\"en-US\")\n .build())\n .redirectUrl(\"https://portal.azure.com\")\n .userEmailAddress(\"jdoe@hashicorp.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azuread:Invitation\n properties:\n message:\n language: en-US\n redirectUrl: https://portal.azure.com\n userEmailAddress: jdoe@hashicorp.com\n```\n\n*Invitation with custom message body and an additional recipient*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.Invitation(\"example\", {\n message: {\n additionalRecipients: \"aaliceberg@hashicorp.com\",\n body: \"Hello there! You are invited to join my Azure tenant!\",\n },\n redirectUrl: \"https://portal.azure.com\",\n userDisplayName: \"Bob Bobson\",\n userEmailAddress: \"bbobson@hashicorp.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.Invitation(\"example\",\n message=azuread.InvitationMessageArgs(\n additional_recipients=\"aaliceberg@hashicorp.com\",\n body=\"Hello there! You are invited to join my Azure tenant!\",\n ),\n redirect_url=\"https://portal.azure.com\",\n user_display_name=\"Bob Bobson\",\n user_email_address=\"bbobson@hashicorp.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new AzureAD.Invitation(\"example\", new()\n {\n Message = new AzureAD.Inputs.InvitationMessageArgs\n {\n AdditionalRecipients = \"aaliceberg@hashicorp.com\",\n Body = \"Hello there! You are invited to join my Azure tenant!\",\n },\n RedirectUrl = \"https://portal.azure.com\",\n UserDisplayName = \"Bob Bobson\",\n UserEmailAddress = \"bbobson@hashicorp.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.NewInvitation(ctx, \"example\", \u0026azuread.InvitationArgs{\n\t\t\tMessage: \u0026InvitationMessageArgs{\n\t\t\t\tAdditionalRecipients: pulumi.String(\"aaliceberg@hashicorp.com\"),\n\t\t\t\tBody: pulumi.String(\"Hello there! You are invited to join my Azure tenant!\"),\n\t\t\t},\n\t\t\tRedirectUrl: pulumi.String(\"https://portal.azure.com\"),\n\t\t\tUserDisplayName: pulumi.String(\"Bob Bobson\"),\n\t\t\tUserEmailAddress: pulumi.String(\"bbobson@hashicorp.com\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.Invitation;\nimport com.pulumi.azuread.InvitationArgs;\nimport com.pulumi.azuread.inputs.InvitationMessageArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Invitation(\"example\", InvitationArgs.builder() \n .message(InvitationMessageArgs.builder()\n .additionalRecipients(\"aaliceberg@hashicorp.com\")\n .body(\"Hello there! You are invited to join my Azure tenant!\")\n .build())\n .redirectUrl(\"https://portal.azure.com\")\n .userDisplayName(\"Bob Bobson\")\n .userEmailAddress(\"bbobson@hashicorp.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azuread:Invitation\n properties:\n message:\n additionalRecipients: aaliceberg@hashicorp.com\n body: Hello there! You are invited to join my Azure tenant!\n redirectUrl: https://portal.azure.com\n userDisplayName: Bob Bobson\n userEmailAddress: bbobson@hashicorp.com\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nThis resource does not support importing. ", "properties": { "message": { "$ref": "#/types/azuread:index/InvitationMessage:InvitationMessage", @@ -4986,23 +5108,28 @@ "inputProperties": { "message": { "$ref": "#/types/azuread:index/InvitationMessage:InvitationMessage", - "description": "A `message` block as documented below, which configures the message being sent to the invited user. If this block is omitted, no message will be sent.\n" + "description": "A `message` block as documented below, which configures the message being sent to the invited user. If this block is omitted, no message will be sent.\n", + "willReplaceOnChanges": true }, "redirectUrl": { "type": "string", - "description": "The URL that the user should be redirected to once the invitation is redeemed.\n" + "description": "The URL that the user should be redirected to once the invitation is redeemed.\n", + "willReplaceOnChanges": true }, "userDisplayName": { "type": "string", - "description": "The display name of the user being invited.\n" + "description": "The display name of the user being invited.\n", + "willReplaceOnChanges": true }, "userEmailAddress": { "type": "string", - "description": "The email address of the user being invited.\n" + "description": "The email address of the user being invited.\n", + "willReplaceOnChanges": true }, "userType": { "type": "string", - "description": "The user type of the user being invited. Must be one of `Guest` or `Member`. Only Global Administrators can invite users as members. Defaults to `Guest`.\n" + "description": "The user type of the user being invited. Must be one of `Guest` or `Member`. Only Global Administrators can invite users as members. Defaults to `Guest`.\n", + "willReplaceOnChanges": true } }, "requiredInputs": [ @@ -5014,7 +5141,8 @@ "properties": { "message": { "$ref": "#/types/azuread:index/InvitationMessage:InvitationMessage", - "description": "A `message` block as documented below, which configures the message being sent to the invited user. If this block is omitted, no message will be sent.\n" + "description": "A `message` block as documented below, which configures the message being sent to the invited user. If this block is omitted, no message will be sent.\n", + "willReplaceOnChanges": true }, "redeemUrl": { "type": "string", @@ -5022,15 +5150,18 @@ }, "redirectUrl": { "type": "string", - "description": "The URL that the user should be redirected to once the invitation is redeemed.\n" + "description": "The URL that the user should be redirected to once the invitation is redeemed.\n", + "willReplaceOnChanges": true }, "userDisplayName": { "type": "string", - "description": "The display name of the user being invited.\n" + "description": "The display name of the user being invited.\n", + "willReplaceOnChanges": true }, "userEmailAddress": { "type": "string", - "description": "The email address of the user being invited.\n" + "description": "The email address of the user being invited.\n", + "willReplaceOnChanges": true }, "userId": { "type": "string", @@ -5038,14 +5169,15 @@ }, "userType": { "type": "string", - "description": "The user type of the user being invited. Must be one of `Guest` or `Member`. Only Global Administrators can invite users as members. Defaults to `Guest`.\n" + "description": "The user type of the user being invited. Must be one of `Guest` or `Member`. Only Global Administrators can invite users as members. Defaults to `Guest`.\n", + "willReplaceOnChanges": true } }, "type": "object" } }, "azuread:index/namedLocation:NamedLocation": { - "description": "Manages a Named Location within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires the following application roles: `Policy.ReadWrite.ConditionalAccess` and `Policy.Read.All`\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Conditional Access Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example_ip = new azuread.NamedLocation(\"example-ip\", {\n displayName: \"IP Named Location\",\n ip: {\n ipRanges: [\n \"1.1.1.1/32\",\n \"2.2.2.2/32\",\n ],\n trusted: true,\n },\n});\nconst example_country = new azuread.NamedLocation(\"example-country\", {\n country: {\n countriesAndRegions: [\n \"GB\",\n \"US\",\n ],\n includeUnknownCountriesAndRegions: false,\n },\n displayName: \"Country Named Location\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_ip = azuread.NamedLocation(\"example-ip\",\n display_name=\"IP Named Location\",\n ip=azuread.NamedLocationIpArgs(\n ip_ranges=[\n \"1.1.1.1/32\",\n \"2.2.2.2/32\",\n ],\n trusted=True,\n ))\nexample_country = azuread.NamedLocation(\"example-country\",\n country=azuread.NamedLocationCountryArgs(\n countries_and_regions=[\n \"GB\",\n \"US\",\n ],\n include_unknown_countries_and_regions=False,\n ),\n display_name=\"Country Named Location\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example_ip = new AzureAD.NamedLocation(\"example-ip\", new AzureAD.NamedLocationArgs\n {\n DisplayName = \"IP Named Location\",\n Ip = new AzureAD.Inputs.NamedLocationIpArgs\n {\n IpRanges = \n {\n \"1.1.1.1/32\",\n \"2.2.2.2/32\",\n },\n Trusted = true,\n },\n });\n var example_country = new AzureAD.NamedLocation(\"example-country\", new AzureAD.NamedLocationArgs\n {\n Country = new AzureAD.Inputs.NamedLocationCountryArgs\n {\n CountriesAndRegions = \n {\n \"GB\",\n \"US\",\n },\n IncludeUnknownCountriesAndRegions = false,\n },\n DisplayName = \"Country Named Location\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.NewNamedLocation(ctx, \"example-ip\", \u0026azuread.NamedLocationArgs{\n\t\t\tDisplayName: pulumi.String(\"IP Named Location\"),\n\t\t\tIp: \u0026NamedLocationIpArgs{\n\t\t\t\tIpRanges: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"1.1.1.1/32\"),\n\t\t\t\t\tpulumi.String(\"2.2.2.2/32\"),\n\t\t\t\t},\n\t\t\t\tTrusted: pulumi.Bool(true),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewNamedLocation(ctx, \"example-country\", \u0026azuread.NamedLocationArgs{\n\t\t\tCountry: \u0026NamedLocationCountryArgs{\n\t\t\t\tCountriesAndRegions: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"GB\"),\n\t\t\t\t\tpulumi.String(\"US\"),\n\t\t\t\t},\n\t\t\t\tIncludeUnknownCountriesAndRegions: pulumi.Bool(false),\n\t\t\t},\n\t\t\tDisplayName: pulumi.String(\"Country Named Location\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example_ip = new NamedLocation(\"example-ip\", NamedLocationArgs.builder() \n .displayName(\"IP Named Location\")\n .ip(NamedLocationIp.builder()\n .ipRanges( \n \"1.1.1.1/32\",\n \"2.2.2.2/32\")\n .trusted(true)\n .build())\n .build());\n\n var example_country = new NamedLocation(\"example-country\", NamedLocationArgs.builder() \n .country(NamedLocationCountry.builder()\n .countriesAndRegions( \n \"GB\",\n \"US\")\n .includeUnknownCountriesAndRegions(false)\n .build())\n .displayName(\"Country Named Location\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example-ip:\n type: azuread:NamedLocation\n properties:\n displayName: IP Named Location\n ip:\n ipRanges:\n - 1.1.1.1/32\n - 2.2.2.2/32\n trusted: true\n example-country:\n type: azuread:NamedLocation\n properties:\n country:\n countriesAndRegions:\n - GB\n - US\n includeUnknownCountriesAndRegions: false\n displayName: Country Named Location\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nNamed Locations can be imported using the `id`, e.g.\n\n```sh\n $ pulumi import azuread:index/namedLocation:NamedLocation my_location 00000000-0000-0000-0000-000000000000\n```\n\n ", + "description": "Manages a Named Location within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires the following application roles: `Policy.ReadWrite.ConditionalAccess` and `Policy.Read.All`\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Conditional Access Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example_ip = new azuread.NamedLocation(\"example-ip\", {\n displayName: \"IP Named Location\",\n ip: {\n ipRanges: [\n \"1.1.1.1/32\",\n \"2.2.2.2/32\",\n ],\n trusted: true,\n },\n});\nconst example_country = new azuread.NamedLocation(\"example-country\", {\n country: {\n countriesAndRegions: [\n \"GB\",\n \"US\",\n ],\n includeUnknownCountriesAndRegions: false,\n },\n displayName: \"Country Named Location\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_ip = azuread.NamedLocation(\"example-ip\",\n display_name=\"IP Named Location\",\n ip=azuread.NamedLocationIpArgs(\n ip_ranges=[\n \"1.1.1.1/32\",\n \"2.2.2.2/32\",\n ],\n trusted=True,\n ))\nexample_country = azuread.NamedLocation(\"example-country\",\n country=azuread.NamedLocationCountryArgs(\n countries_and_regions=[\n \"GB\",\n \"US\",\n ],\n include_unknown_countries_and_regions=False,\n ),\n display_name=\"Country Named Location\")\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example_ip = new AzureAD.NamedLocation(\"example-ip\", new()\n {\n DisplayName = \"IP Named Location\",\n Ip = new AzureAD.Inputs.NamedLocationIpArgs\n {\n IpRanges = new[]\n {\n \"1.1.1.1/32\",\n \"2.2.2.2/32\",\n },\n Trusted = true,\n },\n });\n\n var example_country = new AzureAD.NamedLocation(\"example-country\", new()\n {\n Country = new AzureAD.Inputs.NamedLocationCountryArgs\n {\n CountriesAndRegions = new[]\n {\n \"GB\",\n \"US\",\n },\n IncludeUnknownCountriesAndRegions = false,\n },\n DisplayName = \"Country Named Location\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.NewNamedLocation(ctx, \"example-ip\", \u0026azuread.NamedLocationArgs{\n\t\t\tDisplayName: pulumi.String(\"IP Named Location\"),\n\t\t\tIp: \u0026NamedLocationIpArgs{\n\t\t\t\tIpRanges: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"1.1.1.1/32\"),\n\t\t\t\t\tpulumi.String(\"2.2.2.2/32\"),\n\t\t\t\t},\n\t\t\t\tTrusted: pulumi.Bool(true),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewNamedLocation(ctx, \"example-country\", \u0026azuread.NamedLocationArgs{\n\t\t\tCountry: \u0026NamedLocationCountryArgs{\n\t\t\t\tCountriesAndRegions: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"GB\"),\n\t\t\t\t\tpulumi.String(\"US\"),\n\t\t\t\t},\n\t\t\t\tIncludeUnknownCountriesAndRegions: pulumi.Bool(false),\n\t\t\t},\n\t\t\tDisplayName: pulumi.String(\"Country Named Location\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.NamedLocation;\nimport com.pulumi.azuread.NamedLocationArgs;\nimport com.pulumi.azuread.inputs.NamedLocationIpArgs;\nimport com.pulumi.azuread.inputs.NamedLocationCountryArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example_ip = new NamedLocation(\"example-ip\", NamedLocationArgs.builder() \n .displayName(\"IP Named Location\")\n .ip(NamedLocationIpArgs.builder()\n .ipRanges( \n \"1.1.1.1/32\",\n \"2.2.2.2/32\")\n .trusted(true)\n .build())\n .build());\n\n var example_country = new NamedLocation(\"example-country\", NamedLocationArgs.builder() \n .country(NamedLocationCountryArgs.builder()\n .countriesAndRegions( \n \"GB\",\n \"US\")\n .includeUnknownCountriesAndRegions(false)\n .build())\n .displayName(\"Country Named Location\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example-ip:\n type: azuread:NamedLocation\n properties:\n displayName: IP Named Location\n ip:\n ipRanges:\n - 1.1.1.1/32\n - 2.2.2.2/32\n trusted: true\n example-country:\n type: azuread:NamedLocation\n properties:\n country:\n countriesAndRegions:\n - GB\n - US\n includeUnknownCountriesAndRegions: false\n displayName: Country Named Location\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nNamed Locations can be imported using the `id`, e.g.\n\n```sh\n $ pulumi import azuread:index/namedLocation:NamedLocation my_location 00000000-0000-0000-0000-000000000000\n```\n\n ", "properties": { "country": { "$ref": "#/types/azuread:index/NamedLocationCountry:NamedLocationCountry", @@ -5066,7 +5198,8 @@ "inputProperties": { "country": { "$ref": "#/types/azuread:index/NamedLocationCountry:NamedLocationCountry", - "description": "A `country` block as documented below, which configures a country-based named location.\n" + "description": "A `country` block as documented below, which configures a country-based named location.\n", + "willReplaceOnChanges": true }, "displayName": { "type": "string", @@ -5074,7 +5207,8 @@ }, "ip": { "$ref": "#/types/azuread:index/NamedLocationIp:NamedLocationIp", - "description": "An `ip` block as documented below, which configures an IP-based named location.\n" + "description": "An `ip` block as documented below, which configures an IP-based named location.\n", + "willReplaceOnChanges": true } }, "requiredInputs": [ @@ -5085,7 +5219,8 @@ "properties": { "country": { "$ref": "#/types/azuread:index/NamedLocationCountry:NamedLocationCountry", - "description": "A `country` block as documented below, which configures a country-based named location.\n" + "description": "A `country` block as documented below, which configures a country-based named location.\n", + "willReplaceOnChanges": true }, "displayName": { "type": "string", @@ -5093,14 +5228,15 @@ }, "ip": { "$ref": "#/types/azuread:index/NamedLocationIp:NamedLocationIp", - "description": "An `ip` block as documented below, which configures an IP-based named location.\n" + "description": "An `ip` block as documented below, which configures an IP-based named location.\n", + "willReplaceOnChanges": true } }, "type": "object" } }, "azuread:index/servicePrincipal:ServicePrincipal": { - "description": "Manages a service principal associated with an application within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires one of the following application roles: `Application.ReadWrite.All` or `Directory.ReadWrite.All`\n\nIt is not currently possible to manage service principals whilst having only the `Application.ReadWrite.OwnedBy` role granted.\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Application Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*Create a service principal for an application*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst current = azuread.getClientConfig({});\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {\n displayName: \"example\",\n owners: [current.then(current =\u003e current.objectId)],\n});\nconst exampleServicePrincipal = new azuread.ServicePrincipal(\"exampleServicePrincipal\", {\n applicationId: exampleApplication.applicationId,\n appRoleAssignmentRequired: false,\n owners: [current.then(current =\u003e current.objectId)],\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\ncurrent = azuread.get_client_config()\nexample_application = azuread.Application(\"exampleApplication\",\n display_name=\"example\",\n owners=[current.object_id])\nexample_service_principal = azuread.ServicePrincipal(\"exampleServicePrincipal\",\n application_id=example_application.application_id,\n app_role_assignment_required=False,\n owners=[current.object_id])\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var current = Output.Create(AzureAD.GetClientConfig.InvokeAsync());\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new AzureAD.ApplicationArgs\n {\n DisplayName = \"example\",\n Owners = \n {\n current.Apply(current =\u003e current.ObjectId),\n },\n });\n var exampleServicePrincipal = new AzureAD.ServicePrincipal(\"exampleServicePrincipal\", new AzureAD.ServicePrincipalArgs\n {\n ApplicationId = exampleApplication.ApplicationId,\n AppRoleAssignmentRequired = false,\n Owners = \n {\n current.Apply(current =\u003e current.ObjectId),\n },\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := azuread.GetClientConfig(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tOwners: pulumi.StringArray{\n\t\t\t\tpulumi.String(current.ObjectId),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewServicePrincipal(ctx, \"exampleServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: exampleApplication.ApplicationId,\n\t\t\tAppRoleAssignmentRequired: pulumi.Bool(false),\n\t\t\tOwners: pulumi.StringArray{\n\t\t\t\tpulumi.String(current.ObjectId),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 current = Output.of(AzureadFunctions.getClientConfig());\n\n var exampleApplication = new Application(\"exampleApplication\", ApplicationArgs.builder() \n .displayName(\"example\")\n .owners(current.apply(getClientConfigResult -\u003e getClientConfigResult.getObjectId()))\n .build());\n\n var exampleServicePrincipal = new ServicePrincipal(\"exampleServicePrincipal\", ServicePrincipalArgs.builder() \n .applicationId(exampleApplication.getApplicationId())\n .appRoleAssignmentRequired(false)\n .owners(current.apply(getClientConfigResult -\u003e getClientConfigResult.getObjectId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleApplication:\n type: azuread:Application\n properties:\n displayName: example\n owners:\n - ${current.objectId}\n exampleServicePrincipal:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${exampleApplication.applicationId}\n appRoleAssignmentRequired: false\n owners:\n - ${current.objectId}\nvariables:\n current:\n Fn::Invoke:\n Function: azuread:getClientConfig\n Arguments: {}\n```\n\n*Create a service principal for an enterprise application*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst current = azuread.getClientConfig({});\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {\n displayName: \"example\",\n owners: [current.then(current =\u003e current.objectId)],\n});\nconst exampleServicePrincipal = new azuread.ServicePrincipal(\"exampleServicePrincipal\", {\n applicationId: exampleApplication.applicationId,\n appRoleAssignmentRequired: false,\n owners: [current.then(current =\u003e current.objectId)],\n featureTags: [{\n enterprise: true,\n gallery: true,\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\ncurrent = azuread.get_client_config()\nexample_application = azuread.Application(\"exampleApplication\",\n display_name=\"example\",\n owners=[current.object_id])\nexample_service_principal = azuread.ServicePrincipal(\"exampleServicePrincipal\",\n application_id=example_application.application_id,\n app_role_assignment_required=False,\n owners=[current.object_id],\n feature_tags=[azuread.ServicePrincipalFeatureTagArgs(\n enterprise=True,\n gallery=True,\n )])\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var current = Output.Create(AzureAD.GetClientConfig.InvokeAsync());\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new AzureAD.ApplicationArgs\n {\n DisplayName = \"example\",\n Owners = \n {\n current.Apply(current =\u003e current.ObjectId),\n },\n });\n var exampleServicePrincipal = new AzureAD.ServicePrincipal(\"exampleServicePrincipal\", new AzureAD.ServicePrincipalArgs\n {\n ApplicationId = exampleApplication.ApplicationId,\n AppRoleAssignmentRequired = false,\n Owners = \n {\n current.Apply(current =\u003e current.ObjectId),\n },\n FeatureTags = \n {\n new AzureAD.Inputs.ServicePrincipalFeatureTagArgs\n {\n Enterprise = true,\n Gallery = true,\n },\n },\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := azuread.GetClientConfig(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tOwners: pulumi.StringArray{\n\t\t\t\tpulumi.String(current.ObjectId),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewServicePrincipal(ctx, \"exampleServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: exampleApplication.ApplicationId,\n\t\t\tAppRoleAssignmentRequired: pulumi.Bool(false),\n\t\t\tOwners: pulumi.StringArray{\n\t\t\t\tpulumi.String(current.ObjectId),\n\t\t\t},\n\t\t\tFeatureTags: ServicePrincipalFeatureTagArray{\n\t\t\t\t\u0026ServicePrincipalFeatureTagArgs{\n\t\t\t\t\tEnterprise: pulumi.Bool(true),\n\t\t\t\t\tGallery: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 current = Output.of(AzureadFunctions.getClientConfig());\n\n var exampleApplication = new Application(\"exampleApplication\", ApplicationArgs.builder() \n .displayName(\"example\")\n .owners(current.apply(getClientConfigResult -\u003e getClientConfigResult.getObjectId()))\n .build());\n\n var exampleServicePrincipal = new ServicePrincipal(\"exampleServicePrincipal\", ServicePrincipalArgs.builder() \n .applicationId(exampleApplication.getApplicationId())\n .appRoleAssignmentRequired(false)\n .owners(current.apply(getClientConfigResult -\u003e getClientConfigResult.getObjectId()))\n .featureTags(ServicePrincipalFeatureTag.builder()\n .enterprise(true)\n .gallery(true)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleApplication:\n type: azuread:Application\n properties:\n displayName: example\n owners:\n - ${current.objectId}\n exampleServicePrincipal:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${exampleApplication.applicationId}\n appRoleAssignmentRequired: false\n owners:\n - ${current.objectId}\n featureTags:\n - enterprise: true\n gallery: true\nvariables:\n current:\n Fn::Invoke:\n Function: azuread:getClientConfig\n Arguments: {}\n```\n\n*Manage a service principal for a first-party Microsoft application*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst wellKnown = azuread.getApplicationPublishedAppIds({});\nconst msgraph = new azuread.ServicePrincipal(\"msgraph\", {\n applicationId: wellKnown.then(wellKnown =\u003e wellKnown.result?.MicrosoftGraph),\n useExisting: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nwell_known = azuread.get_application_published_app_ids()\nmsgraph = azuread.ServicePrincipal(\"msgraph\",\n application_id=well_known.result[\"MicrosoftGraph\"],\n use_existing=True)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var wellKnown = Output.Create(AzureAD.GetApplicationPublishedAppIds.InvokeAsync());\n var msgraph = new AzureAD.ServicePrincipal(\"msgraph\", new AzureAD.ServicePrincipalArgs\n {\n ApplicationId = wellKnown.Apply(wellKnown =\u003e wellKnown.Result?.MicrosoftGraph),\n UseExisting = true,\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\twellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewServicePrincipal(ctx, \"msgraph\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: pulumi.String(wellKnown.Result.MicrosoftGraph),\n\t\t\tUseExisting: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 wellKnown = Output.of(AzureadFunctions.getApplicationPublishedAppIds());\n\n var msgraph = new ServicePrincipal(\"msgraph\", ServicePrincipalArgs.builder() \n .applicationId(wellKnown.apply(getApplicationPublishedAppIdsResult -\u003e getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph()))\n .useExisting(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n msgraph:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${wellKnown.result.MicrosoftGraph}\n useExisting: true\nvariables:\n wellKnown:\n Fn::Invoke:\n Function: azuread:getApplicationPublishedAppIds\n Arguments: {}\n```\n\n*Create a service principal for an application created from a gallery template*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleApplicationTemplate = azuread.getApplicationTemplate({\n displayName: \"Marketo\",\n});\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {\n displayName: \"example\",\n templateId: exampleApplicationTemplate.then(exampleApplicationTemplate =\u003e exampleApplicationTemplate.templateId),\n});\nconst exampleServicePrincipal = new azuread.ServicePrincipal(\"exampleServicePrincipal\", {\n applicationId: exampleApplication.applicationId,\n useExisting: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_application_template = azuread.get_application_template(display_name=\"Marketo\")\nexample_application = azuread.Application(\"exampleApplication\",\n display_name=\"example\",\n template_id=example_application_template.template_id)\nexample_service_principal = azuread.ServicePrincipal(\"exampleServicePrincipal\",\n application_id=example_application.application_id,\n use_existing=True)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleApplicationTemplate = Output.Create(AzureAD.GetApplicationTemplate.InvokeAsync(new AzureAD.GetApplicationTemplateArgs\n {\n DisplayName = \"Marketo\",\n }));\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new AzureAD.ApplicationArgs\n {\n DisplayName = \"example\",\n TemplateId = exampleApplicationTemplate.Apply(exampleApplicationTemplate =\u003e exampleApplicationTemplate.TemplateId),\n });\n var exampleServicePrincipal = new AzureAD.ServicePrincipal(\"exampleServicePrincipal\", new AzureAD.ServicePrincipalArgs\n {\n ApplicationId = exampleApplication.ApplicationId,\n UseExisting = true,\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleApplicationTemplate, err := azuread.GetApplicationTemplate(ctx, \u0026GetApplicationTemplateArgs{\n\t\t\tDisplayName: pulumi.StringRef(\"Marketo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tTemplateId: pulumi.String(exampleApplicationTemplate.TemplateId),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewServicePrincipal(ctx, \"exampleServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: exampleApplication.ApplicationId,\n\t\t\tUseExisting: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 exampleApplicationTemplate = Output.of(AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder()\n .displayName(\"Marketo\")\n .build()));\n\n var exampleApplication = new Application(\"exampleApplication\", ApplicationArgs.builder() \n .displayName(\"example\")\n .templateId(exampleApplicationTemplate.apply(getApplicationTemplateResult -\u003e getApplicationTemplateResult.getTemplateId()))\n .build());\n\n var exampleServicePrincipal = new ServicePrincipal(\"exampleServicePrincipal\", ServicePrincipalArgs.builder() \n .applicationId(exampleApplication.getApplicationId())\n .useExisting(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleApplication:\n type: azuread:Application\n properties:\n displayName: example\n templateId: ${exampleApplicationTemplate.templateId}\n exampleServicePrincipal:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${exampleApplication.applicationId}\n useExisting: true\nvariables:\n exampleApplicationTemplate:\n Fn::Invoke:\n Function: azuread:getApplicationTemplate\n Arguments:\n displayName: Marketo\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nService principals can be imported using their object ID, e.g.\n\n```sh\n $ pulumi import azuread:index/servicePrincipal:ServicePrincipal test 00000000-0000-0000-0000-000000000000\n```\n\n ", + "description": "Manages a service principal associated with an application within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires one of the following application roles: `Application.ReadWrite.All` or `Directory.ReadWrite.All`\n\nIt is not currently possible to manage service principals whilst having only the `Application.ReadWrite.OwnedBy` role granted.\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Application Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*Create a service principal for an application*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst current = azuread.getClientConfig({});\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {\n displayName: \"example\",\n owners: [current.then(current =\u003e current.objectId)],\n});\nconst exampleServicePrincipal = new azuread.ServicePrincipal(\"exampleServicePrincipal\", {\n applicationId: exampleApplication.applicationId,\n appRoleAssignmentRequired: false,\n owners: [current.then(current =\u003e current.objectId)],\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\ncurrent = azuread.get_client_config()\nexample_application = azuread.Application(\"exampleApplication\",\n display_name=\"example\",\n owners=[current.object_id])\nexample_service_principal = azuread.ServicePrincipal(\"exampleServicePrincipal\",\n application_id=example_application.application_id,\n app_role_assignment_required=False,\n owners=[current.object_id])\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var current = AzureAD.GetClientConfig.Invoke();\n\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new()\n {\n DisplayName = \"example\",\n Owners = new[]\n {\n current.Apply(getClientConfigResult =\u003e getClientConfigResult.ObjectId),\n },\n });\n\n var exampleServicePrincipal = new AzureAD.ServicePrincipal(\"exampleServicePrincipal\", new()\n {\n ApplicationId = exampleApplication.ApplicationId,\n AppRoleAssignmentRequired = false,\n Owners = new[]\n {\n current.Apply(getClientConfigResult =\u003e getClientConfigResult.ObjectId),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := azuread.GetClientConfig(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tOwners: pulumi.StringArray{\n\t\t\t\tpulumi.String(current.ObjectId),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewServicePrincipal(ctx, \"exampleServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: exampleApplication.ApplicationId,\n\t\t\tAppRoleAssignmentRequired: pulumi.Bool(false),\n\t\t\tOwners: pulumi.StringArray{\n\t\t\t\tpulumi.String(current.ObjectId),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.Application;\nimport com.pulumi.azuread.ApplicationArgs;\nimport com.pulumi.azuread.ServicePrincipal;\nimport com.pulumi.azuread.ServicePrincipalArgs;\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 current = AzureadFunctions.getClientConfig();\n\n var exampleApplication = new Application(\"exampleApplication\", ApplicationArgs.builder() \n .displayName(\"example\")\n .owners(current.applyValue(getClientConfigResult -\u003e getClientConfigResult.objectId()))\n .build());\n\n var exampleServicePrincipal = new ServicePrincipal(\"exampleServicePrincipal\", ServicePrincipalArgs.builder() \n .applicationId(exampleApplication.applicationId())\n .appRoleAssignmentRequired(false)\n .owners(current.applyValue(getClientConfigResult -\u003e getClientConfigResult.objectId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleApplication:\n type: azuread:Application\n properties:\n displayName: example\n owners:\n - ${current.objectId}\n exampleServicePrincipal:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${exampleApplication.applicationId}\n appRoleAssignmentRequired: false\n owners:\n - ${current.objectId}\nvariables:\n current:\n Fn::Invoke:\n Function: azuread:getClientConfig\n Arguments: {}\n```\n\n*Create a service principal for an enterprise application*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst current = azuread.getClientConfig({});\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {\n displayName: \"example\",\n owners: [current.then(current =\u003e current.objectId)],\n});\nconst exampleServicePrincipal = new azuread.ServicePrincipal(\"exampleServicePrincipal\", {\n applicationId: exampleApplication.applicationId,\n appRoleAssignmentRequired: false,\n owners: [current.then(current =\u003e current.objectId)],\n featureTags: [{\n enterprise: true,\n gallery: true,\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\ncurrent = azuread.get_client_config()\nexample_application = azuread.Application(\"exampleApplication\",\n display_name=\"example\",\n owners=[current.object_id])\nexample_service_principal = azuread.ServicePrincipal(\"exampleServicePrincipal\",\n application_id=example_application.application_id,\n app_role_assignment_required=False,\n owners=[current.object_id],\n feature_tags=[azuread.ServicePrincipalFeatureTagArgs(\n enterprise=True,\n gallery=True,\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var current = AzureAD.GetClientConfig.Invoke();\n\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new()\n {\n DisplayName = \"example\",\n Owners = new[]\n {\n current.Apply(getClientConfigResult =\u003e getClientConfigResult.ObjectId),\n },\n });\n\n var exampleServicePrincipal = new AzureAD.ServicePrincipal(\"exampleServicePrincipal\", new()\n {\n ApplicationId = exampleApplication.ApplicationId,\n AppRoleAssignmentRequired = false,\n Owners = new[]\n {\n current.Apply(getClientConfigResult =\u003e getClientConfigResult.ObjectId),\n },\n FeatureTags = new[]\n {\n new AzureAD.Inputs.ServicePrincipalFeatureTagArgs\n {\n Enterprise = true,\n Gallery = true,\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := azuread.GetClientConfig(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tOwners: pulumi.StringArray{\n\t\t\t\tpulumi.String(current.ObjectId),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewServicePrincipal(ctx, \"exampleServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: exampleApplication.ApplicationId,\n\t\t\tAppRoleAssignmentRequired: pulumi.Bool(false),\n\t\t\tOwners: pulumi.StringArray{\n\t\t\t\tpulumi.String(current.ObjectId),\n\t\t\t},\n\t\t\tFeatureTags: ServicePrincipalFeatureTagArray{\n\t\t\t\t\u0026ServicePrincipalFeatureTagArgs{\n\t\t\t\t\tEnterprise: pulumi.Bool(true),\n\t\t\t\t\tGallery: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.Application;\nimport com.pulumi.azuread.ApplicationArgs;\nimport com.pulumi.azuread.ServicePrincipal;\nimport com.pulumi.azuread.ServicePrincipalArgs;\nimport com.pulumi.azuread.inputs.ServicePrincipalFeatureTagArgs;\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 current = AzureadFunctions.getClientConfig();\n\n var exampleApplication = new Application(\"exampleApplication\", ApplicationArgs.builder() \n .displayName(\"example\")\n .owners(current.applyValue(getClientConfigResult -\u003e getClientConfigResult.objectId()))\n .build());\n\n var exampleServicePrincipal = new ServicePrincipal(\"exampleServicePrincipal\", ServicePrincipalArgs.builder() \n .applicationId(exampleApplication.applicationId())\n .appRoleAssignmentRequired(false)\n .owners(current.applyValue(getClientConfigResult -\u003e getClientConfigResult.objectId()))\n .featureTags(ServicePrincipalFeatureTagArgs.builder()\n .enterprise(true)\n .gallery(true)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleApplication:\n type: azuread:Application\n properties:\n displayName: example\n owners:\n - ${current.objectId}\n exampleServicePrincipal:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${exampleApplication.applicationId}\n appRoleAssignmentRequired: false\n owners:\n - ${current.objectId}\n featureTags:\n - enterprise: true\n gallery: true\nvariables:\n current:\n Fn::Invoke:\n Function: azuread:getClientConfig\n Arguments: {}\n```\n\n*Manage a service principal for a first-party Microsoft application*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst wellKnown = azuread.getApplicationPublishedAppIds({});\nconst msgraph = new azuread.ServicePrincipal(\"msgraph\", {\n applicationId: wellKnown.then(wellKnown =\u003e wellKnown.result?.MicrosoftGraph),\n useExisting: true,\n});\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var wellKnown = AzureAD.GetApplicationPublishedAppIds.Invoke();\n\n var msgraph = new AzureAD.ServicePrincipal(\"msgraph\", new()\n {\n ApplicationId = wellKnown.Apply(getApplicationPublishedAppIdsResult =\u003e getApplicationPublishedAppIdsResult.Result?.MicrosoftGraph),\n UseExisting = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\twellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewServicePrincipal(ctx, \"msgraph\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: pulumi.String(wellKnown.Result.MicrosoftGraph),\n\t\t\tUseExisting: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.ServicePrincipal;\nimport com.pulumi.azuread.ServicePrincipalArgs;\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 wellKnown = AzureadFunctions.getApplicationPublishedAppIds();\n\n var msgraph = new ServicePrincipal(\"msgraph\", ServicePrincipalArgs.builder() \n .applicationId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -\u003e getApplicationPublishedAppIdsResult.result().MicrosoftGraph()))\n .useExisting(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n msgraph:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${wellKnown.result.MicrosoftGraph}\n useExisting: true\nvariables:\n wellKnown:\n Fn::Invoke:\n Function: azuread:getApplicationPublishedAppIds\n Arguments: {}\n```\n\n*Create a service principal for an application created from a gallery template*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleApplicationTemplate = azuread.getApplicationTemplate({\n displayName: \"Marketo\",\n});\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {\n displayName: \"example\",\n templateId: exampleApplicationTemplate.then(exampleApplicationTemplate =\u003e exampleApplicationTemplate.templateId),\n});\nconst exampleServicePrincipal = new azuread.ServicePrincipal(\"exampleServicePrincipal\", {\n applicationId: exampleApplication.applicationId,\n useExisting: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_application_template = azuread.get_application_template(display_name=\"Marketo\")\nexample_application = azuread.Application(\"exampleApplication\",\n display_name=\"example\",\n template_id=example_application_template.template_id)\nexample_service_principal = azuread.ServicePrincipal(\"exampleServicePrincipal\",\n application_id=example_application.application_id,\n use_existing=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleApplicationTemplate = AzureAD.GetApplicationTemplate.Invoke(new()\n {\n DisplayName = \"Marketo\",\n });\n\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new()\n {\n DisplayName = \"example\",\n TemplateId = exampleApplicationTemplate.Apply(getApplicationTemplateResult =\u003e getApplicationTemplateResult.TemplateId),\n });\n\n var exampleServicePrincipal = new AzureAD.ServicePrincipal(\"exampleServicePrincipal\", new()\n {\n ApplicationId = exampleApplication.ApplicationId,\n UseExisting = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleApplicationTemplate, err := azuread.GetApplicationTemplate(ctx, \u0026GetApplicationTemplateArgs{\n\t\t\tDisplayName: pulumi.StringRef(\"Marketo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tTemplateId: pulumi.String(exampleApplicationTemplate.TemplateId),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewServicePrincipal(ctx, \"exampleServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: exampleApplication.ApplicationId,\n\t\t\tUseExisting: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetApplicationTemplateArgs;\nimport com.pulumi.azuread.Application;\nimport com.pulumi.azuread.ApplicationArgs;\nimport com.pulumi.azuread.ServicePrincipal;\nimport com.pulumi.azuread.ServicePrincipalArgs;\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 exampleApplicationTemplate = AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder()\n .displayName(\"Marketo\")\n .build());\n\n var exampleApplication = new Application(\"exampleApplication\", ApplicationArgs.builder() \n .displayName(\"example\")\n .templateId(exampleApplicationTemplate.applyValue(getApplicationTemplateResult -\u003e getApplicationTemplateResult.templateId()))\n .build());\n\n var exampleServicePrincipal = new ServicePrincipal(\"exampleServicePrincipal\", ServicePrincipalArgs.builder() \n .applicationId(exampleApplication.applicationId())\n .useExisting(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleApplication:\n type: azuread:Application\n properties:\n displayName: example\n templateId: ${exampleApplicationTemplate.templateId}\n exampleServicePrincipal:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${exampleApplication.applicationId}\n useExisting: true\nvariables:\n exampleApplicationTemplate:\n Fn::Invoke:\n Function: azuread:getApplicationTemplate\n Arguments:\n displayName: Marketo\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nService principals can be imported using their object ID, e.g.\n\n```sh\n $ pulumi import azuread:index/servicePrincipal:ServicePrincipal test 00000000-0000-0000-0000-000000000000\n```\n\n ", "properties": { "accountEnabled": { "type": "boolean", @@ -5294,7 +5430,8 @@ }, "applicationId": { "type": "string", - "description": "The application ID (client ID) of the application for which to create a service principal.\n" + "description": "The application ID (client ID) of the application for which to create a service principal.\n", + "willReplaceOnChanges": true }, "description": { "type": "string", @@ -5394,7 +5531,8 @@ }, "applicationId": { "type": "string", - "description": "The application ID (client ID) of the application for which to create a service principal.\n" + "description": "The application ID (client ID) of the application for which to create a service principal.\n", + "willReplaceOnChanges": true }, "applicationTenantId": { "type": "string", @@ -5566,35 +5704,43 @@ "inputProperties": { "encoding": { "type": "string", - "description": "Specifies the encoding used for the supplied certificate data. Must be one of `pem`, `base64` or `hex`. Defaults to `pem`.\n" + "description": "Specifies the encoding used for the supplied certificate data. Must be one of `pem`, `base64` or `hex`. Defaults to `pem`.\n", + "willReplaceOnChanges": true }, "endDate": { "type": "string", - "description": "The end date until which the certificate is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.\n" + "description": "The end date until which the certificate is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "endDateRelative": { "type": "string", - "description": "A relative duration for which the certificate is valid until, for example `240h` (10 days) or `2400h30m`. Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\". Changing this field forces a new resource to be created.\n" + "description": "A relative duration for which the certificate is valid until, for example `240h` (10 days) or `2400h30m`. Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\". Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "keyId": { "type": "string", - "description": "A UUID used to uniquely identify this certificate. If not specified a UUID will be automatically generated. Changing this field forces a new resource to be created.\n" + "description": "A UUID used to uniquely identify this certificate. If not specified a UUID will be automatically generated. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "servicePrincipalId": { "type": "string", - "description": "The object ID of the service principal for which this certificate should be created. Changing this field forces a new resource to be created.\n" + "description": "The object ID of the service principal for which this certificate should be created. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "startDate": { "type": "string", - "description": "The start date from which the certificate is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.\n" + "description": "The start date from which the certificate is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "type": { "type": "string", - "description": "The type of key/certificate. Must be one of `AsymmetricX509Cert` or `Symmetric`. Changing this fields forces a new resource to be created.\n" + "description": "The type of key/certificate. Must be one of `AsymmetricX509Cert` or `Symmetric`. Changing this fields forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "value": { "type": "string", - "description": "The certificate data, which can be PEM encoded, base64 encoded DER or hexadecimal encoded DER. See also the `encoding` argument.\n" + "description": "The certificate data, which can be PEM encoded, base64 encoded DER or hexadecimal encoded DER. See also the `encoding` argument.\n", + "willReplaceOnChanges": true } }, "requiredInputs": [ @@ -5606,42 +5752,50 @@ "properties": { "encoding": { "type": "string", - "description": "Specifies the encoding used for the supplied certificate data. Must be one of `pem`, `base64` or `hex`. Defaults to `pem`.\n" + "description": "Specifies the encoding used for the supplied certificate data. Must be one of `pem`, `base64` or `hex`. Defaults to `pem`.\n", + "willReplaceOnChanges": true }, "endDate": { "type": "string", - "description": "The end date until which the certificate is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.\n" + "description": "The end date until which the certificate is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "endDateRelative": { "type": "string", - "description": "A relative duration for which the certificate is valid until, for example `240h` (10 days) or `2400h30m`. Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\". Changing this field forces a new resource to be created.\n" + "description": "A relative duration for which the certificate is valid until, for example `240h` (10 days) or `2400h30m`. Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\". Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "keyId": { "type": "string", - "description": "A UUID used to uniquely identify this certificate. If not specified a UUID will be automatically generated. Changing this field forces a new resource to be created.\n" + "description": "A UUID used to uniquely identify this certificate. If not specified a UUID will be automatically generated. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "servicePrincipalId": { "type": "string", - "description": "The object ID of the service principal for which this certificate should be created. Changing this field forces a new resource to be created.\n" + "description": "The object ID of the service principal for which this certificate should be created. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "startDate": { "type": "string", - "description": "The start date from which the certificate is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.\n" + "description": "The start date from which the certificate is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "type": { "type": "string", - "description": "The type of key/certificate. Must be one of `AsymmetricX509Cert` or `Symmetric`. Changing this fields forces a new resource to be created.\n" + "description": "The type of key/certificate. Must be one of `AsymmetricX509Cert` or `Symmetric`. Changing this fields forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "value": { "type": "string", - "description": "The certificate data, which can be PEM encoded, base64 encoded DER or hexadecimal encoded DER. See also the `encoding` argument.\n" + "description": "The certificate data, which can be PEM encoded, base64 encoded DER or hexadecimal encoded DER. See also the `encoding` argument.\n", + "willReplaceOnChanges": true } }, "type": "object" } }, "azuread:index/servicePrincipalClaimsMappingPolicyAssignment:ServicePrincipalClaimsMappingPolicyAssignment": { - "description": "Manages a Claims Mapping Policy Assignment within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires the following application roles: `Policy.ReadWrite.ApplicationConfiguration` \n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Application Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst app = new azuread.ServicePrincipalClaimsMappingPolicyAssignment(\"app\", {\n claimsMappingPolicyId: azuread_claims_mapping_policy.my_policy.id,\n servicePrincipalId: azuread_service_principal.my_principal.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\napp = azuread.ServicePrincipalClaimsMappingPolicyAssignment(\"app\",\n claims_mapping_policy_id=azuread_claims_mapping_policy[\"my_policy\"][\"id\"],\n service_principal_id=azuread_service_principal[\"my_principal\"][\"id\"])\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var app = new AzureAD.ServicePrincipalClaimsMappingPolicyAssignment(\"app\", new AzureAD.ServicePrincipalClaimsMappingPolicyAssignmentArgs\n {\n ClaimsMappingPolicyId = azuread_claims_mapping_policy.My_policy.Id,\n ServicePrincipalId = azuread_service_principal.My_principal.Id,\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.NewServicePrincipalClaimsMappingPolicyAssignment(ctx, \"app\", \u0026azuread.ServicePrincipalClaimsMappingPolicyAssignmentArgs{\n\t\t\tClaimsMappingPolicyId: pulumi.Any(azuread_claims_mapping_policy.My_policy.Id),\n\t\t\tServicePrincipalId: pulumi.Any(azuread_service_principal.My_principal.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var app = new ServicePrincipalClaimsMappingPolicyAssignment(\"app\", ServicePrincipalClaimsMappingPolicyAssignmentArgs.builder() \n .claimsMappingPolicyId(azuread_claims_mapping_policy.getMy_policy().getId())\n .servicePrincipalId(azuread_service_principal.getMy_principal().getId())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n app:\n type: azuread:ServicePrincipalClaimsMappingPolicyAssignment\n properties:\n claimsMappingPolicyId: ${azuread_claims_mapping_policy.my_policy.id}\n servicePrincipalId: ${azuread_service_principal.my_principal.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nClaims Mapping Policy can be imported using the `id`, in the form `service-principal-uuid/claimsMappingPolicy/claims-mapping-policy-uuid`, e.g\n\n```sh\n $ pulumi import azuread:index/servicePrincipalClaimsMappingPolicyAssignment:ServicePrincipalClaimsMappingPolicyAssignment app 00000000-0000-0000-0000-000000000000/claimsMappingPolicy/11111111-0000-0000-0000-000000000000\n```\n\n ", + "description": "Manages a Claims Mapping Policy Assignment within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires the following application roles: `Policy.ReadWrite.ApplicationConfiguration` \n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `Application Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst app = new azuread.ServicePrincipalClaimsMappingPolicyAssignment(\"app\", {\n claimsMappingPolicyId: azuread_claims_mapping_policy.my_policy.id,\n servicePrincipalId: azuread_service_principal.my_principal.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\napp = azuread.ServicePrincipalClaimsMappingPolicyAssignment(\"app\",\n claims_mapping_policy_id=azuread_claims_mapping_policy[\"my_policy\"][\"id\"],\n service_principal_id=azuread_service_principal[\"my_principal\"][\"id\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var app = new AzureAD.ServicePrincipalClaimsMappingPolicyAssignment(\"app\", new()\n {\n ClaimsMappingPolicyId = azuread_claims_mapping_policy.My_policy.Id,\n ServicePrincipalId = azuread_service_principal.My_principal.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.NewServicePrincipalClaimsMappingPolicyAssignment(ctx, \"app\", \u0026azuread.ServicePrincipalClaimsMappingPolicyAssignmentArgs{\n\t\t\tClaimsMappingPolicyId: pulumi.Any(azuread_claims_mapping_policy.My_policy.Id),\n\t\t\tServicePrincipalId: pulumi.Any(azuread_service_principal.My_principal.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.ServicePrincipalClaimsMappingPolicyAssignment;\nimport com.pulumi.azuread.ServicePrincipalClaimsMappingPolicyAssignmentArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var app = new ServicePrincipalClaimsMappingPolicyAssignment(\"app\", ServicePrincipalClaimsMappingPolicyAssignmentArgs.builder() \n .claimsMappingPolicyId(azuread_claims_mapping_policy.my_policy().id())\n .servicePrincipalId(azuread_service_principal.my_principal().id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n app:\n type: azuread:ServicePrincipalClaimsMappingPolicyAssignment\n properties:\n claimsMappingPolicyId: ${azuread_claims_mapping_policy.my_policy.id}\n servicePrincipalId: ${azuread_service_principal.my_principal.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nClaims Mapping Policy can be imported using the `id`, in the form `service-principal-uuid/claimsMappingPolicy/claims-mapping-policy-uuid`, e.g\n\n```sh\n $ pulumi import azuread:index/servicePrincipalClaimsMappingPolicyAssignment:ServicePrincipalClaimsMappingPolicyAssignment app 00000000-0000-0000-0000-000000000000/claimsMappingPolicy/11111111-0000-0000-0000-000000000000\n```\n\n ", "properties": { "claimsMappingPolicyId": { "type": "string", @@ -5659,11 +5813,13 @@ "inputProperties": { "claimsMappingPolicyId": { "type": "string", - "description": "The ID of the claims mapping policy to assign.\n" + "description": "The ID of the claims mapping policy to assign.\n", + "willReplaceOnChanges": true }, "servicePrincipalId": { "type": "string", - "description": "The object ID of the service principal for the policy assignment.\n" + "description": "The object ID of the service principal for the policy assignment.\n", + "willReplaceOnChanges": true } }, "requiredInputs": [ @@ -5675,18 +5831,20 @@ "properties": { "claimsMappingPolicyId": { "type": "string", - "description": "The ID of the claims mapping policy to assign.\n" + "description": "The ID of the claims mapping policy to assign.\n", + "willReplaceOnChanges": true }, "servicePrincipalId": { "type": "string", - "description": "The object ID of the service principal for the policy assignment.\n" + "description": "The object ID of the service principal for the policy assignment.\n", + "willReplaceOnChanges": true } }, "type": "object" } }, "azuread:index/servicePrincipalDelegatedPermissionGrant:ServicePrincipalDelegatedPermissionGrant": { - "description": "Manages a delegated permission grant for a service principal, on behalf of a single user, or all users.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires the following application role: `Directory.ReadWrite.All`\n\nWhen authenticated with a user principal, this resource requires one the following directory role: `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*Delegated permission grant for all users*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst wellKnown = azuread.getApplicationPublishedAppIds({});\nconst msgraph = new azuread.ServicePrincipal(\"msgraph\", {\n applicationId: wellKnown.then(wellKnown =\u003e wellKnown.result?.MicrosoftGraph),\n useExisting: true,\n});\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {\n displayName: \"example\",\n requiredResourceAccesses: [{\n resourceAppId: wellKnown.then(wellKnown =\u003e wellKnown.result?.MicrosoftGraph),\n resourceAccesses: [\n {\n id: msgraph.oauth2PermissionScopeIds.openid,\n type: \"Scope\",\n },\n {\n id: msgraph.oauth2PermissionScopeIds[\"User.Read\"],\n type: \"Scope\",\n },\n ],\n }],\n});\nconst exampleServicePrincipal = new azuread.ServicePrincipal(\"exampleServicePrincipal\", {applicationId: exampleApplication.applicationId});\nconst exampleServicePrincipalDelegatedPermissionGrant = new azuread.ServicePrincipalDelegatedPermissionGrant(\"exampleServicePrincipalDelegatedPermissionGrant\", {\n servicePrincipalObjectId: exampleServicePrincipal.objectId,\n resourceServicePrincipalObjectId: msgraph.objectId,\n claimValues: [\n \"openid\",\n \"User.Read.All\",\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nwell_known = azuread.get_application_published_app_ids()\nmsgraph = azuread.ServicePrincipal(\"msgraph\",\n application_id=well_known.result[\"MicrosoftGraph\"],\n use_existing=True)\nexample_application = azuread.Application(\"exampleApplication\",\n display_name=\"example\",\n required_resource_accesses=[azuread.ApplicationRequiredResourceAccessArgs(\n resource_app_id=well_known.result[\"MicrosoftGraph\"],\n resource_accesses=[\n azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=msgraph.oauth2_permission_scope_ids[\"openid\"],\n type=\"Scope\",\n ),\n azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=msgraph.oauth2_permission_scope_ids[\"User.Read\"],\n type=\"Scope\",\n ),\n ],\n )])\nexample_service_principal = azuread.ServicePrincipal(\"exampleServicePrincipal\", application_id=example_application.application_id)\nexample_service_principal_delegated_permission_grant = azuread.ServicePrincipalDelegatedPermissionGrant(\"exampleServicePrincipalDelegatedPermissionGrant\",\n service_principal_object_id=example_service_principal.object_id,\n resource_service_principal_object_id=msgraph.object_id,\n claim_values=[\n \"openid\",\n \"User.Read.All\",\n ])\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var wellKnown = Output.Create(AzureAD.GetApplicationPublishedAppIds.InvokeAsync());\n var msgraph = new AzureAD.ServicePrincipal(\"msgraph\", new AzureAD.ServicePrincipalArgs\n {\n ApplicationId = wellKnown.Apply(wellKnown =\u003e wellKnown.Result?.MicrosoftGraph),\n UseExisting = true,\n });\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new AzureAD.ApplicationArgs\n {\n DisplayName = \"example\",\n RequiredResourceAccesses = \n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs\n {\n ResourceAppId = wellKnown.Apply(wellKnown =\u003e wellKnown.Result?.MicrosoftGraph),\n ResourceAccesses = \n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds =\u003e oauth2PermissionScopeIds.Openid),\n Type = \"Scope\",\n },\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds =\u003e oauth2PermissionScopeIds.User_Read),\n Type = \"Scope\",\n },\n },\n },\n },\n });\n var exampleServicePrincipal = new AzureAD.ServicePrincipal(\"exampleServicePrincipal\", new AzureAD.ServicePrincipalArgs\n {\n ApplicationId = exampleApplication.ApplicationId,\n });\n var exampleServicePrincipalDelegatedPermissionGrant = new AzureAD.ServicePrincipalDelegatedPermissionGrant(\"exampleServicePrincipalDelegatedPermissionGrant\", new AzureAD.ServicePrincipalDelegatedPermissionGrantArgs\n {\n ServicePrincipalObjectId = exampleServicePrincipal.ObjectId,\n ResourceServicePrincipalObjectId = msgraph.ObjectId,\n ClaimValues = \n {\n \"openid\",\n \"User.Read.All\",\n },\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\twellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tmsgraph, err := azuread.NewServicePrincipal(ctx, \"msgraph\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: pulumi.String(wellKnown.Result.MicrosoftGraph),\n\t\t\tUseExisting: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tRequiredResourceAccesses: ApplicationRequiredResourceAccessArray{\n\t\t\t\t\u0026ApplicationRequiredResourceAccessArgs{\n\t\t\t\t\tResourceAppId: pulumi.String(wellKnown.Result.MicrosoftGraph),\n\t\t\t\t\tResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) {\n\t\t\t\t\t\t\t\treturn oauth2PermissionScopeIds.Openid, nil\n\t\t\t\t\t\t\t}).(pulumi.StringOutput),\n\t\t\t\t\t\t\tType: pulumi.String(\"Scope\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) {\n\t\t\t\t\t\t\t\treturn oauth2PermissionScopeIds.User.Read, nil\n\t\t\t\t\t\t\t}).(pulumi.StringOutput),\n\t\t\t\t\t\t\tType: pulumi.String(\"Scope\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServicePrincipal, err := azuread.NewServicePrincipal(ctx, \"exampleServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: exampleApplication.ApplicationId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewServicePrincipalDelegatedPermissionGrant(ctx, \"exampleServicePrincipalDelegatedPermissionGrant\", \u0026azuread.ServicePrincipalDelegatedPermissionGrantArgs{\n\t\t\tServicePrincipalObjectId: exampleServicePrincipal.ObjectId,\n\t\t\tResourceServicePrincipalObjectId: msgraph.ObjectId,\n\t\t\tClaimValues: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"openid\"),\n\t\t\t\tpulumi.String(\"User.Read.All\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 wellKnown = Output.of(AzureadFunctions.getApplicationPublishedAppIds());\n\n var msgraph = new ServicePrincipal(\"msgraph\", ServicePrincipalArgs.builder() \n .applicationId(wellKnown.apply(getApplicationPublishedAppIdsResult -\u003e getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph()))\n .useExisting(true)\n .build());\n\n var exampleApplication = new Application(\"exampleApplication\", ApplicationArgs.builder() \n .displayName(\"example\")\n .requiredResourceAccesses(ApplicationRequiredResourceAccess.builder()\n .resourceAppId(wellKnown.apply(getApplicationPublishedAppIdsResult -\u003e getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph()))\n .resourceAccesses( \n ApplicationRequiredResourceAccessResourceAccess.builder()\n .id(msgraph.getOauth2PermissionScopeIds().apply(oauth2PermissionScopeIds -\u003e oauth2PermissionScopeIds.getOpenid()))\n .type(\"Scope\")\n .build(),\n ApplicationRequiredResourceAccessResourceAccess.builder()\n .id(msgraph.getOauth2PermissionScopeIds().apply(oauth2PermissionScopeIds -\u003e oauth2PermissionScopeIds.getUser.Read()))\n .type(\"Scope\")\n .build())\n .build())\n .build());\n\n var exampleServicePrincipal = new ServicePrincipal(\"exampleServicePrincipal\", ServicePrincipalArgs.builder() \n .applicationId(exampleApplication.getApplicationId())\n .build());\n\n var exampleServicePrincipalDelegatedPermissionGrant = new ServicePrincipalDelegatedPermissionGrant(\"exampleServicePrincipalDelegatedPermissionGrant\", ServicePrincipalDelegatedPermissionGrantArgs.builder() \n .servicePrincipalObjectId(exampleServicePrincipal.getObjectId())\n .resourceServicePrincipalObjectId(msgraph.getObjectId())\n .claimValues( \n \"openid\",\n \"User.Read.All\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n msgraph:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${wellKnown.result.MicrosoftGraph}\n useExisting: true\n exampleApplication:\n type: azuread:Application\n properties:\n displayName: example\n requiredResourceAccesses:\n - resourceAppId: ${wellKnown.result.MicrosoftGraph}\n resourceAccesses:\n - id: ${msgraph.oauth2PermissionScopeIds.openid}\n type: Scope\n - id: ${msgraph.oauth2PermissionScopeIds\"User.Read\"[%!s(MISSING)]}\n type: Scope\n exampleServicePrincipal:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${exampleApplication.applicationId}\n exampleServicePrincipalDelegatedPermissionGrant:\n type: azuread:ServicePrincipalDelegatedPermissionGrant\n properties:\n servicePrincipalObjectId: ${exampleServicePrincipal.objectId}\n resourceServicePrincipalObjectId: ${msgraph.objectId}\n claimValues:\n - openid\n - User.Read.All\nvariables:\n wellKnown:\n Fn::Invoke:\n Function: azuread:getApplicationPublishedAppIds\n Arguments: {}\n```\n\n*Delegated permission grant for a single user*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst wellKnown = azuread.getApplicationPublishedAppIds({});\nconst msgraph = new azuread.ServicePrincipal(\"msgraph\", {\n applicationId: wellKnown.then(wellKnown =\u003e wellKnown.result?.MicrosoftGraph),\n useExisting: true,\n});\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {\n displayName: \"example\",\n requiredResourceAccesses: [{\n resourceAppId: wellKnown.then(wellKnown =\u003e wellKnown.result?.MicrosoftGraph),\n resourceAccesses: [\n {\n id: msgraph.oauth2PermissionScopeIds.openid,\n type: \"Scope\",\n },\n {\n id: msgraph.oauth2PermissionScopeIds[\"User.Read\"],\n type: \"Scope\",\n },\n ],\n }],\n});\nconst exampleServicePrincipal = new azuread.ServicePrincipal(\"exampleServicePrincipal\", {applicationId: exampleApplication.applicationId});\nconst exampleUser = new azuread.User(\"exampleUser\", {\n displayName: \"J. Doe\",\n userPrincipalName: \"jdoe@hashicorp.com\",\n mailNickname: \"jdoe\",\n password: \"SecretP@sswd99!\",\n});\nconst exampleServicePrincipalDelegatedPermissionGrant = new azuread.ServicePrincipalDelegatedPermissionGrant(\"exampleServicePrincipalDelegatedPermissionGrant\", {\n servicePrincipalObjectId: exampleServicePrincipal.objectId,\n resourceServicePrincipalObjectId: msgraph.objectId,\n claimValues: [\n \"openid\",\n \"User.Read.All\",\n ],\n userObjectId: exampleUser.objectId,\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nwell_known = azuread.get_application_published_app_ids()\nmsgraph = azuread.ServicePrincipal(\"msgraph\",\n application_id=well_known.result[\"MicrosoftGraph\"],\n use_existing=True)\nexample_application = azuread.Application(\"exampleApplication\",\n display_name=\"example\",\n required_resource_accesses=[azuread.ApplicationRequiredResourceAccessArgs(\n resource_app_id=well_known.result[\"MicrosoftGraph\"],\n resource_accesses=[\n azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=msgraph.oauth2_permission_scope_ids[\"openid\"],\n type=\"Scope\",\n ),\n azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=msgraph.oauth2_permission_scope_ids[\"User.Read\"],\n type=\"Scope\",\n ),\n ],\n )])\nexample_service_principal = azuread.ServicePrincipal(\"exampleServicePrincipal\", application_id=example_application.application_id)\nexample_user = azuread.User(\"exampleUser\",\n display_name=\"J. Doe\",\n user_principal_name=\"jdoe@hashicorp.com\",\n mail_nickname=\"jdoe\",\n password=\"SecretP@sswd99!\")\nexample_service_principal_delegated_permission_grant = azuread.ServicePrincipalDelegatedPermissionGrant(\"exampleServicePrincipalDelegatedPermissionGrant\",\n service_principal_object_id=example_service_principal.object_id,\n resource_service_principal_object_id=msgraph.object_id,\n claim_values=[\n \"openid\",\n \"User.Read.All\",\n ],\n user_object_id=example_user.object_id)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var wellKnown = Output.Create(AzureAD.GetApplicationPublishedAppIds.InvokeAsync());\n var msgraph = new AzureAD.ServicePrincipal(\"msgraph\", new AzureAD.ServicePrincipalArgs\n {\n ApplicationId = wellKnown.Apply(wellKnown =\u003e wellKnown.Result?.MicrosoftGraph),\n UseExisting = true,\n });\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new AzureAD.ApplicationArgs\n {\n DisplayName = \"example\",\n RequiredResourceAccesses = \n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs\n {\n ResourceAppId = wellKnown.Apply(wellKnown =\u003e wellKnown.Result?.MicrosoftGraph),\n ResourceAccesses = \n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds =\u003e oauth2PermissionScopeIds.Openid),\n Type = \"Scope\",\n },\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds =\u003e oauth2PermissionScopeIds.User_Read),\n Type = \"Scope\",\n },\n },\n },\n },\n });\n var exampleServicePrincipal = new AzureAD.ServicePrincipal(\"exampleServicePrincipal\", new AzureAD.ServicePrincipalArgs\n {\n ApplicationId = exampleApplication.ApplicationId,\n });\n var exampleUser = new AzureAD.User(\"exampleUser\", new AzureAD.UserArgs\n {\n DisplayName = \"J. Doe\",\n UserPrincipalName = \"jdoe@hashicorp.com\",\n MailNickname = \"jdoe\",\n Password = \"SecretP@sswd99!\",\n });\n var exampleServicePrincipalDelegatedPermissionGrant = new AzureAD.ServicePrincipalDelegatedPermissionGrant(\"exampleServicePrincipalDelegatedPermissionGrant\", new AzureAD.ServicePrincipalDelegatedPermissionGrantArgs\n {\n ServicePrincipalObjectId = exampleServicePrincipal.ObjectId,\n ResourceServicePrincipalObjectId = msgraph.ObjectId,\n ClaimValues = \n {\n \"openid\",\n \"User.Read.All\",\n },\n UserObjectId = exampleUser.ObjectId,\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\twellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tmsgraph, err := azuread.NewServicePrincipal(ctx, \"msgraph\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: pulumi.String(wellKnown.Result.MicrosoftGraph),\n\t\t\tUseExisting: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tRequiredResourceAccesses: ApplicationRequiredResourceAccessArray{\n\t\t\t\t\u0026ApplicationRequiredResourceAccessArgs{\n\t\t\t\t\tResourceAppId: pulumi.String(wellKnown.Result.MicrosoftGraph),\n\t\t\t\t\tResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) {\n\t\t\t\t\t\t\t\treturn oauth2PermissionScopeIds.Openid, nil\n\t\t\t\t\t\t\t}).(pulumi.StringOutput),\n\t\t\t\t\t\t\tType: pulumi.String(\"Scope\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) {\n\t\t\t\t\t\t\t\treturn oauth2PermissionScopeIds.User.Read, nil\n\t\t\t\t\t\t\t}).(pulumi.StringOutput),\n\t\t\t\t\t\t\tType: pulumi.String(\"Scope\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServicePrincipal, err := azuread.NewServicePrincipal(ctx, \"exampleServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: exampleApplication.ApplicationId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleUser, err := azuread.NewUser(ctx, \"exampleUser\", \u0026azuread.UserArgs{\n\t\t\tDisplayName: pulumi.String(\"J. Doe\"),\n\t\t\tUserPrincipalName: pulumi.String(\"jdoe@hashicorp.com\"),\n\t\t\tMailNickname: pulumi.String(\"jdoe\"),\n\t\t\tPassword: pulumi.String(\"SecretP@sswd99!\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewServicePrincipalDelegatedPermissionGrant(ctx, \"exampleServicePrincipalDelegatedPermissionGrant\", \u0026azuread.ServicePrincipalDelegatedPermissionGrantArgs{\n\t\t\tServicePrincipalObjectId: exampleServicePrincipal.ObjectId,\n\t\t\tResourceServicePrincipalObjectId: msgraph.ObjectId,\n\t\t\tClaimValues: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"openid\"),\n\t\t\t\tpulumi.String(\"User.Read.All\"),\n\t\t\t},\n\t\t\tUserObjectId: exampleUser.ObjectId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 wellKnown = Output.of(AzureadFunctions.getApplicationPublishedAppIds());\n\n var msgraph = new ServicePrincipal(\"msgraph\", ServicePrincipalArgs.builder() \n .applicationId(wellKnown.apply(getApplicationPublishedAppIdsResult -\u003e getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph()))\n .useExisting(true)\n .build());\n\n var exampleApplication = new Application(\"exampleApplication\", ApplicationArgs.builder() \n .displayName(\"example\")\n .requiredResourceAccesses(ApplicationRequiredResourceAccess.builder()\n .resourceAppId(wellKnown.apply(getApplicationPublishedAppIdsResult -\u003e getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph()))\n .resourceAccesses( \n ApplicationRequiredResourceAccessResourceAccess.builder()\n .id(msgraph.getOauth2PermissionScopeIds().apply(oauth2PermissionScopeIds -\u003e oauth2PermissionScopeIds.getOpenid()))\n .type(\"Scope\")\n .build(),\n ApplicationRequiredResourceAccessResourceAccess.builder()\n .id(msgraph.getOauth2PermissionScopeIds().apply(oauth2PermissionScopeIds -\u003e oauth2PermissionScopeIds.getUser.Read()))\n .type(\"Scope\")\n .build())\n .build())\n .build());\n\n var exampleServicePrincipal = new ServicePrincipal(\"exampleServicePrincipal\", ServicePrincipalArgs.builder() \n .applicationId(exampleApplication.getApplicationId())\n .build());\n\n var exampleUser = new User(\"exampleUser\", UserArgs.builder() \n .displayName(\"J. Doe\")\n .userPrincipalName(\"jdoe@hashicorp.com\")\n .mailNickname(\"jdoe\")\n .password(\"SecretP@sswd99!\")\n .build());\n\n var exampleServicePrincipalDelegatedPermissionGrant = new ServicePrincipalDelegatedPermissionGrant(\"exampleServicePrincipalDelegatedPermissionGrant\", ServicePrincipalDelegatedPermissionGrantArgs.builder() \n .servicePrincipalObjectId(exampleServicePrincipal.getObjectId())\n .resourceServicePrincipalObjectId(msgraph.getObjectId())\n .claimValues( \n \"openid\",\n \"User.Read.All\")\n .userObjectId(exampleUser.getObjectId())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n msgraph:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${wellKnown.result.MicrosoftGraph}\n useExisting: true\n exampleApplication:\n type: azuread:Application\n properties:\n displayName: example\n requiredResourceAccesses:\n - resourceAppId: ${wellKnown.result.MicrosoftGraph}\n resourceAccesses:\n - id: ${msgraph.oauth2PermissionScopeIds.openid}\n type: Scope\n - id: ${msgraph.oauth2PermissionScopeIds\"User.Read\"[%!s(MISSING)]}\n type: Scope\n exampleServicePrincipal:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${exampleApplication.applicationId}\n exampleUser:\n type: azuread:User\n properties:\n displayName: J. Doe\n userPrincipalName: jdoe@hashicorp.com\n mailNickname: jdoe\n password: SecretP@sswd99!\n exampleServicePrincipalDelegatedPermissionGrant:\n type: azuread:ServicePrincipalDelegatedPermissionGrant\n properties:\n servicePrincipalObjectId: ${exampleServicePrincipal.objectId}\n resourceServicePrincipalObjectId: ${msgraph.objectId}\n claimValues:\n - openid\n - User.Read.All\n userObjectId: ${exampleUser.objectId}\nvariables:\n wellKnown:\n Fn::Invoke:\n Function: azuread:getApplicationPublishedAppIds\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nDelegated permission grants can be imported using their ID, e.g.\n\n```sh\n $ pulumi import azuread:index/servicePrincipalDelegatedPermissionGrant:ServicePrincipalDelegatedPermissionGrant example aaBBcDDeFG6h5JKLMN2PQrrssTTUUvWWxxxxxyyyzzz\n```\n\n ", + "description": "Manages a delegated permission grant for a service principal, on behalf of a single user, or all users.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires the following application role: `Directory.ReadWrite.All`\n\nWhen authenticated with a user principal, this resource requires one the following directory role: `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*Delegated permission grant for all users*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst wellKnown = azuread.getApplicationPublishedAppIds({});\nconst msgraph = new azuread.ServicePrincipal(\"msgraph\", {\n applicationId: wellKnown.then(wellKnown =\u003e wellKnown.result?.MicrosoftGraph),\n useExisting: true,\n});\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {\n displayName: \"example\",\n requiredResourceAccesses: [{\n resourceAppId: wellKnown.then(wellKnown =\u003e wellKnown.result?.MicrosoftGraph),\n resourceAccesses: [\n {\n id: msgraph.oauth2PermissionScopeIds.openid,\n type: \"Scope\",\n },\n {\n id: msgraph.oauth2PermissionScopeIds[\"User.Read\"],\n type: \"Scope\",\n },\n ],\n }],\n});\nconst exampleServicePrincipal = new azuread.ServicePrincipal(\"exampleServicePrincipal\", {applicationId: exampleApplication.applicationId});\nconst exampleServicePrincipalDelegatedPermissionGrant = new azuread.ServicePrincipalDelegatedPermissionGrant(\"exampleServicePrincipalDelegatedPermissionGrant\", {\n servicePrincipalObjectId: exampleServicePrincipal.objectId,\n resourceServicePrincipalObjectId: msgraph.objectId,\n claimValues: [\n \"openid\",\n \"User.Read.All\",\n ],\n});\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var wellKnown = AzureAD.GetApplicationPublishedAppIds.Invoke();\n\n var msgraph = new AzureAD.ServicePrincipal(\"msgraph\", new()\n {\n ApplicationId = wellKnown.Apply(getApplicationPublishedAppIdsResult =\u003e getApplicationPublishedAppIdsResult.Result?.MicrosoftGraph),\n UseExisting = true,\n });\n\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new()\n {\n DisplayName = \"example\",\n RequiredResourceAccesses = new[]\n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs\n {\n ResourceAppId = wellKnown.Apply(getApplicationPublishedAppIdsResult =\u003e getApplicationPublishedAppIdsResult.Result?.MicrosoftGraph),\n ResourceAccesses = new[]\n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds =\u003e oauth2PermissionScopeIds.Openid),\n Type = \"Scope\",\n },\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds =\u003e oauth2PermissionScopeIds.User_Read),\n Type = \"Scope\",\n },\n },\n },\n },\n });\n\n var exampleServicePrincipal = new AzureAD.ServicePrincipal(\"exampleServicePrincipal\", new()\n {\n ApplicationId = exampleApplication.ApplicationId,\n });\n\n var exampleServicePrincipalDelegatedPermissionGrant = new AzureAD.ServicePrincipalDelegatedPermissionGrant(\"exampleServicePrincipalDelegatedPermissionGrant\", new()\n {\n ServicePrincipalObjectId = exampleServicePrincipal.ObjectId,\n ResourceServicePrincipalObjectId = msgraph.ObjectId,\n ClaimValues = new[]\n {\n \"openid\",\n \"User.Read.All\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\twellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tmsgraph, err := azuread.NewServicePrincipal(ctx, \"msgraph\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: pulumi.String(wellKnown.Result.MicrosoftGraph),\n\t\t\tUseExisting: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tRequiredResourceAccesses: ApplicationRequiredResourceAccessArray{\n\t\t\t\t\u0026ApplicationRequiredResourceAccessArgs{\n\t\t\t\t\tResourceAppId: pulumi.String(wellKnown.Result.MicrosoftGraph),\n\t\t\t\t\tResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) {\n\t\t\t\t\t\t\t\treturn oauth2PermissionScopeIds.Openid, nil\n\t\t\t\t\t\t\t}).(pulumi.StringOutput),\n\t\t\t\t\t\t\tType: pulumi.String(\"Scope\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) {\n\t\t\t\t\t\t\t\treturn oauth2PermissionScopeIds.User.Read, nil\n\t\t\t\t\t\t\t}).(pulumi.StringOutput),\n\t\t\t\t\t\t\tType: pulumi.String(\"Scope\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServicePrincipal, err := azuread.NewServicePrincipal(ctx, \"exampleServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: exampleApplication.ApplicationId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewServicePrincipalDelegatedPermissionGrant(ctx, \"exampleServicePrincipalDelegatedPermissionGrant\", \u0026azuread.ServicePrincipalDelegatedPermissionGrantArgs{\n\t\t\tServicePrincipalObjectId: exampleServicePrincipal.ObjectId,\n\t\t\tResourceServicePrincipalObjectId: msgraph.ObjectId,\n\t\t\tClaimValues: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"openid\"),\n\t\t\t\tpulumi.String(\"User.Read.All\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.ServicePrincipal;\nimport com.pulumi.azuread.ServicePrincipalArgs;\nimport com.pulumi.azuread.Application;\nimport com.pulumi.azuread.ApplicationArgs;\nimport com.pulumi.azuread.inputs.ApplicationRequiredResourceAccessArgs;\nimport com.pulumi.azuread.ServicePrincipalDelegatedPermissionGrant;\nimport com.pulumi.azuread.ServicePrincipalDelegatedPermissionGrantArgs;\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 wellKnown = AzureadFunctions.getApplicationPublishedAppIds();\n\n var msgraph = new ServicePrincipal(\"msgraph\", ServicePrincipalArgs.builder() \n .applicationId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -\u003e getApplicationPublishedAppIdsResult.result().MicrosoftGraph()))\n .useExisting(true)\n .build());\n\n var exampleApplication = new Application(\"exampleApplication\", ApplicationArgs.builder() \n .displayName(\"example\")\n .requiredResourceAccesses(ApplicationRequiredResourceAccessArgs.builder()\n .resourceAppId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -\u003e getApplicationPublishedAppIdsResult.result().MicrosoftGraph()))\n .resourceAccesses( \n ApplicationRequiredResourceAccessResourceAccessArgs.builder()\n .id(msgraph.oauth2PermissionScopeIds().applyValue(oauth2PermissionScopeIds -\u003e oauth2PermissionScopeIds.openid()))\n .type(\"Scope\")\n .build(),\n ApplicationRequiredResourceAccessResourceAccessArgs.builder()\n .id(msgraph.oauth2PermissionScopeIds().applyValue(oauth2PermissionScopeIds -\u003e oauth2PermissionScopeIds.User.Read()))\n .type(\"Scope\")\n .build())\n .build())\n .build());\n\n var exampleServicePrincipal = new ServicePrincipal(\"exampleServicePrincipal\", ServicePrincipalArgs.builder() \n .applicationId(exampleApplication.applicationId())\n .build());\n\n var exampleServicePrincipalDelegatedPermissionGrant = new ServicePrincipalDelegatedPermissionGrant(\"exampleServicePrincipalDelegatedPermissionGrant\", ServicePrincipalDelegatedPermissionGrantArgs.builder() \n .servicePrincipalObjectId(exampleServicePrincipal.objectId())\n .resourceServicePrincipalObjectId(msgraph.objectId())\n .claimValues( \n \"openid\",\n \"User.Read.All\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n msgraph:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${wellKnown.result.MicrosoftGraph}\n useExisting: true\n exampleApplication:\n type: azuread:Application\n properties:\n displayName: example\n requiredResourceAccesses:\n - resourceAppId: ${wellKnown.result.MicrosoftGraph}\n resourceAccesses:\n - id: ${msgraph.oauth2PermissionScopeIds.openid}\n type: Scope\n - id: ${msgraph.oauth2PermissionScopeIds\"User.Read\"[%!s(MISSING)]}\n type: Scope\n exampleServicePrincipal:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${exampleApplication.applicationId}\n exampleServicePrincipalDelegatedPermissionGrant:\n type: azuread:ServicePrincipalDelegatedPermissionGrant\n properties:\n servicePrincipalObjectId: ${exampleServicePrincipal.objectId}\n resourceServicePrincipalObjectId: ${msgraph.objectId}\n claimValues:\n - openid\n - User.Read.All\nvariables:\n wellKnown:\n Fn::Invoke:\n Function: azuread:getApplicationPublishedAppIds\n Arguments: {}\n```\n\n*Delegated permission grant for a single user*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst wellKnown = azuread.getApplicationPublishedAppIds({});\nconst msgraph = new azuread.ServicePrincipal(\"msgraph\", {\n applicationId: wellKnown.then(wellKnown =\u003e wellKnown.result?.MicrosoftGraph),\n useExisting: true,\n});\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {\n displayName: \"example\",\n requiredResourceAccesses: [{\n resourceAppId: wellKnown.then(wellKnown =\u003e wellKnown.result?.MicrosoftGraph),\n resourceAccesses: [\n {\n id: msgraph.oauth2PermissionScopeIds.openid,\n type: \"Scope\",\n },\n {\n id: msgraph.oauth2PermissionScopeIds[\"User.Read\"],\n type: \"Scope\",\n },\n ],\n }],\n});\nconst exampleServicePrincipal = new azuread.ServicePrincipal(\"exampleServicePrincipal\", {applicationId: exampleApplication.applicationId});\nconst exampleUser = new azuread.User(\"exampleUser\", {\n displayName: \"J. Doe\",\n userPrincipalName: \"jdoe@hashicorp.com\",\n mailNickname: \"jdoe\",\n password: \"SecretP@sswd99!\",\n});\nconst exampleServicePrincipalDelegatedPermissionGrant = new azuread.ServicePrincipalDelegatedPermissionGrant(\"exampleServicePrincipalDelegatedPermissionGrant\", {\n servicePrincipalObjectId: exampleServicePrincipal.objectId,\n resourceServicePrincipalObjectId: msgraph.objectId,\n claimValues: [\n \"openid\",\n \"User.Read.All\",\n ],\n userObjectId: exampleUser.objectId,\n});\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var wellKnown = AzureAD.GetApplicationPublishedAppIds.Invoke();\n\n var msgraph = new AzureAD.ServicePrincipal(\"msgraph\", new()\n {\n ApplicationId = wellKnown.Apply(getApplicationPublishedAppIdsResult =\u003e getApplicationPublishedAppIdsResult.Result?.MicrosoftGraph),\n UseExisting = true,\n });\n\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new()\n {\n DisplayName = \"example\",\n RequiredResourceAccesses = new[]\n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs\n {\n ResourceAppId = wellKnown.Apply(getApplicationPublishedAppIdsResult =\u003e getApplicationPublishedAppIdsResult.Result?.MicrosoftGraph),\n ResourceAccesses = new[]\n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds =\u003e oauth2PermissionScopeIds.Openid),\n Type = \"Scope\",\n },\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds =\u003e oauth2PermissionScopeIds.User_Read),\n Type = \"Scope\",\n },\n },\n },\n },\n });\n\n var exampleServicePrincipal = new AzureAD.ServicePrincipal(\"exampleServicePrincipal\", new()\n {\n ApplicationId = exampleApplication.ApplicationId,\n });\n\n var exampleUser = new AzureAD.User(\"exampleUser\", new()\n {\n DisplayName = \"J. Doe\",\n UserPrincipalName = \"jdoe@hashicorp.com\",\n MailNickname = \"jdoe\",\n Password = \"SecretP@sswd99!\",\n });\n\n var exampleServicePrincipalDelegatedPermissionGrant = new AzureAD.ServicePrincipalDelegatedPermissionGrant(\"exampleServicePrincipalDelegatedPermissionGrant\", new()\n {\n ServicePrincipalObjectId = exampleServicePrincipal.ObjectId,\n ResourceServicePrincipalObjectId = msgraph.ObjectId,\n ClaimValues = new[]\n {\n \"openid\",\n \"User.Read.All\",\n },\n UserObjectId = exampleUser.ObjectId,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\twellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tmsgraph, err := azuread.NewServicePrincipal(ctx, \"msgraph\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: pulumi.String(wellKnown.Result.MicrosoftGraph),\n\t\t\tUseExisting: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tRequiredResourceAccesses: ApplicationRequiredResourceAccessArray{\n\t\t\t\t\u0026ApplicationRequiredResourceAccessArgs{\n\t\t\t\t\tResourceAppId: pulumi.String(wellKnown.Result.MicrosoftGraph),\n\t\t\t\t\tResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) {\n\t\t\t\t\t\t\t\treturn oauth2PermissionScopeIds.Openid, nil\n\t\t\t\t\t\t\t}).(pulumi.StringOutput),\n\t\t\t\t\t\t\tType: pulumi.String(\"Scope\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) {\n\t\t\t\t\t\t\t\treturn oauth2PermissionScopeIds.User.Read, nil\n\t\t\t\t\t\t\t}).(pulumi.StringOutput),\n\t\t\t\t\t\t\tType: pulumi.String(\"Scope\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServicePrincipal, err := azuread.NewServicePrincipal(ctx, \"exampleServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: exampleApplication.ApplicationId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleUser, err := azuread.NewUser(ctx, \"exampleUser\", \u0026azuread.UserArgs{\n\t\t\tDisplayName: pulumi.String(\"J. Doe\"),\n\t\t\tUserPrincipalName: pulumi.String(\"jdoe@hashicorp.com\"),\n\t\t\tMailNickname: pulumi.String(\"jdoe\"),\n\t\t\tPassword: pulumi.String(\"SecretP@sswd99!\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewServicePrincipalDelegatedPermissionGrant(ctx, \"exampleServicePrincipalDelegatedPermissionGrant\", \u0026azuread.ServicePrincipalDelegatedPermissionGrantArgs{\n\t\t\tServicePrincipalObjectId: exampleServicePrincipal.ObjectId,\n\t\t\tResourceServicePrincipalObjectId: msgraph.ObjectId,\n\t\t\tClaimValues: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"openid\"),\n\t\t\t\tpulumi.String(\"User.Read.All\"),\n\t\t\t},\n\t\t\tUserObjectId: exampleUser.ObjectId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.ServicePrincipal;\nimport com.pulumi.azuread.ServicePrincipalArgs;\nimport com.pulumi.azuread.Application;\nimport com.pulumi.azuread.ApplicationArgs;\nimport com.pulumi.azuread.inputs.ApplicationRequiredResourceAccessArgs;\nimport com.pulumi.azuread.User;\nimport com.pulumi.azuread.UserArgs;\nimport com.pulumi.azuread.ServicePrincipalDelegatedPermissionGrant;\nimport com.pulumi.azuread.ServicePrincipalDelegatedPermissionGrantArgs;\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 wellKnown = AzureadFunctions.getApplicationPublishedAppIds();\n\n var msgraph = new ServicePrincipal(\"msgraph\", ServicePrincipalArgs.builder() \n .applicationId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -\u003e getApplicationPublishedAppIdsResult.result().MicrosoftGraph()))\n .useExisting(true)\n .build());\n\n var exampleApplication = new Application(\"exampleApplication\", ApplicationArgs.builder() \n .displayName(\"example\")\n .requiredResourceAccesses(ApplicationRequiredResourceAccessArgs.builder()\n .resourceAppId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -\u003e getApplicationPublishedAppIdsResult.result().MicrosoftGraph()))\n .resourceAccesses( \n ApplicationRequiredResourceAccessResourceAccessArgs.builder()\n .id(msgraph.oauth2PermissionScopeIds().applyValue(oauth2PermissionScopeIds -\u003e oauth2PermissionScopeIds.openid()))\n .type(\"Scope\")\n .build(),\n ApplicationRequiredResourceAccessResourceAccessArgs.builder()\n .id(msgraph.oauth2PermissionScopeIds().applyValue(oauth2PermissionScopeIds -\u003e oauth2PermissionScopeIds.User.Read()))\n .type(\"Scope\")\n .build())\n .build())\n .build());\n\n var exampleServicePrincipal = new ServicePrincipal(\"exampleServicePrincipal\", ServicePrincipalArgs.builder() \n .applicationId(exampleApplication.applicationId())\n .build());\n\n var exampleUser = new User(\"exampleUser\", UserArgs.builder() \n .displayName(\"J. Doe\")\n .userPrincipalName(\"jdoe@hashicorp.com\")\n .mailNickname(\"jdoe\")\n .password(\"SecretP@sswd99!\")\n .build());\n\n var exampleServicePrincipalDelegatedPermissionGrant = new ServicePrincipalDelegatedPermissionGrant(\"exampleServicePrincipalDelegatedPermissionGrant\", ServicePrincipalDelegatedPermissionGrantArgs.builder() \n .servicePrincipalObjectId(exampleServicePrincipal.objectId())\n .resourceServicePrincipalObjectId(msgraph.objectId())\n .claimValues( \n \"openid\",\n \"User.Read.All\")\n .userObjectId(exampleUser.objectId())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n msgraph:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${wellKnown.result.MicrosoftGraph}\n useExisting: true\n exampleApplication:\n type: azuread:Application\n properties:\n displayName: example\n requiredResourceAccesses:\n - resourceAppId: ${wellKnown.result.MicrosoftGraph}\n resourceAccesses:\n - id: ${msgraph.oauth2PermissionScopeIds.openid}\n type: Scope\n - id: ${msgraph.oauth2PermissionScopeIds\"User.Read\"[%!s(MISSING)]}\n type: Scope\n exampleServicePrincipal:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${exampleApplication.applicationId}\n exampleUser:\n type: azuread:User\n properties:\n displayName: J. Doe\n userPrincipalName: jdoe@hashicorp.com\n mailNickname: jdoe\n password: SecretP@sswd99!\n exampleServicePrincipalDelegatedPermissionGrant:\n type: azuread:ServicePrincipalDelegatedPermissionGrant\n properties:\n servicePrincipalObjectId: ${exampleServicePrincipal.objectId}\n resourceServicePrincipalObjectId: ${msgraph.objectId}\n claimValues:\n - openid\n - User.Read.All\n userObjectId: ${exampleUser.objectId}\nvariables:\n wellKnown:\n Fn::Invoke:\n Function: azuread:getApplicationPublishedAppIds\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nDelegated permission grants can be imported using their ID, e.g.\n\n```sh\n $ pulumi import azuread:index/servicePrincipalDelegatedPermissionGrant:ServicePrincipalDelegatedPermissionGrant example aaBBcDDeFG6h5JKLMN2PQrrssTTUUvWWxxxxxyyyzzz\n```\n\n ", "properties": { "claimValues": { "type": "array", @@ -5723,15 +5881,18 @@ }, "resourceServicePrincipalObjectId": { "type": "string", - "description": "The object ID of the service principal representing the resource to be accessed. Changing this forces a new resource to be created.\n" + "description": "The object ID of the service principal representing the resource to be accessed. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "servicePrincipalObjectId": { "type": "string", - "description": "The object ID of the service principal for which this delegated permission grant should be created. Changing this forces a new resource to be created.\n" + "description": "The object ID of the service principal for which this delegated permission grant should be created. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "userObjectId": { "type": "string", - "description": "- The object ID of the user on behalf of whom the service principal is authorized to access the resource. When omitted, the delegated permission grant will be consented for all users. Changing this forces a new resource to be created.\n" + "description": "- The object ID of the user on behalf of whom the service principal is authorized to access the resource. When omitted, the delegated permission grant will be consented for all users. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true } }, "requiredInputs": [ @@ -5751,15 +5912,18 @@ }, "resourceServicePrincipalObjectId": { "type": "string", - "description": "The object ID of the service principal representing the resource to be accessed. Changing this forces a new resource to be created.\n" + "description": "The object ID of the service principal representing the resource to be accessed. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "servicePrincipalObjectId": { "type": "string", - "description": "The object ID of the service principal for which this delegated permission grant should be created. Changing this forces a new resource to be created.\n" + "description": "The object ID of the service principal for which this delegated permission grant should be created. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "userObjectId": { "type": "string", - "description": "- The object ID of the user on behalf of whom the service principal is authorized to access the resource. When omitted, the delegated permission grant will be consented for all users. Changing this forces a new resource to be created.\n" + "description": "- The object ID of the user on behalf of whom the service principal is authorized to access the resource. When omitted, the delegated permission grant will be consented for all users. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true } }, "type": "object" @@ -5815,30 +5979,36 @@ "inputProperties": { "displayName": { "type": "string", - "description": "A display name for the password.\n" + "description": "A display name for the password.\n", + "willReplaceOnChanges": true }, "endDate": { "type": "string", - "description": "The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.\n" + "description": "The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "endDateRelative": { "type": "string", - "description": "A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.\n" + "description": "A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "rotateWhenChanged": { "type": "object", "additionalProperties": { "type": "string" }, - "description": "A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.\n" + "description": "A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "servicePrincipalId": { "type": "string", - "description": "The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.\n" + "description": "The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "startDate": { "type": "string", - "description": "The start date from which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.\n" + "description": "The start date from which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true } }, "requiredInputs": [ @@ -5849,15 +6019,18 @@ "properties": { "displayName": { "type": "string", - "description": "A display name for the password.\n" + "description": "A display name for the password.\n", + "willReplaceOnChanges": true }, "endDate": { "type": "string", - "description": "The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.\n" + "description": "The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "endDateRelative": { "type": "string", - "description": "A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.\n" + "description": "A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "keyId": { "type": "string", @@ -5868,15 +6041,18 @@ "additionalProperties": { "type": "string" }, - "description": "A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.\n" + "description": "A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "servicePrincipalId": { "type": "string", - "description": "The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.\n" + "description": "The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "startDate": { "type": "string", - "description": "The start date from which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.\n" + "description": "The start date from which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.\n", + "willReplaceOnChanges": true }, "value": { "type": "string", @@ -5887,7 +6063,7 @@ } }, "azuread:index/user:User": { - "description": "Manages a user within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires one of the following application roles: `User.ReadWrite.All` or `Directory.ReadWrite.All`\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `User Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.User(\"example\", {\n displayName: \"J. Doe\",\n mailNickname: \"jdoe\",\n password: \"SecretP@sswd99!\",\n userPrincipalName: \"jdoe@hashicorp.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.User(\"example\",\n display_name=\"J. Doe\",\n mail_nickname=\"jdoe\",\n password=\"SecretP@sswd99!\",\n user_principal_name=\"jdoe@hashicorp.com\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = new AzureAD.User(\"example\", new AzureAD.UserArgs\n {\n DisplayName = \"J. Doe\",\n MailNickname = \"jdoe\",\n Password = \"SecretP@sswd99!\",\n UserPrincipalName = \"jdoe@hashicorp.com\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.NewUser(ctx, \"example\", \u0026azuread.UserArgs{\n\t\t\tDisplayName: pulumi.String(\"J. Doe\"),\n\t\t\tMailNickname: pulumi.String(\"jdoe\"),\n\t\t\tPassword: pulumi.String(\"SecretP@sswd99!\"),\n\t\t\tUserPrincipalName: pulumi.String(\"jdoe@hashicorp.com\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new User(\"example\", UserArgs.builder() \n .displayName(\"J. Doe\")\n .mailNickname(\"jdoe\")\n .password(\"SecretP@sswd99!\")\n .userPrincipalName(\"jdoe@hashicorp.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azuread:User\n properties:\n displayName: J. Doe\n mailNickname: jdoe\n password: SecretP@sswd99!\n userPrincipalName: jdoe@hashicorp.com\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nUsers can be imported using their object ID, e.g.\n\n```sh\n $ pulumi import azuread:index/user:User my_user 00000000-0000-0000-0000-000000000000\n```\n\n ", + "description": "Manages a user within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this resource.\n\nWhen authenticated with a service principal, this resource requires one of the following application roles: `User.ReadWrite.All` or `Directory.ReadWrite.All`\n\nWhen authenticated with a user principal, this resource requires one of the following directory roles: `User Administrator` or `Global Administrator`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.User(\"example\", {\n displayName: \"J. Doe\",\n mailNickname: \"jdoe\",\n password: \"SecretP@sswd99!\",\n userPrincipalName: \"jdoe@hashicorp.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.User(\"example\",\n display_name=\"J. Doe\",\n mail_nickname=\"jdoe\",\n password=\"SecretP@sswd99!\",\n user_principal_name=\"jdoe@hashicorp.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new AzureAD.User(\"example\", new()\n {\n DisplayName = \"J. Doe\",\n MailNickname = \"jdoe\",\n Password = \"SecretP@sswd99!\",\n UserPrincipalName = \"jdoe@hashicorp.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.NewUser(ctx, \"example\", \u0026azuread.UserArgs{\n\t\t\tDisplayName: pulumi.String(\"J. Doe\"),\n\t\t\tMailNickname: pulumi.String(\"jdoe\"),\n\t\t\tPassword: pulumi.String(\"SecretP@sswd99!\"),\n\t\t\tUserPrincipalName: pulumi.String(\"jdoe@hashicorp.com\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.User;\nimport com.pulumi.azuread.UserArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new User(\"example\", UserArgs.builder() \n .displayName(\"J. Doe\")\n .mailNickname(\"jdoe\")\n .password(\"SecretP@sswd99!\")\n .userPrincipalName(\"jdoe@hashicorp.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azuread:User\n properties:\n displayName: J. Doe\n mailNickname: jdoe\n password: SecretP@sswd99!\n userPrincipalName: jdoe@hashicorp.com\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nUsers can be imported using their object ID, e.g.\n\n```sh\n $ pulumi import azuread:index/user:User my_user 00000000-0000-0000-0000-000000000000\n```\n\n ", "properties": { "aboutMe": { "type": "string", @@ -6482,7 +6658,7 @@ }, "functions": { "azuread:index/getAdministrativeUnit:getAdministrativeUnit": { - "description": "Gets information about an adminisrative unit in Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this data source.\n\nWhen authenticated with a service principal, this data source requires one of the following application roles: `AdministrativeUnit.Read.All` or `Directory.Read.All`\n\nWhen authenticated with a user principal, this data source does not require any additional roles.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### By Group Display Name)\n\n*Look up by display name*\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getAdministrativeUnit({\n displayName: \"Example-AU\",\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_administrative_unit(display_name=\"Example-AU\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetAdministrativeUnit.InvokeAsync(new AzureAD.GetAdministrativeUnitArgs\n {\n DisplayName = \"Example-AU\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.LookupAdministrativeUnit(ctx, \u0026GetAdministrativeUnitArgs{\n\t\t\tDisplayName: pulumi.StringRef(\"Example-AU\"),\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 java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = Output.of(AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder()\n .displayName(\"Example-AU\")\n .build()));\n\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getAdministrativeUnit\n Arguments:\n displayName: Example-AU\n```\n\n*Look up by object ID*\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getAdministrativeUnit({\n objectId: \"00000000-0000-0000-0000-000000000000\",\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_administrative_unit(object_id=\"00000000-0000-0000-0000-000000000000\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetAdministrativeUnit.InvokeAsync(new AzureAD.GetAdministrativeUnitArgs\n {\n ObjectId = \"00000000-0000-0000-0000-000000000000\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.LookupAdministrativeUnit(ctx, \u0026GetAdministrativeUnitArgs{\n\t\t\tObjectId: pulumi.StringRef(\"00000000-0000-0000-0000-000000000000\"),\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 java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = Output.of(AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder()\n .objectId(\"00000000-0000-0000-0000-000000000000\")\n .build()));\n\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getAdministrativeUnit\n Arguments:\n objectId: 00000000-0000-0000-0000-000000000000\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Gets information about an adminisrative unit in Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this data source.\n\nWhen authenticated with a service principal, this data source requires one of the following application roles: `AdministrativeUnit.Read.All` or `Directory.Read.All`\n\nWhen authenticated with a user principal, this data source does not require any additional roles.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### By Group Display Name)\n\n*Look up by display name*\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getAdministrativeUnit({\n displayName: \"Example-AU\",\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_administrative_unit(display_name=\"Example-AU\")\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = AzureAD.GetAdministrativeUnit.Invoke(new()\n {\n DisplayName = \"Example-AU\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.LookupAdministrativeUnit(ctx, \u0026GetAdministrativeUnitArgs{\n\t\t\tDisplayName: pulumi.StringRef(\"Example-AU\"),\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.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetAdministrativeUnitArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder()\n .displayName(\"Example-AU\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getAdministrativeUnit\n Arguments:\n displayName: Example-AU\n```\n\n*Look up by object ID*\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getAdministrativeUnit({\n objectId: \"00000000-0000-0000-0000-000000000000\",\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_administrative_unit(object_id=\"00000000-0000-0000-0000-000000000000\")\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = AzureAD.GetAdministrativeUnit.Invoke(new()\n {\n ObjectId = \"00000000-0000-0000-0000-000000000000\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.LookupAdministrativeUnit(ctx, \u0026GetAdministrativeUnitArgs{\n\t\t\tObjectId: pulumi.StringRef(\"00000000-0000-0000-0000-000000000000\"),\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.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetAdministrativeUnitArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder()\n .objectId(\"00000000-0000-0000-0000-000000000000\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getAdministrativeUnit\n Arguments:\n objectId: 00000000-0000-0000-0000-000000000000\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getAdministrativeUnit.\n", "properties": { @@ -6540,7 +6716,7 @@ } }, "azuread:index/getApplication:getApplication": { - "description": "Use this data source to access information about an existing Application within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this data source.\n\nWhen authenticated with a service principal, this data source requires one of the following application roles: `Application.Read.All` or `Directory.Read.All`\n\nWhen authenticated with a user principal, this data source does not require any additional roles.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = azuread.getApplication({\n displayName: \"My First AzureAD Application\",\n});\nexport const applicationObjectId = example.then(example =\u003e example.id);\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_application(display_name=\"My First AzureAD Application\")\npulumi.export(\"applicationObjectId\", example.id)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetApplication.InvokeAsync(new AzureAD.GetApplicationArgs\n {\n DisplayName = \"My First AzureAD Application\",\n }));\n this.ApplicationObjectId = example.Apply(example =\u003e example.Id);\n }\n\n [Output(\"applicationObjectId\")]\n public Output\u003cstring\u003e ApplicationObjectId { get; set; }\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := azuread.LookupApplication(ctx, \u0026GetApplicationArgs{\n\t\t\tDisplayName: pulumi.StringRef(\"My First AzureAD Application\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"applicationObjectId\", example.Id)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = Output.of(AzureadFunctions.getApplication(GetApplicationArgs.builder()\n .displayName(\"My First AzureAD Application\")\n .build()));\n\n ctx.export(\"applicationObjectId\", example.apply(getApplicationResult -\u003e getApplicationResult.getId()));\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getApplication\n Arguments:\n displayName: My First AzureAD Application\noutputs:\n applicationObjectId: ${example.id}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to access information about an existing Application within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this data source.\n\nWhen authenticated with a service principal, this data source requires one of the following application roles: `Application.Read.All` or `Directory.Read.All`\n\nWhen authenticated with a user principal, this data source does not require any additional roles.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = azuread.getApplication({\n displayName: \"My First AzureAD Application\",\n});\nexport const applicationObjectId = example.then(example =\u003e example.id);\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_application(display_name=\"My First AzureAD Application\")\npulumi.export(\"applicationObjectId\", example.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = AzureAD.GetApplication.Invoke(new()\n {\n DisplayName = \"My First AzureAD Application\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"applicationObjectId\"] = example.Apply(getApplicationResult =\u003e getApplicationResult.Id),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := azuread.LookupApplication(ctx, \u0026GetApplicationArgs{\n\t\t\tDisplayName: pulumi.StringRef(\"My First AzureAD Application\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"applicationObjectId\", example.Id)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetApplicationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = AzureadFunctions.getApplication(GetApplicationArgs.builder()\n .displayName(\"My First AzureAD Application\")\n .build());\n\n ctx.export(\"applicationObjectId\", example.applyValue(getApplicationResult -\u003e getApplicationResult.id()));\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getApplication\n Arguments:\n displayName: My First AzureAD Application\noutputs:\n applicationObjectId: ${example.id}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getApplication.\n", "properties": { @@ -6756,7 +6932,7 @@ } }, "azuread:index/getApplicationPublishedAppIds:getApplicationPublishedAppIds": { - "description": "Use this data source to discover application IDs for APIs published by Microsoft.\n\nThis data source uses an [unofficial source of application IDs](https://github.com/manicminer/hamilton/blob/main/environments/published.go), as there is currently no available official indexed source for applications or APIs published by Microsoft.\n\nThe app IDs returned by this data source are sourced from the Azure Global (Public) Cloud, however some of them are known to work in government and national clouds.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*Listing well-known application IDs*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst wellKnown = azuread.getApplicationPublishedAppIds({});\nexport const publishedAppIds = wellKnown.then(wellKnown =\u003e wellKnown.result);\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nwell_known = azuread.get_application_published_app_ids()\npulumi.export(\"publishedAppIds\", well_known.result)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var wellKnown = Output.Create(AzureAD.GetApplicationPublishedAppIds.InvokeAsync());\n this.PublishedAppIds = wellKnown.Apply(wellKnown =\u003e wellKnown.Result);\n }\n\n [Output(\"publishedAppIds\")]\n public Output\u003cstring\u003e PublishedAppIds { get; set; }\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\twellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"publishedAppIds\", wellKnown.Result)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 wellKnown = Output.of(AzureadFunctions.getApplicationPublishedAppIds());\n\n ctx.export(\"publishedAppIds\", wellKnown.apply(getApplicationPublishedAppIdsResult -\u003e getApplicationPublishedAppIdsResult.getResult()));\n }\n}\n```\n```yaml\nvariables:\n wellKnown:\n Fn::Invoke:\n Function: azuread:getApplicationPublishedAppIds\n Arguments: {}\noutputs:\n publishedAppIds: ${wellKnown.result}\n```\n\n*Granting access to an application*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst wellKnown = azuread.getApplicationPublishedAppIds({});\nconst msgraph = new azuread.ServicePrincipal(\"msgraph\", {\n applicationId: wellKnown.then(wellKnown =\u003e wellKnown.result?.MicrosoftGraph),\n useExisting: true,\n});\nconst example = new azuread.Application(\"example\", {\n displayName: \"example\",\n requiredResourceAccesses: [{\n resourceAppId: wellKnown.then(wellKnown =\u003e wellKnown.result?.MicrosoftGraph),\n resourceAccesses: [\n {\n id: msgraph.appRoleIds[\"User.Read.All\"],\n type: \"Role\",\n },\n {\n id: msgraph.oauth2PermissionScopeIds[\"User.ReadWrite\"],\n type: \"Scope\",\n },\n ],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nwell_known = azuread.get_application_published_app_ids()\nmsgraph = azuread.ServicePrincipal(\"msgraph\",\n application_id=well_known.result[\"MicrosoftGraph\"],\n use_existing=True)\nexample = azuread.Application(\"example\",\n display_name=\"example\",\n required_resource_accesses=[azuread.ApplicationRequiredResourceAccessArgs(\n resource_app_id=well_known.result[\"MicrosoftGraph\"],\n resource_accesses=[\n azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=msgraph.app_role_ids[\"User.Read.All\"],\n type=\"Role\",\n ),\n azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=msgraph.oauth2_permission_scope_ids[\"User.ReadWrite\"],\n type=\"Scope\",\n ),\n ],\n )])\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var wellKnown = Output.Create(AzureAD.GetApplicationPublishedAppIds.InvokeAsync());\n var msgraph = new AzureAD.ServicePrincipal(\"msgraph\", new AzureAD.ServicePrincipalArgs\n {\n ApplicationId = wellKnown.Apply(wellKnown =\u003e wellKnown.Result?.MicrosoftGraph),\n UseExisting = true,\n });\n var example = new AzureAD.Application(\"example\", new AzureAD.ApplicationArgs\n {\n DisplayName = \"example\",\n RequiredResourceAccesses = \n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs\n {\n ResourceAppId = wellKnown.Apply(wellKnown =\u003e wellKnown.Result?.MicrosoftGraph),\n ResourceAccesses = \n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = msgraph.AppRoleIds.Apply(appRoleIds =\u003e appRoleIds.User_Read_All),\n Type = \"Role\",\n },\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds =\u003e oauth2PermissionScopeIds.User_ReadWrite),\n Type = \"Scope\",\n },\n },\n },\n },\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\twellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tmsgraph, err := azuread.NewServicePrincipal(ctx, \"msgraph\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: pulumi.String(wellKnown.Result.MicrosoftGraph),\n\t\t\tUseExisting: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewApplication(ctx, \"example\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tRequiredResourceAccesses: ApplicationRequiredResourceAccessArray{\n\t\t\t\t\u0026ApplicationRequiredResourceAccessArgs{\n\t\t\t\t\tResourceAppId: pulumi.String(wellKnown.Result.MicrosoftGraph),\n\t\t\t\t\tResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: msgraph.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) {\n\t\t\t\t\t\t\t\treturn appRoleIds.User.Read.All, nil\n\t\t\t\t\t\t\t}).(pulumi.StringOutput),\n\t\t\t\t\t\t\tType: pulumi.String(\"Role\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) {\n\t\t\t\t\t\t\t\treturn oauth2PermissionScopeIds.User.ReadWrite, nil\n\t\t\t\t\t\t\t}).(pulumi.StringOutput),\n\t\t\t\t\t\t\tType: pulumi.String(\"Scope\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 wellKnown = Output.of(AzureadFunctions.getApplicationPublishedAppIds());\n\n var msgraph = new ServicePrincipal(\"msgraph\", ServicePrincipalArgs.builder() \n .applicationId(wellKnown.apply(getApplicationPublishedAppIdsResult -\u003e getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph()))\n .useExisting(true)\n .build());\n\n var example = new Application(\"example\", ApplicationArgs.builder() \n .displayName(\"example\")\n .requiredResourceAccesses(ApplicationRequiredResourceAccess.builder()\n .resourceAppId(wellKnown.apply(getApplicationPublishedAppIdsResult -\u003e getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph()))\n .resourceAccesses( \n ApplicationRequiredResourceAccessResourceAccess.builder()\n .id(msgraph.getAppRoleIds().apply(appRoleIds -\u003e appRoleIds.getUser.Read.All()))\n .type(\"Role\")\n .build(),\n ApplicationRequiredResourceAccessResourceAccess.builder()\n .id(msgraph.getOauth2PermissionScopeIds().apply(oauth2PermissionScopeIds -\u003e oauth2PermissionScopeIds.getUser.ReadWrite()))\n .type(\"Scope\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n msgraph:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${wellKnown.result.MicrosoftGraph}\n useExisting: true\n example:\n type: azuread:Application\n properties:\n displayName: example\n requiredResourceAccesses:\n - resourceAppId: ${wellKnown.result.MicrosoftGraph}\n resourceAccesses:\n - id: ${msgraph.appRoleIds\"User.Read.All\"[%!s(MISSING)]}\n type: Role\n - id: ${msgraph.oauth2PermissionScopeIds\"User.ReadWrite\"[%!s(MISSING)]}\n type: Scope\nvariables:\n wellKnown:\n Fn::Invoke:\n Function: azuread:getApplicationPublishedAppIds\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to discover application IDs for APIs published by Microsoft.\n\nThis data source uses an [unofficial source of application IDs](https://github.com/manicminer/hamilton/blob/main/environments/published.go), as there is currently no available official indexed source for applications or APIs published by Microsoft.\n\nThe app IDs returned by this data source are sourced from the Azure Global (Public) Cloud, however some of them are known to work in government and national clouds.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*Listing well-known application IDs*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst wellKnown = azuread.getApplicationPublishedAppIds({});\nexport const publishedAppIds = wellKnown.then(wellKnown =\u003e wellKnown.result);\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nwell_known = azuread.get_application_published_app_ids()\npulumi.export(\"publishedAppIds\", well_known.result)\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var wellKnown = AzureAD.GetApplicationPublishedAppIds.Invoke();\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"publishedAppIds\"] = wellKnown.Apply(getApplicationPublishedAppIdsResult =\u003e getApplicationPublishedAppIdsResult.Result),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\twellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"publishedAppIds\", wellKnown.Result)\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.azuread.AzureadFunctions;\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 wellKnown = AzureadFunctions.getApplicationPublishedAppIds();\n\n ctx.export(\"publishedAppIds\", wellKnown.applyValue(getApplicationPublishedAppIdsResult -\u003e getApplicationPublishedAppIdsResult.result()));\n }\n}\n```\n```yaml\nvariables:\n wellKnown:\n Fn::Invoke:\n Function: azuread:getApplicationPublishedAppIds\n Arguments: {}\noutputs:\n publishedAppIds: ${wellKnown.result}\n```\n\n*Granting access to an application*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst wellKnown = azuread.getApplicationPublishedAppIds({});\nconst msgraph = new azuread.ServicePrincipal(\"msgraph\", {\n applicationId: wellKnown.then(wellKnown =\u003e wellKnown.result?.MicrosoftGraph),\n useExisting: true,\n});\nconst example = new azuread.Application(\"example\", {\n displayName: \"example\",\n requiredResourceAccesses: [{\n resourceAppId: wellKnown.then(wellKnown =\u003e wellKnown.result?.MicrosoftGraph),\n resourceAccesses: [\n {\n id: msgraph.appRoleIds[\"User.Read.All\"],\n type: \"Role\",\n },\n {\n id: msgraph.oauth2PermissionScopeIds[\"User.ReadWrite\"],\n type: \"Scope\",\n },\n ],\n }],\n});\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var wellKnown = AzureAD.GetApplicationPublishedAppIds.Invoke();\n\n var msgraph = new AzureAD.ServicePrincipal(\"msgraph\", new()\n {\n ApplicationId = wellKnown.Apply(getApplicationPublishedAppIdsResult =\u003e getApplicationPublishedAppIdsResult.Result?.MicrosoftGraph),\n UseExisting = true,\n });\n\n var example = new AzureAD.Application(\"example\", new()\n {\n DisplayName = \"example\",\n RequiredResourceAccesses = new[]\n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs\n {\n ResourceAppId = wellKnown.Apply(getApplicationPublishedAppIdsResult =\u003e getApplicationPublishedAppIdsResult.Result?.MicrosoftGraph),\n ResourceAccesses = new[]\n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = msgraph.AppRoleIds.Apply(appRoleIds =\u003e appRoleIds.User_Read_All),\n Type = \"Role\",\n },\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds =\u003e oauth2PermissionScopeIds.User_ReadWrite),\n Type = \"Scope\",\n },\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\twellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tmsgraph, err := azuread.NewServicePrincipal(ctx, \"msgraph\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: pulumi.String(wellKnown.Result.MicrosoftGraph),\n\t\t\tUseExisting: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewApplication(ctx, \"example\", \u0026azuread.ApplicationArgs{\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tRequiredResourceAccesses: ApplicationRequiredResourceAccessArray{\n\t\t\t\t\u0026ApplicationRequiredResourceAccessArgs{\n\t\t\t\t\tResourceAppId: pulumi.String(wellKnown.Result.MicrosoftGraph),\n\t\t\t\t\tResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: msgraph.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) {\n\t\t\t\t\t\t\t\treturn appRoleIds.User.Read.All, nil\n\t\t\t\t\t\t\t}).(pulumi.StringOutput),\n\t\t\t\t\t\t\tType: pulumi.String(\"Role\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\u0026ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) {\n\t\t\t\t\t\t\t\treturn oauth2PermissionScopeIds.User.ReadWrite, nil\n\t\t\t\t\t\t\t}).(pulumi.StringOutput),\n\t\t\t\t\t\t\tType: pulumi.String(\"Scope\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.ServicePrincipal;\nimport com.pulumi.azuread.ServicePrincipalArgs;\nimport com.pulumi.azuread.Application;\nimport com.pulumi.azuread.ApplicationArgs;\nimport com.pulumi.azuread.inputs.ApplicationRequiredResourceAccessArgs;\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 wellKnown = AzureadFunctions.getApplicationPublishedAppIds();\n\n var msgraph = new ServicePrincipal(\"msgraph\", ServicePrincipalArgs.builder() \n .applicationId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -\u003e getApplicationPublishedAppIdsResult.result().MicrosoftGraph()))\n .useExisting(true)\n .build());\n\n var example = new Application(\"example\", ApplicationArgs.builder() \n .displayName(\"example\")\n .requiredResourceAccesses(ApplicationRequiredResourceAccessArgs.builder()\n .resourceAppId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -\u003e getApplicationPublishedAppIdsResult.result().MicrosoftGraph()))\n .resourceAccesses( \n ApplicationRequiredResourceAccessResourceAccessArgs.builder()\n .id(msgraph.appRoleIds().applyValue(appRoleIds -\u003e appRoleIds.User.Read.All()))\n .type(\"Role\")\n .build(),\n ApplicationRequiredResourceAccessResourceAccessArgs.builder()\n .id(msgraph.oauth2PermissionScopeIds().applyValue(oauth2PermissionScopeIds -\u003e oauth2PermissionScopeIds.User.ReadWrite()))\n .type(\"Scope\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n msgraph:\n type: azuread:ServicePrincipal\n properties:\n applicationId: ${wellKnown.result.MicrosoftGraph}\n useExisting: true\n example:\n type: azuread:Application\n properties:\n displayName: example\n requiredResourceAccesses:\n - resourceAppId: ${wellKnown.result.MicrosoftGraph}\n resourceAccesses:\n - id: ${msgraph.appRoleIds\"User.Read.All\"[%!s(MISSING)]}\n type: Role\n - id: ${msgraph.oauth2PermissionScopeIds\"User.ReadWrite\"[%!s(MISSING)]}\n type: Scope\nvariables:\n wellKnown:\n Fn::Invoke:\n Function: azuread:getApplicationPublishedAppIds\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}", "outputs": { "description": "A collection of values returned by getApplicationPublishedAppIds.\n", "properties": { @@ -6780,7 +6956,7 @@ } }, "azuread:index/getApplicationTemplate:getApplicationTemplate": { - "description": "Use this data source to access information about an Application Template from the [Azure AD App Gallery](https://azuremarketplace.microsoft.com/en-US/marketplace/apps/category/azure-active-directory-apps).\n\n## API Permissions\n\nThis data source does not require any additional roles.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = azuread.getApplicationTemplate({\n displayName: \"Marketo\",\n});\nexport const applicationTemplateId = example.then(example =\u003e example.templateId);\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_application_template(display_name=\"Marketo\")\npulumi.export(\"applicationTemplateId\", example.template_id)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetApplicationTemplate.InvokeAsync(new AzureAD.GetApplicationTemplateArgs\n {\n DisplayName = \"Marketo\",\n }));\n this.ApplicationTemplateId = example.Apply(example =\u003e example.TemplateId);\n }\n\n [Output(\"applicationTemplateId\")]\n public Output\u003cstring\u003e ApplicationTemplateId { get; set; }\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := azuread.GetApplicationTemplate(ctx, \u0026GetApplicationTemplateArgs{\n\t\t\tDisplayName: pulumi.StringRef(\"Marketo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"applicationTemplateId\", example.TemplateId)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = Output.of(AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder()\n .displayName(\"Marketo\")\n .build()));\n\n ctx.export(\"applicationTemplateId\", example.apply(getApplicationTemplateResult -\u003e getApplicationTemplateResult.getTemplateId()));\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getApplicationTemplate\n Arguments:\n displayName: Marketo\noutputs:\n applicationTemplateId: ${example.templateId}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to access information about an Application Template from the [Azure AD App Gallery](https://azuremarketplace.microsoft.com/en-US/marketplace/apps/category/azure-active-directory-apps).\n\n## API Permissions\n\nThis data source does not require any additional roles.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = azuread.getApplicationTemplate({\n displayName: \"Marketo\",\n});\nexport const applicationTemplateId = example.then(example =\u003e example.templateId);\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_application_template(display_name=\"Marketo\")\npulumi.export(\"applicationTemplateId\", example.template_id)\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = AzureAD.GetApplicationTemplate.Invoke(new()\n {\n DisplayName = \"Marketo\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"applicationTemplateId\"] = example.Apply(getApplicationTemplateResult =\u003e getApplicationTemplateResult.TemplateId),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := azuread.GetApplicationTemplate(ctx, \u0026GetApplicationTemplateArgs{\n\t\t\tDisplayName: pulumi.StringRef(\"Marketo\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"applicationTemplateId\", example.TemplateId)\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.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetApplicationTemplateArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder()\n .displayName(\"Marketo\")\n .build());\n\n ctx.export(\"applicationTemplateId\", example.applyValue(getApplicationTemplateResult -\u003e getApplicationTemplateResult.templateId()));\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getApplicationTemplate\n Arguments:\n displayName: Marketo\noutputs:\n applicationTemplateId: ${example.templateId}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getApplicationTemplate.\n", "properties": { @@ -6859,7 +7035,7 @@ } }, "azuread:index/getClientConfig:getClientConfig": { - "description": "Use this data source to access the configuration of the AzureAD provider.\n\n## API Permissions\n\nNo additional roles are required to use this data source.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst current = azuread.getClientConfig({});\nexport const objectId = current.then(current =\u003e current.objectId);\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\ncurrent = azuread.get_client_config()\npulumi.export(\"objectId\", current.object_id)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var current = Output.Create(AzureAD.GetClientConfig.InvokeAsync());\n this.ObjectId = current.Apply(current =\u003e current.ObjectId);\n }\n\n [Output(\"objectId\")]\n public Output\u003cstring\u003e ObjectId { get; set; }\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := azuread.GetClientConfig(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"objectId\", current.ObjectId)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 current = Output.of(AzureadFunctions.getClientConfig());\n\n ctx.export(\"objectId\", current.apply(getClientConfigResult -\u003e getClientConfigResult.getObjectId()));\n }\n}\n```\n```yaml\nvariables:\n current:\n Fn::Invoke:\n Function: azuread:getClientConfig\n Arguments: {}\noutputs:\n objectId: ${current.objectId}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to access the configuration of the AzureAD provider.\n\n## API Permissions\n\nNo additional roles are required to use this data source.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst current = azuread.getClientConfig({});\nexport const objectId = current.then(current =\u003e current.objectId);\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\ncurrent = azuread.get_client_config()\npulumi.export(\"objectId\", current.object_id)\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var current = AzureAD.GetClientConfig.Invoke();\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"objectId\"] = current.Apply(getClientConfigResult =\u003e getClientConfigResult.ObjectId),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := azuread.GetClientConfig(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"objectId\", current.ObjectId)\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.azuread.AzureadFunctions;\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 current = AzureadFunctions.getClientConfig();\n\n ctx.export(\"objectId\", current.applyValue(getClientConfigResult -\u003e getClientConfigResult.objectId()));\n }\n}\n```\n```yaml\nvariables:\n current:\n Fn::Invoke:\n Function: azuread:getClientConfig\n Arguments: {}\noutputs:\n objectId: ${current.objectId}\n```\n{{% /example %}}\n{{% /examples %}}", "outputs": { "description": "A collection of values returned by getClientConfig.\n", "properties": { @@ -6890,7 +7066,7 @@ } }, "azuread:index/getDomains:getDomains": { - "description": "Use this data source to access information about existing Domains within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this data source.\n\nWhen authenticated with a service principal, this data source requires one of the following application roles: `Domain.Read.All` or `Directory.Read.All`\n\nWhen authenticated with a user principal, this data source does not require any additional roles.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst aadDomains = azuread.getDomains({});\nexport const domainNames = [aadDomains.then(aadDomains =\u003e aadDomains.domains)].map(__item =\u003e __item?.domainName);\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\naad_domains = azuread.get_domains()\npulumi.export(\"domainNames\", [__item.domain_name for __item in [aad_domains.domains]])\n```\n```csharp\nusing System.Linq;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var aadDomains = Output.Create(AzureAD.GetDomains.InvokeAsync());\n this.DomainNames = \n {\n aadDomains.Apply(aadDomains =\u003e aadDomains.Domains),\n }.Select(__item =\u003e __item?.DomainName).ToList();\n }\n\n [Output(\"domainNames\")]\n public Output\u003cstring\u003e DomainNames { get; set; }\n}\n```\n```java\npackage generated_program;\n\nimport java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 aadDomains = Output.of(AzureadFunctions.getDomains());\n\n ctx.export(\"domainNames\", aadDomains.apply(getDomainsResult -\u003e getDomainsResult.getDomains()).stream().map(element -\u003e element.getDomainName()).collect(toList()));\n }\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to access information about existing Domains within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this data source.\n\nWhen authenticated with a service principal, this data source requires one of the following application roles: `Domain.Read.All` or `Directory.Read.All`\n\nWhen authenticated with a user principal, this data source does not require any additional roles.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst aadDomains = azuread.getDomains({});\nexport const domainNames = [aadDomains.then(aadDomains =\u003e aadDomains.domains)].map(__item =\u003e __item?.domainName);\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\naad_domains = azuread.get_domains()\npulumi.export(\"domainNames\", [__item.domain_name for __item in [aad_domains.domains]])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var aadDomains = AzureAD.GetDomains.Invoke();\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"domainNames\"] = new[]\n {\n aadDomains.Apply(getDomainsResult =\u003e getDomainsResult.Domains),\n }.Select(__item =\u003e __item?.DomainName).ToList(),\n };\n});\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetDomainsArgs;\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 aadDomains = AzureadFunctions.getDomains();\n\n ctx.export(\"domainNames\", aadDomains.applyValue(getDomainsResult -\u003e getDomainsResult.domains()).stream().map(element -\u003e element.domainName()).collect(toList()));\n }\n}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getDomains.\n", "properties": { @@ -6969,7 +7145,7 @@ } }, "azuread:index/getGroup:getGroup": { - "description": "Gets information about an Azure Active Directory group.\n\n## API Permissions\n\nThe following API permissions are required in order to use this data source.\n\nWhen authenticated with a service principal, this data source requires one of the following application roles: `Group.Read.All` or `Directory.Read.All`\n\nWhen authenticated with a user principal, this data source does not require any additional roles.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### By Group Display Name)\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getGroup({\n displayName: \"MyGroupName\",\n securityEnabled: true,\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_group(display_name=\"MyGroupName\",\n security_enabled=True)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetGroup.InvokeAsync(new AzureAD.GetGroupArgs\n {\n DisplayName = \"MyGroupName\",\n SecurityEnabled = true,\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.LookupGroup(ctx, \u0026GetGroupArgs{\n\t\t\tDisplayName: pulumi.StringRef(\"MyGroupName\"),\n\t\t\tSecurityEnabled: pulumi.BoolRef(true),\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 java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = Output.of(AzureadFunctions.getGroup(GetGroupArgs.builder()\n .displayName(\"MyGroupName\")\n .securityEnabled(true)\n .build()));\n\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getGroup\n Arguments:\n displayName: MyGroupName\n securityEnabled: true\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Gets information about an Azure Active Directory group.\n\n## API Permissions\n\nThe following API permissions are required in order to use this data source.\n\nWhen authenticated with a service principal, this data source requires one of the following application roles: `Group.Read.All` or `Directory.Read.All`\n\nWhen authenticated with a user principal, this data source does not require any additional roles.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### By Group Display Name)\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getGroup({\n displayName: \"MyGroupName\",\n securityEnabled: true,\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_group(display_name=\"MyGroupName\",\n security_enabled=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = AzureAD.GetGroup.Invoke(new()\n {\n DisplayName = \"MyGroupName\",\n SecurityEnabled = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.LookupGroup(ctx, \u0026GetGroupArgs{\n\t\t\tDisplayName: pulumi.StringRef(\"MyGroupName\"),\n\t\t\tSecurityEnabled: pulumi.BoolRef(true),\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.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetGroupArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = AzureadFunctions.getGroup(GetGroupArgs.builder()\n .displayName(\"MyGroupName\")\n .securityEnabled(true)\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getGroup\n Arguments:\n displayName: MyGroupName\n securityEnabled: true\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getGroup.\n", "properties": { @@ -7163,7 +7339,7 @@ } }, "azuread:index/getGroups:getGroups": { - "description": "Gets Object IDs or Display Names for multiple Azure Active Directory groups.\n\n## API Permissions\n\nThe following API permissions are required in order to use this data source.\n\nWhen authenticated with a service principal, this data source requires one of the following application roles: `Group.Read.All` or `Directory.Read.All`\n\nWhen authenticated with a user principal, this data source does not require any additional roles.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*Look up by group name*\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getGroups({\n displayNames: [\n \"group-a\",\n \"group-b\",\n ],\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_groups(display_names=[\n \"group-a\",\n \"group-b\",\n])\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetGroups.InvokeAsync(new AzureAD.GetGroupsArgs\n {\n DisplayNames = \n {\n \"group-a\",\n \"group-b\",\n },\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.GetGroups(ctx, \u0026GetGroupsArgs{\n\t\t\tDisplayNames: []string{\n\t\t\t\t\"group-a\",\n\t\t\t\t\"group-b\",\n\t\t\t},\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 java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder()\n .displayNames( \n \"group-a\",\n \"group-b\")\n .build()));\n\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getGroups\n Arguments:\n displayNames:\n - group-a\n - group-b\n```\n\n*Look up by display name prefix*\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst sales = pulumi.output(azuread.getGroups({\n displayNamePrefix: \"sales-\",\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nsales = azuread.get_groups(display_name_prefix=\"sales-\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var sales = Output.Create(AzureAD.GetGroups.InvokeAsync(new AzureAD.GetGroupsArgs\n {\n DisplayNamePrefix = \"sales-\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.GetGroups(ctx, \u0026GetGroupsArgs{\n\t\t\tDisplayNamePrefix: pulumi.StringRef(\"sales-\"),\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 java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 sales = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder()\n .displayNamePrefix(\"sales-\")\n .build()));\n\n }\n}\n```\n```yaml\nvariables:\n sales:\n Fn::Invoke:\n Function: azuread:getGroups\n Arguments:\n displayNamePrefix: sales-\n```\n\n*Look up all groups*\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst all = pulumi.output(azuread.getGroups({\n returnAll: true,\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nall = azuread.get_groups(return_all=True)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var all = Output.Create(AzureAD.GetGroups.InvokeAsync(new AzureAD.GetGroupsArgs\n {\n ReturnAll = true,\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.GetGroups(ctx, \u0026GetGroupsArgs{\n\t\t\tReturnAll: pulumi.BoolRef(true),\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 java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 all = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder()\n .returnAll(true)\n .build()));\n\n }\n}\n```\n```yaml\nvariables:\n all:\n Fn::Invoke:\n Function: azuread:getGroups\n Arguments:\n returnAll: true\n```\n\n*Look up all mail-enabled groups*\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst mailEnabled = pulumi.output(azuread.getGroups({\n mailEnabled: true,\n returnAll: true,\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nmail_enabled = azuread.get_groups(mail_enabled=True,\n return_all=True)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var mailEnabled = Output.Create(AzureAD.GetGroups.InvokeAsync(new AzureAD.GetGroupsArgs\n {\n MailEnabled = true,\n ReturnAll = true,\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.GetGroups(ctx, \u0026GetGroupsArgs{\n\t\t\tMailEnabled: pulumi.BoolRef(true),\n\t\t\tReturnAll: pulumi.BoolRef(true),\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 java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 mailEnabled = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder()\n .mailEnabled(true)\n .returnAll(true)\n .build()));\n\n }\n}\n```\n```yaml\nvariables:\n mailEnabled:\n Fn::Invoke:\n Function: azuread:getGroups\n Arguments:\n mailEnabled: true\n returnAll: true\n```\n\n*Look up all security-enabled groups that are not mail-enabled*\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst securityOnly = pulumi.output(azuread.getGroups({\n mailEnabled: false,\n returnAll: true,\n securityEnabled: true,\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nsecurity_only = azuread.get_groups(mail_enabled=False,\n return_all=True,\n security_enabled=True)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var securityOnly = Output.Create(AzureAD.GetGroups.InvokeAsync(new AzureAD.GetGroupsArgs\n {\n MailEnabled = false,\n ReturnAll = true,\n SecurityEnabled = true,\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.GetGroups(ctx, \u0026GetGroupsArgs{\n\t\t\tMailEnabled: pulumi.BoolRef(false),\n\t\t\tReturnAll: pulumi.BoolRef(true),\n\t\t\tSecurityEnabled: pulumi.BoolRef(true),\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 java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 securityOnly = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder()\n .mailEnabled(false)\n .returnAll(true)\n .securityEnabled(true)\n .build()));\n\n }\n}\n```\n```yaml\nvariables:\n securityOnly:\n Fn::Invoke:\n Function: azuread:getGroups\n Arguments:\n mailEnabled: false\n returnAll: true\n securityEnabled: true\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Gets Object IDs or Display Names for multiple Azure Active Directory groups.\n\n## API Permissions\n\nThe following API permissions are required in order to use this data source.\n\nWhen authenticated with a service principal, this data source requires one of the following application roles: `Group.Read.All` or `Directory.Read.All`\n\nWhen authenticated with a user principal, this data source does not require any additional roles.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*Look up by group name*\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getGroups({\n displayNames: [\n \"group-a\",\n \"group-b\",\n ],\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_groups(display_names=[\n \"group-a\",\n \"group-b\",\n])\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = AzureAD.GetGroups.Invoke(new()\n {\n DisplayNames = new[]\n {\n \"group-a\",\n \"group-b\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.GetGroups(ctx, \u0026GetGroupsArgs{\n\t\t\tDisplayNames: []string{\n\t\t\t\t\"group-a\",\n\t\t\t\t\"group-b\",\n\t\t\t},\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.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetGroupsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = AzureadFunctions.getGroups(GetGroupsArgs.builder()\n .displayNames( \n \"group-a\",\n \"group-b\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getGroups\n Arguments:\n displayNames:\n - group-a\n - group-b\n```\n\n*Look up by display name prefix*\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst sales = pulumi.output(azuread.getGroups({\n displayNamePrefix: \"sales-\",\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nsales = azuread.get_groups(display_name_prefix=\"sales-\")\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var sales = AzureAD.GetGroups.Invoke(new()\n {\n DisplayNamePrefix = \"sales-\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.GetGroups(ctx, \u0026GetGroupsArgs{\n\t\t\tDisplayNamePrefix: pulumi.StringRef(\"sales-\"),\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.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetGroupsArgs;\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 sales = AzureadFunctions.getGroups(GetGroupsArgs.builder()\n .displayNamePrefix(\"sales-\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n sales:\n Fn::Invoke:\n Function: azuread:getGroups\n Arguments:\n displayNamePrefix: sales-\n```\n\n*Look up all groups*\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst all = pulumi.output(azuread.getGroups({\n returnAll: true,\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nall = azuread.get_groups(return_all=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var all = AzureAD.GetGroups.Invoke(new()\n {\n ReturnAll = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.GetGroups(ctx, \u0026GetGroupsArgs{\n\t\t\tReturnAll: pulumi.BoolRef(true),\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.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetGroupsArgs;\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 all = AzureadFunctions.getGroups(GetGroupsArgs.builder()\n .returnAll(true)\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n all:\n Fn::Invoke:\n Function: azuread:getGroups\n Arguments:\n returnAll: true\n```\n\n*Look up all mail-enabled groups*\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst mailEnabled = pulumi.output(azuread.getGroups({\n mailEnabled: true,\n returnAll: true,\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nmail_enabled = azuread.get_groups(mail_enabled=True,\n return_all=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var mailEnabled = AzureAD.GetGroups.Invoke(new()\n {\n MailEnabled = true,\n ReturnAll = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.GetGroups(ctx, \u0026GetGroupsArgs{\n\t\t\tMailEnabled: pulumi.BoolRef(true),\n\t\t\tReturnAll: pulumi.BoolRef(true),\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.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetGroupsArgs;\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 mailEnabled = AzureadFunctions.getGroups(GetGroupsArgs.builder()\n .mailEnabled(true)\n .returnAll(true)\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n mailEnabled:\n Fn::Invoke:\n Function: azuread:getGroups\n Arguments:\n mailEnabled: true\n returnAll: true\n```\n\n*Look up all security-enabled groups that are not mail-enabled*\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst securityOnly = pulumi.output(azuread.getGroups({\n mailEnabled: false,\n returnAll: true,\n securityEnabled: true,\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nsecurity_only = azuread.get_groups(mail_enabled=False,\n return_all=True,\n security_enabled=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var securityOnly = AzureAD.GetGroups.Invoke(new()\n {\n MailEnabled = false,\n ReturnAll = true,\n SecurityEnabled = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.GetGroups(ctx, \u0026GetGroupsArgs{\n\t\t\tMailEnabled: pulumi.BoolRef(false),\n\t\t\tReturnAll: pulumi.BoolRef(true),\n\t\t\tSecurityEnabled: pulumi.BoolRef(true),\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.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetGroupsArgs;\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 securityOnly = AzureadFunctions.getGroups(GetGroupsArgs.builder()\n .mailEnabled(false)\n .returnAll(true)\n .securityEnabled(true)\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n securityOnly:\n Fn::Invoke:\n Function: azuread:getGroups\n Arguments:\n mailEnabled: false\n returnAll: true\n securityEnabled: true\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getGroups.\n", "properties": { @@ -7253,7 +7429,7 @@ } }, "azuread:index/getServicePrincipal:getServicePrincipal": { - "description": "Gets information about an existing service principal associated with an application within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this data source.\n\nWhen authenticated with a service principal, this data source requires one of the following application roles: `Application.Read.All` or `Directory.Read.All`\n\nWhen authenticated with a user principal, this data source does not require any additional roles.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*Look up by application display name*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getServicePrincipal({\n displayName: \"my-awesome-application\",\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_service_principal(display_name=\"my-awesome-application\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetServicePrincipal.InvokeAsync(new AzureAD.GetServicePrincipalArgs\n {\n DisplayName = \"my-awesome-application\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.LookupServicePrincipal(ctx, \u0026GetServicePrincipalArgs{\n\t\t\tDisplayName: pulumi.StringRef(\"my-awesome-application\"),\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 java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = Output.of(AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()\n .displayName(\"my-awesome-application\")\n .build()));\n\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getServicePrincipal\n Arguments:\n displayName: my-awesome-application\n```\n\n*Look up by application ID (client ID)*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getServicePrincipal({\n applicationId: \"00000000-0000-0000-0000-000000000000\",\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_service_principal(application_id=\"00000000-0000-0000-0000-000000000000\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetServicePrincipal.InvokeAsync(new AzureAD.GetServicePrincipalArgs\n {\n ApplicationId = \"00000000-0000-0000-0000-000000000000\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.LookupServicePrincipal(ctx, \u0026GetServicePrincipalArgs{\n\t\t\tApplicationId: pulumi.StringRef(\"00000000-0000-0000-0000-000000000000\"),\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 java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = Output.of(AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()\n .applicationId(\"00000000-0000-0000-0000-000000000000\")\n .build()));\n\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getServicePrincipal\n Arguments:\n applicationId: 00000000-0000-0000-0000-000000000000\n```\n\n*Look up by service principal object ID*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getServicePrincipal({\n objectId: \"00000000-0000-0000-0000-000000000000\",\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_service_principal(object_id=\"00000000-0000-0000-0000-000000000000\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetServicePrincipal.InvokeAsync(new AzureAD.GetServicePrincipalArgs\n {\n ObjectId = \"00000000-0000-0000-0000-000000000000\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.LookupServicePrincipal(ctx, \u0026GetServicePrincipalArgs{\n\t\t\tObjectId: pulumi.StringRef(\"00000000-0000-0000-0000-000000000000\"),\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 java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = Output.of(AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()\n .objectId(\"00000000-0000-0000-0000-000000000000\")\n .build()));\n\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getServicePrincipal\n Arguments:\n objectId: 00000000-0000-0000-0000-000000000000\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Gets information about an existing service principal associated with an application within Azure Active Directory.\n\n## API Permissions\n\nThe following API permissions are required in order to use this data source.\n\nWhen authenticated with a service principal, this data source requires one of the following application roles: `Application.Read.All` or `Directory.Read.All`\n\nWhen authenticated with a user principal, this data source does not require any additional roles.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*Look up by application display name*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getServicePrincipal({\n displayName: \"my-awesome-application\",\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_service_principal(display_name=\"my-awesome-application\")\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = AzureAD.GetServicePrincipal.Invoke(new()\n {\n DisplayName = \"my-awesome-application\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.LookupServicePrincipal(ctx, \u0026GetServicePrincipalArgs{\n\t\t\tDisplayName: pulumi.StringRef(\"my-awesome-application\"),\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.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetServicePrincipalArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()\n .displayName(\"my-awesome-application\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getServicePrincipal\n Arguments:\n displayName: my-awesome-application\n```\n\n*Look up by application ID (client ID)*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getServicePrincipal({\n applicationId: \"00000000-0000-0000-0000-000000000000\",\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_service_principal(application_id=\"00000000-0000-0000-0000-000000000000\")\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = AzureAD.GetServicePrincipal.Invoke(new()\n {\n ApplicationId = \"00000000-0000-0000-0000-000000000000\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.LookupServicePrincipal(ctx, \u0026GetServicePrincipalArgs{\n\t\t\tApplicationId: pulumi.StringRef(\"00000000-0000-0000-0000-000000000000\"),\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.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetServicePrincipalArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()\n .applicationId(\"00000000-0000-0000-0000-000000000000\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getServicePrincipal\n Arguments:\n applicationId: 00000000-0000-0000-0000-000000000000\n```\n\n*Look up by service principal object ID*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getServicePrincipal({\n objectId: \"00000000-0000-0000-0000-000000000000\",\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_service_principal(object_id=\"00000000-0000-0000-0000-000000000000\")\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = AzureAD.GetServicePrincipal.Invoke(new()\n {\n ObjectId = \"00000000-0000-0000-0000-000000000000\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.LookupServicePrincipal(ctx, \u0026GetServicePrincipalArgs{\n\t\t\tObjectId: pulumi.StringRef(\"00000000-0000-0000-0000-000000000000\"),\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.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetServicePrincipalArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()\n .objectId(\"00000000-0000-0000-0000-000000000000\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getServicePrincipal\n Arguments:\n objectId: 00000000-0000-0000-0000-000000000000\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getServicePrincipal.\n", "properties": { @@ -7458,7 +7634,7 @@ } }, "azuread:index/getServicePrincipals:getServicePrincipals": { - "description": "Gets basic information for multiple Azure Active Directory service principals.\n\n## API Permissions\n\nThe following API permissions are required in order to use this data source.\n\nWhen authenticated with a service principal, this data source requires one of the following application roles: `Application.Read.All` or `Directory.Read.All`\n\nWhen authenticated with a user principal, this data source does not require any additional roles.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*Look up by application display names*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getServicePrincipals({\n displayNames: [\n \"example-app\",\n \"another-app\",\n ],\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_service_principals(display_names=[\n \"example-app\",\n \"another-app\",\n])\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetServicePrincipals.InvokeAsync(new AzureAD.GetServicePrincipalsArgs\n {\n DisplayNames = \n {\n \"example-app\",\n \"another-app\",\n },\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.GetServicePrincipals(ctx, \u0026GetServicePrincipalsArgs{\n\t\t\tDisplayNames: []string{\n\t\t\t\t\"example-app\",\n\t\t\t\t\"another-app\",\n\t\t\t},\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 java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = Output.of(AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder()\n .displayNames( \n \"example-app\",\n \"another-app\")\n .build()));\n\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getServicePrincipals\n Arguments:\n displayNames:\n - example-app\n - another-app\n```\n\n*Look up by application IDs (client IDs*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getServicePrincipals({\n applicationIds: [\n \"11111111-0000-0000-0000-000000000000\",\n \"22222222-0000-0000-0000-000000000000\",\n \"33333333-0000-0000-0000-000000000000\",\n ],\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_service_principals(application_ids=[\n \"11111111-0000-0000-0000-000000000000\",\n \"22222222-0000-0000-0000-000000000000\",\n \"33333333-0000-0000-0000-000000000000\",\n])\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetServicePrincipals.InvokeAsync(new AzureAD.GetServicePrincipalsArgs\n {\n ApplicationIds = \n {\n \"11111111-0000-0000-0000-000000000000\",\n \"22222222-0000-0000-0000-000000000000\",\n \"33333333-0000-0000-0000-000000000000\",\n },\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.GetServicePrincipals(ctx, \u0026GetServicePrincipalsArgs{\n\t\t\tApplicationIds: []string{\n\t\t\t\t\"11111111-0000-0000-0000-000000000000\",\n\t\t\t\t\"22222222-0000-0000-0000-000000000000\",\n\t\t\t\t\"33333333-0000-0000-0000-000000000000\",\n\t\t\t},\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 java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = Output.of(AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder()\n .applicationIds( \n \"11111111-0000-0000-0000-000000000000\",\n \"22222222-0000-0000-0000-000000000000\",\n \"33333333-0000-0000-0000-000000000000\")\n .build()));\n\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getServicePrincipals\n Arguments:\n applicationIds:\n - 11111111-0000-0000-0000-000000000000\n - 22222222-0000-0000-0000-000000000000\n - 33333333-0000-0000-0000-000000000000\n```\n\n*Look up by service principal object IDs*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getServicePrincipals({\n objectIds: [\n \"00000000-0000-0000-0000-000000000000\",\n \"00000000-0000-0000-0000-111111111111\",\n \"00000000-0000-0000-0000-222222222222\",\n ],\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_service_principals(object_ids=[\n \"00000000-0000-0000-0000-000000000000\",\n \"00000000-0000-0000-0000-111111111111\",\n \"00000000-0000-0000-0000-222222222222\",\n])\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetServicePrincipals.InvokeAsync(new AzureAD.GetServicePrincipalsArgs\n {\n ObjectIds = \n {\n \"00000000-0000-0000-0000-000000000000\",\n \"00000000-0000-0000-0000-111111111111\",\n \"00000000-0000-0000-0000-222222222222\",\n },\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.GetServicePrincipals(ctx, \u0026GetServicePrincipalsArgs{\n\t\t\tObjectIds: []string{\n\t\t\t\t\"00000000-0000-0000-0000-000000000000\",\n\t\t\t\t\"00000000-0000-0000-0000-111111111111\",\n\t\t\t\t\"00000000-0000-0000-0000-222222222222\",\n\t\t\t},\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 java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = Output.of(AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder()\n .objectIds( \n \"00000000-0000-0000-0000-000000000000\",\n \"00000000-0000-0000-0000-111111111111\",\n \"00000000-0000-0000-0000-222222222222\")\n .build()));\n\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getServicePrincipals\n Arguments:\n objectIds:\n - 00000000-0000-0000-0000-000000000000\n - 00000000-0000-0000-0000-111111111111\n - 00000000-0000-0000-0000-222222222222\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Gets basic information for multiple Azure Active Directory service principals.\n\n## API Permissions\n\nThe following API permissions are required in order to use this data source.\n\nWhen authenticated with a service principal, this data source requires one of the following application roles: `Application.Read.All` or `Directory.Read.All`\n\nWhen authenticated with a user principal, this data source does not require any additional roles.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*Look up by application display names*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getServicePrincipals({\n displayNames: [\n \"example-app\",\n \"another-app\",\n ],\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_service_principals(display_names=[\n \"example-app\",\n \"another-app\",\n])\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = AzureAD.GetServicePrincipals.Invoke(new()\n {\n DisplayNames = new[]\n {\n \"example-app\",\n \"another-app\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.GetServicePrincipals(ctx, \u0026GetServicePrincipalsArgs{\n\t\t\tDisplayNames: []string{\n\t\t\t\t\"example-app\",\n\t\t\t\t\"another-app\",\n\t\t\t},\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.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetServicePrincipalsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder()\n .displayNames( \n \"example-app\",\n \"another-app\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getServicePrincipals\n Arguments:\n displayNames:\n - example-app\n - another-app\n```\n\n*Look up by application IDs (client IDs*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getServicePrincipals({\n applicationIds: [\n \"11111111-0000-0000-0000-000000000000\",\n \"22222222-0000-0000-0000-000000000000\",\n \"33333333-0000-0000-0000-000000000000\",\n ],\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_service_principals(application_ids=[\n \"11111111-0000-0000-0000-000000000000\",\n \"22222222-0000-0000-0000-000000000000\",\n \"33333333-0000-0000-0000-000000000000\",\n])\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = AzureAD.GetServicePrincipals.Invoke(new()\n {\n ApplicationIds = new[]\n {\n \"11111111-0000-0000-0000-000000000000\",\n \"22222222-0000-0000-0000-000000000000\",\n \"33333333-0000-0000-0000-000000000000\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.GetServicePrincipals(ctx, \u0026GetServicePrincipalsArgs{\n\t\t\tApplicationIds: []string{\n\t\t\t\t\"11111111-0000-0000-0000-000000000000\",\n\t\t\t\t\"22222222-0000-0000-0000-000000000000\",\n\t\t\t\t\"33333333-0000-0000-0000-000000000000\",\n\t\t\t},\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.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetServicePrincipalsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder()\n .applicationIds( \n \"11111111-0000-0000-0000-000000000000\",\n \"22222222-0000-0000-0000-000000000000\",\n \"33333333-0000-0000-0000-000000000000\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getServicePrincipals\n Arguments:\n applicationIds:\n - 11111111-0000-0000-0000-000000000000\n - 22222222-0000-0000-0000-000000000000\n - 33333333-0000-0000-0000-000000000000\n```\n\n*Look up by service principal object IDs*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getServicePrincipals({\n objectIds: [\n \"00000000-0000-0000-0000-000000000000\",\n \"00000000-0000-0000-0000-111111111111\",\n \"00000000-0000-0000-0000-222222222222\",\n ],\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_service_principals(object_ids=[\n \"00000000-0000-0000-0000-000000000000\",\n \"00000000-0000-0000-0000-111111111111\",\n \"00000000-0000-0000-0000-222222222222\",\n])\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = AzureAD.GetServicePrincipals.Invoke(new()\n {\n ObjectIds = new[]\n {\n \"00000000-0000-0000-0000-000000000000\",\n \"00000000-0000-0000-0000-111111111111\",\n \"00000000-0000-0000-0000-222222222222\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.GetServicePrincipals(ctx, \u0026GetServicePrincipalsArgs{\n\t\t\tObjectIds: []string{\n\t\t\t\t\"00000000-0000-0000-0000-000000000000\",\n\t\t\t\t\"00000000-0000-0000-0000-111111111111\",\n\t\t\t\t\"00000000-0000-0000-0000-222222222222\",\n\t\t\t},\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.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetServicePrincipalsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder()\n .objectIds( \n \"00000000-0000-0000-0000-000000000000\",\n \"00000000-0000-0000-0000-111111111111\",\n \"00000000-0000-0000-0000-222222222222\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getServicePrincipals\n Arguments:\n objectIds:\n - 00000000-0000-0000-0000-000000000000\n - 00000000-0000-0000-0000-111111111111\n - 00000000-0000-0000-0000-222222222222\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getServicePrincipals.\n", "properties": { @@ -7547,7 +7723,7 @@ } }, "azuread:index/getUser:getUser": { - "description": "Gets information about an Azure Active Directory user.\n\n## API Permissions\n\nThe following API permissions are required in order to use this data source.\n\nWhen authenticated with a service principal, this data source requires one of the following application roles: `User.Read.All` or `Directory.Read.All`\n\nWhen authenticated with a user principal, this data source does not require any additional roles.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getUser({\n userPrincipalName: \"user@hashicorp.com\",\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_user(user_principal_name=\"user@hashicorp.com\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetUser.InvokeAsync(new AzureAD.GetUserArgs\n {\n UserPrincipalName = \"user@hashicorp.com\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.LookupUser(ctx, \u0026GetUserArgs{\n\t\t\tUserPrincipalName: pulumi.StringRef(\"user@hashicorp.com\"),\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 java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = Output.of(AzureadFunctions.getUser(GetUserArgs.builder()\n .userPrincipalName(\"user@hashicorp.com\")\n .build()));\n\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getUser\n Arguments:\n userPrincipalName: user@hashicorp.com\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Gets information about an Azure Active Directory user.\n\n## API Permissions\n\nThe following API permissions are required in order to use this data source.\n\nWhen authenticated with a service principal, this data source requires one of the following application roles: `User.Read.All` or `Directory.Read.All`\n\nWhen authenticated with a user principal, this data source does not require any additional roles.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getUser({\n userPrincipalName: \"user@hashicorp.com\",\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_user(user_principal_name=\"user@hashicorp.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = AzureAD.GetUser.Invoke(new()\n {\n UserPrincipalName = \"user@hashicorp.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.LookupUser(ctx, \u0026GetUserArgs{\n\t\t\tUserPrincipalName: pulumi.StringRef(\"user@hashicorp.com\"),\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.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetUserArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = AzureadFunctions.getUser(GetUserArgs.builder()\n .userPrincipalName(\"user@hashicorp.com\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n Fn::Invoke:\n Function: azuread:getUser\n Arguments:\n userPrincipalName: user@hashicorp.com\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getUser.\n", "properties": { @@ -7808,7 +7984,7 @@ } }, "azuread:index/getUsers:getUsers": { - "description": "Gets basic information for multiple Azure Active Directory users.\n\n## API Permissions\n\nThe following API permissions are required in order to use this data source.\n\nWhen authenticated with a service principal, this data source requires one of the following application roles: `User.Read.All` or `Directory.Read.All`\n\nWhen authenticated with a user principal, this data source does not require any additional roles.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst users = pulumi.output(azuread.getUsers({\n userPrincipalNames: [\n \"kat@hashicorp.com\",\n \"byte@hashicorp.com\",\n ],\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nusers = azuread.get_users(user_principal_names=[\n \"kat@hashicorp.com\",\n \"byte@hashicorp.com\",\n])\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var users = Output.Create(AzureAD.GetUsers.InvokeAsync(new AzureAD.GetUsersArgs\n {\n UserPrincipalNames = \n {\n \"kat@hashicorp.com\",\n \"byte@hashicorp.com\",\n },\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.GetUsers(ctx, \u0026GetUsersArgs{\n\t\t\tUserPrincipalNames: []string{\n\t\t\t\t\"kat@hashicorp.com\",\n\t\t\t\t\"byte@hashicorp.com\",\n\t\t\t},\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 java.util.*;\nimport java.io.*;\nimport java.nio.*;\nimport com.pulumi.*;\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 users = Output.of(AzureadFunctions.getUsers(GetUsersArgs.builder()\n .userPrincipalNames( \n \"kat@hashicorp.com\",\n \"byte@hashicorp.com\")\n .build()));\n\n }\n}\n```\n```yaml\nvariables:\n users:\n Fn::Invoke:\n Function: azuread:getUsers\n Arguments:\n userPrincipalNames:\n - kat@hashicorp.com\n - byte@hashicorp.com\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Gets basic information for multiple Azure Active Directory users.\n\n## API Permissions\n\nThe following API permissions are required in order to use this data source.\n\nWhen authenticated with a service principal, this data source requires one of the following application roles: `User.Read.All` or `Directory.Read.All`\n\nWhen authenticated with a user principal, this data source does not require any additional roles.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst users = pulumi.output(azuread.getUsers({\n userPrincipalNames: [\n \"kat@hashicorp.com\",\n \"byte@hashicorp.com\",\n ],\n}));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nusers = azuread.get_users(user_principal_names=[\n \"kat@hashicorp.com\",\n \"byte@hashicorp.com\",\n])\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var users = AzureAD.GetUsers.Invoke(new()\n {\n UserPrincipalNames = new[]\n {\n \"kat@hashicorp.com\",\n \"byte@hashicorp.com\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread\"\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 := azuread.GetUsers(ctx, \u0026GetUsersArgs{\n\t\t\tUserPrincipalNames: []string{\n\t\t\t\t\"kat@hashicorp.com\",\n\t\t\t\t\"byte@hashicorp.com\",\n\t\t\t},\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.azuread.AzureadFunctions;\nimport com.pulumi.azuread.inputs.GetUsersArgs;\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 users = AzureadFunctions.getUsers(GetUsersArgs.builder()\n .userPrincipalNames( \n \"kat@hashicorp.com\",\n \"byte@hashicorp.com\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n users:\n Fn::Invoke:\n Function: azuread:getUsers\n Arguments:\n userPrincipalNames:\n - kat@hashicorp.com\n - byte@hashicorp.com\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getUsers.\n", "properties": { @@ -7896,43 +8072,5 @@ ] } } - }, - "language": { - "csharp": { - "compatibility": "tfbridge20", - "namespaces": { - "azuread": "AzureAD" - }, - "packageReferences": { - "Pulumi": "3.*" - } - }, - "go": { - "generateExtraInputTypes": true, - "generateResourceContainerTypes": true, - "importBasePath": "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" - }, - "nodejs": { - "compatibility": "tfbridge20", - "dependencies": { - "@pulumi/pulumi": "^3.0.0" - }, - "devDependencies": { - "@types/mime": "^2.0.0", - "@types/node": "^10.0.0" - }, - "disableUnionOutputTypes": true, - "packageDescription": "A Pulumi package for creating and managing azuread cloud resources.", - "packageName": "", - "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/hashicorp/terraform-provider-azuread)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi/pulumi-azuread` repo](https://github.com/pulumi/pulumi-azuread/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`hashicorp/terraform-provider-azuread` repo](https://github.com/hashicorp/terraform-provider-azuread/issues).", - "typescriptVersion": "" - }, - "python": { - "compatibility": "tfbridge20", - "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/hashicorp/terraform-provider-azuread)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi/pulumi-azuread` repo](https://github.com/pulumi/pulumi-azuread/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`hashicorp/terraform-provider-azuread` repo](https://github.com/hashicorp/terraform-provider-azuread/issues).", - "requires": { - "pulumi": "\u003e=3.0.0,\u003c4.0.0" - } - } } } \ No newline at end of file diff --git a/provider/go.mod b/provider/go.mod index 8677d7960..3ff789afc 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -4,24 +4,32 @@ go 1.18 require ( github.com/hashicorp/terraform-provider-azuread/shim v0.0.0 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.23.0 - github.com/pulumi/pulumi/sdk/v3 v3.31.1 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.28.0 + github.com/pulumi/pulumi/sdk/v3 v3.38.0 +) + +replace ( + github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20220725190814-23001ad6ec03 + github.com/hashicorp/terraform-provider-azuread/shim => ./shim + github.com/hashicorp/vault => github.com/hashicorp/vault v1.2.0 ) require ( - cloud.google.com/go v0.99.0 // indirect + cloud.google.com/go v0.100.2 // indirect + cloud.google.com/go/compute v1.5.0 // indirect + cloud.google.com/go/iam v0.3.0 // indirect cloud.google.com/go/kms v1.1.0 // indirect cloud.google.com/go/logging v1.0.0 // indirect - cloud.google.com/go/storage v1.15.0 // indirect + cloud.google.com/go/storage v1.22.0 // indirect github.com/Azure/azure-pipeline-go v0.2.3 // indirect - github.com/Azure/azure-sdk-for-go v54.0.0+incompatible // indirect - github.com/Azure/azure-storage-blob-go v0.13.0 // indirect + github.com/Azure/azure-sdk-for-go v57.0.0+incompatible // indirect + github.com/Azure/azure-storage-blob-go v0.14.0 // indirect github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect github.com/Azure/go-autorest v14.2.0+incompatible // indirect - github.com/Azure/go-autorest/autorest v0.11.18 // indirect - github.com/Azure/go-autorest/autorest/adal v0.9.13 // indirect - github.com/Azure/go-autorest/autorest/azure/auth v0.5.7 // indirect - github.com/Azure/go-autorest/autorest/azure/cli v0.4.2 // indirect + github.com/Azure/go-autorest/autorest v0.11.20 // indirect + github.com/Azure/go-autorest/autorest/adal v0.9.15 // indirect + github.com/Azure/go-autorest/autorest/azure/auth v0.5.8 // indirect + github.com/Azure/go-autorest/autorest/azure/cli v0.4.3 // indirect github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect github.com/Azure/go-autorest/autorest/to v0.4.0 // indirect github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect @@ -30,51 +38,64 @@ require ( github.com/Masterminds/goutils v1.1.0 // indirect github.com/Masterminds/semver v1.5.0 // indirect github.com/Masterminds/sprig v2.22.0+incompatible // indirect - github.com/Microsoft/go-winio v0.5.1 // indirect + github.com/Microsoft/go-winio v0.5.2 // indirect + github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 // indirect + github.com/acomagu/bufpipe v1.0.3 // indirect + github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect github.com/agext/levenshtein v1.2.3 // indirect github.com/apparentlymart/go-cidr v1.1.0 // indirect github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect github.com/armon/go-radix v1.0.0 // indirect - github.com/aws/aws-sdk-go v1.38.35 // indirect + github.com/aws/aws-sdk-go v1.40.34 // indirect + github.com/aws/aws-sdk-go-v2 v1.9.0 // indirect + github.com/aws/aws-sdk-go-v2/config v1.7.0 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.4.0 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.5.0 // indirect + github.com/aws/aws-sdk-go-v2/internal/ini v1.2.2 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.3.0 // indirect + github.com/aws/aws-sdk-go-v2/service/kms v1.5.0 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.4.0 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.7.0 // indirect + github.com/aws/smithy-go v1.8.0 // indirect github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect github.com/bgentry/speakeasy v0.1.0 // indirect github.com/blang/semver v3.5.1+incompatible // indirect - github.com/census-instrumentation/opencensus-proto v0.3.0 // indirect - github.com/cespare/xxhash/v2 v2.1.2 // indirect + github.com/cenkalti/backoff/v3 v3.2.2 // indirect github.com/cheggaaa/pb v1.0.29 // indirect - github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4 // indirect - github.com/cncf/xds/go v0.0.0-20211130200136-a8f946100490 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dimchansky/utfbom v1.1.1 // indirect github.com/djherbis/times v1.5.0 // indirect github.com/dustin/go-humanize v1.0.0 // indirect + github.com/edsrzf/mmap-go v1.1.0 // indirect github.com/emirpasic/gods v1.12.0 // indirect - github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1 // indirect - github.com/envoyproxy/protoc-gen-validate v0.6.2 // indirect github.com/ettle/strcase v0.1.1 // indirect github.com/fatih/color v1.13.0 // indirect - github.com/form3tech-oss/jwt-go v3.2.2+incompatible // indirect github.com/gedex/inflector v0.0.0-20170307190818-16278e9db813 // indirect + github.com/go-git/gcfg v1.5.0 // indirect + github.com/go-git/go-billy/v5 v5.3.1 // indirect + github.com/go-git/go-git/v5 v5.4.2 // indirect github.com/gofrs/uuid v4.2.0+incompatible // indirect github.com/gogo/protobuf v1.3.2 // indirect + github.com/golang-jwt/jwt/v4 v4.0.0 // indirect github.com/golang/glog v1.0.0 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/protobuf v1.5.2 // indirect - github.com/golang/snappy v0.0.3 // indirect + github.com/golang/snappy v0.0.4 // indirect github.com/google/go-cmp v0.5.8 // indirect github.com/google/go-querystring v1.1.0 // indirect github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect - github.com/google/uuid v1.2.0 // indirect + github.com/google/uuid v1.3.0 // indirect github.com/google/wire v0.5.0 // indirect - github.com/googleapis/gax-go/v2 v2.1.1 // indirect + github.com/googleapis/gax-go/v2 v2.2.0 // indirect + github.com/googleapis/go-type-adapters v1.0.0 // indirect github.com/gorilla/mux v1.7.4 // indirect github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-checkpoint v0.5.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect - github.com/hashicorp/go-getter v1.5.3 // indirect - github.com/hashicorp/go-hclog v1.2.0 // indirect + github.com/hashicorp/go-getter v1.6.1 // indirect + github.com/hashicorp/go-hclog v1.2.1 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect github.com/hashicorp/go-plugin v1.4.4 // indirect github.com/hashicorp/go-retryablehttp v0.7.0 // indirect @@ -82,23 +103,23 @@ require ( github.com/hashicorp/go-safetemp v1.0.0 // indirect github.com/hashicorp/go-sockaddr v1.0.2 // indirect github.com/hashicorp/go-uuid v1.0.3 // indirect - github.com/hashicorp/go-version v1.5.0 // indirect - github.com/hashicorp/hc-install v0.3.2 // indirect + github.com/hashicorp/go-version v1.6.0 // indirect + github.com/hashicorp/hc-install v0.4.0 // indirect github.com/hashicorp/hcl v1.0.0 // indirect - github.com/hashicorp/hcl/v2 v2.12.0 // indirect + github.com/hashicorp/hcl/v2 v2.13.0 // indirect github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93 // indirect github.com/hashicorp/logutils v1.0.0 // indirect - github.com/hashicorp/terraform-exec v0.16.1 // indirect + github.com/hashicorp/terraform-exec v0.17.2 // indirect github.com/hashicorp/terraform-json v0.14.0 // indirect - github.com/hashicorp/terraform-plugin-go v0.9.1 // indirect - github.com/hashicorp/terraform-plugin-log v0.4.0 // indirect + github.com/hashicorp/terraform-plugin-go v0.12.0 // indirect + github.com/hashicorp/terraform-plugin-log v0.6.0 // indirect github.com/hashicorp/terraform-plugin-sdk v1.7.0 // indirect - github.com/hashicorp/terraform-plugin-sdk/v2 v2.17.0 // indirect - github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220711100922-17fee5b9cd86 // indirect - github.com/hashicorp/terraform-registry-address v0.0.0-20220131103327-5c1c5e123275 // indirect + github.com/hashicorp/terraform-plugin-sdk/v2 v2.19.0 // indirect + github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220805021720-b23d151b8feb // indirect + github.com/hashicorp/terraform-registry-address v0.0.0-20220623143253-7d51757b572c // indirect github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect - github.com/hashicorp/vault/api v1.1.0 // indirect - github.com/hashicorp/vault/sdk v0.2.0 // indirect + github.com/hashicorp/vault/api v1.1.1 // indirect + github.com/hashicorp/vault/sdk v0.2.1 // indirect github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 // indirect github.com/huandu/xstrings v1.3.2 // indirect github.com/iancoleman/strcase v0.2.0 // indirect @@ -110,7 +131,7 @@ require ( github.com/json-iterator/go v1.1.12 // indirect github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect github.com/kevinburke/ssh_config v1.1.0 // indirect - github.com/klauspost/compress v1.12.2 // indirect + github.com/klauspost/compress v1.13.5 // indirect github.com/manicminer/hamilton v0.46.0 // indirect github.com/mattn/go-colorable v0.1.12 // indirect github.com/mattn/go-ieproxy v0.0.1 // indirect @@ -129,18 +150,19 @@ require ( github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/natefinch/atomic v1.0.1 // indirect github.com/oklog/run v1.1.0 // indirect github.com/opentracing/basictracer-go v1.1.0 // indirect github.com/opentracing/opentracing-go v1.2.0 // indirect github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386 // indirect - github.com/pierrec/lz4 v2.6.0+incompatible // indirect + github.com/pierrec/lz4 v2.6.1+incompatible // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pkg/term v1.1.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/posener/complete v1.2.1 // indirect - github.com/pulumi/pulumi-java/pkg v0.1.0 // indirect - github.com/pulumi/pulumi-yaml v0.3.0 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.31.2-0.20220504080053-86c015b9e64a // indirect + github.com/pulumi/pulumi-java/pkg v0.5.3 // indirect + github.com/pulumi/pulumi-yaml v0.5.4 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.38.0 // indirect github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e // indirect github.com/rivo/uniseg v0.2.0 // indirect github.com/rjeczalik/notify v0.9.2 // indirect @@ -149,13 +171,14 @@ require ( github.com/ryanuber/go-glob v1.0.0 // indirect github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 // indirect + github.com/segmentio/asm v1.1.3 // indirect + github.com/segmentio/encoding v0.3.5 // indirect github.com/sergi/go-diff v1.2.0 // indirect github.com/spf13/afero v1.6.0 // indirect github.com/spf13/cast v1.4.1 // indirect github.com/spf13/cobra v1.4.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/src-d/gcfg v1.4.0 // indirect - github.com/stretchr/testify v1.7.1 // indirect + github.com/stretchr/testify v1.7.2 // indirect github.com/terraform-providers/terraform-provider-archive v1.3.0 // indirect github.com/terraform-providers/terraform-provider-http v1.2.0 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect @@ -174,35 +197,28 @@ require ( github.com/zclconf/go-cty-yaml v1.0.1 // indirect go.opencensus.io v0.23.0 // indirect go.uber.org/atomic v1.9.0 // indirect - gocloud.dev v0.23.0 // indirect - gocloud.dev/secrets/hashivault v0.23.0 // indirect - golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29 // indirect + gocloud.dev v0.24.0 // indirect + gocloud.dev/secrets/hashivault v0.24.0 // indirect + golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa // indirect golang.org/x/mod v0.5.0 // indirect golang.org/x/net v0.0.0-20220407224826-aac1ed45d8e3 // indirect golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a // indirect golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect - golang.org/x/sys v0.0.0-20220406163625-3f8b81556e12 // indirect + golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect golang.org/x/text v0.3.7 // indirect - golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba // indirect + golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect - google.golang.org/api v0.62.0 // indirect + google.golang.org/api v0.74.0 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac // indirect - google.golang.org/grpc v1.46.0 // indirect + google.golang.org/grpc v1.48.0 // indirect google.golang.org/protobuf v1.28.0 // indirect gopkg.in/AlecAivazis/survey.v1 v1.8.9-0.20200217094205-6773bdf39b7f // indirect - gopkg.in/square/go-jose.v2 v2.5.1 // indirect - gopkg.in/src-d/go-billy.v4 v4.3.2 // indirect - gopkg.in/src-d/go-git.v4 v4.13.1 // indirect + gopkg.in/square/go-jose.v2 v2.6.0 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect - gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect + lukechampine.com/frand v1.4.2 // indirect sourcegraph.com/sourcegraph/appdash v0.0.0-20211028080628-e2786a622600 // indirect ) - -replace ( - github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20220523144019-a9dc436975cc - github.com/hashicorp/terraform-provider-azuread/shim => ./shim - github.com/hashicorp/vault => github.com/hashicorp/vault v1.2.0 -) diff --git a/provider/go.sum b/provider/go.sum index 2c9c23ef2..03de344aa 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -3,7 +3,6 @@ bazil.org/fuse v0.0.0-20180421153158-65cc252bf669/go.mod h1:Xbm+BRKSBEpa4q4hTSxo cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.39.0/go.mod h1:rVLT6fkc8chs9sfPtFc1SBH6em7n+ZoXaG+87tDISts= cloud.google.com/go v0.43.0/go.mod h1:BOSR3VbTLkk6FDC/TcffxP4NF/FFBGA5ku+jvKOP7pg= cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= @@ -23,58 +22,76 @@ cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPT cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg= cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8= cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= +cloud.google.com/go v0.82.0/go.mod h1:vlKccHJGuFBFufnAnuB08dfEH9Y3H7dzDzRECFdC2TA= cloud.google.com/go v0.83.0/go.mod h1:Z7MJUsANfY0pYPdw0lbnivPx4/vhy/e2FEkSkF7vAVY= cloud.google.com/go v0.84.0/go.mod h1:RazrYuxIK6Kb7YrzzhPoLmCVzl7Sup4NrbKPg8KHSUM= cloud.google.com/go v0.87.0/go.mod h1:TpDYlFy7vuLzZMMZ+B6iRiELaY7z/gJPaqbMx6mlWcY= +cloud.google.com/go v0.88.0/go.mod h1:dnKwfYbP9hQhefiUvpbcAyoGSHUrOxR20JVElLiUvEY= +cloud.google.com/go v0.89.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aDQ= cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aDQ= +cloud.google.com/go v0.92.2/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= +cloud.google.com/go v0.92.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= +cloud.google.com/go v0.94.0/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= -cloud.google.com/go v0.98.0/go.mod h1:ua6Ush4NALrHk5QXDWnjvZHN93OuF0HfuEPq9I1X0cM= -cloud.google.com/go v0.99.0 h1:y/cM2iqGgGi5D5DQZl6D9STN/3dR/Vx5Mp8s752oJTY= cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= +cloud.google.com/go v0.100.2 h1:t9Iw5QH5v4XtlEQaCtUY7x6sCABps8sW0acw7e2WQ6Y= +cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow= +cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM= +cloud.google.com/go/compute v1.5.0 h1:b1zWmYuuHz7gO9kDcM/EpHGr06UgsYNRpNJzI2kFiLM= +cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= cloud.google.com/go/firestore v1.5.0/go.mod h1:c4nNYR1qdq7eaZ+jSc5fonrQN2k3M7sWATcYTiakjEo= +cloud.google.com/go/iam v0.3.0 h1:exkAomrVUuzx9kWFI1wm3KI0uoDeUFPB4kKGzx6x+Gc= +cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp4bnY= +cloud.google.com/go/kms v0.1.0/go.mod h1:8Qp8PCAypHg4FdmlyW1QRAv09BGQ9Uzh7JnmIZxPk+c= cloud.google.com/go/kms v1.1.0 h1:1yc4rLqCkVDS9Zvc7m+3mJ47kw0Uo5Q5+sMjcmUVUeM= cloud.google.com/go/kms v1.1.0/go.mod h1:WdbppnCDMDpOvoYBMn1+gNmOeEoZYqAv+HeuKARGCXI= cloud.google.com/go/logging v1.0.0 h1:kaunpnoEh9L4hu6JUsBa8Y20LBfKnCuDhKUgdZp7oK8= cloud.google.com/go/logging v1.0.0/go.mod h1:V1cc3ogwobYzQq5f2R7DS/GvRIrI4FKj01Gs5glwAls= +cloud.google.com/go/monitoring v0.1.0/go.mod h1:Hpm3XfzJv+UTiXzCG5Ffp0wijzHTC7Cv4eR7o3x/fEE= cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= -cloud.google.com/go/pubsub v1.10.3/go.mod h1:FUcc28GpGxxACoklPsE1sCtbkY4Ix+ro7yvw+h82Jn4= +cloud.google.com/go/pubsub v1.16.0/go.mod h1:6A8EfoWZ/lUvCWStKGwAWauJZSiuV0Mkmu6WilK/TxQ= +cloud.google.com/go/secretmanager v0.1.0/go.mod h1:3nGKHvnzDUVit7U0S9KAKJ4aOsO1xtwRG+7ey5LK1bM= cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= -cloud.google.com/go/storage v1.15.0 h1:Ljj+ZXVEhCr/1+4ZhvtteN1ND7UUsNTlduGclLh8GO0= -cloud.google.com/go/storage v1.15.0/go.mod h1:mjjQMoxxyGH7Jr8K5qrx6N2O0AHsczI61sMNn03GIZI= +cloud.google.com/go/storage v1.16.1/go.mod h1:LaNorbty3ehnU3rEjXSNV/NRgQA0O8Y+uh6bPe5UOk4= +cloud.google.com/go/storage v1.22.0 h1:NUV0NNp9nkBuW66BFRLuMgldN60C57ET3dhbwLIYio8= +cloud.google.com/go/storage v1.22.0/go.mod h1:GbaLEoMqbVm6sx3Z0R++gSiBlgMv6yUi2q1DeGFKQgE= +cloud.google.com/go/trace v0.1.0/go.mod h1:wxEwsoeRVPbeSkt7ZC9nWCgmoKQRAoySN7XHW2AmI7g= contrib.go.opencensus.io/exporter/aws v0.0.0-20200617204711-c478e41e60e9/go.mod h1:uu1P0UCM/6RbsMrgPa98ll8ZcHM858i/AD06a9aLRCA= -contrib.go.opencensus.io/exporter/stackdriver v0.13.5/go.mod h1:aXENhDJ1Y4lIg4EUaVTwzvYETVNZk10Pu26tevFKLUc= +contrib.go.opencensus.io/exporter/stackdriver v0.13.8/go.mod h1:huNtlWx75MwO7qMs0KrMxPZXzNNWebav1Sq/pm02JdQ= contrib.go.opencensus.io/integrations/ocsql v0.1.7/go.mod h1:8DsSdjz3F+APR+0z0WkU1aRorQCFfRxvqjUUPMbF3fE= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/AlecAivazis/survey/v2 v2.0.5/go.mod h1:WYBhg6f0y/fNYUuesWQc0PKbJcEliGcYHB9sNT3Bg74= github.com/Azure/azure-amqp-common-go/v3 v3.1.0/go.mod h1:PBIGdzcO1teYoufTKMcGibdKaYZv4avS+O6LNIp8bq0= +github.com/Azure/azure-amqp-common-go/v3 v3.1.1/go.mod h1:YsDaPfaO9Ub2XeSKdIy2DfwuiQlHQCauHJwSqtrkECI= github.com/Azure/azure-pipeline-go v0.2.3 h1:7U9HBg1JFK3jHl5qmo4CTZKFTVgMwdFHMVtCdfBE21U= github.com/Azure/azure-pipeline-go v0.2.3/go.mod h1:x841ezTBIMG6O3lAcl8ATHnsOPVl2bqk7S3ta6S6u4k= github.com/Azure/azure-sdk-for-go v51.1.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-sdk-for-go v54.0.0+incompatible h1:Bq3L9LF0DHCexlT0fccwxgrOMfjHx8LGz+d+L7gGQv4= -github.com/Azure/azure-sdk-for-go v54.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-service-bus-go v0.10.11/go.mod h1:AWw9eTTWZVZyvgpPahD1ybz3a8/vT3GsJDS8KYex55U= -github.com/Azure/azure-storage-blob-go v0.13.0 h1:lgWHvFh+UYBNVQLFHXkvul2f6yOPA9PIH82RTG2cSwc= -github.com/Azure/azure-storage-blob-go v0.13.0/go.mod h1:pA9kNqtjUeQF2zOSu4s//nUdBD+e64lEuc4sVnuOfNs= +github.com/Azure/azure-sdk-for-go v57.0.0+incompatible h1:isVki3PbIFrwKvKdVP1byxo73/pt+Nn174YxW1k4PNw= +github.com/Azure/azure-sdk-for-go v57.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= +github.com/Azure/azure-service-bus-go v0.10.16/go.mod h1:MlkLwGGf1ewcx5jZadn0gUEty+tTg0RaElr6bPf+QhI= +github.com/Azure/azure-storage-blob-go v0.14.0 h1:1BCg74AmVdYwO3dlKwtFU1V0wU2PZdREkXvAmZJRUlM= +github.com/Azure/azure-storage-blob-go v0.14.0/go.mod h1:SMqIBi+SuiQH32bvyjngEewEeXoPfKMgWlBDaYf6fck= github.com/Azure/go-amqp v0.13.0/go.mod h1:qj+o8xPCz9tMSbQ83Vp8boHahuRDl5mkNHyt1xlxUTs= -github.com/Azure/go-amqp v0.13.4/go.mod h1:wbpCKA8tR5MLgRyIu+bb+S6ECdIDdYJ0NlpFE9xsBPI= -github.com/Azure/go-amqp v0.13.7/go.mod h1:wbpCKA8tR5MLgRyIu+bb+S6ECdIDdYJ0NlpFE9xsBPI= +github.com/Azure/go-amqp v0.13.11/go.mod h1:D5ZrjQqB1dyp1A+G73xeL/kNn7D5qHJIIsNNps7YNmk= +github.com/Azure/go-amqp v0.13.12/go.mod h1:D5ZrjQqB1dyp1A+G73xeL/kNn7D5qHJIIsNNps7YNmk= github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= @@ -82,18 +99,21 @@ github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= github.com/Azure/go-autorest/autorest v0.11.3/go.mod h1:JFgpikqFJ/MleTTxwepExTKnFUKKszPS8UavbQYUMuw= github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= -github.com/Azure/go-autorest/autorest v0.11.18 h1:90Y4srNYrwOtAgVo3ndrQkTYn6kf1Eg/AjTFJ8Is2aM= github.com/Azure/go-autorest/autorest v0.11.18/go.mod h1:dSiJPy22c3u0OtOKDNttNgqpNFY/GeWa7GH/Pz56QRA= +github.com/Azure/go-autorest/autorest v0.11.20 h1:s8H1PbCZSqg/DH7JMlOz6YMig6htWLNPsjDdlLqCx3M= +github.com/Azure/go-autorest/autorest v0.11.20/go.mod h1:o3tqFY+QR40VOlk+pV4d77mORO64jOXSgEnPQgLK6JY= github.com/Azure/go-autorest/autorest/adal v0.9.0/go.mod h1:/c022QCutn2P7uY+/oQWWNcK9YU+MH96NgK+jErpbcg= -github.com/Azure/go-autorest/autorest/adal v0.9.2/go.mod h1:/3SMAM86bP6wC9Ev35peQDUeqFZBMH07vvUOmg4z/fE= github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= github.com/Azure/go-autorest/autorest/adal v0.9.11/go.mod h1:nBKAnTomx8gDtl+3ZCJv2v0KACFHWTB2drffI1B68Pk= -github.com/Azure/go-autorest/autorest/adal v0.9.13 h1:Mp5hbtOePIzM8pJVRa3YLrWWmZtoxRXqUEzCfJt3+/Q= github.com/Azure/go-autorest/autorest/adal v0.9.13/go.mod h1:W/MM4U6nLxnIskrw4UwWzlHfGjwUS50aOsc/I3yuU8M= -github.com/Azure/go-autorest/autorest/azure/auth v0.5.7 h1:8DQB8yl7aLQuP+nuR5e2RO6454OvFlSTXXaNHshc16s= -github.com/Azure/go-autorest/autorest/azure/auth v0.5.7/go.mod h1:AkzUsqkrdmNhfP2i54HqINVQopw0CLDnvHpJ88Zz1eI= -github.com/Azure/go-autorest/autorest/azure/cli v0.4.2 h1:dMOmEJfkLKW/7JsokJqkyoYSgmR08hi9KrhjZb+JALY= +github.com/Azure/go-autorest/autorest/adal v0.9.14/go.mod h1:W/MM4U6nLxnIskrw4UwWzlHfGjwUS50aOsc/I3yuU8M= +github.com/Azure/go-autorest/autorest/adal v0.9.15 h1:X+p2GF0GWyOiSmqohIaEeuNFNDY4I4EOlVuUQvFdWMk= +github.com/Azure/go-autorest/autorest/adal v0.9.15/go.mod h1:tGMin8I49Yij6AQ+rvV+Xa/zwxYQB5hmsd6DkfAx2+A= +github.com/Azure/go-autorest/autorest/azure/auth v0.5.8 h1:TzPg6B6fTZ0G1zBf3T54aI7p3cAT6u//TOXGPmFMOXg= +github.com/Azure/go-autorest/autorest/azure/auth v0.5.8/go.mod h1:kxyKZTSfKh8OVFWPAgOgQ/frrJgeYQJPyR5fLFmXko4= github.com/Azure/go-autorest/autorest/azure/cli v0.4.2/go.mod h1:7qkJkT+j6b+hIpzMOwPChJhTqS8VbsqqgULzMNRugoM= +github.com/Azure/go-autorest/autorest/azure/cli v0.4.3 h1:DOhB+nXkF7LN0JfBGB5YtCF6QLK8mLe4psaHF7ZQEKM= +github.com/Azure/go-autorest/autorest/azure/cli v0.4.3/go.mod h1:yAQ2b6eP/CmLPnmLvxtT1ALIY3OR1oFcCqVBi8vHiTc= github.com/Azure/go-autorest/autorest/date v0.3.0 h1:7gUk1U5M/CQbp9WoqinNzJar+8KY+LPI6wiWrP/myHw= github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= github.com/Azure/go-autorest/autorest/mocks v0.4.0/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= @@ -111,9 +131,8 @@ github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBp github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= -github.com/GoogleCloudPlatform/cloudsql-proxy v1.22.0/go.mod h1:mAm5O/zik2RFmcpigNjg6nMotDL8ZXJaxKzgGVcSMFA= +github.com/GoogleCloudPlatform/cloudsql-proxy v1.24.0/go.mod h1:3tx938GhY4FC+E1KT/jNjDw7Z5qxAEtIiERJ2sXjnII= github.com/HdrHistogram/hdrhistogram-go v1.1.2 h1:5IcZpTvzydCQeHzK4Ef/D5rrSqwxob0t8PQPMybUNFM= -github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= github.com/Masterminds/goutils v1.1.0 h1:zukEsf/1JZwCMgHiK3GZftabmxiCw4apj3a28RPBiVg= github.com/Masterminds/goutils v1.1.0/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= @@ -124,25 +143,23 @@ github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jB github.com/Microsoft/go-winio v0.4.15-0.20190919025122-fc70bd9a86b5/go.mod h1:tTuCMEN+UleMWgg9dVx4Hu52b1bJo+59jBh3ajtinzw= github.com/Microsoft/go-winio v0.4.16/go.mod h1:XB6nPKklQyQ7GC9LdcBEcBl8PF76WugXOPRXwdLnMv0= github.com/Microsoft/go-winio v0.5.0/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84= -github.com/Microsoft/go-winio v0.5.1 h1:aPJp2QD7OOrhO5tQXqQoGSJc+DjDtWTGLOmNyAm6FgY= -github.com/Microsoft/go-winio v0.5.1/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84= +github.com/Microsoft/go-winio v0.5.2 h1:a9IhgEQBCUEk6QCdml9CiJGhAws+YwffDHEMp1VMrpA= +github.com/Microsoft/go-winio v0.5.2/go.mod h1:WpS1mjBmmwHBEWmogvA2mj8546UReBk4v8QkMxJ6pZY= github.com/Microsoft/hcsshim v0.8.9/go.mod h1:5692vkUqntj1idxauYlpoINNKeqCiG6Sg38RRsjT5y8= github.com/Netflix/go-expect v0.0.0-20180615182759-c93bf25de8e8 h1:xzYJEypr/85nBpB11F9br+3HUrpgb+fcm5iADzXXYEw= github.com/Netflix/go-expect v0.0.0-20180615182759-c93bf25de8e8/go.mod h1:oX5x61PbNXchhh0oikYAH+4Pcfw5LKv21+Jnpr6r6Pc= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 h1:YoJbenK9C67SkzkDfmQuVln04ygHj3vjZfd9FL+GmQQ= github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7/go.mod h1:z4/9nQmJSSwwds7ejkxaJwO37dru3geImFUdJlaLzQo= -github.com/StackExchange/wmi v1.2.1/go.mod h1:rcmrprowKIVzvc+NUiLncP2uuArMWLCbu9SBzvHz7e8= github.com/acomagu/bufpipe v1.0.3 h1:fxAGrHZTgQ9w5QqVItgzwj235/uYZYgbXitB+dLupOk= github.com/acomagu/bufpipe v1.0.3/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4= +github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da h1:KjTM2ks9d14ZYCvmHS9iAKVt9AyzRSqNU1qabPih5BY= +github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da/go.mod h1:eHEWzANqSiWQsof+nXEI9bUVUyV6F53Fp89EuCh2EAA= github.com/agext/levenshtein v1.2.1/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/agext/levenshtein v1.2.2/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo= github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/agl/ed25519 v0.0.0-20170116200512-5312a6153412/go.mod h1:WPjqKcmVOxf0XSf3YxCJs6N6AOSrOx3obionmG7T0y0= -github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= -github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7 h1:uSoVVbwJiQipAclBbw+8quDsfcvFjOpI5iCf4p/cqCs= -github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7/go.mod h1:6zEj6s6u/ghQa61ZWa/C2Aw3RkjiTBOix7dkqa1VLIs= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= @@ -160,7 +177,6 @@ github.com/apparentlymart/go-textseg v1.0.0/go.mod h1:z96Txxhf3xSFMPmb5X/1W05FF/ github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec= github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw= github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo= -github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= github.com/armon/go-metrics v0.3.0/go.mod h1:zXjbSimjXTd7vOpY8B0/2LpvNvDoXBuplAD+gJD3GYs= github.com/armon/go-metrics v0.3.3/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= @@ -171,12 +187,35 @@ github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkY github.com/aws/aws-sdk-go v1.15.27/go.mod h1:mFuSZ37Z9YOHbQEwBWztmVzqXrEkub65tZoCYDt7FT0= github.com/aws/aws-sdk-go v1.15.78/go.mod h1:E3/ieXAlvM0XWO57iftYVDLLvQ824smPP3ATZkfNZeM= github.com/aws/aws-sdk-go v1.19.39/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.23.20/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.25.3/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.25.37/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.30.27/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0= -github.com/aws/aws-sdk-go v1.38.35 h1:7AlAO0FC+8nFjxiGKEmq0QLpiA8/XFr6eIxgRTwkdTg= -github.com/aws/aws-sdk-go v1.38.35/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= +github.com/aws/aws-sdk-go v1.37.0/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= +github.com/aws/aws-sdk-go v1.40.34 h1:SBYmodndE2d4AYucuuJnOXk4MD1SFbucoIdpwKVKeSA= +github.com/aws/aws-sdk-go v1.40.34/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q= +github.com/aws/aws-sdk-go-v2 v1.9.0 h1:+S+dSqQCN3MSU5vJRu1HqHrq00cJn6heIMU7X9hcsoo= +github.com/aws/aws-sdk-go-v2 v1.9.0/go.mod h1:cK/D0BBs0b/oWPIcX/Z/obahJK1TT7IPVjy53i/mX/4= +github.com/aws/aws-sdk-go-v2/config v1.7.0 h1:J2cZ7qe+3IpqBEXnHUrFrOjoB9BlsXg7j53vxcl5IVg= +github.com/aws/aws-sdk-go-v2/config v1.7.0/go.mod h1:w9+nMZ7soXCe5nT46Ri354SNhXDQ6v+V5wqDjnZE+GY= +github.com/aws/aws-sdk-go-v2/credentials v1.4.0 h1:kmvesfjY861FzlCU9mvAfe01D9aeXcG2ZuC+k9F2YLM= +github.com/aws/aws-sdk-go-v2/credentials v1.4.0/go.mod h1:dgGR+Qq7Wjcd4AOAW5Rf5Tnv3+x7ed6kETXyS9WCuAY= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.5.0 h1:OxTAgH8Y4BXHD6PGCJ8DHx2kaZPCQfSTqmDsdRZFezE= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.5.0/go.mod h1:CpNzHK9VEFUCknu50kkB8z58AH2B5DvPP7ea1LHve/Y= +github.com/aws/aws-sdk-go-v2/internal/ini v1.2.2 h1:d95cddM3yTm4qffj3P6EnP+TzX1SSkWaQypXSgT/hpA= +github.com/aws/aws-sdk-go-v2/internal/ini v1.2.2/go.mod h1:BQV0agm+JEhqR+2RT5e1XTFIDcAAV0eW6z2trp+iduw= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.3.0 h1:VNJ5NLBteVXEwE2F1zEXVmyIH58mZ6kIQGJoC7C+vkg= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.3.0/go.mod h1:R1KK+vY8AfalhG1AOu5e35pOD2SdoPKQCFLTvnxiohk= +github.com/aws/aws-sdk-go-v2/service/kms v1.5.0 h1:10e9mzaaYIIePEuxUzW5YJ8LKHNG/NX63evcvS3ux9U= +github.com/aws/aws-sdk-go-v2/service/kms v1.5.0/go.mod h1:w7JuP9Oq1IKMFQPkNe3V6s9rOssXzOVEMNEqK1L1bao= +github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.6.0/go.mod h1:B+7C5UKdVq1ylkI/A6O8wcurFtaux0R1njePNPtKwoA= +github.com/aws/aws-sdk-go-v2/service/ssm v1.10.0/go.mod h1:4dXS5YNqI3SNbetQ7X7vfsMlX6ZnboJA2dulBwJx7+g= +github.com/aws/aws-sdk-go-v2/service/sso v1.4.0 h1:sHXMIKYS6YiLPzmKSvDpPmOpJDHxmAUgbiF49YNVztg= +github.com/aws/aws-sdk-go-v2/service/sso v1.4.0/go.mod h1:+1fpWnL96DL23aXPpMGbsmKe8jLTEfbjuQoA4WS1VaA= +github.com/aws/aws-sdk-go-v2/service/sts v1.7.0 h1:1at4e5P+lvHNl2nUktdM2/v+rpICg/QSEr9TO/uW9vU= +github.com/aws/aws-sdk-go-v2/service/sts v1.7.0/go.mod h1:0qcSMCyASQPN2sk/1KQLQ2Fh6yq8wm0HSDAimPhzCoM= +github.com/aws/smithy-go v1.8.0 h1:AEwwwXQZtUwP5Mz506FeXXrKBe0jA8gVM+1gEcSRooc= +github.com/aws/smithy-go v1.8.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= @@ -187,14 +226,13 @@ github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kB github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ= github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= github.com/bsm/go-vlq v0.0.0-20150828105119-ec6e8d4f5f4e/go.mod h1:N+BjUcTjSxc2mtRGSCPsat1kze3CUtvJN3/jTXlp29k= +github.com/cenkalti/backoff/v3 v3.0.0/go.mod h1:cIeZDE3IrqwwJl6VUwCN6trj1oXrTS4rc0ij+ULvLYs= +github.com/cenkalti/backoff/v3 v3.2.2 h1:cfUAAO3yvKMYKPrvhDuHSwQnhZNk/RMHKdZqKTxfm6M= +github.com/cenkalti/backoff/v3 v3.2.2/go.mod h1:cIeZDE3IrqwwJl6VUwCN6trj1oXrTS4rc0ij+ULvLYs= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/census-instrumentation/opencensus-proto v0.3.0 h1:t/LhUZLVitR1Ow2YOnduCsavhwFUklBMoGVYUCqmCqk= github.com/census-instrumentation/opencensus-proto v0.3.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= -github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cheggaaa/pb v1.0.18/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s= github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s= github.com/cheggaaa/pb v1.0.29 h1:FckUN5ngEk2LpvuG0fw1GEFx6LtyY2pWI/Z2QgCnEYo= github.com/cheggaaa/pb v1.0.29/go.mod h1:W40334L7FMC5JKWldsTWbdGjLo0RxUKK73K+TuPxX30= @@ -207,16 +245,12 @@ github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDk github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4 h1:hzAQntlaYRkVSFEfj9OTWlVV1H155FMD8BTKktLv0QI= github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211130200136-a8f946100490 h1:KwaoQzs/WeUxxJqiJsZ4euOly1Az/IgZXXSxlD/UBNk= -github.com/cncf/xds/go v0.0.0-20211130200136-a8f946100490/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= github.com/containerd/cgroups v0.0.0-20190919134610-bf292b21730f/go.mod h1:OApqhQ4XNSNC13gXIwDjhOQxjWa/NxkwZXJ1EvqT0ko= github.com/containerd/console v0.0.0-20180822173158-c12b1e7919c1/go.mod h1:Tj/on1eG8kiEhd0+fhSDzsPAFESxzBBvdyEgyryXffw= github.com/containerd/containerd v1.3.2/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= @@ -227,15 +261,9 @@ github.com/containerd/fifo v0.0.0-20190226154929-a9fb20d87448/go.mod h1:ODA38xgv github.com/containerd/go-runc v0.0.0-20180907222934-5a6d9f37cfa3/go.mod h1:IV7qH3hrUgRmyYrtgEeGWJfWbgcHL9CSRruz2Vqcph0= github.com/containerd/ttrpc v0.0.0-20190828154514-0e0f228740de/go.mod h1:PvCDdDGpgqzQIzDW1TphrGLssLDZp2GuS+X5DkEJB8o= github.com/containerd/typeurl v0.0.0-20180627222232-a93fcdb778cd/go.mod h1:Cm3kwCdlkCfMSHURc+r6fwoGH6/F1hH3S4sg0rLFWPc= -github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= -github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd/v22 v22.3.1/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= +github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creack/pty v1.1.11 h1:07n33Z8lZxZ2qwegKbObQohDhXDQxiMMz1NOUGYlesw= github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= @@ -245,11 +273,9 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/denisenkom/go-mssqldb v0.9.0/go.mod h1:xbL0rPBG9cCiLr28tMa8zpbdarY27NDyej4t/EjAShU= github.com/devigned/tab v0.1.1/go.mod h1:XG9mPq0dFghrYvoBF3xdRrJzSTX1b7IQrvaL9mzjeJY= github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= -github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= github.com/dimchansky/utfbom v1.1.0/go.mod h1:rO41eb7gLfo8SF1jd9F8HplJm1Fewwi4mQvIirEdv+8= github.com/dimchansky/utfbom v1.1.1 h1:vV6w1AhK4VMnhBno/TPVCoK9U/LP0PkLCS9tbxHdi/U= github.com/dimchansky/utfbom v1.1.1/go.mod h1:SxdoEBH5qIqFocHMyGOXVAybYJdr71b1Q/j0mACtrfE= -github.com/djherbis/times v1.2.0/go.mod h1:CGMZlo255K5r4Yw0b9RRfFQpM2y7uOmxg4jm9HsaVf8= github.com/djherbis/times v1.5.0 h1:79myA211VwPhFTqUk8xehWrsEO+zcIZj0zT8mXPVARU= github.com/djherbis/times v1.5.0/go.mod h1:5q7FDLvbNg1L/KaBmPcWlVR9NmoKo3+ucqUA3ijQhA0= github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= @@ -259,6 +285,8 @@ github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDD github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/edsrzf/mmap-go v1.1.0 h1:6EUwBLQ/Mcr1EYLE4Tn1VdW1A4ckqCQWZBw8Hr0kjpQ= +github.com/edsrzf/mmap-go v1.1.0/go.mod h1:19H/e8pUPLicwkyNgOykDXkJ9F0MHE+Z52B8EIth78Q= github.com/emirpasic/gods v1.12.0 h1:QAUIPSaCu4G+POclxeqb3F+WPpdKqFGlw36+yOzGlrg= github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= @@ -269,12 +297,8 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.m github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= -github.com/envoyproxy/go-control-plane v0.10.1/go.mod h1:AY7fTTXNdv/aJ2O5jwpxAPOWUZ7hQAEvzN5Pf27BkQQ= -github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1 h1:xvqufLtNVwAhN8NMyWklVgxnWohi+wtMGQMhtxexlm0= github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/envoyproxy/protoc-gen-validate v0.6.2 h1:JiO+kJTpmYGjEodY7O1Zk8oZcNz1+f30UtwtXoFUPzE= -github.com/envoyproxy/protoc-gen-validate v0.6.2/go.mod h1:2t7qjJNvHPx8IjnBOzl9E9/baC+qXE/TeeyBRzgJDws= github.com/ettle/strcase v0.1.1 h1:htFueZyVeE1XNnMEfbqp5r67qAN/4r6ya1ysq8Q+Zcw= github.com/ettle/strcase v0.1.1/go.mod h1:hzDLsPC7/lwKyBOywSHEP89nt2pDgdy+No1NBA9o9VY= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= @@ -283,14 +307,12 @@ github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= -github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= -github.com/form3tech-oss/jwt-go v3.2.2+incompatible h1:TcekIExNqud5crz4xD2pavyTgWiPvpYe4Xau31I0PRk= github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/frankban/quicktest v1.10.0 h1:Gfh+GAJZOAoKZsIZeZbdn2JF10kN1XHNvjsvQK8gVkE= github.com/frankban/quicktest v1.10.0/go.mod h1:ui7WezCLWMWxVWr1GETZY3smRy0G4KWq9vcPtJmFl7Y= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= -github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/fsnotify/fsnotify v1.5.1/go.mod h1:T3375wBYaZdLLcVNkcVbzGHY7f1l/uK5T5Ai1i3InKU= github.com/gedex/inflector v0.0.0-20170307190818-16278e9db813 h1:Uc+IZ7gYqAf/rSGFplbWBSHaGolEQlNLgMgSE3ccnIQ= github.com/gedex/inflector v0.0.0-20170307190818-16278e9db813/go.mod h1:P+oSoE9yhSRvsmYyZsshflcR6ePWYLql6UU1amW13IM= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= @@ -304,6 +326,7 @@ github.com/go-git/gcfg v1.5.0/go.mod h1:5m20vg6GwYabIxaOonVkTdrILxQMpEShl1xiMF4u github.com/go-git/go-billy/v5 v5.2.0/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0= github.com/go-git/go-billy/v5 v5.3.1 h1:CPiOUAzKtMRvolEKw+bG1PLRpT7D3LIs3/3ey4Aiu34= github.com/go-git/go-billy/v5 v5.3.1/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0= +github.com/go-git/go-git-fixtures/v4 v4.2.1 h1:n9gGL1Ct/yIw+nfsfr8s4+sbhT+Ncu2SubfXjIWgci8= github.com/go-git/go-git-fixtures/v4 v4.2.1/go.mod h1:K8zd3kDUAykwTdDCr+I0per6Y6vMiRR/nnVTBtavnB0= github.com/go-git/go-git/v5 v5.4.2 h1:BXyZu9t0VkbiHtqrsvdq39UDhGJTl1h55VW6CSC4aY4= github.com/go-git/go-git/v5 v5.4.2/go.mod h1:gQ1kArt6d+n+BGd+/B/I74HwRTLhth2+zti4ihgckDc= @@ -317,8 +340,6 @@ github.com/go-ldap/ldap/v3 v3.1.3/go.mod h1:3rbOH3jRS2u6jg2rJnKAMLE/xQyCKIveG2Sa github.com/go-ldap/ldap/v3 v3.1.10/go.mod h1:5Zun81jBTabRaI8lzN7E1JjyEl1g6zI6u9pd8luAK4Q= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= -github.com/go-ole/go-ole v1.2.5/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= -github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= @@ -335,7 +356,6 @@ github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6Wezm github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= github.com/godbus/dbus v0.0.0-20190422162347-ade71ed3457e/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/gofrs/uuid v3.3.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gofrs/uuid v4.2.0+incompatible h1:yyYWMnhkhrKwwr8gAOcOCYxOOscHgDS9yZgBrnJfGa0= github.com/gofrs/uuid v4.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= @@ -343,12 +363,12 @@ github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zV github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang-jwt/jwt/v4 v4.0.0 h1:RAqyYixv1p7uEnocuy8P1nru5wprCh/MH2BIlW5z5/o= +github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe/go.mod h1:8vg3r2VgvsThLBIFL93Qb5yWzgyZWhEmBwUJWevAkK0= -github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/glog v1.0.0 h1:nfP3RFugxnNRyKgeWd4oI1nYvXpxrx8ck8ZrcizshdQ= github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4= -github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -383,8 +403,9 @@ github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.3 h1:fHPg5GQYlCeLIPB9BZqMVR5nR9A+IM5zcgeTdjMYmLA= github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= +github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= @@ -402,13 +423,12 @@ github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= -github.com/google/go-replayers/grpcreplay v1.0.0 h1:B5kVOzJ1hBgnevTgIWhSTatQ3608yu/2NnU0Ta1d0kY= -github.com/google/go-replayers/grpcreplay v1.0.0/go.mod h1:8Ig2Idjpr6gifRd6pNVggX6TC1Zw6Jx74AKp7QNH2QE= -github.com/google/go-replayers/httpreplay v0.1.2 h1:HCfx+dQzwN9XbGTHF8qJ+67WN8glL9FTWV5rraCJ/jU= -github.com/google/go-replayers/httpreplay v0.1.2/go.mod h1:YKZViNhiGgqdBlUbI2MwGpq4pXxNmhJLPHQ7cv2b5no= +github.com/google/go-replayers/grpcreplay v1.1.0 h1:S5+I3zYyZ+GQz68OfbURDdt/+cSMqCK1wrvNx7WBzTE= +github.com/google/go-replayers/grpcreplay v1.1.0/go.mod h1:qzAvJ8/wi57zq7gWqaE6AwLM6miiXUQwP1S+I9icmhk= +github.com/google/go-replayers/httpreplay v1.0.0 h1:8SmT8fUYM4nueF+UnXIX8LJxNTb1vpPuknXz+yTWzL4= +github.com/google/go-replayers/httpreplay v1.0.0/go.mod h1:LJhKoTwS5Wy5Ld/peq8dFFG5OfJyHEz7ft+DsTUv25M= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian v2.1.1-0.20190517191504-25dcb96d9e51+incompatible h1:xmapqc1AyLoB+ddYT6r04bD9lIjlOqGaREovi0SzFaE= @@ -429,8 +449,10 @@ github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210506205249-923b5ab0fc1a/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210715191844-86eeefc3e471/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= @@ -438,22 +460,22 @@ github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3 github.com/google/subcommands v1.0.1/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.2.0 h1:qJYtXnJRWmpe7m/3XlyhrsLrEURqHRM2kxzoxXqyUDs= github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/wire v0.5.0 h1:I7ELFeVBr3yfPIcc8+MWvrjk+3VjbcSzoXm3JVa+jD8= github.com/google/wire v0.5.0/go.mod h1:ngWDr9Qvq3yZA10YrxfyGELY/AFWGVpy9c1LTRi1EoU= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= -github.com/googleapis/gax-go/v2 v2.1.1 h1:dp3bWCh+PPO1zjRRiCSczJav13sBvG4UhNyVTa1KqdU= github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM= +github.com/googleapis/gax-go/v2 v2.2.0 h1:s7jOdKSaksJVOxE0Y/S32otcfiP+UQ0cL8/GTKaONwE= +github.com/googleapis/gax-go/v2 v2.2.0/go.mod h1:as02EH8zWkzwUoLbBaFeQ+arQaj/OthfcblKl4IGNaM= +github.com/googleapis/go-type-adapters v1.0.0 h1:9XdMn+d/G57qq1s8dNc5IesGCXHf6V2HZ2JwRxfA2tA= +github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= github.com/gorilla/mux v1.7.4 h1:VuZ8uybHlWmqV03+zRzdwKL4tUnIp1MAQtp1mIFE1bc= github.com/gorilla/mux v1.7.4/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= -github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= -github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= -github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 h1:MJG/KsmcqMwFAkh8mTnAwhyKoB+sTAnY4CACC110tbU= github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645/go.mod h1:6iZfnjpejD4L/4DwD7NryNaJyCQdzwWwH2MWhCA90Kw= @@ -470,14 +492,15 @@ github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/S github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 h1:1/D3zfFHttUKaCaGKZ/dR2roBXv0vKbSCnssIldfQdI= github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320/go.mod h1:EiZBMaudVLy8fmjf9Npq1dq9RalhveqZG5w/yz3mHWs= github.com/hashicorp/go-getter v1.4.0/go.mod h1:7qxyCd8rBfcShwsvxgIguu4KbS3l8bUCwg2Umn7RjeY= -github.com/hashicorp/go-getter v1.5.3 h1:NF5+zOlQegim+w/EUhSLh6QhXHmZMEeHLQzllkQ3ROU= -github.com/hashicorp/go-getter v1.5.3/go.mod h1:BrrV/1clo8cCYu6mxvboYg+KutTiFnXjMEgDD8+i7ZI= +github.com/hashicorp/go-getter v1.6.1 h1:NASsgP4q6tL94WH6nJxKWj8As2H/2kop/bB1d8JMyRY= +github.com/hashicorp/go-getter v1.6.1/go.mod h1:IZCrswsZPeWv9IkVnLElzRU/gz/QPi6pZHn4tv6vbwA= github.com/hashicorp/go-hclog v0.0.0-20180709165350-ff2cf002a8dd/go.mod h1:9bjs9uLqI8l75knNv3lV1kA55veR+WUPSiKIWcQHudI= github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= github.com/hashicorp/go-hclog v0.12.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-hclog v0.14.1/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= -github.com/hashicorp/go-hclog v1.2.0 h1:La19f8d7WIlm4ogzNHB0JGqs5AUDAZ2UfCY4sJXcJdM= -github.com/hashicorp/go-hclog v1.2.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= +github.com/hashicorp/go-hclog v0.16.1/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= +github.com/hashicorp/go-hclog v1.2.1 h1:YQsLlGDJgwhXFpucSPyVbCBviQtjlHv3jLTlp8YmtEw= +github.com/hashicorp/go-hclog v1.2.1/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-immutable-radix v1.1.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-kms-wrapping/entropy v0.1.0/go.mod h1:d1g9WGtAunDNpek8jUIEJnBlbgKS1N2Q61QkHiZyR1g= @@ -487,7 +510,6 @@ github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+ github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= github.com/hashicorp/go-plugin v1.0.1/go.mod h1:++UyYGoz3o5w9ZzAdZxtQKrWWP+iqPBn3cQptSMzBuY= -github.com/hashicorp/go-plugin v1.4.3/go.mod h1:5fGEH17QVwTTcR0zV7yhDPLLmFX9YSZ38b18Udy6vYQ= github.com/hashicorp/go-plugin v1.4.4 h1:NVdrSdFRt3SkZtNckJ6tog7gbpRrcbOjQi/rgF7JYWQ= github.com/hashicorp/go-plugin v1.4.4/go.mod h1:viDMjcLJuDui6pXb8U4HVfb8AamCWhHGUjr2IrTF67s= github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= @@ -510,23 +532,20 @@ github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/b github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.3.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go-version v1.4.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go-version v1.5.0 h1:O293SZ2Eg+AAYijkVK3jR786Am1bhDEh2GHT0tIVE5E= github.com/hashicorp/go-version v1.5.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= +github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.3/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= -github.com/hashicorp/hc-install v0.3.1/go.mod h1:3LCdWcCDS1gaHC9mhHCGbkYfoY6vdsKohGjugbZdZak= -github.com/hashicorp/hc-install v0.3.2 h1:oiQdJZvXmkNcRcEOOfM5n+VTsvNjWQeOjfAoO6dKSH8= -github.com/hashicorp/hc-install v0.3.2/go.mod h1:xMG6Tr8Fw1WFjlxH0A9v61cW15pFwgEGqEz0V4jisHs= +github.com/hashicorp/hc-install v0.4.0 h1:cZkRFr1WVa0Ty6x5fTvL1TuO1flul231rWkGH92oYYk= +github.com/hashicorp/hc-install v0.4.0/go.mod h1:5d155H8EC5ewegao9A4PUTMNPZaq+TbOzkJJZ4vrXeI= github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f/go.mod h1:oZtUIOe8dh44I2q6ScRibXws4Ajl+d+nod3AaR9vL5w= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/hcl/v2 v2.0.0/go.mod h1:oVVDG71tEinNGYCxinCYadcmKU9bglqW9pV3txagJ90= -github.com/hashicorp/hcl/v2 v2.3.0/go.mod h1:d+FwDBbOLvpAM3Z6J7gPj/VoAGkNe/gm352ZhjJ/Zv8= -github.com/hashicorp/hcl/v2 v2.11.1/go.mod h1:FwWsfWEjyV/CMj8s/gqAuiviY72rJ1/oayI9WftqcKg= -github.com/hashicorp/hcl/v2 v2.12.0 h1:PsYxySWpMD4KPaoJLnsHwtK5Qptvj/4Q6s0t4sUxZf4= -github.com/hashicorp/hcl/v2 v2.12.0/go.mod h1:FwWsfWEjyV/CMj8s/gqAuiviY72rJ1/oayI9WftqcKg= +github.com/hashicorp/hcl/v2 v2.13.0 h1:0Apadu1w6M11dyGFxWnmhhcMjkbAiKCv7G1r/2QgCNc= +github.com/hashicorp/hcl/v2 v2.13.0/go.mod h1:e4z5nxYlWNPdDSNYX+ph14EvWYMFm3eP0zIUqPc2jr0= github.com/hashicorp/hcl2 v0.0.0-20190821123243-0c888d1241f6/go.mod h1:Cxv+IJLuBiEhQ7pBYGEuORa0nr4U994pE8mYLuFd7v0= github.com/hashicorp/hil v0.0.0-20190212112733-ab17b08d6590/go.mod h1:n2TSygSNwsLJ76m8qFXTSc7beTb+auJxYdqrnoqwZWE= github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93 h1:T1Q6ag9tCwun16AW+XK3tAql24P4uTGUMIn1/92WsQQ= @@ -536,49 +555,40 @@ github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO github.com/hashicorp/terraform-config-inspect v0.0.0-20190821133035-82a99dc22ef4/go.mod h1:JDmizlhaP5P0rYTTZB0reDMefAiJyfWPEtugV4in1oI= github.com/hashicorp/terraform-config-inspect v0.0.0-20191115094559-17f92b0546e8 h1:+RyjwU+Gnd/aTJBPZVDNm903eXVjjqhbaR4Ypx3xYyY= github.com/hashicorp/terraform-config-inspect v0.0.0-20191115094559-17f92b0546e8/go.mod h1:p+ivJws3dpqbp1iP84+npOyAmTTOLMgCzrXd3GSdn/A= -github.com/hashicorp/terraform-exec v0.16.1 h1:NAwZFJW2L2SaCBVZoVaH8LPImLOGbPLkSHy0IYbs2uE= -github.com/hashicorp/terraform-exec v0.16.1/go.mod h1:aj0lVshy8l+MHhFNoijNHtqTJQI3Xlowv5EOsEaGO7M= +github.com/hashicorp/terraform-exec v0.17.2 h1:EU7i3Fh7vDUI9nNRdMATCEfnm9axzTnad8zszYZ73Go= +github.com/hashicorp/terraform-exec v0.17.2/go.mod h1:tuIbsL2l4MlwwIZx9HPM+LOV9vVyEfBYu2GsO1uH3/8= github.com/hashicorp/terraform-json v0.4.0/go.mod h1:eAbqb4w0pSlRmdvl8fOyHAi/+8jnkVYN28gJkSJrLhU= -github.com/hashicorp/terraform-json v0.13.0/go.mod h1:y5OdLBCT+rxbwnpxZs9kGL7R9ExU76+cpdY8zHwoazk= github.com/hashicorp/terraform-json v0.14.0 h1:sh9iZ1Y8IFJLx+xQiKHGud6/TSUCM0N8e17dKDpqV7s= github.com/hashicorp/terraform-json v0.14.0/go.mod h1:5A9HIWPkk4e5aeeXIBbkcOvaZbIYnAIkEyqP2pNSckM= -github.com/hashicorp/terraform-plugin-go v0.9.0/go.mod h1:EawBkgjBWNf7jiKnVoyDyF39OSV+u6KUX+Y73EPj3oM= -github.com/hashicorp/terraform-plugin-go v0.9.1 h1:vXdHaQ6aqL+OF076nMSBV+JKPdmXlzG5mzVDD04WyPs= -github.com/hashicorp/terraform-plugin-go v0.9.1/go.mod h1:ItjVSlQs70otlzcCwlPcU8FRXLdO973oYFRZwAOxy8M= -github.com/hashicorp/terraform-plugin-log v0.3.0/go.mod h1:EjueSP/HjlyFAsDqt+okpCPjkT4NDynAe32AeDC4vps= -github.com/hashicorp/terraform-plugin-log v0.4.0 h1:F3eVnm8r2EfQCe2k9blPIiF/r2TT01SHijXnS7bujvc= -github.com/hashicorp/terraform-plugin-log v0.4.0/go.mod h1:9KclxdunFownr4pIm1jdmwKRmE4d6HVG2c9XDq47rpg= +github.com/hashicorp/terraform-plugin-go v0.12.0 h1:6wW9mT1dSs0Xq4LR6HXj1heQ5ovr5GxXNJwkErZzpJw= +github.com/hashicorp/terraform-plugin-go v0.12.0/go.mod h1:kwhmaWHNDvT1B3QiSJdAtrB/D4RaKSY/v3r2BuoWK4M= +github.com/hashicorp/terraform-plugin-log v0.6.0 h1:/Vq78uSIdUSZ3iqDc9PESKtwt8YqNKN6u+khD+lLjuw= +github.com/hashicorp/terraform-plugin-log v0.6.0/go.mod h1:p4R1jWBXRTvL4odmEkFfDdhUjHf9zcs/BCoNHAc7IK4= github.com/hashicorp/terraform-plugin-sdk v1.0.0/go.mod h1:NuwtLpEpPsFaKJPJNGtMcn9vlhe6Ofe+Y6NqXhJgV2M= github.com/hashicorp/terraform-plugin-sdk v1.7.0 h1:B//oq0ZORG+EkVrIJy0uPGSonvmXqxSzXe8+GhknoW0= github.com/hashicorp/terraform-plugin-sdk v1.7.0/go.mod h1:OjgQmey5VxnPej/buEhe+YqKm0KNvV3QqU4hkqHqPCY= github.com/hashicorp/terraform-plugin-test v1.2.0 h1:AWFdqyfnOj04sxTdaAF57QqvW7XXrT8PseUHkbKsE8I= github.com/hashicorp/terraform-plugin-test v1.2.0/go.mod h1:QIJHYz8j+xJtdtLrFTlzQVC0ocr3rf/OjIpgZLK56Hs= -github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220711100922-17fee5b9cd86 h1:vfJPvH2KNg+HEoM5iW6dw8hioYLmJmxc0XLuXoMo6h8= -github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220711100922-17fee5b9cd86/go.mod h1:hHPPmkxNLaP75X7jIwtX7zgIkscrbpaDaebBAhlTROM= -github.com/hashicorp/terraform-registry-address v0.0.0-20210412075316-9b2996cce896/go.mod h1:bzBPnUIkI0RxauU8Dqo+2KrZZ28Cf48s8V6IHt3p4co= -github.com/hashicorp/terraform-registry-address v0.0.0-20220131103327-5c1c5e123275 h1:x/8cnK295F9NK18FXxsJxU1bz2PusWH52DDDsuao+88= -github.com/hashicorp/terraform-registry-address v0.0.0-20220131103327-5c1c5e123275/go.mod h1:bdLC+qQlJIBHKbCMA6GipcuaKjmjcvZlnVdpU583z3Y= +github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220805021720-b23d151b8feb h1:2qIbdvjlbZTISrEHmHh5+g/rdRLggTt2lfg9W09Fb1E= +github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220805021720-b23d151b8feb/go.mod h1:hHPPmkxNLaP75X7jIwtX7zgIkscrbpaDaebBAhlTROM= +github.com/hashicorp/terraform-registry-address v0.0.0-20220623143253-7d51757b572c h1:D8aRO6+mTqHfLsK/BC3j5OAoogv1WLRWzY1AaTo3rBg= +github.com/hashicorp/terraform-registry-address v0.0.0-20220623143253-7d51757b572c/go.mod h1:Wn3Na71knbXc1G8Lh+yu/dQWWJeFQEpDeJMtWMtlmNI= github.com/hashicorp/terraform-svchost v0.0.0-20191011084731-65d371908596/go.mod h1:kNDNcF7sN4DocDLBkQYz73HGKwN1ANB1blq4lIYLYvg= github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 h1:HKLsbzeOsfXmKNpr3GiT18XAblV0BjCbzL8KQAMZGa0= github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734/go.mod h1:kNDNcF7sN4DocDLBkQYz73HGKwN1ANB1blq4lIYLYvg= github.com/hashicorp/vault/api v1.0.5-0.20200519221902-385fac77e20f/go.mod h1:euTFbi2YJgwcju3imEt919lhJKF68nN1cQPq3aA+kBE= -github.com/hashicorp/vault/api v1.1.0 h1:QcxC7FuqEl0sZaIjcXB/kNEeBa0DH5z57qbWBvZwLC4= -github.com/hashicorp/vault/api v1.1.0/go.mod h1:R3Umvhlxi2TN7Ex2hzOowyeNb+SfbVWI973N+ctaFMk= +github.com/hashicorp/vault/api v1.1.1 h1:907ld+Z9cALyvbZK2qUX9cLwvSaEQsMVQB3x2KE8+AI= +github.com/hashicorp/vault/api v1.1.1/go.mod h1:29UXcn/1cLOPHQNMWA7bCz2By4PSd0VKPAydKXS5yN0= github.com/hashicorp/vault/sdk v0.1.14-0.20200519221530-14615acda45f/go.mod h1:WX57W2PwkrOPQ6rVQk+dy5/htHIaB4aBM70EwKThu10= -github.com/hashicorp/vault/sdk v0.1.14-0.20200519221838-e0cfd64bc267/go.mod h1:WX57W2PwkrOPQ6rVQk+dy5/htHIaB4aBM70EwKThu10= -github.com/hashicorp/vault/sdk v0.2.0 h1:hvVswvMA9LvXwLBFDJLIoDBXi8hj90Q+gSS7vRYmLvQ= -github.com/hashicorp/vault/sdk v0.2.0/go.mod h1:cAGI4nVnEfAyMeqt9oB+Mase8DNn3qA/LDNHURiwssY= +github.com/hashicorp/vault/sdk v0.2.1 h1:S4O6Iv/dyKlE9AUTXGa7VOvZmsCvg36toPKgV4f2P4M= +github.com/hashicorp/vault/sdk v0.2.1/go.mod h1:WfUiO1vYzfBkz1TmoE4ZGU7HD0T0Cl/rZwaxjBkgN4U= github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 h1:xixZ2bWeofWV68J+x6AzmKuVM/JWCQwkWm6GW/MUR6I= github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= -github.com/hexops/autogold v0.8.1/go.mod h1:97HLDXyG23akzAoRYJh/2OBs3kd80eHyKPvZw0S5ZBY= github.com/hexops/autogold v1.3.0 h1:IEtGNPxBeBu8RMn8eKWh/Ll9dVNgSnJ7bp/qHgMQ14o= -github.com/hexops/autogold v1.3.0/go.mod h1:d4hwi2rid66Sag+BVuHgwakW/EmaFr8vdTSbWDbrDRI= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= -github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= github.com/hexops/valast v1.4.0 h1:sFzyxPDP0riFQUzSBXTCCrAbbIndHPWMndxuEjXdZlc= -github.com/hexops/valast v1.4.0/go.mod h1:uVjKZ0smVuYlgCSPz9NRi5A04sl7lp6GtFWsROKDgEs= github.com/hinshun/vt10x v0.0.0-20180616224451-1954e6464174 h1:WlZsjVhE8Af9IcZDGgJGQpNflI3+MJSBhsgT5PCtzBQ= github.com/hinshun/vt10x v0.0.0-20180616224451-1954e6464174/go.mod h1:DqJ97dSdRW1W22yXSB90986pcOyQ7r45iio1KN2ez1A= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= @@ -609,7 +619,6 @@ github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHW github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= -github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= @@ -617,10 +626,8 @@ github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHm github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= -github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= -github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/kevinburke/ssh_config v1.1.0 h1:pH/t1WS9NzT8go394IqZeJTMHVm6Cr6ZJ6AQ+mdNo/o= github.com/kevinburke/ssh_config v1.1.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= @@ -631,8 +638,8 @@ github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.11.2/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.12.2 h1:2KCfW3I9M7nSc5wOqXAlW2v2U6v+w6cbjvbfp+OykW8= -github.com/klauspost/compress v1.12.2/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= +github.com/klauspost/compress v1.13.5 h1:9O69jUPDcsT9fEm74W92rZL9FQY7rCdaXVneq+yyzl4= +github.com/klauspost/compress v1.13.5/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= @@ -643,7 +650,6 @@ github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfn github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/pty v1.1.4/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/pty v1.1.8 h1:AkaSdXYQOWeaO3neb8EM634ahkXXe3jYbVh/F9lq+GI= -github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= @@ -651,13 +657,10 @@ github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LE github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= -github.com/lib/pq v1.10.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/lib/pq v1.10.1/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= -github.com/lyft/protoc-gen-star v0.5.3/go.mod h1:V0xaHgaf5oCCqmcxYcWiDfTiKsZsRc87/1qhoTACD8w= -github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= +github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/manicminer/hamilton v0.46.0 h1:ag0xqWnALt9uQSfrrrXuQvm6puV8y+LghJQD32lzW+M= github.com/manicminer/hamilton v0.46.0/go.mod h1:lbVyngC+/nCWuDp8UhC6Bw+bh7jcP/E+YwqzHTmzemk= +github.com/matryer/is v1.2.0 h1:92UTHpy8CDwaJ08GqLDzhhuixiBUUD1p3AU6PHddz4A= github.com/matryer/is v1.2.0/go.mod h1:2fLPjFQM9rhQ15aVEtbuwhJinnOqrmgXPNdZsdwlWXA= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ= @@ -679,7 +682,6 @@ github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Ky github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= -github.com/mattn/go-runewidth v0.0.8/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= github.com/mattn/go-runewidth v0.0.13 h1:lTGmDsbAYt5DmK6OnoV7EuIF1wEIFAcxld6ypU4OSgU= github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= @@ -713,14 +715,12 @@ github.com/mitchellh/mapstructure v1.3.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RR github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/mapstructure v1.4.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/mitchellh/reflectwalk v1.0.1/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= -github.com/moby/moby v20.10.14+incompatible/go.mod h1:fDXVQ6+S340veQPv35CzDahGBmHsiclFwfEygB/TWMc= github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6 h1:dcztxKSvZ4Id8iPpHERQBbIJfabdt4wUm5qy3wOL2Zc= github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6/go.mod h1:E2VnQOmVuvZB6UYnnDB0qG5Nq/1tD9acaOpo6xmt0Kw= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= @@ -732,18 +732,15 @@ github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9G github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mxschmitt/golang-combinations v1.0.0/go.mod h1:RbMhWvfCelHR6WROvT2bVfxJvZHoEvBj71SKe+H0MYU= -github.com/nbutton23/zxcvbn-go v0.0.0-20180912185939-ae427f1e4c1d/go.mod h1:o96djdrsSGy3AWPyBgZMAGfxZNfgntdJG+11KU4QvbU= +github.com/natefinch/atomic v1.0.1 h1:ZPYKxkqQOx3KZ+RsbnP/YsgvxWQPGxjC0oBt2AhwV0A= +github.com/natefinch/atomic v1.0.1/go.mod h1:N/D/ELrljoqDyT3rZrsUmtsuzvHkeB/wWjHV22AZRbM= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nightlyone/lockfile v1.0.0 h1:RHep2cFKK4PonZJDdEl4GmkabuhbsRMgk/k3uAmxBiA= -github.com/nightlyone/lockfile v1.0.0/go.mod h1:rywoIealpdNse2r832aiD9jRk8ErCatROs6LzC841CI= github.com/nsf/jsondiff v0.0.0-20200515183724-f29ed568f4ce h1:RPclfga2SEJmgMmz2k+Mg7cowZ8yv4Trqw9UsJby758= github.com/nsf/jsondiff v0.0.0-20200515183724-f29ed568f4ce/go.mod h1:uFMI8w+ref4v2r9jz+c9i1IfIttS/OkmLfrk1jne5hs= -github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= -github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.10.1/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= @@ -756,21 +753,18 @@ github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zM github.com/opencontainers/runc v0.0.0-20190115041553-12f6a991201f/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U= github.com/opencontainers/runc v0.1.1/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U= github.com/opencontainers/runtime-spec v0.1.2-0.20190507144316-5b71a03e2700/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= github.com/opentracing/basictracer-go v1.1.0 h1:Oa1fTSBvAl8pa3U+IJYqrKm0NALwH9OsgwOqDv4xJW0= github.com/opentracing/basictracer-go v1.1.0/go.mod h1:V2HZueSJEp879yv285Aap1BS69fQMD+MNP1mRs6mBQc= github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/pelletier/go-buffruneio v0.2.0/go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo= -github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386 h1:LoCV5cscNVWyK5ChN/uCoIFJz8jZD63VQiGJIRgr6uo= github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386/go.mod h1:MRxHTJrf9FhdfNQ8Hdeh9gmHevC9RJE/fu8M3JIGjoE= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/lz4 v2.5.2+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= -github.com/pierrec/lz4 v2.6.0+incompatible h1:Ix9yFKn1nSPBLFl/yZknTp8TU5G4Ps0JDmguYK6iH1A= -github.com/pierrec/lz4 v2.6.0+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pierrec/lz4 v2.6.1+incompatible h1:9UY3+iC23yxF0UfGaYrGplQ+79Rg+h/q9FV9ix19jjM= +github.com/pierrec/lz4 v2.6.1+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1-0.20171018195549-f15c970de5b7/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -785,111 +779,82 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/posener/complete v1.2.1 h1:LrvDIY//XNo65Lq84G/akBuMGlawHvGBABv8f/ZN6DI= github.com/posener/complete v1.2.1/go.mod h1:6gapUrK/U1TAN7ciCoNRIdVC5sbdBTUh1DKN0g6uH7E= -github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.2/go.mod h1:OsXs2jCmiKlQ1lTBmv21f2mNfw4xf/QclQDMrYNZzcM= -github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= github.com/prometheus/common v0.0.0-20181126121408-4724e9255275/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= -github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= github.com/prometheus/procfs v0.0.0-20180125133057-cb4147076ac7/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= -github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/pulumi/pulumi-java/pkg v0.1.0 h1:NsbaTKH6edcEfGcsu3RHxEB5zq29+FXV5D79CPTZPBU= -github.com/pulumi/pulumi-java/pkg v0.1.0/go.mod h1:Dw5klQSJCD6hHaHN4BcCoOW+KjC6NafdBtDsy6sY6uc= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.23.0 h1:YeSmBWxic8fpkCaNmOeTw2kPfF95sGnD/rdhRI2KYH4= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.23.0/go.mod h1:0hQiT2/MJtBFByRcIKMv/IScJdXMNdkO5MVEYU47nEs= -github.com/pulumi/pulumi-yaml v0.3.0 h1:I7aW6Qm/1EsYDJJDJ0DLrLvpOlpmjbAgTnYo8pZlUcs= -github.com/pulumi/pulumi-yaml v0.3.0/go.mod h1:6pQ0QcQqLYbq+i5vYjir/gDnpCvTkKcHqB5+mt0d3So= -github.com/pulumi/pulumi/pkg/v3 v3.26.0/go.mod h1:L9E+MXe05AbrSmX1GjX3jIrVNpE2RrauKEjME+BNzi4= -github.com/pulumi/pulumi/pkg/v3 v3.31.1-0.20220429232336-81582c4dcb93/go.mod h1:bO/BHZJoG2Mm8C3dxP414vLPvjxFfsetPE3Ep7Ffgro= -github.com/pulumi/pulumi/pkg/v3 v3.31.2-0.20220504080053-86c015b9e64a h1:akW2Qw2g/wjBibxB8SM/CPB6qnSOmeoVsAB0XJe8fM8= -github.com/pulumi/pulumi/pkg/v3 v3.31.2-0.20220504080053-86c015b9e64a/go.mod h1:cxbumszeFmK4a9wAVJrcrJnXVd8F8uIg24OVD1SCIEI= -github.com/pulumi/pulumi/sdk/v3 v3.26.0/go.mod h1:VsxW+TGv2VBLe/MeqsAr9r0zKzK/gbAhFT9QxYr24cY= -github.com/pulumi/pulumi/sdk/v3 v3.28.0/go.mod h1:Oe6AnW5MjJE5X2UJeqeXm1Al7qahdLVhIPeiKuoqxAw= -github.com/pulumi/pulumi/sdk/v3 v3.31.0/go.mod h1:hGo/+AL1L4sPL9Ukd/i5bNFM3WHs3dHcA+GKEW7M3RA= -github.com/pulumi/pulumi/sdk/v3 v3.31.1 h1:2DvdxfBj5YBCxnIX5b54mOJtXR39efonWe0LBOHcTZ8= -github.com/pulumi/pulumi/sdk/v3 v3.31.1/go.mod h1:hGo/+AL1L4sPL9Ukd/i5bNFM3WHs3dHcA+GKEW7M3RA= +github.com/pulumi/pulumi-java/pkg v0.5.3 h1:wqiP6TnKZm+ocTRLVwjzmd3fApCKQkvwba0qoh7zMV4= +github.com/pulumi/pulumi-java/pkg v0.5.3/go.mod h1:leMQvQ5IR3APhejwcWSfwZnkHosKHygKRaWkIyhsvtw= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.28.0 h1:wuVZmq4il07sIDp61NHKD0mJHH3QHp/VnSuFrFtKe1g= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.28.0/go.mod h1:YBWXX+aGQrjgx8i8eFnnTgk7SJ4SdA0qZMUXBMatWzQ= +github.com/pulumi/pulumi-yaml v0.5.4 h1:O4H0PD0hiJjpci0GJFSkihS+yC8rWACKxuLyjYVt5wo= +github.com/pulumi/pulumi-yaml v0.5.4/go.mod h1:e8BcP30yunk/u3mLXDykhtEQf8tTItYgQzPHDmRvJcg= +github.com/pulumi/pulumi/pkg/v3 v3.38.0 h1:JeL4iFCpW+56CPih/FOzdEFE4UyYBmiBt7g2hlu6JyU= +github.com/pulumi/pulumi/pkg/v3 v3.38.0/go.mod h1:AYMD/cLcFwYW0lZDTIgdy+QyCj3t/pTS1hNpUNwiXAs= +github.com/pulumi/pulumi/sdk/v3 v3.38.0 h1:xqO+t81RDY9w+GT+YRUZDHuvfYEz+vgQBkdtLe/8i7U= +github.com/pulumi/pulumi/sdk/v3 v3.38.0/go.mod h1:3/6Fr/c01n7Hw7mtAlO7X8WMBgLP5AVTyYe4CRfJQc4= github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e h1:Dik4Qe/+xguB8JagPyXNlbOnRiXGmq/PSPQTGunYnTk= github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e/go.mod h1:sZ9FUzGO+yM41hsQHs/yIcj/Y993qMdBxBU5mpDmAfQ= -github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20220523144019-a9dc436975cc h1:pRyACeDl6HDEU9e6J8LcTJ6WIy2hOksb35Fvp0WpHS4= -github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20220523144019-a9dc436975cc/go.mod h1:hLa0sTiySU/AWEgV2GxJh0/pQIqcCmm30IPja9N9lTg= +github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20220725190814-23001ad6ec03 h1:J06u+TRoOQ9C6JZlXNvmOE5Il4/WdXslx5bOUIRZtDI= +github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20220725190814-23001ad6ec03/go.mod h1:/WYikYjhKB7c2j1HmXZhRsAARldRb4M38bLCLOhC3so= github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rjeczalik/notify v0.9.2 h1:MiTWrPj55mNDHEiIX5YUSKefw/+lCQVoAFmD6oQm5w8= github.com/rjeczalik/notify v0.9.2/go.mod h1:aErll2f0sUX9PXZnVNyeiObbmTlk5jnMoCa4QEjJeqM= -github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.6.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rogpeppe/go-internal v1.8.1 h1:geMPLpDpQOgVyCg5z5GoRwLHepNdb71NXb67XFkP+Eg= github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= -github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= github.com/ryanuber/go-glob v1.0.0 h1:iQh3xXAumdQ+4Ufa5b25cRpC5TYKlno6hsv6Cb3pkBk= github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= -github.com/sabhiram/go-gitignore v0.0.0-20180611051255-d3107576ba94/go.mod h1:b18R55ulyQ/h3RaWyloPyER7fWQVZvimKKhnI5OfrJQ= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs= github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 h1:TToq11gyfNlrMFZiYujSekIsPd9AmsA2Bj/iv+s4JHE= github.com/santhosh-tekuri/jsonschema/v5 v5.0.0/go.mod h1:FKdcjfQW6rpZSnxxUvEA5H/cDPdvJ/SZJQLWWXWGrZ0= github.com/sebdah/goldie v1.0.0/go.mod h1:jXP4hmWywNEwZzhMuv2ccnqTSFpuq8iyQhtQdkkZBH4= +github.com/segmentio/asm v1.1.3 h1:WM03sfUOENvvKexOLp+pCqgb/WDjsi7EK8gIsICtzhc= +github.com/segmentio/asm v1.1.3/go.mod h1:Ld3L4ZXGNcSLRg4JBsZ3//1+f/TjYl0Mzen/DQy1EJg= +github.com/segmentio/encoding v0.3.5 h1:UZEiaZ55nlXGDL92scoVuw00RmiRCazIEmvPSbSvt8Y= +github.com/segmentio/encoding v0.3.5/go.mod h1:n0JeuIqEQrQoPDGsjo8UNd1iA0U8d8+oHAA4E3G3OxM= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= -github.com/shirou/gopsutil v3.21.7+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= -github.com/shirou/gopsutil/v3 v3.22.3/go.mod h1:D01hZJ4pVHPpCTZ3m3T2+wDF2YAGfd+H4ifUguaQzHM= -github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= github.com/shurcooL/go-goon v0.0.0-20210110234559-7585751d9a17 h1:lRAUE0dIvigSSFAmaM2dfg7OH8T+a8zJ5smEh09a/GI= -github.com/shurcooL/go-goon v0.0.0-20210110234559-7585751d9a17/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= -github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg= -github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= -github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546/go.mod h1:TrYk7fJVaAttu97ZZKrO9UbRa8izdowaMIZcxYMbVaw= github.com/sirupsen/logrus v1.0.4-0.20170822132746-89742aefa4b2/go.mod h1:pMByvHTf9Beacp5x1UXfOR9xyW/9antXMhjMPG0dEzc= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966/go.mod h1:sUM3LWHvSMaG192sy56D9F7CNvL7jUJVXoqM1QKLnog= -github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= -github.com/spf13/afero v1.3.3/go.mod h1:5KUK8ByomD5Ti5Artl0RtHeI5pTF7MIDuXL3yY520V4= github.com/spf13/afero v1.6.0 h1:xoax2sJ2DT8S8xA2paPFjDCScCNeWsg75VG0DLRreiY= github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= -github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.4.1 h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA= github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cobra v0.0.2-0.20171109065643-2da4a54c5cee/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= -github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= github.com/spf13/cobra v1.4.0 h1:y+wJpx64xcgO1V+RcnwW0LEHxTKRi2ZDPSBjWnrg88Q= github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g= -github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= github.com/spf13/pflag v1.0.1-0.20171106142849-4c012f6dcd95/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.2/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= -github.com/src-d/gcfg v1.4.0 h1:xXbNR5AlLSA315x2UO+fTSSAXCDf+Ar38/6oyGbDKQ4= -github.com/src-d/gcfg v1.4.0/go.mod h1:p/UMsR43ujA89BJY9duynAwIpvqEujIH/jFlfL7jWoI= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.2.0 h1:Hbg2NidpLE8veEBkEZTL3CvlkUIVzuU9jDplZO54c48= @@ -901,30 +866,21 @@ github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81P github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.2 h1:4jaiDzPyXQvSd7D0EjG45355tLlV3VOECpq10pLC+8s= +github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= github.com/terraform-providers/terraform-provider-archive v1.3.0 h1:8WzDXMwTdTd4Z7KAUjnYwopk1DgGJ/DLH0xowJ8h+/8= github.com/terraform-providers/terraform-provider-archive v1.3.0/go.mod h1:7oAwNW55F65KauS++/XmAnrXhLfQRTYt549eYs4zU0w= github.com/terraform-providers/terraform-provider-http v1.2.0 h1:pOP/SNlLjB18CydtTJJwzkZGkHYX3LWzIoQpYQuBdyw= github.com/terraform-providers/terraform-provider-http v1.2.0/go.mod h1:2Iot921OkLVSZr8FbIkvRN84ZV3w+oFKb7RlmPTQQAQ= -github.com/texttheater/golang-levenshtein v0.0.0-20191208221605-eb6844b05fc6/go.mod h1:XDKHRm5ThF8YJjx001LtgelzsoaEcvnA7lVWz9EeX3g= github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U= github.com/texttheater/golang-levenshtein v1.0.1/go.mod h1:PYAKrbF5sAiq9wd+H82hs7gNaen0CplQ9uvm6+enD/8= -github.com/tklauser/go-sysconf v0.3.8/go.mod h1:z4zYWRS+X53WUKtBcmDg1comV3fPhdQnzasnIHUoLDU= -github.com/tklauser/go-sysconf v0.3.10/go.mod h1:C8XykCvCb+Gn0oNCWPIlcb0RuglQTYaQ2hGm7jmxEFk= -github.com/tklauser/numcpus v0.2.3/go.mod h1:vpEPS/JC+oZGGQ/My/vJnNsvMDQL6PwOqt8dsCw5j+E= -github.com/tklauser/numcpus v0.4.0/go.mod h1:1+UI3pD8NW14VMwdgJNJ1ESk2UnwhAnz5hMwiKKqXCQ= -github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 h1:X9dsIWPuuEJlPX//UmRKophhOKCGXc46RVIGuttks68= github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7/go.mod h1:UxoP3EypF8JfGEjAII8jx1q8rQyDnX8qdTCs/UQBVIE= -github.com/uber/jaeger-client-go v2.22.1+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= github.com/uber/jaeger-client-go v2.30.0+incompatible h1:D6wyKGCecFaSRUpo8lCVbaOOb6ThwMmTEbhRwtKR97o= github.com/uber/jaeger-client-go v2.30.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= -github.com/uber/jaeger-lib v2.2.0+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U= github.com/uber/jaeger-lib v2.4.1+incompatible h1:td4jdvLcExb4cBISKIpHuGoVXh+dVKhn2Um6rjCsSsg= github.com/uber/jaeger-lib v2.4.1+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U= -github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= github.com/ulikunitz/xz v0.5.5/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= @@ -940,7 +896,6 @@ github.com/vmihailenco/msgpack/v4 v4.3.12/go.mod h1:gborTTJjAo/GWTqqRjrLCn9pgNN+ github.com/vmihailenco/tagparser v0.1.1/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI= github.com/vmihailenco/tagparser v0.1.2 h1:gnjoVuB/kljJ5wICEEOpx98oXMWPLj22G67Vbd1qPqc= github.com/vmihailenco/tagparser v0.1.2/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI= -github.com/xanzy/ssh-agent v0.2.1/go.mod h1:mLlQY/MoOhWBj+gOGMQkOeiEvkx+8pJSI+0Bx9h2kr4= github.com/xanzy/ssh-agent v0.3.0/go.mod h1:3s9xbODqPuuhK9JV1R321M/FlMZSBvE5aY6eAcqrDh0= github.com/xanzy/ssh-agent v0.3.1 h1:AmzO1SSWxw73zxFZPRwaMN1MohDw8UyHnmuxyceTEGo= github.com/xanzy/ssh-agent v0.3.1/go.mod h1:QIE4lCeL7nkC25x+yA3LBIYfwCc1TFziCtG7cBAac6w= @@ -950,27 +905,21 @@ github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHo github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74= github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= -github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= -github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= github.com/zclconf/go-cty v1.0.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s= github.com/zclconf/go-cty v1.1.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s= github.com/zclconf/go-cty v1.2.0/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8= github.com/zclconf/go-cty v1.2.1/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8= -github.com/zclconf/go-cty v1.3.1/go.mod h1:YO23e2L18AG+ZYQfSobnY4G65nvwvprPCxBHkufUH1k= github.com/zclconf/go-cty v1.8.0/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= -github.com/zclconf/go-cty v1.9.1/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= github.com/zclconf/go-cty v1.10.0 h1:mp9ZXQeIcN8kAwuqorjH+Q+njbJKjLrvB2yIh4q7U+0= github.com/zclconf/go-cty v1.10.0/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b/go.mod h1:ZRKQfBXbGkpdV6QMzT3rU1kSTAnfu1dO8dPKjYprgj8= github.com/zclconf/go-cty-yaml v1.0.1 h1:up11wlgAaDvlAGENcFDnZgkn0qUJurso7k6EpURKNF8= github.com/zclconf/go-cty-yaml v1.0.1/go.mod h1:IP3Ylp0wQpYm50IHK8OZWKMu6sPJIUgKa8XhiVHura0= -go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.opencensus.io v0.15.0/go.mod h1:UffZAU+4sDEINUGP/B7UfBBkq4fqLu9zXAX7ke6CHW0= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= @@ -978,24 +927,23 @@ go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= +go.opencensus.io v0.22.6/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opencensus.io v0.23.0 h1:gqCw0LfLxScz8irSi8exQc7fyQ0fKQU/qnC/X8+V/1M= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= -go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= -go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= +go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= -go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= -go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= -go.uber.org/zap v1.16.0/go.mod h1:MA8QOfq0BHJwdXa996Y4dYkAqRKB8/1K1QMMZVaNZjQ= -gocloud.dev v0.23.0 h1:u/6F8slWwaZPgGpjpNp0jzH+1P/M2ri7qEP3lFgbqBE= -gocloud.dev v0.23.0/go.mod h1:zklCCIIo1N9ELkU2S2E7tW8P8eeMU7oGLeQCXdDwx9Q= -gocloud.dev/secrets/hashivault v0.23.0 h1:u9/KMKY44dy1iEpawBreRZWrQGxS8HdrqiyuBP6v7i4= -gocloud.dev/secrets/hashivault v0.23.0/go.mod h1:JkedtcYw0IqNMru0glghf+dkoszG0WFjal3PCpucxBs= +go.uber.org/multierr v1.7.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= +go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= +go.uber.org/zap v1.19.0/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= +gocloud.dev v0.24.0 h1:cNtHD07zQQiv02OiwwDyVMuHmR7iQt2RLkzoAgz7wBs= +gocloud.dev v0.24.0/go.mod h1:uA+als++iBX5ShuG4upQo/3Zoz49iIPlYUWHV5mM8w8= +gocloud.dev/secrets/hashivault v0.24.0 h1:rutqnevHcRze+92YMGmjCH3gX+qES8IArg5qPhr8ZnM= +gocloud.dev/secrets/hashivault v0.24.0/go.mod h1:I4EieZgy8VTp5iVK2jSPlTidjENujhKq2Y/wXz8r8V0= golang.org/x/crypto v0.0.0-20171113213409-9f005a07e0d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= @@ -1006,29 +954,24 @@ golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200317142112-1b76d66859c6/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -golang.org/x/crypto v0.0.0-20210506145944-38f3c27a63bf/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8= +golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8= golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220131195533-30dcbda58838/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29 h1:tkVvjkPTB7pnW3jnid7kNyAMPVWllTNOf/qKDze4p9o= -golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa h1:zuSxTR4o9y82ebqCUJYNGJbGPo6sKVl54f/TVDObg1c= +golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= @@ -1038,7 +981,6 @@ golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u0 golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= -golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= @@ -1073,7 +1015,6 @@ golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73r golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= @@ -1081,14 +1022,12 @@ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190502183928-7f726cade0ab/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191004110552-13f9640d40b9/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191009170851-d66e71096ffb/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191112182307-2180aed22343/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -1118,12 +1057,14 @@ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= golang.org/x/net v0.0.0-20210326060303-6b1517762897/go.mod h1:uSPa2vr4CLtc/ILN5odXGNXS6mhrKVzTaCXzk9m6W3k= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20210420210106-798c2154c571/go.mod h1:72T/g9IO56b78aLF+1Kcs5dz7/ng1VjMUvfKvpfy+jM= golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210505214959-0714010a04ed/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210825183410-e898025ed96a/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220407224826-aac1ed45d8e3 h1:EN5+DfgmRMvRUrMGERW2gQl3Vc+Z7ZMnI/xdEpPSf0c= golang.org/x/net v0.0.0-20220407224826-aac1ed45d8e3/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= @@ -1134,16 +1075,17 @@ golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4Iltr golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210126194326-f9ce19ea3013/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210413134643-5e61552d6c78/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210427180440-81ed05c6b58c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a h1:qfl7ob3DIEs3Ml9oLuPwY2N04gymzAW04WsUQHIClgM= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -1163,11 +1105,9 @@ golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180926160741-c2ed4eda69e7/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190129075346-302c3dd5f1cc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190221075227-b4e8571b14e0/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1180,11 +1120,11 @@ golang.org/x/sys v0.0.0-20190514135907-3a4b5fb9f71f/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190530182044-ad28b68e88f1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191112214154-59a1497f0cea/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1211,11 +1151,9 @@ golang.org/x/sys v0.0.0-20200909081042-eff7692f9009/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210218084038-e8e29180ff58/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210223095934-7937bea0104d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1223,13 +1161,9 @@ golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210324051608-47abb6519492/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210412220455-f1c623a9e750/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210420072515-93ed5bcd2bfe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210420205809-ac73e9fd8988/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210502180810-71e4cd670f79/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210503080704-8803ae5d1324/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210503173754-0981d6026fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1237,20 +1171,23 @@ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210816074244-15123e1e1f71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210816183151-1e6c022a8912/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210817190340-bfb29a6856f2/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210831042530-f4d43177bf5e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210917161153-d61c044b1678/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211110154304-99a53858aa08/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211205182925-97ca703d548d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220406163625-3f8b81556e12 h1:QyVthZKMsyaQwBTJE04jdNN0Pp5Fn9Qga0mrgxyERQM= -golang.org/x/sys v0.0.0-20220406163625-3f8b81556e12/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= +golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220517195934-5e4e11fc645e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 h1:0A+M6Uqn+Eje4kHMK80dtF3JCXC4ykBgQG4Fe06QRhQ= +golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -1268,14 +1205,12 @@ golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxb golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba h1:O8mE0/t419eoIwhTFpKVkHiTs/Igowgfkj25AcZrtiE= -golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac h1:7zkz7BUtwNFFqcowJ+RIgu2MaV/MapERkDIy+mwPyjs= +golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= @@ -1288,13 +1223,11 @@ golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgw golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190624222133-a101b041ded4/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190729092621-ff9f1409240a/go.mod h1:jcCCGcm9btYwXyDqrUWc6MKQKKGJCWEQ3AfLSRIbEuI= golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191010075000-0337d82405ff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -1316,7 +1249,6 @@ golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWc golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200608174601-1b747fd94509/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200713011307-fd294ab11aed/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= @@ -1327,7 +1259,6 @@ golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82u golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210101214203-2dba1e4ea05c/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= @@ -1343,16 +1274,10 @@ golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= -gonum.org/v1/gonum v0.8.2/go.mod h1:oe/vMfY3deqTw+1EZJhuvEW2iwGF1bW9wwu7XCu0+v0= -gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= -gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= -google.golang.org/api v0.5.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.10.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= @@ -1367,28 +1292,32 @@ google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSr google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= +google.golang.org/api v0.37.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= -google.golang.org/api v0.45.0/go.mod h1:ISLIJCedJolbZvDfAk+Ctuq5hf+aJ33WgtUsfyFoLXA= google.golang.org/api v0.46.0/go.mod h1:ceL4oozhkAiTID8XMmJBsIxID/9wMXJVVFXPg4ylg3I= google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo= google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4= google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= google.golang.org/api v0.51.0/go.mod h1:t4HdrdoNgyN5cbEfm7Lum0lcLDLiise1F8qDKX00sOU= +google.golang.org/api v0.52.0/go.mod h1:Him/adpjt0sxtkWViy0b6xyKW/SD71CwdJ7HqJo7SrU= google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6z3k= google.golang.org/api v0.55.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI= google.golang.org/api v0.58.0/go.mod h1:cAbP2FsxoGVNwtgNAmmn3y5G1TWAiVYRmg4yku3lv+E= google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= -google.golang.org/api v0.62.0 h1:PhGymJMXfGBzc4lBRmrx9+1w4w2wEzURHNGF/sD/xGc= -google.golang.org/api v0.62.0/go.mod h1:dKmwPCydfsad4qCH08MSdgWjfHOyfpd4VtDGgRFdavw= +google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= +google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= +google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= +google.golang.org/api v0.71.0/go.mod h1:4PyU6e6JogV1f9eA4voyrTY2batOLdgZ5qZ5HOCc4j8= +google.golang.org/api v0.74.0 h1:ExR2D+5TYIrMphWgs5JCgwRhEDlPDXXrLwHHMgPHTXE= +google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRRyDs= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= -google.golang.org/appengine v1.6.2/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -1399,8 +1328,6 @@ google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRn google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190508193815-b515fa19cec8/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= google.golang.org/genproto v0.0.0-20190708153700-3bdd9d9f5532/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= google.golang.org/genproto v0.0.0-20190716160619-c506a9f90610/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= @@ -1424,7 +1351,6 @@ google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfG google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20200608115520-7c474a2e3482/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= google.golang.org/genproto v0.0.0-20200711021454-869866162049/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= @@ -1436,27 +1362,29 @@ google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6D google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210329143202-679c6ae281ee/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= -google.golang.org/genproto v0.0.0-20210413151531-c14fb6ef47c3/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= -google.golang.org/genproto v0.0.0-20210420162539-3c870d7478d2/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= -google.golang.org/genproto v0.0.0-20210423144448-3a41ef94ed2b/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= google.golang.org/genproto v0.0.0-20210429181445-86c259c2b4ab/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= -google.golang.org/genproto v0.0.0-20210506142907-4a47615972c2/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= +google.golang.org/genproto v0.0.0-20210517163617-5e0236093d7a/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= +google.golang.org/genproto v0.0.0-20210721163202-f1cecdd8b78a/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= +google.golang.org/genproto v0.0.0-20210722135532-667f2b7c528f/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= google.golang.org/genproto v0.0.0-20210728212813-7823e685a01f/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= google.golang.org/genproto v0.0.0-20210805201207-89edb61ffb67/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= google.golang.org/genproto v0.0.0-20210813162853-db860fec028c/go.mod h1:cFeNkxwySK631ADgubI+/XFU/xp8FD5KIVV4rj8UC5w= google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210825212027-de86158e7fda/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= @@ -1465,17 +1393,23 @@ google.golang.org/genproto v0.0.0-20210917145530-b395a37504d4/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211018162055-cf77aa76bad2/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211129164237-f09f9a12af12/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211203200212-54befc351ae9/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20220201184016-50beb8ab5c44/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220126215142-9970aeb2e350/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220207164111-0872dc986b00/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220304144024-325a89244dc8/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220310185008-1973136f34c6/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220324131243-acbaeb5b85eb/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= +google.golang.org/genproto v0.0.0-20220405205423-9d709892a2bf/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac h1:qSNTkEN+L2mvWcLgJOR+8bdHX9rN/IdU3A1Ghpfb1Rg= google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= google.golang.org/grpc v1.8.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= -google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= google.golang.org/grpc v1.22.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= @@ -1504,8 +1438,8 @@ google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9K google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= -google.golang.org/grpc v1.46.0 h1:oCjezcn6g6A75TGoKYBPgKmVBLexhYLM6MebdrPApP8= -google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.48.0 h1:rQOsyJ/8+ufEDJd/Gdsz7HG220Mh9HAhFHRGnIjda0w= +google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.2.0/go.mod h1:DNq5QpG7LJqD2AamLZ7zvKE0DEpVl2BSEVjFycAAjRY= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= @@ -1534,24 +1468,16 @@ gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/cheggaaa/pb.v1 v1.0.27/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= -gopkg.in/cheggaaa/pb.v1 v1.0.28/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2/go.mod h1:Xk6kEKp8OKb+X14hQBKWaSkCsqBpgog8nAV2xsGOxlo= -gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= -gopkg.in/square/go-jose.v2 v2.5.1 h1:7odma5RETjNHWJnR32wx8t+Io4djHE1PqxCFx3iiZ2w= gopkg.in/square/go-jose.v2 v2.5.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= -gopkg.in/src-d/go-billy.v4 v4.3.2 h1:0SQA1pRztfTFx2miS8sA97XvooFeNOmvUenF4o0EcVg= -gopkg.in/src-d/go-billy.v4 v4.3.2/go.mod h1:nDjArDMp+XMs1aFAESLRjfGSgfvoYN0hDfzEk0GjC98= -gopkg.in/src-d/go-git-fixtures.v3 v3.5.0 h1:ivZFOIltbce2Mo8IjzUHAFoq/IylO9WHhNOAJK+LsJg= -gopkg.in/src-d/go-git-fixtures.v3 v3.5.0/go.mod h1:dLBcvytrw/TYZsNTWCnkNF2DSIlzWYqTe3rJR56Ac7g= -gopkg.in/src-d/go-git.v4 v4.13.1 h1:SRtFyV8Kxc0UP7aCHcijOMQGPxHSmMOPrzulQWolkYE= -gopkg.in/src-d/go-git.v4 v4.13.1/go.mod h1:nx5NYcxdKxq5fpltdHnPa2Exj4Sx0EclMWZQbYDu2z8= +gopkg.in/square/go-jose.v2 v2.6.0 h1:NGk74WTnPKBNUhNzQX7PYcTLUjoq7mzKk2OKbvwk2iI= +gopkg.in/square/go-jose.v2 v2.6.0/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= -gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= @@ -1562,8 +1488,9 @@ gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo= gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= gotest.tools/v3 v3.0.2 h1:kG1BFyqVHuQoVQiR1bWGnfz/fmHvvuiSPIV7rvl360E= @@ -1576,18 +1503,14 @@ honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= howett.net/plist v0.0.0-20181124034731-591f970eefbb/go.mod h1:vMygbs4qMhSZSc4lCUl2OEE+rDiIIJAIdR4m7MiMcm0= -mvdan.cc/gofumpt v0.0.0-20210107193838-d24d34e18d44/go.mod h1:yXG1r1WqZVKWbVRtBWKWX9+CxGYfA51nSomhM0woR48= +lukechampine.com/frand v1.4.2 h1:RzFIpOvkMXuPMBb9maa4ND4wjBn71E1Jpf8BzJHMaVw= +lukechampine.com/frand v1.4.2/go.mod h1:4S/TM2ZgrKejMcKMbeLjISpJMO+/eZ1zu3vYX9dtj3s= mvdan.cc/gofumpt v0.1.0 h1:hsVv+Y9UsZ/mFZTxJZuHVI6shSQCtzZ11h1JEFPAZLw= -mvdan.cc/gofumpt v0.1.0/go.mod h1:yXG1r1WqZVKWbVRtBWKWX9+CxGYfA51nSomhM0woR48= nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= nhooyr.io/websocket v1.8.7/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= pgregory.net/rapid v0.4.7 h1:MTNRktPuv5FNqOO151TM9mDTa+XHcX6ypYeISDVD14g= -pgregory.net/rapid v0.4.7/go.mod h1:UYpPVyjFHzYBGHIxLFoupi8vwk6rXNzRY9OMvVxFIOU= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= -rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= -sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= sourcegraph.com/sourcegraph/appdash v0.0.0-20211028080628-e2786a622600 h1:hfyJ5ku9yFtLVOiSxa3IN+dx5eBQT9mPmKFypAmg8XM= sourcegraph.com/sourcegraph/appdash v0.0.0-20211028080628-e2786a622600/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= -sourcegraph.com/sourcegraph/appdash-data v0.0.0-20151005221446-73f23eafcf67/go.mod h1:L5q+DGLGOQFpo1snNEkLOJT2d1YTW66rWNzatr3He1k= diff --git a/provider/shim/go.mod b/provider/shim/go.mod index c83b9ac46..73f43be35 100644 --- a/provider/shim/go.mod +++ b/provider/shim/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/hashicorp/terraform-plugin-sdk/v2 v2.17.0 - github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220711100922-17fee5b9cd86 + github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220805021720-b23d151b8feb ) require ( diff --git a/provider/shim/go.sum b/provider/shim/go.sum index 6a84fb14a..bbee2be65 100644 --- a/provider/shim/go.sum +++ b/provider/shim/go.sum @@ -230,8 +230,8 @@ github.com/hashicorp/terraform-plugin-go v0.9.1/go.mod h1:ItjVSlQs70otlzcCwlPcU8 github.com/hashicorp/terraform-plugin-log v0.2.0/go.mod h1:E1kJmapEHzqu1x6M++gjvhzM2yMQNXPVWZRCB8sgYjg= github.com/hashicorp/terraform-plugin-log v0.4.0 h1:F3eVnm8r2EfQCe2k9blPIiF/r2TT01SHijXnS7bujvc= github.com/hashicorp/terraform-plugin-log v0.4.0/go.mod h1:9KclxdunFownr4pIm1jdmwKRmE4d6HVG2c9XDq47rpg= -github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220711100922-17fee5b9cd86 h1:vfJPvH2KNg+HEoM5iW6dw8hioYLmJmxc0XLuXoMo6h8= -github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220711100922-17fee5b9cd86/go.mod h1:hHPPmkxNLaP75X7jIwtX7zgIkscrbpaDaebBAhlTROM= +github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220805021720-b23d151b8feb h1:2qIbdvjlbZTISrEHmHh5+g/rdRLggTt2lfg9W09Fb1E= +github.com/hashicorp/terraform-provider-azuread v1.6.1-0.20220805021720-b23d151b8feb/go.mod h1:hHPPmkxNLaP75X7jIwtX7zgIkscrbpaDaebBAhlTROM= github.com/hashicorp/terraform-registry-address v0.0.0-20210412075316-9b2996cce896/go.mod h1:bzBPnUIkI0RxauU8Dqo+2KrZZ28Cf48s8V6IHt3p4co= github.com/hashicorp/terraform-registry-address v0.0.0-20220131103327-5c1c5e123275 h1:x/8cnK295F9NK18FXxsJxU1bz2PusWH52DDDsuao+88= github.com/hashicorp/terraform-registry-address v0.0.0-20220131103327-5c1c5e123275/go.mod h1:bdLC+qQlJIBHKbCMA6GipcuaKjmjcvZlnVdpU583z3Y= diff --git a/sdk/dotnet/AdministrativeUnit.cs b/sdk/dotnet/AdministrativeUnit.cs index 71712ecfd..2a06fa48d 100644 --- a/sdk/dotnet/AdministrativeUnit.cs +++ b/sdk/dotnet/AdministrativeUnit.cs @@ -29,7 +29,7 @@ namespace Pulumi.AzureAD /// ``` /// [AzureADResourceType("azuread:index/administrativeUnit:AdministrativeUnit")] - public partial class AdministrativeUnit : Pulumi.CustomResource + public partial class AdministrativeUnit : global::Pulumi.CustomResource { /// /// The description of the administrative unit. @@ -111,7 +111,7 @@ public static AdministrativeUnit Get(string name, Input id, Administrati } } - public sealed class AdministrativeUnitArgs : Pulumi.ResourceArgs + public sealed class AdministrativeUnitArgs : global::Pulumi.ResourceArgs { /// /// The description of the administrative unit. @@ -152,9 +152,10 @@ public InputList Members public AdministrativeUnitArgs() { } + public static new AdministrativeUnitArgs Empty => new AdministrativeUnitArgs(); } - public sealed class AdministrativeUnitState : Pulumi.ResourceArgs + public sealed class AdministrativeUnitState : global::Pulumi.ResourceArgs { /// /// The description of the administrative unit. @@ -201,5 +202,6 @@ public InputList Members public AdministrativeUnitState() { } + public static new AdministrativeUnitState Empty => new AdministrativeUnitState(); } } diff --git a/sdk/dotnet/AdministrativeUnitMember.cs b/sdk/dotnet/AdministrativeUnitMember.cs index 60a047ecb..0f31b643a 100644 --- a/sdk/dotnet/AdministrativeUnitMember.cs +++ b/sdk/dotnet/AdministrativeUnitMember.cs @@ -25,29 +25,29 @@ namespace Pulumi.AzureAD /// ## Example Usage /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var exampleUser = AzureAD.GetUser.Invoke(new() /// { - /// var exampleUser = Output.Create(AzureAD.GetUser.InvokeAsync(new AzureAD.GetUserArgs - /// { - /// UserPrincipalName = "jdoe@hashicorp.com", - /// })); - /// var exampleAdministrativeUnit = new AzureAD.AdministrativeUnit("exampleAdministrativeUnit", new AzureAD.AdministrativeUnitArgs - /// { - /// DisplayName = "Example-AU", - /// }); - /// var exampleAdministrativeUnitMember = new AzureAD.AdministrativeUnitMember("exampleAdministrativeUnitMember", new AzureAD.AdministrativeUnitMemberArgs - /// { - /// AdministrativeUnitObjectId = exampleAdministrativeUnit.Id, - /// MemberObjectId = exampleUser.Apply(exampleUser => exampleUser.Id), - /// }); - /// } + /// UserPrincipalName = "jdoe@hashicorp.com", + /// }); /// - /// } + /// var exampleAdministrativeUnit = new AzureAD.AdministrativeUnit("exampleAdministrativeUnit", new() + /// { + /// DisplayName = "Example-AU", + /// }); + /// + /// var exampleAdministrativeUnitMember = new AzureAD.AdministrativeUnitMember("exampleAdministrativeUnitMember", new() + /// { + /// AdministrativeUnitObjectId = exampleAdministrativeUnit.Id, + /// MemberObjectId = exampleUser.Apply(getUserResult => getUserResult.Id), + /// }); + /// + /// }); /// ``` /// /// ## Import @@ -61,7 +61,7 @@ namespace Pulumi.AzureAD /// -> This ID format is unique to Terraform and is composed of the Administrative Unit Object ID and the target Member Object ID in the format `{AdministrativeUnitObjectID}/member/{MemberObjectID}`. /// [AzureADResourceType("azuread:index/administrativeUnitMember:AdministrativeUnitMember")] - public partial class AdministrativeUnitMember : Pulumi.CustomResource + public partial class AdministrativeUnitMember : global::Pulumi.CustomResource { /// /// The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created. @@ -119,7 +119,7 @@ public static AdministrativeUnitMember Get(string name, Input id, Admini } } - public sealed class AdministrativeUnitMemberArgs : Pulumi.ResourceArgs + public sealed class AdministrativeUnitMemberArgs : global::Pulumi.ResourceArgs { /// /// The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created. @@ -136,9 +136,10 @@ public sealed class AdministrativeUnitMemberArgs : Pulumi.ResourceArgs public AdministrativeUnitMemberArgs() { } + public static new AdministrativeUnitMemberArgs Empty => new AdministrativeUnitMemberArgs(); } - public sealed class AdministrativeUnitMemberState : Pulumi.ResourceArgs + public sealed class AdministrativeUnitMemberState : global::Pulumi.ResourceArgs { /// /// The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created. @@ -155,5 +156,6 @@ public sealed class AdministrativeUnitMemberState : Pulumi.ResourceArgs public AdministrativeUnitMemberState() { } + public static new AdministrativeUnitMemberState Empty => new AdministrativeUnitMemberState(); } } diff --git a/sdk/dotnet/AppRoleAssignment.cs b/sdk/dotnet/AppRoleAssignment.cs index 4e95d0947..cf7d1987f 100644 --- a/sdk/dotnet/AppRoleAssignment.cs +++ b/sdk/dotnet/AppRoleAssignment.cs @@ -25,189 +25,197 @@ namespace Pulumi.AzureAD /// *App role assignment for accessing Microsoft Graph* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var wellKnown = AzureAD.GetApplicationPublishedAppIds.Invoke(); + /// + /// var msgraph = new AzureAD.ServicePrincipal("msgraph", new() /// { - /// var wellKnown = Output.Create(AzureAD.GetApplicationPublishedAppIds.InvokeAsync()); - /// var msgraph = new AzureAD.ServicePrincipal("msgraph", new AzureAD.ServicePrincipalArgs - /// { - /// ApplicationId = wellKnown.Apply(wellKnown => wellKnown.Result?.MicrosoftGraph), - /// UseExisting = true, - /// }); - /// var exampleApplication = new AzureAD.Application("exampleApplication", new AzureAD.ApplicationArgs + /// ApplicationId = wellKnown.Apply(getApplicationPublishedAppIdsResult => getApplicationPublishedAppIdsResult.Result?.MicrosoftGraph), + /// UseExisting = true, + /// }); + /// + /// var exampleApplication = new AzureAD.Application("exampleApplication", new() + /// { + /// DisplayName = "example", + /// RequiredResourceAccesses = new[] /// { - /// DisplayName = "example", - /// RequiredResourceAccesses = + /// new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs /// { - /// new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs + /// ResourceAppId = wellKnown.Apply(getApplicationPublishedAppIdsResult => getApplicationPublishedAppIdsResult.Result?.MicrosoftGraph), + /// ResourceAccesses = new[] /// { - /// ResourceAppId = wellKnown.Apply(wellKnown => wellKnown.Result?.MicrosoftGraph), - /// ResourceAccesses = + /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs + /// { + /// Id = msgraph.AppRoleIds.Apply(appRoleIds => appRoleIds.User_Read_All), + /// Type = "Role", + /// }, + /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs /// { - /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs - /// { - /// Id = msgraph.AppRoleIds.Apply(appRoleIds => appRoleIds.User_Read_All), - /// Type = "Role", - /// }, - /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs - /// { - /// Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds => oauth2PermissionScopeIds.User_ReadWrite), - /// Type = "Scope", - /// }, + /// Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds => oauth2PermissionScopeIds.User_ReadWrite), + /// Type = "Scope", /// }, /// }, /// }, - /// }); - /// var exampleServicePrincipal = new AzureAD.ServicePrincipal("exampleServicePrincipal", new AzureAD.ServicePrincipalArgs - /// { - /// ApplicationId = exampleApplication.ApplicationId, - /// }); - /// var exampleAppRoleAssignment = new AzureAD.AppRoleAssignment("exampleAppRoleAssignment", new AzureAD.AppRoleAssignmentArgs - /// { - /// AppRoleId = msgraph.AppRoleIds.Apply(appRoleIds => appRoleIds.User_Read_All), - /// PrincipalObjectId = exampleServicePrincipal.ObjectId, - /// ResourceObjectId = msgraph.ObjectId, - /// }); - /// } + /// }, + /// }); + /// + /// var exampleServicePrincipal = new AzureAD.ServicePrincipal("exampleServicePrincipal", new() + /// { + /// ApplicationId = exampleApplication.ApplicationId, + /// }); + /// + /// var exampleAppRoleAssignment = new AzureAD.AppRoleAssignment("exampleAppRoleAssignment", new() + /// { + /// AppRoleId = msgraph.AppRoleIds.Apply(appRoleIds => appRoleIds.User_Read_All), + /// PrincipalObjectId = exampleServicePrincipal.ObjectId, + /// ResourceObjectId = msgraph.ObjectId, + /// }); /// - /// } + /// }); /// ``` /// /// *App role assignment for internal application* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var internalApplication = new AzureAD.Application("internalApplication", new() /// { - /// var internalApplication = new AzureAD.Application("internalApplication", new AzureAD.ApplicationArgs + /// DisplayName = "internal", + /// AppRoles = new[] /// { - /// DisplayName = "internal", - /// AppRoles = + /// new AzureAD.Inputs.ApplicationAppRoleArgs /// { - /// new AzureAD.Inputs.ApplicationAppRoleArgs + /// AllowedMemberTypes = new[] /// { - /// AllowedMemberTypes = - /// { - /// "Application", - /// }, - /// Description = "Apps can query the database", - /// DisplayName = "Query", - /// Enabled = true, - /// Id = "00000000-0000-0000-0000-111111111111", - /// Value = "Query.All", + /// "Application", /// }, + /// Description = "Apps can query the database", + /// DisplayName = "Query", + /// Enabled = true, + /// Id = "00000000-0000-0000-0000-111111111111", + /// Value = "Query.All", /// }, - /// }); - /// var internalServicePrincipal = new AzureAD.ServicePrincipal("internalServicePrincipal", new AzureAD.ServicePrincipalArgs - /// { - /// ApplicationId = internalApplication.ApplicationId, - /// }); - /// var exampleApplication = new AzureAD.Application("exampleApplication", new AzureAD.ApplicationArgs + /// }, + /// }); + /// + /// var internalServicePrincipal = new AzureAD.ServicePrincipal("internalServicePrincipal", new() + /// { + /// ApplicationId = internalApplication.ApplicationId, + /// }); + /// + /// var exampleApplication = new AzureAD.Application("exampleApplication", new() + /// { + /// DisplayName = "example", + /// RequiredResourceAccesses = new[] /// { - /// DisplayName = "example", - /// RequiredResourceAccesses = + /// new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs /// { - /// new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs + /// ResourceAppId = internalApplication.ApplicationId, + /// ResourceAccesses = new[] /// { - /// ResourceAppId = internalApplication.ApplicationId, - /// ResourceAccesses = + /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs /// { - /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs - /// { - /// Id = internalServicePrincipal.AppRoleIds.Apply(appRoleIds => appRoleIds.Query_All), - /// Type = "Role", - /// }, + /// Id = internalServicePrincipal.AppRoleIds.Apply(appRoleIds => appRoleIds.Query_All), + /// Type = "Role", /// }, /// }, /// }, - /// }); - /// var exampleServicePrincipal = new AzureAD.ServicePrincipal("exampleServicePrincipal", new AzureAD.ServicePrincipalArgs - /// { - /// ApplicationId = exampleApplication.ApplicationId, - /// }); - /// var exampleAppRoleAssignment = new AzureAD.AppRoleAssignment("exampleAppRoleAssignment", new AzureAD.AppRoleAssignmentArgs - /// { - /// AppRoleId = internalServicePrincipal.AppRoleIds.Apply(appRoleIds => appRoleIds.Query_All), - /// PrincipalObjectId = exampleServicePrincipal.ObjectId, - /// ResourceObjectId = internalServicePrincipal.ObjectId, - /// }); - /// } + /// }, + /// }); + /// + /// var exampleServicePrincipal = new AzureAD.ServicePrincipal("exampleServicePrincipal", new() + /// { + /// ApplicationId = exampleApplication.ApplicationId, + /// }); /// - /// } + /// var exampleAppRoleAssignment = new AzureAD.AppRoleAssignment("exampleAppRoleAssignment", new() + /// { + /// AppRoleId = internalServicePrincipal.AppRoleIds.Apply(appRoleIds => appRoleIds.Query_All), + /// PrincipalObjectId = exampleServicePrincipal.ObjectId, + /// ResourceObjectId = internalServicePrincipal.ObjectId, + /// }); + /// + /// }); /// ``` /// /// *Assign a user and group to an internal application* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var exampleDomains = AzureAD.GetDomains.Invoke(new() /// { - /// var exampleDomains = Output.Create(AzureAD.GetDomains.InvokeAsync(new AzureAD.GetDomainsArgs - /// { - /// OnlyInitial = true, - /// })); - /// var internalApplication = new AzureAD.Application("internalApplication", new AzureAD.ApplicationArgs + /// OnlyInitial = true, + /// }); + /// + /// var internalApplication = new AzureAD.Application("internalApplication", new() + /// { + /// DisplayName = "internal", + /// AppRoles = new[] /// { - /// DisplayName = "internal", - /// AppRoles = + /// new AzureAD.Inputs.ApplicationAppRoleArgs /// { - /// new AzureAD.Inputs.ApplicationAppRoleArgs + /// AllowedMemberTypes = new[] /// { - /// AllowedMemberTypes = - /// { - /// "Application", - /// "User", - /// }, - /// Description = "Admins can perform all task actions", - /// DisplayName = "Admin", - /// Enabled = true, - /// Id = "00000000-0000-0000-0000-222222222222", - /// Value = "Admin.All", + /// "Application", + /// "User", /// }, + /// Description = "Admins can perform all task actions", + /// DisplayName = "Admin", + /// Enabled = true, + /// Id = "00000000-0000-0000-0000-222222222222", + /// Value = "Admin.All", /// }, - /// }); - /// var internalServicePrincipal = new AzureAD.ServicePrincipal("internalServicePrincipal", new AzureAD.ServicePrincipalArgs - /// { - /// ApplicationId = internalApplication.ApplicationId, - /// }); - /// var exampleGroup = new AzureAD.Group("exampleGroup", new AzureAD.GroupArgs - /// { - /// DisplayName = "example", - /// SecurityEnabled = true, - /// }); - /// var exampleAppRoleAssignment = new AzureAD.AppRoleAssignment("exampleAppRoleAssignment", new AzureAD.AppRoleAssignmentArgs - /// { - /// AppRoleId = internalServicePrincipal.AppRoleIds.Apply(appRoleIds => appRoleIds.Admin_All), - /// PrincipalObjectId = exampleGroup.ObjectId, - /// ResourceObjectId = internalServicePrincipal.ObjectId, - /// }); - /// var exampleUser = new AzureAD.User("exampleUser", new AzureAD.UserArgs - /// { - /// DisplayName = "D. Duck", - /// Password = "SecretP@sswd99!", - /// UserPrincipalName = exampleDomains.Apply(exampleDomains => $"d.duck@{exampleDomains.Domains?[0]?.DomainName}"), - /// }); - /// var exampleIndex_appRoleAssignmentAppRoleAssignment = new AzureAD.AppRoleAssignment("exampleIndex/appRoleAssignmentAppRoleAssignment", new AzureAD.AppRoleAssignmentArgs - /// { - /// AppRoleId = internalServicePrincipal.AppRoleIds.Apply(appRoleIds => appRoleIds.Admin_All), - /// PrincipalObjectId = exampleUser.ObjectId, - /// ResourceObjectId = internalServicePrincipal.ObjectId, - /// }); - /// } + /// }, + /// }); + /// + /// var internalServicePrincipal = new AzureAD.ServicePrincipal("internalServicePrincipal", new() + /// { + /// ApplicationId = internalApplication.ApplicationId, + /// }); + /// + /// var exampleGroup = new AzureAD.Group("exampleGroup", new() + /// { + /// DisplayName = "example", + /// SecurityEnabled = true, + /// }); + /// + /// var exampleAppRoleAssignment = new AzureAD.AppRoleAssignment("exampleAppRoleAssignment", new() + /// { + /// AppRoleId = internalServicePrincipal.AppRoleIds.Apply(appRoleIds => appRoleIds.Admin_All), + /// PrincipalObjectId = exampleGroup.ObjectId, + /// ResourceObjectId = internalServicePrincipal.ObjectId, + /// }); + /// + /// var exampleUser = new AzureAD.User("exampleUser", new() + /// { + /// DisplayName = "D. Duck", + /// Password = "SecretP@sswd99!", + /// UserPrincipalName = $"d.duck@{exampleDomains.Apply(getDomainsResult => getDomainsResult.Domains[0]?.DomainName)}", + /// }); + /// + /// var exampleIndex_appRoleAssignmentAppRoleAssignment = new AzureAD.AppRoleAssignment("exampleIndex/appRoleAssignmentAppRoleAssignment", new() + /// { + /// AppRoleId = internalServicePrincipal.AppRoleIds.Apply(appRoleIds => appRoleIds.Admin_All), + /// PrincipalObjectId = exampleUser.ObjectId, + /// ResourceObjectId = internalServicePrincipal.ObjectId, + /// }); /// - /// } + /// }); /// ``` /// /// ## Import @@ -221,7 +229,7 @@ namespace Pulumi.AzureAD /// -> This ID format is unique to Terraform and is composed of the Resource Service Principal Object ID and the ID of the App Role Assignment in the format `{ResourcePrincipalID}/appRoleAssignment/{AppRoleAssignmentID}`. /// [AzureADResourceType("azuread:index/appRoleAssignment:AppRoleAssignment")] - public partial class AppRoleAssignment : Pulumi.CustomResource + public partial class AppRoleAssignment : global::Pulumi.CustomResource { /// /// The ID of the app role to be assigned. Changing this forces a new resource to be created. @@ -303,7 +311,7 @@ public static AppRoleAssignment Get(string name, Input id, AppRoleAssign } } - public sealed class AppRoleAssignmentArgs : Pulumi.ResourceArgs + public sealed class AppRoleAssignmentArgs : global::Pulumi.ResourceArgs { /// /// The ID of the app role to be assigned. Changing this forces a new resource to be created. @@ -326,9 +334,10 @@ public sealed class AppRoleAssignmentArgs : Pulumi.ResourceArgs public AppRoleAssignmentArgs() { } + public static new AppRoleAssignmentArgs Empty => new AppRoleAssignmentArgs(); } - public sealed class AppRoleAssignmentState : Pulumi.ResourceArgs + public sealed class AppRoleAssignmentState : global::Pulumi.ResourceArgs { /// /// The ID of the app role to be assigned. Changing this forces a new resource to be created. @@ -369,5 +378,6 @@ public sealed class AppRoleAssignmentState : Pulumi.ResourceArgs public AppRoleAssignmentState() { } + public static new AppRoleAssignmentState Empty => new AppRoleAssignmentState(); } } diff --git a/sdk/dotnet/Application.cs b/sdk/dotnet/Application.cs index 6bbeedfa4..5491ca9f0 100644 --- a/sdk/dotnet/Application.cs +++ b/sdk/dotnet/Application.cs @@ -16,214 +16,213 @@ namespace Pulumi.AzureAD /// /// ```csharp /// using System; + /// using System.Collections.Generic; /// using System.IO; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack - /// { /// private static string ReadFileBase64(string path) { /// return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path))) /// } /// - /// public MyStack() + /// return await Deployment.RunAsync(() => + /// { + /// var current = AzureAD.GetClientConfig.Invoke(); + /// + /// var example = new AzureAD.Application("example", new() /// { - /// var current = Output.Create(AzureAD.GetClientConfig.InvokeAsync()); - /// var example = new AzureAD.Application("example", new AzureAD.ApplicationArgs + /// DisplayName = "example", + /// IdentifierUris = new[] /// { - /// DisplayName = "example", - /// IdentifierUris = - /// { - /// "api://example-app", - /// }, - /// LogoImage = ReadFileBase64("/path/to/logo.png"), - /// Owners = + /// "api://example-app", + /// }, + /// LogoImage = ReadFileBase64("/path/to/logo.png"), + /// Owners = new[] + /// { + /// current.Apply(getClientConfigResult => getClientConfigResult.ObjectId), + /// }, + /// SignInAudience = "AzureADMultipleOrgs", + /// Api = new AzureAD.Inputs.ApplicationApiArgs + /// { + /// MappedClaimsEnabled = true, + /// RequestedAccessTokenVersion = 2, + /// KnownClientApplications = new[] /// { - /// current.Apply(current => current.ObjectId), + /// azuread_application.Known1.Application_id, + /// azuread_application.Known2.Application_id, /// }, - /// SignInAudience = "AzureADMultipleOrgs", - /// Api = new AzureAD.Inputs.ApplicationApiArgs + /// Oauth2PermissionScopes = new[] /// { - /// MappedClaimsEnabled = true, - /// RequestedAccessTokenVersion = 2, - /// KnownClientApplications = + /// new AzureAD.Inputs.ApplicationApiOauth2PermissionScopeArgs /// { - /// azuread_application.Known1.Application_id, - /// azuread_application.Known2.Application_id, + /// AdminConsentDescription = "Allow the application to access example on behalf of the signed-in user.", + /// AdminConsentDisplayName = "Access example", + /// Enabled = true, + /// Id = "96183846-204b-4b43-82e1-5d2222eb4b9b", + /// Type = "User", + /// UserConsentDescription = "Allow the application to access example on your behalf.", + /// UserConsentDisplayName = "Access example", + /// Value = "user_impersonation", /// }, - /// Oauth2PermissionScopes = + /// new AzureAD.Inputs.ApplicationApiOauth2PermissionScopeArgs /// { - /// new AzureAD.Inputs.ApplicationApiOauth2PermissionScopeArgs - /// { - /// AdminConsentDescription = "Allow the application to access example on behalf of the signed-in user.", - /// AdminConsentDisplayName = "Access example", - /// Enabled = true, - /// Id = "96183846-204b-4b43-82e1-5d2222eb4b9b", - /// Type = "User", - /// UserConsentDescription = "Allow the application to access example on your behalf.", - /// UserConsentDisplayName = "Access example", - /// Value = "user_impersonation", - /// }, - /// new AzureAD.Inputs.ApplicationApiOauth2PermissionScopeArgs - /// { - /// AdminConsentDescription = "Administer the example application", - /// AdminConsentDisplayName = "Administer", - /// Enabled = true, - /// Id = "be98fa3e-ab5b-4b11-83d9-04ba2b7946bc", - /// Type = "Admin", - /// Value = "administer", - /// }, + /// AdminConsentDescription = "Administer the example application", + /// AdminConsentDisplayName = "Administer", + /// Enabled = true, + /// Id = "be98fa3e-ab5b-4b11-83d9-04ba2b7946bc", + /// Type = "Admin", + /// Value = "administer", /// }, /// }, - /// AppRoles = + /// }, + /// AppRoles = new[] + /// { + /// new AzureAD.Inputs.ApplicationAppRoleArgs /// { - /// new AzureAD.Inputs.ApplicationAppRoleArgs + /// AllowedMemberTypes = new[] /// { - /// AllowedMemberTypes = - /// { - /// "User", - /// "Application", - /// }, - /// Description = "Admins can manage roles and perform all task actions", - /// DisplayName = "Admin", - /// Enabled = true, - /// Id = "1b19509b-32b1-4e9f-b71d-4992aa991967", - /// Value = "admin", - /// }, - /// new AzureAD.Inputs.ApplicationAppRoleArgs - /// { - /// AllowedMemberTypes = - /// { - /// "User", - /// }, - /// Description = "ReadOnly roles have limited query access", - /// DisplayName = "ReadOnly", - /// Enabled = true, - /// Id = "497406e4-012a-4267-bf18-45a1cb148a01", - /// Value = "User", + /// "User", + /// "Application", /// }, + /// Description = "Admins can manage roles and perform all task actions", + /// DisplayName = "Admin", + /// Enabled = true, + /// Id = "1b19509b-32b1-4e9f-b71d-4992aa991967", + /// Value = "admin", /// }, - /// FeatureTags = + /// new AzureAD.Inputs.ApplicationAppRoleArgs /// { - /// new AzureAD.Inputs.ApplicationFeatureTagArgs + /// AllowedMemberTypes = new[] /// { - /// Enterprise = true, - /// Gallery = true, + /// "User", /// }, + /// Description = "ReadOnly roles have limited query access", + /// DisplayName = "ReadOnly", + /// Enabled = true, + /// Id = "497406e4-012a-4267-bf18-45a1cb148a01", + /// Value = "User", /// }, - /// OptionalClaims = new AzureAD.Inputs.ApplicationOptionalClaimsArgs + /// }, + /// FeatureTags = new[] + /// { + /// new AzureAD.Inputs.ApplicationFeatureTagArgs + /// { + /// Enterprise = true, + /// Gallery = true, + /// }, + /// }, + /// OptionalClaims = new AzureAD.Inputs.ApplicationOptionalClaimsArgs + /// { + /// AccessTokens = new[] /// { - /// AccessTokens = + /// new AzureAD.Inputs.ApplicationOptionalClaimsAccessTokenArgs /// { - /// new AzureAD.Inputs.ApplicationOptionalClaimsAccessTokenArgs - /// { - /// Name = "myclaim", - /// }, - /// new AzureAD.Inputs.ApplicationOptionalClaimsAccessTokenArgs - /// { - /// Name = "otherclaim", - /// }, + /// Name = "myclaim", /// }, - /// IdTokens = + /// new AzureAD.Inputs.ApplicationOptionalClaimsAccessTokenArgs /// { - /// new AzureAD.Inputs.ApplicationOptionalClaimsIdTokenArgs - /// { - /// Name = "userclaim", - /// Source = "user", - /// Essential = true, - /// AdditionalProperties = - /// { - /// "emit_as_roles", - /// }, - /// }, + /// Name = "otherclaim", /// }, - /// Saml2Tokens = + /// }, + /// IdTokens = new[] + /// { + /// new AzureAD.Inputs.ApplicationOptionalClaimsIdTokenArgs /// { - /// new AzureAD.Inputs.ApplicationOptionalClaimsSaml2TokenArgs + /// Name = "userclaim", + /// Source = "user", + /// Essential = true, + /// AdditionalProperties = new[] /// { - /// Name = "samlexample", + /// "emit_as_roles", /// }, /// }, /// }, - /// RequiredResourceAccesses = + /// Saml2Tokens = new[] /// { - /// new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs + /// new AzureAD.Inputs.ApplicationOptionalClaimsSaml2TokenArgs /// { - /// ResourceAppId = "00000003-0000-0000-c000-000000000000", - /// ResourceAccesses = - /// { - /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs - /// { - /// Id = "df021288-bdef-4463-88db-98f22de89214", - /// Type = "Role", - /// }, - /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs - /// { - /// Id = "b4e74841-8e56-480b-be8b-910348b18b4c", - /// Type = "Scope", - /// }, - /// }, + /// Name = "samlexample", /// }, - /// new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs + /// }, + /// }, + /// RequiredResourceAccesses = new[] + /// { + /// new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs + /// { + /// ResourceAppId = "00000003-0000-0000-c000-000000000000", + /// ResourceAccesses = new[] /// { - /// ResourceAppId = "c5393580-f805-4401-95e8-94b7a6ef2fc2", - /// ResourceAccesses = + /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs /// { - /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs - /// { - /// Id = "594c1fb6-4f81-4475-ae41-0c394909246c", - /// Type = "Role", - /// }, + /// Id = "df021288-bdef-4463-88db-98f22de89214", + /// Type = "Role", + /// }, + /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs + /// { + /// Id = "b4e74841-8e56-480b-be8b-910348b18b4c", + /// Type = "Scope", /// }, /// }, /// }, - /// Web = new AzureAD.Inputs.ApplicationWebArgs + /// new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs /// { - /// HomepageUrl = "https://app.example.net", - /// LogoutUrl = "https://app.example.net/logout", - /// RedirectUris = - /// { - /// "https://app.example.net/account", - /// }, - /// ImplicitGrant = new AzureAD.Inputs.ApplicationWebImplicitGrantArgs + /// ResourceAppId = "c5393580-f805-4401-95e8-94b7a6ef2fc2", + /// ResourceAccesses = new[] /// { - /// AccessTokenIssuanceEnabled = true, - /// IdTokenIssuanceEnabled = true, + /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs + /// { + /// Id = "594c1fb6-4f81-4475-ae41-0c394909246c", + /// Type = "Role", + /// }, /// }, /// }, - /// }); - /// } + /// }, + /// Web = new AzureAD.Inputs.ApplicationWebArgs + /// { + /// HomepageUrl = "https://app.example.net", + /// LogoutUrl = "https://app.example.net/logout", + /// RedirectUris = new[] + /// { + /// "https://app.example.net/account", + /// }, + /// ImplicitGrant = new AzureAD.Inputs.ApplicationWebImplicitGrantArgs + /// { + /// AccessTokenIssuanceEnabled = true, + /// IdTokenIssuanceEnabled = true, + /// }, + /// }, + /// }); /// - /// } + /// }); /// ``` /// /// *Create application from a gallery template* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var exampleApplicationTemplate = AzureAD.GetApplicationTemplate.Invoke(new() /// { - /// var exampleApplicationTemplate = Output.Create(AzureAD.GetApplicationTemplate.InvokeAsync(new AzureAD.GetApplicationTemplateArgs - /// { - /// DisplayName = "Marketo", - /// })); - /// var exampleApplication = new AzureAD.Application("exampleApplication", new AzureAD.ApplicationArgs - /// { - /// DisplayName = "example", - /// TemplateId = exampleApplicationTemplate.Apply(exampleApplicationTemplate => exampleApplicationTemplate.TemplateId), - /// }); - /// var exampleServicePrincipal = new AzureAD.ServicePrincipal("exampleServicePrincipal", new AzureAD.ServicePrincipalArgs - /// { - /// ApplicationId = exampleApplication.ApplicationId, - /// UseExisting = true, - /// }); - /// } + /// DisplayName = "Marketo", + /// }); + /// + /// var exampleApplication = new AzureAD.Application("exampleApplication", new() + /// { + /// DisplayName = "example", + /// TemplateId = exampleApplicationTemplate.Apply(getApplicationTemplateResult => getApplicationTemplateResult.TemplateId), + /// }); + /// + /// var exampleServicePrincipal = new AzureAD.ServicePrincipal("exampleServicePrincipal", new() + /// { + /// ApplicationId = exampleApplication.ApplicationId, + /// UseExisting = true, + /// }); /// - /// } + /// }); /// ``` /// /// ## Import @@ -235,7 +234,7 @@ namespace Pulumi.AzureAD /// ``` /// [AzureADResourceType("azuread:index/application:Application")] - public partial class Application : Pulumi.CustomResource + public partial class Application : global::Pulumi.CustomResource { /// /// An `api` block as documented below, which configures API related settings for this application. @@ -467,7 +466,7 @@ public static Application Get(string name, Input id, ApplicationState? s } } - public sealed class ApplicationArgs : Pulumi.ResourceArgs + public sealed class ApplicationArgs : global::Pulumi.ResourceArgs { /// /// An `api` block as documented below, which configures API related settings for this application. @@ -658,9 +657,10 @@ public InputList Tags public ApplicationArgs() { } + public static new ApplicationArgs Empty => new ApplicationArgs(); } - public sealed class ApplicationState : Pulumi.ResourceArgs + public sealed class ApplicationState : global::Pulumi.ResourceArgs { /// /// An `api` block as documented below, which configures API related settings for this application. @@ -905,5 +905,6 @@ public InputList Tags public ApplicationState() { } + public static new ApplicationState Empty => new ApplicationState(); } } diff --git a/sdk/dotnet/ApplicationCertificate.cs b/sdk/dotnet/ApplicationCertificate.cs index 426d8bc71..a89ddcb1e 100644 --- a/sdk/dotnet/ApplicationCertificate.cs +++ b/sdk/dotnet/ApplicationCertificate.cs @@ -21,7 +21,7 @@ namespace Pulumi.AzureAD /// -> This ID format is unique to Terraform and is composed of the application's object ID, the string "certificate" and the certificate's key ID in the format `{ObjectId}/certificate/{CertificateKeyId}`. /// [AzureADResourceType("azuread:index/applicationCertificate:ApplicationCertificate")] - public partial class ApplicationCertificate : Pulumi.CustomResource + public partial class ApplicationCertificate : global::Pulumi.CustomResource { /// /// The object ID of the application for which this certificate should be created. Changing this field forces a new resource to be created. @@ -115,7 +115,7 @@ public static ApplicationCertificate Get(string name, Input id, Applicat } } - public sealed class ApplicationCertificateArgs : Pulumi.ResourceArgs + public sealed class ApplicationCertificateArgs : global::Pulumi.ResourceArgs { /// /// The object ID of the application for which this certificate should be created. Changing this field forces a new resource to be created. @@ -168,9 +168,10 @@ public sealed class ApplicationCertificateArgs : Pulumi.ResourceArgs public ApplicationCertificateArgs() { } + public static new ApplicationCertificateArgs Empty => new ApplicationCertificateArgs(); } - public sealed class ApplicationCertificateState : Pulumi.ResourceArgs + public sealed class ApplicationCertificateState : global::Pulumi.ResourceArgs { /// /// The object ID of the application for which this certificate should be created. Changing this field forces a new resource to be created. @@ -223,5 +224,6 @@ public sealed class ApplicationCertificateState : Pulumi.ResourceArgs public ApplicationCertificateState() { } + public static new ApplicationCertificateState Empty => new ApplicationCertificateState(); } } diff --git a/sdk/dotnet/ApplicationFederatedIdentityCredential.cs b/sdk/dotnet/ApplicationFederatedIdentityCredential.cs index 1476d60e8..53e308663 100644 --- a/sdk/dotnet/ApplicationFederatedIdentityCredential.cs +++ b/sdk/dotnet/ApplicationFederatedIdentityCredential.cs @@ -13,32 +13,31 @@ namespace Pulumi.AzureAD /// ## Example Usage /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var exampleApplication = new AzureAD.Application("exampleApplication", new() /// { - /// var exampleApplication = new AzureAD.Application("exampleApplication", new AzureAD.ApplicationArgs - /// { - /// DisplayName = "example", - /// }); - /// var exampleApplicationFederatedIdentityCredential = new AzureAD.ApplicationFederatedIdentityCredential("exampleApplicationFederatedIdentityCredential", new AzureAD.ApplicationFederatedIdentityCredentialArgs + /// DisplayName = "example", + /// }); + /// + /// var exampleApplicationFederatedIdentityCredential = new AzureAD.ApplicationFederatedIdentityCredential("exampleApplicationFederatedIdentityCredential", new() + /// { + /// ApplicationObjectId = exampleApplication.ObjectId, + /// DisplayName = "my-repo-deploy", + /// Description = "Deployments for my-repo", + /// Audiences = new[] /// { - /// ApplicationObjectId = exampleApplication.ObjectId, - /// DisplayName = "my-repo-deploy", - /// Description = "Deployments for my-repo", - /// Audiences = - /// { - /// "api://AzureADTokenExchange", - /// }, - /// Issuer = "https://token.actions.githubusercontent.com", - /// Subject = "repo:my-organization/my-repo:environment:prod", - /// }); - /// } + /// "api://AzureADTokenExchange", + /// }, + /// Issuer = "https://token.actions.githubusercontent.com", + /// Subject = "repo:my-organization/my-repo:environment:prod", + /// }); /// - /// } + /// }); /// ``` /// /// ## Import @@ -52,7 +51,7 @@ namespace Pulumi.AzureAD /// -> This ID format is unique to Terraform and is composed of the application's object ID, the string "federatedIdentityCredential" and the credential ID in the format `{ObjectId}/federatedIdentityCredential/{CredentialId}`. /// [AzureADResourceType("azuread:index/applicationFederatedIdentityCredential:ApplicationFederatedIdentityCredential")] - public partial class ApplicationFederatedIdentityCredential : Pulumi.CustomResource + public partial class ApplicationFederatedIdentityCredential : global::Pulumi.CustomResource { /// /// The object ID of the application for which this federated identity credential should be created. Changing this field forces a new resource to be created. @@ -140,7 +139,7 @@ public static ApplicationFederatedIdentityCredential Get(string name, Input /// The object ID of the application for which this federated identity credential should be created. Changing this field forces a new resource to be created. @@ -187,9 +186,10 @@ public InputList Audiences public ApplicationFederatedIdentityCredentialArgs() { } + public static new ApplicationFederatedIdentityCredentialArgs Empty => new ApplicationFederatedIdentityCredentialArgs(); } - public sealed class ApplicationFederatedIdentityCredentialState : Pulumi.ResourceArgs + public sealed class ApplicationFederatedIdentityCredentialState : global::Pulumi.ResourceArgs { /// /// The object ID of the application for which this federated identity credential should be created. Changing this field forces a new resource to be created. @@ -242,5 +242,6 @@ public InputList Audiences public ApplicationFederatedIdentityCredentialState() { } + public static new ApplicationFederatedIdentityCredentialState Empty => new ApplicationFederatedIdentityCredentialState(); } } diff --git a/sdk/dotnet/ApplicationPassword.cs b/sdk/dotnet/ApplicationPassword.cs index 73c72568d..533e625f0 100644 --- a/sdk/dotnet/ApplicationPassword.cs +++ b/sdk/dotnet/ApplicationPassword.cs @@ -15,7 +15,7 @@ namespace Pulumi.AzureAD /// This resource does not support importing. /// [AzureADResourceType("azuread:index/applicationPassword:ApplicationPassword")] - public partial class ApplicationPassword : Pulumi.CustomResource + public partial class ApplicationPassword : global::Pulumi.CustomResource { /// /// The object ID of the application for which this password should be created. Changing this field forces a new resource to be created. @@ -24,7 +24,7 @@ public partial class ApplicationPassword : Pulumi.CustomResource public Output ApplicationObjectId { get; private set; } = null!; /// - /// A display name for the password. + /// A display name for the password. Changing this field forces a new resource to be created. /// [Output("displayName")] public Output DisplayName { get; private set; } = null!; @@ -109,7 +109,7 @@ public static ApplicationPassword Get(string name, Input id, Application } } - public sealed class ApplicationPasswordArgs : Pulumi.ResourceArgs + public sealed class ApplicationPasswordArgs : global::Pulumi.ResourceArgs { /// /// The object ID of the application for which this password should be created. Changing this field forces a new resource to be created. @@ -118,7 +118,7 @@ public sealed class ApplicationPasswordArgs : Pulumi.ResourceArgs public Input ApplicationObjectId { get; set; } = null!; /// - /// A display name for the password. + /// A display name for the password. Changing this field forces a new resource to be created. /// [Input("displayName")] public Input? DisplayName { get; set; } @@ -156,9 +156,10 @@ public InputMap RotateWhenChanged public ApplicationPasswordArgs() { } + public static new ApplicationPasswordArgs Empty => new ApplicationPasswordArgs(); } - public sealed class ApplicationPasswordState : Pulumi.ResourceArgs + public sealed class ApplicationPasswordState : global::Pulumi.ResourceArgs { /// /// The object ID of the application for which this password should be created. Changing this field forces a new resource to be created. @@ -167,7 +168,7 @@ public sealed class ApplicationPasswordState : Pulumi.ResourceArgs public Input? ApplicationObjectId { get; set; } /// - /// A display name for the password. + /// A display name for the password. Changing this field forces a new resource to be created. /// [Input("displayName")] public Input? DisplayName { get; set; } @@ -217,5 +218,6 @@ public InputMap RotateWhenChanged public ApplicationPasswordState() { } + public static new ApplicationPasswordState Empty => new ApplicationPasswordState(); } } diff --git a/sdk/dotnet/ApplicationPreAuthorized.cs b/sdk/dotnet/ApplicationPreAuthorized.cs index 3c6f7856f..2f5ffc29e 100644 --- a/sdk/dotnet/ApplicationPreAuthorized.cs +++ b/sdk/dotnet/ApplicationPreAuthorized.cs @@ -13,60 +13,60 @@ namespace Pulumi.AzureAD /// ## Example Usage /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var authorized = new AzureAD.Application("authorized", new() /// { - /// var authorized = new AzureAD.Application("authorized", new AzureAD.ApplicationArgs - /// { - /// DisplayName = "example-authorized-app", - /// }); - /// var authorizer = new AzureAD.Application("authorizer", new AzureAD.ApplicationArgs + /// DisplayName = "example-authorized-app", + /// }); + /// + /// var authorizer = new AzureAD.Application("authorizer", new() + /// { + /// DisplayName = "example-authorizing-app", + /// Api = new AzureAD.Inputs.ApplicationApiArgs /// { - /// DisplayName = "example-authorizing-app", - /// Api = new AzureAD.Inputs.ApplicationApiArgs + /// Oauth2PermissionScopes = new[] /// { - /// Oauth2PermissionScopes = + /// new AzureAD.Inputs.ApplicationApiOauth2PermissionScopeArgs + /// { + /// AdminConsentDescription = "Administer the application", + /// AdminConsentDisplayName = "Administer", + /// Enabled = true, + /// Id = "ced9c4c3-c273-4f0f-ac71-a20377b90f9c", + /// Type = "Admin", + /// Value = "administer", + /// }, + /// new AzureAD.Inputs.ApplicationApiOauth2PermissionScopeArgs /// { - /// new AzureAD.Inputs.ApplicationApiOauth2PermissionScopeArgs - /// { - /// AdminConsentDescription = "Administer the application", - /// AdminConsentDisplayName = "Administer", - /// Enabled = true, - /// Id = "ced9c4c3-c273-4f0f-ac71-a20377b90f9c", - /// Type = "Admin", - /// Value = "administer", - /// }, - /// new AzureAD.Inputs.ApplicationApiOauth2PermissionScopeArgs - /// { - /// AdminConsentDescription = "Access the application", - /// AdminConsentDisplayName = "Access", - /// Enabled = true, - /// Id = "2d5e07ca-664d-4d9b-ad61-ec07fd215213", - /// Type = "User", - /// UserConsentDescription = "Access the application", - /// UserConsentDisplayName = "Access", - /// Value = "user_impersonation", - /// }, + /// AdminConsentDescription = "Access the application", + /// AdminConsentDisplayName = "Access", + /// Enabled = true, + /// Id = "2d5e07ca-664d-4d9b-ad61-ec07fd215213", + /// Type = "User", + /// UserConsentDescription = "Access the application", + /// UserConsentDisplayName = "Access", + /// Value = "user_impersonation", /// }, /// }, - /// }); - /// var example = new AzureAD.ApplicationPreAuthorized("example", new AzureAD.ApplicationPreAuthorizedArgs + /// }, + /// }); + /// + /// var example = new AzureAD.ApplicationPreAuthorized("example", new() + /// { + /// ApplicationObjectId = authorizer.ObjectId, + /// AuthorizedAppId = authorized.ApplicationId, + /// PermissionIds = new[] /// { - /// ApplicationObjectId = authorizer.ObjectId, - /// AuthorizedAppId = authorized.ApplicationId, - /// PermissionIds = - /// { - /// "ced9c4c3-c273-4f0f-ac71-a20377b90f9c", - /// "2d5e07ca-664d-4d9b-ad61-ec07fd215213", - /// }, - /// }); - /// } + /// "ced9c4c3-c273-4f0f-ac71-a20377b90f9c", + /// "2d5e07ca-664d-4d9b-ad61-ec07fd215213", + /// }, + /// }); /// - /// } + /// }); /// ``` /// /// ## Import @@ -80,7 +80,7 @@ namespace Pulumi.AzureAD /// -> This ID format is unique to Terraform and is composed of the authorizing application's object ID, the string "preAuthorizedApplication" and the authorized application's application ID (client ID) in the format `{ObjectId}/preAuthorizedApplication/{ApplicationId}`. /// [AzureADResourceType("azuread:index/applicationPreAuthorized:ApplicationPreAuthorized")] - public partial class ApplicationPreAuthorized : Pulumi.CustomResource + public partial class ApplicationPreAuthorized : global::Pulumi.CustomResource { /// /// The object ID of the application for which permissions are being authorized. Changing this field forces a new resource to be created. @@ -144,7 +144,7 @@ public static ApplicationPreAuthorized Get(string name, Input id, Applic } } - public sealed class ApplicationPreAuthorizedArgs : Pulumi.ResourceArgs + public sealed class ApplicationPreAuthorizedArgs : global::Pulumi.ResourceArgs { /// /// The object ID of the application for which permissions are being authorized. Changing this field forces a new resource to be created. @@ -173,9 +173,10 @@ public InputList PermissionIds public ApplicationPreAuthorizedArgs() { } + public static new ApplicationPreAuthorizedArgs Empty => new ApplicationPreAuthorizedArgs(); } - public sealed class ApplicationPreAuthorizedState : Pulumi.ResourceArgs + public sealed class ApplicationPreAuthorizedState : global::Pulumi.ResourceArgs { /// /// The object ID of the application for which permissions are being authorized. Changing this field forces a new resource to be created. @@ -204,5 +205,6 @@ public InputList PermissionIds public ApplicationPreAuthorizedState() { } + public static new ApplicationPreAuthorizedState Empty => new ApplicationPreAuthorizedState(); } } diff --git a/sdk/dotnet/ClaimsMappingPolicy.cs b/sdk/dotnet/ClaimsMappingPolicy.cs index 44f28ca96..1bdd2c145 100644 --- a/sdk/dotnet/ClaimsMappingPolicy.cs +++ b/sdk/dotnet/ClaimsMappingPolicy.cs @@ -28,46 +28,42 @@ namespace Pulumi.AzureAD /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var myPolicy = new AzureAD.ClaimsMappingPolicy("myPolicy", new() /// { - /// var myPolicy = new AzureAD.ClaimsMappingPolicy("myPolicy", new AzureAD.ClaimsMappingPolicyArgs + /// Definitions = new[] /// { - /// Definitions = + /// JsonSerializer.Serialize(new Dictionary<string, object?> /// { - /// JsonSerializer.Serialize(new Dictionary<string, object?> + /// ["ClaimsMappingPolicy"] = new Dictionary<string, object?> /// { - /// { "ClaimsMappingPolicy", new Dictionary<string, object?> + /// ["ClaimsSchema"] = new[] /// { - /// { "ClaimsSchema", new[] - /// { - /// new Dictionary<string, object?> - /// { - /// { "ID", "employeeid" }, - /// { "JwtClaimType", "name" }, - /// { "SamlClaimType", "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name" }, - /// { "Source", "user" }, - /// }, - /// new Dictionary<string, object?> - /// { - /// { "ID", "tenantcountry" }, - /// { "JwtClaimType", "country" }, - /// { "SamlClaimType", "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country" }, - /// { "Source", "company" }, - /// }, - /// } - /// }, - /// { "IncludeBasicClaimSet", "true" }, - /// { "Version", 1 }, - /// } }, - /// }), - /// }, - /// DisplayName = "My Policy", - /// }); - /// } + /// new Dictionary<string, object?> + /// { + /// ["ID"] = "employeeid", + /// ["JwtClaimType"] = "name", + /// ["SamlClaimType"] = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name", + /// ["Source"] = "user", + /// }, + /// new Dictionary<string, object?> + /// { + /// ["ID"] = "tenantcountry", + /// ["JwtClaimType"] = "country", + /// ["SamlClaimType"] = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country", + /// ["Source"] = "company", + /// }, + /// }, + /// ["IncludeBasicClaimSet"] = "true", + /// ["Version"] = 1, + /// }, + /// }), + /// }, + /// DisplayName = "My Policy", + /// }); /// - /// } + /// }); /// ``` /// /// ## Import @@ -79,7 +75,7 @@ namespace Pulumi.AzureAD /// ``` /// [AzureADResourceType("azuread:index/claimsMappingPolicy:ClaimsMappingPolicy")] - public partial class ClaimsMappingPolicy : Pulumi.CustomResource + public partial class ClaimsMappingPolicy : global::Pulumi.CustomResource { /// /// A string collection containing a JSON string that defines the rules and settings for this policy @@ -137,7 +133,7 @@ public static ClaimsMappingPolicy Get(string name, Input id, ClaimsMappi } } - public sealed class ClaimsMappingPolicyArgs : Pulumi.ResourceArgs + public sealed class ClaimsMappingPolicyArgs : global::Pulumi.ResourceArgs { [Input("definitions", required: true)] private InputList? _definitions; @@ -160,9 +156,10 @@ public InputList Definitions public ClaimsMappingPolicyArgs() { } + public static new ClaimsMappingPolicyArgs Empty => new ClaimsMappingPolicyArgs(); } - public sealed class ClaimsMappingPolicyState : Pulumi.ResourceArgs + public sealed class ClaimsMappingPolicyState : global::Pulumi.ResourceArgs { [Input("definitions")] private InputList? _definitions; @@ -185,5 +182,6 @@ public InputList Definitions public ClaimsMappingPolicyState() { } + public static new ClaimsMappingPolicyState Empty => new ClaimsMappingPolicyState(); } } diff --git a/sdk/dotnet/ConditionalAccessPolicy.cs b/sdk/dotnet/ConditionalAccessPolicy.cs index 5c31743f3..845816ca4 100644 --- a/sdk/dotnet/ConditionalAccessPolicy.cs +++ b/sdk/dotnet/ConditionalAccessPolicy.cs @@ -23,100 +23,98 @@ namespace Pulumi.AzureAD /// ## Example Usage /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = new AzureAD.ConditionalAccessPolicy("example", new() /// { - /// var example = new AzureAD.ConditionalAccessPolicy("example", new AzureAD.ConditionalAccessPolicyArgs + /// Conditions = new AzureAD.Inputs.ConditionalAccessPolicyConditionsArgs /// { - /// Conditions = new AzureAD.Inputs.ConditionalAccessPolicyConditionsArgs + /// Applications = new AzureAD.Inputs.ConditionalAccessPolicyConditionsApplicationsArgs /// { - /// Applications = new AzureAD.Inputs.ConditionalAccessPolicyConditionsApplicationsArgs + /// ExcludedApplications = new[] {}, + /// IncludedApplications = new[] /// { - /// ExcludedApplications = {}, - /// IncludedApplications = - /// { - /// "All", - /// }, + /// "All", /// }, - /// ClientAppTypes = - /// { - /// "all", - /// }, - /// Devices = new AzureAD.Inputs.ConditionalAccessPolicyConditionsDevicesArgs - /// { - /// Filter = new AzureAD.Inputs.ConditionalAccessPolicyConditionsDevicesFilterArgs - /// { - /// Mode = "exclude", - /// Rule = "device.operatingSystem eq \"Doors\"", - /// }, - /// }, - /// Locations = new AzureAD.Inputs.ConditionalAccessPolicyConditionsLocationsArgs + /// }, + /// ClientAppTypes = new[] + /// { + /// "all", + /// }, + /// Devices = new AzureAD.Inputs.ConditionalAccessPolicyConditionsDevicesArgs + /// { + /// Filter = new AzureAD.Inputs.ConditionalAccessPolicyConditionsDevicesFilterArgs /// { - /// ExcludedLocations = - /// { - /// "AllTrusted", - /// }, - /// IncludedLocations = - /// { - /// "All", - /// }, + /// Mode = "exclude", + /// Rule = "device.operatingSystem eq \"Doors\"", /// }, - /// Platforms = new AzureAD.Inputs.ConditionalAccessPolicyConditionsPlatformsArgs + /// }, + /// Locations = new AzureAD.Inputs.ConditionalAccessPolicyConditionsLocationsArgs + /// { + /// ExcludedLocations = new[] /// { - /// ExcludedPlatforms = - /// { - /// "iOS", - /// }, - /// IncludedPlatforms = - /// { - /// "android", - /// }, + /// "AllTrusted", /// }, - /// SignInRiskLevels = + /// IncludedLocations = new[] /// { - /// "medium", + /// "All", /// }, - /// UserRiskLevels = + /// }, + /// Platforms = new AzureAD.Inputs.ConditionalAccessPolicyConditionsPlatformsArgs + /// { + /// ExcludedPlatforms = new[] /// { - /// "medium", + /// "iOS", /// }, - /// Users = new AzureAD.Inputs.ConditionalAccessPolicyConditionsUsersArgs + /// IncludedPlatforms = new[] /// { - /// ExcludedUsers = - /// { - /// "GuestsOrExternalUsers", - /// }, - /// IncludedUsers = - /// { - /// "All", - /// }, + /// "android", /// }, /// }, - /// DisplayName = "example policy", - /// GrantControls = new AzureAD.Inputs.ConditionalAccessPolicyGrantControlsArgs + /// SignInRiskLevels = new[] + /// { + /// "medium", + /// }, + /// UserRiskLevels = new[] + /// { + /// "medium", + /// }, + /// Users = new AzureAD.Inputs.ConditionalAccessPolicyConditionsUsersArgs /// { - /// BuiltInControls = + /// ExcludedUsers = new[] + /// { + /// "GuestsOrExternalUsers", + /// }, + /// IncludedUsers = new[] /// { - /// "mfa", + /// "All", /// }, - /// Operator = "OR", /// }, - /// SessionControls = new AzureAD.Inputs.ConditionalAccessPolicySessionControlsArgs + /// }, + /// DisplayName = "example policy", + /// GrantControls = new AzureAD.Inputs.ConditionalAccessPolicyGrantControlsArgs + /// { + /// BuiltInControls = new[] /// { - /// ApplicationEnforcedRestrictionsEnabled = true, - /// CloudAppSecurityPolicy = "monitorOnly", - /// SignInFrequency = 10, - /// SignInFrequencyPeriod = "hours", + /// "mfa", /// }, - /// State = "disabled", - /// }); - /// } + /// Operator = "OR", + /// }, + /// SessionControls = new AzureAD.Inputs.ConditionalAccessPolicySessionControlsArgs + /// { + /// ApplicationEnforcedRestrictionsEnabled = true, + /// CloudAppSecurityPolicy = "monitorOnly", + /// SignInFrequency = 10, + /// SignInFrequencyPeriod = "hours", + /// }, + /// State = "disabled", + /// }); /// - /// } + /// }); /// ``` /// /// ## Import @@ -128,7 +126,7 @@ namespace Pulumi.AzureAD /// ``` /// [AzureADResourceType("azuread:index/conditionalAccessPolicy:ConditionalAccessPolicy")] - public partial class ConditionalAccessPolicy : Pulumi.CustomResource + public partial class ConditionalAccessPolicy : global::Pulumi.CustomResource { /// /// A `conditions` block as documented below, which specifies the rules that must be met for the policy to apply. @@ -204,7 +202,7 @@ public static ConditionalAccessPolicy Get(string name, Input id, Conditi } } - public sealed class ConditionalAccessPolicyArgs : Pulumi.ResourceArgs + public sealed class ConditionalAccessPolicyArgs : global::Pulumi.ResourceArgs { /// /// A `conditions` block as documented below, which specifies the rules that must be met for the policy to apply. @@ -239,9 +237,10 @@ public sealed class ConditionalAccessPolicyArgs : Pulumi.ResourceArgs public ConditionalAccessPolicyArgs() { } + public static new ConditionalAccessPolicyArgs Empty => new ConditionalAccessPolicyArgs(); } - public sealed class ConditionalAccessPolicyState : Pulumi.ResourceArgs + public sealed class ConditionalAccessPolicyState : global::Pulumi.ResourceArgs { /// /// A `conditions` block as documented below, which specifies the rules that must be met for the policy to apply. @@ -276,5 +275,6 @@ public sealed class ConditionalAccessPolicyState : Pulumi.ResourceArgs public ConditionalAccessPolicyState() { } + public static new ConditionalAccessPolicyState Empty => new ConditionalAccessPolicyState(); } } diff --git a/sdk/dotnet/CustomDirectoryRole.cs b/sdk/dotnet/CustomDirectoryRole.cs index 7199845f7..50af2e15b 100644 --- a/sdk/dotnet/CustomDirectoryRole.cs +++ b/sdk/dotnet/CustomDirectoryRole.cs @@ -13,46 +13,44 @@ namespace Pulumi.AzureAD /// ## Example Usage /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = new AzureAD.CustomDirectoryRole("example", new() /// { - /// var example = new AzureAD.CustomDirectoryRole("example", new AzureAD.CustomDirectoryRoleArgs + /// Description = "Allows reading applications and updating groups", + /// DisplayName = "My Custom Role", + /// Enabled = true, + /// Permissions = new[] /// { - /// Description = "Allows reading applications and updating groups", - /// DisplayName = "My Custom Role", - /// Enabled = true, - /// Permissions = + /// new AzureAD.Inputs.CustomDirectoryRolePermissionArgs /// { - /// new AzureAD.Inputs.CustomDirectoryRolePermissionArgs + /// AllowedResourceActions = new[] /// { - /// AllowedResourceActions = - /// { - /// "microsoft.directory/applications/basic/update", - /// "microsoft.directory/applications/create", - /// "microsoft.directory/applications/standard/read", - /// }, + /// "microsoft.directory/applications/basic/update", + /// "microsoft.directory/applications/create", + /// "microsoft.directory/applications/standard/read", /// }, - /// new AzureAD.Inputs.CustomDirectoryRolePermissionArgs + /// }, + /// new AzureAD.Inputs.CustomDirectoryRolePermissionArgs + /// { + /// AllowedResourceActions = new[] /// { - /// AllowedResourceActions = - /// { - /// "microsoft.directory/groups/allProperties/read", - /// "microsoft.directory/groups/allProperties/read", - /// "microsoft.directory/groups/basic/update", - /// "microsoft.directory/groups/create", - /// "microsoft.directory/groups/delete", - /// }, + /// "microsoft.directory/groups/allProperties/read", + /// "microsoft.directory/groups/allProperties/read", + /// "microsoft.directory/groups/basic/update", + /// "microsoft.directory/groups/create", + /// "microsoft.directory/groups/delete", /// }, /// }, - /// Version = "1.0", - /// }); - /// } + /// }, + /// Version = "1.0", + /// }); /// - /// } + /// }); /// ``` /// /// ## Import @@ -60,7 +58,7 @@ namespace Pulumi.AzureAD /// This resource does not support importing. /// [AzureADResourceType("azuread:index/customDirectoryRole:CustomDirectoryRole")] - public partial class CustomDirectoryRole : Pulumi.CustomResource + public partial class CustomDirectoryRole : global::Pulumi.CustomResource { /// /// The description of the custom directory role. @@ -148,7 +146,7 @@ public static CustomDirectoryRole Get(string name, Input id, CustomDirec } } - public sealed class CustomDirectoryRoleArgs : Pulumi.ResourceArgs + public sealed class CustomDirectoryRoleArgs : global::Pulumi.ResourceArgs { /// /// The description of the custom directory role. @@ -195,9 +193,10 @@ public InputList Permissions public CustomDirectoryRoleArgs() { } + public static new CustomDirectoryRoleArgs Empty => new CustomDirectoryRoleArgs(); } - public sealed class CustomDirectoryRoleState : Pulumi.ResourceArgs + public sealed class CustomDirectoryRoleState : global::Pulumi.ResourceArgs { /// /// The description of the custom directory role. @@ -250,5 +249,6 @@ public InputList Permissions public CustomDirectoryRoleState() { } + public static new CustomDirectoryRoleState Empty => new CustomDirectoryRoleState(); } } diff --git a/sdk/dotnet/DirectoryRole.cs b/sdk/dotnet/DirectoryRole.cs index 112732130..25284f3c4 100644 --- a/sdk/dotnet/DirectoryRole.cs +++ b/sdk/dotnet/DirectoryRole.cs @@ -29,39 +29,35 @@ namespace Pulumi.AzureAD /// *Activate a directory role by its template ID* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = new AzureAD.DirectoryRole("example", new() /// { - /// var example = new AzureAD.DirectoryRole("example", new AzureAD.DirectoryRoleArgs - /// { - /// TemplateId = "00000000-0000-0000-0000-000000000000", - /// }); - /// } + /// TemplateId = "00000000-0000-0000-0000-000000000000", + /// }); /// - /// } + /// }); /// ``` /// /// *Activate a directory role by display name* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = new AzureAD.DirectoryRole("example", new() /// { - /// var example = new AzureAD.DirectoryRole("example", new AzureAD.DirectoryRoleArgs - /// { - /// DisplayName = "Printer administrator", - /// }); - /// } + /// DisplayName = "Printer administrator", + /// }); /// - /// } + /// }); /// ``` /// /// ## Import @@ -69,7 +65,7 @@ namespace Pulumi.AzureAD /// This resource does not support importing. /// [AzureADResourceType("azuread:index/directoryRole:DirectoryRole")] - public partial class DirectoryRole : Pulumi.CustomResource + public partial class DirectoryRole : global::Pulumi.CustomResource { /// /// The description of the directory role. @@ -139,7 +135,7 @@ public static DirectoryRole Get(string name, Input id, DirectoryRoleStat } } - public sealed class DirectoryRoleArgs : Pulumi.ResourceArgs + public sealed class DirectoryRoleArgs : global::Pulumi.ResourceArgs { /// /// The display name of the directory role to activate. Changing this forces a new resource to be created. @@ -156,9 +152,10 @@ public sealed class DirectoryRoleArgs : Pulumi.ResourceArgs public DirectoryRoleArgs() { } + public static new DirectoryRoleArgs Empty => new DirectoryRoleArgs(); } - public sealed class DirectoryRoleState : Pulumi.ResourceArgs + public sealed class DirectoryRoleState : global::Pulumi.ResourceArgs { /// /// The description of the directory role. @@ -187,5 +184,6 @@ public sealed class DirectoryRoleState : Pulumi.ResourceArgs public DirectoryRoleState() { } + public static new DirectoryRoleState Empty => new DirectoryRoleState(); } } diff --git a/sdk/dotnet/DirectoryRoleAssignment.cs b/sdk/dotnet/DirectoryRoleAssignment.cs index 588e086a9..008c5c106 100644 --- a/sdk/dotnet/DirectoryRoleAssignment.cs +++ b/sdk/dotnet/DirectoryRoleAssignment.cs @@ -29,7 +29,7 @@ namespace Pulumi.AzureAD /// ``` /// [AzureADResourceType("azuread:index/directoryRoleAssignment:DirectoryRoleAssignment")] - public partial class DirectoryRoleAssignment : Pulumi.CustomResource + public partial class DirectoryRoleAssignment : global::Pulumi.CustomResource { /// /// Identifier of the app-specific scope when the assignment scope is app-specific. Cannot be used with `directory_scope_id`. See [official documentation](https://docs.microsoft.com/en-us/graph/api/rbacapplication-post-roleassignments?view=graph-rest-1.0&tabs=http) for example usage. Changing this forces a new resource to be created. @@ -111,7 +111,7 @@ public static DirectoryRoleAssignment Get(string name, Input id, Directo } } - public sealed class DirectoryRoleAssignmentArgs : Pulumi.ResourceArgs + public sealed class DirectoryRoleAssignmentArgs : global::Pulumi.ResourceArgs { /// /// Identifier of the app-specific scope when the assignment scope is app-specific. Cannot be used with `directory_scope_id`. See [official documentation](https://docs.microsoft.com/en-us/graph/api/rbacapplication-post-roleassignments?view=graph-rest-1.0&tabs=http) for example usage. Changing this forces a new resource to be created. @@ -152,9 +152,10 @@ public sealed class DirectoryRoleAssignmentArgs : Pulumi.ResourceArgs public DirectoryRoleAssignmentArgs() { } + public static new DirectoryRoleAssignmentArgs Empty => new DirectoryRoleAssignmentArgs(); } - public sealed class DirectoryRoleAssignmentState : Pulumi.ResourceArgs + public sealed class DirectoryRoleAssignmentState : global::Pulumi.ResourceArgs { /// /// Identifier of the app-specific scope when the assignment scope is app-specific. Cannot be used with `directory_scope_id`. See [official documentation](https://docs.microsoft.com/en-us/graph/api/rbacapplication-post-roleassignments?view=graph-rest-1.0&tabs=http) for example usage. Changing this forces a new resource to be created. @@ -195,5 +196,6 @@ public sealed class DirectoryRoleAssignmentState : Pulumi.ResourceArgs public DirectoryRoleAssignmentState() { } + public static new DirectoryRoleAssignmentState Empty => new DirectoryRoleAssignmentState(); } } diff --git a/sdk/dotnet/DirectoryRoleMember.cs b/sdk/dotnet/DirectoryRoleMember.cs index 338ce02df..4fcaaefa7 100644 --- a/sdk/dotnet/DirectoryRoleMember.cs +++ b/sdk/dotnet/DirectoryRoleMember.cs @@ -13,29 +13,29 @@ namespace Pulumi.AzureAD /// ## Example Usage /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var exampleUser = AzureAD.GetUser.Invoke(new() /// { - /// var exampleUser = Output.Create(AzureAD.GetUser.InvokeAsync(new AzureAD.GetUserArgs - /// { - /// UserPrincipalName = "jdoe@hashicorp.com", - /// })); - /// var exampleDirectoryRole = new AzureAD.DirectoryRole("exampleDirectoryRole", new AzureAD.DirectoryRoleArgs - /// { - /// DisplayName = "Security administrator", - /// }); - /// var exampleDirectoryRoleMember = new AzureAD.DirectoryRoleMember("exampleDirectoryRoleMember", new AzureAD.DirectoryRoleMemberArgs - /// { - /// RoleObjectId = exampleDirectoryRole.ObjectId, - /// MemberObjectId = exampleUser.Apply(exampleUser => exampleUser.ObjectId), - /// }); - /// } + /// UserPrincipalName = "jdoe@hashicorp.com", + /// }); /// - /// } + /// var exampleDirectoryRole = new AzureAD.DirectoryRole("exampleDirectoryRole", new() + /// { + /// DisplayName = "Security administrator", + /// }); + /// + /// var exampleDirectoryRoleMember = new AzureAD.DirectoryRoleMember("exampleDirectoryRoleMember", new() + /// { + /// RoleObjectId = exampleDirectoryRole.ObjectId, + /// MemberObjectId = exampleUser.Apply(getUserResult => getUserResult.ObjectId), + /// }); + /// + /// }); /// ``` /// /// ## Import @@ -49,7 +49,7 @@ namespace Pulumi.AzureAD /// -> This ID format is unique to Terraform and is composed of the Directory Role Object ID and the target Member Object ID in the format `{RoleObjectID}/member/{MemberObjectID}`. /// [AzureADResourceType("azuread:index/directoryRoleMember:DirectoryRoleMember")] - public partial class DirectoryRoleMember : Pulumi.CustomResource + public partial class DirectoryRoleMember : global::Pulumi.CustomResource { /// /// The object ID of the principal you want to add as a member to the directory role. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created. @@ -107,7 +107,7 @@ public static DirectoryRoleMember Get(string name, Input id, DirectoryRo } } - public sealed class DirectoryRoleMemberArgs : Pulumi.ResourceArgs + public sealed class DirectoryRoleMemberArgs : global::Pulumi.ResourceArgs { /// /// The object ID of the principal you want to add as a member to the directory role. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created. @@ -124,9 +124,10 @@ public sealed class DirectoryRoleMemberArgs : Pulumi.ResourceArgs public DirectoryRoleMemberArgs() { } + public static new DirectoryRoleMemberArgs Empty => new DirectoryRoleMemberArgs(); } - public sealed class DirectoryRoleMemberState : Pulumi.ResourceArgs + public sealed class DirectoryRoleMemberState : global::Pulumi.ResourceArgs { /// /// The object ID of the principal you want to add as a member to the directory role. Supported object types are Users, Groups or Service Principals. Changing this forces a new resource to be created. @@ -143,5 +144,6 @@ public sealed class DirectoryRoleMemberState : Pulumi.ResourceArgs public DirectoryRoleMemberState() { } + public static new DirectoryRoleMemberState Empty => new DirectoryRoleMemberState(); } } diff --git a/sdk/dotnet/GetAdministrativeUnit.cs b/sdk/dotnet/GetAdministrativeUnit.cs index 62c466d8a..cc68ac6b0 100644 --- a/sdk/dotnet/GetAdministrativeUnit.cs +++ b/sdk/dotnet/GetAdministrativeUnit.cs @@ -29,38 +29,34 @@ public static class GetAdministrativeUnit /// /// *Look up by display name* /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetAdministrativeUnit.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetAdministrativeUnit.InvokeAsync(new AzureAD.GetAdministrativeUnitArgs - /// { - /// DisplayName = "Example-AU", - /// })); - /// } + /// DisplayName = "Example-AU", + /// }); /// - /// } + /// }); /// ``` /// /// *Look up by object ID* /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetAdministrativeUnit.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetAdministrativeUnit.InvokeAsync(new AzureAD.GetAdministrativeUnitArgs - /// { - /// ObjectId = "00000000-0000-0000-0000-000000000000", - /// })); - /// } + /// ObjectId = "00000000-0000-0000-0000-000000000000", + /// }); /// - /// } + /// }); /// ``` /// {{% /example %}} /// {{% /examples %}} @@ -86,38 +82,34 @@ public static Task InvokeAsync(GetAdministrativeUni /// /// *Look up by display name* /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetAdministrativeUnit.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetAdministrativeUnit.InvokeAsync(new AzureAD.GetAdministrativeUnitArgs - /// { - /// DisplayName = "Example-AU", - /// })); - /// } + /// DisplayName = "Example-AU", + /// }); /// - /// } + /// }); /// ``` /// /// *Look up by object ID* /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetAdministrativeUnit.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetAdministrativeUnit.InvokeAsync(new AzureAD.GetAdministrativeUnitArgs - /// { - /// ObjectId = "00000000-0000-0000-0000-000000000000", - /// })); - /// } + /// ObjectId = "00000000-0000-0000-0000-000000000000", + /// }); /// - /// } + /// }); /// ``` /// {{% /example %}} /// {{% /examples %}} @@ -127,7 +119,7 @@ public static Output Invoke(GetAdministrativeUnitIn } - public sealed class GetAdministrativeUnitArgs : Pulumi.InvokeArgs + public sealed class GetAdministrativeUnitArgs : global::Pulumi.InvokeArgs { /// /// Specifies the display name of the administrative unit. @@ -144,9 +136,10 @@ public sealed class GetAdministrativeUnitArgs : Pulumi.InvokeArgs public GetAdministrativeUnitArgs() { } + public static new GetAdministrativeUnitArgs Empty => new GetAdministrativeUnitArgs(); } - public sealed class GetAdministrativeUnitInvokeArgs : Pulumi.InvokeArgs + public sealed class GetAdministrativeUnitInvokeArgs : global::Pulumi.InvokeArgs { /// /// Specifies the display name of the administrative unit. @@ -163,6 +156,7 @@ public sealed class GetAdministrativeUnitInvokeArgs : Pulumi.InvokeArgs public GetAdministrativeUnitInvokeArgs() { } + public static new GetAdministrativeUnitInvokeArgs Empty => new GetAdministrativeUnitInvokeArgs(); } diff --git a/sdk/dotnet/GetApplication.cs b/sdk/dotnet/GetApplication.cs index 7f53f6058..243285293 100644 --- a/sdk/dotnet/GetApplication.cs +++ b/sdk/dotnet/GetApplication.cs @@ -27,23 +27,22 @@ public static class GetApplication /// {{% example %}} /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetApplication.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetApplication.InvokeAsync(new AzureAD.GetApplicationArgs - /// { - /// DisplayName = "My First AzureAD Application", - /// })); - /// this.ApplicationObjectId = example.Apply(example => example.Id); - /// } + /// DisplayName = "My First AzureAD Application", + /// }); /// - /// [Output("applicationObjectId")] - /// public Output<string> ApplicationObjectId { get; set; } - /// } + /// return new Dictionary<string, object?> + /// { + /// ["applicationObjectId"] = example.Apply(getApplicationResult => getApplicationResult.Id), + /// }; + /// }); /// ``` /// {{% /example %}} /// {{% /examples %}} @@ -67,23 +66,22 @@ public static Task InvokeAsync(GetApplicationArgs? args = /// {{% example %}} /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetApplication.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetApplication.InvokeAsync(new AzureAD.GetApplicationArgs - /// { - /// DisplayName = "My First AzureAD Application", - /// })); - /// this.ApplicationObjectId = example.Apply(example => example.Id); - /// } + /// DisplayName = "My First AzureAD Application", + /// }); /// - /// [Output("applicationObjectId")] - /// public Output<string> ApplicationObjectId { get; set; } - /// } + /// return new Dictionary<string, object?> + /// { + /// ["applicationObjectId"] = example.Apply(getApplicationResult => getApplicationResult.Id), + /// }; + /// }); /// ``` /// {{% /example %}} /// {{% /examples %}} @@ -93,7 +91,7 @@ public static Output Invoke(GetApplicationInvokeArgs? args } - public sealed class GetApplicationArgs : Pulumi.InvokeArgs + public sealed class GetApplicationArgs : global::Pulumi.InvokeArgs { /// /// Specifies the Application ID (also called Client ID). @@ -116,9 +114,10 @@ public sealed class GetApplicationArgs : Pulumi.InvokeArgs public GetApplicationArgs() { } + public static new GetApplicationArgs Empty => new GetApplicationArgs(); } - public sealed class GetApplicationInvokeArgs : Pulumi.InvokeArgs + public sealed class GetApplicationInvokeArgs : global::Pulumi.InvokeArgs { /// /// Specifies the Application ID (also called Client ID). @@ -141,6 +140,7 @@ public sealed class GetApplicationInvokeArgs : Pulumi.InvokeArgs public GetApplicationInvokeArgs() { } + public static new GetApplicationInvokeArgs Empty => new GetApplicationInvokeArgs(); } diff --git a/sdk/dotnet/GetApplicationPublishedAppIds.cs b/sdk/dotnet/GetApplicationPublishedAppIds.cs index 741adbaae..499e8c887 100644 --- a/sdk/dotnet/GetApplicationPublishedAppIds.cs +++ b/sdk/dotnet/GetApplicationPublishedAppIds.cs @@ -25,65 +25,64 @@ public static class GetApplicationPublishedAppIds /// *Listing well-known application IDs* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() - /// { - /// var wellKnown = Output.Create(AzureAD.GetApplicationPublishedAppIds.InvokeAsync()); - /// this.PublishedAppIds = wellKnown.Apply(wellKnown => wellKnown.Result); - /// } + /// var wellKnown = AzureAD.GetApplicationPublishedAppIds.Invoke(); /// - /// [Output("publishedAppIds")] - /// public Output<string> PublishedAppIds { get; set; } - /// } + /// return new Dictionary<string, object?> + /// { + /// ["publishedAppIds"] = wellKnown.Apply(getApplicationPublishedAppIdsResult => getApplicationPublishedAppIdsResult.Result), + /// }; + /// }); /// ``` /// /// *Granting access to an application* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var wellKnown = AzureAD.GetApplicationPublishedAppIds.Invoke(); + /// + /// var msgraph = new AzureAD.ServicePrincipal("msgraph", new() /// { - /// var wellKnown = Output.Create(AzureAD.GetApplicationPublishedAppIds.InvokeAsync()); - /// var msgraph = new AzureAD.ServicePrincipal("msgraph", new AzureAD.ServicePrincipalArgs - /// { - /// ApplicationId = wellKnown.Apply(wellKnown => wellKnown.Result?.MicrosoftGraph), - /// UseExisting = true, - /// }); - /// var example = new AzureAD.Application("example", new AzureAD.ApplicationArgs + /// ApplicationId = wellKnown.Apply(getApplicationPublishedAppIdsResult => getApplicationPublishedAppIdsResult.Result?.MicrosoftGraph), + /// UseExisting = true, + /// }); + /// + /// var example = new AzureAD.Application("example", new() + /// { + /// DisplayName = "example", + /// RequiredResourceAccesses = new[] /// { - /// DisplayName = "example", - /// RequiredResourceAccesses = + /// new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs /// { - /// new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs + /// ResourceAppId = wellKnown.Apply(getApplicationPublishedAppIdsResult => getApplicationPublishedAppIdsResult.Result?.MicrosoftGraph), + /// ResourceAccesses = new[] /// { - /// ResourceAppId = wellKnown.Apply(wellKnown => wellKnown.Result?.MicrosoftGraph), - /// ResourceAccesses = + /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs + /// { + /// Id = msgraph.AppRoleIds.Apply(appRoleIds => appRoleIds.User_Read_All), + /// Type = "Role", + /// }, + /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs /// { - /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs - /// { - /// Id = msgraph.AppRoleIds.Apply(appRoleIds => appRoleIds.User_Read_All), - /// Type = "Role", - /// }, - /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs - /// { - /// Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds => oauth2PermissionScopeIds.User_ReadWrite), - /// Type = "Scope", - /// }, + /// Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds => oauth2PermissionScopeIds.User_ReadWrite), + /// Type = "Scope", /// }, /// }, /// }, - /// }); - /// } + /// }, + /// }); /// - /// } + /// }); /// ``` /// {{% /example %}} /// {{% /examples %}} diff --git a/sdk/dotnet/GetApplicationTemplate.cs b/sdk/dotnet/GetApplicationTemplate.cs index 2f51e7628..d71efa126 100644 --- a/sdk/dotnet/GetApplicationTemplate.cs +++ b/sdk/dotnet/GetApplicationTemplate.cs @@ -23,23 +23,22 @@ public static class GetApplicationTemplate /// {{% example %}} /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetApplicationTemplate.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetApplicationTemplate.InvokeAsync(new AzureAD.GetApplicationTemplateArgs - /// { - /// DisplayName = "Marketo", - /// })); - /// this.ApplicationTemplateId = example.Apply(example => example.TemplateId); - /// } + /// DisplayName = "Marketo", + /// }); /// - /// [Output("applicationTemplateId")] - /// public Output<string> ApplicationTemplateId { get; set; } - /// } + /// return new Dictionary<string, object?> + /// { + /// ["applicationTemplateId"] = example.Apply(getApplicationTemplateResult => getApplicationTemplateResult.TemplateId), + /// }; + /// }); /// ``` /// {{% /example %}} /// {{% /examples %}} @@ -59,23 +58,22 @@ public static Task InvokeAsync(GetApplicationTempl /// {{% example %}} /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetApplicationTemplate.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetApplicationTemplate.InvokeAsync(new AzureAD.GetApplicationTemplateArgs - /// { - /// DisplayName = "Marketo", - /// })); - /// this.ApplicationTemplateId = example.Apply(example => example.TemplateId); - /// } + /// DisplayName = "Marketo", + /// }); /// - /// [Output("applicationTemplateId")] - /// public Output<string> ApplicationTemplateId { get; set; } - /// } + /// return new Dictionary<string, object?> + /// { + /// ["applicationTemplateId"] = example.Apply(getApplicationTemplateResult => getApplicationTemplateResult.TemplateId), + /// }; + /// }); /// ``` /// {{% /example %}} /// {{% /examples %}} @@ -85,7 +83,7 @@ public static Output Invoke(GetApplicationTemplate } - public sealed class GetApplicationTemplateArgs : Pulumi.InvokeArgs + public sealed class GetApplicationTemplateArgs : global::Pulumi.InvokeArgs { /// /// Specifies the display name of the templated application. @@ -102,9 +100,10 @@ public sealed class GetApplicationTemplateArgs : Pulumi.InvokeArgs public GetApplicationTemplateArgs() { } + public static new GetApplicationTemplateArgs Empty => new GetApplicationTemplateArgs(); } - public sealed class GetApplicationTemplateInvokeArgs : Pulumi.InvokeArgs + public sealed class GetApplicationTemplateInvokeArgs : global::Pulumi.InvokeArgs { /// /// Specifies the display name of the templated application. @@ -121,6 +120,7 @@ public sealed class GetApplicationTemplateInvokeArgs : Pulumi.InvokeArgs public GetApplicationTemplateInvokeArgs() { } + public static new GetApplicationTemplateInvokeArgs Empty => new GetApplicationTemplateInvokeArgs(); } diff --git a/sdk/dotnet/GetClientConfig.cs b/sdk/dotnet/GetClientConfig.cs index e817f8bc3..880dc26eb 100644 --- a/sdk/dotnet/GetClientConfig.cs +++ b/sdk/dotnet/GetClientConfig.cs @@ -23,20 +23,19 @@ public static class GetClientConfig /// {{% example %}} /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() - /// { - /// var current = Output.Create(AzureAD.GetClientConfig.InvokeAsync()); - /// this.ObjectId = current.Apply(current => current.ObjectId); - /// } + /// var current = AzureAD.GetClientConfig.Invoke(); /// - /// [Output("objectId")] - /// public Output<string> ObjectId { get; set; } - /// } + /// return new Dictionary<string, object?> + /// { + /// ["objectId"] = current.Apply(getClientConfigResult => getClientConfigResult.ObjectId), + /// }; + /// }); /// ``` /// {{% /example %}} /// {{% /examples %}} diff --git a/sdk/dotnet/GetDomains.cs b/sdk/dotnet/GetDomains.cs index c00aaf0e9..20f69cbc7 100644 --- a/sdk/dotnet/GetDomains.cs +++ b/sdk/dotnet/GetDomains.cs @@ -27,24 +27,23 @@ public static class GetDomains /// {{% example %}} /// /// ```csharp + /// using System.Collections.Generic; /// using System.Linq; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var aadDomains = AzureAD.GetDomains.Invoke(); + /// + /// return new Dictionary<string, object?> /// { - /// var aadDomains = Output.Create(AzureAD.GetDomains.InvokeAsync()); - /// this.DomainNames = + /// ["domainNames"] = new[] /// { - /// aadDomains.Apply(aadDomains => aadDomains.Domains), - /// }.Select(__item => __item?.DomainName).ToList(); - /// } - /// - /// [Output("domainNames")] - /// public Output<string> DomainNames { get; set; } - /// } + /// aadDomains.Apply(getDomainsResult => getDomainsResult.Domains), + /// }.Select(__item => __item?.DomainName).ToList(), + /// }; + /// }); /// ``` /// {{% /example %}} /// {{% /examples %}} @@ -68,24 +67,23 @@ public static Task InvokeAsync(GetDomainsArgs? args = null, In /// {{% example %}} /// /// ```csharp + /// using System.Collections.Generic; /// using System.Linq; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var aadDomains = AzureAD.GetDomains.Invoke(); + /// + /// return new Dictionary<string, object?> /// { - /// var aadDomains = Output.Create(AzureAD.GetDomains.InvokeAsync()); - /// this.DomainNames = + /// ["domainNames"] = new[] /// { - /// aadDomains.Apply(aadDomains => aadDomains.Domains), - /// }.Select(__item => __item?.DomainName).ToList(); - /// } - /// - /// [Output("domainNames")] - /// public Output<string> DomainNames { get; set; } - /// } + /// aadDomains.Apply(getDomainsResult => getDomainsResult.Domains), + /// }.Select(__item => __item?.DomainName).ToList(), + /// }; + /// }); /// ``` /// {{% /example %}} /// {{% /examples %}} @@ -95,7 +93,7 @@ public static Output Invoke(GetDomainsInvokeArgs? args = null, } - public sealed class GetDomainsArgs : Pulumi.InvokeArgs + public sealed class GetDomainsArgs : global::Pulumi.InvokeArgs { /// /// Set to `true` to only return domains whose DNS is managed by Microsoft 365. Defaults to `false`. @@ -142,9 +140,10 @@ public List SupportsServices public GetDomainsArgs() { } + public static new GetDomainsArgs Empty => new GetDomainsArgs(); } - public sealed class GetDomainsInvokeArgs : Pulumi.InvokeArgs + public sealed class GetDomainsInvokeArgs : global::Pulumi.InvokeArgs { /// /// Set to `true` to only return domains whose DNS is managed by Microsoft 365. Defaults to `false`. @@ -191,6 +190,7 @@ public InputList SupportsServices public GetDomainsInvokeArgs() { } + public static new GetDomainsInvokeArgs Empty => new GetDomainsInvokeArgs(); } diff --git a/sdk/dotnet/GetGroup.cs b/sdk/dotnet/GetGroup.cs index 616862d46..ce670995a 100644 --- a/sdk/dotnet/GetGroup.cs +++ b/sdk/dotnet/GetGroup.cs @@ -28,21 +28,19 @@ public static class GetGroup /// ### By Group Display Name) /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetGroup.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetGroup.InvokeAsync(new AzureAD.GetGroupArgs - /// { - /// DisplayName = "MyGroupName", - /// SecurityEnabled = true, - /// })); - /// } + /// DisplayName = "MyGroupName", + /// SecurityEnabled = true, + /// }); /// - /// } + /// }); /// ``` /// {{% /example %}} /// {{% /examples %}} @@ -67,21 +65,19 @@ public static Task InvokeAsync(GetGroupArgs? args = null, Invoke /// ### By Group Display Name) /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetGroup.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetGroup.InvokeAsync(new AzureAD.GetGroupArgs - /// { - /// DisplayName = "MyGroupName", - /// SecurityEnabled = true, - /// })); - /// } + /// DisplayName = "MyGroupName", + /// SecurityEnabled = true, + /// }); /// - /// } + /// }); /// ``` /// {{% /example %}} /// {{% /examples %}} @@ -91,7 +87,7 @@ public static Output Invoke(GetGroupInvokeArgs? args = null, Inv } - public sealed class GetGroupArgs : Pulumi.InvokeArgs + public sealed class GetGroupArgs : global::Pulumi.InvokeArgs { /// /// The display name for the group. @@ -120,9 +116,10 @@ public sealed class GetGroupArgs : Pulumi.InvokeArgs public GetGroupArgs() { } + public static new GetGroupArgs Empty => new GetGroupArgs(); } - public sealed class GetGroupInvokeArgs : Pulumi.InvokeArgs + public sealed class GetGroupInvokeArgs : global::Pulumi.InvokeArgs { /// /// The display name for the group. @@ -151,6 +148,7 @@ public sealed class GetGroupInvokeArgs : Pulumi.InvokeArgs public GetGroupInvokeArgs() { } + public static new GetGroupInvokeArgs Empty => new GetGroupInvokeArgs(); } diff --git a/sdk/dotnet/GetGroups.cs b/sdk/dotnet/GetGroups.cs index 0ead58319..4e3371afa 100644 --- a/sdk/dotnet/GetGroups.cs +++ b/sdk/dotnet/GetGroups.cs @@ -28,99 +28,89 @@ public static class GetGroups /// /// *Look up by group name* /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetGroups.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetGroups.InvokeAsync(new AzureAD.GetGroupsArgs + /// DisplayNames = new[] /// { - /// DisplayNames = - /// { - /// "group-a", - /// "group-b", - /// }, - /// })); - /// } - /// - /// } + /// "group-a", + /// "group-b", + /// }, + /// }); + /// + /// }); /// ``` /// /// *Look up by display name prefix* /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var sales = AzureAD.GetGroups.Invoke(new() /// { - /// var sales = Output.Create(AzureAD.GetGroups.InvokeAsync(new AzureAD.GetGroupsArgs - /// { - /// DisplayNamePrefix = "sales-", - /// })); - /// } + /// DisplayNamePrefix = "sales-", + /// }); /// - /// } + /// }); /// ``` /// /// *Look up all groups* /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var all = AzureAD.GetGroups.Invoke(new() /// { - /// var all = Output.Create(AzureAD.GetGroups.InvokeAsync(new AzureAD.GetGroupsArgs - /// { - /// ReturnAll = true, - /// })); - /// } + /// ReturnAll = true, + /// }); /// - /// } + /// }); /// ``` /// /// *Look up all mail-enabled groups* /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var mailEnabled = AzureAD.GetGroups.Invoke(new() /// { - /// var mailEnabled = Output.Create(AzureAD.GetGroups.InvokeAsync(new AzureAD.GetGroupsArgs - /// { - /// MailEnabled = true, - /// ReturnAll = true, - /// })); - /// } + /// MailEnabled = true, + /// ReturnAll = true, + /// }); /// - /// } + /// }); /// ``` /// /// *Look up all security-enabled groups that are not mail-enabled* /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var securityOnly = AzureAD.GetGroups.Invoke(new() /// { - /// var securityOnly = Output.Create(AzureAD.GetGroups.InvokeAsync(new AzureAD.GetGroupsArgs - /// { - /// MailEnabled = false, - /// ReturnAll = true, - /// SecurityEnabled = true, - /// })); - /// } + /// MailEnabled = false, + /// ReturnAll = true, + /// SecurityEnabled = true, + /// }); /// - /// } + /// }); /// ``` /// {{% /example %}} /// {{% /examples %}} @@ -145,99 +135,89 @@ public static Task InvokeAsync(GetGroupsArgs? args = null, Invo /// /// *Look up by group name* /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetGroups.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetGroups.InvokeAsync(new AzureAD.GetGroupsArgs + /// DisplayNames = new[] /// { - /// DisplayNames = - /// { - /// "group-a", - /// "group-b", - /// }, - /// })); - /// } - /// - /// } + /// "group-a", + /// "group-b", + /// }, + /// }); + /// + /// }); /// ``` /// /// *Look up by display name prefix* /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var sales = AzureAD.GetGroups.Invoke(new() /// { - /// var sales = Output.Create(AzureAD.GetGroups.InvokeAsync(new AzureAD.GetGroupsArgs - /// { - /// DisplayNamePrefix = "sales-", - /// })); - /// } + /// DisplayNamePrefix = "sales-", + /// }); /// - /// } + /// }); /// ``` /// /// *Look up all groups* /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var all = AzureAD.GetGroups.Invoke(new() /// { - /// var all = Output.Create(AzureAD.GetGroups.InvokeAsync(new AzureAD.GetGroupsArgs - /// { - /// ReturnAll = true, - /// })); - /// } + /// ReturnAll = true, + /// }); /// - /// } + /// }); /// ``` /// /// *Look up all mail-enabled groups* /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var mailEnabled = AzureAD.GetGroups.Invoke(new() /// { - /// var mailEnabled = Output.Create(AzureAD.GetGroups.InvokeAsync(new AzureAD.GetGroupsArgs - /// { - /// MailEnabled = true, - /// ReturnAll = true, - /// })); - /// } + /// MailEnabled = true, + /// ReturnAll = true, + /// }); /// - /// } + /// }); /// ``` /// /// *Look up all security-enabled groups that are not mail-enabled* /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var securityOnly = AzureAD.GetGroups.Invoke(new() /// { - /// var securityOnly = Output.Create(AzureAD.GetGroups.InvokeAsync(new AzureAD.GetGroupsArgs - /// { - /// MailEnabled = false, - /// ReturnAll = true, - /// SecurityEnabled = true, - /// })); - /// } + /// MailEnabled = false, + /// ReturnAll = true, + /// SecurityEnabled = true, + /// }); /// - /// } + /// }); /// ``` /// {{% /example %}} /// {{% /examples %}} @@ -247,7 +227,7 @@ public static Output Invoke(GetGroupsInvokeArgs? args = null, I } - public sealed class GetGroupsArgs : Pulumi.InvokeArgs + public sealed class GetGroupsArgs : global::Pulumi.InvokeArgs { /// /// A common display name prefix to match when returning groups. @@ -306,9 +286,10 @@ public List ObjectIds public GetGroupsArgs() { } + public static new GetGroupsArgs Empty => new GetGroupsArgs(); } - public sealed class GetGroupsInvokeArgs : Pulumi.InvokeArgs + public sealed class GetGroupsInvokeArgs : global::Pulumi.InvokeArgs { /// /// A common display name prefix to match when returning groups. @@ -367,6 +348,7 @@ public InputList ObjectIds public GetGroupsInvokeArgs() { } + public static new GetGroupsInvokeArgs Empty => new GetGroupsInvokeArgs(); } diff --git a/sdk/dotnet/GetServicePrincipal.cs b/sdk/dotnet/GetServicePrincipal.cs index 99b3a29cd..92a340519 100644 --- a/sdk/dotnet/GetServicePrincipal.cs +++ b/sdk/dotnet/GetServicePrincipal.cs @@ -29,58 +29,52 @@ public static class GetServicePrincipal /// *Look up by application display name* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetServicePrincipal.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetServicePrincipal.InvokeAsync(new AzureAD.GetServicePrincipalArgs - /// { - /// DisplayName = "my-awesome-application", - /// })); - /// } + /// DisplayName = "my-awesome-application", + /// }); /// - /// } + /// }); /// ``` /// /// *Look up by application ID (client ID)* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetServicePrincipal.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetServicePrincipal.InvokeAsync(new AzureAD.GetServicePrincipalArgs - /// { - /// ApplicationId = "00000000-0000-0000-0000-000000000000", - /// })); - /// } + /// ApplicationId = "00000000-0000-0000-0000-000000000000", + /// }); /// - /// } + /// }); /// ``` /// /// *Look up by service principal object ID* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetServicePrincipal.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetServicePrincipal.InvokeAsync(new AzureAD.GetServicePrincipalArgs - /// { - /// ObjectId = "00000000-0000-0000-0000-000000000000", - /// })); - /// } + /// ObjectId = "00000000-0000-0000-0000-000000000000", + /// }); /// - /// } + /// }); /// ``` /// {{% /example %}} /// {{% /examples %}} @@ -106,58 +100,52 @@ public static Task InvokeAsync(GetServicePrincipalArg /// *Look up by application display name* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetServicePrincipal.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetServicePrincipal.InvokeAsync(new AzureAD.GetServicePrincipalArgs - /// { - /// DisplayName = "my-awesome-application", - /// })); - /// } + /// DisplayName = "my-awesome-application", + /// }); /// - /// } + /// }); /// ``` /// /// *Look up by application ID (client ID)* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetServicePrincipal.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetServicePrincipal.InvokeAsync(new AzureAD.GetServicePrincipalArgs - /// { - /// ApplicationId = "00000000-0000-0000-0000-000000000000", - /// })); - /// } + /// ApplicationId = "00000000-0000-0000-0000-000000000000", + /// }); /// - /// } + /// }); /// ``` /// /// *Look up by service principal object ID* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetServicePrincipal.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetServicePrincipal.InvokeAsync(new AzureAD.GetServicePrincipalArgs - /// { - /// ObjectId = "00000000-0000-0000-0000-000000000000", - /// })); - /// } + /// ObjectId = "00000000-0000-0000-0000-000000000000", + /// }); /// - /// } + /// }); /// ``` /// {{% /example %}} /// {{% /examples %}} @@ -167,7 +155,7 @@ public static Output Invoke(GetServicePrincipalInvoke } - public sealed class GetServicePrincipalArgs : Pulumi.InvokeArgs + public sealed class GetServicePrincipalArgs : global::Pulumi.InvokeArgs { /// /// The application ID (client ID) of the application associated with this service principal. @@ -190,9 +178,10 @@ public sealed class GetServicePrincipalArgs : Pulumi.InvokeArgs public GetServicePrincipalArgs() { } + public static new GetServicePrincipalArgs Empty => new GetServicePrincipalArgs(); } - public sealed class GetServicePrincipalInvokeArgs : Pulumi.InvokeArgs + public sealed class GetServicePrincipalInvokeArgs : global::Pulumi.InvokeArgs { /// /// The application ID (client ID) of the application associated with this service principal. @@ -215,6 +204,7 @@ public sealed class GetServicePrincipalInvokeArgs : Pulumi.InvokeArgs public GetServicePrincipalInvokeArgs() { } + public static new GetServicePrincipalInvokeArgs Empty => new GetServicePrincipalInvokeArgs(); } diff --git a/sdk/dotnet/GetServicePrincipals.cs b/sdk/dotnet/GetServicePrincipals.cs index 219b18708..9bbd4cb18 100644 --- a/sdk/dotnet/GetServicePrincipals.cs +++ b/sdk/dotnet/GetServicePrincipals.cs @@ -29,72 +29,66 @@ public static class GetServicePrincipals /// *Look up by application display names* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetServicePrincipals.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetServicePrincipals.InvokeAsync(new AzureAD.GetServicePrincipalsArgs + /// DisplayNames = new[] /// { - /// DisplayNames = - /// { - /// "example-app", - /// "another-app", - /// }, - /// })); - /// } - /// - /// } + /// "example-app", + /// "another-app", + /// }, + /// }); + /// + /// }); /// ``` /// /// *Look up by application IDs (client IDs* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetServicePrincipals.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetServicePrincipals.InvokeAsync(new AzureAD.GetServicePrincipalsArgs + /// ApplicationIds = new[] /// { - /// ApplicationIds = - /// { - /// "11111111-0000-0000-0000-000000000000", - /// "22222222-0000-0000-0000-000000000000", - /// "33333333-0000-0000-0000-000000000000", - /// }, - /// })); - /// } - /// - /// } + /// "11111111-0000-0000-0000-000000000000", + /// "22222222-0000-0000-0000-000000000000", + /// "33333333-0000-0000-0000-000000000000", + /// }, + /// }); + /// + /// }); /// ``` /// /// *Look up by service principal object IDs* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetServicePrincipals.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetServicePrincipals.InvokeAsync(new AzureAD.GetServicePrincipalsArgs + /// ObjectIds = new[] /// { - /// ObjectIds = - /// { - /// "00000000-0000-0000-0000-000000000000", - /// "00000000-0000-0000-0000-111111111111", - /// "00000000-0000-0000-0000-222222222222", - /// }, - /// })); - /// } - /// - /// } + /// "00000000-0000-0000-0000-000000000000", + /// "00000000-0000-0000-0000-111111111111", + /// "00000000-0000-0000-0000-222222222222", + /// }, + /// }); + /// + /// }); /// ``` /// {{% /example %}} /// {{% /examples %}} @@ -120,72 +114,66 @@ public static Task InvokeAsync(GetServicePrincipalsA /// *Look up by application display names* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetServicePrincipals.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetServicePrincipals.InvokeAsync(new AzureAD.GetServicePrincipalsArgs + /// DisplayNames = new[] /// { - /// DisplayNames = - /// { - /// "example-app", - /// "another-app", - /// }, - /// })); - /// } - /// - /// } + /// "example-app", + /// "another-app", + /// }, + /// }); + /// + /// }); /// ``` /// /// *Look up by application IDs (client IDs* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetServicePrincipals.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetServicePrincipals.InvokeAsync(new AzureAD.GetServicePrincipalsArgs + /// ApplicationIds = new[] /// { - /// ApplicationIds = - /// { - /// "11111111-0000-0000-0000-000000000000", - /// "22222222-0000-0000-0000-000000000000", - /// "33333333-0000-0000-0000-000000000000", - /// }, - /// })); - /// } - /// - /// } + /// "11111111-0000-0000-0000-000000000000", + /// "22222222-0000-0000-0000-000000000000", + /// "33333333-0000-0000-0000-000000000000", + /// }, + /// }); + /// + /// }); /// ``` /// /// *Look up by service principal object IDs* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetServicePrincipals.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetServicePrincipals.InvokeAsync(new AzureAD.GetServicePrincipalsArgs + /// ObjectIds = new[] /// { - /// ObjectIds = - /// { - /// "00000000-0000-0000-0000-000000000000", - /// "00000000-0000-0000-0000-111111111111", - /// "00000000-0000-0000-0000-222222222222", - /// }, - /// })); - /// } - /// - /// } + /// "00000000-0000-0000-0000-000000000000", + /// "00000000-0000-0000-0000-111111111111", + /// "00000000-0000-0000-0000-222222222222", + /// }, + /// }); + /// + /// }); /// ``` /// {{% /example %}} /// {{% /examples %}} @@ -195,7 +183,7 @@ public static Output Invoke(GetServicePrincipalsInvo } - public sealed class GetServicePrincipalsArgs : Pulumi.InvokeArgs + public sealed class GetServicePrincipalsArgs : global::Pulumi.InvokeArgs { [Input("applicationIds")] private List? _applicationIds; @@ -248,9 +236,10 @@ public List ObjectIds public GetServicePrincipalsArgs() { } + public static new GetServicePrincipalsArgs Empty => new GetServicePrincipalsArgs(); } - public sealed class GetServicePrincipalsInvokeArgs : Pulumi.InvokeArgs + public sealed class GetServicePrincipalsInvokeArgs : global::Pulumi.InvokeArgs { [Input("applicationIds")] private InputList? _applicationIds; @@ -303,6 +292,7 @@ public InputList ObjectIds public GetServicePrincipalsInvokeArgs() { } + public static new GetServicePrincipalsInvokeArgs Empty => new GetServicePrincipalsInvokeArgs(); } diff --git a/sdk/dotnet/GetUser.cs b/sdk/dotnet/GetUser.cs index e60a5db67..4d3fcfe27 100644 --- a/sdk/dotnet/GetUser.cs +++ b/sdk/dotnet/GetUser.cs @@ -27,20 +27,18 @@ public static class GetUser /// {{% example %}} /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetUser.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetUser.InvokeAsync(new AzureAD.GetUserArgs - /// { - /// UserPrincipalName = "user@hashicorp.com", - /// })); - /// } + /// UserPrincipalName = "user@hashicorp.com", + /// }); /// - /// } + /// }); /// ``` /// {{% /example %}} /// {{% /examples %}} @@ -64,20 +62,18 @@ public static Task InvokeAsync(GetUserArgs? args = null, InvokeOp /// {{% example %}} /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = AzureAD.GetUser.Invoke(new() /// { - /// var example = Output.Create(AzureAD.GetUser.InvokeAsync(new AzureAD.GetUserArgs - /// { - /// UserPrincipalName = "user@hashicorp.com", - /// })); - /// } + /// UserPrincipalName = "user@hashicorp.com", + /// }); /// - /// } + /// }); /// ``` /// {{% /example %}} /// {{% /examples %}} @@ -87,7 +83,7 @@ public static Output Invoke(GetUserInvokeArgs? args = null, Invok } - public sealed class GetUserArgs : Pulumi.InvokeArgs + public sealed class GetUserArgs : global::Pulumi.InvokeArgs { /// /// The email alias of the user. @@ -110,9 +106,10 @@ public sealed class GetUserArgs : Pulumi.InvokeArgs public GetUserArgs() { } + public static new GetUserArgs Empty => new GetUserArgs(); } - public sealed class GetUserInvokeArgs : Pulumi.InvokeArgs + public sealed class GetUserInvokeArgs : global::Pulumi.InvokeArgs { /// /// The email alias of the user. @@ -135,6 +132,7 @@ public sealed class GetUserInvokeArgs : Pulumi.InvokeArgs public GetUserInvokeArgs() { } + public static new GetUserInvokeArgs Empty => new GetUserInvokeArgs(); } diff --git a/sdk/dotnet/GetUsers.cs b/sdk/dotnet/GetUsers.cs index 1686e71ad..7a4166281 100644 --- a/sdk/dotnet/GetUsers.cs +++ b/sdk/dotnet/GetUsers.cs @@ -27,24 +27,22 @@ public static class GetUsers /// {{% example %}} /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var users = AzureAD.GetUsers.Invoke(new() /// { - /// var users = Output.Create(AzureAD.GetUsers.InvokeAsync(new AzureAD.GetUsersArgs + /// UserPrincipalNames = new[] /// { - /// UserPrincipalNames = - /// { - /// "kat@hashicorp.com", - /// "byte@hashicorp.com", - /// }, - /// })); - /// } + /// "kat@hashicorp.com", + /// "byte@hashicorp.com", + /// }, + /// }); /// - /// } + /// }); /// ``` /// {{% /example %}} /// {{% /examples %}} @@ -68,24 +66,22 @@ public static Task InvokeAsync(GetUsersArgs? args = null, Invoke /// {{% example %}} /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var users = AzureAD.GetUsers.Invoke(new() /// { - /// var users = Output.Create(AzureAD.GetUsers.InvokeAsync(new AzureAD.GetUsersArgs + /// UserPrincipalNames = new[] /// { - /// UserPrincipalNames = - /// { - /// "kat@hashicorp.com", - /// "byte@hashicorp.com", - /// }, - /// })); - /// } + /// "kat@hashicorp.com", + /// "byte@hashicorp.com", + /// }, + /// }); /// - /// } + /// }); /// ``` /// {{% /example %}} /// {{% /examples %}} @@ -95,7 +91,7 @@ public static Output Invoke(GetUsersInvokeArgs? args = null, Inv } - public sealed class GetUsersArgs : Pulumi.InvokeArgs + public sealed class GetUsersArgs : global::Pulumi.InvokeArgs { /// /// Ignore missing users and return users that were found. The data source will still fail if no users are found. Cannot be specified with `return_all`. Defaults to `false`. @@ -148,9 +144,10 @@ public List UserPrincipalNames public GetUsersArgs() { } + public static new GetUsersArgs Empty => new GetUsersArgs(); } - public sealed class GetUsersInvokeArgs : Pulumi.InvokeArgs + public sealed class GetUsersInvokeArgs : global::Pulumi.InvokeArgs { /// /// Ignore missing users and return users that were found. The data source will still fail if no users are found. Cannot be specified with `return_all`. Defaults to `false`. @@ -203,6 +200,7 @@ public InputList UserPrincipalNames public GetUsersInvokeArgs() { } + public static new GetUsersInvokeArgs Empty => new GetUsersInvokeArgs(); } diff --git a/sdk/dotnet/Group.cs b/sdk/dotnet/Group.cs index a61ba3432..c1251f99e 100644 --- a/sdk/dotnet/Group.cs +++ b/sdk/dotnet/Group.cs @@ -35,7 +35,7 @@ namespace Pulumi.AzureAD /// ``` /// [AzureADResourceType("azuread:index/group:Group")] - public partial class Group : Pulumi.CustomResource + public partial class Group : global::Pulumi.CustomResource { /// /// Indicates whether this group can be assigned to an Azure Active Directory role. Can only be `true` for security-enabled groups. Changing this forces a new resource to be created. @@ -249,7 +249,7 @@ public static Group Get(string name, Input id, GroupState? state = null, } } - public sealed class GroupArgs : Pulumi.ResourceArgs + public sealed class GroupArgs : global::Pulumi.ResourceArgs { /// /// Indicates whether this group can be assigned to an Azure Active Directory role. Can only be `true` for security-enabled groups. Changing this forces a new resource to be created. @@ -398,9 +398,10 @@ public InputList Types public GroupArgs() { } + public static new GroupArgs Empty => new GroupArgs(); } - public sealed class GroupState : Pulumi.ResourceArgs + public sealed class GroupState : global::Pulumi.ResourceArgs { /// /// Indicates whether this group can be assigned to an Azure Active Directory role. Can only be `true` for security-enabled groups. Changing this forces a new resource to be created. @@ -609,5 +610,6 @@ public InputList Types public GroupState() { } + public static new GroupState Empty => new GroupState(); } } diff --git a/sdk/dotnet/GroupMember.cs b/sdk/dotnet/GroupMember.cs index 0b4e08e0f..9f8399bff 100644 --- a/sdk/dotnet/GroupMember.cs +++ b/sdk/dotnet/GroupMember.cs @@ -25,30 +25,30 @@ namespace Pulumi.AzureAD /// ## Example Usage /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var exampleUser = AzureAD.GetUser.Invoke(new() /// { - /// var exampleUser = Output.Create(AzureAD.GetUser.InvokeAsync(new AzureAD.GetUserArgs - /// { - /// UserPrincipalName = "jdoe@hashicorp.com", - /// })); - /// var exampleGroup = new AzureAD.Group("exampleGroup", new AzureAD.GroupArgs - /// { - /// DisplayName = "my_group", - /// SecurityEnabled = true, - /// }); - /// var exampleGroupMember = new AzureAD.GroupMember("exampleGroupMember", new AzureAD.GroupMemberArgs - /// { - /// GroupObjectId = exampleGroup.Id, - /// MemberObjectId = exampleUser.Apply(exampleUser => exampleUser.Id), - /// }); - /// } + /// UserPrincipalName = "jdoe@hashicorp.com", + /// }); /// - /// } + /// var exampleGroup = new AzureAD.Group("exampleGroup", new() + /// { + /// DisplayName = "my_group", + /// SecurityEnabled = true, + /// }); + /// + /// var exampleGroupMember = new AzureAD.GroupMember("exampleGroupMember", new() + /// { + /// GroupObjectId = exampleGroup.Id, + /// MemberObjectId = exampleUser.Apply(getUserResult => getUserResult.Id), + /// }); + /// + /// }); /// ``` /// /// ## Import @@ -62,7 +62,7 @@ namespace Pulumi.AzureAD /// -> This ID format is unique to Terraform and is composed of the Azure AD Group Object ID and the target Member Object ID in the format `{GroupObjectID}/member/{MemberObjectID}`. /// [AzureADResourceType("azuread:index/groupMember:GroupMember")] - public partial class GroupMember : Pulumi.CustomResource + public partial class GroupMember : global::Pulumi.CustomResource { /// /// The object ID of the group you want to add the member to. Changing this forces a new resource to be created. @@ -120,7 +120,7 @@ public static GroupMember Get(string name, Input id, GroupMemberState? s } } - public sealed class GroupMemberArgs : Pulumi.ResourceArgs + public sealed class GroupMemberArgs : global::Pulumi.ResourceArgs { /// /// The object ID of the group you want to add the member to. Changing this forces a new resource to be created. @@ -137,9 +137,10 @@ public sealed class GroupMemberArgs : Pulumi.ResourceArgs public GroupMemberArgs() { } + public static new GroupMemberArgs Empty => new GroupMemberArgs(); } - public sealed class GroupMemberState : Pulumi.ResourceArgs + public sealed class GroupMemberState : global::Pulumi.ResourceArgs { /// /// The object ID of the group you want to add the member to. Changing this forces a new resource to be created. @@ -156,5 +157,6 @@ public sealed class GroupMemberState : Pulumi.ResourceArgs public GroupMemberState() { } + public static new GroupMemberState Empty => new GroupMemberState(); } } diff --git a/sdk/dotnet/Inputs/ApplicationApiArgs.cs b/sdk/dotnet/Inputs/ApplicationApiArgs.cs index 6615db81b..6bc00974d 100644 --- a/sdk/dotnet/Inputs/ApplicationApiArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationApiArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationApiArgs : Pulumi.ResourceArgs + public sealed class ApplicationApiArgs : global::Pulumi.ResourceArgs { [Input("knownClientApplications")] private InputList? _knownClientApplications; @@ -51,5 +51,6 @@ public InputList Oauth2Permissio public ApplicationApiArgs() { } + public static new ApplicationApiArgs Empty => new ApplicationApiArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationApiGetArgs.cs b/sdk/dotnet/Inputs/ApplicationApiGetArgs.cs index da99ba1bd..a6a79379b 100644 --- a/sdk/dotnet/Inputs/ApplicationApiGetArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationApiGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationApiGetArgs : Pulumi.ResourceArgs + public sealed class ApplicationApiGetArgs : global::Pulumi.ResourceArgs { [Input("knownClientApplications")] private InputList? _knownClientApplications; @@ -51,5 +51,6 @@ public InputList Oauth2Permis public ApplicationApiGetArgs() { } + public static new ApplicationApiGetArgs Empty => new ApplicationApiGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationApiOauth2PermissionScopeArgs.cs b/sdk/dotnet/Inputs/ApplicationApiOauth2PermissionScopeArgs.cs index 0db39a2b7..083727251 100644 --- a/sdk/dotnet/Inputs/ApplicationApiOauth2PermissionScopeArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationApiOauth2PermissionScopeArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationApiOauth2PermissionScopeArgs : Pulumi.ResourceArgs + public sealed class ApplicationApiOauth2PermissionScopeArgs : global::Pulumi.ResourceArgs { /// /// Delegated permission description that appears in all tenant-wide admin consent experiences, intended to be read by an administrator granting the permission on behalf of all users. @@ -63,5 +63,6 @@ public sealed class ApplicationApiOauth2PermissionScopeArgs : Pulumi.ResourceArg public ApplicationApiOauth2PermissionScopeArgs() { } + public static new ApplicationApiOauth2PermissionScopeArgs Empty => new ApplicationApiOauth2PermissionScopeArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationApiOauth2PermissionScopeGetArgs.cs b/sdk/dotnet/Inputs/ApplicationApiOauth2PermissionScopeGetArgs.cs index 2534ba1fd..202c5d10a 100644 --- a/sdk/dotnet/Inputs/ApplicationApiOauth2PermissionScopeGetArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationApiOauth2PermissionScopeGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationApiOauth2PermissionScopeGetArgs : Pulumi.ResourceArgs + public sealed class ApplicationApiOauth2PermissionScopeGetArgs : global::Pulumi.ResourceArgs { /// /// Delegated permission description that appears in all tenant-wide admin consent experiences, intended to be read by an administrator granting the permission on behalf of all users. @@ -63,5 +63,6 @@ public sealed class ApplicationApiOauth2PermissionScopeGetArgs : Pulumi.Resource public ApplicationApiOauth2PermissionScopeGetArgs() { } + public static new ApplicationApiOauth2PermissionScopeGetArgs Empty => new ApplicationApiOauth2PermissionScopeGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationAppRoleArgs.cs b/sdk/dotnet/Inputs/ApplicationAppRoleArgs.cs index 9eefb6c67..4438b7187 100644 --- a/sdk/dotnet/Inputs/ApplicationAppRoleArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationAppRoleArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationAppRoleArgs : Pulumi.ResourceArgs + public sealed class ApplicationAppRoleArgs : global::Pulumi.ResourceArgs { [Input("allowedMemberTypes", required: true)] private InputList? _allowedMemberTypes; @@ -57,5 +57,6 @@ public InputList AllowedMemberTypes public ApplicationAppRoleArgs() { } + public static new ApplicationAppRoleArgs Empty => new ApplicationAppRoleArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationAppRoleGetArgs.cs b/sdk/dotnet/Inputs/ApplicationAppRoleGetArgs.cs index 1082b0b4a..14c936bcf 100644 --- a/sdk/dotnet/Inputs/ApplicationAppRoleGetArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationAppRoleGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationAppRoleGetArgs : Pulumi.ResourceArgs + public sealed class ApplicationAppRoleGetArgs : global::Pulumi.ResourceArgs { [Input("allowedMemberTypes", required: true)] private InputList? _allowedMemberTypes; @@ -57,5 +57,6 @@ public InputList AllowedMemberTypes public ApplicationAppRoleGetArgs() { } + public static new ApplicationAppRoleGetArgs Empty => new ApplicationAppRoleGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationFeatureTagArgs.cs b/sdk/dotnet/Inputs/ApplicationFeatureTagArgs.cs index add13a919..3b0718ee6 100644 --- a/sdk/dotnet/Inputs/ApplicationFeatureTagArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationFeatureTagArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationFeatureTagArgs : Pulumi.ResourceArgs + public sealed class ApplicationFeatureTagArgs : global::Pulumi.ResourceArgs { /// /// Whether this application represents a custom SAML application for linked service principals. Enabling this will assign the `WindowsAzureActiveDirectoryCustomSingleSignOnApplication` tag. Defaults to `false`. @@ -39,5 +39,6 @@ public sealed class ApplicationFeatureTagArgs : Pulumi.ResourceArgs public ApplicationFeatureTagArgs() { } + public static new ApplicationFeatureTagArgs Empty => new ApplicationFeatureTagArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationFeatureTagGetArgs.cs b/sdk/dotnet/Inputs/ApplicationFeatureTagGetArgs.cs index 66475432e..d6086e13a 100644 --- a/sdk/dotnet/Inputs/ApplicationFeatureTagGetArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationFeatureTagGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationFeatureTagGetArgs : Pulumi.ResourceArgs + public sealed class ApplicationFeatureTagGetArgs : global::Pulumi.ResourceArgs { /// /// Whether this application represents a custom SAML application for linked service principals. Enabling this will assign the `WindowsAzureActiveDirectoryCustomSingleSignOnApplication` tag. Defaults to `false`. @@ -39,5 +39,6 @@ public sealed class ApplicationFeatureTagGetArgs : Pulumi.ResourceArgs public ApplicationFeatureTagGetArgs() { } + public static new ApplicationFeatureTagGetArgs Empty => new ApplicationFeatureTagGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationOptionalClaimsAccessTokenArgs.cs b/sdk/dotnet/Inputs/ApplicationOptionalClaimsAccessTokenArgs.cs index 4901058c8..e9668df7f 100644 --- a/sdk/dotnet/Inputs/ApplicationOptionalClaimsAccessTokenArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationOptionalClaimsAccessTokenArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationOptionalClaimsAccessTokenArgs : Pulumi.ResourceArgs + public sealed class ApplicationOptionalClaimsAccessTokenArgs : global::Pulumi.ResourceArgs { [Input("additionalProperties")] private InputList? _additionalProperties; @@ -45,5 +45,6 @@ public InputList AdditionalProperties public ApplicationOptionalClaimsAccessTokenArgs() { } + public static new ApplicationOptionalClaimsAccessTokenArgs Empty => new ApplicationOptionalClaimsAccessTokenArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationOptionalClaimsAccessTokenGetArgs.cs b/sdk/dotnet/Inputs/ApplicationOptionalClaimsAccessTokenGetArgs.cs index 49b700252..eeb7514ae 100644 --- a/sdk/dotnet/Inputs/ApplicationOptionalClaimsAccessTokenGetArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationOptionalClaimsAccessTokenGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationOptionalClaimsAccessTokenGetArgs : Pulumi.ResourceArgs + public sealed class ApplicationOptionalClaimsAccessTokenGetArgs : global::Pulumi.ResourceArgs { [Input("additionalProperties")] private InputList? _additionalProperties; @@ -45,5 +45,6 @@ public InputList AdditionalProperties public ApplicationOptionalClaimsAccessTokenGetArgs() { } + public static new ApplicationOptionalClaimsAccessTokenGetArgs Empty => new ApplicationOptionalClaimsAccessTokenGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationOptionalClaimsArgs.cs b/sdk/dotnet/Inputs/ApplicationOptionalClaimsArgs.cs index c414826f6..21521ab09 100644 --- a/sdk/dotnet/Inputs/ApplicationOptionalClaimsArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationOptionalClaimsArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationOptionalClaimsArgs : Pulumi.ResourceArgs + public sealed class ApplicationOptionalClaimsArgs : global::Pulumi.ResourceArgs { [Input("accessTokens")] private InputList? _accessTokens; @@ -51,5 +51,6 @@ public InputList Saml2Tokens public ApplicationOptionalClaimsArgs() { } + public static new ApplicationOptionalClaimsArgs Empty => new ApplicationOptionalClaimsArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationOptionalClaimsGetArgs.cs b/sdk/dotnet/Inputs/ApplicationOptionalClaimsGetArgs.cs index 0c53019c2..e72711a75 100644 --- a/sdk/dotnet/Inputs/ApplicationOptionalClaimsGetArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationOptionalClaimsGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationOptionalClaimsGetArgs : Pulumi.ResourceArgs + public sealed class ApplicationOptionalClaimsGetArgs : global::Pulumi.ResourceArgs { [Input("accessTokens")] private InputList? _accessTokens; @@ -51,5 +51,6 @@ public InputList Saml2Tokens public ApplicationOptionalClaimsGetArgs() { } + public static new ApplicationOptionalClaimsGetArgs Empty => new ApplicationOptionalClaimsGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationOptionalClaimsIdTokenArgs.cs b/sdk/dotnet/Inputs/ApplicationOptionalClaimsIdTokenArgs.cs index 2fdf3c76d..3e42f310d 100644 --- a/sdk/dotnet/Inputs/ApplicationOptionalClaimsIdTokenArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationOptionalClaimsIdTokenArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationOptionalClaimsIdTokenArgs : Pulumi.ResourceArgs + public sealed class ApplicationOptionalClaimsIdTokenArgs : global::Pulumi.ResourceArgs { [Input("additionalProperties")] private InputList? _additionalProperties; @@ -45,5 +45,6 @@ public InputList AdditionalProperties public ApplicationOptionalClaimsIdTokenArgs() { } + public static new ApplicationOptionalClaimsIdTokenArgs Empty => new ApplicationOptionalClaimsIdTokenArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationOptionalClaimsIdTokenGetArgs.cs b/sdk/dotnet/Inputs/ApplicationOptionalClaimsIdTokenGetArgs.cs index 51c929fd3..6f5bf4f42 100644 --- a/sdk/dotnet/Inputs/ApplicationOptionalClaimsIdTokenGetArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationOptionalClaimsIdTokenGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationOptionalClaimsIdTokenGetArgs : Pulumi.ResourceArgs + public sealed class ApplicationOptionalClaimsIdTokenGetArgs : global::Pulumi.ResourceArgs { [Input("additionalProperties")] private InputList? _additionalProperties; @@ -45,5 +45,6 @@ public InputList AdditionalProperties public ApplicationOptionalClaimsIdTokenGetArgs() { } + public static new ApplicationOptionalClaimsIdTokenGetArgs Empty => new ApplicationOptionalClaimsIdTokenGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationOptionalClaimsSaml2TokenArgs.cs b/sdk/dotnet/Inputs/ApplicationOptionalClaimsSaml2TokenArgs.cs index 122e53dd9..8b7e0544f 100644 --- a/sdk/dotnet/Inputs/ApplicationOptionalClaimsSaml2TokenArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationOptionalClaimsSaml2TokenArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationOptionalClaimsSaml2TokenArgs : Pulumi.ResourceArgs + public sealed class ApplicationOptionalClaimsSaml2TokenArgs : global::Pulumi.ResourceArgs { [Input("additionalProperties")] private InputList? _additionalProperties; @@ -45,5 +45,6 @@ public InputList AdditionalProperties public ApplicationOptionalClaimsSaml2TokenArgs() { } + public static new ApplicationOptionalClaimsSaml2TokenArgs Empty => new ApplicationOptionalClaimsSaml2TokenArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationOptionalClaimsSaml2TokenGetArgs.cs b/sdk/dotnet/Inputs/ApplicationOptionalClaimsSaml2TokenGetArgs.cs index 6ebea36fa..ed0e14127 100644 --- a/sdk/dotnet/Inputs/ApplicationOptionalClaimsSaml2TokenGetArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationOptionalClaimsSaml2TokenGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationOptionalClaimsSaml2TokenGetArgs : Pulumi.ResourceArgs + public sealed class ApplicationOptionalClaimsSaml2TokenGetArgs : global::Pulumi.ResourceArgs { [Input("additionalProperties")] private InputList? _additionalProperties; @@ -45,5 +45,6 @@ public InputList AdditionalProperties public ApplicationOptionalClaimsSaml2TokenGetArgs() { } + public static new ApplicationOptionalClaimsSaml2TokenGetArgs Empty => new ApplicationOptionalClaimsSaml2TokenGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationPublicClientArgs.cs b/sdk/dotnet/Inputs/ApplicationPublicClientArgs.cs index 5c8a31821..549625edc 100644 --- a/sdk/dotnet/Inputs/ApplicationPublicClientArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationPublicClientArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationPublicClientArgs : Pulumi.ResourceArgs + public sealed class ApplicationPublicClientArgs : global::Pulumi.ResourceArgs { [Input("redirectUris")] private InputList? _redirectUris; @@ -27,5 +27,6 @@ public InputList RedirectUris public ApplicationPublicClientArgs() { } + public static new ApplicationPublicClientArgs Empty => new ApplicationPublicClientArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationPublicClientGetArgs.cs b/sdk/dotnet/Inputs/ApplicationPublicClientGetArgs.cs index cd09e628d..7b906ccb1 100644 --- a/sdk/dotnet/Inputs/ApplicationPublicClientGetArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationPublicClientGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationPublicClientGetArgs : Pulumi.ResourceArgs + public sealed class ApplicationPublicClientGetArgs : global::Pulumi.ResourceArgs { [Input("redirectUris")] private InputList? _redirectUris; @@ -27,5 +27,6 @@ public InputList RedirectUris public ApplicationPublicClientGetArgs() { } + public static new ApplicationPublicClientGetArgs Empty => new ApplicationPublicClientGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationRequiredResourceAccessArgs.cs b/sdk/dotnet/Inputs/ApplicationRequiredResourceAccessArgs.cs index 966fc2d4d..ab50b2fd9 100644 --- a/sdk/dotnet/Inputs/ApplicationRequiredResourceAccessArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationRequiredResourceAccessArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationRequiredResourceAccessArgs : Pulumi.ResourceArgs + public sealed class ApplicationRequiredResourceAccessArgs : global::Pulumi.ResourceArgs { [Input("resourceAccesses", required: true)] private InputList? _resourceAccesses; @@ -33,5 +33,6 @@ public InputList Res public ApplicationRequiredResourceAccessArgs() { } + public static new ApplicationRequiredResourceAccessArgs Empty => new ApplicationRequiredResourceAccessArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationRequiredResourceAccessGetArgs.cs b/sdk/dotnet/Inputs/ApplicationRequiredResourceAccessGetArgs.cs index f60dc3eac..d9e7c65cc 100644 --- a/sdk/dotnet/Inputs/ApplicationRequiredResourceAccessGetArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationRequiredResourceAccessGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationRequiredResourceAccessGetArgs : Pulumi.ResourceArgs + public sealed class ApplicationRequiredResourceAccessGetArgs : global::Pulumi.ResourceArgs { [Input("resourceAccesses", required: true)] private InputList? _resourceAccesses; @@ -33,5 +33,6 @@ public InputList public ApplicationRequiredResourceAccessGetArgs() { } + public static new ApplicationRequiredResourceAccessGetArgs Empty => new ApplicationRequiredResourceAccessGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationRequiredResourceAccessResourceAccessArgs.cs b/sdk/dotnet/Inputs/ApplicationRequiredResourceAccessResourceAccessArgs.cs index ae3f10cde..5fc618700 100644 --- a/sdk/dotnet/Inputs/ApplicationRequiredResourceAccessResourceAccessArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationRequiredResourceAccessResourceAccessArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationRequiredResourceAccessResourceAccessArgs : Pulumi.ResourceArgs + public sealed class ApplicationRequiredResourceAccessResourceAccessArgs : global::Pulumi.ResourceArgs { /// /// The unique identifier for an app role or OAuth2 permission scope published by the resource application. @@ -27,5 +27,6 @@ public sealed class ApplicationRequiredResourceAccessResourceAccessArgs : Pulumi public ApplicationRequiredResourceAccessResourceAccessArgs() { } + public static new ApplicationRequiredResourceAccessResourceAccessArgs Empty => new ApplicationRequiredResourceAccessResourceAccessArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationRequiredResourceAccessResourceAccessGetArgs.cs b/sdk/dotnet/Inputs/ApplicationRequiredResourceAccessResourceAccessGetArgs.cs index 42109089c..322e561fd 100644 --- a/sdk/dotnet/Inputs/ApplicationRequiredResourceAccessResourceAccessGetArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationRequiredResourceAccessResourceAccessGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationRequiredResourceAccessResourceAccessGetArgs : Pulumi.ResourceArgs + public sealed class ApplicationRequiredResourceAccessResourceAccessGetArgs : global::Pulumi.ResourceArgs { /// /// The unique identifier for an app role or OAuth2 permission scope published by the resource application. @@ -27,5 +27,6 @@ public sealed class ApplicationRequiredResourceAccessResourceAccessGetArgs : Pul public ApplicationRequiredResourceAccessResourceAccessGetArgs() { } + public static new ApplicationRequiredResourceAccessResourceAccessGetArgs Empty => new ApplicationRequiredResourceAccessResourceAccessGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationSinglePageApplicationArgs.cs b/sdk/dotnet/Inputs/ApplicationSinglePageApplicationArgs.cs index d3b58e387..a71ed9f33 100644 --- a/sdk/dotnet/Inputs/ApplicationSinglePageApplicationArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationSinglePageApplicationArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationSinglePageApplicationArgs : Pulumi.ResourceArgs + public sealed class ApplicationSinglePageApplicationArgs : global::Pulumi.ResourceArgs { [Input("redirectUris")] private InputList? _redirectUris; @@ -27,5 +27,6 @@ public InputList RedirectUris public ApplicationSinglePageApplicationArgs() { } + public static new ApplicationSinglePageApplicationArgs Empty => new ApplicationSinglePageApplicationArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationSinglePageApplicationGetArgs.cs b/sdk/dotnet/Inputs/ApplicationSinglePageApplicationGetArgs.cs index 25cf1e087..c7e1916fb 100644 --- a/sdk/dotnet/Inputs/ApplicationSinglePageApplicationGetArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationSinglePageApplicationGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationSinglePageApplicationGetArgs : Pulumi.ResourceArgs + public sealed class ApplicationSinglePageApplicationGetArgs : global::Pulumi.ResourceArgs { [Input("redirectUris")] private InputList? _redirectUris; @@ -27,5 +27,6 @@ public InputList RedirectUris public ApplicationSinglePageApplicationGetArgs() { } + public static new ApplicationSinglePageApplicationGetArgs Empty => new ApplicationSinglePageApplicationGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationWebArgs.cs b/sdk/dotnet/Inputs/ApplicationWebArgs.cs index 83f8ff339..20a2ca01b 100644 --- a/sdk/dotnet/Inputs/ApplicationWebArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationWebArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationWebArgs : Pulumi.ResourceArgs + public sealed class ApplicationWebArgs : global::Pulumi.ResourceArgs { /// /// Home page or landing page of the application. @@ -45,5 +45,6 @@ public InputList RedirectUris public ApplicationWebArgs() { } + public static new ApplicationWebArgs Empty => new ApplicationWebArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationWebGetArgs.cs b/sdk/dotnet/Inputs/ApplicationWebGetArgs.cs index 966282df4..0727a7a3f 100644 --- a/sdk/dotnet/Inputs/ApplicationWebGetArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationWebGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationWebGetArgs : Pulumi.ResourceArgs + public sealed class ApplicationWebGetArgs : global::Pulumi.ResourceArgs { /// /// Home page or landing page of the application. @@ -45,5 +45,6 @@ public InputList RedirectUris public ApplicationWebGetArgs() { } + public static new ApplicationWebGetArgs Empty => new ApplicationWebGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationWebImplicitGrantArgs.cs b/sdk/dotnet/Inputs/ApplicationWebImplicitGrantArgs.cs index 7f42b881d..ef94e02d1 100644 --- a/sdk/dotnet/Inputs/ApplicationWebImplicitGrantArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationWebImplicitGrantArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationWebImplicitGrantArgs : Pulumi.ResourceArgs + public sealed class ApplicationWebImplicitGrantArgs : global::Pulumi.ResourceArgs { /// /// Whether this web application can request an access token using OAuth 2.0 implicit flow. @@ -27,5 +27,6 @@ public sealed class ApplicationWebImplicitGrantArgs : Pulumi.ResourceArgs public ApplicationWebImplicitGrantArgs() { } + public static new ApplicationWebImplicitGrantArgs Empty => new ApplicationWebImplicitGrantArgs(); } } diff --git a/sdk/dotnet/Inputs/ApplicationWebImplicitGrantGetArgs.cs b/sdk/dotnet/Inputs/ApplicationWebImplicitGrantGetArgs.cs index bf382922c..f50cb93f6 100644 --- a/sdk/dotnet/Inputs/ApplicationWebImplicitGrantGetArgs.cs +++ b/sdk/dotnet/Inputs/ApplicationWebImplicitGrantGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ApplicationWebImplicitGrantGetArgs : Pulumi.ResourceArgs + public sealed class ApplicationWebImplicitGrantGetArgs : global::Pulumi.ResourceArgs { /// /// Whether this web application can request an access token using OAuth 2.0 implicit flow. @@ -27,5 +27,6 @@ public sealed class ApplicationWebImplicitGrantGetArgs : Pulumi.ResourceArgs public ApplicationWebImplicitGrantGetArgs() { } + public static new ApplicationWebImplicitGrantGetArgs Empty => new ApplicationWebImplicitGrantGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsApplicationsArgs.cs b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsApplicationsArgs.cs index 682995702..366c485ce 100644 --- a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsApplicationsArgs.cs +++ b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsApplicationsArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ConditionalAccessPolicyConditionsApplicationsArgs : Pulumi.ResourceArgs + public sealed class ConditionalAccessPolicyConditionsApplicationsArgs : global::Pulumi.ResourceArgs { [Input("excludedApplications")] private InputList? _excludedApplications; @@ -51,5 +51,6 @@ public InputList IncludedUserActions public ConditionalAccessPolicyConditionsApplicationsArgs() { } + public static new ConditionalAccessPolicyConditionsApplicationsArgs Empty => new ConditionalAccessPolicyConditionsApplicationsArgs(); } } diff --git a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsApplicationsGetArgs.cs b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsApplicationsGetArgs.cs index 72c6ee321..f83ade99c 100644 --- a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsApplicationsGetArgs.cs +++ b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsApplicationsGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ConditionalAccessPolicyConditionsApplicationsGetArgs : Pulumi.ResourceArgs + public sealed class ConditionalAccessPolicyConditionsApplicationsGetArgs : global::Pulumi.ResourceArgs { [Input("excludedApplications")] private InputList? _excludedApplications; @@ -51,5 +51,6 @@ public InputList IncludedUserActions public ConditionalAccessPolicyConditionsApplicationsGetArgs() { } + public static new ConditionalAccessPolicyConditionsApplicationsGetArgs Empty => new ConditionalAccessPolicyConditionsApplicationsGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsArgs.cs b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsArgs.cs index 9cabcedeb..62aab3921 100644 --- a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsArgs.cs +++ b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ConditionalAccessPolicyConditionsArgs : Pulumi.ResourceArgs + public sealed class ConditionalAccessPolicyConditionsArgs : global::Pulumi.ResourceArgs { /// /// An `applications` block as documented below, which specifies applications and user actions included in and excluded from the policy. @@ -81,5 +81,6 @@ public InputList UserRiskLevels public ConditionalAccessPolicyConditionsArgs() { } + public static new ConditionalAccessPolicyConditionsArgs Empty => new ConditionalAccessPolicyConditionsArgs(); } } diff --git a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsDevicesArgs.cs b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsDevicesArgs.cs index 6c8d5dd1e..59090f3b0 100644 --- a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsDevicesArgs.cs +++ b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsDevicesArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ConditionalAccessPolicyConditionsDevicesArgs : Pulumi.ResourceArgs + public sealed class ConditionalAccessPolicyConditionsDevicesArgs : global::Pulumi.ResourceArgs { /// /// A `filter` block as described below. A `filter` block can be added to an existing policy, but removing the `filter` block forces a new resource to be created. @@ -21,5 +21,6 @@ public sealed class ConditionalAccessPolicyConditionsDevicesArgs : Pulumi.Resour public ConditionalAccessPolicyConditionsDevicesArgs() { } + public static new ConditionalAccessPolicyConditionsDevicesArgs Empty => new ConditionalAccessPolicyConditionsDevicesArgs(); } } diff --git a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsDevicesFilterArgs.cs b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsDevicesFilterArgs.cs index 667fec25c..15eb57bd6 100644 --- a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsDevicesFilterArgs.cs +++ b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsDevicesFilterArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ConditionalAccessPolicyConditionsDevicesFilterArgs : Pulumi.ResourceArgs + public sealed class ConditionalAccessPolicyConditionsDevicesFilterArgs : global::Pulumi.ResourceArgs { /// /// Whether to include in, or exclude from, matching devices from the policy. Supported values are `include` or `exclude`. @@ -27,5 +27,6 @@ public sealed class ConditionalAccessPolicyConditionsDevicesFilterArgs : Pulumi. public ConditionalAccessPolicyConditionsDevicesFilterArgs() { } + public static new ConditionalAccessPolicyConditionsDevicesFilterArgs Empty => new ConditionalAccessPolicyConditionsDevicesFilterArgs(); } } diff --git a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsDevicesFilterGetArgs.cs b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsDevicesFilterGetArgs.cs index c05c640bc..b678f9d3c 100644 --- a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsDevicesFilterGetArgs.cs +++ b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsDevicesFilterGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ConditionalAccessPolicyConditionsDevicesFilterGetArgs : Pulumi.ResourceArgs + public sealed class ConditionalAccessPolicyConditionsDevicesFilterGetArgs : global::Pulumi.ResourceArgs { /// /// Whether to include in, or exclude from, matching devices from the policy. Supported values are `include` or `exclude`. @@ -27,5 +27,6 @@ public sealed class ConditionalAccessPolicyConditionsDevicesFilterGetArgs : Pulu public ConditionalAccessPolicyConditionsDevicesFilterGetArgs() { } + public static new ConditionalAccessPolicyConditionsDevicesFilterGetArgs Empty => new ConditionalAccessPolicyConditionsDevicesFilterGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsDevicesGetArgs.cs b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsDevicesGetArgs.cs index e7128ec04..d1636cd5d 100644 --- a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsDevicesGetArgs.cs +++ b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsDevicesGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ConditionalAccessPolicyConditionsDevicesGetArgs : Pulumi.ResourceArgs + public sealed class ConditionalAccessPolicyConditionsDevicesGetArgs : global::Pulumi.ResourceArgs { /// /// A `filter` block as described below. A `filter` block can be added to an existing policy, but removing the `filter` block forces a new resource to be created. @@ -21,5 +21,6 @@ public sealed class ConditionalAccessPolicyConditionsDevicesGetArgs : Pulumi.Res public ConditionalAccessPolicyConditionsDevicesGetArgs() { } + public static new ConditionalAccessPolicyConditionsDevicesGetArgs Empty => new ConditionalAccessPolicyConditionsDevicesGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsGetArgs.cs b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsGetArgs.cs index 847af476e..9a8aa6b80 100644 --- a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsGetArgs.cs +++ b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ConditionalAccessPolicyConditionsGetArgs : Pulumi.ResourceArgs + public sealed class ConditionalAccessPolicyConditionsGetArgs : global::Pulumi.ResourceArgs { /// /// An `applications` block as documented below, which specifies applications and user actions included in and excluded from the policy. @@ -81,5 +81,6 @@ public InputList UserRiskLevels public ConditionalAccessPolicyConditionsGetArgs() { } + public static new ConditionalAccessPolicyConditionsGetArgs Empty => new ConditionalAccessPolicyConditionsGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsLocationsArgs.cs b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsLocationsArgs.cs index 7c75fdf9b..2591c2eec 100644 --- a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsLocationsArgs.cs +++ b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsLocationsArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ConditionalAccessPolicyConditionsLocationsArgs : Pulumi.ResourceArgs + public sealed class ConditionalAccessPolicyConditionsLocationsArgs : global::Pulumi.ResourceArgs { [Input("excludedLocations")] private InputList? _excludedLocations; @@ -39,5 +39,6 @@ public InputList IncludedLocations public ConditionalAccessPolicyConditionsLocationsArgs() { } + public static new ConditionalAccessPolicyConditionsLocationsArgs Empty => new ConditionalAccessPolicyConditionsLocationsArgs(); } } diff --git a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsLocationsGetArgs.cs b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsLocationsGetArgs.cs index 89a44704c..84b9ee90d 100644 --- a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsLocationsGetArgs.cs +++ b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsLocationsGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ConditionalAccessPolicyConditionsLocationsGetArgs : Pulumi.ResourceArgs + public sealed class ConditionalAccessPolicyConditionsLocationsGetArgs : global::Pulumi.ResourceArgs { [Input("excludedLocations")] private InputList? _excludedLocations; @@ -39,5 +39,6 @@ public InputList IncludedLocations public ConditionalAccessPolicyConditionsLocationsGetArgs() { } + public static new ConditionalAccessPolicyConditionsLocationsGetArgs Empty => new ConditionalAccessPolicyConditionsLocationsGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsPlatformsArgs.cs b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsPlatformsArgs.cs index cda140435..36c4dc954 100644 --- a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsPlatformsArgs.cs +++ b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsPlatformsArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ConditionalAccessPolicyConditionsPlatformsArgs : Pulumi.ResourceArgs + public sealed class ConditionalAccessPolicyConditionsPlatformsArgs : global::Pulumi.ResourceArgs { [Input("excludedPlatforms")] private InputList? _excludedPlatforms; @@ -39,5 +39,6 @@ public InputList IncludedPlatforms public ConditionalAccessPolicyConditionsPlatformsArgs() { } + public static new ConditionalAccessPolicyConditionsPlatformsArgs Empty => new ConditionalAccessPolicyConditionsPlatformsArgs(); } } diff --git a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsPlatformsGetArgs.cs b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsPlatformsGetArgs.cs index a3e75f7b8..8a9a9f066 100644 --- a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsPlatformsGetArgs.cs +++ b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsPlatformsGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ConditionalAccessPolicyConditionsPlatformsGetArgs : Pulumi.ResourceArgs + public sealed class ConditionalAccessPolicyConditionsPlatformsGetArgs : global::Pulumi.ResourceArgs { [Input("excludedPlatforms")] private InputList? _excludedPlatforms; @@ -39,5 +39,6 @@ public InputList IncludedPlatforms public ConditionalAccessPolicyConditionsPlatformsGetArgs() { } + public static new ConditionalAccessPolicyConditionsPlatformsGetArgs Empty => new ConditionalAccessPolicyConditionsPlatformsGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsUsersArgs.cs b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsUsersArgs.cs index aa5c4e3a0..0b3827f67 100644 --- a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsUsersArgs.cs +++ b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsUsersArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ConditionalAccessPolicyConditionsUsersArgs : Pulumi.ResourceArgs + public sealed class ConditionalAccessPolicyConditionsUsersArgs : global::Pulumi.ResourceArgs { [Input("excludedGroups")] private InputList? _excludedGroups; @@ -87,5 +87,6 @@ public InputList IncludedUsers public ConditionalAccessPolicyConditionsUsersArgs() { } + public static new ConditionalAccessPolicyConditionsUsersArgs Empty => new ConditionalAccessPolicyConditionsUsersArgs(); } } diff --git a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsUsersGetArgs.cs b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsUsersGetArgs.cs index d068df79f..dcecefe6a 100644 --- a/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsUsersGetArgs.cs +++ b/sdk/dotnet/Inputs/ConditionalAccessPolicyConditionsUsersGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ConditionalAccessPolicyConditionsUsersGetArgs : Pulumi.ResourceArgs + public sealed class ConditionalAccessPolicyConditionsUsersGetArgs : global::Pulumi.ResourceArgs { [Input("excludedGroups")] private InputList? _excludedGroups; @@ -87,5 +87,6 @@ public InputList IncludedUsers public ConditionalAccessPolicyConditionsUsersGetArgs() { } + public static new ConditionalAccessPolicyConditionsUsersGetArgs Empty => new ConditionalAccessPolicyConditionsUsersGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ConditionalAccessPolicyGrantControlsArgs.cs b/sdk/dotnet/Inputs/ConditionalAccessPolicyGrantControlsArgs.cs index 240144437..b163a915f 100644 --- a/sdk/dotnet/Inputs/ConditionalAccessPolicyGrantControlsArgs.cs +++ b/sdk/dotnet/Inputs/ConditionalAccessPolicyGrantControlsArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ConditionalAccessPolicyGrantControlsArgs : Pulumi.ResourceArgs + public sealed class ConditionalAccessPolicyGrantControlsArgs : global::Pulumi.ResourceArgs { [Input("builtInControls", required: true)] private InputList? _builtInControls; @@ -57,5 +57,6 @@ public InputList TermsOfUses public ConditionalAccessPolicyGrantControlsArgs() { } + public static new ConditionalAccessPolicyGrantControlsArgs Empty => new ConditionalAccessPolicyGrantControlsArgs(); } } diff --git a/sdk/dotnet/Inputs/ConditionalAccessPolicyGrantControlsGetArgs.cs b/sdk/dotnet/Inputs/ConditionalAccessPolicyGrantControlsGetArgs.cs index 6944fa0ea..2051f88b6 100644 --- a/sdk/dotnet/Inputs/ConditionalAccessPolicyGrantControlsGetArgs.cs +++ b/sdk/dotnet/Inputs/ConditionalAccessPolicyGrantControlsGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ConditionalAccessPolicyGrantControlsGetArgs : Pulumi.ResourceArgs + public sealed class ConditionalAccessPolicyGrantControlsGetArgs : global::Pulumi.ResourceArgs { [Input("builtInControls", required: true)] private InputList? _builtInControls; @@ -57,5 +57,6 @@ public InputList TermsOfUses public ConditionalAccessPolicyGrantControlsGetArgs() { } + public static new ConditionalAccessPolicyGrantControlsGetArgs Empty => new ConditionalAccessPolicyGrantControlsGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ConditionalAccessPolicySessionControlsArgs.cs b/sdk/dotnet/Inputs/ConditionalAccessPolicySessionControlsArgs.cs index 81d627954..530704043 100644 --- a/sdk/dotnet/Inputs/ConditionalAccessPolicySessionControlsArgs.cs +++ b/sdk/dotnet/Inputs/ConditionalAccessPolicySessionControlsArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ConditionalAccessPolicySessionControlsArgs : Pulumi.ResourceArgs + public sealed class ConditionalAccessPolicySessionControlsArgs : global::Pulumi.ResourceArgs { /// /// Whether or not application enforced restrictions are enabled. Defaults to `false`. @@ -45,5 +45,6 @@ public sealed class ConditionalAccessPolicySessionControlsArgs : Pulumi.Resource public ConditionalAccessPolicySessionControlsArgs() { } + public static new ConditionalAccessPolicySessionControlsArgs Empty => new ConditionalAccessPolicySessionControlsArgs(); } } diff --git a/sdk/dotnet/Inputs/ConditionalAccessPolicySessionControlsGetArgs.cs b/sdk/dotnet/Inputs/ConditionalAccessPolicySessionControlsGetArgs.cs index 8b05a82c9..ccfb4b119 100644 --- a/sdk/dotnet/Inputs/ConditionalAccessPolicySessionControlsGetArgs.cs +++ b/sdk/dotnet/Inputs/ConditionalAccessPolicySessionControlsGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ConditionalAccessPolicySessionControlsGetArgs : Pulumi.ResourceArgs + public sealed class ConditionalAccessPolicySessionControlsGetArgs : global::Pulumi.ResourceArgs { /// /// Whether or not application enforced restrictions are enabled. Defaults to `false`. @@ -45,5 +45,6 @@ public sealed class ConditionalAccessPolicySessionControlsGetArgs : Pulumi.Resou public ConditionalAccessPolicySessionControlsGetArgs() { } + public static new ConditionalAccessPolicySessionControlsGetArgs Empty => new ConditionalAccessPolicySessionControlsGetArgs(); } } diff --git a/sdk/dotnet/Inputs/CustomDirectoryRolePermissionArgs.cs b/sdk/dotnet/Inputs/CustomDirectoryRolePermissionArgs.cs index 42e31e5f6..5fd336924 100644 --- a/sdk/dotnet/Inputs/CustomDirectoryRolePermissionArgs.cs +++ b/sdk/dotnet/Inputs/CustomDirectoryRolePermissionArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class CustomDirectoryRolePermissionArgs : Pulumi.ResourceArgs + public sealed class CustomDirectoryRolePermissionArgs : global::Pulumi.ResourceArgs { [Input("allowedResourceActions", required: true)] private InputList? _allowedResourceActions; @@ -27,5 +27,6 @@ public InputList AllowedResourceActions public CustomDirectoryRolePermissionArgs() { } + public static new CustomDirectoryRolePermissionArgs Empty => new CustomDirectoryRolePermissionArgs(); } } diff --git a/sdk/dotnet/Inputs/CustomDirectoryRolePermissionGetArgs.cs b/sdk/dotnet/Inputs/CustomDirectoryRolePermissionGetArgs.cs index 34ccd4d5a..bcce0ab12 100644 --- a/sdk/dotnet/Inputs/CustomDirectoryRolePermissionGetArgs.cs +++ b/sdk/dotnet/Inputs/CustomDirectoryRolePermissionGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class CustomDirectoryRolePermissionGetArgs : Pulumi.ResourceArgs + public sealed class CustomDirectoryRolePermissionGetArgs : global::Pulumi.ResourceArgs { [Input("allowedResourceActions", required: true)] private InputList? _allowedResourceActions; @@ -27,5 +27,6 @@ public InputList AllowedResourceActions public CustomDirectoryRolePermissionGetArgs() { } + public static new CustomDirectoryRolePermissionGetArgs Empty => new CustomDirectoryRolePermissionGetArgs(); } } diff --git a/sdk/dotnet/Inputs/GroupDynamicMembershipArgs.cs b/sdk/dotnet/Inputs/GroupDynamicMembershipArgs.cs index 6bc082aa6..f25be77d1 100644 --- a/sdk/dotnet/Inputs/GroupDynamicMembershipArgs.cs +++ b/sdk/dotnet/Inputs/GroupDynamicMembershipArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class GroupDynamicMembershipArgs : Pulumi.ResourceArgs + public sealed class GroupDynamicMembershipArgs : global::Pulumi.ResourceArgs { /// /// Whether rule processing is "On" (true) or "Paused" (false). @@ -27,5 +27,6 @@ public sealed class GroupDynamicMembershipArgs : Pulumi.ResourceArgs public GroupDynamicMembershipArgs() { } + public static new GroupDynamicMembershipArgs Empty => new GroupDynamicMembershipArgs(); } } diff --git a/sdk/dotnet/Inputs/GroupDynamicMembershipGetArgs.cs b/sdk/dotnet/Inputs/GroupDynamicMembershipGetArgs.cs index 6a5d62a2f..6cf189f5e 100644 --- a/sdk/dotnet/Inputs/GroupDynamicMembershipGetArgs.cs +++ b/sdk/dotnet/Inputs/GroupDynamicMembershipGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class GroupDynamicMembershipGetArgs : Pulumi.ResourceArgs + public sealed class GroupDynamicMembershipGetArgs : global::Pulumi.ResourceArgs { /// /// Whether rule processing is "On" (true) or "Paused" (false). @@ -27,5 +27,6 @@ public sealed class GroupDynamicMembershipGetArgs : Pulumi.ResourceArgs public GroupDynamicMembershipGetArgs() { } + public static new GroupDynamicMembershipGetArgs Empty => new GroupDynamicMembershipGetArgs(); } } diff --git a/sdk/dotnet/Inputs/InvitationMessageArgs.cs b/sdk/dotnet/Inputs/InvitationMessageArgs.cs index 35f24cee0..986706a01 100644 --- a/sdk/dotnet/Inputs/InvitationMessageArgs.cs +++ b/sdk/dotnet/Inputs/InvitationMessageArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class InvitationMessageArgs : Pulumi.ResourceArgs + public sealed class InvitationMessageArgs : global::Pulumi.ResourceArgs { /// /// Email addresses of additional recipients the invitation message should be sent to. Only 1 additional recipient is currently supported by Azure. @@ -33,5 +33,6 @@ public sealed class InvitationMessageArgs : Pulumi.ResourceArgs public InvitationMessageArgs() { } + public static new InvitationMessageArgs Empty => new InvitationMessageArgs(); } } diff --git a/sdk/dotnet/Inputs/InvitationMessageGetArgs.cs b/sdk/dotnet/Inputs/InvitationMessageGetArgs.cs index 04dafceb1..9bdf63637 100644 --- a/sdk/dotnet/Inputs/InvitationMessageGetArgs.cs +++ b/sdk/dotnet/Inputs/InvitationMessageGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class InvitationMessageGetArgs : Pulumi.ResourceArgs + public sealed class InvitationMessageGetArgs : global::Pulumi.ResourceArgs { /// /// Email addresses of additional recipients the invitation message should be sent to. Only 1 additional recipient is currently supported by Azure. @@ -33,5 +33,6 @@ public sealed class InvitationMessageGetArgs : Pulumi.ResourceArgs public InvitationMessageGetArgs() { } + public static new InvitationMessageGetArgs Empty => new InvitationMessageGetArgs(); } } diff --git a/sdk/dotnet/Inputs/NamedLocationCountryArgs.cs b/sdk/dotnet/Inputs/NamedLocationCountryArgs.cs index cd99f7d31..812bc7a1c 100644 --- a/sdk/dotnet/Inputs/NamedLocationCountryArgs.cs +++ b/sdk/dotnet/Inputs/NamedLocationCountryArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class NamedLocationCountryArgs : Pulumi.ResourceArgs + public sealed class NamedLocationCountryArgs : global::Pulumi.ResourceArgs { [Input("countriesAndRegions", required: true)] private InputList? _countriesAndRegions; @@ -33,5 +33,6 @@ public InputList CountriesAndRegions public NamedLocationCountryArgs() { } + public static new NamedLocationCountryArgs Empty => new NamedLocationCountryArgs(); } } diff --git a/sdk/dotnet/Inputs/NamedLocationCountryGetArgs.cs b/sdk/dotnet/Inputs/NamedLocationCountryGetArgs.cs index 12903b5d3..acb8bbd87 100644 --- a/sdk/dotnet/Inputs/NamedLocationCountryGetArgs.cs +++ b/sdk/dotnet/Inputs/NamedLocationCountryGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class NamedLocationCountryGetArgs : Pulumi.ResourceArgs + public sealed class NamedLocationCountryGetArgs : global::Pulumi.ResourceArgs { [Input("countriesAndRegions", required: true)] private InputList? _countriesAndRegions; @@ -33,5 +33,6 @@ public InputList CountriesAndRegions public NamedLocationCountryGetArgs() { } + public static new NamedLocationCountryGetArgs Empty => new NamedLocationCountryGetArgs(); } } diff --git a/sdk/dotnet/Inputs/NamedLocationIpArgs.cs b/sdk/dotnet/Inputs/NamedLocationIpArgs.cs index 1041cac73..8cc962fba 100644 --- a/sdk/dotnet/Inputs/NamedLocationIpArgs.cs +++ b/sdk/dotnet/Inputs/NamedLocationIpArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class NamedLocationIpArgs : Pulumi.ResourceArgs + public sealed class NamedLocationIpArgs : global::Pulumi.ResourceArgs { [Input("ipRanges", required: true)] private InputList? _ipRanges; @@ -33,5 +33,6 @@ public InputList IpRanges public NamedLocationIpArgs() { } + public static new NamedLocationIpArgs Empty => new NamedLocationIpArgs(); } } diff --git a/sdk/dotnet/Inputs/NamedLocationIpGetArgs.cs b/sdk/dotnet/Inputs/NamedLocationIpGetArgs.cs index 105748f79..121b9f14d 100644 --- a/sdk/dotnet/Inputs/NamedLocationIpGetArgs.cs +++ b/sdk/dotnet/Inputs/NamedLocationIpGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class NamedLocationIpGetArgs : Pulumi.ResourceArgs + public sealed class NamedLocationIpGetArgs : global::Pulumi.ResourceArgs { [Input("ipRanges", required: true)] private InputList? _ipRanges; @@ -33,5 +33,6 @@ public InputList IpRanges public NamedLocationIpGetArgs() { } + public static new NamedLocationIpGetArgs Empty => new NamedLocationIpGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ServicePrincipalAppRoleArgs.cs b/sdk/dotnet/Inputs/ServicePrincipalAppRoleArgs.cs index 7d37165bd..e47a21f75 100644 --- a/sdk/dotnet/Inputs/ServicePrincipalAppRoleArgs.cs +++ b/sdk/dotnet/Inputs/ServicePrincipalAppRoleArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ServicePrincipalAppRoleArgs : Pulumi.ResourceArgs + public sealed class ServicePrincipalAppRoleArgs : global::Pulumi.ResourceArgs { [Input("allowedMemberTypes")] private InputList? _allowedMemberTypes; @@ -57,5 +57,6 @@ public InputList AllowedMemberTypes public ServicePrincipalAppRoleArgs() { } + public static new ServicePrincipalAppRoleArgs Empty => new ServicePrincipalAppRoleArgs(); } } diff --git a/sdk/dotnet/Inputs/ServicePrincipalAppRoleGetArgs.cs b/sdk/dotnet/Inputs/ServicePrincipalAppRoleGetArgs.cs index 5b81e5389..b756caa25 100644 --- a/sdk/dotnet/Inputs/ServicePrincipalAppRoleGetArgs.cs +++ b/sdk/dotnet/Inputs/ServicePrincipalAppRoleGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ServicePrincipalAppRoleGetArgs : Pulumi.ResourceArgs + public sealed class ServicePrincipalAppRoleGetArgs : global::Pulumi.ResourceArgs { [Input("allowedMemberTypes")] private InputList? _allowedMemberTypes; @@ -57,5 +57,6 @@ public InputList AllowedMemberTypes public ServicePrincipalAppRoleGetArgs() { } + public static new ServicePrincipalAppRoleGetArgs Empty => new ServicePrincipalAppRoleGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ServicePrincipalFeatureArgs.cs b/sdk/dotnet/Inputs/ServicePrincipalFeatureArgs.cs index 7095a0afd..ae36b220a 100644 --- a/sdk/dotnet/Inputs/ServicePrincipalFeatureArgs.cs +++ b/sdk/dotnet/Inputs/ServicePrincipalFeatureArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ServicePrincipalFeatureArgs : Pulumi.ResourceArgs + public sealed class ServicePrincipalFeatureArgs : global::Pulumi.ResourceArgs { [Input("customSingleSignOnApp")] public Input? CustomSingleSignOnApp { get; set; } @@ -27,5 +27,6 @@ public sealed class ServicePrincipalFeatureArgs : Pulumi.ResourceArgs public ServicePrincipalFeatureArgs() { } + public static new ServicePrincipalFeatureArgs Empty => new ServicePrincipalFeatureArgs(); } } diff --git a/sdk/dotnet/Inputs/ServicePrincipalFeatureGetArgs.cs b/sdk/dotnet/Inputs/ServicePrincipalFeatureGetArgs.cs index 07f02ce55..ba2149adb 100644 --- a/sdk/dotnet/Inputs/ServicePrincipalFeatureGetArgs.cs +++ b/sdk/dotnet/Inputs/ServicePrincipalFeatureGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ServicePrincipalFeatureGetArgs : Pulumi.ResourceArgs + public sealed class ServicePrincipalFeatureGetArgs : global::Pulumi.ResourceArgs { [Input("customSingleSignOnApp")] public Input? CustomSingleSignOnApp { get; set; } @@ -27,5 +27,6 @@ public sealed class ServicePrincipalFeatureGetArgs : Pulumi.ResourceArgs public ServicePrincipalFeatureGetArgs() { } + public static new ServicePrincipalFeatureGetArgs Empty => new ServicePrincipalFeatureGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ServicePrincipalFeatureTagArgs.cs b/sdk/dotnet/Inputs/ServicePrincipalFeatureTagArgs.cs index 8e6047ca9..a79fbea62 100644 --- a/sdk/dotnet/Inputs/ServicePrincipalFeatureTagArgs.cs +++ b/sdk/dotnet/Inputs/ServicePrincipalFeatureTagArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ServicePrincipalFeatureTagArgs : Pulumi.ResourceArgs + public sealed class ServicePrincipalFeatureTagArgs : global::Pulumi.ResourceArgs { /// /// Whether this service principal represents a custom SAML application. Enabling this will assign the `WindowsAzureActiveDirectoryCustomSingleSignOnApplication` tag. Defaults to `false`. @@ -39,5 +39,6 @@ public sealed class ServicePrincipalFeatureTagArgs : Pulumi.ResourceArgs public ServicePrincipalFeatureTagArgs() { } + public static new ServicePrincipalFeatureTagArgs Empty => new ServicePrincipalFeatureTagArgs(); } } diff --git a/sdk/dotnet/Inputs/ServicePrincipalFeatureTagGetArgs.cs b/sdk/dotnet/Inputs/ServicePrincipalFeatureTagGetArgs.cs index e2342fc6e..e4bdf3f0c 100644 --- a/sdk/dotnet/Inputs/ServicePrincipalFeatureTagGetArgs.cs +++ b/sdk/dotnet/Inputs/ServicePrincipalFeatureTagGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ServicePrincipalFeatureTagGetArgs : Pulumi.ResourceArgs + public sealed class ServicePrincipalFeatureTagGetArgs : global::Pulumi.ResourceArgs { /// /// Whether this service principal represents a custom SAML application. Enabling this will assign the `WindowsAzureActiveDirectoryCustomSingleSignOnApplication` tag. Defaults to `false`. @@ -39,5 +39,6 @@ public sealed class ServicePrincipalFeatureTagGetArgs : Pulumi.ResourceArgs public ServicePrincipalFeatureTagGetArgs() { } + public static new ServicePrincipalFeatureTagGetArgs Empty => new ServicePrincipalFeatureTagGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ServicePrincipalOauth2PermissionScopeArgs.cs b/sdk/dotnet/Inputs/ServicePrincipalOauth2PermissionScopeArgs.cs index 6f80a80f6..2839d6cfe 100644 --- a/sdk/dotnet/Inputs/ServicePrincipalOauth2PermissionScopeArgs.cs +++ b/sdk/dotnet/Inputs/ServicePrincipalOauth2PermissionScopeArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ServicePrincipalOauth2PermissionScopeArgs : Pulumi.ResourceArgs + public sealed class ServicePrincipalOauth2PermissionScopeArgs : global::Pulumi.ResourceArgs { /// /// Delegated permission description that appears in all tenant-wide admin consent experiences, intended to be read by an administrator granting the permission on behalf of all users. @@ -63,5 +63,6 @@ public sealed class ServicePrincipalOauth2PermissionScopeArgs : Pulumi.ResourceA public ServicePrincipalOauth2PermissionScopeArgs() { } + public static new ServicePrincipalOauth2PermissionScopeArgs Empty => new ServicePrincipalOauth2PermissionScopeArgs(); } } diff --git a/sdk/dotnet/Inputs/ServicePrincipalOauth2PermissionScopeGetArgs.cs b/sdk/dotnet/Inputs/ServicePrincipalOauth2PermissionScopeGetArgs.cs index ae5a1d4dc..708316268 100644 --- a/sdk/dotnet/Inputs/ServicePrincipalOauth2PermissionScopeGetArgs.cs +++ b/sdk/dotnet/Inputs/ServicePrincipalOauth2PermissionScopeGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ServicePrincipalOauth2PermissionScopeGetArgs : Pulumi.ResourceArgs + public sealed class ServicePrincipalOauth2PermissionScopeGetArgs : global::Pulumi.ResourceArgs { /// /// Delegated permission description that appears in all tenant-wide admin consent experiences, intended to be read by an administrator granting the permission on behalf of all users. @@ -63,5 +63,6 @@ public sealed class ServicePrincipalOauth2PermissionScopeGetArgs : Pulumi.Resour public ServicePrincipalOauth2PermissionScopeGetArgs() { } + public static new ServicePrincipalOauth2PermissionScopeGetArgs Empty => new ServicePrincipalOauth2PermissionScopeGetArgs(); } } diff --git a/sdk/dotnet/Inputs/ServicePrincipalSamlSingleSignOnArgs.cs b/sdk/dotnet/Inputs/ServicePrincipalSamlSingleSignOnArgs.cs index e7a5dccd1..9397640c0 100644 --- a/sdk/dotnet/Inputs/ServicePrincipalSamlSingleSignOnArgs.cs +++ b/sdk/dotnet/Inputs/ServicePrincipalSamlSingleSignOnArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ServicePrincipalSamlSingleSignOnArgs : Pulumi.ResourceArgs + public sealed class ServicePrincipalSamlSingleSignOnArgs : global::Pulumi.ResourceArgs { /// /// The relative URI the service provider would redirect to after completion of the single sign-on flow. @@ -21,5 +21,6 @@ public sealed class ServicePrincipalSamlSingleSignOnArgs : Pulumi.ResourceArgs public ServicePrincipalSamlSingleSignOnArgs() { } + public static new ServicePrincipalSamlSingleSignOnArgs Empty => new ServicePrincipalSamlSingleSignOnArgs(); } } diff --git a/sdk/dotnet/Inputs/ServicePrincipalSamlSingleSignOnGetArgs.cs b/sdk/dotnet/Inputs/ServicePrincipalSamlSingleSignOnGetArgs.cs index c66413099..0fd19348e 100644 --- a/sdk/dotnet/Inputs/ServicePrincipalSamlSingleSignOnGetArgs.cs +++ b/sdk/dotnet/Inputs/ServicePrincipalSamlSingleSignOnGetArgs.cs @@ -10,7 +10,7 @@ namespace Pulumi.AzureAD.Inputs { - public sealed class ServicePrincipalSamlSingleSignOnGetArgs : Pulumi.ResourceArgs + public sealed class ServicePrincipalSamlSingleSignOnGetArgs : global::Pulumi.ResourceArgs { /// /// The relative URI the service provider would redirect to after completion of the single sign-on flow. @@ -21,5 +21,6 @@ public sealed class ServicePrincipalSamlSingleSignOnGetArgs : Pulumi.ResourceArg public ServicePrincipalSamlSingleSignOnGetArgs() { } + public static new ServicePrincipalSamlSingleSignOnGetArgs Empty => new ServicePrincipalSamlSingleSignOnGetArgs(); } } diff --git a/sdk/dotnet/Invitation.cs b/sdk/dotnet/Invitation.cs index 7294e2032..52371ad8a 100644 --- a/sdk/dotnet/Invitation.cs +++ b/sdk/dotnet/Invitation.cs @@ -25,71 +25,65 @@ namespace Pulumi.AzureAD /// *Basic example* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = new AzureAD.Invitation("example", new() /// { - /// var example = new AzureAD.Invitation("example", new AzureAD.InvitationArgs - /// { - /// RedirectUrl = "https://portal.azure.com", - /// UserEmailAddress = "jdoe@hashicorp.com", - /// }); - /// } + /// RedirectUrl = "https://portal.azure.com", + /// UserEmailAddress = "jdoe@hashicorp.com", + /// }); /// - /// } + /// }); /// ``` /// /// *Invitation with standard message* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = new AzureAD.Invitation("example", new() /// { - /// var example = new AzureAD.Invitation("example", new AzureAD.InvitationArgs + /// Message = new AzureAD.Inputs.InvitationMessageArgs /// { - /// Message = new AzureAD.Inputs.InvitationMessageArgs - /// { - /// Language = "en-US", - /// }, - /// RedirectUrl = "https://portal.azure.com", - /// UserEmailAddress = "jdoe@hashicorp.com", - /// }); - /// } + /// Language = "en-US", + /// }, + /// RedirectUrl = "https://portal.azure.com", + /// UserEmailAddress = "jdoe@hashicorp.com", + /// }); /// - /// } + /// }); /// ``` /// /// *Invitation with custom message body and an additional recipient* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = new AzureAD.Invitation("example", new() /// { - /// var example = new AzureAD.Invitation("example", new AzureAD.InvitationArgs + /// Message = new AzureAD.Inputs.InvitationMessageArgs /// { - /// Message = new AzureAD.Inputs.InvitationMessageArgs - /// { - /// AdditionalRecipients = "aaliceberg@hashicorp.com", - /// Body = "Hello there! You are invited to join my Azure tenant!", - /// }, - /// RedirectUrl = "https://portal.azure.com", - /// UserDisplayName = "Bob Bobson", - /// UserEmailAddress = "bbobson@hashicorp.com", - /// }); - /// } + /// AdditionalRecipients = "aaliceberg@hashicorp.com", + /// Body = "Hello there! You are invited to join my Azure tenant!", + /// }, + /// RedirectUrl = "https://portal.azure.com", + /// UserDisplayName = "Bob Bobson", + /// UserEmailAddress = "bbobson@hashicorp.com", + /// }); /// - /// } + /// }); /// ``` /// /// ## Import @@ -97,7 +91,7 @@ namespace Pulumi.AzureAD /// This resource does not support importing. /// [AzureADResourceType("azuread:index/invitation:Invitation")] - public partial class Invitation : Pulumi.CustomResource + public partial class Invitation : global::Pulumi.CustomResource { /// /// A `message` block as documented below, which configures the message being sent to the invited user. If this block is omitted, no message will be sent. @@ -185,7 +179,7 @@ public static Invitation Get(string name, Input id, InvitationState? sta } } - public sealed class InvitationArgs : Pulumi.ResourceArgs + public sealed class InvitationArgs : global::Pulumi.ResourceArgs { /// /// A `message` block as documented below, which configures the message being sent to the invited user. If this block is omitted, no message will be sent. @@ -220,9 +214,10 @@ public sealed class InvitationArgs : Pulumi.ResourceArgs public InvitationArgs() { } + public static new InvitationArgs Empty => new InvitationArgs(); } - public sealed class InvitationState : Pulumi.ResourceArgs + public sealed class InvitationState : global::Pulumi.ResourceArgs { /// /// A `message` block as documented below, which configures the message being sent to the invited user. If this block is omitted, no message will be sent. @@ -269,5 +264,6 @@ public sealed class InvitationState : Pulumi.ResourceArgs public InvitationState() { } + public static new InvitationState Empty => new InvitationState(); } } diff --git a/sdk/dotnet/NamedLocation.cs b/sdk/dotnet/NamedLocation.cs index c01dc4bec..2526bf52c 100644 --- a/sdk/dotnet/NamedLocation.cs +++ b/sdk/dotnet/NamedLocation.cs @@ -23,42 +23,41 @@ namespace Pulumi.AzureAD /// ## Example Usage /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example_ip = new AzureAD.NamedLocation("example-ip", new() /// { - /// var example_ip = new AzureAD.NamedLocation("example-ip", new AzureAD.NamedLocationArgs + /// DisplayName = "IP Named Location", + /// Ip = new AzureAD.Inputs.NamedLocationIpArgs /// { - /// DisplayName = "IP Named Location", - /// Ip = new AzureAD.Inputs.NamedLocationIpArgs + /// IpRanges = new[] /// { - /// IpRanges = - /// { - /// "1.1.1.1/32", - /// "2.2.2.2/32", - /// }, - /// Trusted = true, + /// "1.1.1.1/32", + /// "2.2.2.2/32", /// }, - /// }); - /// var example_country = new AzureAD.NamedLocation("example-country", new AzureAD.NamedLocationArgs + /// Trusted = true, + /// }, + /// }); + /// + /// var example_country = new AzureAD.NamedLocation("example-country", new() + /// { + /// Country = new AzureAD.Inputs.NamedLocationCountryArgs /// { - /// Country = new AzureAD.Inputs.NamedLocationCountryArgs + /// CountriesAndRegions = new[] /// { - /// CountriesAndRegions = - /// { - /// "GB", - /// "US", - /// }, - /// IncludeUnknownCountriesAndRegions = false, + /// "GB", + /// "US", /// }, - /// DisplayName = "Country Named Location", - /// }); - /// } + /// IncludeUnknownCountriesAndRegions = false, + /// }, + /// DisplayName = "Country Named Location", + /// }); /// - /// } + /// }); /// ``` /// /// ## Import @@ -70,7 +69,7 @@ namespace Pulumi.AzureAD /// ``` /// [AzureADResourceType("azuread:index/namedLocation:NamedLocation")] - public partial class NamedLocation : Pulumi.CustomResource + public partial class NamedLocation : global::Pulumi.CustomResource { /// /// A `country` block as documented below, which configures a country-based named location. @@ -134,7 +133,7 @@ public static NamedLocation Get(string name, Input id, NamedLocationStat } } - public sealed class NamedLocationArgs : Pulumi.ResourceArgs + public sealed class NamedLocationArgs : global::Pulumi.ResourceArgs { /// /// A `country` block as documented below, which configures a country-based named location. @@ -157,9 +156,10 @@ public sealed class NamedLocationArgs : Pulumi.ResourceArgs public NamedLocationArgs() { } + public static new NamedLocationArgs Empty => new NamedLocationArgs(); } - public sealed class NamedLocationState : Pulumi.ResourceArgs + public sealed class NamedLocationState : global::Pulumi.ResourceArgs { /// /// A `country` block as documented below, which configures a country-based named location. @@ -182,5 +182,6 @@ public sealed class NamedLocationState : Pulumi.ResourceArgs public NamedLocationState() { } + public static new NamedLocationState Empty => new NamedLocationState(); } } diff --git a/sdk/dotnet/Provider.cs b/sdk/dotnet/Provider.cs index 60a756f6f..493f5036d 100644 --- a/sdk/dotnet/Provider.cs +++ b/sdk/dotnet/Provider.cs @@ -16,7 +16,7 @@ namespace Pulumi.AzureAD /// [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information. /// [AzureADResourceType("pulumi:providers:azuread")] - public partial class Provider : Pulumi.ProviderResource + public partial class Provider : global::Pulumi.ProviderResource { /// /// Base64 encoded PKCS#12 certificate bundle to use when authenticating as a Service Principal using a Client Certificate @@ -115,7 +115,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? } } - public sealed class ProviderArgs : Pulumi.ResourceArgs + public sealed class ProviderArgs : global::Pulumi.ResourceArgs { /// /// Base64 encoded PKCS#12 certificate bundle to use when authenticating as a Service Principal using a Client Certificate @@ -218,5 +218,6 @@ public ProviderArgs() MsiEndpoint = Utilities.GetEnv("ARM_MSI_ENDPOINT"); UseMsi = Utilities.GetEnvBoolean("ARM_USE_MSI") ?? false; } + public static new ProviderArgs Empty => new ProviderArgs(); } } diff --git a/sdk/dotnet/ServicePrincipal.cs b/sdk/dotnet/ServicePrincipal.cs index a192485dd..d22b24eb1 100644 --- a/sdk/dotnet/ServicePrincipal.cs +++ b/sdk/dotnet/ServicePrincipal.cs @@ -27,125 +27,124 @@ namespace Pulumi.AzureAD /// *Create a service principal for an application* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var current = AzureAD.GetClientConfig.Invoke(); + /// + /// var exampleApplication = new AzureAD.Application("exampleApplication", new() /// { - /// var current = Output.Create(AzureAD.GetClientConfig.InvokeAsync()); - /// var exampleApplication = new AzureAD.Application("exampleApplication", new AzureAD.ApplicationArgs + /// DisplayName = "example", + /// Owners = new[] /// { - /// DisplayName = "example", - /// Owners = - /// { - /// current.Apply(current => current.ObjectId), - /// }, - /// }); - /// var exampleServicePrincipal = new AzureAD.ServicePrincipal("exampleServicePrincipal", new AzureAD.ServicePrincipalArgs + /// current.Apply(getClientConfigResult => getClientConfigResult.ObjectId), + /// }, + /// }); + /// + /// var exampleServicePrincipal = new AzureAD.ServicePrincipal("exampleServicePrincipal", new() + /// { + /// ApplicationId = exampleApplication.ApplicationId, + /// AppRoleAssignmentRequired = false, + /// Owners = new[] /// { - /// ApplicationId = exampleApplication.ApplicationId, - /// AppRoleAssignmentRequired = false, - /// Owners = - /// { - /// current.Apply(current => current.ObjectId), - /// }, - /// }); - /// } + /// current.Apply(getClientConfigResult => getClientConfigResult.ObjectId), + /// }, + /// }); /// - /// } + /// }); /// ``` /// /// *Create a service principal for an enterprise application* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var current = AzureAD.GetClientConfig.Invoke(); + /// + /// var exampleApplication = new AzureAD.Application("exampleApplication", new() /// { - /// var current = Output.Create(AzureAD.GetClientConfig.InvokeAsync()); - /// var exampleApplication = new AzureAD.Application("exampleApplication", new AzureAD.ApplicationArgs + /// DisplayName = "example", + /// Owners = new[] /// { - /// DisplayName = "example", - /// Owners = - /// { - /// current.Apply(current => current.ObjectId), - /// }, - /// }); - /// var exampleServicePrincipal = new AzureAD.ServicePrincipal("exampleServicePrincipal", new AzureAD.ServicePrincipalArgs + /// current.Apply(getClientConfigResult => getClientConfigResult.ObjectId), + /// }, + /// }); + /// + /// var exampleServicePrincipal = new AzureAD.ServicePrincipal("exampleServicePrincipal", new() + /// { + /// ApplicationId = exampleApplication.ApplicationId, + /// AppRoleAssignmentRequired = false, + /// Owners = new[] /// { - /// ApplicationId = exampleApplication.ApplicationId, - /// AppRoleAssignmentRequired = false, - /// Owners = - /// { - /// current.Apply(current => current.ObjectId), - /// }, - /// FeatureTags = + /// current.Apply(getClientConfigResult => getClientConfigResult.ObjectId), + /// }, + /// FeatureTags = new[] + /// { + /// new AzureAD.Inputs.ServicePrincipalFeatureTagArgs /// { - /// new AzureAD.Inputs.ServicePrincipalFeatureTagArgs - /// { - /// Enterprise = true, - /// Gallery = true, - /// }, + /// Enterprise = true, + /// Gallery = true, /// }, - /// }); - /// } + /// }, + /// }); /// - /// } + /// }); /// ``` /// /// *Manage a service principal for a first-party Microsoft application* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var wellKnown = AzureAD.GetApplicationPublishedAppIds.Invoke(); + /// + /// var msgraph = new AzureAD.ServicePrincipal("msgraph", new() /// { - /// var wellKnown = Output.Create(AzureAD.GetApplicationPublishedAppIds.InvokeAsync()); - /// var msgraph = new AzureAD.ServicePrincipal("msgraph", new AzureAD.ServicePrincipalArgs - /// { - /// ApplicationId = wellKnown.Apply(wellKnown => wellKnown.Result?.MicrosoftGraph), - /// UseExisting = true, - /// }); - /// } + /// ApplicationId = wellKnown.Apply(getApplicationPublishedAppIdsResult => getApplicationPublishedAppIdsResult.Result?.MicrosoftGraph), + /// UseExisting = true, + /// }); /// - /// } + /// }); /// ``` /// /// *Create a service principal for an application created from a gallery template* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var exampleApplicationTemplate = AzureAD.GetApplicationTemplate.Invoke(new() /// { - /// var exampleApplicationTemplate = Output.Create(AzureAD.GetApplicationTemplate.InvokeAsync(new AzureAD.GetApplicationTemplateArgs - /// { - /// DisplayName = "Marketo", - /// })); - /// var exampleApplication = new AzureAD.Application("exampleApplication", new AzureAD.ApplicationArgs - /// { - /// DisplayName = "example", - /// TemplateId = exampleApplicationTemplate.Apply(exampleApplicationTemplate => exampleApplicationTemplate.TemplateId), - /// }); - /// var exampleServicePrincipal = new AzureAD.ServicePrincipal("exampleServicePrincipal", new AzureAD.ServicePrincipalArgs - /// { - /// ApplicationId = exampleApplication.ApplicationId, - /// UseExisting = true, - /// }); - /// } + /// DisplayName = "Marketo", + /// }); + /// + /// var exampleApplication = new AzureAD.Application("exampleApplication", new() + /// { + /// DisplayName = "example", + /// TemplateId = exampleApplicationTemplate.Apply(getApplicationTemplateResult => getApplicationTemplateResult.TemplateId), + /// }); + /// + /// var exampleServicePrincipal = new AzureAD.ServicePrincipal("exampleServicePrincipal", new() + /// { + /// ApplicationId = exampleApplication.ApplicationId, + /// UseExisting = true, + /// }); /// - /// } + /// }); /// ``` /// /// ## Import @@ -157,7 +156,7 @@ namespace Pulumi.AzureAD /// ``` /// [AzureADResourceType("azuread:index/servicePrincipal:ServicePrincipal")] - public partial class ServicePrincipal : Pulumi.CustomResource + public partial class ServicePrincipal : global::Pulumi.CustomResource { /// /// Whether or not the service principal account is enabled. Defaults to `true`. @@ -377,7 +376,7 @@ public static ServicePrincipal Get(string name, Input id, ServicePrincip } } - public sealed class ServicePrincipalArgs : Pulumi.ResourceArgs + public sealed class ServicePrincipalArgs : global::Pulumi.ResourceArgs { /// /// Whether or not the service principal account is enabled. Defaults to `true`. @@ -509,9 +508,10 @@ public InputList Tags public ServicePrincipalArgs() { } + public static new ServicePrincipalArgs Empty => new ServicePrincipalArgs(); } - public sealed class ServicePrincipalState : Pulumi.ResourceArgs + public sealed class ServicePrincipalState : global::Pulumi.ResourceArgs { /// /// Whether or not the service principal account is enabled. Defaults to `true`. @@ -763,5 +763,6 @@ public InputList Tags public ServicePrincipalState() { } + public static new ServicePrincipalState Empty => new ServicePrincipalState(); } } diff --git a/sdk/dotnet/ServicePrincipalCertificate.cs b/sdk/dotnet/ServicePrincipalCertificate.cs index 8b10c8265..96a0fafea 100644 --- a/sdk/dotnet/ServicePrincipalCertificate.cs +++ b/sdk/dotnet/ServicePrincipalCertificate.cs @@ -31,7 +31,7 @@ namespace Pulumi.AzureAD /// -> This ID format is unique to Terraform and is composed of the service principal's object ID, the string "certificate" and the certificate's key ID in the format `{ServicePrincipalObjectId}/certificate/{CertificateKeyId}`. /// [AzureADResourceType("azuread:index/servicePrincipalCertificate:ServicePrincipalCertificate")] - public partial class ServicePrincipalCertificate : Pulumi.CustomResource + public partial class ServicePrincipalCertificate : global::Pulumi.CustomResource { /// /// Specifies the encoding used for the supplied certificate data. Must be one of `pem`, `base64` or `hex`. Defaults to `pem`. @@ -125,7 +125,7 @@ public static ServicePrincipalCertificate Get(string name, Input id, Ser } } - public sealed class ServicePrincipalCertificateArgs : Pulumi.ResourceArgs + public sealed class ServicePrincipalCertificateArgs : global::Pulumi.ResourceArgs { /// /// Specifies the encoding used for the supplied certificate data. Must be one of `pem`, `base64` or `hex`. Defaults to `pem`. @@ -178,9 +178,10 @@ public sealed class ServicePrincipalCertificateArgs : Pulumi.ResourceArgs public ServicePrincipalCertificateArgs() { } + public static new ServicePrincipalCertificateArgs Empty => new ServicePrincipalCertificateArgs(); } - public sealed class ServicePrincipalCertificateState : Pulumi.ResourceArgs + public sealed class ServicePrincipalCertificateState : global::Pulumi.ResourceArgs { /// /// Specifies the encoding used for the supplied certificate data. Must be one of `pem`, `base64` or `hex`. Defaults to `pem`. @@ -233,5 +234,6 @@ public sealed class ServicePrincipalCertificateState : Pulumi.ResourceArgs public ServicePrincipalCertificateState() { } + public static new ServicePrincipalCertificateState Empty => new ServicePrincipalCertificateState(); } } diff --git a/sdk/dotnet/ServicePrincipalClaimsMappingPolicyAssignment.cs b/sdk/dotnet/ServicePrincipalClaimsMappingPolicyAssignment.cs index 6bcaafbe0..f8181ee00 100644 --- a/sdk/dotnet/ServicePrincipalClaimsMappingPolicyAssignment.cs +++ b/sdk/dotnet/ServicePrincipalClaimsMappingPolicyAssignment.cs @@ -23,21 +23,19 @@ namespace Pulumi.AzureAD /// ## Example Usage /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var app = new AzureAD.ServicePrincipalClaimsMappingPolicyAssignment("app", new() /// { - /// var app = new AzureAD.ServicePrincipalClaimsMappingPolicyAssignment("app", new AzureAD.ServicePrincipalClaimsMappingPolicyAssignmentArgs - /// { - /// ClaimsMappingPolicyId = azuread_claims_mapping_policy.My_policy.Id, - /// ServicePrincipalId = azuread_service_principal.My_principal.Id, - /// }); - /// } + /// ClaimsMappingPolicyId = azuread_claims_mapping_policy.My_policy.Id, + /// ServicePrincipalId = azuread_service_principal.My_principal.Id, + /// }); /// - /// } + /// }); /// ``` /// /// ## Import @@ -49,7 +47,7 @@ namespace Pulumi.AzureAD /// ``` /// [AzureADResourceType("azuread:index/servicePrincipalClaimsMappingPolicyAssignment:ServicePrincipalClaimsMappingPolicyAssignment")] - public partial class ServicePrincipalClaimsMappingPolicyAssignment : Pulumi.CustomResource + public partial class ServicePrincipalClaimsMappingPolicyAssignment : global::Pulumi.CustomResource { /// /// The ID of the claims mapping policy to assign. @@ -107,7 +105,7 @@ public static ServicePrincipalClaimsMappingPolicyAssignment Get(string name, Inp } } - public sealed class ServicePrincipalClaimsMappingPolicyAssignmentArgs : Pulumi.ResourceArgs + public sealed class ServicePrincipalClaimsMappingPolicyAssignmentArgs : global::Pulumi.ResourceArgs { /// /// The ID of the claims mapping policy to assign. @@ -124,9 +122,10 @@ public sealed class ServicePrincipalClaimsMappingPolicyAssignmentArgs : Pulumi.R public ServicePrincipalClaimsMappingPolicyAssignmentArgs() { } + public static new ServicePrincipalClaimsMappingPolicyAssignmentArgs Empty => new ServicePrincipalClaimsMappingPolicyAssignmentArgs(); } - public sealed class ServicePrincipalClaimsMappingPolicyAssignmentState : Pulumi.ResourceArgs + public sealed class ServicePrincipalClaimsMappingPolicyAssignmentState : global::Pulumi.ResourceArgs { /// /// The ID of the claims mapping policy to assign. @@ -143,5 +142,6 @@ public sealed class ServicePrincipalClaimsMappingPolicyAssignmentState : Pulumi. public ServicePrincipalClaimsMappingPolicyAssignmentState() { } + public static new ServicePrincipalClaimsMappingPolicyAssignmentState Empty => new ServicePrincipalClaimsMappingPolicyAssignmentState(); } } diff --git a/sdk/dotnet/ServicePrincipalDelegatedPermissionGrant.cs b/sdk/dotnet/ServicePrincipalDelegatedPermissionGrant.cs index 08f18e9a3..5815612fb 100644 --- a/sdk/dotnet/ServicePrincipalDelegatedPermissionGrant.cs +++ b/sdk/dotnet/ServicePrincipalDelegatedPermissionGrant.cs @@ -25,127 +25,132 @@ namespace Pulumi.AzureAD /// *Delegated permission grant for all users* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var wellKnown = AzureAD.GetApplicationPublishedAppIds.Invoke(); + /// + /// var msgraph = new AzureAD.ServicePrincipal("msgraph", new() /// { - /// var wellKnown = Output.Create(AzureAD.GetApplicationPublishedAppIds.InvokeAsync()); - /// var msgraph = new AzureAD.ServicePrincipal("msgraph", new AzureAD.ServicePrincipalArgs - /// { - /// ApplicationId = wellKnown.Apply(wellKnown => wellKnown.Result?.MicrosoftGraph), - /// UseExisting = true, - /// }); - /// var exampleApplication = new AzureAD.Application("exampleApplication", new AzureAD.ApplicationArgs + /// ApplicationId = wellKnown.Apply(getApplicationPublishedAppIdsResult => getApplicationPublishedAppIdsResult.Result?.MicrosoftGraph), + /// UseExisting = true, + /// }); + /// + /// var exampleApplication = new AzureAD.Application("exampleApplication", new() + /// { + /// DisplayName = "example", + /// RequiredResourceAccesses = new[] /// { - /// DisplayName = "example", - /// RequiredResourceAccesses = + /// new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs /// { - /// new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs + /// ResourceAppId = wellKnown.Apply(getApplicationPublishedAppIdsResult => getApplicationPublishedAppIdsResult.Result?.MicrosoftGraph), + /// ResourceAccesses = new[] /// { - /// ResourceAppId = wellKnown.Apply(wellKnown => wellKnown.Result?.MicrosoftGraph), - /// ResourceAccesses = + /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs /// { - /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs - /// { - /// Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds => oauth2PermissionScopeIds.Openid), - /// Type = "Scope", - /// }, - /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs - /// { - /// Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds => oauth2PermissionScopeIds.User_Read), - /// Type = "Scope", - /// }, + /// Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds => oauth2PermissionScopeIds.Openid), + /// Type = "Scope", + /// }, + /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs + /// { + /// Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds => oauth2PermissionScopeIds.User_Read), + /// Type = "Scope", /// }, /// }, /// }, - /// }); - /// var exampleServicePrincipal = new AzureAD.ServicePrincipal("exampleServicePrincipal", new AzureAD.ServicePrincipalArgs - /// { - /// ApplicationId = exampleApplication.ApplicationId, - /// }); - /// var exampleServicePrincipalDelegatedPermissionGrant = new AzureAD.ServicePrincipalDelegatedPermissionGrant("exampleServicePrincipalDelegatedPermissionGrant", new AzureAD.ServicePrincipalDelegatedPermissionGrantArgs + /// }, + /// }); + /// + /// var exampleServicePrincipal = new AzureAD.ServicePrincipal("exampleServicePrincipal", new() + /// { + /// ApplicationId = exampleApplication.ApplicationId, + /// }); + /// + /// var exampleServicePrincipalDelegatedPermissionGrant = new AzureAD.ServicePrincipalDelegatedPermissionGrant("exampleServicePrincipalDelegatedPermissionGrant", new() + /// { + /// ServicePrincipalObjectId = exampleServicePrincipal.ObjectId, + /// ResourceServicePrincipalObjectId = msgraph.ObjectId, + /// ClaimValues = new[] /// { - /// ServicePrincipalObjectId = exampleServicePrincipal.ObjectId, - /// ResourceServicePrincipalObjectId = msgraph.ObjectId, - /// ClaimValues = - /// { - /// "openid", - /// "User.Read.All", - /// }, - /// }); - /// } + /// "openid", + /// "User.Read.All", + /// }, + /// }); /// - /// } + /// }); /// ``` /// /// *Delegated permission grant for a single user* /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var wellKnown = AzureAD.GetApplicationPublishedAppIds.Invoke(); + /// + /// var msgraph = new AzureAD.ServicePrincipal("msgraph", new() /// { - /// var wellKnown = Output.Create(AzureAD.GetApplicationPublishedAppIds.InvokeAsync()); - /// var msgraph = new AzureAD.ServicePrincipal("msgraph", new AzureAD.ServicePrincipalArgs - /// { - /// ApplicationId = wellKnown.Apply(wellKnown => wellKnown.Result?.MicrosoftGraph), - /// UseExisting = true, - /// }); - /// var exampleApplication = new AzureAD.Application("exampleApplication", new AzureAD.ApplicationArgs + /// ApplicationId = wellKnown.Apply(getApplicationPublishedAppIdsResult => getApplicationPublishedAppIdsResult.Result?.MicrosoftGraph), + /// UseExisting = true, + /// }); + /// + /// var exampleApplication = new AzureAD.Application("exampleApplication", new() + /// { + /// DisplayName = "example", + /// RequiredResourceAccesses = new[] /// { - /// DisplayName = "example", - /// RequiredResourceAccesses = + /// new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs /// { - /// new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs + /// ResourceAppId = wellKnown.Apply(getApplicationPublishedAppIdsResult => getApplicationPublishedAppIdsResult.Result?.MicrosoftGraph), + /// ResourceAccesses = new[] /// { - /// ResourceAppId = wellKnown.Apply(wellKnown => wellKnown.Result?.MicrosoftGraph), - /// ResourceAccesses = + /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs + /// { + /// Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds => oauth2PermissionScopeIds.Openid), + /// Type = "Scope", + /// }, + /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs /// { - /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs - /// { - /// Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds => oauth2PermissionScopeIds.Openid), - /// Type = "Scope", - /// }, - /// new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs - /// { - /// Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds => oauth2PermissionScopeIds.User_Read), - /// Type = "Scope", - /// }, + /// Id = msgraph.Oauth2PermissionScopeIds.Apply(oauth2PermissionScopeIds => oauth2PermissionScopeIds.User_Read), + /// Type = "Scope", /// }, /// }, /// }, - /// }); - /// var exampleServicePrincipal = new AzureAD.ServicePrincipal("exampleServicePrincipal", new AzureAD.ServicePrincipalArgs - /// { - /// ApplicationId = exampleApplication.ApplicationId, - /// }); - /// var exampleUser = new AzureAD.User("exampleUser", new AzureAD.UserArgs - /// { - /// DisplayName = "J. Doe", - /// UserPrincipalName = "jdoe@hashicorp.com", - /// MailNickname = "jdoe", - /// Password = "SecretP@sswd99!", - /// }); - /// var exampleServicePrincipalDelegatedPermissionGrant = new AzureAD.ServicePrincipalDelegatedPermissionGrant("exampleServicePrincipalDelegatedPermissionGrant", new AzureAD.ServicePrincipalDelegatedPermissionGrantArgs + /// }, + /// }); + /// + /// var exampleServicePrincipal = new AzureAD.ServicePrincipal("exampleServicePrincipal", new() + /// { + /// ApplicationId = exampleApplication.ApplicationId, + /// }); + /// + /// var exampleUser = new AzureAD.User("exampleUser", new() + /// { + /// DisplayName = "J. Doe", + /// UserPrincipalName = "jdoe@hashicorp.com", + /// MailNickname = "jdoe", + /// Password = "SecretP@sswd99!", + /// }); + /// + /// var exampleServicePrincipalDelegatedPermissionGrant = new AzureAD.ServicePrincipalDelegatedPermissionGrant("exampleServicePrincipalDelegatedPermissionGrant", new() + /// { + /// ServicePrincipalObjectId = exampleServicePrincipal.ObjectId, + /// ResourceServicePrincipalObjectId = msgraph.ObjectId, + /// ClaimValues = new[] /// { - /// ServicePrincipalObjectId = exampleServicePrincipal.ObjectId, - /// ResourceServicePrincipalObjectId = msgraph.ObjectId, - /// ClaimValues = - /// { - /// "openid", - /// "User.Read.All", - /// }, - /// UserObjectId = exampleUser.ObjectId, - /// }); - /// } + /// "openid", + /// "User.Read.All", + /// }, + /// UserObjectId = exampleUser.ObjectId, + /// }); /// - /// } + /// }); /// ``` /// /// ## Import @@ -157,7 +162,7 @@ namespace Pulumi.AzureAD /// ``` /// [AzureADResourceType("azuread:index/servicePrincipalDelegatedPermissionGrant:ServicePrincipalDelegatedPermissionGrant")] - public partial class ServicePrincipalDelegatedPermissionGrant : Pulumi.CustomResource + public partial class ServicePrincipalDelegatedPermissionGrant : global::Pulumi.CustomResource { /// /// - A set of claim values for delegated permission scopes which should be included in access tokens for the resource. @@ -227,7 +232,7 @@ public static ServicePrincipalDelegatedPermissionGrant Get(string name, Input? _claimValues; @@ -262,9 +267,10 @@ public InputList ClaimValues public ServicePrincipalDelegatedPermissionGrantArgs() { } + public static new ServicePrincipalDelegatedPermissionGrantArgs Empty => new ServicePrincipalDelegatedPermissionGrantArgs(); } - public sealed class ServicePrincipalDelegatedPermissionGrantState : Pulumi.ResourceArgs + public sealed class ServicePrincipalDelegatedPermissionGrantState : global::Pulumi.ResourceArgs { [Input("claimValues")] private InputList? _claimValues; @@ -299,5 +305,6 @@ public InputList ClaimValues public ServicePrincipalDelegatedPermissionGrantState() { } + public static new ServicePrincipalDelegatedPermissionGrantState Empty => new ServicePrincipalDelegatedPermissionGrantState(); } } diff --git a/sdk/dotnet/ServicePrincipalPassword.cs b/sdk/dotnet/ServicePrincipalPassword.cs index c378e2a82..7258c8254 100644 --- a/sdk/dotnet/ServicePrincipalPassword.cs +++ b/sdk/dotnet/ServicePrincipalPassword.cs @@ -25,7 +25,7 @@ namespace Pulumi.AzureAD /// This resource does not support importing. /// [AzureADResourceType("azuread:index/servicePrincipalPassword:ServicePrincipalPassword")] - public partial class ServicePrincipalPassword : Pulumi.CustomResource + public partial class ServicePrincipalPassword : global::Pulumi.CustomResource { /// /// A display name for the password. @@ -119,7 +119,7 @@ public static ServicePrincipalPassword Get(string name, Input id, Servic } } - public sealed class ServicePrincipalPasswordArgs : Pulumi.ResourceArgs + public sealed class ServicePrincipalPasswordArgs : global::Pulumi.ResourceArgs { /// /// A display name for the password. @@ -166,9 +166,10 @@ public InputMap RotateWhenChanged public ServicePrincipalPasswordArgs() { } + public static new ServicePrincipalPasswordArgs Empty => new ServicePrincipalPasswordArgs(); } - public sealed class ServicePrincipalPasswordState : Pulumi.ResourceArgs + public sealed class ServicePrincipalPasswordState : global::Pulumi.ResourceArgs { /// /// A display name for the password. @@ -227,5 +228,6 @@ public InputMap RotateWhenChanged public ServicePrincipalPasswordState() { } + public static new ServicePrincipalPasswordState Empty => new ServicePrincipalPasswordState(); } } diff --git a/sdk/dotnet/User.cs b/sdk/dotnet/User.cs index 99e1a32b5..43c1530b4 100644 --- a/sdk/dotnet/User.cs +++ b/sdk/dotnet/User.cs @@ -23,23 +23,21 @@ namespace Pulumi.AzureAD /// ## Example Usage /// /// ```csharp + /// using System.Collections.Generic; /// using Pulumi; /// using AzureAD = Pulumi.AzureAD; /// - /// class MyStack : Stack + /// return await Deployment.RunAsync(() => /// { - /// public MyStack() + /// var example = new AzureAD.User("example", new() /// { - /// var example = new AzureAD.User("example", new AzureAD.UserArgs - /// { - /// DisplayName = "J. Doe", - /// MailNickname = "jdoe", - /// Password = "SecretP@sswd99!", - /// UserPrincipalName = "jdoe@hashicorp.com", - /// }); - /// } + /// DisplayName = "J. Doe", + /// MailNickname = "jdoe", + /// Password = "SecretP@sswd99!", + /// UserPrincipalName = "jdoe@hashicorp.com", + /// }); /// - /// } + /// }); /// ``` /// /// ## Import @@ -51,7 +49,7 @@ namespace Pulumi.AzureAD /// ``` /// [AzureADResourceType("azuread:index/user:User")] - public partial class User : Pulumi.CustomResource + public partial class User : global::Pulumi.CustomResource { /// /// A freeform field for the user to describe themselves @@ -385,7 +383,7 @@ public static User Get(string name, Input id, UserState? state = null, C } } - public sealed class UserArgs : Pulumi.ResourceArgs + public sealed class UserArgs : global::Pulumi.ResourceArgs { /// /// Whether or not the account should be enabled. @@ -612,9 +610,10 @@ public InputList OtherMails public UserArgs() { } + public static new UserArgs Empty => new UserArgs(); } - public sealed class UserState : Pulumi.ResourceArgs + public sealed class UserState : global::Pulumi.ResourceArgs { /// /// A freeform field for the user to describe themselves @@ -931,5 +930,6 @@ public InputList ProxyAddresses public UserState() { } + public static new UserState Empty => new UserState(); } } diff --git a/sdk/dotnet/Utilities.cs b/sdk/dotnet/Utilities.cs index be380672c..508a794a4 100644 --- a/sdk/dotnet/Utilities.cs +++ b/sdk/dotnet/Utilities.cs @@ -74,7 +74,7 @@ static Utilities() } } - internal sealed class AzureADResourceTypeAttribute : Pulumi.ResourceTypeAttribute + internal sealed class AzureADResourceTypeAttribute : global::Pulumi.ResourceTypeAttribute { public AzureADResourceTypeAttribute(string type) : base(type, Utilities.Version) { diff --git a/sdk/go.mod b/sdk/go.mod index 1f6ab14db..30d57767d 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -5,10 +5,11 @@ go 1.17 require ( github.com/blang/semver v3.5.1+incompatible github.com/pkg/errors v0.9.1 - github.com/pulumi/pulumi/sdk/v3 v3.31.1 + github.com/pulumi/pulumi/sdk/v3 v3.37.2 ) require ( + github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect github.com/cheggaaa/pb v1.0.18 // indirect github.com/djherbis/times v1.2.0 // indirect github.com/emirpasic/gods v1.12.0 // indirect @@ -54,5 +55,6 @@ require ( gopkg.in/src-d/go-git.v4 v4.13.1 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect + lukechampine.com/frand v1.4.2 // indirect sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0 // indirect ) diff --git a/sdk/go.sum b/sdk/go.sum index 110507bc3..f263c5a46 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -1,6 +1,8 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA= +github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da h1:KjTM2ks9d14ZYCvmHS9iAKVt9AyzRSqNU1qabPih5BY= +github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da/go.mod h1:eHEWzANqSiWQsof+nXEI9bUVUyV6F53Fp89EuCh2EAA= github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7 h1:uSoVVbwJiQipAclBbw+8quDsfcvFjOpI5iCf4p/cqCs= github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7/go.mod h1:6zEj6s6u/ghQa61ZWa/C2Aw3RkjiTBOix7dkqa1VLIs= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239 h1:kFOfPq6dUM1hTo4JG6LR5AXSUEsOjtdm0kw0FtQtMJA= @@ -115,8 +117,8 @@ github.com/pkg/term v1.1.0/go.mod h1:E25nymQcrSllhX42Ok8MRm1+hyBdHY0dCeiKZ9jpNGw github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/pulumi/pulumi/sdk/v3 v3.31.1 h1:2DvdxfBj5YBCxnIX5b54mOJtXR39efonWe0LBOHcTZ8= -github.com/pulumi/pulumi/sdk/v3 v3.31.1/go.mod h1:hGo/+AL1L4sPL9Ukd/i5bNFM3WHs3dHcA+GKEW7M3RA= +github.com/pulumi/pulumi/sdk/v3 v3.37.2 h1:tiPIZOWcOw/FmU8WHAOPePYiJm74yFc1DXLxDF1VKKo= +github.com/pulumi/pulumi/sdk/v3 v3.37.2/go.mod h1:e1xuPnh9aKzCesrFf96DEzcybLdRWRMhKeKVBmb2lm0= github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rogpeppe/go-internal v1.8.1 h1:geMPLpDpQOgVyCg5z5GoRwLHepNdb71NXb67XFkP+Eg= @@ -197,6 +199,7 @@ golang.org/x/sys v0.0.0-20190221075227-b4e8571b14e0/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -278,6 +281,8 @@ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +lukechampine.com/frand v1.4.2 h1:RzFIpOvkMXuPMBb9maa4ND4wjBn71E1Jpf8BzJHMaVw= +lukechampine.com/frand v1.4.2/go.mod h1:4S/TM2ZgrKejMcKMbeLjISpJMO+/eZ1zu3vYX9dtj3s= pgregory.net/rapid v0.4.7 h1:MTNRktPuv5FNqOO151TM9mDTa+XHcX6ypYeISDVD14g= pgregory.net/rapid v0.4.7/go.mod h1:UYpPVyjFHzYBGHIxLFoupi8vwk6rXNzRY9OMvVxFIOU= sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0 h1:ucqkfpjg9WzSUubAO62csmucvxl4/JeW3F4I4909XkM= diff --git a/sdk/go/azuread/administrativeUnit.go b/sdk/go/azuread/administrativeUnit.go index f2b1bac64..208224593 100644 --- a/sdk/go/azuread/administrativeUnit.go +++ b/sdk/go/azuread/administrativeUnit.go @@ -26,7 +26,9 @@ import ( // Administrative units can be imported using their object ID, e.g. // // ```sh -// $ pulumi import azuread:index/administrativeUnit:AdministrativeUnit example 00000000-0000-0000-0000-000000000000 +// +// $ pulumi import azuread:index/administrativeUnit:AdministrativeUnit example 00000000-0000-0000-0000-000000000000 +// // ``` type AdministrativeUnit struct { pulumi.CustomResourceState @@ -163,7 +165,7 @@ func (i *AdministrativeUnit) ToAdministrativeUnitOutputWithContext(ctx context.C // AdministrativeUnitArrayInput is an input type that accepts AdministrativeUnitArray and AdministrativeUnitArrayOutput values. // You can construct a concrete instance of `AdministrativeUnitArrayInput` via: // -// AdministrativeUnitArray{ AdministrativeUnitArgs{...} } +// AdministrativeUnitArray{ AdministrativeUnitArgs{...} } type AdministrativeUnitArrayInput interface { pulumi.Input @@ -188,7 +190,7 @@ func (i AdministrativeUnitArray) ToAdministrativeUnitArrayOutputWithContext(ctx // AdministrativeUnitMapInput is an input type that accepts AdministrativeUnitMap and AdministrativeUnitMapOutput values. // You can construct a concrete instance of `AdministrativeUnitMapInput` via: // -// AdministrativeUnitMap{ "key": AdministrativeUnitArgs{...} } +// AdministrativeUnitMap{ "key": AdministrativeUnitArgs{...} } type AdministrativeUnitMapInput interface { pulumi.Input diff --git a/sdk/go/azuread/administrativeUnitMember.go b/sdk/go/azuread/administrativeUnitMember.go index 47ccb42bf..32074a4dc 100644 --- a/sdk/go/azuread/administrativeUnitMember.go +++ b/sdk/go/azuread/administrativeUnitMember.go @@ -28,34 +28,37 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// exampleUser, err := azuread.LookupUser(ctx, &GetUserArgs{ -// UserPrincipalName: pulumi.StringRef("jdoe@hashicorp.com"), -// }, nil) -// if err != nil { -// return err -// } -// exampleAdministrativeUnit, err := azuread.NewAdministrativeUnit(ctx, "exampleAdministrativeUnit", &azuread.AdministrativeUnitArgs{ -// DisplayName: pulumi.String("Example-AU"), -// }) -// if err != nil { -// return err -// } -// _, err = azuread.NewAdministrativeUnitMember(ctx, "exampleAdministrativeUnitMember", &azuread.AdministrativeUnitMemberArgs{ -// AdministrativeUnitObjectId: exampleAdministrativeUnit.ID(), -// MemberObjectId: pulumi.String(exampleUser.Id), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// exampleUser, err := azuread.LookupUser(ctx, &GetUserArgs{ +// UserPrincipalName: pulumi.StringRef("jdoe@hashicorp.com"), +// }, nil) +// if err != nil { +// return err +// } +// exampleAdministrativeUnit, err := azuread.NewAdministrativeUnit(ctx, "exampleAdministrativeUnit", &azuread.AdministrativeUnitArgs{ +// DisplayName: pulumi.String("Example-AU"), +// }) +// if err != nil { +// return err +// } +// _, err = azuread.NewAdministrativeUnitMember(ctx, "exampleAdministrativeUnitMember", &azuread.AdministrativeUnitMemberArgs{ +// AdministrativeUnitObjectId: exampleAdministrativeUnit.ID(), +// MemberObjectId: pulumi.String(exampleUser.Id), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // ## Import @@ -63,10 +66,12 @@ import ( // Administrative unit members can be imported using the object ID of the administrative unit and the object ID of the member, e.g. // // ```sh -// $ pulumi import azuread:index/administrativeUnitMember:AdministrativeUnitMember test 00000000-0000-0000-0000-000000000000/member/11111111-1111-1111-1111-111111111111 +// +// $ pulumi import azuread:index/administrativeUnitMember:AdministrativeUnitMember test 00000000-0000-0000-0000-000000000000/member/11111111-1111-1111-1111-111111111111 +// // ``` // -// -> This ID format is unique to Terraform and is composed of the Administrative Unit Object ID and the target Member Object ID in the format `{AdministrativeUnitObjectID}/member/{MemberObjectID}`. +// -> This ID format is unique to Terraform and is composed of the Administrative Unit Object ID and the target Member Object ID in the format `{AdministrativeUnitObjectID}/member/{MemberObjectID}`. type AdministrativeUnitMember struct { pulumi.CustomResourceState @@ -163,7 +168,7 @@ func (i *AdministrativeUnitMember) ToAdministrativeUnitMemberOutputWithContext(c // AdministrativeUnitMemberArrayInput is an input type that accepts AdministrativeUnitMemberArray and AdministrativeUnitMemberArrayOutput values. // You can construct a concrete instance of `AdministrativeUnitMemberArrayInput` via: // -// AdministrativeUnitMemberArray{ AdministrativeUnitMemberArgs{...} } +// AdministrativeUnitMemberArray{ AdministrativeUnitMemberArgs{...} } type AdministrativeUnitMemberArrayInput interface { pulumi.Input @@ -188,7 +193,7 @@ func (i AdministrativeUnitMemberArray) ToAdministrativeUnitMemberArrayOutputWith // AdministrativeUnitMemberMapInput is an input type that accepts AdministrativeUnitMemberMap and AdministrativeUnitMemberMapOutput values. // You can construct a concrete instance of `AdministrativeUnitMemberMapInput` via: // -// AdministrativeUnitMemberMap{ "key": AdministrativeUnitMemberArgs{...} } +// AdministrativeUnitMemberMap{ "key": AdministrativeUnitMemberArgs{...} } type AdministrativeUnitMemberMapInput interface { pulumi.Input diff --git a/sdk/go/azuread/appRoleAssignment.go b/sdk/go/azuread/appRoleAssignment.go index 12e7d8e11..4bfd7b463 100644 --- a/sdk/go/azuread/appRoleAssignment.go +++ b/sdk/go/azuread/appRoleAssignment.go @@ -29,67 +29,70 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// wellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil) -// if err != nil { -// return err -// } -// msgraph, err := azuread.NewServicePrincipal(ctx, "msgraph", &azuread.ServicePrincipalArgs{ -// ApplicationId: pulumi.String(wellKnown.Result.MicrosoftGraph), -// UseExisting: pulumi.Bool(true), -// }) -// if err != nil { -// return err -// } -// exampleApplication, err := azuread.NewApplication(ctx, "exampleApplication", &azuread.ApplicationArgs{ -// DisplayName: pulumi.String("example"), -// RequiredResourceAccesses: ApplicationRequiredResourceAccessArray{ -// &ApplicationRequiredResourceAccessArgs{ -// ResourceAppId: pulumi.String(wellKnown.Result.MicrosoftGraph), -// ResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{ -// &ApplicationRequiredResourceAccessResourceAccessArgs{ -// Id: msgraph.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) { -// return appRoleIds.User.Read.All, nil -// }).(pulumi.StringOutput), -// Type: pulumi.String("Role"), -// }, -// &ApplicationRequiredResourceAccessResourceAccessArgs{ -// Id: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) { -// return oauth2PermissionScopeIds.User.ReadWrite, nil -// }).(pulumi.StringOutput), -// Type: pulumi.String("Scope"), -// }, -// }, -// }, -// }, -// }) -// if err != nil { -// return err -// } -// exampleServicePrincipal, err := azuread.NewServicePrincipal(ctx, "exampleServicePrincipal", &azuread.ServicePrincipalArgs{ -// ApplicationId: exampleApplication.ApplicationId, -// }) -// if err != nil { -// return err -// } -// _, err = azuread.NewAppRoleAssignment(ctx, "exampleAppRoleAssignment", &azuread.AppRoleAssignmentArgs{ -// AppRoleId: msgraph.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) { -// return appRoleIds.User.Read.All, nil -// }).(pulumi.StringOutput), -// PrincipalObjectId: exampleServicePrincipal.ObjectId, -// ResourceObjectId: msgraph.ObjectId, -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// wellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil) +// if err != nil { +// return err +// } +// msgraph, err := azuread.NewServicePrincipal(ctx, "msgraph", &azuread.ServicePrincipalArgs{ +// ApplicationId: pulumi.String(wellKnown.Result.MicrosoftGraph), +// UseExisting: pulumi.Bool(true), +// }) +// if err != nil { +// return err +// } +// exampleApplication, err := azuread.NewApplication(ctx, "exampleApplication", &azuread.ApplicationArgs{ +// DisplayName: pulumi.String("example"), +// RequiredResourceAccesses: ApplicationRequiredResourceAccessArray{ +// &ApplicationRequiredResourceAccessArgs{ +// ResourceAppId: pulumi.String(wellKnown.Result.MicrosoftGraph), +// ResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{ +// &ApplicationRequiredResourceAccessResourceAccessArgs{ +// Id: msgraph.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) { +// return appRoleIds.User.Read.All, nil +// }).(pulumi.StringOutput), +// Type: pulumi.String("Role"), +// }, +// &ApplicationRequiredResourceAccessResourceAccessArgs{ +// Id: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) { +// return oauth2PermissionScopeIds.User.ReadWrite, nil +// }).(pulumi.StringOutput), +// Type: pulumi.String("Scope"), +// }, +// }, +// }, +// }, +// }) +// if err != nil { +// return err +// } +// exampleServicePrincipal, err := azuread.NewServicePrincipal(ctx, "exampleServicePrincipal", &azuread.ServicePrincipalArgs{ +// ApplicationId: exampleApplication.ApplicationId, +// }) +// if err != nil { +// return err +// } +// _, err = azuread.NewAppRoleAssignment(ctx, "exampleAppRoleAssignment", &azuread.AppRoleAssignmentArgs{ +// AppRoleId: msgraph.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) { +// return appRoleIds.User.Read.All, nil +// }).(pulumi.StringOutput), +// PrincipalObjectId: exampleServicePrincipal.ObjectId, +// ResourceObjectId: msgraph.ObjectId, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // *App role assignment for internal application* @@ -98,74 +101,77 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// internalApplication, err := azuread.NewApplication(ctx, "internalApplication", &azuread.ApplicationArgs{ -// DisplayName: pulumi.String("internal"), -// AppRoles: ApplicationAppRoleArray{ -// &ApplicationAppRoleArgs{ -// AllowedMemberTypes: pulumi.StringArray{ -// pulumi.String("Application"), -// }, -// Description: pulumi.String("Apps can query the database"), -// DisplayName: pulumi.String("Query"), -// Enabled: pulumi.Bool(true), -// Id: pulumi.String("00000000-0000-0000-0000-111111111111"), -// Value: pulumi.String("Query.All"), -// }, -// }, -// }) -// if err != nil { -// return err -// } -// internalServicePrincipal, err := azuread.NewServicePrincipal(ctx, "internalServicePrincipal", &azuread.ServicePrincipalArgs{ -// ApplicationId: internalApplication.ApplicationId, -// }) -// if err != nil { -// return err -// } -// exampleApplication, err := azuread.NewApplication(ctx, "exampleApplication", &azuread.ApplicationArgs{ -// DisplayName: pulumi.String("example"), -// RequiredResourceAccesses: ApplicationRequiredResourceAccessArray{ -// &ApplicationRequiredResourceAccessArgs{ -// ResourceAppId: internalApplication.ApplicationId, -// ResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{ -// &ApplicationRequiredResourceAccessResourceAccessArgs{ -// Id: internalServicePrincipal.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) { -// return appRoleIds.Query.All, nil -// }).(pulumi.StringOutput), -// Type: pulumi.String("Role"), -// }, -// }, -// }, -// }, -// }) -// if err != nil { -// return err -// } -// exampleServicePrincipal, err := azuread.NewServicePrincipal(ctx, "exampleServicePrincipal", &azuread.ServicePrincipalArgs{ -// ApplicationId: exampleApplication.ApplicationId, -// }) -// if err != nil { -// return err -// } -// _, err = azuread.NewAppRoleAssignment(ctx, "exampleAppRoleAssignment", &azuread.AppRoleAssignmentArgs{ -// AppRoleId: internalServicePrincipal.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) { -// return appRoleIds.Query.All, nil -// }).(pulumi.StringOutput), -// PrincipalObjectId: exampleServicePrincipal.ObjectId, -// ResourceObjectId: internalServicePrincipal.ObjectId, -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// internalApplication, err := azuread.NewApplication(ctx, "internalApplication", &azuread.ApplicationArgs{ +// DisplayName: pulumi.String("internal"), +// AppRoles: ApplicationAppRoleArray{ +// &ApplicationAppRoleArgs{ +// AllowedMemberTypes: pulumi.StringArray{ +// pulumi.String("Application"), +// }, +// Description: pulumi.String("Apps can query the database"), +// DisplayName: pulumi.String("Query"), +// Enabled: pulumi.Bool(true), +// Id: pulumi.String("00000000-0000-0000-0000-111111111111"), +// Value: pulumi.String("Query.All"), +// }, +// }, +// }) +// if err != nil { +// return err +// } +// internalServicePrincipal, err := azuread.NewServicePrincipal(ctx, "internalServicePrincipal", &azuread.ServicePrincipalArgs{ +// ApplicationId: internalApplication.ApplicationId, +// }) +// if err != nil { +// return err +// } +// exampleApplication, err := azuread.NewApplication(ctx, "exampleApplication", &azuread.ApplicationArgs{ +// DisplayName: pulumi.String("example"), +// RequiredResourceAccesses: ApplicationRequiredResourceAccessArray{ +// &ApplicationRequiredResourceAccessArgs{ +// ResourceAppId: internalApplication.ApplicationId, +// ResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{ +// &ApplicationRequiredResourceAccessResourceAccessArgs{ +// Id: internalServicePrincipal.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) { +// return appRoleIds.Query.All, nil +// }).(pulumi.StringOutput), +// Type: pulumi.String("Role"), +// }, +// }, +// }, +// }, +// }) +// if err != nil { +// return err +// } +// exampleServicePrincipal, err := azuread.NewServicePrincipal(ctx, "exampleServicePrincipal", &azuread.ServicePrincipalArgs{ +// ApplicationId: exampleApplication.ApplicationId, +// }) +// if err != nil { +// return err +// } +// _, err = azuread.NewAppRoleAssignment(ctx, "exampleAppRoleAssignment", &azuread.AppRoleAssignmentArgs{ +// AppRoleId: internalServicePrincipal.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) { +// return appRoleIds.Query.All, nil +// }).(pulumi.StringOutput), +// PrincipalObjectId: exampleServicePrincipal.ObjectId, +// ResourceObjectId: internalServicePrincipal.ObjectId, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // *Assign a user and group to an internal application* @@ -174,83 +180,86 @@ import ( // package main // // import ( -// "fmt" // -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "fmt" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// exampleDomains, err := azuread.GetDomains(ctx, &GetDomainsArgs{ -// OnlyInitial: pulumi.BoolRef(true), -// }, nil) -// if err != nil { -// return err -// } -// internalApplication, err := azuread.NewApplication(ctx, "internalApplication", &azuread.ApplicationArgs{ -// DisplayName: pulumi.String("internal"), -// AppRoles: ApplicationAppRoleArray{ -// &ApplicationAppRoleArgs{ -// AllowedMemberTypes: pulumi.StringArray{ -// pulumi.String("Application"), -// pulumi.String("User"), -// }, -// Description: pulumi.String("Admins can perform all task actions"), -// DisplayName: pulumi.String("Admin"), -// Enabled: pulumi.Bool(true), -// Id: pulumi.String("00000000-0000-0000-0000-222222222222"), -// Value: pulumi.String("Admin.All"), -// }, -// }, -// }) -// if err != nil { -// return err -// } -// internalServicePrincipal, err := azuread.NewServicePrincipal(ctx, "internalServicePrincipal", &azuread.ServicePrincipalArgs{ -// ApplicationId: internalApplication.ApplicationId, -// }) -// if err != nil { -// return err -// } -// exampleGroup, err := azuread.NewGroup(ctx, "exampleGroup", &azuread.GroupArgs{ -// DisplayName: pulumi.String("example"), -// SecurityEnabled: pulumi.Bool(true), -// }) -// if err != nil { -// return err -// } -// _, err = azuread.NewAppRoleAssignment(ctx, "exampleAppRoleAssignment", &azuread.AppRoleAssignmentArgs{ -// AppRoleId: internalServicePrincipal.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) { -// return appRoleIds.Admin.All, nil -// }).(pulumi.StringOutput), -// PrincipalObjectId: exampleGroup.ObjectId, -// ResourceObjectId: internalServicePrincipal.ObjectId, -// }) -// if err != nil { -// return err -// } -// exampleUser, err := azuread.NewUser(ctx, "exampleUser", &azuread.UserArgs{ -// DisplayName: pulumi.String("D. Duck"), -// Password: pulumi.String("SecretP@sswd99!"), -// UserPrincipalName: pulumi.String(fmt.Sprintf("%v%v", "d.duck@", exampleDomains.Domains[0].DomainName)), -// }) -// if err != nil { -// return err -// } -// _, err = azuread.NewAppRoleAssignment(ctx, "exampleIndex/appRoleAssignmentAppRoleAssignment", &azuread.AppRoleAssignmentArgs{ -// AppRoleId: internalServicePrincipal.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) { -// return appRoleIds.Admin.All, nil -// }).(pulumi.StringOutput), -// PrincipalObjectId: exampleUser.ObjectId, -// ResourceObjectId: internalServicePrincipal.ObjectId, -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// exampleDomains, err := azuread.GetDomains(ctx, &GetDomainsArgs{ +// OnlyInitial: pulumi.BoolRef(true), +// }, nil) +// if err != nil { +// return err +// } +// internalApplication, err := azuread.NewApplication(ctx, "internalApplication", &azuread.ApplicationArgs{ +// DisplayName: pulumi.String("internal"), +// AppRoles: ApplicationAppRoleArray{ +// &ApplicationAppRoleArgs{ +// AllowedMemberTypes: pulumi.StringArray{ +// pulumi.String("Application"), +// pulumi.String("User"), +// }, +// Description: pulumi.String("Admins can perform all task actions"), +// DisplayName: pulumi.String("Admin"), +// Enabled: pulumi.Bool(true), +// Id: pulumi.String("00000000-0000-0000-0000-222222222222"), +// Value: pulumi.String("Admin.All"), +// }, +// }, +// }) +// if err != nil { +// return err +// } +// internalServicePrincipal, err := azuread.NewServicePrincipal(ctx, "internalServicePrincipal", &azuread.ServicePrincipalArgs{ +// ApplicationId: internalApplication.ApplicationId, +// }) +// if err != nil { +// return err +// } +// exampleGroup, err := azuread.NewGroup(ctx, "exampleGroup", &azuread.GroupArgs{ +// DisplayName: pulumi.String("example"), +// SecurityEnabled: pulumi.Bool(true), +// }) +// if err != nil { +// return err +// } +// _, err = azuread.NewAppRoleAssignment(ctx, "exampleAppRoleAssignment", &azuread.AppRoleAssignmentArgs{ +// AppRoleId: internalServicePrincipal.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) { +// return appRoleIds.Admin.All, nil +// }).(pulumi.StringOutput), +// PrincipalObjectId: exampleGroup.ObjectId, +// ResourceObjectId: internalServicePrincipal.ObjectId, +// }) +// if err != nil { +// return err +// } +// exampleUser, err := azuread.NewUser(ctx, "exampleUser", &azuread.UserArgs{ +// DisplayName: pulumi.String("D. Duck"), +// Password: pulumi.String("SecretP@sswd99!"), +// UserPrincipalName: pulumi.String(fmt.Sprintf("d.duck@%v", exampleDomains.Domains[0].DomainName)), +// }) +// if err != nil { +// return err +// } +// _, err = azuread.NewAppRoleAssignment(ctx, "exampleIndex/appRoleAssignmentAppRoleAssignment", &azuread.AppRoleAssignmentArgs{ +// AppRoleId: internalServicePrincipal.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) { +// return appRoleIds.Admin.All, nil +// }).(pulumi.StringOutput), +// PrincipalObjectId: exampleUser.ObjectId, +// ResourceObjectId: internalServicePrincipal.ObjectId, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // ## Import @@ -258,10 +267,12 @@ import ( // App role assignments can be imported using the object ID of the service principal representing the resource and the ID of the app role assignment (note_not_ the ID of the app role), e.g. // // ```sh -// $ pulumi import azuread:index/appRoleAssignment:AppRoleAssignment example 00000000-0000-0000-0000-000000000000/appRoleAssignment/aaBBcDDeFG6h5JKLMN2PQrrssTTUUvWWxxxxxyyyzzz +// +// $ pulumi import azuread:index/appRoleAssignment:AppRoleAssignment example 00000000-0000-0000-0000-000000000000/appRoleAssignment/aaBBcDDeFG6h5JKLMN2PQrrssTTUUvWWxxxxxyyyzzz +// // ``` // -// -> This ID format is unique to Terraform and is composed of the Resource Service Principal Object ID and the ID of the App Role Assignment in the format `{ResourcePrincipalID}/appRoleAssignment/{AppRoleAssignmentID}`. +// -> This ID format is unique to Terraform and is composed of the Resource Service Principal Object ID and the ID of the App Role Assignment in the format `{ResourcePrincipalID}/appRoleAssignment/{AppRoleAssignmentID}`. type AppRoleAssignment struct { pulumi.CustomResourceState @@ -395,7 +406,7 @@ func (i *AppRoleAssignment) ToAppRoleAssignmentOutputWithContext(ctx context.Con // AppRoleAssignmentArrayInput is an input type that accepts AppRoleAssignmentArray and AppRoleAssignmentArrayOutput values. // You can construct a concrete instance of `AppRoleAssignmentArrayInput` via: // -// AppRoleAssignmentArray{ AppRoleAssignmentArgs{...} } +// AppRoleAssignmentArray{ AppRoleAssignmentArgs{...} } type AppRoleAssignmentArrayInput interface { pulumi.Input @@ -420,7 +431,7 @@ func (i AppRoleAssignmentArray) ToAppRoleAssignmentArrayOutputWithContext(ctx co // AppRoleAssignmentMapInput is an input type that accepts AppRoleAssignmentMap and AppRoleAssignmentMapOutput values. // You can construct a concrete instance of `AppRoleAssignmentMapInput` via: // -// AppRoleAssignmentMap{ "key": AppRoleAssignmentArgs{...} } +// AppRoleAssignmentMap{ "key": AppRoleAssignmentArgs{...} } type AppRoleAssignmentMapInput interface { pulumi.Input diff --git a/sdk/go/azuread/application.go b/sdk/go/azuread/application.go index 252d83637..396296a84 100644 --- a/sdk/go/azuread/application.go +++ b/sdk/go/azuread/application.go @@ -19,161 +19,164 @@ import ( // package main // // import ( -// "encoding/base64" -// "io/ioutil" // -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "encoding/base64" +// "io/ioutil" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func filebase64OrPanic(path string) pulumi.StringPtrInput { -// if fileData, err := ioutil.ReadFile(path); err == nil { -// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) -// } else { -// panic(err.Error()) -// } -// } +// func filebase64OrPanic(path string) pulumi.StringPtrInput { +// if fileData, err := ioutil.ReadFile(path); err == nil { +// return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:])) +// } else { +// panic(err.Error()) +// } +// } +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// current, err := azuread.GetClientConfig(ctx, nil, nil) +// if err != nil { +// return err +// } +// _, err = azuread.NewApplication(ctx, "example", &azuread.ApplicationArgs{ +// DisplayName: pulumi.String("example"), +// IdentifierUris: pulumi.StringArray{ +// pulumi.String("api://example-app"), +// }, +// LogoImage: filebase64OrPanic("/path/to/logo.png"), +// Owners: pulumi.StringArray{ +// pulumi.String(current.ObjectId), +// }, +// SignInAudience: pulumi.String("AzureADMultipleOrgs"), +// Api: &ApplicationApiArgs{ +// MappedClaimsEnabled: pulumi.Bool(true), +// RequestedAccessTokenVersion: pulumi.Int(2), +// KnownClientApplications: pulumi.StringArray{ +// pulumi.Any(azuread_application.Known1.Application_id), +// pulumi.Any(azuread_application.Known2.Application_id), +// }, +// Oauth2PermissionScopes: ApplicationApiOauth2PermissionScopeArray{ +// &ApplicationApiOauth2PermissionScopeArgs{ +// AdminConsentDescription: pulumi.String("Allow the application to access example on behalf of the signed-in user."), +// AdminConsentDisplayName: pulumi.String("Access example"), +// Enabled: pulumi.Bool(true), +// Id: pulumi.String("96183846-204b-4b43-82e1-5d2222eb4b9b"), +// Type: pulumi.String("User"), +// UserConsentDescription: pulumi.String("Allow the application to access example on your behalf."), +// UserConsentDisplayName: pulumi.String("Access example"), +// Value: pulumi.String("user_impersonation"), +// }, +// &ApplicationApiOauth2PermissionScopeArgs{ +// AdminConsentDescription: pulumi.String("Administer the example application"), +// AdminConsentDisplayName: pulumi.String("Administer"), +// Enabled: pulumi.Bool(true), +// Id: pulumi.String("be98fa3e-ab5b-4b11-83d9-04ba2b7946bc"), +// Type: pulumi.String("Admin"), +// Value: pulumi.String("administer"), +// }, +// }, +// }, +// AppRoles: ApplicationAppRoleArray{ +// &ApplicationAppRoleArgs{ +// AllowedMemberTypes: pulumi.StringArray{ +// pulumi.String("User"), +// pulumi.String("Application"), +// }, +// Description: pulumi.String("Admins can manage roles and perform all task actions"), +// DisplayName: pulumi.String("Admin"), +// Enabled: pulumi.Bool(true), +// Id: pulumi.String("1b19509b-32b1-4e9f-b71d-4992aa991967"), +// Value: pulumi.String("admin"), +// }, +// &ApplicationAppRoleArgs{ +// AllowedMemberTypes: pulumi.StringArray{ +// pulumi.String("User"), +// }, +// Description: pulumi.String("ReadOnly roles have limited query access"), +// DisplayName: pulumi.String("ReadOnly"), +// Enabled: pulumi.Bool(true), +// Id: pulumi.String("497406e4-012a-4267-bf18-45a1cb148a01"), +// Value: pulumi.String("User"), +// }, +// }, +// FeatureTags: ApplicationFeatureTagArray{ +// &ApplicationFeatureTagArgs{ +// Enterprise: pulumi.Bool(true), +// Gallery: pulumi.Bool(true), +// }, +// }, +// OptionalClaims: &ApplicationOptionalClaimsArgs{ +// AccessTokens: ApplicationOptionalClaimsAccessTokenArray{ +// &ApplicationOptionalClaimsAccessTokenArgs{ +// Name: pulumi.String("myclaim"), +// }, +// &ApplicationOptionalClaimsAccessTokenArgs{ +// Name: pulumi.String("otherclaim"), +// }, +// }, +// IdTokens: ApplicationOptionalClaimsIdTokenArray{ +// &ApplicationOptionalClaimsIdTokenArgs{ +// Name: pulumi.String("userclaim"), +// Source: pulumi.String("user"), +// Essential: pulumi.Bool(true), +// AdditionalProperties: pulumi.StringArray{ +// pulumi.String("emit_as_roles"), +// }, +// }, +// }, +// Saml2Tokens: ApplicationOptionalClaimsSaml2TokenArray{ +// &ApplicationOptionalClaimsSaml2TokenArgs{ +// Name: pulumi.String("samlexample"), +// }, +// }, +// }, +// RequiredResourceAccesses: ApplicationRequiredResourceAccessArray{ +// &ApplicationRequiredResourceAccessArgs{ +// ResourceAppId: pulumi.String("00000003-0000-0000-c000-000000000000"), +// ResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{ +// &ApplicationRequiredResourceAccessResourceAccessArgs{ +// Id: pulumi.String("df021288-bdef-4463-88db-98f22de89214"), +// Type: pulumi.String("Role"), +// }, +// &ApplicationRequiredResourceAccessResourceAccessArgs{ +// Id: pulumi.String("b4e74841-8e56-480b-be8b-910348b18b4c"), +// Type: pulumi.String("Scope"), +// }, +// }, +// }, +// &ApplicationRequiredResourceAccessArgs{ +// ResourceAppId: pulumi.String("c5393580-f805-4401-95e8-94b7a6ef2fc2"), +// ResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{ +// &ApplicationRequiredResourceAccessResourceAccessArgs{ +// Id: pulumi.String("594c1fb6-4f81-4475-ae41-0c394909246c"), +// Type: pulumi.String("Role"), +// }, +// }, +// }, +// }, +// Web: &ApplicationWebArgs{ +// HomepageUrl: pulumi.String("https://app.example.net"), +// LogoutUrl: pulumi.String("https://app.example.net/logout"), +// RedirectUris: pulumi.StringArray{ +// pulumi.String("https://app.example.net/account"), +// }, +// ImplicitGrant: &ApplicationWebImplicitGrantArgs{ +// AccessTokenIssuanceEnabled: pulumi.Bool(true), +// IdTokenIssuanceEnabled: pulumi.Bool(true), +// }, +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// current, err := azuread.GetClientConfig(ctx, nil, nil) -// if err != nil { -// return err -// } -// _, err = azuread.NewApplication(ctx, "example", &azuread.ApplicationArgs{ -// DisplayName: pulumi.String("example"), -// IdentifierUris: pulumi.StringArray{ -// pulumi.String("api://example-app"), -// }, -// LogoImage: filebase64OrPanic("/path/to/logo.png"), -// Owners: pulumi.StringArray{ -// pulumi.String(current.ObjectId), -// }, -// SignInAudience: pulumi.String("AzureADMultipleOrgs"), -// Api: &ApplicationApiArgs{ -// MappedClaimsEnabled: pulumi.Bool(true), -// RequestedAccessTokenVersion: pulumi.Int(2), -// KnownClientApplications: pulumi.StringArray{ -// pulumi.Any(azuread_application.Known1.Application_id), -// pulumi.Any(azuread_application.Known2.Application_id), -// }, -// Oauth2PermissionScopes: ApplicationApiOauth2PermissionScopeArray{ -// &ApplicationApiOauth2PermissionScopeArgs{ -// AdminConsentDescription: pulumi.String("Allow the application to access example on behalf of the signed-in user."), -// AdminConsentDisplayName: pulumi.String("Access example"), -// Enabled: pulumi.Bool(true), -// Id: pulumi.String("96183846-204b-4b43-82e1-5d2222eb4b9b"), -// Type: pulumi.String("User"), -// UserConsentDescription: pulumi.String("Allow the application to access example on your behalf."), -// UserConsentDisplayName: pulumi.String("Access example"), -// Value: pulumi.String("user_impersonation"), -// }, -// &ApplicationApiOauth2PermissionScopeArgs{ -// AdminConsentDescription: pulumi.String("Administer the example application"), -// AdminConsentDisplayName: pulumi.String("Administer"), -// Enabled: pulumi.Bool(true), -// Id: pulumi.String("be98fa3e-ab5b-4b11-83d9-04ba2b7946bc"), -// Type: pulumi.String("Admin"), -// Value: pulumi.String("administer"), -// }, -// }, -// }, -// AppRoles: ApplicationAppRoleArray{ -// &ApplicationAppRoleArgs{ -// AllowedMemberTypes: pulumi.StringArray{ -// pulumi.String("User"), -// pulumi.String("Application"), -// }, -// Description: pulumi.String("Admins can manage roles and perform all task actions"), -// DisplayName: pulumi.String("Admin"), -// Enabled: pulumi.Bool(true), -// Id: pulumi.String("1b19509b-32b1-4e9f-b71d-4992aa991967"), -// Value: pulumi.String("admin"), -// }, -// &ApplicationAppRoleArgs{ -// AllowedMemberTypes: pulumi.StringArray{ -// pulumi.String("User"), -// }, -// Description: pulumi.String("ReadOnly roles have limited query access"), -// DisplayName: pulumi.String("ReadOnly"), -// Enabled: pulumi.Bool(true), -// Id: pulumi.String("497406e4-012a-4267-bf18-45a1cb148a01"), -// Value: pulumi.String("User"), -// }, -// }, -// FeatureTags: ApplicationFeatureTagArray{ -// &ApplicationFeatureTagArgs{ -// Enterprise: pulumi.Bool(true), -// Gallery: pulumi.Bool(true), -// }, -// }, -// OptionalClaims: &ApplicationOptionalClaimsArgs{ -// AccessTokens: ApplicationOptionalClaimsAccessTokenArray{ -// &ApplicationOptionalClaimsAccessTokenArgs{ -// Name: pulumi.String("myclaim"), -// }, -// &ApplicationOptionalClaimsAccessTokenArgs{ -// Name: pulumi.String("otherclaim"), -// }, -// }, -// IdTokens: ApplicationOptionalClaimsIdTokenArray{ -// &ApplicationOptionalClaimsIdTokenArgs{ -// Name: pulumi.String("userclaim"), -// Source: pulumi.String("user"), -// Essential: pulumi.Bool(true), -// AdditionalProperties: pulumi.StringArray{ -// pulumi.String("emit_as_roles"), -// }, -// }, -// }, -// Saml2Tokens: ApplicationOptionalClaimsSaml2TokenArray{ -// &ApplicationOptionalClaimsSaml2TokenArgs{ -// Name: pulumi.String("samlexample"), -// }, -// }, -// }, -// RequiredResourceAccesses: ApplicationRequiredResourceAccessArray{ -// &ApplicationRequiredResourceAccessArgs{ -// ResourceAppId: pulumi.String("00000003-0000-0000-c000-000000000000"), -// ResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{ -// &ApplicationRequiredResourceAccessResourceAccessArgs{ -// Id: pulumi.String("df021288-bdef-4463-88db-98f22de89214"), -// Type: pulumi.String("Role"), -// }, -// &ApplicationRequiredResourceAccessResourceAccessArgs{ -// Id: pulumi.String("b4e74841-8e56-480b-be8b-910348b18b4c"), -// Type: pulumi.String("Scope"), -// }, -// }, -// }, -// &ApplicationRequiredResourceAccessArgs{ -// ResourceAppId: pulumi.String("c5393580-f805-4401-95e8-94b7a6ef2fc2"), -// ResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{ -// &ApplicationRequiredResourceAccessResourceAccessArgs{ -// Id: pulumi.String("594c1fb6-4f81-4475-ae41-0c394909246c"), -// Type: pulumi.String("Role"), -// }, -// }, -// }, -// }, -// Web: &ApplicationWebArgs{ -// HomepageUrl: pulumi.String("https://app.example.net"), -// LogoutUrl: pulumi.String("https://app.example.net/logout"), -// RedirectUris: pulumi.StringArray{ -// pulumi.String("https://app.example.net/account"), -// }, -// ImplicitGrant: &ApplicationWebImplicitGrantArgs{ -// AccessTokenIssuanceEnabled: pulumi.Bool(true), -// IdTokenIssuanceEnabled: pulumi.Bool(true), -// }, -// }, -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } // ``` // // *Create application from a gallery template* @@ -182,35 +185,38 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// exampleApplicationTemplate, err := azuread.GetApplicationTemplate(ctx, &GetApplicationTemplateArgs{ -// DisplayName: pulumi.StringRef("Marketo"), -// }, nil) -// if err != nil { -// return err -// } -// exampleApplication, err := azuread.NewApplication(ctx, "exampleApplication", &azuread.ApplicationArgs{ -// DisplayName: pulumi.String("example"), -// TemplateId: pulumi.String(exampleApplicationTemplate.TemplateId), -// }) -// if err != nil { -// return err -// } -// _, err = azuread.NewServicePrincipal(ctx, "exampleServicePrincipal", &azuread.ServicePrincipalArgs{ -// ApplicationId: exampleApplication.ApplicationId, -// UseExisting: pulumi.Bool(true), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// exampleApplicationTemplate, err := azuread.GetApplicationTemplate(ctx, &GetApplicationTemplateArgs{ +// DisplayName: pulumi.StringRef("Marketo"), +// }, nil) +// if err != nil { +// return err +// } +// exampleApplication, err := azuread.NewApplication(ctx, "exampleApplication", &azuread.ApplicationArgs{ +// DisplayName: pulumi.String("example"), +// TemplateId: pulumi.String(exampleApplicationTemplate.TemplateId), +// }) +// if err != nil { +// return err +// } +// _, err = azuread.NewServicePrincipal(ctx, "exampleServicePrincipal", &azuread.ServicePrincipalArgs{ +// ApplicationId: exampleApplication.ApplicationId, +// UseExisting: pulumi.Bool(true), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // ## Import @@ -218,7 +224,9 @@ import ( // Applications can be imported using their object ID, e.g. // // ```sh -// $ pulumi import azuread:index/application:Application test 00000000-0000-0000-0000-000000000000 +// +// $ pulumi import azuread:index/application:Application test 00000000-0000-0000-0000-000000000000 +// // ``` type Application struct { pulumi.CustomResourceState @@ -581,7 +589,7 @@ func (i *Application) ToApplicationOutputWithContext(ctx context.Context) Applic // ApplicationArrayInput is an input type that accepts ApplicationArray and ApplicationArrayOutput values. // You can construct a concrete instance of `ApplicationArrayInput` via: // -// ApplicationArray{ ApplicationArgs{...} } +// ApplicationArray{ ApplicationArgs{...} } type ApplicationArrayInput interface { pulumi.Input @@ -606,7 +614,7 @@ func (i ApplicationArray) ToApplicationArrayOutputWithContext(ctx context.Contex // ApplicationMapInput is an input type that accepts ApplicationMap and ApplicationMapOutput values. // You can construct a concrete instance of `ApplicationMapInput` via: // -// ApplicationMap{ "key": ApplicationArgs{...} } +// ApplicationMap{ "key": ApplicationArgs{...} } type ApplicationMapInput interface { pulumi.Input diff --git a/sdk/go/azuread/applicationCertificate.go b/sdk/go/azuread/applicationCertificate.go index b717b9f1d..b3f32c17e 100644 --- a/sdk/go/azuread/applicationCertificate.go +++ b/sdk/go/azuread/applicationCertificate.go @@ -16,10 +16,12 @@ import ( // Certificates can be imported using the object ID of the associated application and the key ID of the certificate credential, e.g. // // ```sh -// $ pulumi import azuread:index/applicationCertificate:ApplicationCertificate test 00000000-0000-0000-0000-000000000000/certificate/11111111-1111-1111-1111-111111111111 +// +// $ pulumi import azuread:index/applicationCertificate:ApplicationCertificate test 00000000-0000-0000-0000-000000000000/certificate/11111111-1111-1111-1111-111111111111 +// // ``` // -// -> This ID format is unique to Terraform and is composed of the application's object ID, the string "certificate" and the certificate's key ID in the format `{ObjectId}/certificate/{CertificateKeyId}`. +// -> This ID format is unique to Terraform and is composed of the application's object ID, the string "certificate" and the certificate's key ID in the format `{ObjectId}/certificate/{CertificateKeyId}`. type ApplicationCertificate struct { pulumi.CustomResourceState @@ -182,7 +184,7 @@ func (i *ApplicationCertificate) ToApplicationCertificateOutputWithContext(ctx c // ApplicationCertificateArrayInput is an input type that accepts ApplicationCertificateArray and ApplicationCertificateArrayOutput values. // You can construct a concrete instance of `ApplicationCertificateArrayInput` via: // -// ApplicationCertificateArray{ ApplicationCertificateArgs{...} } +// ApplicationCertificateArray{ ApplicationCertificateArgs{...} } type ApplicationCertificateArrayInput interface { pulumi.Input @@ -207,7 +209,7 @@ func (i ApplicationCertificateArray) ToApplicationCertificateArrayOutputWithCont // ApplicationCertificateMapInput is an input type that accepts ApplicationCertificateMap and ApplicationCertificateMapOutput values. // You can construct a concrete instance of `ApplicationCertificateMapInput` via: // -// ApplicationCertificateMap{ "key": ApplicationCertificateArgs{...} } +// ApplicationCertificateMap{ "key": ApplicationCertificateArgs{...} } type ApplicationCertificateMapInput interface { pulumi.Input diff --git a/sdk/go/azuread/applicationFederatedIdentityCredential.go b/sdk/go/azuread/applicationFederatedIdentityCredential.go index ddb3b8cc7..d1186e9c3 100644 --- a/sdk/go/azuread/applicationFederatedIdentityCredential.go +++ b/sdk/go/azuread/applicationFederatedIdentityCredential.go @@ -17,34 +17,37 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// exampleApplication, err := azuread.NewApplication(ctx, "exampleApplication", &azuread.ApplicationArgs{ -// DisplayName: pulumi.String("example"), -// }) -// if err != nil { -// return err -// } -// _, err = azuread.NewApplicationFederatedIdentityCredential(ctx, "exampleApplicationFederatedIdentityCredential", &azuread.ApplicationFederatedIdentityCredentialArgs{ -// ApplicationObjectId: exampleApplication.ObjectId, -// DisplayName: pulumi.String("my-repo-deploy"), -// Description: pulumi.String("Deployments for my-repo"), -// Audiences: pulumi.StringArray{ -// pulumi.String("api://AzureADTokenExchange"), -// }, -// Issuer: pulumi.String("https://token.actions.githubusercontent.com"), -// Subject: pulumi.String("repo:my-organization/my-repo:environment:prod"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// exampleApplication, err := azuread.NewApplication(ctx, "exampleApplication", &azuread.ApplicationArgs{ +// DisplayName: pulumi.String("example"), +// }) +// if err != nil { +// return err +// } +// _, err = azuread.NewApplicationFederatedIdentityCredential(ctx, "exampleApplicationFederatedIdentityCredential", &azuread.ApplicationFederatedIdentityCredentialArgs{ +// ApplicationObjectId: exampleApplication.ObjectId, +// DisplayName: pulumi.String("my-repo-deploy"), +// Description: pulumi.String("Deployments for my-repo"), +// Audiences: pulumi.StringArray{ +// pulumi.String("api://AzureADTokenExchange"), +// }, +// Issuer: pulumi.String("https://token.actions.githubusercontent.com"), +// Subject: pulumi.String("repo:my-organization/my-repo:environment:prod"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // ## Import @@ -52,10 +55,12 @@ import ( // Federated Identity Credentials can be imported using the object ID of the associated application and the ID of the federated identity credential, e.g. // // ```sh -// $ pulumi import azuread:index/applicationFederatedIdentityCredential:ApplicationFederatedIdentityCredential test 00000000-0000-0000-0000-000000000000/federatedIdentityCredential/11111111-1111-1111-1111-111111111111 +// +// $ pulumi import azuread:index/applicationFederatedIdentityCredential:ApplicationFederatedIdentityCredential test 00000000-0000-0000-0000-000000000000/federatedIdentityCredential/11111111-1111-1111-1111-111111111111 +// // ``` // -// -> This ID format is unique to Terraform and is composed of the application's object ID, the string "federatedIdentityCredential" and the credential ID in the format `{ObjectId}/federatedIdentityCredential/{CredentialId}`. +// -> This ID format is unique to Terraform and is composed of the application's object ID, the string "federatedIdentityCredential" and the credential ID in the format `{ObjectId}/federatedIdentityCredential/{CredentialId}`. type ApplicationFederatedIdentityCredential struct { pulumi.CustomResourceState @@ -213,7 +218,7 @@ func (i *ApplicationFederatedIdentityCredential) ToApplicationFederatedIdentityC // ApplicationFederatedIdentityCredentialArrayInput is an input type that accepts ApplicationFederatedIdentityCredentialArray and ApplicationFederatedIdentityCredentialArrayOutput values. // You can construct a concrete instance of `ApplicationFederatedIdentityCredentialArrayInput` via: // -// ApplicationFederatedIdentityCredentialArray{ ApplicationFederatedIdentityCredentialArgs{...} } +// ApplicationFederatedIdentityCredentialArray{ ApplicationFederatedIdentityCredentialArgs{...} } type ApplicationFederatedIdentityCredentialArrayInput interface { pulumi.Input @@ -238,7 +243,7 @@ func (i ApplicationFederatedIdentityCredentialArray) ToApplicationFederatedIdent // ApplicationFederatedIdentityCredentialMapInput is an input type that accepts ApplicationFederatedIdentityCredentialMap and ApplicationFederatedIdentityCredentialMapOutput values. // You can construct a concrete instance of `ApplicationFederatedIdentityCredentialMapInput` via: // -// ApplicationFederatedIdentityCredentialMap{ "key": ApplicationFederatedIdentityCredentialArgs{...} } +// ApplicationFederatedIdentityCredentialMap{ "key": ApplicationFederatedIdentityCredentialArgs{...} } type ApplicationFederatedIdentityCredentialMapInput interface { pulumi.Input diff --git a/sdk/go/azuread/applicationPassword.go b/sdk/go/azuread/applicationPassword.go index 79895a495..60c66474f 100644 --- a/sdk/go/azuread/applicationPassword.go +++ b/sdk/go/azuread/applicationPassword.go @@ -19,7 +19,7 @@ type ApplicationPassword struct { // The object ID of the application for which this password should be created. Changing this field forces a new resource to be created. ApplicationObjectId pulumi.StringOutput `pulumi:"applicationObjectId"` - // A display name for the password. + // A display name for the password. Changing this field forces a new resource to be created. DisplayName pulumi.StringOutput `pulumi:"displayName"` // The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created. EndDate pulumi.StringOutput `pulumi:"endDate"` @@ -69,7 +69,7 @@ func GetApplicationPassword(ctx *pulumi.Context, type applicationPasswordState struct { // The object ID of the application for which this password should be created. Changing this field forces a new resource to be created. ApplicationObjectId *string `pulumi:"applicationObjectId"` - // A display name for the password. + // A display name for the password. Changing this field forces a new resource to be created. DisplayName *string `pulumi:"displayName"` // The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created. EndDate *string `pulumi:"endDate"` @@ -88,7 +88,7 @@ type applicationPasswordState struct { type ApplicationPasswordState struct { // The object ID of the application for which this password should be created. Changing this field forces a new resource to be created. ApplicationObjectId pulumi.StringPtrInput - // A display name for the password. + // A display name for the password. Changing this field forces a new resource to be created. DisplayName pulumi.StringPtrInput // The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created. EndDate pulumi.StringPtrInput @@ -111,7 +111,7 @@ func (ApplicationPasswordState) ElementType() reflect.Type { type applicationPasswordArgs struct { // The object ID of the application for which this password should be created. Changing this field forces a new resource to be created. ApplicationObjectId string `pulumi:"applicationObjectId"` - // A display name for the password. + // A display name for the password. Changing this field forces a new resource to be created. DisplayName *string `pulumi:"displayName"` // The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created. EndDate *string `pulumi:"endDate"` @@ -127,7 +127,7 @@ type applicationPasswordArgs struct { type ApplicationPasswordArgs struct { // The object ID of the application for which this password should be created. Changing this field forces a new resource to be created. ApplicationObjectId pulumi.StringInput - // A display name for the password. + // A display name for the password. Changing this field forces a new resource to be created. DisplayName pulumi.StringPtrInput // The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created. EndDate pulumi.StringPtrInput @@ -165,7 +165,7 @@ func (i *ApplicationPassword) ToApplicationPasswordOutputWithContext(ctx context // ApplicationPasswordArrayInput is an input type that accepts ApplicationPasswordArray and ApplicationPasswordArrayOutput values. // You can construct a concrete instance of `ApplicationPasswordArrayInput` via: // -// ApplicationPasswordArray{ ApplicationPasswordArgs{...} } +// ApplicationPasswordArray{ ApplicationPasswordArgs{...} } type ApplicationPasswordArrayInput interface { pulumi.Input @@ -190,7 +190,7 @@ func (i ApplicationPasswordArray) ToApplicationPasswordArrayOutputWithContext(ct // ApplicationPasswordMapInput is an input type that accepts ApplicationPasswordMap and ApplicationPasswordMapOutput values. // You can construct a concrete instance of `ApplicationPasswordMapInput` via: // -// ApplicationPasswordMap{ "key": ApplicationPasswordArgs{...} } +// ApplicationPasswordMap{ "key": ApplicationPasswordArgs{...} } type ApplicationPasswordMapInput interface { pulumi.Input @@ -231,7 +231,7 @@ func (o ApplicationPasswordOutput) ApplicationObjectId() pulumi.StringOutput { return o.ApplyT(func(v *ApplicationPassword) pulumi.StringOutput { return v.ApplicationObjectId }).(pulumi.StringOutput) } -// A display name for the password. +// A display name for the password. Changing this field forces a new resource to be created. func (o ApplicationPasswordOutput) DisplayName() pulumi.StringOutput { return o.ApplyT(func(v *ApplicationPassword) pulumi.StringOutput { return v.DisplayName }).(pulumi.StringOutput) } diff --git a/sdk/go/azuread/applicationPreAuthorized.go b/sdk/go/azuread/applicationPreAuthorized.go index 8553adad6..4a1e199e0 100644 --- a/sdk/go/azuread/applicationPreAuthorized.go +++ b/sdk/go/azuread/applicationPreAuthorized.go @@ -17,60 +17,63 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// authorized, err := azuread.NewApplication(ctx, "authorized", &azuread.ApplicationArgs{ -// DisplayName: pulumi.String("example-authorized-app"), -// }) -// if err != nil { -// return err -// } -// authorizer, err := azuread.NewApplication(ctx, "authorizer", &azuread.ApplicationArgs{ -// DisplayName: pulumi.String("example-authorizing-app"), -// Api: &ApplicationApiArgs{ -// Oauth2PermissionScopes: ApplicationApiOauth2PermissionScopeArray{ -// &ApplicationApiOauth2PermissionScopeArgs{ -// AdminConsentDescription: pulumi.String("Administer the application"), -// AdminConsentDisplayName: pulumi.String("Administer"), -// Enabled: pulumi.Bool(true), -// Id: pulumi.String("ced9c4c3-c273-4f0f-ac71-a20377b90f9c"), -// Type: pulumi.String("Admin"), -// Value: pulumi.String("administer"), -// }, -// &ApplicationApiOauth2PermissionScopeArgs{ -// AdminConsentDescription: pulumi.String("Access the application"), -// AdminConsentDisplayName: pulumi.String("Access"), -// Enabled: pulumi.Bool(true), -// Id: pulumi.String("2d5e07ca-664d-4d9b-ad61-ec07fd215213"), -// Type: pulumi.String("User"), -// UserConsentDescription: pulumi.String("Access the application"), -// UserConsentDisplayName: pulumi.String("Access"), -// Value: pulumi.String("user_impersonation"), -// }, -// }, -// }, -// }) -// if err != nil { -// return err -// } -// _, err = azuread.NewApplicationPreAuthorized(ctx, "example", &azuread.ApplicationPreAuthorizedArgs{ -// ApplicationObjectId: authorizer.ObjectId, -// AuthorizedAppId: authorized.ApplicationId, -// PermissionIds: pulumi.StringArray{ -// pulumi.String("ced9c4c3-c273-4f0f-ac71-a20377b90f9c"), -// pulumi.String("2d5e07ca-664d-4d9b-ad61-ec07fd215213"), -// }, -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// authorized, err := azuread.NewApplication(ctx, "authorized", &azuread.ApplicationArgs{ +// DisplayName: pulumi.String("example-authorized-app"), +// }) +// if err != nil { +// return err +// } +// authorizer, err := azuread.NewApplication(ctx, "authorizer", &azuread.ApplicationArgs{ +// DisplayName: pulumi.String("example-authorizing-app"), +// Api: &ApplicationApiArgs{ +// Oauth2PermissionScopes: ApplicationApiOauth2PermissionScopeArray{ +// &ApplicationApiOauth2PermissionScopeArgs{ +// AdminConsentDescription: pulumi.String("Administer the application"), +// AdminConsentDisplayName: pulumi.String("Administer"), +// Enabled: pulumi.Bool(true), +// Id: pulumi.String("ced9c4c3-c273-4f0f-ac71-a20377b90f9c"), +// Type: pulumi.String("Admin"), +// Value: pulumi.String("administer"), +// }, +// &ApplicationApiOauth2PermissionScopeArgs{ +// AdminConsentDescription: pulumi.String("Access the application"), +// AdminConsentDisplayName: pulumi.String("Access"), +// Enabled: pulumi.Bool(true), +// Id: pulumi.String("2d5e07ca-664d-4d9b-ad61-ec07fd215213"), +// Type: pulumi.String("User"), +// UserConsentDescription: pulumi.String("Access the application"), +// UserConsentDisplayName: pulumi.String("Access"), +// Value: pulumi.String("user_impersonation"), +// }, +// }, +// }, +// }) +// if err != nil { +// return err +// } +// _, err = azuread.NewApplicationPreAuthorized(ctx, "example", &azuread.ApplicationPreAuthorizedArgs{ +// ApplicationObjectId: authorizer.ObjectId, +// AuthorizedAppId: authorized.ApplicationId, +// PermissionIds: pulumi.StringArray{ +// pulumi.String("ced9c4c3-c273-4f0f-ac71-a20377b90f9c"), +// pulumi.String("2d5e07ca-664d-4d9b-ad61-ec07fd215213"), +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // ## Import @@ -78,10 +81,12 @@ import ( // Pre-authorized applications can be imported using the object ID of the authorizing application and the application ID of the application being authorized, e.g. // // ```sh -// $ pulumi import azuread:index/applicationPreAuthorized:ApplicationPreAuthorized example 00000000-0000-0000-0000-000000000000/preAuthorizedApplication/11111111-1111-1111-1111-111111111111 +// +// $ pulumi import azuread:index/applicationPreAuthorized:ApplicationPreAuthorized example 00000000-0000-0000-0000-000000000000/preAuthorizedApplication/11111111-1111-1111-1111-111111111111 +// // ``` // -// -> This ID format is unique to Terraform and is composed of the authorizing application's object ID, the string "preAuthorizedApplication" and the authorized application's application ID (client ID) in the format `{ObjectId}/preAuthorizedApplication/{ApplicationId}`. +// -> This ID format is unique to Terraform and is composed of the authorizing application's object ID, the string "preAuthorizedApplication" and the authorized application's application ID (client ID) in the format `{ObjectId}/preAuthorizedApplication/{ApplicationId}`. type ApplicationPreAuthorized struct { pulumi.CustomResourceState @@ -197,7 +202,7 @@ func (i *ApplicationPreAuthorized) ToApplicationPreAuthorizedOutputWithContext(c // ApplicationPreAuthorizedArrayInput is an input type that accepts ApplicationPreAuthorizedArray and ApplicationPreAuthorizedArrayOutput values. // You can construct a concrete instance of `ApplicationPreAuthorizedArrayInput` via: // -// ApplicationPreAuthorizedArray{ ApplicationPreAuthorizedArgs{...} } +// ApplicationPreAuthorizedArray{ ApplicationPreAuthorizedArgs{...} } type ApplicationPreAuthorizedArrayInput interface { pulumi.Input @@ -222,7 +227,7 @@ func (i ApplicationPreAuthorizedArray) ToApplicationPreAuthorizedArrayOutputWith // ApplicationPreAuthorizedMapInput is an input type that accepts ApplicationPreAuthorizedMap and ApplicationPreAuthorizedMapOutput values. // You can construct a concrete instance of `ApplicationPreAuthorizedMapInput` via: // -// ApplicationPreAuthorizedMap{ "key": ApplicationPreAuthorizedArgs{...} } +// ApplicationPreAuthorizedMap{ "key": ApplicationPreAuthorizedArgs{...} } type ApplicationPreAuthorizedMapInput interface { pulumi.Input diff --git a/sdk/go/azuread/claimsMappingPolicy.go b/sdk/go/azuread/claimsMappingPolicy.go index 289084ba0..ad3969e7a 100644 --- a/sdk/go/azuread/claimsMappingPolicy.go +++ b/sdk/go/azuread/claimsMappingPolicy.go @@ -27,50 +27,53 @@ import ( // package main // // import ( -// "encoding/json" // -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "encoding/json" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// tmpJSON0, err := json.Marshal(map[string]interface{}{ -// "ClaimsMappingPolicy": map[string]interface{}{ -// "ClaimsSchema": []map[string]interface{}{ -// map[string]interface{}{ -// "ID": "employeeid", -// "JwtClaimType": "name", -// "SamlClaimType": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name", -// "Source": "user", -// }, -// map[string]interface{}{ -// "ID": "tenantcountry", -// "JwtClaimType": "country", -// "SamlClaimType": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country", -// "Source": "company", -// }, -// }, -// "IncludeBasicClaimSet": "true", -// "Version": 1, -// }, -// }) -// if err != nil { -// return err -// } -// json0 := string(tmpJSON0) -// _, err := azuread.NewClaimsMappingPolicy(ctx, "myPolicy", &azuread.ClaimsMappingPolicyArgs{ -// Definitions: pulumi.StringArray{ -// pulumi.String(json0), -// }, -// DisplayName: pulumi.String("My Policy"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// tmpJSON0, err := json.Marshal(map[string]interface{}{ +// "ClaimsMappingPolicy": map[string]interface{}{ +// "ClaimsSchema": []map[string]interface{}{ +// map[string]interface{}{ +// "ID": "employeeid", +// "JwtClaimType": "name", +// "SamlClaimType": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name", +// "Source": "user", +// }, +// map[string]interface{}{ +// "ID": "tenantcountry", +// "JwtClaimType": "country", +// "SamlClaimType": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country", +// "Source": "company", +// }, +// }, +// "IncludeBasicClaimSet": "true", +// "Version": 1, +// }, +// }) +// if err != nil { +// return err +// } +// json0 := string(tmpJSON0) +// _, err = azuread.NewClaimsMappingPolicy(ctx, "myPolicy", &azuread.ClaimsMappingPolicyArgs{ +// Definitions: pulumi.StringArray{ +// pulumi.String(json0), +// }, +// DisplayName: pulumi.String("My Policy"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // ## Import @@ -78,7 +81,9 @@ import ( // Claims Mapping Policy can be imported using the `id`, e.g. // // ```sh -// $ pulumi import azuread:index/claimsMappingPolicy:ClaimsMappingPolicy my_policy 00000000-0000-0000-0000-000000000000 +// +// $ pulumi import azuread:index/claimsMappingPolicy:ClaimsMappingPolicy my_policy 00000000-0000-0000-0000-000000000000 +// // ``` type ClaimsMappingPolicy struct { pulumi.CustomResourceState @@ -182,7 +187,7 @@ func (i *ClaimsMappingPolicy) ToClaimsMappingPolicyOutputWithContext(ctx context // ClaimsMappingPolicyArrayInput is an input type that accepts ClaimsMappingPolicyArray and ClaimsMappingPolicyArrayOutput values. // You can construct a concrete instance of `ClaimsMappingPolicyArrayInput` via: // -// ClaimsMappingPolicyArray{ ClaimsMappingPolicyArgs{...} } +// ClaimsMappingPolicyArray{ ClaimsMappingPolicyArgs{...} } type ClaimsMappingPolicyArrayInput interface { pulumi.Input @@ -207,7 +212,7 @@ func (i ClaimsMappingPolicyArray) ToClaimsMappingPolicyArrayOutputWithContext(ct // ClaimsMappingPolicyMapInput is an input type that accepts ClaimsMappingPolicyMap and ClaimsMappingPolicyMapOutput values. // You can construct a concrete instance of `ClaimsMappingPolicyMapInput` via: // -// ClaimsMappingPolicyMap{ "key": ClaimsMappingPolicyArgs{...} } +// ClaimsMappingPolicyMap{ "key": ClaimsMappingPolicyArgs{...} } type ClaimsMappingPolicyMapInput interface { pulumi.Input diff --git a/sdk/go/azuread/conditionalAccessPolicy.go b/sdk/go/azuread/conditionalAccessPolicy.go index 176af57d1..d422a0f24 100644 --- a/sdk/go/azuread/conditionalAccessPolicy.go +++ b/sdk/go/azuread/conditionalAccessPolicy.go @@ -27,81 +27,84 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.NewConditionalAccessPolicy(ctx, "example", &azuread.ConditionalAccessPolicyArgs{ -// Conditions: &ConditionalAccessPolicyConditionsArgs{ -// Applications: &ConditionalAccessPolicyConditionsApplicationsArgs{ -// ExcludedApplications: pulumi.StringArray{}, -// IncludedApplications: pulumi.StringArray{ -// pulumi.String("All"), -// }, -// }, -// ClientAppTypes: pulumi.StringArray{ -// pulumi.String("all"), -// }, -// Devices: &ConditionalAccessPolicyConditionsDevicesArgs{ -// Filter: &ConditionalAccessPolicyConditionsDevicesFilterArgs{ -// Mode: pulumi.String("exclude"), -// Rule: pulumi.String("device.operatingSystem eq \"Doors\""), -// }, -// }, -// Locations: &ConditionalAccessPolicyConditionsLocationsArgs{ -// ExcludedLocations: pulumi.StringArray{ -// pulumi.String("AllTrusted"), -// }, -// IncludedLocations: pulumi.StringArray{ -// pulumi.String("All"), -// }, -// }, -// Platforms: &ConditionalAccessPolicyConditionsPlatformsArgs{ -// ExcludedPlatforms: pulumi.StringArray{ -// pulumi.String("iOS"), -// }, -// IncludedPlatforms: pulumi.StringArray{ -// pulumi.String("android"), -// }, -// }, -// SignInRiskLevels: pulumi.StringArray{ -// pulumi.String("medium"), -// }, -// UserRiskLevels: pulumi.StringArray{ -// pulumi.String("medium"), -// }, -// Users: &ConditionalAccessPolicyConditionsUsersArgs{ -// ExcludedUsers: pulumi.StringArray{ -// pulumi.String("GuestsOrExternalUsers"), -// }, -// IncludedUsers: pulumi.StringArray{ -// pulumi.String("All"), -// }, -// }, -// }, -// DisplayName: pulumi.String("example policy"), -// GrantControls: &ConditionalAccessPolicyGrantControlsArgs{ -// BuiltInControls: pulumi.StringArray{ -// pulumi.String("mfa"), -// }, -// Operator: pulumi.String("OR"), -// }, -// SessionControls: &ConditionalAccessPolicySessionControlsArgs{ -// ApplicationEnforcedRestrictionsEnabled: pulumi.Bool(true), -// CloudAppSecurityPolicy: pulumi.String("monitorOnly"), -// SignInFrequency: pulumi.Int(10), -// SignInFrequencyPeriod: pulumi.String("hours"), -// }, -// State: pulumi.String("disabled"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.NewConditionalAccessPolicy(ctx, "example", &azuread.ConditionalAccessPolicyArgs{ +// Conditions: &ConditionalAccessPolicyConditionsArgs{ +// Applications: &ConditionalAccessPolicyConditionsApplicationsArgs{ +// ExcludedApplications: pulumi.StringArray{}, +// IncludedApplications: pulumi.StringArray{ +// pulumi.String("All"), +// }, +// }, +// ClientAppTypes: pulumi.StringArray{ +// pulumi.String("all"), +// }, +// Devices: &ConditionalAccessPolicyConditionsDevicesArgs{ +// Filter: &ConditionalAccessPolicyConditionsDevicesFilterArgs{ +// Mode: pulumi.String("exclude"), +// Rule: pulumi.String("device.operatingSystem eq \"Doors\""), +// }, +// }, +// Locations: &ConditionalAccessPolicyConditionsLocationsArgs{ +// ExcludedLocations: pulumi.StringArray{ +// pulumi.String("AllTrusted"), +// }, +// IncludedLocations: pulumi.StringArray{ +// pulumi.String("All"), +// }, +// }, +// Platforms: &ConditionalAccessPolicyConditionsPlatformsArgs{ +// ExcludedPlatforms: pulumi.StringArray{ +// pulumi.String("iOS"), +// }, +// IncludedPlatforms: pulumi.StringArray{ +// pulumi.String("android"), +// }, +// }, +// SignInRiskLevels: pulumi.StringArray{ +// pulumi.String("medium"), +// }, +// UserRiskLevels: pulumi.StringArray{ +// pulumi.String("medium"), +// }, +// Users: &ConditionalAccessPolicyConditionsUsersArgs{ +// ExcludedUsers: pulumi.StringArray{ +// pulumi.String("GuestsOrExternalUsers"), +// }, +// IncludedUsers: pulumi.StringArray{ +// pulumi.String("All"), +// }, +// }, +// }, +// DisplayName: pulumi.String("example policy"), +// GrantControls: &ConditionalAccessPolicyGrantControlsArgs{ +// BuiltInControls: pulumi.StringArray{ +// pulumi.String("mfa"), +// }, +// Operator: pulumi.String("OR"), +// }, +// SessionControls: &ConditionalAccessPolicySessionControlsArgs{ +// ApplicationEnforcedRestrictionsEnabled: pulumi.Bool(true), +// CloudAppSecurityPolicy: pulumi.String("monitorOnly"), +// SignInFrequency: pulumi.Int(10), +// SignInFrequencyPeriod: pulumi.String("hours"), +// }, +// State: pulumi.String("disabled"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // ## Import @@ -109,7 +112,9 @@ import ( // Conditional Access Policies can be imported using the `id`, e.g. // // ```sh -// $ pulumi import azuread:index/conditionalAccessPolicy:ConditionalAccessPolicy my_location 00000000-0000-0000-0000-000000000000 +// +// $ pulumi import azuread:index/conditionalAccessPolicy:ConditionalAccessPolicy my_location 00000000-0000-0000-0000-000000000000 +// // ``` type ConditionalAccessPolicy struct { pulumi.CustomResourceState @@ -249,7 +254,7 @@ func (i *ConditionalAccessPolicy) ToConditionalAccessPolicyOutputWithContext(ctx // ConditionalAccessPolicyArrayInput is an input type that accepts ConditionalAccessPolicyArray and ConditionalAccessPolicyArrayOutput values. // You can construct a concrete instance of `ConditionalAccessPolicyArrayInput` via: // -// ConditionalAccessPolicyArray{ ConditionalAccessPolicyArgs{...} } +// ConditionalAccessPolicyArray{ ConditionalAccessPolicyArgs{...} } type ConditionalAccessPolicyArrayInput interface { pulumi.Input @@ -274,7 +279,7 @@ func (i ConditionalAccessPolicyArray) ToConditionalAccessPolicyArrayOutputWithCo // ConditionalAccessPolicyMapInput is an input type that accepts ConditionalAccessPolicyMap and ConditionalAccessPolicyMapOutput values. // You can construct a concrete instance of `ConditionalAccessPolicyMapInput` via: // -// ConditionalAccessPolicyMap{ "key": ConditionalAccessPolicyArgs{...} } +// ConditionalAccessPolicyMap{ "key": ConditionalAccessPolicyArgs{...} } type ConditionalAccessPolicyMapInput interface { pulumi.Input diff --git a/sdk/go/azuread/customDirectoryRole.go b/sdk/go/azuread/customDirectoryRole.go index 640c81764..c6db61ed3 100644 --- a/sdk/go/azuread/customDirectoryRole.go +++ b/sdk/go/azuread/customDirectoryRole.go @@ -17,42 +17,45 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.NewCustomDirectoryRole(ctx, "example", &azuread.CustomDirectoryRoleArgs{ -// Description: pulumi.String("Allows reading applications and updating groups"), -// DisplayName: pulumi.String("My Custom Role"), -// Enabled: pulumi.Bool(true), -// Permissions: CustomDirectoryRolePermissionArray{ -// &CustomDirectoryRolePermissionArgs{ -// AllowedResourceActions: pulumi.StringArray{ -// pulumi.String("microsoft.directory/applications/basic/update"), -// pulumi.String("microsoft.directory/applications/create"), -// pulumi.String("microsoft.directory/applications/standard/read"), -// }, -// }, -// &CustomDirectoryRolePermissionArgs{ -// AllowedResourceActions: pulumi.StringArray{ -// pulumi.String("microsoft.directory/groups/allProperties/read"), -// pulumi.String("microsoft.directory/groups/allProperties/read"), -// pulumi.String("microsoft.directory/groups/basic/update"), -// pulumi.String("microsoft.directory/groups/create"), -// pulumi.String("microsoft.directory/groups/delete"), -// }, -// }, -// }, -// Version: pulumi.String("1.0"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.NewCustomDirectoryRole(ctx, "example", &azuread.CustomDirectoryRoleArgs{ +// Description: pulumi.String("Allows reading applications and updating groups"), +// DisplayName: pulumi.String("My Custom Role"), +// Enabled: pulumi.Bool(true), +// Permissions: CustomDirectoryRolePermissionArray{ +// &CustomDirectoryRolePermissionArgs{ +// AllowedResourceActions: pulumi.StringArray{ +// pulumi.String("microsoft.directory/applications/basic/update"), +// pulumi.String("microsoft.directory/applications/create"), +// pulumi.String("microsoft.directory/applications/standard/read"), +// }, +// }, +// &CustomDirectoryRolePermissionArgs{ +// AllowedResourceActions: pulumi.StringArray{ +// pulumi.String("microsoft.directory/groups/allProperties/read"), +// pulumi.String("microsoft.directory/groups/allProperties/read"), +// pulumi.String("microsoft.directory/groups/basic/update"), +// pulumi.String("microsoft.directory/groups/create"), +// pulumi.String("microsoft.directory/groups/delete"), +// }, +// }, +// }, +// Version: pulumi.String("1.0"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // ## Import @@ -212,7 +215,7 @@ func (i *CustomDirectoryRole) ToCustomDirectoryRoleOutputWithContext(ctx context // CustomDirectoryRoleArrayInput is an input type that accepts CustomDirectoryRoleArray and CustomDirectoryRoleArrayOutput values. // You can construct a concrete instance of `CustomDirectoryRoleArrayInput` via: // -// CustomDirectoryRoleArray{ CustomDirectoryRoleArgs{...} } +// CustomDirectoryRoleArray{ CustomDirectoryRoleArgs{...} } type CustomDirectoryRoleArrayInput interface { pulumi.Input @@ -237,7 +240,7 @@ func (i CustomDirectoryRoleArray) ToCustomDirectoryRoleArrayOutputWithContext(ct // CustomDirectoryRoleMapInput is an input type that accepts CustomDirectoryRoleMap and CustomDirectoryRoleMapOutput values. // You can construct a concrete instance of `CustomDirectoryRoleMapInput` via: // -// CustomDirectoryRoleMap{ "key": CustomDirectoryRoleArgs{...} } +// CustomDirectoryRoleMap{ "key": CustomDirectoryRoleArgs{...} } type CustomDirectoryRoleMapInput interface { pulumi.Input diff --git a/sdk/go/azuread/directoryRole.go b/sdk/go/azuread/directoryRole.go index 836921880..da17066a7 100644 --- a/sdk/go/azuread/directoryRole.go +++ b/sdk/go/azuread/directoryRole.go @@ -32,21 +32,24 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.NewDirectoryRole(ctx, "example", &azuread.DirectoryRoleArgs{ -// TemplateId: pulumi.String("00000000-0000-0000-0000-000000000000"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.NewDirectoryRole(ctx, "example", &azuread.DirectoryRoleArgs{ +// TemplateId: pulumi.String("00000000-0000-0000-0000-000000000000"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // *Activate a directory role by display name* @@ -55,21 +58,24 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.NewDirectoryRole(ctx, "example", &azuread.DirectoryRoleArgs{ -// DisplayName: pulumi.String("Printer administrator"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.NewDirectoryRole(ctx, "example", &azuread.DirectoryRoleArgs{ +// DisplayName: pulumi.String("Printer administrator"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // ## Import @@ -183,7 +189,7 @@ func (i *DirectoryRole) ToDirectoryRoleOutputWithContext(ctx context.Context) Di // DirectoryRoleArrayInput is an input type that accepts DirectoryRoleArray and DirectoryRoleArrayOutput values. // You can construct a concrete instance of `DirectoryRoleArrayInput` via: // -// DirectoryRoleArray{ DirectoryRoleArgs{...} } +// DirectoryRoleArray{ DirectoryRoleArgs{...} } type DirectoryRoleArrayInput interface { pulumi.Input @@ -208,7 +214,7 @@ func (i DirectoryRoleArray) ToDirectoryRoleArrayOutputWithContext(ctx context.Co // DirectoryRoleMapInput is an input type that accepts DirectoryRoleMap and DirectoryRoleMapOutput values. // You can construct a concrete instance of `DirectoryRoleMapInput` via: // -// DirectoryRoleMap{ "key": DirectoryRoleArgs{...} } +// DirectoryRoleMap{ "key": DirectoryRoleArgs{...} } type DirectoryRoleMapInput interface { pulumi.Input diff --git a/sdk/go/azuread/directoryRoleAssignment.go b/sdk/go/azuread/directoryRoleAssignment.go index d35465f34..bdb924498 100644 --- a/sdk/go/azuread/directoryRoleAssignment.go +++ b/sdk/go/azuread/directoryRoleAssignment.go @@ -26,7 +26,9 @@ import ( // Directory role assignments can be imported using the ID of the assignment, e.g. // // ```sh -// $ pulumi import azuread:index/directoryRoleAssignment:DirectoryRoleAssignment test ePROZI_iKE653D_d6aoLHyr-lKgHI8ZGiIdz8CLVcng-1 +// +// $ pulumi import azuread:index/directoryRoleAssignment:DirectoryRoleAssignment test ePROZI_iKE653D_d6aoLHyr-lKgHI8ZGiIdz8CLVcng-1 +// // ``` type DirectoryRoleAssignment struct { pulumi.CustomResourceState @@ -180,7 +182,7 @@ func (i *DirectoryRoleAssignment) ToDirectoryRoleAssignmentOutputWithContext(ctx // DirectoryRoleAssignmentArrayInput is an input type that accepts DirectoryRoleAssignmentArray and DirectoryRoleAssignmentArrayOutput values. // You can construct a concrete instance of `DirectoryRoleAssignmentArrayInput` via: // -// DirectoryRoleAssignmentArray{ DirectoryRoleAssignmentArgs{...} } +// DirectoryRoleAssignmentArray{ DirectoryRoleAssignmentArgs{...} } type DirectoryRoleAssignmentArrayInput interface { pulumi.Input @@ -205,7 +207,7 @@ func (i DirectoryRoleAssignmentArray) ToDirectoryRoleAssignmentArrayOutputWithCo // DirectoryRoleAssignmentMapInput is an input type that accepts DirectoryRoleAssignmentMap and DirectoryRoleAssignmentMapOutput values. // You can construct a concrete instance of `DirectoryRoleAssignmentMapInput` via: // -// DirectoryRoleAssignmentMap{ "key": DirectoryRoleAssignmentArgs{...} } +// DirectoryRoleAssignmentMap{ "key": DirectoryRoleAssignmentArgs{...} } type DirectoryRoleAssignmentMapInput interface { pulumi.Input diff --git a/sdk/go/azuread/directoryRoleMember.go b/sdk/go/azuread/directoryRoleMember.go index fcad3cbaa..7fdbd20f4 100644 --- a/sdk/go/azuread/directoryRoleMember.go +++ b/sdk/go/azuread/directoryRoleMember.go @@ -16,34 +16,37 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// exampleUser, err := azuread.LookupUser(ctx, &GetUserArgs{ -// UserPrincipalName: pulumi.StringRef("jdoe@hashicorp.com"), -// }, nil) -// if err != nil { -// return err -// } -// exampleDirectoryRole, err := azuread.NewDirectoryRole(ctx, "exampleDirectoryRole", &azuread.DirectoryRoleArgs{ -// DisplayName: pulumi.String("Security administrator"), -// }) -// if err != nil { -// return err -// } -// _, err = azuread.NewDirectoryRoleMember(ctx, "exampleDirectoryRoleMember", &azuread.DirectoryRoleMemberArgs{ -// RoleObjectId: exampleDirectoryRole.ObjectId, -// MemberObjectId: pulumi.String(exampleUser.ObjectId), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// exampleUser, err := azuread.LookupUser(ctx, &GetUserArgs{ +// UserPrincipalName: pulumi.StringRef("jdoe@hashicorp.com"), +// }, nil) +// if err != nil { +// return err +// } +// exampleDirectoryRole, err := azuread.NewDirectoryRole(ctx, "exampleDirectoryRole", &azuread.DirectoryRoleArgs{ +// DisplayName: pulumi.String("Security administrator"), +// }) +// if err != nil { +// return err +// } +// _, err = azuread.NewDirectoryRoleMember(ctx, "exampleDirectoryRoleMember", &azuread.DirectoryRoleMemberArgs{ +// RoleObjectId: exampleDirectoryRole.ObjectId, +// MemberObjectId: pulumi.String(exampleUser.ObjectId), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // ## Import @@ -51,10 +54,12 @@ import ( // Directory role members can be imported using the object ID of the role and the object ID of the member, e.g. // // ```sh -// $ pulumi import azuread:index/directoryRoleMember:DirectoryRoleMember test 00000000-0000-0000-0000-000000000000/member/11111111-1111-1111-1111-111111111111 +// +// $ pulumi import azuread:index/directoryRoleMember:DirectoryRoleMember test 00000000-0000-0000-0000-000000000000/member/11111111-1111-1111-1111-111111111111 +// // ``` // -// -> This ID format is unique to Terraform and is composed of the Directory Role Object ID and the target Member Object ID in the format `{RoleObjectID}/member/{MemberObjectID}`. +// -> This ID format is unique to Terraform and is composed of the Directory Role Object ID and the target Member Object ID in the format `{RoleObjectID}/member/{MemberObjectID}`. type DirectoryRoleMember struct { pulumi.CustomResourceState @@ -151,7 +156,7 @@ func (i *DirectoryRoleMember) ToDirectoryRoleMemberOutputWithContext(ctx context // DirectoryRoleMemberArrayInput is an input type that accepts DirectoryRoleMemberArray and DirectoryRoleMemberArrayOutput values. // You can construct a concrete instance of `DirectoryRoleMemberArrayInput` via: // -// DirectoryRoleMemberArray{ DirectoryRoleMemberArgs{...} } +// DirectoryRoleMemberArray{ DirectoryRoleMemberArgs{...} } type DirectoryRoleMemberArrayInput interface { pulumi.Input @@ -176,7 +181,7 @@ func (i DirectoryRoleMemberArray) ToDirectoryRoleMemberArrayOutputWithContext(ct // DirectoryRoleMemberMapInput is an input type that accepts DirectoryRoleMemberMap and DirectoryRoleMemberMapOutput values. // You can construct a concrete instance of `DirectoryRoleMemberMapInput` via: // -// DirectoryRoleMemberMap{ "key": DirectoryRoleMemberArgs{...} } +// DirectoryRoleMemberMap{ "key": DirectoryRoleMemberArgs{...} } type DirectoryRoleMemberMapInput interface { pulumi.Input diff --git a/sdk/go/azuread/doc.go b/sdk/go/azuread/doc.go index 01689c5ac..37b604b85 100644 --- a/sdk/go/azuread/doc.go +++ b/sdk/go/azuread/doc.go @@ -1,3 +1,3 @@ // A Pulumi package for creating and managing azuread cloud resources. -// + package azuread diff --git a/sdk/go/azuread/getAdministrativeUnit.go b/sdk/go/azuread/getAdministrativeUnit.go index 1e096ae48..2f2712787 100644 --- a/sdk/go/azuread/getAdministrativeUnit.go +++ b/sdk/go/azuread/getAdministrativeUnit.go @@ -28,21 +28,24 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.LookupAdministrativeUnit(ctx, &GetAdministrativeUnitArgs{ -// DisplayName: pulumi.StringRef("Example-AU"), -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.LookupAdministrativeUnit(ctx, &GetAdministrativeUnitArgs{ +// DisplayName: pulumi.StringRef("Example-AU"), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // *Look up by object ID* @@ -50,21 +53,24 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.LookupAdministrativeUnit(ctx, &GetAdministrativeUnitArgs{ -// ObjectId: pulumi.StringRef("00000000-0000-0000-0000-000000000000"), -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.LookupAdministrativeUnit(ctx, &GetAdministrativeUnitArgs{ +// ObjectId: pulumi.StringRef("00000000-0000-0000-0000-000000000000"), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` func LookupAdministrativeUnit(ctx *pulumi.Context, args *LookupAdministrativeUnitArgs, opts ...pulumi.InvokeOption) (*LookupAdministrativeUnitResult, error) { var rv LookupAdministrativeUnitResult diff --git a/sdk/go/azuread/getApplication.go b/sdk/go/azuread/getApplication.go index 1ada6832e..8c0c8ed34 100644 --- a/sdk/go/azuread/getApplication.go +++ b/sdk/go/azuread/getApplication.go @@ -26,22 +26,25 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// example, err := azuread.LookupApplication(ctx, &GetApplicationArgs{ -// DisplayName: pulumi.StringRef("My First AzureAD Application"), -// }, nil) -// if err != nil { -// return err -// } -// ctx.Export("applicationObjectId", example.Id) -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// example, err := azuread.LookupApplication(ctx, &GetApplicationArgs{ +// DisplayName: pulumi.StringRef("My First AzureAD Application"), +// }, nil) +// if err != nil { +// return err +// } +// ctx.Export("applicationObjectId", example.Id) +// return nil +// }) +// } +// // ``` func LookupApplication(ctx *pulumi.Context, args *LookupApplicationArgs, opts ...pulumi.InvokeOption) (*LookupApplicationResult, error) { var rv LookupApplicationResult diff --git a/sdk/go/azuread/getApplicationPublishedAppIds.go b/sdk/go/azuread/getApplicationPublishedAppIds.go index 544e859d1..7643ec9c3 100644 --- a/sdk/go/azuread/getApplicationPublishedAppIds.go +++ b/sdk/go/azuread/getApplicationPublishedAppIds.go @@ -21,20 +21,23 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// wellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil) -// if err != nil { -// return err -// } -// ctx.Export("publishedAppIds", wellKnown.Result) -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// wellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil) +// if err != nil { +// return err +// } +// ctx.Export("publishedAppIds", wellKnown.Result) +// return nil +// }) +// } +// // ``` // // *Granting access to an application* @@ -43,51 +46,54 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// wellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil) -// if err != nil { -// return err -// } -// msgraph, err := azuread.NewServicePrincipal(ctx, "msgraph", &azuread.ServicePrincipalArgs{ -// ApplicationId: pulumi.String(wellKnown.Result.MicrosoftGraph), -// UseExisting: pulumi.Bool(true), -// }) -// if err != nil { -// return err -// } -// _, err = azuread.NewApplication(ctx, "example", &azuread.ApplicationArgs{ -// DisplayName: pulumi.String("example"), -// RequiredResourceAccesses: ApplicationRequiredResourceAccessArray{ -// &ApplicationRequiredResourceAccessArgs{ -// ResourceAppId: pulumi.String(wellKnown.Result.MicrosoftGraph), -// ResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{ -// &ApplicationRequiredResourceAccessResourceAccessArgs{ -// Id: msgraph.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) { -// return appRoleIds.User.Read.All, nil -// }).(pulumi.StringOutput), -// Type: pulumi.String("Role"), -// }, -// &ApplicationRequiredResourceAccessResourceAccessArgs{ -// Id: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) { -// return oauth2PermissionScopeIds.User.ReadWrite, nil -// }).(pulumi.StringOutput), -// Type: pulumi.String("Scope"), -// }, -// }, -// }, -// }, -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// wellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil) +// if err != nil { +// return err +// } +// msgraph, err := azuread.NewServicePrincipal(ctx, "msgraph", &azuread.ServicePrincipalArgs{ +// ApplicationId: pulumi.String(wellKnown.Result.MicrosoftGraph), +// UseExisting: pulumi.Bool(true), +// }) +// if err != nil { +// return err +// } +// _, err = azuread.NewApplication(ctx, "example", &azuread.ApplicationArgs{ +// DisplayName: pulumi.String("example"), +// RequiredResourceAccesses: ApplicationRequiredResourceAccessArray{ +// &ApplicationRequiredResourceAccessArgs{ +// ResourceAppId: pulumi.String(wellKnown.Result.MicrosoftGraph), +// ResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{ +// &ApplicationRequiredResourceAccessResourceAccessArgs{ +// Id: msgraph.AppRoleIds.ApplyT(func(appRoleIds map[string]string) (string, error) { +// return appRoleIds.User.Read.All, nil +// }).(pulumi.StringOutput), +// Type: pulumi.String("Role"), +// }, +// &ApplicationRequiredResourceAccessResourceAccessArgs{ +// Id: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) { +// return oauth2PermissionScopeIds.User.ReadWrite, nil +// }).(pulumi.StringOutput), +// Type: pulumi.String("Scope"), +// }, +// }, +// }, +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` func GetApplicationPublishedAppIds(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetApplicationPublishedAppIdsResult, error) { var rv GetApplicationPublishedAppIdsResult diff --git a/sdk/go/azuread/getApplicationTemplate.go b/sdk/go/azuread/getApplicationTemplate.go index 5b92fdd27..b2addf760 100644 --- a/sdk/go/azuread/getApplicationTemplate.go +++ b/sdk/go/azuread/getApplicationTemplate.go @@ -22,22 +22,25 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// example, err := azuread.GetApplicationTemplate(ctx, &GetApplicationTemplateArgs{ -// DisplayName: pulumi.StringRef("Marketo"), -// }, nil) -// if err != nil { -// return err -// } -// ctx.Export("applicationTemplateId", example.TemplateId) -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// example, err := azuread.GetApplicationTemplate(ctx, &GetApplicationTemplateArgs{ +// DisplayName: pulumi.StringRef("Marketo"), +// }, nil) +// if err != nil { +// return err +// } +// ctx.Export("applicationTemplateId", example.TemplateId) +// return nil +// }) +// } +// // ``` func GetApplicationTemplate(ctx *pulumi.Context, args *GetApplicationTemplateArgs, opts ...pulumi.InvokeOption) (*GetApplicationTemplateResult, error) { var rv GetApplicationTemplateResult diff --git a/sdk/go/azuread/getClientConfig.go b/sdk/go/azuread/getClientConfig.go index 433675042..67ad849e0 100644 --- a/sdk/go/azuread/getClientConfig.go +++ b/sdk/go/azuread/getClientConfig.go @@ -19,20 +19,23 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// current, err := azuread.GetClientConfig(ctx, nil, nil) -// if err != nil { -// return err -// } -// ctx.Export("objectId", current.ObjectId) -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// current, err := azuread.GetClientConfig(ctx, nil, nil) +// if err != nil { +// return err +// } +// ctx.Export("objectId", current.ObjectId) +// return nil +// }) +// } +// // ``` func GetClientConfig(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetClientConfigResult, error) { var rv GetClientConfigResult diff --git a/sdk/go/azuread/getGroup.go b/sdk/go/azuread/getGroup.go index 7a1fbe41e..3ab060d45 100644 --- a/sdk/go/azuread/getGroup.go +++ b/sdk/go/azuread/getGroup.go @@ -27,22 +27,25 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.LookupGroup(ctx, &GetGroupArgs{ -// DisplayName: pulumi.StringRef("MyGroupName"), -// SecurityEnabled: pulumi.BoolRef(true), -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.LookupGroup(ctx, &GetGroupArgs{ +// DisplayName: pulumi.StringRef("MyGroupName"), +// SecurityEnabled: pulumi.BoolRef(true), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` func LookupGroup(ctx *pulumi.Context, args *LookupGroupArgs, opts ...pulumi.InvokeOption) (*LookupGroupResult, error) { var rv LookupGroupResult diff --git a/sdk/go/azuread/getGroups.go b/sdk/go/azuread/getGroups.go index ff297101e..be20864d8 100644 --- a/sdk/go/azuread/getGroups.go +++ b/sdk/go/azuread/getGroups.go @@ -27,24 +27,27 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.GetGroups(ctx, &GetGroupsArgs{ -// DisplayNames: []string{ -// "group-a", -// "group-b", -// }, -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.GetGroups(ctx, &GetGroupsArgs{ +// DisplayNames: []string{ +// "group-a", +// "group-b", +// }, +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // *Look up by display name prefix* @@ -52,21 +55,24 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.GetGroups(ctx, &GetGroupsArgs{ -// DisplayNamePrefix: pulumi.StringRef("sales-"), -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.GetGroups(ctx, &GetGroupsArgs{ +// DisplayNamePrefix: pulumi.StringRef("sales-"), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // *Look up all groups* @@ -74,21 +80,24 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.GetGroups(ctx, &GetGroupsArgs{ -// ReturnAll: pulumi.BoolRef(true), -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.GetGroups(ctx, &GetGroupsArgs{ +// ReturnAll: pulumi.BoolRef(true), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // *Look up all mail-enabled groups* @@ -96,22 +105,25 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.GetGroups(ctx, &GetGroupsArgs{ -// MailEnabled: pulumi.BoolRef(true), -// ReturnAll: pulumi.BoolRef(true), -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.GetGroups(ctx, &GetGroupsArgs{ +// MailEnabled: pulumi.BoolRef(true), +// ReturnAll: pulumi.BoolRef(true), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // *Look up all security-enabled groups that are not mail-enabled* @@ -119,23 +131,26 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.GetGroups(ctx, &GetGroupsArgs{ -// MailEnabled: pulumi.BoolRef(false), -// ReturnAll: pulumi.BoolRef(true), -// SecurityEnabled: pulumi.BoolRef(true), -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.GetGroups(ctx, &GetGroupsArgs{ +// MailEnabled: pulumi.BoolRef(false), +// ReturnAll: pulumi.BoolRef(true), +// SecurityEnabled: pulumi.BoolRef(true), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` func GetGroups(ctx *pulumi.Context, args *GetGroupsArgs, opts ...pulumi.InvokeOption) (*GetGroupsResult, error) { var rv GetGroupsResult diff --git a/sdk/go/azuread/getServicePrincipal.go b/sdk/go/azuread/getServicePrincipal.go index 80e508af5..aaad63a48 100644 --- a/sdk/go/azuread/getServicePrincipal.go +++ b/sdk/go/azuread/getServicePrincipal.go @@ -28,21 +28,24 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.LookupServicePrincipal(ctx, &GetServicePrincipalArgs{ -// DisplayName: pulumi.StringRef("my-awesome-application"), -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.LookupServicePrincipal(ctx, &GetServicePrincipalArgs{ +// DisplayName: pulumi.StringRef("my-awesome-application"), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // *Look up by application ID (client ID)* @@ -51,21 +54,24 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.LookupServicePrincipal(ctx, &GetServicePrincipalArgs{ -// ApplicationId: pulumi.StringRef("00000000-0000-0000-0000-000000000000"), -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.LookupServicePrincipal(ctx, &GetServicePrincipalArgs{ +// ApplicationId: pulumi.StringRef("00000000-0000-0000-0000-000000000000"), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // *Look up by service principal object ID* @@ -74,21 +80,24 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.LookupServicePrincipal(ctx, &GetServicePrincipalArgs{ -// ObjectId: pulumi.StringRef("00000000-0000-0000-0000-000000000000"), -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.LookupServicePrincipal(ctx, &GetServicePrincipalArgs{ +// ObjectId: pulumi.StringRef("00000000-0000-0000-0000-000000000000"), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` func LookupServicePrincipal(ctx *pulumi.Context, args *LookupServicePrincipalArgs, opts ...pulumi.InvokeOption) (*LookupServicePrincipalResult, error) { var rv LookupServicePrincipalResult diff --git a/sdk/go/azuread/getServicePrincipals.go b/sdk/go/azuread/getServicePrincipals.go index 4fc020770..35abb7319 100644 --- a/sdk/go/azuread/getServicePrincipals.go +++ b/sdk/go/azuread/getServicePrincipals.go @@ -28,24 +28,27 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.GetServicePrincipals(ctx, &GetServicePrincipalsArgs{ -// DisplayNames: []string{ -// "example-app", -// "another-app", -// }, -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.GetServicePrincipals(ctx, &GetServicePrincipalsArgs{ +// DisplayNames: []string{ +// "example-app", +// "another-app", +// }, +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // *Look up by application IDs (client IDs* @@ -54,25 +57,28 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.GetServicePrincipals(ctx, &GetServicePrincipalsArgs{ -// ApplicationIds: []string{ -// "11111111-0000-0000-0000-000000000000", -// "22222222-0000-0000-0000-000000000000", -// "33333333-0000-0000-0000-000000000000", -// }, -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.GetServicePrincipals(ctx, &GetServicePrincipalsArgs{ +// ApplicationIds: []string{ +// "11111111-0000-0000-0000-000000000000", +// "22222222-0000-0000-0000-000000000000", +// "33333333-0000-0000-0000-000000000000", +// }, +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // *Look up by service principal object IDs* @@ -81,25 +87,28 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.GetServicePrincipals(ctx, &GetServicePrincipalsArgs{ -// ObjectIds: []string{ -// "00000000-0000-0000-0000-000000000000", -// "00000000-0000-0000-0000-111111111111", -// "00000000-0000-0000-0000-222222222222", -// }, -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.GetServicePrincipals(ctx, &GetServicePrincipalsArgs{ +// ObjectIds: []string{ +// "00000000-0000-0000-0000-000000000000", +// "00000000-0000-0000-0000-111111111111", +// "00000000-0000-0000-0000-222222222222", +// }, +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` func GetServicePrincipals(ctx *pulumi.Context, args *GetServicePrincipalsArgs, opts ...pulumi.InvokeOption) (*GetServicePrincipalsResult, error) { var rv GetServicePrincipalsResult diff --git a/sdk/go/azuread/getUser.go b/sdk/go/azuread/getUser.go index 12ce70577..42ef1435d 100644 --- a/sdk/go/azuread/getUser.go +++ b/sdk/go/azuread/getUser.go @@ -26,21 +26,24 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.LookupUser(ctx, &GetUserArgs{ -// UserPrincipalName: pulumi.StringRef("user@hashicorp.com"), -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.LookupUser(ctx, &GetUserArgs{ +// UserPrincipalName: pulumi.StringRef("user@hashicorp.com"), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` func LookupUser(ctx *pulumi.Context, args *LookupUserArgs, opts ...pulumi.InvokeOption) (*LookupUserResult, error) { var rv LookupUserResult diff --git a/sdk/go/azuread/getUsers.go b/sdk/go/azuread/getUsers.go index b4eb64533..55bdd0793 100644 --- a/sdk/go/azuread/getUsers.go +++ b/sdk/go/azuread/getUsers.go @@ -26,24 +26,27 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.GetUsers(ctx, &GetUsersArgs{ -// UserPrincipalNames: []string{ -// "kat@hashicorp.com", -// "byte@hashicorp.com", -// }, -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.GetUsers(ctx, &GetUsersArgs{ +// UserPrincipalNames: []string{ +// "kat@hashicorp.com", +// "byte@hashicorp.com", +// }, +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` func GetUsers(ctx *pulumi.Context, args *GetUsersArgs, opts ...pulumi.InvokeOption) (*GetUsersResult, error) { var rv GetUsersResult diff --git a/sdk/go/azuread/group.go b/sdk/go/azuread/group.go index 17aea8036..956c0215e 100644 --- a/sdk/go/azuread/group.go +++ b/sdk/go/azuread/group.go @@ -32,7 +32,9 @@ import ( // Groups can be imported using their object ID, e.g. // // ```sh -// $ pulumi import azuread:index/group:Group my_group 00000000-0000-0000-0000-000000000000 +// +// $ pulumi import azuread:index/group:Group my_group 00000000-0000-0000-0000-000000000000 +// // ``` type Group struct { pulumi.CustomResourceState @@ -357,7 +359,7 @@ func (i *Group) ToGroupOutputWithContext(ctx context.Context) GroupOutput { // GroupArrayInput is an input type that accepts GroupArray and GroupArrayOutput values. // You can construct a concrete instance of `GroupArrayInput` via: // -// GroupArray{ GroupArgs{...} } +// GroupArray{ GroupArgs{...} } type GroupArrayInput interface { pulumi.Input @@ -382,7 +384,7 @@ func (i GroupArray) ToGroupArrayOutputWithContext(ctx context.Context) GroupArra // GroupMapInput is an input type that accepts GroupMap and GroupMapOutput values. // You can construct a concrete instance of `GroupMapInput` via: // -// GroupMap{ "key": GroupArgs{...} } +// GroupMap{ "key": GroupArgs{...} } type GroupMapInput interface { pulumi.Input diff --git a/sdk/go/azuread/groupMember.go b/sdk/go/azuread/groupMember.go index a868ad0ae..411641075 100644 --- a/sdk/go/azuread/groupMember.go +++ b/sdk/go/azuread/groupMember.go @@ -29,35 +29,38 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// exampleUser, err := azuread.LookupUser(ctx, &GetUserArgs{ -// UserPrincipalName: pulumi.StringRef("jdoe@hashicorp.com"), -// }, nil) -// if err != nil { -// return err -// } -// exampleGroup, err := azuread.NewGroup(ctx, "exampleGroup", &azuread.GroupArgs{ -// DisplayName: pulumi.String("my_group"), -// SecurityEnabled: pulumi.Bool(true), -// }) -// if err != nil { -// return err -// } -// _, err = azuread.NewGroupMember(ctx, "exampleGroupMember", &azuread.GroupMemberArgs{ -// GroupObjectId: exampleGroup.ID(), -// MemberObjectId: pulumi.String(exampleUser.Id), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// exampleUser, err := azuread.LookupUser(ctx, &GetUserArgs{ +// UserPrincipalName: pulumi.StringRef("jdoe@hashicorp.com"), +// }, nil) +// if err != nil { +// return err +// } +// exampleGroup, err := azuread.NewGroup(ctx, "exampleGroup", &azuread.GroupArgs{ +// DisplayName: pulumi.String("my_group"), +// SecurityEnabled: pulumi.Bool(true), +// }) +// if err != nil { +// return err +// } +// _, err = azuread.NewGroupMember(ctx, "exampleGroupMember", &azuread.GroupMemberArgs{ +// GroupObjectId: exampleGroup.ID(), +// MemberObjectId: pulumi.String(exampleUser.Id), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // ## Import @@ -65,10 +68,12 @@ import ( // Group members can be imported using the object ID of the group and the object ID of the member, e.g. // // ```sh -// $ pulumi import azuread:index/groupMember:GroupMember test 00000000-0000-0000-0000-000000000000/member/11111111-1111-1111-1111-111111111111 +// +// $ pulumi import azuread:index/groupMember:GroupMember test 00000000-0000-0000-0000-000000000000/member/11111111-1111-1111-1111-111111111111 +// // ``` // -// -> This ID format is unique to Terraform and is composed of the Azure AD Group Object ID and the target Member Object ID in the format `{GroupObjectID}/member/{MemberObjectID}`. +// -> This ID format is unique to Terraform and is composed of the Azure AD Group Object ID and the target Member Object ID in the format `{GroupObjectID}/member/{MemberObjectID}`. type GroupMember struct { pulumi.CustomResourceState @@ -171,7 +176,7 @@ func (i *GroupMember) ToGroupMemberOutputWithContext(ctx context.Context) GroupM // GroupMemberArrayInput is an input type that accepts GroupMemberArray and GroupMemberArrayOutput values. // You can construct a concrete instance of `GroupMemberArrayInput` via: // -// GroupMemberArray{ GroupMemberArgs{...} } +// GroupMemberArray{ GroupMemberArgs{...} } type GroupMemberArrayInput interface { pulumi.Input @@ -196,7 +201,7 @@ func (i GroupMemberArray) ToGroupMemberArrayOutputWithContext(ctx context.Contex // GroupMemberMapInput is an input type that accepts GroupMemberMap and GroupMemberMapOutput values. // You can construct a concrete instance of `GroupMemberMapInput` via: // -// GroupMemberMap{ "key": GroupMemberArgs{...} } +// GroupMemberMap{ "key": GroupMemberArgs{...} } type GroupMemberMapInput interface { pulumi.Input diff --git a/sdk/go/azuread/invitation.go b/sdk/go/azuread/invitation.go index d316bed04..af7b3c163 100644 --- a/sdk/go/azuread/invitation.go +++ b/sdk/go/azuread/invitation.go @@ -29,22 +29,25 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.NewInvitation(ctx, "example", &azuread.InvitationArgs{ -// RedirectUrl: pulumi.String("https://portal.azure.com"), -// UserEmailAddress: pulumi.String("jdoe@hashicorp.com"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.NewInvitation(ctx, "example", &azuread.InvitationArgs{ +// RedirectUrl: pulumi.String("https://portal.azure.com"), +// UserEmailAddress: pulumi.String("jdoe@hashicorp.com"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // *Invitation with standard message* @@ -53,25 +56,28 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.NewInvitation(ctx, "example", &azuread.InvitationArgs{ -// Message: &InvitationMessageArgs{ -// Language: pulumi.String("en-US"), -// }, -// RedirectUrl: pulumi.String("https://portal.azure.com"), -// UserEmailAddress: pulumi.String("jdoe@hashicorp.com"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.NewInvitation(ctx, "example", &azuread.InvitationArgs{ +// Message: &InvitationMessageArgs{ +// Language: pulumi.String("en-US"), +// }, +// RedirectUrl: pulumi.String("https://portal.azure.com"), +// UserEmailAddress: pulumi.String("jdoe@hashicorp.com"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // *Invitation with custom message body and an additional recipient* @@ -80,27 +86,30 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.NewInvitation(ctx, "example", &azuread.InvitationArgs{ -// Message: &InvitationMessageArgs{ -// AdditionalRecipients: pulumi.String("aaliceberg@hashicorp.com"), -// Body: pulumi.String("Hello there! You are invited to join my Azure tenant!"), -// }, -// RedirectUrl: pulumi.String("https://portal.azure.com"), -// UserDisplayName: pulumi.String("Bob Bobson"), -// UserEmailAddress: pulumi.String("bbobson@hashicorp.com"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.NewInvitation(ctx, "example", &azuread.InvitationArgs{ +// Message: &InvitationMessageArgs{ +// AdditionalRecipients: pulumi.String("aaliceberg@hashicorp.com"), +// Body: pulumi.String("Hello there! You are invited to join my Azure tenant!"), +// }, +// RedirectUrl: pulumi.String("https://portal.azure.com"), +// UserDisplayName: pulumi.String("Bob Bobson"), +// UserEmailAddress: pulumi.String("bbobson@hashicorp.com"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // ## Import @@ -250,7 +259,7 @@ func (i *Invitation) ToInvitationOutputWithContext(ctx context.Context) Invitati // InvitationArrayInput is an input type that accepts InvitationArray and InvitationArrayOutput values. // You can construct a concrete instance of `InvitationArrayInput` via: // -// InvitationArray{ InvitationArgs{...} } +// InvitationArray{ InvitationArgs{...} } type InvitationArrayInput interface { pulumi.Input @@ -275,7 +284,7 @@ func (i InvitationArray) ToInvitationArrayOutputWithContext(ctx context.Context) // InvitationMapInput is an input type that accepts InvitationMap and InvitationMapOutput values. // You can construct a concrete instance of `InvitationMapInput` via: // -// InvitationMap{ "key": InvitationArgs{...} } +// InvitationMap{ "key": InvitationArgs{...} } type InvitationMapInput interface { pulumi.Input diff --git a/sdk/go/azuread/namedLocation.go b/sdk/go/azuread/namedLocation.go index 99317eb20..e99b0b033 100644 --- a/sdk/go/azuread/namedLocation.go +++ b/sdk/go/azuread/namedLocation.go @@ -27,41 +27,44 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.NewNamedLocation(ctx, "example-ip", &azuread.NamedLocationArgs{ -// DisplayName: pulumi.String("IP Named Location"), -// Ip: &NamedLocationIpArgs{ -// IpRanges: pulumi.StringArray{ -// pulumi.String("1.1.1.1/32"), -// pulumi.String("2.2.2.2/32"), -// }, -// Trusted: pulumi.Bool(true), -// }, -// }) -// if err != nil { -// return err -// } -// _, err = azuread.NewNamedLocation(ctx, "example-country", &azuread.NamedLocationArgs{ -// Country: &NamedLocationCountryArgs{ -// CountriesAndRegions: pulumi.StringArray{ -// pulumi.String("GB"), -// pulumi.String("US"), -// }, -// IncludeUnknownCountriesAndRegions: pulumi.Bool(false), -// }, -// DisplayName: pulumi.String("Country Named Location"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.NewNamedLocation(ctx, "example-ip", &azuread.NamedLocationArgs{ +// DisplayName: pulumi.String("IP Named Location"), +// Ip: &NamedLocationIpArgs{ +// IpRanges: pulumi.StringArray{ +// pulumi.String("1.1.1.1/32"), +// pulumi.String("2.2.2.2/32"), +// }, +// Trusted: pulumi.Bool(true), +// }, +// }) +// if err != nil { +// return err +// } +// _, err = azuread.NewNamedLocation(ctx, "example-country", &azuread.NamedLocationArgs{ +// Country: &NamedLocationCountryArgs{ +// CountriesAndRegions: pulumi.StringArray{ +// pulumi.String("GB"), +// pulumi.String("US"), +// }, +// IncludeUnknownCountriesAndRegions: pulumi.Bool(false), +// }, +// DisplayName: pulumi.String("Country Named Location"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // ## Import @@ -69,7 +72,9 @@ import ( // Named Locations can be imported using the `id`, e.g. // // ```sh -// $ pulumi import azuread:index/namedLocation:NamedLocation my_location 00000000-0000-0000-0000-000000000000 +// +// $ pulumi import azuread:index/namedLocation:NamedLocation my_location 00000000-0000-0000-0000-000000000000 +// // ``` type NamedLocation struct { pulumi.CustomResourceState @@ -180,7 +185,7 @@ func (i *NamedLocation) ToNamedLocationOutputWithContext(ctx context.Context) Na // NamedLocationArrayInput is an input type that accepts NamedLocationArray and NamedLocationArrayOutput values. // You can construct a concrete instance of `NamedLocationArrayInput` via: // -// NamedLocationArray{ NamedLocationArgs{...} } +// NamedLocationArray{ NamedLocationArgs{...} } type NamedLocationArrayInput interface { pulumi.Input @@ -205,7 +210,7 @@ func (i NamedLocationArray) ToNamedLocationArrayOutputWithContext(ctx context.Co // NamedLocationMapInput is an input type that accepts NamedLocationMap and NamedLocationMapOutput values. // You can construct a concrete instance of `NamedLocationMapInput` via: // -// NamedLocationMap{ "key": NamedLocationArgs{...} } +// NamedLocationMap{ "key": NamedLocationArgs{...} } type NamedLocationMapInput interface { pulumi.Input diff --git a/sdk/go/azuread/pulumiTypes.go b/sdk/go/azuread/pulumiTypes.go index 647fef9d0..2f51ac2c7 100644 --- a/sdk/go/azuread/pulumiTypes.go +++ b/sdk/go/azuread/pulumiTypes.go @@ -24,7 +24,7 @@ type ApplicationApi struct { // ApplicationApiInput is an input type that accepts ApplicationApiArgs and ApplicationApiOutput values. // You can construct a concrete instance of `ApplicationApiInput` via: // -// ApplicationApiArgs{...} +// ApplicationApiArgs{...} type ApplicationApiInput interface { pulumi.Input @@ -66,11 +66,11 @@ func (i ApplicationApiArgs) ToApplicationApiPtrOutputWithContext(ctx context.Con // ApplicationApiPtrInput is an input type that accepts ApplicationApiArgs, ApplicationApiPtr and ApplicationApiPtrOutput values. // You can construct a concrete instance of `ApplicationApiPtrInput` via: // -// ApplicationApiArgs{...} +// ApplicationApiArgs{...} // -// or: +// or: // -// nil +// nil type ApplicationApiPtrInput interface { pulumi.Input @@ -226,7 +226,7 @@ type ApplicationApiOauth2PermissionScope struct { // ApplicationApiOauth2PermissionScopeInput is an input type that accepts ApplicationApiOauth2PermissionScopeArgs and ApplicationApiOauth2PermissionScopeOutput values. // You can construct a concrete instance of `ApplicationApiOauth2PermissionScopeInput` via: // -// ApplicationApiOauth2PermissionScopeArgs{...} +// ApplicationApiOauth2PermissionScopeArgs{...} type ApplicationApiOauth2PermissionScopeInput interface { pulumi.Input @@ -268,7 +268,7 @@ func (i ApplicationApiOauth2PermissionScopeArgs) ToApplicationApiOauth2Permissio // ApplicationApiOauth2PermissionScopeArrayInput is an input type that accepts ApplicationApiOauth2PermissionScopeArray and ApplicationApiOauth2PermissionScopeArrayOutput values. // You can construct a concrete instance of `ApplicationApiOauth2PermissionScopeArrayInput` via: // -// ApplicationApiOauth2PermissionScopeArray{ ApplicationApiOauth2PermissionScopeArgs{...} } +// ApplicationApiOauth2PermissionScopeArray{ ApplicationApiOauth2PermissionScopeArgs{...} } type ApplicationApiOauth2PermissionScopeArrayInput interface { pulumi.Input @@ -382,7 +382,7 @@ type ApplicationAppRole struct { // ApplicationAppRoleInput is an input type that accepts ApplicationAppRoleArgs and ApplicationAppRoleOutput values. // You can construct a concrete instance of `ApplicationAppRoleInput` via: // -// ApplicationAppRoleArgs{...} +// ApplicationAppRoleArgs{...} type ApplicationAppRoleInput interface { pulumi.Input @@ -420,7 +420,7 @@ func (i ApplicationAppRoleArgs) ToApplicationAppRoleOutputWithContext(ctx contex // ApplicationAppRoleArrayInput is an input type that accepts ApplicationAppRoleArray and ApplicationAppRoleArrayOutput values. // You can construct a concrete instance of `ApplicationAppRoleArrayInput` via: // -// ApplicationAppRoleArray{ ApplicationAppRoleArgs{...} } +// ApplicationAppRoleArray{ ApplicationAppRoleArgs{...} } type ApplicationAppRoleArrayInput interface { pulumi.Input @@ -520,7 +520,7 @@ type ApplicationFeatureTag struct { // ApplicationFeatureTagInput is an input type that accepts ApplicationFeatureTagArgs and ApplicationFeatureTagOutput values. // You can construct a concrete instance of `ApplicationFeatureTagInput` via: // -// ApplicationFeatureTagArgs{...} +// ApplicationFeatureTagArgs{...} type ApplicationFeatureTagInput interface { pulumi.Input @@ -554,7 +554,7 @@ func (i ApplicationFeatureTagArgs) ToApplicationFeatureTagOutputWithContext(ctx // ApplicationFeatureTagArrayInput is an input type that accepts ApplicationFeatureTagArray and ApplicationFeatureTagArrayOutput values. // You can construct a concrete instance of `ApplicationFeatureTagArrayInput` via: // -// ApplicationFeatureTagArray{ ApplicationFeatureTagArgs{...} } +// ApplicationFeatureTagArray{ ApplicationFeatureTagArgs{...} } type ApplicationFeatureTagArrayInput interface { pulumi.Input @@ -642,7 +642,7 @@ type ApplicationOptionalClaims struct { // ApplicationOptionalClaimsInput is an input type that accepts ApplicationOptionalClaimsArgs and ApplicationOptionalClaimsOutput values. // You can construct a concrete instance of `ApplicationOptionalClaimsInput` via: // -// ApplicationOptionalClaimsArgs{...} +// ApplicationOptionalClaimsArgs{...} type ApplicationOptionalClaimsInput interface { pulumi.Input @@ -682,11 +682,11 @@ func (i ApplicationOptionalClaimsArgs) ToApplicationOptionalClaimsPtrOutputWithC // ApplicationOptionalClaimsPtrInput is an input type that accepts ApplicationOptionalClaimsArgs, ApplicationOptionalClaimsPtr and ApplicationOptionalClaimsPtrOutput values. // You can construct a concrete instance of `ApplicationOptionalClaimsPtrInput` via: // -// ApplicationOptionalClaimsArgs{...} +// ApplicationOptionalClaimsArgs{...} // -// or: +// or: // -// nil +// nil type ApplicationOptionalClaimsPtrInput interface { pulumi.Input @@ -819,7 +819,7 @@ type ApplicationOptionalClaimsAccessToken struct { // ApplicationOptionalClaimsAccessTokenInput is an input type that accepts ApplicationOptionalClaimsAccessTokenArgs and ApplicationOptionalClaimsAccessTokenOutput values. // You can construct a concrete instance of `ApplicationOptionalClaimsAccessTokenInput` via: // -// ApplicationOptionalClaimsAccessTokenArgs{...} +// ApplicationOptionalClaimsAccessTokenArgs{...} type ApplicationOptionalClaimsAccessTokenInput interface { pulumi.Input @@ -853,7 +853,7 @@ func (i ApplicationOptionalClaimsAccessTokenArgs) ToApplicationOptionalClaimsAcc // ApplicationOptionalClaimsAccessTokenArrayInput is an input type that accepts ApplicationOptionalClaimsAccessTokenArray and ApplicationOptionalClaimsAccessTokenArrayOutput values. // You can construct a concrete instance of `ApplicationOptionalClaimsAccessTokenArrayInput` via: // -// ApplicationOptionalClaimsAccessTokenArray{ ApplicationOptionalClaimsAccessTokenArgs{...} } +// ApplicationOptionalClaimsAccessTokenArray{ ApplicationOptionalClaimsAccessTokenArgs{...} } type ApplicationOptionalClaimsAccessTokenArrayInput interface { pulumi.Input @@ -943,7 +943,7 @@ type ApplicationOptionalClaimsIdToken struct { // ApplicationOptionalClaimsIdTokenInput is an input type that accepts ApplicationOptionalClaimsIdTokenArgs and ApplicationOptionalClaimsIdTokenOutput values. // You can construct a concrete instance of `ApplicationOptionalClaimsIdTokenInput` via: // -// ApplicationOptionalClaimsIdTokenArgs{...} +// ApplicationOptionalClaimsIdTokenArgs{...} type ApplicationOptionalClaimsIdTokenInput interface { pulumi.Input @@ -977,7 +977,7 @@ func (i ApplicationOptionalClaimsIdTokenArgs) ToApplicationOptionalClaimsIdToken // ApplicationOptionalClaimsIdTokenArrayInput is an input type that accepts ApplicationOptionalClaimsIdTokenArray and ApplicationOptionalClaimsIdTokenArrayOutput values. // You can construct a concrete instance of `ApplicationOptionalClaimsIdTokenArrayInput` via: // -// ApplicationOptionalClaimsIdTokenArray{ ApplicationOptionalClaimsIdTokenArgs{...} } +// ApplicationOptionalClaimsIdTokenArray{ ApplicationOptionalClaimsIdTokenArgs{...} } type ApplicationOptionalClaimsIdTokenArrayInput interface { pulumi.Input @@ -1067,7 +1067,7 @@ type ApplicationOptionalClaimsSaml2Token struct { // ApplicationOptionalClaimsSaml2TokenInput is an input type that accepts ApplicationOptionalClaimsSaml2TokenArgs and ApplicationOptionalClaimsSaml2TokenOutput values. // You can construct a concrete instance of `ApplicationOptionalClaimsSaml2TokenInput` via: // -// ApplicationOptionalClaimsSaml2TokenArgs{...} +// ApplicationOptionalClaimsSaml2TokenArgs{...} type ApplicationOptionalClaimsSaml2TokenInput interface { pulumi.Input @@ -1101,7 +1101,7 @@ func (i ApplicationOptionalClaimsSaml2TokenArgs) ToApplicationOptionalClaimsSaml // ApplicationOptionalClaimsSaml2TokenArrayInput is an input type that accepts ApplicationOptionalClaimsSaml2TokenArray and ApplicationOptionalClaimsSaml2TokenArrayOutput values. // You can construct a concrete instance of `ApplicationOptionalClaimsSaml2TokenArrayInput` via: // -// ApplicationOptionalClaimsSaml2TokenArray{ ApplicationOptionalClaimsSaml2TokenArgs{...} } +// ApplicationOptionalClaimsSaml2TokenArray{ ApplicationOptionalClaimsSaml2TokenArgs{...} } type ApplicationOptionalClaimsSaml2TokenArrayInput interface { pulumi.Input @@ -1185,7 +1185,7 @@ type ApplicationPublicClient struct { // ApplicationPublicClientInput is an input type that accepts ApplicationPublicClientArgs and ApplicationPublicClientOutput values. // You can construct a concrete instance of `ApplicationPublicClientInput` via: // -// ApplicationPublicClientArgs{...} +// ApplicationPublicClientArgs{...} type ApplicationPublicClientInput interface { pulumi.Input @@ -1221,11 +1221,11 @@ func (i ApplicationPublicClientArgs) ToApplicationPublicClientPtrOutputWithConte // ApplicationPublicClientPtrInput is an input type that accepts ApplicationPublicClientArgs, ApplicationPublicClientPtr and ApplicationPublicClientPtrOutput values. // You can construct a concrete instance of `ApplicationPublicClientPtrInput` via: // -// ApplicationPublicClientArgs{...} +// ApplicationPublicClientArgs{...} // -// or: +// or: // -// nil +// nil type ApplicationPublicClientPtrInput interface { pulumi.Input @@ -1324,7 +1324,7 @@ type ApplicationRequiredResourceAccess struct { // ApplicationRequiredResourceAccessInput is an input type that accepts ApplicationRequiredResourceAccessArgs and ApplicationRequiredResourceAccessOutput values. // You can construct a concrete instance of `ApplicationRequiredResourceAccessInput` via: // -// ApplicationRequiredResourceAccessArgs{...} +// ApplicationRequiredResourceAccessArgs{...} type ApplicationRequiredResourceAccessInput interface { pulumi.Input @@ -1354,7 +1354,7 @@ func (i ApplicationRequiredResourceAccessArgs) ToApplicationRequiredResourceAcce // ApplicationRequiredResourceAccessArrayInput is an input type that accepts ApplicationRequiredResourceAccessArray and ApplicationRequiredResourceAccessArrayOutput values. // You can construct a concrete instance of `ApplicationRequiredResourceAccessArrayInput` via: // -// ApplicationRequiredResourceAccessArray{ ApplicationRequiredResourceAccessArgs{...} } +// ApplicationRequiredResourceAccessArray{ ApplicationRequiredResourceAccessArgs{...} } type ApplicationRequiredResourceAccessArrayInput interface { pulumi.Input @@ -1432,7 +1432,7 @@ type ApplicationRequiredResourceAccessResourceAccess struct { // ApplicationRequiredResourceAccessResourceAccessInput is an input type that accepts ApplicationRequiredResourceAccessResourceAccessArgs and ApplicationRequiredResourceAccessResourceAccessOutput values. // You can construct a concrete instance of `ApplicationRequiredResourceAccessResourceAccessInput` via: // -// ApplicationRequiredResourceAccessResourceAccessArgs{...} +// ApplicationRequiredResourceAccessResourceAccessArgs{...} type ApplicationRequiredResourceAccessResourceAccessInput interface { pulumi.Input @@ -1462,7 +1462,7 @@ func (i ApplicationRequiredResourceAccessResourceAccessArgs) ToApplicationRequir // ApplicationRequiredResourceAccessResourceAccessArrayInput is an input type that accepts ApplicationRequiredResourceAccessResourceAccessArray and ApplicationRequiredResourceAccessResourceAccessArrayOutput values. // You can construct a concrete instance of `ApplicationRequiredResourceAccessResourceAccessArrayInput` via: // -// ApplicationRequiredResourceAccessResourceAccessArray{ ApplicationRequiredResourceAccessResourceAccessArgs{...} } +// ApplicationRequiredResourceAccessResourceAccessArray{ ApplicationRequiredResourceAccessResourceAccessArgs{...} } type ApplicationRequiredResourceAccessResourceAccessArrayInput interface { pulumi.Input @@ -1536,7 +1536,7 @@ type ApplicationSinglePageApplication struct { // ApplicationSinglePageApplicationInput is an input type that accepts ApplicationSinglePageApplicationArgs and ApplicationSinglePageApplicationOutput values. // You can construct a concrete instance of `ApplicationSinglePageApplicationInput` via: // -// ApplicationSinglePageApplicationArgs{...} +// ApplicationSinglePageApplicationArgs{...} type ApplicationSinglePageApplicationInput interface { pulumi.Input @@ -1572,11 +1572,11 @@ func (i ApplicationSinglePageApplicationArgs) ToApplicationSinglePageApplication // ApplicationSinglePageApplicationPtrInput is an input type that accepts ApplicationSinglePageApplicationArgs, ApplicationSinglePageApplicationPtr and ApplicationSinglePageApplicationPtrOutput values. // You can construct a concrete instance of `ApplicationSinglePageApplicationPtrInput` via: // -// ApplicationSinglePageApplicationArgs{...} +// ApplicationSinglePageApplicationArgs{...} // -// or: +// or: // -// nil +// nil type ApplicationSinglePageApplicationPtrInput interface { pulumi.Input @@ -1679,7 +1679,7 @@ type ApplicationWeb struct { // ApplicationWebInput is an input type that accepts ApplicationWebArgs and ApplicationWebOutput values. // You can construct a concrete instance of `ApplicationWebInput` via: // -// ApplicationWebArgs{...} +// ApplicationWebArgs{...} type ApplicationWebInput interface { pulumi.Input @@ -1721,11 +1721,11 @@ func (i ApplicationWebArgs) ToApplicationWebPtrOutputWithContext(ctx context.Con // ApplicationWebPtrInput is an input type that accepts ApplicationWebArgs, ApplicationWebPtr and ApplicationWebPtrOutput values. // You can construct a concrete instance of `ApplicationWebPtrInput` via: // -// ApplicationWebArgs{...} +// ApplicationWebArgs{...} // -// or: +// or: // -// nil +// nil type ApplicationWebPtrInput interface { pulumi.Input @@ -1869,7 +1869,7 @@ type ApplicationWebImplicitGrant struct { // ApplicationWebImplicitGrantInput is an input type that accepts ApplicationWebImplicitGrantArgs and ApplicationWebImplicitGrantOutput values. // You can construct a concrete instance of `ApplicationWebImplicitGrantInput` via: // -// ApplicationWebImplicitGrantArgs{...} +// ApplicationWebImplicitGrantArgs{...} type ApplicationWebImplicitGrantInput interface { pulumi.Input @@ -1907,11 +1907,11 @@ func (i ApplicationWebImplicitGrantArgs) ToApplicationWebImplicitGrantPtrOutputW // ApplicationWebImplicitGrantPtrInput is an input type that accepts ApplicationWebImplicitGrantArgs, ApplicationWebImplicitGrantPtr and ApplicationWebImplicitGrantPtrOutput values. // You can construct a concrete instance of `ApplicationWebImplicitGrantPtrInput` via: // -// ApplicationWebImplicitGrantArgs{...} +// ApplicationWebImplicitGrantArgs{...} // -// or: +// or: // -// nil +// nil type ApplicationWebImplicitGrantPtrInput interface { pulumi.Input @@ -2037,7 +2037,7 @@ type ConditionalAccessPolicyConditions struct { // ConditionalAccessPolicyConditionsInput is an input type that accepts ConditionalAccessPolicyConditionsArgs and ConditionalAccessPolicyConditionsOutput values. // You can construct a concrete instance of `ConditionalAccessPolicyConditionsInput` via: // -// ConditionalAccessPolicyConditionsArgs{...} +// ConditionalAccessPolicyConditionsArgs{...} type ConditionalAccessPolicyConditionsInput interface { pulumi.Input @@ -2087,11 +2087,11 @@ func (i ConditionalAccessPolicyConditionsArgs) ToConditionalAccessPolicyConditio // ConditionalAccessPolicyConditionsPtrInput is an input type that accepts ConditionalAccessPolicyConditionsArgs, ConditionalAccessPolicyConditionsPtr and ConditionalAccessPolicyConditionsPtrOutput values. // You can construct a concrete instance of `ConditionalAccessPolicyConditionsPtrInput` via: // -// ConditionalAccessPolicyConditionsArgs{...} +// ConditionalAccessPolicyConditionsArgs{...} // -// or: +// or: // -// nil +// nil type ConditionalAccessPolicyConditionsPtrInput interface { pulumi.Input @@ -2303,7 +2303,7 @@ type ConditionalAccessPolicyConditionsApplications struct { // ConditionalAccessPolicyConditionsApplicationsInput is an input type that accepts ConditionalAccessPolicyConditionsApplicationsArgs and ConditionalAccessPolicyConditionsApplicationsOutput values. // You can construct a concrete instance of `ConditionalAccessPolicyConditionsApplicationsInput` via: // -// ConditionalAccessPolicyConditionsApplicationsArgs{...} +// ConditionalAccessPolicyConditionsApplicationsArgs{...} type ConditionalAccessPolicyConditionsApplicationsInput interface { pulumi.Input @@ -2343,11 +2343,11 @@ func (i ConditionalAccessPolicyConditionsApplicationsArgs) ToConditionalAccessPo // ConditionalAccessPolicyConditionsApplicationsPtrInput is an input type that accepts ConditionalAccessPolicyConditionsApplicationsArgs, ConditionalAccessPolicyConditionsApplicationsPtr and ConditionalAccessPolicyConditionsApplicationsPtrOutput values. // You can construct a concrete instance of `ConditionalAccessPolicyConditionsApplicationsPtrInput` via: // -// ConditionalAccessPolicyConditionsApplicationsArgs{...} +// ConditionalAccessPolicyConditionsApplicationsArgs{...} // -// or: +// or: // -// nil +// nil type ConditionalAccessPolicyConditionsApplicationsPtrInput interface { pulumi.Input @@ -2474,7 +2474,7 @@ type ConditionalAccessPolicyConditionsDevices struct { // ConditionalAccessPolicyConditionsDevicesInput is an input type that accepts ConditionalAccessPolicyConditionsDevicesArgs and ConditionalAccessPolicyConditionsDevicesOutput values. // You can construct a concrete instance of `ConditionalAccessPolicyConditionsDevicesInput` via: // -// ConditionalAccessPolicyConditionsDevicesArgs{...} +// ConditionalAccessPolicyConditionsDevicesArgs{...} type ConditionalAccessPolicyConditionsDevicesInput interface { pulumi.Input @@ -2510,11 +2510,11 @@ func (i ConditionalAccessPolicyConditionsDevicesArgs) ToConditionalAccessPolicyC // ConditionalAccessPolicyConditionsDevicesPtrInput is an input type that accepts ConditionalAccessPolicyConditionsDevicesArgs, ConditionalAccessPolicyConditionsDevicesPtr and ConditionalAccessPolicyConditionsDevicesPtrOutput values. // You can construct a concrete instance of `ConditionalAccessPolicyConditionsDevicesPtrInput` via: // -// ConditionalAccessPolicyConditionsDevicesArgs{...} +// ConditionalAccessPolicyConditionsDevicesArgs{...} // -// or: +// or: // -// nil +// nil type ConditionalAccessPolicyConditionsDevicesPtrInput interface { pulumi.Input @@ -2615,7 +2615,7 @@ type ConditionalAccessPolicyConditionsDevicesFilter struct { // ConditionalAccessPolicyConditionsDevicesFilterInput is an input type that accepts ConditionalAccessPolicyConditionsDevicesFilterArgs and ConditionalAccessPolicyConditionsDevicesFilterOutput values. // You can construct a concrete instance of `ConditionalAccessPolicyConditionsDevicesFilterInput` via: // -// ConditionalAccessPolicyConditionsDevicesFilterArgs{...} +// ConditionalAccessPolicyConditionsDevicesFilterArgs{...} type ConditionalAccessPolicyConditionsDevicesFilterInput interface { pulumi.Input @@ -2653,11 +2653,11 @@ func (i ConditionalAccessPolicyConditionsDevicesFilterArgs) ToConditionalAccessP // ConditionalAccessPolicyConditionsDevicesFilterPtrInput is an input type that accepts ConditionalAccessPolicyConditionsDevicesFilterArgs, ConditionalAccessPolicyConditionsDevicesFilterPtr and ConditionalAccessPolicyConditionsDevicesFilterPtrOutput values. // You can construct a concrete instance of `ConditionalAccessPolicyConditionsDevicesFilterPtrInput` via: // -// ConditionalAccessPolicyConditionsDevicesFilterArgs{...} +// ConditionalAccessPolicyConditionsDevicesFilterArgs{...} // -// or: +// or: // -// nil +// nil type ConditionalAccessPolicyConditionsDevicesFilterPtrInput interface { pulumi.Input @@ -2771,7 +2771,7 @@ type ConditionalAccessPolicyConditionsLocations struct { // ConditionalAccessPolicyConditionsLocationsInput is an input type that accepts ConditionalAccessPolicyConditionsLocationsArgs and ConditionalAccessPolicyConditionsLocationsOutput values. // You can construct a concrete instance of `ConditionalAccessPolicyConditionsLocationsInput` via: // -// ConditionalAccessPolicyConditionsLocationsArgs{...} +// ConditionalAccessPolicyConditionsLocationsArgs{...} type ConditionalAccessPolicyConditionsLocationsInput interface { pulumi.Input @@ -2809,11 +2809,11 @@ func (i ConditionalAccessPolicyConditionsLocationsArgs) ToConditionalAccessPolic // ConditionalAccessPolicyConditionsLocationsPtrInput is an input type that accepts ConditionalAccessPolicyConditionsLocationsArgs, ConditionalAccessPolicyConditionsLocationsPtr and ConditionalAccessPolicyConditionsLocationsPtrOutput values. // You can construct a concrete instance of `ConditionalAccessPolicyConditionsLocationsPtrInput` via: // -// ConditionalAccessPolicyConditionsLocationsArgs{...} +// ConditionalAccessPolicyConditionsLocationsArgs{...} // -// or: +// or: // -// nil +// nil type ConditionalAccessPolicyConditionsLocationsPtrInput interface { pulumi.Input @@ -2927,7 +2927,7 @@ type ConditionalAccessPolicyConditionsPlatforms struct { // ConditionalAccessPolicyConditionsPlatformsInput is an input type that accepts ConditionalAccessPolicyConditionsPlatformsArgs and ConditionalAccessPolicyConditionsPlatformsOutput values. // You can construct a concrete instance of `ConditionalAccessPolicyConditionsPlatformsInput` via: // -// ConditionalAccessPolicyConditionsPlatformsArgs{...} +// ConditionalAccessPolicyConditionsPlatformsArgs{...} type ConditionalAccessPolicyConditionsPlatformsInput interface { pulumi.Input @@ -2965,11 +2965,11 @@ func (i ConditionalAccessPolicyConditionsPlatformsArgs) ToConditionalAccessPolic // ConditionalAccessPolicyConditionsPlatformsPtrInput is an input type that accepts ConditionalAccessPolicyConditionsPlatformsArgs, ConditionalAccessPolicyConditionsPlatformsPtr and ConditionalAccessPolicyConditionsPlatformsPtrOutput values. // You can construct a concrete instance of `ConditionalAccessPolicyConditionsPlatformsPtrInput` via: // -// ConditionalAccessPolicyConditionsPlatformsArgs{...} +// ConditionalAccessPolicyConditionsPlatformsArgs{...} // -// or: +// or: // -// nil +// nil type ConditionalAccessPolicyConditionsPlatformsPtrInput interface { pulumi.Input @@ -3091,7 +3091,7 @@ type ConditionalAccessPolicyConditionsUsers struct { // ConditionalAccessPolicyConditionsUsersInput is an input type that accepts ConditionalAccessPolicyConditionsUsersArgs and ConditionalAccessPolicyConditionsUsersOutput values. // You can construct a concrete instance of `ConditionalAccessPolicyConditionsUsersInput` via: // -// ConditionalAccessPolicyConditionsUsersArgs{...} +// ConditionalAccessPolicyConditionsUsersArgs{...} type ConditionalAccessPolicyConditionsUsersInput interface { pulumi.Input @@ -3137,11 +3137,11 @@ func (i ConditionalAccessPolicyConditionsUsersArgs) ToConditionalAccessPolicyCon // ConditionalAccessPolicyConditionsUsersPtrInput is an input type that accepts ConditionalAccessPolicyConditionsUsersArgs, ConditionalAccessPolicyConditionsUsersPtr and ConditionalAccessPolicyConditionsUsersPtrOutput values. // You can construct a concrete instance of `ConditionalAccessPolicyConditionsUsersPtrInput` via: // -// ConditionalAccessPolicyConditionsUsersArgs{...} +// ConditionalAccessPolicyConditionsUsersArgs{...} // -// or: +// or: // -// nil +// nil type ConditionalAccessPolicyConditionsUsersPtrInput interface { pulumi.Input @@ -3319,7 +3319,7 @@ type ConditionalAccessPolicyGrantControls struct { // ConditionalAccessPolicyGrantControlsInput is an input type that accepts ConditionalAccessPolicyGrantControlsArgs and ConditionalAccessPolicyGrantControlsOutput values. // You can construct a concrete instance of `ConditionalAccessPolicyGrantControlsInput` via: // -// ConditionalAccessPolicyGrantControlsArgs{...} +// ConditionalAccessPolicyGrantControlsArgs{...} type ConditionalAccessPolicyGrantControlsInput interface { pulumi.Input @@ -3361,11 +3361,11 @@ func (i ConditionalAccessPolicyGrantControlsArgs) ToConditionalAccessPolicyGrant // ConditionalAccessPolicyGrantControlsPtrInput is an input type that accepts ConditionalAccessPolicyGrantControlsArgs, ConditionalAccessPolicyGrantControlsPtr and ConditionalAccessPolicyGrantControlsPtrOutput values. // You can construct a concrete instance of `ConditionalAccessPolicyGrantControlsPtrInput` via: // -// ConditionalAccessPolicyGrantControlsArgs{...} +// ConditionalAccessPolicyGrantControlsArgs{...} // -// or: +// or: // -// nil +// nil type ConditionalAccessPolicyGrantControlsPtrInput interface { pulumi.Input @@ -3515,7 +3515,7 @@ type ConditionalAccessPolicySessionControls struct { // ConditionalAccessPolicySessionControlsInput is an input type that accepts ConditionalAccessPolicySessionControlsArgs and ConditionalAccessPolicySessionControlsOutput values. // You can construct a concrete instance of `ConditionalAccessPolicySessionControlsInput` via: // -// ConditionalAccessPolicySessionControlsArgs{...} +// ConditionalAccessPolicySessionControlsArgs{...} type ConditionalAccessPolicySessionControlsInput interface { pulumi.Input @@ -3559,11 +3559,11 @@ func (i ConditionalAccessPolicySessionControlsArgs) ToConditionalAccessPolicySes // ConditionalAccessPolicySessionControlsPtrInput is an input type that accepts ConditionalAccessPolicySessionControlsArgs, ConditionalAccessPolicySessionControlsPtr and ConditionalAccessPolicySessionControlsPtrOutput values. // You can construct a concrete instance of `ConditionalAccessPolicySessionControlsPtrInput` via: // -// ConditionalAccessPolicySessionControlsArgs{...} +// ConditionalAccessPolicySessionControlsArgs{...} // -// or: +// or: // -// nil +// nil type ConditionalAccessPolicySessionControlsPtrInput interface { pulumi.Input @@ -3720,7 +3720,7 @@ type CustomDirectoryRolePermission struct { // CustomDirectoryRolePermissionInput is an input type that accepts CustomDirectoryRolePermissionArgs and CustomDirectoryRolePermissionOutput values. // You can construct a concrete instance of `CustomDirectoryRolePermissionInput` via: // -// CustomDirectoryRolePermissionArgs{...} +// CustomDirectoryRolePermissionArgs{...} type CustomDirectoryRolePermissionInput interface { pulumi.Input @@ -3748,7 +3748,7 @@ func (i CustomDirectoryRolePermissionArgs) ToCustomDirectoryRolePermissionOutput // CustomDirectoryRolePermissionArrayInput is an input type that accepts CustomDirectoryRolePermissionArray and CustomDirectoryRolePermissionArrayOutput values. // You can construct a concrete instance of `CustomDirectoryRolePermissionArrayInput` via: // -// CustomDirectoryRolePermissionArray{ CustomDirectoryRolePermissionArgs{...} } +// CustomDirectoryRolePermissionArray{ CustomDirectoryRolePermissionArgs{...} } type CustomDirectoryRolePermissionArrayInput interface { pulumi.Input @@ -3819,7 +3819,7 @@ type GroupDynamicMembership struct { // GroupDynamicMembershipInput is an input type that accepts GroupDynamicMembershipArgs and GroupDynamicMembershipOutput values. // You can construct a concrete instance of `GroupDynamicMembershipInput` via: // -// GroupDynamicMembershipArgs{...} +// GroupDynamicMembershipArgs{...} type GroupDynamicMembershipInput interface { pulumi.Input @@ -3857,11 +3857,11 @@ func (i GroupDynamicMembershipArgs) ToGroupDynamicMembershipPtrOutputWithContext // GroupDynamicMembershipPtrInput is an input type that accepts GroupDynamicMembershipArgs, GroupDynamicMembershipPtr and GroupDynamicMembershipPtrOutput values. // You can construct a concrete instance of `GroupDynamicMembershipPtrInput` via: // -// GroupDynamicMembershipArgs{...} +// GroupDynamicMembershipArgs{...} // -// or: +// or: // -// nil +// nil type GroupDynamicMembershipPtrInput interface { pulumi.Input @@ -3977,7 +3977,7 @@ type InvitationMessage struct { // InvitationMessageInput is an input type that accepts InvitationMessageArgs and InvitationMessageOutput values. // You can construct a concrete instance of `InvitationMessageInput` via: // -// InvitationMessageArgs{...} +// InvitationMessageArgs{...} type InvitationMessageInput interface { pulumi.Input @@ -4017,11 +4017,11 @@ func (i InvitationMessageArgs) ToInvitationMessagePtrOutputWithContext(ctx conte // InvitationMessagePtrInput is an input type that accepts InvitationMessageArgs, InvitationMessagePtr and InvitationMessagePtrOutput values. // You can construct a concrete instance of `InvitationMessagePtrInput` via: // -// InvitationMessageArgs{...} +// InvitationMessageArgs{...} // -// or: +// or: // -// nil +// nil type InvitationMessagePtrInput interface { pulumi.Input @@ -4150,7 +4150,7 @@ type NamedLocationCountry struct { // NamedLocationCountryInput is an input type that accepts NamedLocationCountryArgs and NamedLocationCountryOutput values. // You can construct a concrete instance of `NamedLocationCountryInput` via: // -// NamedLocationCountryArgs{...} +// NamedLocationCountryArgs{...} type NamedLocationCountryInput interface { pulumi.Input @@ -4188,11 +4188,11 @@ func (i NamedLocationCountryArgs) ToNamedLocationCountryPtrOutputWithContext(ctx // NamedLocationCountryPtrInput is an input type that accepts NamedLocationCountryArgs, NamedLocationCountryPtr and NamedLocationCountryPtrOutput values. // You can construct a concrete instance of `NamedLocationCountryPtrInput` via: // -// NamedLocationCountryArgs{...} +// NamedLocationCountryArgs{...} // -// or: +// or: // -// nil +// nil type NamedLocationCountryPtrInput interface { pulumi.Input @@ -4306,7 +4306,7 @@ type NamedLocationIp struct { // NamedLocationIpInput is an input type that accepts NamedLocationIpArgs and NamedLocationIpOutput values. // You can construct a concrete instance of `NamedLocationIpInput` via: // -// NamedLocationIpArgs{...} +// NamedLocationIpArgs{...} type NamedLocationIpInput interface { pulumi.Input @@ -4344,11 +4344,11 @@ func (i NamedLocationIpArgs) ToNamedLocationIpPtrOutputWithContext(ctx context.C // NamedLocationIpPtrInput is an input type that accepts NamedLocationIpArgs, NamedLocationIpPtr and NamedLocationIpPtrOutput values. // You can construct a concrete instance of `NamedLocationIpPtrInput` via: // -// NamedLocationIpArgs{...} +// NamedLocationIpArgs{...} // -// or: +// or: // -// nil +// nil type NamedLocationIpPtrInput interface { pulumi.Input @@ -4470,7 +4470,7 @@ type ServicePrincipalAppRole struct { // ServicePrincipalAppRoleInput is an input type that accepts ServicePrincipalAppRoleArgs and ServicePrincipalAppRoleOutput values. // You can construct a concrete instance of `ServicePrincipalAppRoleInput` via: // -// ServicePrincipalAppRoleArgs{...} +// ServicePrincipalAppRoleArgs{...} type ServicePrincipalAppRoleInput interface { pulumi.Input @@ -4508,7 +4508,7 @@ func (i ServicePrincipalAppRoleArgs) ToServicePrincipalAppRoleOutputWithContext( // ServicePrincipalAppRoleArrayInput is an input type that accepts ServicePrincipalAppRoleArray and ServicePrincipalAppRoleArrayOutput values. // You can construct a concrete instance of `ServicePrincipalAppRoleArrayInput` via: // -// ServicePrincipalAppRoleArray{ ServicePrincipalAppRoleArgs{...} } +// ServicePrincipalAppRoleArray{ ServicePrincipalAppRoleArgs{...} } type ServicePrincipalAppRoleArrayInput interface { pulumi.Input @@ -4604,7 +4604,7 @@ type ServicePrincipalFeature struct { // ServicePrincipalFeatureInput is an input type that accepts ServicePrincipalFeatureArgs and ServicePrincipalFeatureOutput values. // You can construct a concrete instance of `ServicePrincipalFeatureInput` via: // -// ServicePrincipalFeatureArgs{...} +// ServicePrincipalFeatureArgs{...} type ServicePrincipalFeatureInput interface { pulumi.Input @@ -4634,7 +4634,7 @@ func (i ServicePrincipalFeatureArgs) ToServicePrincipalFeatureOutputWithContext( // ServicePrincipalFeatureArrayInput is an input type that accepts ServicePrincipalFeatureArray and ServicePrincipalFeatureArrayOutput values. // You can construct a concrete instance of `ServicePrincipalFeatureArrayInput` via: // -// ServicePrincipalFeatureArray{ ServicePrincipalFeatureArgs{...} } +// ServicePrincipalFeatureArray{ ServicePrincipalFeatureArgs{...} } type ServicePrincipalFeatureArrayInput interface { pulumi.Input @@ -4720,7 +4720,7 @@ type ServicePrincipalFeatureTag struct { // ServicePrincipalFeatureTagInput is an input type that accepts ServicePrincipalFeatureTagArgs and ServicePrincipalFeatureTagOutput values. // You can construct a concrete instance of `ServicePrincipalFeatureTagInput` via: // -// ServicePrincipalFeatureTagArgs{...} +// ServicePrincipalFeatureTagArgs{...} type ServicePrincipalFeatureTagInput interface { pulumi.Input @@ -4754,7 +4754,7 @@ func (i ServicePrincipalFeatureTagArgs) ToServicePrincipalFeatureTagOutputWithCo // ServicePrincipalFeatureTagArrayInput is an input type that accepts ServicePrincipalFeatureTagArray and ServicePrincipalFeatureTagArrayOutput values. // You can construct a concrete instance of `ServicePrincipalFeatureTagArrayInput` via: // -// ServicePrincipalFeatureTagArray{ ServicePrincipalFeatureTagArgs{...} } +// ServicePrincipalFeatureTagArray{ ServicePrincipalFeatureTagArgs{...} } type ServicePrincipalFeatureTagArrayInput interface { pulumi.Input @@ -4852,7 +4852,7 @@ type ServicePrincipalOauth2PermissionScope struct { // ServicePrincipalOauth2PermissionScopeInput is an input type that accepts ServicePrincipalOauth2PermissionScopeArgs and ServicePrincipalOauth2PermissionScopeOutput values. // You can construct a concrete instance of `ServicePrincipalOauth2PermissionScopeInput` via: // -// ServicePrincipalOauth2PermissionScopeArgs{...} +// ServicePrincipalOauth2PermissionScopeArgs{...} type ServicePrincipalOauth2PermissionScopeInput interface { pulumi.Input @@ -4894,7 +4894,7 @@ func (i ServicePrincipalOauth2PermissionScopeArgs) ToServicePrincipalOauth2Permi // ServicePrincipalOauth2PermissionScopeArrayInput is an input type that accepts ServicePrincipalOauth2PermissionScopeArray and ServicePrincipalOauth2PermissionScopeArrayOutput values. // You can construct a concrete instance of `ServicePrincipalOauth2PermissionScopeArrayInput` via: // -// ServicePrincipalOauth2PermissionScopeArray{ ServicePrincipalOauth2PermissionScopeArgs{...} } +// ServicePrincipalOauth2PermissionScopeArray{ ServicePrincipalOauth2PermissionScopeArgs{...} } type ServicePrincipalOauth2PermissionScopeArrayInput interface { pulumi.Input @@ -4998,7 +4998,7 @@ type ServicePrincipalSamlSingleSignOn struct { // ServicePrincipalSamlSingleSignOnInput is an input type that accepts ServicePrincipalSamlSingleSignOnArgs and ServicePrincipalSamlSingleSignOnOutput values. // You can construct a concrete instance of `ServicePrincipalSamlSingleSignOnInput` via: // -// ServicePrincipalSamlSingleSignOnArgs{...} +// ServicePrincipalSamlSingleSignOnArgs{...} type ServicePrincipalSamlSingleSignOnInput interface { pulumi.Input @@ -5034,11 +5034,11 @@ func (i ServicePrincipalSamlSingleSignOnArgs) ToServicePrincipalSamlSingleSignOn // ServicePrincipalSamlSingleSignOnPtrInput is an input type that accepts ServicePrincipalSamlSingleSignOnArgs, ServicePrincipalSamlSingleSignOnPtr and ServicePrincipalSamlSingleSignOnPtrOutput values. // You can construct a concrete instance of `ServicePrincipalSamlSingleSignOnPtrInput` via: // -// ServicePrincipalSamlSingleSignOnArgs{...} +// ServicePrincipalSamlSingleSignOnArgs{...} // -// or: +// or: // -// nil +// nil type ServicePrincipalSamlSingleSignOnPtrInput interface { pulumi.Input @@ -5141,7 +5141,7 @@ type GetApplicationApi struct { // GetApplicationApiInput is an input type that accepts GetApplicationApiArgs and GetApplicationApiOutput values. // You can construct a concrete instance of `GetApplicationApiInput` via: // -// GetApplicationApiArgs{...} +// GetApplicationApiArgs{...} type GetApplicationApiInput interface { pulumi.Input @@ -5175,7 +5175,7 @@ func (i GetApplicationApiArgs) ToGetApplicationApiOutputWithContext(ctx context. // GetApplicationApiArrayInput is an input type that accepts GetApplicationApiArray and GetApplicationApiArrayOutput values. // You can construct a concrete instance of `GetApplicationApiArrayInput` via: // -// GetApplicationApiArray{ GetApplicationApiArgs{...} } +// GetApplicationApiArray{ GetApplicationApiArgs{...} } type GetApplicationApiArrayInput interface { pulumi.Input @@ -5273,7 +5273,7 @@ type GetApplicationApiOauth2PermissionScope struct { // GetApplicationApiOauth2PermissionScopeInput is an input type that accepts GetApplicationApiOauth2PermissionScopeArgs and GetApplicationApiOauth2PermissionScopeOutput values. // You can construct a concrete instance of `GetApplicationApiOauth2PermissionScopeInput` via: // -// GetApplicationApiOauth2PermissionScopeArgs{...} +// GetApplicationApiOauth2PermissionScopeArgs{...} type GetApplicationApiOauth2PermissionScopeInput interface { pulumi.Input @@ -5315,7 +5315,7 @@ func (i GetApplicationApiOauth2PermissionScopeArgs) ToGetApplicationApiOauth2Per // GetApplicationApiOauth2PermissionScopeArrayInput is an input type that accepts GetApplicationApiOauth2PermissionScopeArray and GetApplicationApiOauth2PermissionScopeArrayOutput values. // You can construct a concrete instance of `GetApplicationApiOauth2PermissionScopeArrayInput` via: // -// GetApplicationApiOauth2PermissionScopeArray{ GetApplicationApiOauth2PermissionScopeArgs{...} } +// GetApplicationApiOauth2PermissionScopeArray{ GetApplicationApiOauth2PermissionScopeArgs{...} } type GetApplicationApiOauth2PermissionScopeArrayInput interface { pulumi.Input @@ -5429,7 +5429,7 @@ type GetApplicationAppRole struct { // GetApplicationAppRoleInput is an input type that accepts GetApplicationAppRoleArgs and GetApplicationAppRoleOutput values. // You can construct a concrete instance of `GetApplicationAppRoleInput` via: // -// GetApplicationAppRoleArgs{...} +// GetApplicationAppRoleArgs{...} type GetApplicationAppRoleInput interface { pulumi.Input @@ -5467,7 +5467,7 @@ func (i GetApplicationAppRoleArgs) ToGetApplicationAppRoleOutputWithContext(ctx // GetApplicationAppRoleArrayInput is an input type that accepts GetApplicationAppRoleArray and GetApplicationAppRoleArrayOutput values. // You can construct a concrete instance of `GetApplicationAppRoleArrayInput` via: // -// GetApplicationAppRoleArray{ GetApplicationAppRoleArgs{...} } +// GetApplicationAppRoleArray{ GetApplicationAppRoleArgs{...} } type GetApplicationAppRoleArrayInput interface { pulumi.Input @@ -5567,7 +5567,7 @@ type GetApplicationFeatureTag struct { // GetApplicationFeatureTagInput is an input type that accepts GetApplicationFeatureTagArgs and GetApplicationFeatureTagOutput values. // You can construct a concrete instance of `GetApplicationFeatureTagInput` via: // -// GetApplicationFeatureTagArgs{...} +// GetApplicationFeatureTagArgs{...} type GetApplicationFeatureTagInput interface { pulumi.Input @@ -5601,7 +5601,7 @@ func (i GetApplicationFeatureTagArgs) ToGetApplicationFeatureTagOutputWithContex // GetApplicationFeatureTagArrayInput is an input type that accepts GetApplicationFeatureTagArray and GetApplicationFeatureTagArrayOutput values. // You can construct a concrete instance of `GetApplicationFeatureTagArrayInput` via: // -// GetApplicationFeatureTagArray{ GetApplicationFeatureTagArgs{...} } +// GetApplicationFeatureTagArray{ GetApplicationFeatureTagArgs{...} } type GetApplicationFeatureTagArrayInput interface { pulumi.Input @@ -5689,7 +5689,7 @@ type GetApplicationOptionalClaim struct { // GetApplicationOptionalClaimInput is an input type that accepts GetApplicationOptionalClaimArgs and GetApplicationOptionalClaimOutput values. // You can construct a concrete instance of `GetApplicationOptionalClaimInput` via: // -// GetApplicationOptionalClaimArgs{...} +// GetApplicationOptionalClaimArgs{...} type GetApplicationOptionalClaimInput interface { pulumi.Input @@ -5721,7 +5721,7 @@ func (i GetApplicationOptionalClaimArgs) ToGetApplicationOptionalClaimOutputWith // GetApplicationOptionalClaimArrayInput is an input type that accepts GetApplicationOptionalClaimArray and GetApplicationOptionalClaimArrayOutput values. // You can construct a concrete instance of `GetApplicationOptionalClaimArrayInput` via: // -// GetApplicationOptionalClaimArray{ GetApplicationOptionalClaimArgs{...} } +// GetApplicationOptionalClaimArray{ GetApplicationOptionalClaimArgs{...} } type GetApplicationOptionalClaimArrayInput interface { pulumi.Input @@ -5806,7 +5806,7 @@ type GetApplicationOptionalClaimAccessToken struct { // GetApplicationOptionalClaimAccessTokenInput is an input type that accepts GetApplicationOptionalClaimAccessTokenArgs and GetApplicationOptionalClaimAccessTokenOutput values. // You can construct a concrete instance of `GetApplicationOptionalClaimAccessTokenInput` via: // -// GetApplicationOptionalClaimAccessTokenArgs{...} +// GetApplicationOptionalClaimAccessTokenArgs{...} type GetApplicationOptionalClaimAccessTokenInput interface { pulumi.Input @@ -5840,7 +5840,7 @@ func (i GetApplicationOptionalClaimAccessTokenArgs) ToGetApplicationOptionalClai // GetApplicationOptionalClaimAccessTokenArrayInput is an input type that accepts GetApplicationOptionalClaimAccessTokenArray and GetApplicationOptionalClaimAccessTokenArrayOutput values. // You can construct a concrete instance of `GetApplicationOptionalClaimAccessTokenArrayInput` via: // -// GetApplicationOptionalClaimAccessTokenArray{ GetApplicationOptionalClaimAccessTokenArgs{...} } +// GetApplicationOptionalClaimAccessTokenArray{ GetApplicationOptionalClaimAccessTokenArgs{...} } type GetApplicationOptionalClaimAccessTokenArrayInput interface { pulumi.Input @@ -5930,7 +5930,7 @@ type GetApplicationOptionalClaimIdToken struct { // GetApplicationOptionalClaimIdTokenInput is an input type that accepts GetApplicationOptionalClaimIdTokenArgs and GetApplicationOptionalClaimIdTokenOutput values. // You can construct a concrete instance of `GetApplicationOptionalClaimIdTokenInput` via: // -// GetApplicationOptionalClaimIdTokenArgs{...} +// GetApplicationOptionalClaimIdTokenArgs{...} type GetApplicationOptionalClaimIdTokenInput interface { pulumi.Input @@ -5964,7 +5964,7 @@ func (i GetApplicationOptionalClaimIdTokenArgs) ToGetApplicationOptionalClaimIdT // GetApplicationOptionalClaimIdTokenArrayInput is an input type that accepts GetApplicationOptionalClaimIdTokenArray and GetApplicationOptionalClaimIdTokenArrayOutput values. // You can construct a concrete instance of `GetApplicationOptionalClaimIdTokenArrayInput` via: // -// GetApplicationOptionalClaimIdTokenArray{ GetApplicationOptionalClaimIdTokenArgs{...} } +// GetApplicationOptionalClaimIdTokenArray{ GetApplicationOptionalClaimIdTokenArgs{...} } type GetApplicationOptionalClaimIdTokenArrayInput interface { pulumi.Input @@ -6054,7 +6054,7 @@ type GetApplicationOptionalClaimSaml2Token struct { // GetApplicationOptionalClaimSaml2TokenInput is an input type that accepts GetApplicationOptionalClaimSaml2TokenArgs and GetApplicationOptionalClaimSaml2TokenOutput values. // You can construct a concrete instance of `GetApplicationOptionalClaimSaml2TokenInput` via: // -// GetApplicationOptionalClaimSaml2TokenArgs{...} +// GetApplicationOptionalClaimSaml2TokenArgs{...} type GetApplicationOptionalClaimSaml2TokenInput interface { pulumi.Input @@ -6088,7 +6088,7 @@ func (i GetApplicationOptionalClaimSaml2TokenArgs) ToGetApplicationOptionalClaim // GetApplicationOptionalClaimSaml2TokenArrayInput is an input type that accepts GetApplicationOptionalClaimSaml2TokenArray and GetApplicationOptionalClaimSaml2TokenArrayOutput values. // You can construct a concrete instance of `GetApplicationOptionalClaimSaml2TokenArrayInput` via: // -// GetApplicationOptionalClaimSaml2TokenArray{ GetApplicationOptionalClaimSaml2TokenArgs{...} } +// GetApplicationOptionalClaimSaml2TokenArray{ GetApplicationOptionalClaimSaml2TokenArgs{...} } type GetApplicationOptionalClaimSaml2TokenArrayInput interface { pulumi.Input @@ -6172,7 +6172,7 @@ type GetApplicationPublicClient struct { // GetApplicationPublicClientInput is an input type that accepts GetApplicationPublicClientArgs and GetApplicationPublicClientOutput values. // You can construct a concrete instance of `GetApplicationPublicClientInput` via: // -// GetApplicationPublicClientArgs{...} +// GetApplicationPublicClientArgs{...} type GetApplicationPublicClientInput interface { pulumi.Input @@ -6200,7 +6200,7 @@ func (i GetApplicationPublicClientArgs) ToGetApplicationPublicClientOutputWithCo // GetApplicationPublicClientArrayInput is an input type that accepts GetApplicationPublicClientArray and GetApplicationPublicClientArrayOutput values. // You can construct a concrete instance of `GetApplicationPublicClientArrayInput` via: // -// GetApplicationPublicClientArray{ GetApplicationPublicClientArgs{...} } +// GetApplicationPublicClientArray{ GetApplicationPublicClientArgs{...} } type GetApplicationPublicClientArrayInput interface { pulumi.Input @@ -6271,7 +6271,7 @@ type GetApplicationRequiredResourceAccess struct { // GetApplicationRequiredResourceAccessInput is an input type that accepts GetApplicationRequiredResourceAccessArgs and GetApplicationRequiredResourceAccessOutput values. // You can construct a concrete instance of `GetApplicationRequiredResourceAccessInput` via: // -// GetApplicationRequiredResourceAccessArgs{...} +// GetApplicationRequiredResourceAccessArgs{...} type GetApplicationRequiredResourceAccessInput interface { pulumi.Input @@ -6301,7 +6301,7 @@ func (i GetApplicationRequiredResourceAccessArgs) ToGetApplicationRequiredResour // GetApplicationRequiredResourceAccessArrayInput is an input type that accepts GetApplicationRequiredResourceAccessArray and GetApplicationRequiredResourceAccessArrayOutput values. // You can construct a concrete instance of `GetApplicationRequiredResourceAccessArrayInput` via: // -// GetApplicationRequiredResourceAccessArray{ GetApplicationRequiredResourceAccessArgs{...} } +// GetApplicationRequiredResourceAccessArray{ GetApplicationRequiredResourceAccessArgs{...} } type GetApplicationRequiredResourceAccessArrayInput interface { pulumi.Input @@ -6379,7 +6379,7 @@ type GetApplicationRequiredResourceAccessResourceAccess struct { // GetApplicationRequiredResourceAccessResourceAccessInput is an input type that accepts GetApplicationRequiredResourceAccessResourceAccessArgs and GetApplicationRequiredResourceAccessResourceAccessOutput values. // You can construct a concrete instance of `GetApplicationRequiredResourceAccessResourceAccessInput` via: // -// GetApplicationRequiredResourceAccessResourceAccessArgs{...} +// GetApplicationRequiredResourceAccessResourceAccessArgs{...} type GetApplicationRequiredResourceAccessResourceAccessInput interface { pulumi.Input @@ -6409,7 +6409,7 @@ func (i GetApplicationRequiredResourceAccessResourceAccessArgs) ToGetApplication // GetApplicationRequiredResourceAccessResourceAccessArrayInput is an input type that accepts GetApplicationRequiredResourceAccessResourceAccessArray and GetApplicationRequiredResourceAccessResourceAccessArrayOutput values. // You can construct a concrete instance of `GetApplicationRequiredResourceAccessResourceAccessArrayInput` via: // -// GetApplicationRequiredResourceAccessResourceAccessArray{ GetApplicationRequiredResourceAccessResourceAccessArgs{...} } +// GetApplicationRequiredResourceAccessResourceAccessArray{ GetApplicationRequiredResourceAccessResourceAccessArgs{...} } type GetApplicationRequiredResourceAccessResourceAccessArrayInput interface { pulumi.Input @@ -6483,7 +6483,7 @@ type GetApplicationSinglePageApplication struct { // GetApplicationSinglePageApplicationInput is an input type that accepts GetApplicationSinglePageApplicationArgs and GetApplicationSinglePageApplicationOutput values. // You can construct a concrete instance of `GetApplicationSinglePageApplicationInput` via: // -// GetApplicationSinglePageApplicationArgs{...} +// GetApplicationSinglePageApplicationArgs{...} type GetApplicationSinglePageApplicationInput interface { pulumi.Input @@ -6511,7 +6511,7 @@ func (i GetApplicationSinglePageApplicationArgs) ToGetApplicationSinglePageAppli // GetApplicationSinglePageApplicationArrayInput is an input type that accepts GetApplicationSinglePageApplicationArray and GetApplicationSinglePageApplicationArrayOutput values. // You can construct a concrete instance of `GetApplicationSinglePageApplicationArrayInput` via: // -// GetApplicationSinglePageApplicationArray{ GetApplicationSinglePageApplicationArgs{...} } +// GetApplicationSinglePageApplicationArray{ GetApplicationSinglePageApplicationArgs{...} } type GetApplicationSinglePageApplicationArrayInput interface { pulumi.Input @@ -6586,7 +6586,7 @@ type GetApplicationWeb struct { // GetApplicationWebInput is an input type that accepts GetApplicationWebArgs and GetApplicationWebOutput values. // You can construct a concrete instance of `GetApplicationWebInput` via: // -// GetApplicationWebArgs{...} +// GetApplicationWebArgs{...} type GetApplicationWebInput interface { pulumi.Input @@ -6620,7 +6620,7 @@ func (i GetApplicationWebArgs) ToGetApplicationWebOutputWithContext(ctx context. // GetApplicationWebArrayInput is an input type that accepts GetApplicationWebArray and GetApplicationWebArrayOutput values. // You can construct a concrete instance of `GetApplicationWebArrayInput` via: // -// GetApplicationWebArray{ GetApplicationWebArgs{...} } +// GetApplicationWebArray{ GetApplicationWebArgs{...} } type GetApplicationWebArrayInput interface { pulumi.Input @@ -6706,7 +6706,7 @@ type GetApplicationWebImplicitGrant struct { // GetApplicationWebImplicitGrantInput is an input type that accepts GetApplicationWebImplicitGrantArgs and GetApplicationWebImplicitGrantOutput values. // You can construct a concrete instance of `GetApplicationWebImplicitGrantInput` via: // -// GetApplicationWebImplicitGrantArgs{...} +// GetApplicationWebImplicitGrantArgs{...} type GetApplicationWebImplicitGrantInput interface { pulumi.Input @@ -6736,7 +6736,7 @@ func (i GetApplicationWebImplicitGrantArgs) ToGetApplicationWebImplicitGrantOutp // GetApplicationWebImplicitGrantArrayInput is an input type that accepts GetApplicationWebImplicitGrantArray and GetApplicationWebImplicitGrantArrayOutput values. // You can construct a concrete instance of `GetApplicationWebImplicitGrantArrayInput` via: // -// GetApplicationWebImplicitGrantArray{ GetApplicationWebImplicitGrantArgs{...} } +// GetApplicationWebImplicitGrantArray{ GetApplicationWebImplicitGrantArgs{...} } type GetApplicationWebImplicitGrantArrayInput interface { pulumi.Input @@ -6824,7 +6824,7 @@ type GetDomainsDomain struct { // GetDomainsDomainInput is an input type that accepts GetDomainsDomainArgs and GetDomainsDomainOutput values. // You can construct a concrete instance of `GetDomainsDomainInput` via: // -// GetDomainsDomainArgs{...} +// GetDomainsDomainArgs{...} type GetDomainsDomainInput interface { pulumi.Input @@ -6866,7 +6866,7 @@ func (i GetDomainsDomainArgs) ToGetDomainsDomainOutputWithContext(ctx context.Co // GetDomainsDomainArrayInput is an input type that accepts GetDomainsDomainArray and GetDomainsDomainArrayOutput values. // You can construct a concrete instance of `GetDomainsDomainArrayInput` via: // -// GetDomainsDomainArray{ GetDomainsDomainArgs{...} } +// GetDomainsDomainArray{ GetDomainsDomainArgs{...} } type GetDomainsDomainArrayInput interface { pulumi.Input @@ -6972,7 +6972,7 @@ type GetGroupDynamicMembership struct { // GetGroupDynamicMembershipInput is an input type that accepts GetGroupDynamicMembershipArgs and GetGroupDynamicMembershipOutput values. // You can construct a concrete instance of `GetGroupDynamicMembershipInput` via: // -// GetGroupDynamicMembershipArgs{...} +// GetGroupDynamicMembershipArgs{...} type GetGroupDynamicMembershipInput interface { pulumi.Input @@ -7002,7 +7002,7 @@ func (i GetGroupDynamicMembershipArgs) ToGetGroupDynamicMembershipOutputWithCont // GetGroupDynamicMembershipArrayInput is an input type that accepts GetGroupDynamicMembershipArray and GetGroupDynamicMembershipArrayOutput values. // You can construct a concrete instance of `GetGroupDynamicMembershipArrayInput` via: // -// GetGroupDynamicMembershipArray{ GetGroupDynamicMembershipArgs{...} } +// GetGroupDynamicMembershipArray{ GetGroupDynamicMembershipArgs{...} } type GetGroupDynamicMembershipArrayInput interface { pulumi.Input @@ -7086,7 +7086,7 @@ type GetServicePrincipalAppRole struct { // GetServicePrincipalAppRoleInput is an input type that accepts GetServicePrincipalAppRoleArgs and GetServicePrincipalAppRoleOutput values. // You can construct a concrete instance of `GetServicePrincipalAppRoleInput` via: // -// GetServicePrincipalAppRoleArgs{...} +// GetServicePrincipalAppRoleArgs{...} type GetServicePrincipalAppRoleInput interface { pulumi.Input @@ -7124,7 +7124,7 @@ func (i GetServicePrincipalAppRoleArgs) ToGetServicePrincipalAppRoleOutputWithCo // GetServicePrincipalAppRoleArrayInput is an input type that accepts GetServicePrincipalAppRoleArray and GetServicePrincipalAppRoleArrayOutput values. // You can construct a concrete instance of `GetServicePrincipalAppRoleArrayInput` via: // -// GetServicePrincipalAppRoleArray{ GetServicePrincipalAppRoleArgs{...} } +// GetServicePrincipalAppRoleArray{ GetServicePrincipalAppRoleArgs{...} } type GetServicePrincipalAppRoleArrayInput interface { pulumi.Input @@ -7224,7 +7224,7 @@ type GetServicePrincipalFeature struct { // GetServicePrincipalFeatureInput is an input type that accepts GetServicePrincipalFeatureArgs and GetServicePrincipalFeatureOutput values. // You can construct a concrete instance of `GetServicePrincipalFeatureInput` via: // -// GetServicePrincipalFeatureArgs{...} +// GetServicePrincipalFeatureArgs{...} type GetServicePrincipalFeatureInput interface { pulumi.Input @@ -7258,7 +7258,7 @@ func (i GetServicePrincipalFeatureArgs) ToGetServicePrincipalFeatureOutputWithCo // GetServicePrincipalFeatureArrayInput is an input type that accepts GetServicePrincipalFeatureArray and GetServicePrincipalFeatureArrayOutput values. // You can construct a concrete instance of `GetServicePrincipalFeatureArrayInput` via: // -// GetServicePrincipalFeatureArray{ GetServicePrincipalFeatureArgs{...} } +// GetServicePrincipalFeatureArray{ GetServicePrincipalFeatureArgs{...} } type GetServicePrincipalFeatureArrayInput interface { pulumi.Input @@ -7344,7 +7344,7 @@ type GetServicePrincipalFeatureTag struct { // GetServicePrincipalFeatureTagInput is an input type that accepts GetServicePrincipalFeatureTagArgs and GetServicePrincipalFeatureTagOutput values. // You can construct a concrete instance of `GetServicePrincipalFeatureTagInput` via: // -// GetServicePrincipalFeatureTagArgs{...} +// GetServicePrincipalFeatureTagArgs{...} type GetServicePrincipalFeatureTagInput interface { pulumi.Input @@ -7374,7 +7374,7 @@ func (i GetServicePrincipalFeatureTagArgs) ToGetServicePrincipalFeatureTagOutput // GetServicePrincipalFeatureTagArrayInput is an input type that accepts GetServicePrincipalFeatureTagArray and GetServicePrincipalFeatureTagArrayOutput values. // You can construct a concrete instance of `GetServicePrincipalFeatureTagArrayInput` via: // -// GetServicePrincipalFeatureTagArray{ GetServicePrincipalFeatureTagArgs{...} } +// GetServicePrincipalFeatureTagArray{ GetServicePrincipalFeatureTagArgs{...} } type GetServicePrincipalFeatureTagArrayInput interface { pulumi.Input @@ -7468,7 +7468,7 @@ type GetServicePrincipalOauth2PermissionScope struct { // GetServicePrincipalOauth2PermissionScopeInput is an input type that accepts GetServicePrincipalOauth2PermissionScopeArgs and GetServicePrincipalOauth2PermissionScopeOutput values. // You can construct a concrete instance of `GetServicePrincipalOauth2PermissionScopeInput` via: // -// GetServicePrincipalOauth2PermissionScopeArgs{...} +// GetServicePrincipalOauth2PermissionScopeArgs{...} type GetServicePrincipalOauth2PermissionScopeInput interface { pulumi.Input @@ -7510,7 +7510,7 @@ func (i GetServicePrincipalOauth2PermissionScopeArgs) ToGetServicePrincipalOauth // GetServicePrincipalOauth2PermissionScopeArrayInput is an input type that accepts GetServicePrincipalOauth2PermissionScopeArray and GetServicePrincipalOauth2PermissionScopeArrayOutput values. // You can construct a concrete instance of `GetServicePrincipalOauth2PermissionScopeArrayInput` via: // -// GetServicePrincipalOauth2PermissionScopeArray{ GetServicePrincipalOauth2PermissionScopeArgs{...} } +// GetServicePrincipalOauth2PermissionScopeArray{ GetServicePrincipalOauth2PermissionScopeArgs{...} } type GetServicePrincipalOauth2PermissionScopeArrayInput interface { pulumi.Input @@ -7614,7 +7614,7 @@ type GetServicePrincipalSamlSingleSignOn struct { // GetServicePrincipalSamlSingleSignOnInput is an input type that accepts GetServicePrincipalSamlSingleSignOnArgs and GetServicePrincipalSamlSingleSignOnOutput values. // You can construct a concrete instance of `GetServicePrincipalSamlSingleSignOnInput` via: // -// GetServicePrincipalSamlSingleSignOnArgs{...} +// GetServicePrincipalSamlSingleSignOnArgs{...} type GetServicePrincipalSamlSingleSignOnInput interface { pulumi.Input @@ -7642,7 +7642,7 @@ func (i GetServicePrincipalSamlSingleSignOnArgs) ToGetServicePrincipalSamlSingle // GetServicePrincipalSamlSingleSignOnArrayInput is an input type that accepts GetServicePrincipalSamlSingleSignOnArray and GetServicePrincipalSamlSingleSignOnArrayOutput values. // You can construct a concrete instance of `GetServicePrincipalSamlSingleSignOnArrayInput` via: // -// GetServicePrincipalSamlSingleSignOnArray{ GetServicePrincipalSamlSingleSignOnArgs{...} } +// GetServicePrincipalSamlSingleSignOnArray{ GetServicePrincipalSamlSingleSignOnArgs{...} } type GetServicePrincipalSamlSingleSignOnArrayInput interface { pulumi.Input @@ -7733,7 +7733,7 @@ type GetServicePrincipalsServicePrincipal struct { // GetServicePrincipalsServicePrincipalInput is an input type that accepts GetServicePrincipalsServicePrincipalArgs and GetServicePrincipalsServicePrincipalOutput values. // You can construct a concrete instance of `GetServicePrincipalsServicePrincipalInput` via: // -// GetServicePrincipalsServicePrincipalArgs{...} +// GetServicePrincipalsServicePrincipalArgs{...} type GetServicePrincipalsServicePrincipalInput interface { pulumi.Input @@ -7783,7 +7783,7 @@ func (i GetServicePrincipalsServicePrincipalArgs) ToGetServicePrincipalsServiceP // GetServicePrincipalsServicePrincipalArrayInput is an input type that accepts GetServicePrincipalsServicePrincipalArray and GetServicePrincipalsServicePrincipalArrayOutput values. // You can construct a concrete instance of `GetServicePrincipalsServicePrincipalArrayInput` via: // -// GetServicePrincipalsServicePrincipalArray{ GetServicePrincipalsServicePrincipalArgs{...} } +// GetServicePrincipalsServicePrincipalArray{ GetServicePrincipalsServicePrincipalArgs{...} } type GetServicePrincipalsServicePrincipalArrayInput interface { pulumi.Input @@ -7925,7 +7925,7 @@ type GetUsersUser struct { // GetUsersUserInput is an input type that accepts GetUsersUserArgs and GetUsersUserOutput values. // You can construct a concrete instance of `GetUsersUserInput` via: // -// GetUsersUserArgs{...} +// GetUsersUserArgs{...} type GetUsersUserInput interface { pulumi.Input @@ -7971,7 +7971,7 @@ func (i GetUsersUserArgs) ToGetUsersUserOutputWithContext(ctx context.Context) G // GetUsersUserArrayInput is an input type that accepts GetUsersUserArray and GetUsersUserArrayOutput values. // You can construct a concrete instance of `GetUsersUserArrayInput` via: // -// GetUsersUserArray{ GetUsersUserArgs{...} } +// GetUsersUserArray{ GetUsersUserArgs{...} } type GetUsersUserArrayInput interface { pulumi.Input diff --git a/sdk/go/azuread/servicePrincipal.go b/sdk/go/azuread/servicePrincipal.go index 532f8fe9d..ce7737317 100644 --- a/sdk/go/azuread/servicePrincipal.go +++ b/sdk/go/azuread/servicePrincipal.go @@ -31,38 +31,41 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// current, err := azuread.GetClientConfig(ctx, nil, nil) -// if err != nil { -// return err -// } -// exampleApplication, err := azuread.NewApplication(ctx, "exampleApplication", &azuread.ApplicationArgs{ -// DisplayName: pulumi.String("example"), -// Owners: pulumi.StringArray{ -// pulumi.String(current.ObjectId), -// }, -// }) -// if err != nil { -// return err -// } -// _, err = azuread.NewServicePrincipal(ctx, "exampleServicePrincipal", &azuread.ServicePrincipalArgs{ -// ApplicationId: exampleApplication.ApplicationId, -// AppRoleAssignmentRequired: pulumi.Bool(false), -// Owners: pulumi.StringArray{ -// pulumi.String(current.ObjectId), -// }, -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// current, err := azuread.GetClientConfig(ctx, nil, nil) +// if err != nil { +// return err +// } +// exampleApplication, err := azuread.NewApplication(ctx, "exampleApplication", &azuread.ApplicationArgs{ +// DisplayName: pulumi.String("example"), +// Owners: pulumi.StringArray{ +// pulumi.String(current.ObjectId), +// }, +// }) +// if err != nil { +// return err +// } +// _, err = azuread.NewServicePrincipal(ctx, "exampleServicePrincipal", &azuread.ServicePrincipalArgs{ +// ApplicationId: exampleApplication.ApplicationId, +// AppRoleAssignmentRequired: pulumi.Bool(false), +// Owners: pulumi.StringArray{ +// pulumi.String(current.ObjectId), +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // *Create a service principal for an enterprise application* @@ -71,44 +74,47 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// current, err := azuread.GetClientConfig(ctx, nil, nil) -// if err != nil { -// return err -// } -// exampleApplication, err := azuread.NewApplication(ctx, "exampleApplication", &azuread.ApplicationArgs{ -// DisplayName: pulumi.String("example"), -// Owners: pulumi.StringArray{ -// pulumi.String(current.ObjectId), -// }, -// }) -// if err != nil { -// return err -// } -// _, err = azuread.NewServicePrincipal(ctx, "exampleServicePrincipal", &azuread.ServicePrincipalArgs{ -// ApplicationId: exampleApplication.ApplicationId, -// AppRoleAssignmentRequired: pulumi.Bool(false), -// Owners: pulumi.StringArray{ -// pulumi.String(current.ObjectId), -// }, -// FeatureTags: ServicePrincipalFeatureTagArray{ -// &ServicePrincipalFeatureTagArgs{ -// Enterprise: pulumi.Bool(true), -// Gallery: pulumi.Bool(true), -// }, -// }, -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// current, err := azuread.GetClientConfig(ctx, nil, nil) +// if err != nil { +// return err +// } +// exampleApplication, err := azuread.NewApplication(ctx, "exampleApplication", &azuread.ApplicationArgs{ +// DisplayName: pulumi.String("example"), +// Owners: pulumi.StringArray{ +// pulumi.String(current.ObjectId), +// }, +// }) +// if err != nil { +// return err +// } +// _, err = azuread.NewServicePrincipal(ctx, "exampleServicePrincipal", &azuread.ServicePrincipalArgs{ +// ApplicationId: exampleApplication.ApplicationId, +// AppRoleAssignmentRequired: pulumi.Bool(false), +// Owners: pulumi.StringArray{ +// pulumi.String(current.ObjectId), +// }, +// FeatureTags: ServicePrincipalFeatureTagArray{ +// &ServicePrincipalFeatureTagArgs{ +// Enterprise: pulumi.Bool(true), +// Gallery: pulumi.Bool(true), +// }, +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // *Manage a service principal for a first-party Microsoft application* @@ -117,26 +123,29 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// wellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil) -// if err != nil { -// return err -// } -// _, err = azuread.NewServicePrincipal(ctx, "msgraph", &azuread.ServicePrincipalArgs{ -// ApplicationId: pulumi.String(wellKnown.Result.MicrosoftGraph), -// UseExisting: pulumi.Bool(true), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// wellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil) +// if err != nil { +// return err +// } +// _, err = azuread.NewServicePrincipal(ctx, "msgraph", &azuread.ServicePrincipalArgs{ +// ApplicationId: pulumi.String(wellKnown.Result.MicrosoftGraph), +// UseExisting: pulumi.Bool(true), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // *Create a service principal for an application created from a gallery template* @@ -145,35 +154,38 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// exampleApplicationTemplate, err := azuread.GetApplicationTemplate(ctx, &GetApplicationTemplateArgs{ -// DisplayName: pulumi.StringRef("Marketo"), -// }, nil) -// if err != nil { -// return err -// } -// exampleApplication, err := azuread.NewApplication(ctx, "exampleApplication", &azuread.ApplicationArgs{ -// DisplayName: pulumi.String("example"), -// TemplateId: pulumi.String(exampleApplicationTemplate.TemplateId), -// }) -// if err != nil { -// return err -// } -// _, err = azuread.NewServicePrincipal(ctx, "exampleServicePrincipal", &azuread.ServicePrincipalArgs{ -// ApplicationId: exampleApplication.ApplicationId, -// UseExisting: pulumi.Bool(true), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// exampleApplicationTemplate, err := azuread.GetApplicationTemplate(ctx, &GetApplicationTemplateArgs{ +// DisplayName: pulumi.StringRef("Marketo"), +// }, nil) +// if err != nil { +// return err +// } +// exampleApplication, err := azuread.NewApplication(ctx, "exampleApplication", &azuread.ApplicationArgs{ +// DisplayName: pulumi.String("example"), +// TemplateId: pulumi.String(exampleApplicationTemplate.TemplateId), +// }) +// if err != nil { +// return err +// } +// _, err = azuread.NewServicePrincipal(ctx, "exampleServicePrincipal", &azuread.ServicePrincipalArgs{ +// ApplicationId: exampleApplication.ApplicationId, +// UseExisting: pulumi.Bool(true), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // ## Import @@ -181,7 +193,9 @@ import ( // Service principals can be imported using their object ID, e.g. // // ```sh -// $ pulumi import azuread:index/servicePrincipal:ServicePrincipal test 00000000-0000-0000-0000-000000000000 +// +// $ pulumi import azuread:index/servicePrincipal:ServicePrincipal test 00000000-0000-0000-0000-000000000000 +// // ``` type ServicePrincipal struct { pulumi.CustomResourceState @@ -506,7 +520,7 @@ func (i *ServicePrincipal) ToServicePrincipalOutputWithContext(ctx context.Conte // ServicePrincipalArrayInput is an input type that accepts ServicePrincipalArray and ServicePrincipalArrayOutput values. // You can construct a concrete instance of `ServicePrincipalArrayInput` via: // -// ServicePrincipalArray{ ServicePrincipalArgs{...} } +// ServicePrincipalArray{ ServicePrincipalArgs{...} } type ServicePrincipalArrayInput interface { pulumi.Input @@ -531,7 +545,7 @@ func (i ServicePrincipalArray) ToServicePrincipalArrayOutputWithContext(ctx cont // ServicePrincipalMapInput is an input type that accepts ServicePrincipalMap and ServicePrincipalMapOutput values. // You can construct a concrete instance of `ServicePrincipalMapInput` via: // -// ServicePrincipalMap{ "key": ServicePrincipalArgs{...} } +// ServicePrincipalMap{ "key": ServicePrincipalArgs{...} } type ServicePrincipalMapInput interface { pulumi.Input diff --git a/sdk/go/azuread/servicePrincipalCertificate.go b/sdk/go/azuread/servicePrincipalCertificate.go index 916a1b32f..6a7c61169 100644 --- a/sdk/go/azuread/servicePrincipalCertificate.go +++ b/sdk/go/azuread/servicePrincipalCertificate.go @@ -26,10 +26,12 @@ import ( // Certificates can be imported using the object ID of the associated service principal and the key ID of the certificate credential, e.g. // // ```sh -// $ pulumi import azuread:index/servicePrincipalCertificate:ServicePrincipalCertificate test 00000000-0000-0000-0000-000000000000/certificate/11111111-1111-1111-1111-111111111111 +// +// $ pulumi import azuread:index/servicePrincipalCertificate:ServicePrincipalCertificate test 00000000-0000-0000-0000-000000000000/certificate/11111111-1111-1111-1111-111111111111 +// // ``` // -// -> This ID format is unique to Terraform and is composed of the service principal's object ID, the string "certificate" and the certificate's key ID in the format `{ServicePrincipalObjectId}/certificate/{CertificateKeyId}`. +// -> This ID format is unique to Terraform and is composed of the service principal's object ID, the string "certificate" and the certificate's key ID in the format `{ServicePrincipalObjectId}/certificate/{CertificateKeyId}`. type ServicePrincipalCertificate struct { pulumi.CustomResourceState @@ -192,7 +194,7 @@ func (i *ServicePrincipalCertificate) ToServicePrincipalCertificateOutputWithCon // ServicePrincipalCertificateArrayInput is an input type that accepts ServicePrincipalCertificateArray and ServicePrincipalCertificateArrayOutput values. // You can construct a concrete instance of `ServicePrincipalCertificateArrayInput` via: // -// ServicePrincipalCertificateArray{ ServicePrincipalCertificateArgs{...} } +// ServicePrincipalCertificateArray{ ServicePrincipalCertificateArgs{...} } type ServicePrincipalCertificateArrayInput interface { pulumi.Input @@ -217,7 +219,7 @@ func (i ServicePrincipalCertificateArray) ToServicePrincipalCertificateArrayOutp // ServicePrincipalCertificateMapInput is an input type that accepts ServicePrincipalCertificateMap and ServicePrincipalCertificateMapOutput values. // You can construct a concrete instance of `ServicePrincipalCertificateMapInput` via: // -// ServicePrincipalCertificateMap{ "key": ServicePrincipalCertificateArgs{...} } +// ServicePrincipalCertificateMap{ "key": ServicePrincipalCertificateArgs{...} } type ServicePrincipalCertificateMapInput interface { pulumi.Input diff --git a/sdk/go/azuread/servicePrincipalClaimsMappingPolicyAssignment.go b/sdk/go/azuread/servicePrincipalClaimsMappingPolicyAssignment.go index 4af3ad7b2..814df02c1 100644 --- a/sdk/go/azuread/servicePrincipalClaimsMappingPolicyAssignment.go +++ b/sdk/go/azuread/servicePrincipalClaimsMappingPolicyAssignment.go @@ -27,22 +27,25 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.NewServicePrincipalClaimsMappingPolicyAssignment(ctx, "app", &azuread.ServicePrincipalClaimsMappingPolicyAssignmentArgs{ -// ClaimsMappingPolicyId: pulumi.Any(azuread_claims_mapping_policy.My_policy.Id), -// ServicePrincipalId: pulumi.Any(azuread_service_principal.My_principal.Id), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.NewServicePrincipalClaimsMappingPolicyAssignment(ctx, "app", &azuread.ServicePrincipalClaimsMappingPolicyAssignmentArgs{ +// ClaimsMappingPolicyId: pulumi.Any(azuread_claims_mapping_policy.My_policy.Id), +// ServicePrincipalId: pulumi.Any(azuread_service_principal.My_principal.Id), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // ## Import @@ -50,7 +53,9 @@ import ( // Claims Mapping Policy can be imported using the `id`, in the form `service-principal-uuid/claimsMappingPolicy/claims-mapping-policy-uuid`, e.g // // ```sh -// $ pulumi import azuread:index/servicePrincipalClaimsMappingPolicyAssignment:ServicePrincipalClaimsMappingPolicyAssignment app 00000000-0000-0000-0000-000000000000/claimsMappingPolicy/11111111-0000-0000-0000-000000000000 +// +// $ pulumi import azuread:index/servicePrincipalClaimsMappingPolicyAssignment:ServicePrincipalClaimsMappingPolicyAssignment app 00000000-0000-0000-0000-000000000000/claimsMappingPolicy/11111111-0000-0000-0000-000000000000 +// // ``` type ServicePrincipalClaimsMappingPolicyAssignment struct { pulumi.CustomResourceState @@ -154,7 +159,7 @@ func (i *ServicePrincipalClaimsMappingPolicyAssignment) ToServicePrincipalClaims // ServicePrincipalClaimsMappingPolicyAssignmentArrayInput is an input type that accepts ServicePrincipalClaimsMappingPolicyAssignmentArray and ServicePrincipalClaimsMappingPolicyAssignmentArrayOutput values. // You can construct a concrete instance of `ServicePrincipalClaimsMappingPolicyAssignmentArrayInput` via: // -// ServicePrincipalClaimsMappingPolicyAssignmentArray{ ServicePrincipalClaimsMappingPolicyAssignmentArgs{...} } +// ServicePrincipalClaimsMappingPolicyAssignmentArray{ ServicePrincipalClaimsMappingPolicyAssignmentArgs{...} } type ServicePrincipalClaimsMappingPolicyAssignmentArrayInput interface { pulumi.Input @@ -179,7 +184,7 @@ func (i ServicePrincipalClaimsMappingPolicyAssignmentArray) ToServicePrincipalCl // ServicePrincipalClaimsMappingPolicyAssignmentMapInput is an input type that accepts ServicePrincipalClaimsMappingPolicyAssignmentMap and ServicePrincipalClaimsMappingPolicyAssignmentMapOutput values. // You can construct a concrete instance of `ServicePrincipalClaimsMappingPolicyAssignmentMapInput` via: // -// ServicePrincipalClaimsMappingPolicyAssignmentMap{ "key": ServicePrincipalClaimsMappingPolicyAssignmentArgs{...} } +// ServicePrincipalClaimsMappingPolicyAssignmentMap{ "key": ServicePrincipalClaimsMappingPolicyAssignmentArgs{...} } type ServicePrincipalClaimsMappingPolicyAssignmentMapInput interface { pulumi.Input diff --git a/sdk/go/azuread/servicePrincipalDelegatedPermissionGrant.go b/sdk/go/azuread/servicePrincipalDelegatedPermissionGrant.go index 307a0d32c..a3af92ef9 100644 --- a/sdk/go/azuread/servicePrincipalDelegatedPermissionGrant.go +++ b/sdk/go/azuread/servicePrincipalDelegatedPermissionGrant.go @@ -29,68 +29,71 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// wellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil) -// if err != nil { -// return err -// } -// msgraph, err := azuread.NewServicePrincipal(ctx, "msgraph", &azuread.ServicePrincipalArgs{ -// ApplicationId: pulumi.String(wellKnown.Result.MicrosoftGraph), -// UseExisting: pulumi.Bool(true), -// }) -// if err != nil { -// return err -// } -// exampleApplication, err := azuread.NewApplication(ctx, "exampleApplication", &azuread.ApplicationArgs{ -// DisplayName: pulumi.String("example"), -// RequiredResourceAccesses: ApplicationRequiredResourceAccessArray{ -// &ApplicationRequiredResourceAccessArgs{ -// ResourceAppId: pulumi.String(wellKnown.Result.MicrosoftGraph), -// ResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{ -// &ApplicationRequiredResourceAccessResourceAccessArgs{ -// Id: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) { -// return oauth2PermissionScopeIds.Openid, nil -// }).(pulumi.StringOutput), -// Type: pulumi.String("Scope"), -// }, -// &ApplicationRequiredResourceAccessResourceAccessArgs{ -// Id: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) { -// return oauth2PermissionScopeIds.User.Read, nil -// }).(pulumi.StringOutput), -// Type: pulumi.String("Scope"), -// }, -// }, -// }, -// }, -// }) -// if err != nil { -// return err -// } -// exampleServicePrincipal, err := azuread.NewServicePrincipal(ctx, "exampleServicePrincipal", &azuread.ServicePrincipalArgs{ -// ApplicationId: exampleApplication.ApplicationId, -// }) -// if err != nil { -// return err -// } -// _, err = azuread.NewServicePrincipalDelegatedPermissionGrant(ctx, "exampleServicePrincipalDelegatedPermissionGrant", &azuread.ServicePrincipalDelegatedPermissionGrantArgs{ -// ServicePrincipalObjectId: exampleServicePrincipal.ObjectId, -// ResourceServicePrincipalObjectId: msgraph.ObjectId, -// ClaimValues: pulumi.StringArray{ -// pulumi.String("openid"), -// pulumi.String("User.Read.All"), -// }, -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// wellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil) +// if err != nil { +// return err +// } +// msgraph, err := azuread.NewServicePrincipal(ctx, "msgraph", &azuread.ServicePrincipalArgs{ +// ApplicationId: pulumi.String(wellKnown.Result.MicrosoftGraph), +// UseExisting: pulumi.Bool(true), +// }) +// if err != nil { +// return err +// } +// exampleApplication, err := azuread.NewApplication(ctx, "exampleApplication", &azuread.ApplicationArgs{ +// DisplayName: pulumi.String("example"), +// RequiredResourceAccesses: ApplicationRequiredResourceAccessArray{ +// &ApplicationRequiredResourceAccessArgs{ +// ResourceAppId: pulumi.String(wellKnown.Result.MicrosoftGraph), +// ResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{ +// &ApplicationRequiredResourceAccessResourceAccessArgs{ +// Id: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) { +// return oauth2PermissionScopeIds.Openid, nil +// }).(pulumi.StringOutput), +// Type: pulumi.String("Scope"), +// }, +// &ApplicationRequiredResourceAccessResourceAccessArgs{ +// Id: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) { +// return oauth2PermissionScopeIds.User.Read, nil +// }).(pulumi.StringOutput), +// Type: pulumi.String("Scope"), +// }, +// }, +// }, +// }, +// }) +// if err != nil { +// return err +// } +// exampleServicePrincipal, err := azuread.NewServicePrincipal(ctx, "exampleServicePrincipal", &azuread.ServicePrincipalArgs{ +// ApplicationId: exampleApplication.ApplicationId, +// }) +// if err != nil { +// return err +// } +// _, err = azuread.NewServicePrincipalDelegatedPermissionGrant(ctx, "exampleServicePrincipalDelegatedPermissionGrant", &azuread.ServicePrincipalDelegatedPermissionGrantArgs{ +// ServicePrincipalObjectId: exampleServicePrincipal.ObjectId, +// ResourceServicePrincipalObjectId: msgraph.ObjectId, +// ClaimValues: pulumi.StringArray{ +// pulumi.String("openid"), +// pulumi.String("User.Read.All"), +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // *Delegated permission grant for a single user* @@ -99,78 +102,81 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// wellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil) -// if err != nil { -// return err -// } -// msgraph, err := azuread.NewServicePrincipal(ctx, "msgraph", &azuread.ServicePrincipalArgs{ -// ApplicationId: pulumi.String(wellKnown.Result.MicrosoftGraph), -// UseExisting: pulumi.Bool(true), -// }) -// if err != nil { -// return err -// } -// exampleApplication, err := azuread.NewApplication(ctx, "exampleApplication", &azuread.ApplicationArgs{ -// DisplayName: pulumi.String("example"), -// RequiredResourceAccesses: ApplicationRequiredResourceAccessArray{ -// &ApplicationRequiredResourceAccessArgs{ -// ResourceAppId: pulumi.String(wellKnown.Result.MicrosoftGraph), -// ResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{ -// &ApplicationRequiredResourceAccessResourceAccessArgs{ -// Id: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) { -// return oauth2PermissionScopeIds.Openid, nil -// }).(pulumi.StringOutput), -// Type: pulumi.String("Scope"), -// }, -// &ApplicationRequiredResourceAccessResourceAccessArgs{ -// Id: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) { -// return oauth2PermissionScopeIds.User.Read, nil -// }).(pulumi.StringOutput), -// Type: pulumi.String("Scope"), -// }, -// }, -// }, -// }, -// }) -// if err != nil { -// return err -// } -// exampleServicePrincipal, err := azuread.NewServicePrincipal(ctx, "exampleServicePrincipal", &azuread.ServicePrincipalArgs{ -// ApplicationId: exampleApplication.ApplicationId, -// }) -// if err != nil { -// return err -// } -// exampleUser, err := azuread.NewUser(ctx, "exampleUser", &azuread.UserArgs{ -// DisplayName: pulumi.String("J. Doe"), -// UserPrincipalName: pulumi.String("jdoe@hashicorp.com"), -// MailNickname: pulumi.String("jdoe"), -// Password: pulumi.String("SecretP@sswd99!"), -// }) -// if err != nil { -// return err -// } -// _, err = azuread.NewServicePrincipalDelegatedPermissionGrant(ctx, "exampleServicePrincipalDelegatedPermissionGrant", &azuread.ServicePrincipalDelegatedPermissionGrantArgs{ -// ServicePrincipalObjectId: exampleServicePrincipal.ObjectId, -// ResourceServicePrincipalObjectId: msgraph.ObjectId, -// ClaimValues: pulumi.StringArray{ -// pulumi.String("openid"), -// pulumi.String("User.Read.All"), -// }, -// UserObjectId: exampleUser.ObjectId, -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// wellKnown, err := azuread.GetApplicationPublishedAppIds(ctx, nil, nil) +// if err != nil { +// return err +// } +// msgraph, err := azuread.NewServicePrincipal(ctx, "msgraph", &azuread.ServicePrincipalArgs{ +// ApplicationId: pulumi.String(wellKnown.Result.MicrosoftGraph), +// UseExisting: pulumi.Bool(true), +// }) +// if err != nil { +// return err +// } +// exampleApplication, err := azuread.NewApplication(ctx, "exampleApplication", &azuread.ApplicationArgs{ +// DisplayName: pulumi.String("example"), +// RequiredResourceAccesses: ApplicationRequiredResourceAccessArray{ +// &ApplicationRequiredResourceAccessArgs{ +// ResourceAppId: pulumi.String(wellKnown.Result.MicrosoftGraph), +// ResourceAccesses: ApplicationRequiredResourceAccessResourceAccessArray{ +// &ApplicationRequiredResourceAccessResourceAccessArgs{ +// Id: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) { +// return oauth2PermissionScopeIds.Openid, nil +// }).(pulumi.StringOutput), +// Type: pulumi.String("Scope"), +// }, +// &ApplicationRequiredResourceAccessResourceAccessArgs{ +// Id: msgraph.Oauth2PermissionScopeIds.ApplyT(func(oauth2PermissionScopeIds map[string]string) (string, error) { +// return oauth2PermissionScopeIds.User.Read, nil +// }).(pulumi.StringOutput), +// Type: pulumi.String("Scope"), +// }, +// }, +// }, +// }, +// }) +// if err != nil { +// return err +// } +// exampleServicePrincipal, err := azuread.NewServicePrincipal(ctx, "exampleServicePrincipal", &azuread.ServicePrincipalArgs{ +// ApplicationId: exampleApplication.ApplicationId, +// }) +// if err != nil { +// return err +// } +// exampleUser, err := azuread.NewUser(ctx, "exampleUser", &azuread.UserArgs{ +// DisplayName: pulumi.String("J. Doe"), +// UserPrincipalName: pulumi.String("jdoe@hashicorp.com"), +// MailNickname: pulumi.String("jdoe"), +// Password: pulumi.String("SecretP@sswd99!"), +// }) +// if err != nil { +// return err +// } +// _, err = azuread.NewServicePrincipalDelegatedPermissionGrant(ctx, "exampleServicePrincipalDelegatedPermissionGrant", &azuread.ServicePrincipalDelegatedPermissionGrantArgs{ +// ServicePrincipalObjectId: exampleServicePrincipal.ObjectId, +// ResourceServicePrincipalObjectId: msgraph.ObjectId, +// ClaimValues: pulumi.StringArray{ +// pulumi.String("openid"), +// pulumi.String("User.Read.All"), +// }, +// UserObjectId: exampleUser.ObjectId, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // ## Import @@ -178,7 +184,9 @@ import ( // Delegated permission grants can be imported using their ID, e.g. // // ```sh -// $ pulumi import azuread:index/servicePrincipalDelegatedPermissionGrant:ServicePrincipalDelegatedPermissionGrant example aaBBcDDeFG6h5JKLMN2PQrrssTTUUvWWxxxxxyyyzzz +// +// $ pulumi import azuread:index/servicePrincipalDelegatedPermissionGrant:ServicePrincipalDelegatedPermissionGrant example aaBBcDDeFG6h5JKLMN2PQrrssTTUUvWWxxxxxyyyzzz +// // ``` type ServicePrincipalDelegatedPermissionGrant struct { pulumi.CustomResourceState @@ -305,7 +313,7 @@ func (i *ServicePrincipalDelegatedPermissionGrant) ToServicePrincipalDelegatedPe // ServicePrincipalDelegatedPermissionGrantArrayInput is an input type that accepts ServicePrincipalDelegatedPermissionGrantArray and ServicePrincipalDelegatedPermissionGrantArrayOutput values. // You can construct a concrete instance of `ServicePrincipalDelegatedPermissionGrantArrayInput` via: // -// ServicePrincipalDelegatedPermissionGrantArray{ ServicePrincipalDelegatedPermissionGrantArgs{...} } +// ServicePrincipalDelegatedPermissionGrantArray{ ServicePrincipalDelegatedPermissionGrantArgs{...} } type ServicePrincipalDelegatedPermissionGrantArrayInput interface { pulumi.Input @@ -330,7 +338,7 @@ func (i ServicePrincipalDelegatedPermissionGrantArray) ToServicePrincipalDelegat // ServicePrincipalDelegatedPermissionGrantMapInput is an input type that accepts ServicePrincipalDelegatedPermissionGrantMap and ServicePrincipalDelegatedPermissionGrantMapOutput values. // You can construct a concrete instance of `ServicePrincipalDelegatedPermissionGrantMapInput` via: // -// ServicePrincipalDelegatedPermissionGrantMap{ "key": ServicePrincipalDelegatedPermissionGrantArgs{...} } +// ServicePrincipalDelegatedPermissionGrantMap{ "key": ServicePrincipalDelegatedPermissionGrantArgs{...} } type ServicePrincipalDelegatedPermissionGrantMapInput interface { pulumi.Input diff --git a/sdk/go/azuread/servicePrincipalPassword.go b/sdk/go/azuread/servicePrincipalPassword.go index aa6b5b714..f4a4dd127 100644 --- a/sdk/go/azuread/servicePrincipalPassword.go +++ b/sdk/go/azuread/servicePrincipalPassword.go @@ -175,7 +175,7 @@ func (i *ServicePrincipalPassword) ToServicePrincipalPasswordOutputWithContext(c // ServicePrincipalPasswordArrayInput is an input type that accepts ServicePrincipalPasswordArray and ServicePrincipalPasswordArrayOutput values. // You can construct a concrete instance of `ServicePrincipalPasswordArrayInput` via: // -// ServicePrincipalPasswordArray{ ServicePrincipalPasswordArgs{...} } +// ServicePrincipalPasswordArray{ ServicePrincipalPasswordArgs{...} } type ServicePrincipalPasswordArrayInput interface { pulumi.Input @@ -200,7 +200,7 @@ func (i ServicePrincipalPasswordArray) ToServicePrincipalPasswordArrayOutputWith // ServicePrincipalPasswordMapInput is an input type that accepts ServicePrincipalPasswordMap and ServicePrincipalPasswordMapOutput values. // You can construct a concrete instance of `ServicePrincipalPasswordMapInput` via: // -// ServicePrincipalPasswordMap{ "key": ServicePrincipalPasswordArgs{...} } +// ServicePrincipalPasswordMap{ "key": ServicePrincipalPasswordArgs{...} } type ServicePrincipalPasswordMapInput interface { pulumi.Input diff --git a/sdk/go/azuread/user.go b/sdk/go/azuread/user.go index c997ba26f..ef21e8cbe 100644 --- a/sdk/go/azuread/user.go +++ b/sdk/go/azuread/user.go @@ -27,24 +27,27 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// // ) // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := azuread.NewUser(ctx, "example", &azuread.UserArgs{ -// DisplayName: pulumi.String("J. Doe"), -// MailNickname: pulumi.String("jdoe"), -// Password: pulumi.String("SecretP@sswd99!"), -// UserPrincipalName: pulumi.String("jdoe@hashicorp.com"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := azuread.NewUser(ctx, "example", &azuread.UserArgs{ +// DisplayName: pulumi.String("J. Doe"), +// MailNickname: pulumi.String("jdoe"), +// Password: pulumi.String("SecretP@sswd99!"), +// UserPrincipalName: pulumi.String("jdoe@hashicorp.com"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// // ``` // // ## Import @@ -52,7 +55,9 @@ import ( // Users can be imported using their object ID, e.g. // // ```sh -// $ pulumi import azuread:index/user:User my_user 00000000-0000-0000-0000-000000000000 +// +// $ pulumi import azuread:index/user:User my_user 00000000-0000-0000-0000-000000000000 +// // ``` type User struct { pulumi.CustomResourceState @@ -564,7 +569,7 @@ func (i *User) ToUserOutputWithContext(ctx context.Context) UserOutput { // UserArrayInput is an input type that accepts UserArray and UserArrayOutput values. // You can construct a concrete instance of `UserArrayInput` via: // -// UserArray{ UserArgs{...} } +// UserArray{ UserArgs{...} } type UserArrayInput interface { pulumi.Input @@ -589,7 +594,7 @@ func (i UserArray) ToUserArrayOutputWithContext(ctx context.Context) UserArrayOu // UserMapInput is an input type that accepts UserMap and UserMapOutput values. // You can construct a concrete instance of `UserMapInput` via: // -// UserMap{ "key": UserArgs{...} } +// UserMap{ "key": UserArgs{...} } type UserMapInput interface { pulumi.Input diff --git a/sdk/java/src/main/java/com/pulumi/azuread/AdministrativeUnit.java b/sdk/java/src/main/java/com/pulumi/azuread/AdministrativeUnit.java index fb230adfd..45b108863 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/AdministrativeUnit.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/AdministrativeUnit.java @@ -31,10 +31,17 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AdministrativeUnit; + * import com.pulumi.azuread.AdministrativeUnitArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -48,7 +55,7 @@ * .visibility("Public") * .build()); * - * } + * } * } * ``` * diff --git a/sdk/java/src/main/java/com/pulumi/azuread/AdministrativeUnitMember.java b/sdk/java/src/main/java/com/pulumi/azuread/AdministrativeUnitMember.java index 1efe93df3..196219d72 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/AdministrativeUnitMember.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/AdministrativeUnitMember.java @@ -31,10 +31,21 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetUserArgs; + * import com.pulumi.azuread.AdministrativeUnit; + * import com.pulumi.azuread.AdministrativeUnitArgs; + * import com.pulumi.azuread.AdministrativeUnitMember; + * import com.pulumi.azuread.AdministrativeUnitMemberArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -42,20 +53,20 @@ * } * * public static void stack(Context ctx) { - * final var exampleUser = Output.of(AzureadFunctions.getUser(GetUserArgs.builder() + * final var exampleUser = AzureadFunctions.getUser(GetUserArgs.builder() * .userPrincipalName("jdoe@hashicorp.com") - * .build())); + * .build()); * * var exampleAdministrativeUnit = new AdministrativeUnit("exampleAdministrativeUnit", AdministrativeUnitArgs.builder() * .displayName("Example-AU") * .build()); * * var exampleAdministrativeUnitMember = new AdministrativeUnitMember("exampleAdministrativeUnitMember", AdministrativeUnitMemberArgs.builder() - * .administrativeUnitObjectId(exampleAdministrativeUnit.getId()) - * .memberObjectId(exampleUser.apply(getUserResult -> getUserResult.getId())) + * .administrativeUnitObjectId(exampleAdministrativeUnit.id()) + * .memberObjectId(exampleUser.applyValue(getUserResult -> getUserResult.id())) * .build()); * - * } + * } * } * ``` * diff --git a/sdk/java/src/main/java/com/pulumi/azuread/AppRoleAssignment.java b/sdk/java/src/main/java/com/pulumi/azuread/AppRoleAssignment.java index 2bc6f81be..062018c3c 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/AppRoleAssignment.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/AppRoleAssignment.java @@ -30,10 +30,23 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.ServicePrincipal; + * import com.pulumi.azuread.ServicePrincipalArgs; + * import com.pulumi.azuread.Application; + * import com.pulumi.azuread.ApplicationArgs; + * import com.pulumi.azuread.inputs.ApplicationRequiredResourceAccessArgs; + * import com.pulumi.azuread.AppRoleAssignment; + * import com.pulumi.azuread.AppRoleAssignmentArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -41,40 +54,40 @@ * } * * public static void stack(Context ctx) { - * final var wellKnown = Output.of(AzureadFunctions.getApplicationPublishedAppIds()); + * final var wellKnown = AzureadFunctions.getApplicationPublishedAppIds(); * * var msgraph = new ServicePrincipal("msgraph", ServicePrincipalArgs.builder() - * .applicationId(wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph())) + * .applicationId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result().MicrosoftGraph())) * .useExisting(true) * .build()); * * var exampleApplication = new Application("exampleApplication", ApplicationArgs.builder() * .displayName("example") - * .requiredResourceAccesses(ApplicationRequiredResourceAccess.builder() - * .resourceAppId(wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph())) + * .requiredResourceAccesses(ApplicationRequiredResourceAccessArgs.builder() + * .resourceAppId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result().MicrosoftGraph())) * .resourceAccesses( - * ApplicationRequiredResourceAccessResourceAccess.builder() - * .id(msgraph.getAppRoleIds().apply(appRoleIds -> appRoleIds.getUser.Read.All())) + * ApplicationRequiredResourceAccessResourceAccessArgs.builder() + * .id(msgraph.appRoleIds().applyValue(appRoleIds -> appRoleIds.User.Read.All())) * .type("Role") * .build(), - * ApplicationRequiredResourceAccessResourceAccess.builder() - * .id(msgraph.getOauth2PermissionScopeIds().apply(oauth2PermissionScopeIds -> oauth2PermissionScopeIds.getUser.ReadWrite())) + * ApplicationRequiredResourceAccessResourceAccessArgs.builder() + * .id(msgraph.oauth2PermissionScopeIds().applyValue(oauth2PermissionScopeIds -> oauth2PermissionScopeIds.User.ReadWrite())) * .type("Scope") * .build()) * .build()) * .build()); * * var exampleServicePrincipal = new ServicePrincipal("exampleServicePrincipal", ServicePrincipalArgs.builder() - * .applicationId(exampleApplication.getApplicationId()) + * .applicationId(exampleApplication.applicationId()) * .build()); * * var exampleAppRoleAssignment = new AppRoleAssignment("exampleAppRoleAssignment", AppRoleAssignmentArgs.builder() - * .appRoleId(msgraph.getAppRoleIds().apply(appRoleIds -> appRoleIds.getUser.Read.All())) - * .principalObjectId(exampleServicePrincipal.getObjectId()) - * .resourceObjectId(msgraph.getObjectId()) + * .appRoleId(msgraph.appRoleIds().applyValue(appRoleIds -> appRoleIds.User.Read.All())) + * .principalObjectId(exampleServicePrincipal.objectId()) + * .resourceObjectId(msgraph.objectId()) * .build()); * - * } + * } * } * ``` * @@ -82,10 +95,23 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.Application; + * import com.pulumi.azuread.ApplicationArgs; + * import com.pulumi.azuread.inputs.ApplicationAppRoleArgs; + * import com.pulumi.azuread.ServicePrincipal; + * import com.pulumi.azuread.ServicePrincipalArgs; + * import com.pulumi.azuread.inputs.ApplicationRequiredResourceAccessArgs; + * import com.pulumi.azuread.AppRoleAssignment; + * import com.pulumi.azuread.AppRoleAssignmentArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -95,7 +121,7 @@ * public static void stack(Context ctx) { * var internalApplication = new Application("internalApplication", ApplicationArgs.builder() * .displayName("internal") - * .appRoles(ApplicationAppRole.builder() + * .appRoles(ApplicationAppRoleArgs.builder() * .allowedMemberTypes("Application") * .description("Apps can query the database") * .displayName("Query") @@ -106,31 +132,31 @@ * .build()); * * var internalServicePrincipal = new ServicePrincipal("internalServicePrincipal", ServicePrincipalArgs.builder() - * .applicationId(internalApplication.getApplicationId()) + * .applicationId(internalApplication.applicationId()) * .build()); * * var exampleApplication = new Application("exampleApplication", ApplicationArgs.builder() * .displayName("example") - * .requiredResourceAccesses(ApplicationRequiredResourceAccess.builder() - * .resourceAppId(internalApplication.getApplicationId()) - * .resourceAccesses(ApplicationRequiredResourceAccessResourceAccess.builder() - * .id(internalServicePrincipal.getAppRoleIds().apply(appRoleIds -> appRoleIds.getQuery.All())) + * .requiredResourceAccesses(ApplicationRequiredResourceAccessArgs.builder() + * .resourceAppId(internalApplication.applicationId()) + * .resourceAccesses(ApplicationRequiredResourceAccessResourceAccessArgs.builder() + * .id(internalServicePrincipal.appRoleIds().applyValue(appRoleIds -> appRoleIds.Query.All())) * .type("Role") * .build()) * .build()) * .build()); * * var exampleServicePrincipal = new ServicePrincipal("exampleServicePrincipal", ServicePrincipalArgs.builder() - * .applicationId(exampleApplication.getApplicationId()) + * .applicationId(exampleApplication.applicationId()) * .build()); * * var exampleAppRoleAssignment = new AppRoleAssignment("exampleAppRoleAssignment", AppRoleAssignmentArgs.builder() - * .appRoleId(internalServicePrincipal.getAppRoleIds().apply(appRoleIds -> appRoleIds.getQuery.All())) - * .principalObjectId(exampleServicePrincipal.getObjectId()) - * .resourceObjectId(internalServicePrincipal.getObjectId()) + * .appRoleId(internalServicePrincipal.appRoleIds().applyValue(appRoleIds -> appRoleIds.Query.All())) + * .principalObjectId(exampleServicePrincipal.objectId()) + * .resourceObjectId(internalServicePrincipal.objectId()) * .build()); * - * } + * } * } * ``` * @@ -138,10 +164,28 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetDomainsArgs; + * import com.pulumi.azuread.Application; + * import com.pulumi.azuread.ApplicationArgs; + * import com.pulumi.azuread.inputs.ApplicationAppRoleArgs; + * import com.pulumi.azuread.ServicePrincipal; + * import com.pulumi.azuread.ServicePrincipalArgs; + * import com.pulumi.azuread.Group; + * import com.pulumi.azuread.GroupArgs; + * import com.pulumi.azuread.AppRoleAssignment; + * import com.pulumi.azuread.AppRoleAssignmentArgs; + * import com.pulumi.azuread.User; + * import com.pulumi.azuread.UserArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -149,13 +193,13 @@ * } * * public static void stack(Context ctx) { - * final var exampleDomains = Output.of(AzureadFunctions.getDomains(GetDomainsArgs.builder() + * final var exampleDomains = AzureadFunctions.getDomains(GetDomainsArgs.builder() * .onlyInitial(true) - * .build())); + * .build()); * * var internalApplication = new Application("internalApplication", ApplicationArgs.builder() * .displayName("internal") - * .appRoles(ApplicationAppRole.builder() + * .appRoles(ApplicationAppRoleArgs.builder() * .allowedMemberTypes( * "Application", * "User") @@ -168,7 +212,7 @@ * .build()); * * var internalServicePrincipal = new ServicePrincipal("internalServicePrincipal", ServicePrincipalArgs.builder() - * .applicationId(internalApplication.getApplicationId()) + * .applicationId(internalApplication.applicationId()) * .build()); * * var exampleGroup = new Group("exampleGroup", GroupArgs.builder() @@ -177,24 +221,24 @@ * .build()); * * var exampleAppRoleAssignment = new AppRoleAssignment("exampleAppRoleAssignment", AppRoleAssignmentArgs.builder() - * .appRoleId(internalServicePrincipal.getAppRoleIds().apply(appRoleIds -> appRoleIds.getAdmin.All())) - * .principalObjectId(exampleGroup.getObjectId()) - * .resourceObjectId(internalServicePrincipal.getObjectId()) + * .appRoleId(internalServicePrincipal.appRoleIds().applyValue(appRoleIds -> appRoleIds.Admin.All())) + * .principalObjectId(exampleGroup.objectId()) + * .resourceObjectId(internalServicePrincipal.objectId()) * .build()); * * var exampleUser = new User("exampleUser", UserArgs.builder() * .displayName("D. Duck") * .password("SecretP@sswd99!") - * .userPrincipalName(String.format("d.duck@%s", exampleDomains.apply(getDomainsResult -> getDomainsResult.getDomains()[0].getDomainName()))) + * .userPrincipalName(String.format("d.duck@%s", exampleDomains.applyValue(getDomainsResult -> getDomainsResult.domains()[0].domainName()))) * .build()); * * var exampleIndex_appRoleAssignmentAppRoleAssignment = new AppRoleAssignment("exampleIndex/appRoleAssignmentAppRoleAssignment", AppRoleAssignmentArgs.builder() - * .appRoleId(internalServicePrincipal.getAppRoleIds().apply(appRoleIds -> appRoleIds.getAdmin.All())) - * .principalObjectId(exampleUser.getObjectId()) - * .resourceObjectId(internalServicePrincipal.getObjectId()) + * .appRoleId(internalServicePrincipal.appRoleIds().applyValue(appRoleIds -> appRoleIds.Admin.All())) + * .principalObjectId(exampleUser.objectId()) + * .resourceObjectId(internalServicePrincipal.objectId()) * .build()); * - * } + * } * } * ``` * diff --git a/sdk/java/src/main/java/com/pulumi/azuread/Application.java b/sdk/java/src/main/java/com/pulumi/azuread/Application.java index 7a722402d..bdffb0a03 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/Application.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/Application.java @@ -32,10 +32,25 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.Application; + * import com.pulumi.azuread.ApplicationArgs; + * import com.pulumi.azuread.inputs.ApplicationApiArgs; + * import com.pulumi.azuread.inputs.ApplicationAppRoleArgs; + * import com.pulumi.azuread.inputs.ApplicationFeatureTagArgs; + * import com.pulumi.azuread.inputs.ApplicationOptionalClaimsArgs; + * import com.pulumi.azuread.inputs.ApplicationRequiredResourceAccessArgs; + * import com.pulumi.azuread.inputs.ApplicationWebArgs; + * import com.pulumi.azuread.inputs.ApplicationWebImplicitGrantArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -43,22 +58,22 @@ * } * * public static void stack(Context ctx) { - * final var current = Output.of(AzureadFunctions.getClientConfig()); + * final var current = AzureadFunctions.getClientConfig(); * * var example = new Application("example", ApplicationArgs.builder() * .displayName("example") * .identifierUris("api://example-app") * .logoImage(Base64.getEncoder().encodeToString(Files.readAllBytes(Paths.get("/path/to/logo.png")))) - * .owners(current.apply(getClientConfigResult -> getClientConfigResult.getObjectId())) + * .owners(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId())) * .signInAudience("AzureADMultipleOrgs") - * .api(ApplicationApi.builder() + * .api(ApplicationApiArgs.builder() * .mappedClaimsEnabled(true) * .requestedAccessTokenVersion(2) * .knownClientApplications( - * azuread_application.getKnown1().getApplication_id(), - * azuread_application.getKnown2().getApplication_id()) + * azuread_application.known1().application_id(), + * azuread_application.known2().application_id()) * .oauth2PermissionScopes( - * ApplicationApiOauth2PermissionScope.builder() + * ApplicationApiOauth2PermissionScopeArgs.builder() * .adminConsentDescription("Allow the application to access example on behalf of the signed-in user.") * .adminConsentDisplayName("Access example") * .enabled(true) @@ -68,7 +83,7 @@ * .userConsentDisplayName("Access example") * .value("user_impersonation") * .build(), - * ApplicationApiOauth2PermissionScope.builder() + * ApplicationApiOauth2PermissionScopeArgs.builder() * .adminConsentDescription("Administer the example application") * .adminConsentDisplayName("Administer") * .enabled(true) @@ -78,7 +93,7 @@ * .build()) * .build()) * .appRoles( - * ApplicationAppRole.builder() + * ApplicationAppRoleArgs.builder() * .allowedMemberTypes( * "User", * "Application") @@ -88,7 +103,7 @@ * .id("1b19509b-32b1-4e9f-b71d-4992aa991967") * .value("admin") * .build(), - * ApplicationAppRole.builder() + * ApplicationAppRoleArgs.builder() * .allowedMemberTypes("User") * .description("ReadOnly roles have limited query access") * .displayName("ReadOnly") @@ -96,60 +111,60 @@ * .id("497406e4-012a-4267-bf18-45a1cb148a01") * .value("User") * .build()) - * .featureTags(ApplicationFeatureTag.builder() + * .featureTags(ApplicationFeatureTagArgs.builder() * .enterprise(true) * .gallery(true) * .build()) - * .optionalClaims(ApplicationOptionalClaims.builder() + * .optionalClaims(ApplicationOptionalClaimsArgs.builder() * .accessTokens( - * ApplicationOptionalClaimsAccessToken.builder() + * ApplicationOptionalClaimsAccessTokenArgs.builder() * .name("myclaim") * .build(), - * ApplicationOptionalClaimsAccessToken.builder() + * ApplicationOptionalClaimsAccessTokenArgs.builder() * .name("otherclaim") * .build()) - * .idTokens(ApplicationOptionalClaimsIdToken.builder() + * .idTokens(ApplicationOptionalClaimsIdTokenArgs.builder() * .name("userclaim") * .source("user") * .essential(true) * .additionalProperties("emit_as_roles") * .build()) - * .saml2Tokens(ApplicationOptionalClaimsSaml2Token.builder() + * .saml2Tokens(ApplicationOptionalClaimsSaml2TokenArgs.builder() * .name("samlexample") * .build()) * .build()) * .requiredResourceAccesses( - * ApplicationRequiredResourceAccess.builder() + * ApplicationRequiredResourceAccessArgs.builder() * .resourceAppId("00000003-0000-0000-c000-000000000000") * .resourceAccesses( - * ApplicationRequiredResourceAccessResourceAccess.builder() + * ApplicationRequiredResourceAccessResourceAccessArgs.builder() * .id("df021288-bdef-4463-88db-98f22de89214") * .type("Role") * .build(), - * ApplicationRequiredResourceAccessResourceAccess.builder() + * ApplicationRequiredResourceAccessResourceAccessArgs.builder() * .id("b4e74841-8e56-480b-be8b-910348b18b4c") * .type("Scope") * .build()) * .build(), - * ApplicationRequiredResourceAccess.builder() + * ApplicationRequiredResourceAccessArgs.builder() * .resourceAppId("c5393580-f805-4401-95e8-94b7a6ef2fc2") - * .resourceAccesses(ApplicationRequiredResourceAccessResourceAccess.builder() + * .resourceAccesses(ApplicationRequiredResourceAccessResourceAccessArgs.builder() * .id("594c1fb6-4f81-4475-ae41-0c394909246c") * .type("Role") * .build()) * .build()) - * .web(ApplicationWeb.builder() + * .web(ApplicationWebArgs.builder() * .homepageUrl("https://app.example.net") * .logoutUrl("https://app.example.net/logout") * .redirectUris("https://app.example.net/account") - * .implicitGrant(ApplicationWebImplicitGrant.builder() + * .implicitGrant(ApplicationWebImplicitGrantArgs.builder() * .accessTokenIssuanceEnabled(true) * .idTokenIssuanceEnabled(true) * .build()) * .build()) * .build()); * - * } + * } * } * ``` * @@ -157,10 +172,21 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetApplicationTemplateArgs; + * import com.pulumi.azuread.Application; + * import com.pulumi.azuread.ApplicationArgs; + * import com.pulumi.azuread.ServicePrincipal; + * import com.pulumi.azuread.ServicePrincipalArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -168,21 +194,21 @@ * } * * public static void stack(Context ctx) { - * final var exampleApplicationTemplate = Output.of(AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder() + * final var exampleApplicationTemplate = AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder() * .displayName("Marketo") - * .build())); + * .build()); * * var exampleApplication = new Application("exampleApplication", ApplicationArgs.builder() * .displayName("example") - * .templateId(exampleApplicationTemplate.apply(getApplicationTemplateResult -> getApplicationTemplateResult.getTemplateId())) + * .templateId(exampleApplicationTemplate.applyValue(getApplicationTemplateResult -> getApplicationTemplateResult.templateId())) * .build()); * * var exampleServicePrincipal = new ServicePrincipal("exampleServicePrincipal", ServicePrincipalArgs.builder() - * .applicationId(exampleApplication.getApplicationId()) + * .applicationId(exampleApplication.applicationId()) * .useExisting(true) * .build()); * - * } + * } * } * ``` * diff --git a/sdk/java/src/main/java/com/pulumi/azuread/ApplicationFederatedIdentityCredential.java b/sdk/java/src/main/java/com/pulumi/azuread/ApplicationFederatedIdentityCredential.java index 69b43aee0..6bf64f337 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/ApplicationFederatedIdentityCredential.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/ApplicationFederatedIdentityCredential.java @@ -20,10 +20,19 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.Application; + * import com.pulumi.azuread.ApplicationArgs; + * import com.pulumi.azuread.ApplicationFederatedIdentityCredential; + * import com.pulumi.azuread.ApplicationFederatedIdentityCredentialArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -36,7 +45,7 @@ * .build()); * * var exampleApplicationFederatedIdentityCredential = new ApplicationFederatedIdentityCredential("exampleApplicationFederatedIdentityCredential", ApplicationFederatedIdentityCredentialArgs.builder() - * .applicationObjectId(exampleApplication.getObjectId()) + * .applicationObjectId(exampleApplication.objectId()) * .displayName("my-repo-deploy") * .description("Deployments for my-repo") * .audiences("api://AzureADTokenExchange") @@ -44,7 +53,7 @@ * .subject("repo:my-organization/my-repo:environment:prod") * .build()); * - * } + * } * } * ``` * diff --git a/sdk/java/src/main/java/com/pulumi/azuread/ApplicationPassword.java b/sdk/java/src/main/java/com/pulumi/azuread/ApplicationPassword.java index 083b622cd..0541cc785 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/ApplicationPassword.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/ApplicationPassword.java @@ -38,14 +38,14 @@ public Output applicationObjectId() { return this.applicationObjectId; } /** - * A display name for the password. + * A display name for the password. Changing this field forces a new resource to be created. * */ @Export(name="displayName", type=String.class, parameters={}) private Output displayName; /** - * @return A display name for the password. + * @return A display name for the password. Changing this field forces a new resource to be created. * */ public Output displayName() { diff --git a/sdk/java/src/main/java/com/pulumi/azuread/ApplicationPasswordArgs.java b/sdk/java/src/main/java/com/pulumi/azuread/ApplicationPasswordArgs.java index 23902807d..d347e70c9 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/ApplicationPasswordArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/ApplicationPasswordArgs.java @@ -32,14 +32,14 @@ public Output applicationObjectId() { } /** - * A display name for the password. + * A display name for the password. Changing this field forces a new resource to be created. * */ @Import(name="displayName") private @Nullable Output displayName; /** - * @return A display name for the password. + * @return A display name for the password. Changing this field forces a new resource to be created. * */ public Optional> displayName() { @@ -157,7 +157,7 @@ public Builder applicationObjectId(String applicationObjectId) { } /** - * @param displayName A display name for the password. + * @param displayName A display name for the password. Changing this field forces a new resource to be created. * * @return builder * @@ -168,7 +168,7 @@ public Builder displayName(@Nullable Output displayName) { } /** - * @param displayName A display name for the password. + * @param displayName A display name for the password. Changing this field forces a new resource to be created. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azuread/ApplicationPreAuthorized.java b/sdk/java/src/main/java/com/pulumi/azuread/ApplicationPreAuthorized.java index be275599c..52f1012ee 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/ApplicationPreAuthorized.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/ApplicationPreAuthorized.java @@ -19,10 +19,20 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.Application; + * import com.pulumi.azuread.ApplicationArgs; + * import com.pulumi.azuread.inputs.ApplicationApiArgs; + * import com.pulumi.azuread.ApplicationPreAuthorized; + * import com.pulumi.azuread.ApplicationPreAuthorizedArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -36,9 +46,9 @@ * * var authorizer = new Application("authorizer", ApplicationArgs.builder() * .displayName("example-authorizing-app") - * .api(ApplicationApi.builder() + * .api(ApplicationApiArgs.builder() * .oauth2PermissionScopes( - * ApplicationApiOauth2PermissionScope.builder() + * ApplicationApiOauth2PermissionScopeArgs.builder() * .adminConsentDescription("Administer the application") * .adminConsentDisplayName("Administer") * .enabled(true) @@ -46,7 +56,7 @@ * .type("Admin") * .value("administer") * .build(), - * ApplicationApiOauth2PermissionScope.builder() + * ApplicationApiOauth2PermissionScopeArgs.builder() * .adminConsentDescription("Access the application") * .adminConsentDisplayName("Access") * .enabled(true) @@ -60,14 +70,14 @@ * .build()); * * var example = new ApplicationPreAuthorized("example", ApplicationPreAuthorizedArgs.builder() - * .applicationObjectId(authorizer.getObjectId()) - * .authorizedAppId(authorized.getApplicationId()) + * .applicationObjectId(authorizer.objectId()) + * .authorizedAppId(authorized.applicationId()) * .permissionIds( * "ced9c4c3-c273-4f0f-ac71-a20377b90f9c", * "2d5e07ca-664d-4d9b-ad61-ec07fd215213") * .build()); * - * } + * } * } * ``` * diff --git a/sdk/java/src/main/java/com/pulumi/azuread/AzureadFunctions.java b/sdk/java/src/main/java/com/pulumi/azuread/AzureadFunctions.java index fe412e592..ed5944113 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/AzureadFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/AzureadFunctions.java @@ -62,10 +62,17 @@ public final class AzureadFunctions { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetAdministrativeUnitArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -73,11 +80,11 @@ public final class AzureadFunctions { * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() + * final var example = AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() * .displayName("Example-AU") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -85,10 +92,17 @@ public final class AzureadFunctions { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetAdministrativeUnitArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -96,11 +110,11 @@ public final class AzureadFunctions { * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() + * final var example = AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() * .objectId("00000000-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -126,10 +140,17 @@ public static Output getAdministrativeUnit() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetAdministrativeUnitArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -137,11 +158,11 @@ public static Output getAdministrativeUnit() { * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() + * final var example = AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() * .displayName("Example-AU") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -149,10 +170,17 @@ public static Output getAdministrativeUnit() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetAdministrativeUnitArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -160,11 +188,11 @@ public static Output getAdministrativeUnit() { * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() + * final var example = AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() * .objectId("00000000-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -190,10 +218,17 @@ public static CompletableFuture getAdministrativeUn * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetAdministrativeUnitArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -201,11 +236,11 @@ public static CompletableFuture getAdministrativeUn * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() + * final var example = AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() * .displayName("Example-AU") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -213,10 +248,17 @@ public static CompletableFuture getAdministrativeUn * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetAdministrativeUnitArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -224,11 +266,11 @@ public static CompletableFuture getAdministrativeUn * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() + * final var example = AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() * .objectId("00000000-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -254,10 +296,17 @@ public static Output getAdministrativeUnit(GetAdmin * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetAdministrativeUnitArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -265,11 +314,11 @@ public static Output getAdministrativeUnit(GetAdmin * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() + * final var example = AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() * .displayName("Example-AU") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -277,10 +326,17 @@ public static Output getAdministrativeUnit(GetAdmin * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetAdministrativeUnitArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -288,11 +344,11 @@ public static Output getAdministrativeUnit(GetAdmin * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() + * final var example = AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() * .objectId("00000000-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -318,10 +374,17 @@ public static CompletableFuture getAdministrativeUn * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetAdministrativeUnitArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -329,11 +392,11 @@ public static CompletableFuture getAdministrativeUn * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() + * final var example = AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() * .displayName("Example-AU") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -341,10 +404,17 @@ public static CompletableFuture getAdministrativeUn * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetAdministrativeUnitArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -352,11 +422,11 @@ public static CompletableFuture getAdministrativeUn * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() + * final var example = AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() * .objectId("00000000-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -382,10 +452,17 @@ public static Output getAdministrativeUnit(GetAdmin * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetAdministrativeUnitArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -393,11 +470,11 @@ public static Output getAdministrativeUnit(GetAdmin * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() + * final var example = AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() * .displayName("Example-AU") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -405,10 +482,17 @@ public static Output getAdministrativeUnit(GetAdmin * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetAdministrativeUnitArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -416,11 +500,11 @@ public static Output getAdministrativeUnit(GetAdmin * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() + * final var example = AzureadFunctions.getAdministrativeUnit(GetAdministrativeUnitArgs.builder() * .objectId("00000000-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -443,10 +527,17 @@ public static CompletableFuture getAdministrativeUn * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetApplicationArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -454,12 +545,12 @@ public static CompletableFuture getAdministrativeUn * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getApplication(GetApplicationArgs.builder() + * final var example = AzureadFunctions.getApplication(GetApplicationArgs.builder() * .displayName("My First AzureAD Application") - * .build())); + * .build()); * - * ctx.export("applicationObjectId", example.apply(getApplicationResult -> getApplicationResult.getId())); - * } + * ctx.export("applicationObjectId", example.applyValue(getApplicationResult -> getApplicationResult.id())); + * } * } * ``` * @@ -482,10 +573,17 @@ public static Output getApplication() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetApplicationArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -493,12 +591,12 @@ public static Output getApplication() { * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getApplication(GetApplicationArgs.builder() + * final var example = AzureadFunctions.getApplication(GetApplicationArgs.builder() * .displayName("My First AzureAD Application") - * .build())); + * .build()); * - * ctx.export("applicationObjectId", example.apply(getApplicationResult -> getApplicationResult.getId())); - * } + * ctx.export("applicationObjectId", example.applyValue(getApplicationResult -> getApplicationResult.id())); + * } * } * ``` * @@ -521,10 +619,17 @@ public static CompletableFuture getApplicationPlain() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetApplicationArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -532,12 +637,12 @@ public static CompletableFuture getApplicationPlain() { * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getApplication(GetApplicationArgs.builder() + * final var example = AzureadFunctions.getApplication(GetApplicationArgs.builder() * .displayName("My First AzureAD Application") - * .build())); + * .build()); * - * ctx.export("applicationObjectId", example.apply(getApplicationResult -> getApplicationResult.getId())); - * } + * ctx.export("applicationObjectId", example.applyValue(getApplicationResult -> getApplicationResult.id())); + * } * } * ``` * @@ -560,10 +665,17 @@ public static Output getApplication(GetApplicationArgs arg * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetApplicationArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -571,12 +683,12 @@ public static Output getApplication(GetApplicationArgs arg * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getApplication(GetApplicationArgs.builder() + * final var example = AzureadFunctions.getApplication(GetApplicationArgs.builder() * .displayName("My First AzureAD Application") - * .build())); + * .build()); * - * ctx.export("applicationObjectId", example.apply(getApplicationResult -> getApplicationResult.getId())); - * } + * ctx.export("applicationObjectId", example.applyValue(getApplicationResult -> getApplicationResult.id())); + * } * } * ``` * @@ -599,10 +711,17 @@ public static CompletableFuture getApplicationPlain(GetApp * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetApplicationArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -610,12 +729,12 @@ public static CompletableFuture getApplicationPlain(GetApp * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getApplication(GetApplicationArgs.builder() + * final var example = AzureadFunctions.getApplication(GetApplicationArgs.builder() * .displayName("My First AzureAD Application") - * .build())); + * .build()); * - * ctx.export("applicationObjectId", example.apply(getApplicationResult -> getApplicationResult.getId())); - * } + * ctx.export("applicationObjectId", example.applyValue(getApplicationResult -> getApplicationResult.id())); + * } * } * ``` * @@ -638,10 +757,17 @@ public static Output getApplication(GetApplicationArgs arg * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetApplicationArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -649,12 +775,12 @@ public static Output getApplication(GetApplicationArgs arg * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getApplication(GetApplicationArgs.builder() + * final var example = AzureadFunctions.getApplication(GetApplicationArgs.builder() * .displayName("My First AzureAD Application") - * .build())); + * .build()); * - * ctx.export("applicationObjectId", example.apply(getApplicationResult -> getApplicationResult.getId())); - * } + * ctx.export("applicationObjectId", example.applyValue(getApplicationResult -> getApplicationResult.id())); + * } * } * ``` * @@ -675,10 +801,16 @@ public static CompletableFuture getApplicationPlain(GetApp * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -686,10 +818,10 @@ public static CompletableFuture getApplicationPlain(GetApp * } * * public static void stack(Context ctx) { - * final var wellKnown = Output.of(AzureadFunctions.getApplicationPublishedAppIds()); + * final var wellKnown = AzureadFunctions.getApplicationPublishedAppIds(); * - * ctx.export("publishedAppIds", wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult())); - * } + * ctx.export("publishedAppIds", wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result())); + * } * } * ``` * @@ -697,10 +829,21 @@ public static CompletableFuture getApplicationPlain(GetApp * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.ServicePrincipal; + * import com.pulumi.azuread.ServicePrincipalArgs; + * import com.pulumi.azuread.Application; + * import com.pulumi.azuread.ApplicationArgs; + * import com.pulumi.azuread.inputs.ApplicationRequiredResourceAccessArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -708,30 +851,30 @@ public static CompletableFuture getApplicationPlain(GetApp * } * * public static void stack(Context ctx) { - * final var wellKnown = Output.of(AzureadFunctions.getApplicationPublishedAppIds()); + * final var wellKnown = AzureadFunctions.getApplicationPublishedAppIds(); * * var msgraph = new ServicePrincipal("msgraph", ServicePrincipalArgs.builder() - * .applicationId(wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph())) + * .applicationId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result().MicrosoftGraph())) * .useExisting(true) * .build()); * * var example = new Application("example", ApplicationArgs.builder() * .displayName("example") - * .requiredResourceAccesses(ApplicationRequiredResourceAccess.builder() - * .resourceAppId(wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph())) + * .requiredResourceAccesses(ApplicationRequiredResourceAccessArgs.builder() + * .resourceAppId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result().MicrosoftGraph())) * .resourceAccesses( - * ApplicationRequiredResourceAccessResourceAccess.builder() - * .id(msgraph.getAppRoleIds().apply(appRoleIds -> appRoleIds.getUser.Read.All())) + * ApplicationRequiredResourceAccessResourceAccessArgs.builder() + * .id(msgraph.appRoleIds().applyValue(appRoleIds -> appRoleIds.User.Read.All())) * .type("Role") * .build(), - * ApplicationRequiredResourceAccessResourceAccess.builder() - * .id(msgraph.getOauth2PermissionScopeIds().apply(oauth2PermissionScopeIds -> oauth2PermissionScopeIds.getUser.ReadWrite())) + * ApplicationRequiredResourceAccessResourceAccessArgs.builder() + * .id(msgraph.oauth2PermissionScopeIds().applyValue(oauth2PermissionScopeIds -> oauth2PermissionScopeIds.User.ReadWrite())) * .type("Scope") * .build()) * .build()) * .build()); * - * } + * } * } * ``` * @@ -752,10 +895,16 @@ public static Output getApplicationPublishe * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -763,10 +912,10 @@ public static Output getApplicationPublishe * } * * public static void stack(Context ctx) { - * final var wellKnown = Output.of(AzureadFunctions.getApplicationPublishedAppIds()); + * final var wellKnown = AzureadFunctions.getApplicationPublishedAppIds(); * - * ctx.export("publishedAppIds", wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult())); - * } + * ctx.export("publishedAppIds", wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result())); + * } * } * ``` * @@ -774,10 +923,21 @@ public static Output getApplicationPublishe * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.ServicePrincipal; + * import com.pulumi.azuread.ServicePrincipalArgs; + * import com.pulumi.azuread.Application; + * import com.pulumi.azuread.ApplicationArgs; + * import com.pulumi.azuread.inputs.ApplicationRequiredResourceAccessArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -785,30 +945,30 @@ public static Output getApplicationPublishe * } * * public static void stack(Context ctx) { - * final var wellKnown = Output.of(AzureadFunctions.getApplicationPublishedAppIds()); + * final var wellKnown = AzureadFunctions.getApplicationPublishedAppIds(); * * var msgraph = new ServicePrincipal("msgraph", ServicePrincipalArgs.builder() - * .applicationId(wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph())) + * .applicationId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result().MicrosoftGraph())) * .useExisting(true) * .build()); * * var example = new Application("example", ApplicationArgs.builder() * .displayName("example") - * .requiredResourceAccesses(ApplicationRequiredResourceAccess.builder() - * .resourceAppId(wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph())) + * .requiredResourceAccesses(ApplicationRequiredResourceAccessArgs.builder() + * .resourceAppId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result().MicrosoftGraph())) * .resourceAccesses( - * ApplicationRequiredResourceAccessResourceAccess.builder() - * .id(msgraph.getAppRoleIds().apply(appRoleIds -> appRoleIds.getUser.Read.All())) + * ApplicationRequiredResourceAccessResourceAccessArgs.builder() + * .id(msgraph.appRoleIds().applyValue(appRoleIds -> appRoleIds.User.Read.All())) * .type("Role") * .build(), - * ApplicationRequiredResourceAccessResourceAccess.builder() - * .id(msgraph.getOauth2PermissionScopeIds().apply(oauth2PermissionScopeIds -> oauth2PermissionScopeIds.getUser.ReadWrite())) + * ApplicationRequiredResourceAccessResourceAccessArgs.builder() + * .id(msgraph.oauth2PermissionScopeIds().applyValue(oauth2PermissionScopeIds -> oauth2PermissionScopeIds.User.ReadWrite())) * .type("Scope") * .build()) * .build()) * .build()); * - * } + * } * } * ``` * @@ -829,10 +989,16 @@ public static CompletableFuture getApplicat * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -840,10 +1006,10 @@ public static CompletableFuture getApplicat * } * * public static void stack(Context ctx) { - * final var wellKnown = Output.of(AzureadFunctions.getApplicationPublishedAppIds()); + * final var wellKnown = AzureadFunctions.getApplicationPublishedAppIds(); * - * ctx.export("publishedAppIds", wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult())); - * } + * ctx.export("publishedAppIds", wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result())); + * } * } * ``` * @@ -851,10 +1017,21 @@ public static CompletableFuture getApplicat * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.ServicePrincipal; + * import com.pulumi.azuread.ServicePrincipalArgs; + * import com.pulumi.azuread.Application; + * import com.pulumi.azuread.ApplicationArgs; + * import com.pulumi.azuread.inputs.ApplicationRequiredResourceAccessArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -862,30 +1039,30 @@ public static CompletableFuture getApplicat * } * * public static void stack(Context ctx) { - * final var wellKnown = Output.of(AzureadFunctions.getApplicationPublishedAppIds()); + * final var wellKnown = AzureadFunctions.getApplicationPublishedAppIds(); * * var msgraph = new ServicePrincipal("msgraph", ServicePrincipalArgs.builder() - * .applicationId(wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph())) + * .applicationId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result().MicrosoftGraph())) * .useExisting(true) * .build()); * * var example = new Application("example", ApplicationArgs.builder() * .displayName("example") - * .requiredResourceAccesses(ApplicationRequiredResourceAccess.builder() - * .resourceAppId(wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph())) + * .requiredResourceAccesses(ApplicationRequiredResourceAccessArgs.builder() + * .resourceAppId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result().MicrosoftGraph())) * .resourceAccesses( - * ApplicationRequiredResourceAccessResourceAccess.builder() - * .id(msgraph.getAppRoleIds().apply(appRoleIds -> appRoleIds.getUser.Read.All())) + * ApplicationRequiredResourceAccessResourceAccessArgs.builder() + * .id(msgraph.appRoleIds().applyValue(appRoleIds -> appRoleIds.User.Read.All())) * .type("Role") * .build(), - * ApplicationRequiredResourceAccessResourceAccess.builder() - * .id(msgraph.getOauth2PermissionScopeIds().apply(oauth2PermissionScopeIds -> oauth2PermissionScopeIds.getUser.ReadWrite())) + * ApplicationRequiredResourceAccessResourceAccessArgs.builder() + * .id(msgraph.oauth2PermissionScopeIds().applyValue(oauth2PermissionScopeIds -> oauth2PermissionScopeIds.User.ReadWrite())) * .type("Scope") * .build()) * .build()) * .build()); * - * } + * } * } * ``` * @@ -906,10 +1083,16 @@ public static Output getApplicationPublishe * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -917,10 +1100,10 @@ public static Output getApplicationPublishe * } * * public static void stack(Context ctx) { - * final var wellKnown = Output.of(AzureadFunctions.getApplicationPublishedAppIds()); + * final var wellKnown = AzureadFunctions.getApplicationPublishedAppIds(); * - * ctx.export("publishedAppIds", wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult())); - * } + * ctx.export("publishedAppIds", wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result())); + * } * } * ``` * @@ -928,10 +1111,21 @@ public static Output getApplicationPublishe * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.ServicePrincipal; + * import com.pulumi.azuread.ServicePrincipalArgs; + * import com.pulumi.azuread.Application; + * import com.pulumi.azuread.ApplicationArgs; + * import com.pulumi.azuread.inputs.ApplicationRequiredResourceAccessArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -939,30 +1133,30 @@ public static Output getApplicationPublishe * } * * public static void stack(Context ctx) { - * final var wellKnown = Output.of(AzureadFunctions.getApplicationPublishedAppIds()); + * final var wellKnown = AzureadFunctions.getApplicationPublishedAppIds(); * * var msgraph = new ServicePrincipal("msgraph", ServicePrincipalArgs.builder() - * .applicationId(wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph())) + * .applicationId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result().MicrosoftGraph())) * .useExisting(true) * .build()); * * var example = new Application("example", ApplicationArgs.builder() * .displayName("example") - * .requiredResourceAccesses(ApplicationRequiredResourceAccess.builder() - * .resourceAppId(wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph())) + * .requiredResourceAccesses(ApplicationRequiredResourceAccessArgs.builder() + * .resourceAppId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result().MicrosoftGraph())) * .resourceAccesses( - * ApplicationRequiredResourceAccessResourceAccess.builder() - * .id(msgraph.getAppRoleIds().apply(appRoleIds -> appRoleIds.getUser.Read.All())) + * ApplicationRequiredResourceAccessResourceAccessArgs.builder() + * .id(msgraph.appRoleIds().applyValue(appRoleIds -> appRoleIds.User.Read.All())) * .type("Role") * .build(), - * ApplicationRequiredResourceAccessResourceAccess.builder() - * .id(msgraph.getOauth2PermissionScopeIds().apply(oauth2PermissionScopeIds -> oauth2PermissionScopeIds.getUser.ReadWrite())) + * ApplicationRequiredResourceAccessResourceAccessArgs.builder() + * .id(msgraph.oauth2PermissionScopeIds().applyValue(oauth2PermissionScopeIds -> oauth2PermissionScopeIds.User.ReadWrite())) * .type("Scope") * .build()) * .build()) * .build()); * - * } + * } * } * ``` * @@ -983,10 +1177,16 @@ public static CompletableFuture getApplicat * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -994,10 +1194,10 @@ public static CompletableFuture getApplicat * } * * public static void stack(Context ctx) { - * final var wellKnown = Output.of(AzureadFunctions.getApplicationPublishedAppIds()); + * final var wellKnown = AzureadFunctions.getApplicationPublishedAppIds(); * - * ctx.export("publishedAppIds", wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult())); - * } + * ctx.export("publishedAppIds", wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result())); + * } * } * ``` * @@ -1005,10 +1205,21 @@ public static CompletableFuture getApplicat * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.ServicePrincipal; + * import com.pulumi.azuread.ServicePrincipalArgs; + * import com.pulumi.azuread.Application; + * import com.pulumi.azuread.ApplicationArgs; + * import com.pulumi.azuread.inputs.ApplicationRequiredResourceAccessArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1016,30 +1227,30 @@ public static CompletableFuture getApplicat * } * * public static void stack(Context ctx) { - * final var wellKnown = Output.of(AzureadFunctions.getApplicationPublishedAppIds()); + * final var wellKnown = AzureadFunctions.getApplicationPublishedAppIds(); * * var msgraph = new ServicePrincipal("msgraph", ServicePrincipalArgs.builder() - * .applicationId(wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph())) + * .applicationId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result().MicrosoftGraph())) * .useExisting(true) * .build()); * * var example = new Application("example", ApplicationArgs.builder() * .displayName("example") - * .requiredResourceAccesses(ApplicationRequiredResourceAccess.builder() - * .resourceAppId(wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph())) + * .requiredResourceAccesses(ApplicationRequiredResourceAccessArgs.builder() + * .resourceAppId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result().MicrosoftGraph())) * .resourceAccesses( - * ApplicationRequiredResourceAccessResourceAccess.builder() - * .id(msgraph.getAppRoleIds().apply(appRoleIds -> appRoleIds.getUser.Read.All())) + * ApplicationRequiredResourceAccessResourceAccessArgs.builder() + * .id(msgraph.appRoleIds().applyValue(appRoleIds -> appRoleIds.User.Read.All())) * .type("Role") * .build(), - * ApplicationRequiredResourceAccessResourceAccess.builder() - * .id(msgraph.getOauth2PermissionScopeIds().apply(oauth2PermissionScopeIds -> oauth2PermissionScopeIds.getUser.ReadWrite())) + * ApplicationRequiredResourceAccessResourceAccessArgs.builder() + * .id(msgraph.oauth2PermissionScopeIds().applyValue(oauth2PermissionScopeIds -> oauth2PermissionScopeIds.User.ReadWrite())) * .type("Scope") * .build()) * .build()) * .build()); * - * } + * } * } * ``` * @@ -1060,10 +1271,16 @@ public static Output getApplicationPublishe * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1071,10 +1288,10 @@ public static Output getApplicationPublishe * } * * public static void stack(Context ctx) { - * final var wellKnown = Output.of(AzureadFunctions.getApplicationPublishedAppIds()); + * final var wellKnown = AzureadFunctions.getApplicationPublishedAppIds(); * - * ctx.export("publishedAppIds", wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult())); - * } + * ctx.export("publishedAppIds", wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result())); + * } * } * ``` * @@ -1082,10 +1299,21 @@ public static Output getApplicationPublishe * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.ServicePrincipal; + * import com.pulumi.azuread.ServicePrincipalArgs; + * import com.pulumi.azuread.Application; + * import com.pulumi.azuread.ApplicationArgs; + * import com.pulumi.azuread.inputs.ApplicationRequiredResourceAccessArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1093,30 +1321,30 @@ public static Output getApplicationPublishe * } * * public static void stack(Context ctx) { - * final var wellKnown = Output.of(AzureadFunctions.getApplicationPublishedAppIds()); + * final var wellKnown = AzureadFunctions.getApplicationPublishedAppIds(); * * var msgraph = new ServicePrincipal("msgraph", ServicePrincipalArgs.builder() - * .applicationId(wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph())) + * .applicationId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result().MicrosoftGraph())) * .useExisting(true) * .build()); * * var example = new Application("example", ApplicationArgs.builder() * .displayName("example") - * .requiredResourceAccesses(ApplicationRequiredResourceAccess.builder() - * .resourceAppId(wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph())) + * .requiredResourceAccesses(ApplicationRequiredResourceAccessArgs.builder() + * .resourceAppId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result().MicrosoftGraph())) * .resourceAccesses( - * ApplicationRequiredResourceAccessResourceAccess.builder() - * .id(msgraph.getAppRoleIds().apply(appRoleIds -> appRoleIds.getUser.Read.All())) + * ApplicationRequiredResourceAccessResourceAccessArgs.builder() + * .id(msgraph.appRoleIds().applyValue(appRoleIds -> appRoleIds.User.Read.All())) * .type("Role") * .build(), - * ApplicationRequiredResourceAccessResourceAccess.builder() - * .id(msgraph.getOauth2PermissionScopeIds().apply(oauth2PermissionScopeIds -> oauth2PermissionScopeIds.getUser.ReadWrite())) + * ApplicationRequiredResourceAccessResourceAccessArgs.builder() + * .id(msgraph.oauth2PermissionScopeIds().applyValue(oauth2PermissionScopeIds -> oauth2PermissionScopeIds.User.ReadWrite())) * .type("Scope") * .build()) * .build()) * .build()); * - * } + * } * } * ``` * @@ -1135,10 +1363,17 @@ public static CompletableFuture getApplicat * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetApplicationTemplateArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1146,12 +1381,12 @@ public static CompletableFuture getApplicat * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder() + * final var example = AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder() * .displayName("Marketo") - * .build())); + * .build()); * - * ctx.export("applicationTemplateId", example.apply(getApplicationTemplateResult -> getApplicationTemplateResult.getTemplateId())); - * } + * ctx.export("applicationTemplateId", example.applyValue(getApplicationTemplateResult -> getApplicationTemplateResult.templateId())); + * } * } * ``` * @@ -1170,10 +1405,17 @@ public static Output getApplicationTemplate() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetApplicationTemplateArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1181,12 +1423,12 @@ public static Output getApplicationTemplate() { * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder() + * final var example = AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder() * .displayName("Marketo") - * .build())); + * .build()); * - * ctx.export("applicationTemplateId", example.apply(getApplicationTemplateResult -> getApplicationTemplateResult.getTemplateId())); - * } + * ctx.export("applicationTemplateId", example.applyValue(getApplicationTemplateResult -> getApplicationTemplateResult.templateId())); + * } * } * ``` * @@ -1205,10 +1447,17 @@ public static CompletableFuture getApplicationTemp * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetApplicationTemplateArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1216,12 +1465,12 @@ public static CompletableFuture getApplicationTemp * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder() + * final var example = AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder() * .displayName("Marketo") - * .build())); + * .build()); * - * ctx.export("applicationTemplateId", example.apply(getApplicationTemplateResult -> getApplicationTemplateResult.getTemplateId())); - * } + * ctx.export("applicationTemplateId", example.applyValue(getApplicationTemplateResult -> getApplicationTemplateResult.templateId())); + * } * } * ``` * @@ -1240,10 +1489,17 @@ public static Output getApplicationTemplate(GetApp * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetApplicationTemplateArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1251,12 +1507,12 @@ public static Output getApplicationTemplate(GetApp * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder() + * final var example = AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder() * .displayName("Marketo") - * .build())); + * .build()); * - * ctx.export("applicationTemplateId", example.apply(getApplicationTemplateResult -> getApplicationTemplateResult.getTemplateId())); - * } + * ctx.export("applicationTemplateId", example.applyValue(getApplicationTemplateResult -> getApplicationTemplateResult.templateId())); + * } * } * ``` * @@ -1275,10 +1531,17 @@ public static CompletableFuture getApplicationTemp * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetApplicationTemplateArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1286,12 +1549,12 @@ public static CompletableFuture getApplicationTemp * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder() + * final var example = AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder() * .displayName("Marketo") - * .build())); + * .build()); * - * ctx.export("applicationTemplateId", example.apply(getApplicationTemplateResult -> getApplicationTemplateResult.getTemplateId())); - * } + * ctx.export("applicationTemplateId", example.applyValue(getApplicationTemplateResult -> getApplicationTemplateResult.templateId())); + * } * } * ``` * @@ -1310,10 +1573,17 @@ public static Output getApplicationTemplate(GetApp * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetApplicationTemplateArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1321,12 +1591,12 @@ public static Output getApplicationTemplate(GetApp * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder() + * final var example = AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder() * .displayName("Marketo") - * .build())); + * .build()); * - * ctx.export("applicationTemplateId", example.apply(getApplicationTemplateResult -> getApplicationTemplateResult.getTemplateId())); - * } + * ctx.export("applicationTemplateId", example.applyValue(getApplicationTemplateResult -> getApplicationTemplateResult.templateId())); + * } * } * ``` * @@ -1345,10 +1615,16 @@ public static CompletableFuture getApplicationTemp * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1356,10 +1632,10 @@ public static CompletableFuture getApplicationTemp * } * * public static void stack(Context ctx) { - * final var current = Output.of(AzureadFunctions.getClientConfig()); + * final var current = AzureadFunctions.getClientConfig(); * - * ctx.export("objectId", current.apply(getClientConfigResult -> getClientConfigResult.getObjectId())); - * } + * ctx.export("objectId", current.applyValue(getClientConfigResult -> getClientConfigResult.objectId())); + * } * } * ``` * @@ -1378,10 +1654,16 @@ public static Output getClientConfig() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1389,10 +1671,10 @@ public static Output getClientConfig() { * } * * public static void stack(Context ctx) { - * final var current = Output.of(AzureadFunctions.getClientConfig()); + * final var current = AzureadFunctions.getClientConfig(); * - * ctx.export("objectId", current.apply(getClientConfigResult -> getClientConfigResult.getObjectId())); - * } + * ctx.export("objectId", current.applyValue(getClientConfigResult -> getClientConfigResult.objectId())); + * } * } * ``` * @@ -1411,10 +1693,16 @@ public static CompletableFuture getClientConfigPlain() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1422,10 +1710,10 @@ public static CompletableFuture getClientConfigPlain() { * } * * public static void stack(Context ctx) { - * final var current = Output.of(AzureadFunctions.getClientConfig()); + * final var current = AzureadFunctions.getClientConfig(); * - * ctx.export("objectId", current.apply(getClientConfigResult -> getClientConfigResult.getObjectId())); - * } + * ctx.export("objectId", current.applyValue(getClientConfigResult -> getClientConfigResult.objectId())); + * } * } * ``` * @@ -1444,10 +1732,16 @@ public static Output getClientConfig(InvokeArgs args) { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1455,10 +1749,10 @@ public static Output getClientConfig(InvokeArgs args) { * } * * public static void stack(Context ctx) { - * final var current = Output.of(AzureadFunctions.getClientConfig()); + * final var current = AzureadFunctions.getClientConfig(); * - * ctx.export("objectId", current.apply(getClientConfigResult -> getClientConfigResult.getObjectId())); - * } + * ctx.export("objectId", current.applyValue(getClientConfigResult -> getClientConfigResult.objectId())); + * } * } * ``` * @@ -1477,10 +1771,16 @@ public static CompletableFuture getClientConfigPlain(Invo * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1488,10 +1788,10 @@ public static CompletableFuture getClientConfigPlain(Invo * } * * public static void stack(Context ctx) { - * final var current = Output.of(AzureadFunctions.getClientConfig()); + * final var current = AzureadFunctions.getClientConfig(); * - * ctx.export("objectId", current.apply(getClientConfigResult -> getClientConfigResult.getObjectId())); - * } + * ctx.export("objectId", current.applyValue(getClientConfigResult -> getClientConfigResult.objectId())); + * } * } * ``` * @@ -1510,10 +1810,16 @@ public static Output getClientConfig(InvokeArgs args, Inv * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1521,10 +1827,10 @@ public static Output getClientConfig(InvokeArgs args, Inv * } * * public static void stack(Context ctx) { - * final var current = Output.of(AzureadFunctions.getClientConfig()); + * final var current = AzureadFunctions.getClientConfig(); * - * ctx.export("objectId", current.apply(getClientConfigResult -> getClientConfigResult.getObjectId())); - * } + * ctx.export("objectId", current.applyValue(getClientConfigResult -> getClientConfigResult.objectId())); + * } * } * ``` * @@ -1547,10 +1853,17 @@ public static CompletableFuture getClientConfigPlain(Invo * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetDomainsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1558,10 +1871,10 @@ public static CompletableFuture getClientConfigPlain(Invo * } * * public static void stack(Context ctx) { - * final var aadDomains = Output.of(AzureadFunctions.getDomains()); + * final var aadDomains = AzureadFunctions.getDomains(); * - * ctx.export("domainNames", aadDomains.apply(getDomainsResult -> getDomainsResult.getDomains()).stream().map(element -> element.getDomainName()).collect(toList())); - * } + * ctx.export("domainNames", aadDomains.applyValue(getDomainsResult -> getDomainsResult.domains()).stream().map(element -> element.domainName()).collect(toList())); + * } * } * ``` * @@ -1584,10 +1897,17 @@ public static Output getDomains() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetDomainsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1595,10 +1915,10 @@ public static Output getDomains() { * } * * public static void stack(Context ctx) { - * final var aadDomains = Output.of(AzureadFunctions.getDomains()); + * final var aadDomains = AzureadFunctions.getDomains(); * - * ctx.export("domainNames", aadDomains.apply(getDomainsResult -> getDomainsResult.getDomains()).stream().map(element -> element.getDomainName()).collect(toList())); - * } + * ctx.export("domainNames", aadDomains.applyValue(getDomainsResult -> getDomainsResult.domains()).stream().map(element -> element.domainName()).collect(toList())); + * } * } * ``` * @@ -1621,10 +1941,17 @@ public static CompletableFuture getDomainsPlain() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetDomainsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1632,10 +1959,10 @@ public static CompletableFuture getDomainsPlain() { * } * * public static void stack(Context ctx) { - * final var aadDomains = Output.of(AzureadFunctions.getDomains()); + * final var aadDomains = AzureadFunctions.getDomains(); * - * ctx.export("domainNames", aadDomains.apply(getDomainsResult -> getDomainsResult.getDomains()).stream().map(element -> element.getDomainName()).collect(toList())); - * } + * ctx.export("domainNames", aadDomains.applyValue(getDomainsResult -> getDomainsResult.domains()).stream().map(element -> element.domainName()).collect(toList())); + * } * } * ``` * @@ -1658,10 +1985,17 @@ public static Output getDomains(GetDomainsArgs args) { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetDomainsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1669,10 +2003,10 @@ public static Output getDomains(GetDomainsArgs args) { * } * * public static void stack(Context ctx) { - * final var aadDomains = Output.of(AzureadFunctions.getDomains()); + * final var aadDomains = AzureadFunctions.getDomains(); * - * ctx.export("domainNames", aadDomains.apply(getDomainsResult -> getDomainsResult.getDomains()).stream().map(element -> element.getDomainName()).collect(toList())); - * } + * ctx.export("domainNames", aadDomains.applyValue(getDomainsResult -> getDomainsResult.domains()).stream().map(element -> element.domainName()).collect(toList())); + * } * } * ``` * @@ -1695,10 +2029,17 @@ public static CompletableFuture getDomainsPlain(GetDomainsPlai * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetDomainsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1706,10 +2047,10 @@ public static CompletableFuture getDomainsPlain(GetDomainsPlai * } * * public static void stack(Context ctx) { - * final var aadDomains = Output.of(AzureadFunctions.getDomains()); + * final var aadDomains = AzureadFunctions.getDomains(); * - * ctx.export("domainNames", aadDomains.apply(getDomainsResult -> getDomainsResult.getDomains()).stream().map(element -> element.getDomainName()).collect(toList())); - * } + * ctx.export("domainNames", aadDomains.applyValue(getDomainsResult -> getDomainsResult.domains()).stream().map(element -> element.domainName()).collect(toList())); + * } * } * ``` * @@ -1732,10 +2073,17 @@ public static Output getDomains(GetDomainsArgs args, InvokeOpt * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetDomainsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1743,10 +2091,10 @@ public static Output getDomains(GetDomainsArgs args, InvokeOpt * } * * public static void stack(Context ctx) { - * final var aadDomains = Output.of(AzureadFunctions.getDomains()); + * final var aadDomains = AzureadFunctions.getDomains(); * - * ctx.export("domainNames", aadDomains.apply(getDomainsResult -> getDomainsResult.getDomains()).stream().map(element -> element.getDomainName()).collect(toList())); - * } + * ctx.export("domainNames", aadDomains.applyValue(getDomainsResult -> getDomainsResult.domains()).stream().map(element -> element.domainName()).collect(toList())); + * } * } * ``` * @@ -1770,10 +2118,17 @@ public static CompletableFuture getDomainsPlain(GetDomainsPlai * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1781,12 +2136,12 @@ public static CompletableFuture getDomainsPlain(GetDomainsPlai * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getGroup(GetGroupArgs.builder() + * final var example = AzureadFunctions.getGroup(GetGroupArgs.builder() * .displayName("MyGroupName") * .securityEnabled(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -1810,10 +2165,17 @@ public static Output getGroup() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1821,12 +2183,12 @@ public static Output getGroup() { * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getGroup(GetGroupArgs.builder() + * final var example = AzureadFunctions.getGroup(GetGroupArgs.builder() * .displayName("MyGroupName") * .securityEnabled(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -1850,10 +2212,17 @@ public static CompletableFuture getGroupPlain() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1861,12 +2230,12 @@ public static CompletableFuture getGroupPlain() { * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getGroup(GetGroupArgs.builder() + * final var example = AzureadFunctions.getGroup(GetGroupArgs.builder() * .displayName("MyGroupName") * .securityEnabled(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -1890,10 +2259,17 @@ public static Output getGroup(GetGroupArgs args) { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1901,12 +2277,12 @@ public static Output getGroup(GetGroupArgs args) { * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getGroup(GetGroupArgs.builder() + * final var example = AzureadFunctions.getGroup(GetGroupArgs.builder() * .displayName("MyGroupName") * .securityEnabled(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -1930,10 +2306,17 @@ public static CompletableFuture getGroupPlain(GetGroupPlainArgs * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1941,12 +2324,12 @@ public static CompletableFuture getGroupPlain(GetGroupPlainArgs * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getGroup(GetGroupArgs.builder() + * final var example = AzureadFunctions.getGroup(GetGroupArgs.builder() * .displayName("MyGroupName") * .securityEnabled(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -1970,10 +2353,17 @@ public static Output getGroup(GetGroupArgs args, InvokeOptions o * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -1981,12 +2371,12 @@ public static Output getGroup(GetGroupArgs args, InvokeOptions o * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getGroup(GetGroupArgs.builder() + * final var example = AzureadFunctions.getGroup(GetGroupArgs.builder() * .displayName("MyGroupName") * .securityEnabled(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2011,10 +2401,17 @@ public static CompletableFuture getGroupPlain(GetGroupPlainArgs * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2022,13 +2419,13 @@ public static CompletableFuture getGroupPlain(GetGroupPlainArgs * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var example = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .displayNames( * "group-a", * "group-b") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2036,10 +2433,17 @@ public static CompletableFuture getGroupPlain(GetGroupPlainArgs * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2047,11 +2451,11 @@ public static CompletableFuture getGroupPlain(GetGroupPlainArgs * } * * public static void stack(Context ctx) { - * final var sales = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var sales = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .displayNamePrefix("sales-") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2059,10 +2463,17 @@ public static CompletableFuture getGroupPlain(GetGroupPlainArgs * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2070,11 +2481,11 @@ public static CompletableFuture getGroupPlain(GetGroupPlainArgs * } * * public static void stack(Context ctx) { - * final var all = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var all = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .returnAll(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2082,10 +2493,17 @@ public static CompletableFuture getGroupPlain(GetGroupPlainArgs * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2093,12 +2511,12 @@ public static CompletableFuture getGroupPlain(GetGroupPlainArgs * } * * public static void stack(Context ctx) { - * final var mailEnabled = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var mailEnabled = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .mailEnabled(true) * .returnAll(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2106,10 +2524,17 @@ public static CompletableFuture getGroupPlain(GetGroupPlainArgs * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2117,13 +2542,13 @@ public static CompletableFuture getGroupPlain(GetGroupPlainArgs * } * * public static void stack(Context ctx) { - * final var securityOnly = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var securityOnly = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .mailEnabled(false) * .returnAll(true) * .securityEnabled(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2148,10 +2573,17 @@ public static Output getGroups() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2159,13 +2591,13 @@ public static Output getGroups() { * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var example = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .displayNames( * "group-a", * "group-b") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2173,10 +2605,17 @@ public static Output getGroups() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2184,11 +2623,11 @@ public static Output getGroups() { * } * * public static void stack(Context ctx) { - * final var sales = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var sales = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .displayNamePrefix("sales-") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2196,10 +2635,17 @@ public static Output getGroups() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2207,11 +2653,11 @@ public static Output getGroups() { * } * * public static void stack(Context ctx) { - * final var all = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var all = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .returnAll(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2219,10 +2665,17 @@ public static Output getGroups() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2230,12 +2683,12 @@ public static Output getGroups() { * } * * public static void stack(Context ctx) { - * final var mailEnabled = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var mailEnabled = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .mailEnabled(true) * .returnAll(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2243,10 +2696,17 @@ public static Output getGroups() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2254,13 +2714,13 @@ public static Output getGroups() { * } * * public static void stack(Context ctx) { - * final var securityOnly = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var securityOnly = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .mailEnabled(false) * .returnAll(true) * .securityEnabled(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2285,10 +2745,17 @@ public static CompletableFuture getGroupsPlain() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2296,13 +2763,13 @@ public static CompletableFuture getGroupsPlain() { * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var example = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .displayNames( * "group-a", * "group-b") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2310,10 +2777,17 @@ public static CompletableFuture getGroupsPlain() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2321,11 +2795,11 @@ public static CompletableFuture getGroupsPlain() { * } * * public static void stack(Context ctx) { - * final var sales = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var sales = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .displayNamePrefix("sales-") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2333,10 +2807,17 @@ public static CompletableFuture getGroupsPlain() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2344,11 +2825,11 @@ public static CompletableFuture getGroupsPlain() { * } * * public static void stack(Context ctx) { - * final var all = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var all = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .returnAll(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2356,10 +2837,17 @@ public static CompletableFuture getGroupsPlain() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2367,12 +2855,12 @@ public static CompletableFuture getGroupsPlain() { * } * * public static void stack(Context ctx) { - * final var mailEnabled = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var mailEnabled = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .mailEnabled(true) * .returnAll(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2380,10 +2868,17 @@ public static CompletableFuture getGroupsPlain() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2391,13 +2886,13 @@ public static CompletableFuture getGroupsPlain() { * } * * public static void stack(Context ctx) { - * final var securityOnly = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var securityOnly = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .mailEnabled(false) * .returnAll(true) * .securityEnabled(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2422,10 +2917,17 @@ public static Output getGroups(GetGroupsArgs args) { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2433,13 +2935,13 @@ public static Output getGroups(GetGroupsArgs args) { * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var example = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .displayNames( * "group-a", * "group-b") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2447,10 +2949,17 @@ public static Output getGroups(GetGroupsArgs args) { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2458,11 +2967,11 @@ public static Output getGroups(GetGroupsArgs args) { * } * * public static void stack(Context ctx) { - * final var sales = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var sales = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .displayNamePrefix("sales-") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2470,10 +2979,17 @@ public static Output getGroups(GetGroupsArgs args) { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2481,11 +2997,11 @@ public static Output getGroups(GetGroupsArgs args) { * } * * public static void stack(Context ctx) { - * final var all = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var all = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .returnAll(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2493,10 +3009,17 @@ public static Output getGroups(GetGroupsArgs args) { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2504,12 +3027,12 @@ public static Output getGroups(GetGroupsArgs args) { * } * * public static void stack(Context ctx) { - * final var mailEnabled = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var mailEnabled = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .mailEnabled(true) * .returnAll(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2517,10 +3040,17 @@ public static Output getGroups(GetGroupsArgs args) { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2528,13 +3058,13 @@ public static Output getGroups(GetGroupsArgs args) { * } * * public static void stack(Context ctx) { - * final var securityOnly = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var securityOnly = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .mailEnabled(false) * .returnAll(true) * .securityEnabled(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2559,10 +3089,17 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2570,13 +3107,13 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var example = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .displayNames( * "group-a", * "group-b") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2584,10 +3121,17 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2595,11 +3139,11 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr * } * * public static void stack(Context ctx) { - * final var sales = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var sales = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .displayNamePrefix("sales-") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2607,10 +3151,17 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2618,11 +3169,11 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr * } * * public static void stack(Context ctx) { - * final var all = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var all = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .returnAll(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2630,10 +3181,17 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2641,12 +3199,12 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr * } * * public static void stack(Context ctx) { - * final var mailEnabled = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var mailEnabled = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .mailEnabled(true) * .returnAll(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2654,10 +3212,17 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2665,13 +3230,13 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr * } * * public static void stack(Context ctx) { - * final var securityOnly = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var securityOnly = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .mailEnabled(false) * .returnAll(true) * .securityEnabled(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2696,10 +3261,17 @@ public static Output getGroups(GetGroupsArgs args, InvokeOption * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2707,13 +3279,13 @@ public static Output getGroups(GetGroupsArgs args, InvokeOption * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var example = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .displayNames( * "group-a", * "group-b") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2721,10 +3293,17 @@ public static Output getGroups(GetGroupsArgs args, InvokeOption * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2732,11 +3311,11 @@ public static Output getGroups(GetGroupsArgs args, InvokeOption * } * * public static void stack(Context ctx) { - * final var sales = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var sales = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .displayNamePrefix("sales-") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2744,10 +3323,17 @@ public static Output getGroups(GetGroupsArgs args, InvokeOption * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2755,11 +3341,11 @@ public static Output getGroups(GetGroupsArgs args, InvokeOption * } * * public static void stack(Context ctx) { - * final var all = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var all = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .returnAll(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2767,10 +3353,17 @@ public static Output getGroups(GetGroupsArgs args, InvokeOption * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2778,12 +3371,12 @@ public static Output getGroups(GetGroupsArgs args, InvokeOption * } * * public static void stack(Context ctx) { - * final var mailEnabled = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var mailEnabled = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .mailEnabled(true) * .returnAll(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2791,10 +3384,17 @@ public static Output getGroups(GetGroupsArgs args, InvokeOption * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetGroupsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2802,13 +3402,13 @@ public static Output getGroups(GetGroupsArgs args, InvokeOption * } * * public static void stack(Context ctx) { - * final var securityOnly = Output.of(AzureadFunctions.getGroups(GetGroupsArgs.builder() + * final var securityOnly = AzureadFunctions.getGroups(GetGroupsArgs.builder() * .mailEnabled(false) * .returnAll(true) * .securityEnabled(true) - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2833,10 +3433,17 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2844,11 +3451,11 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() + * final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() * .displayName("my-awesome-application") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2856,10 +3463,17 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2867,11 +3481,11 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() + * final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() * .applicationId("00000000-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2879,10 +3493,17 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2890,11 +3511,11 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() + * final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() * .objectId("00000000-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2919,10 +3540,17 @@ public static Output getServicePrincipal() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2930,11 +3558,11 @@ public static Output getServicePrincipal() { * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() + * final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() * .displayName("my-awesome-application") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2942,10 +3570,17 @@ public static Output getServicePrincipal() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2953,11 +3588,11 @@ public static Output getServicePrincipal() { * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() + * final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() * .applicationId("00000000-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -2965,10 +3600,17 @@ public static Output getServicePrincipal() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -2976,11 +3618,11 @@ public static Output getServicePrincipal() { * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() + * final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() * .objectId("00000000-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3005,10 +3647,17 @@ public static CompletableFuture getServicePrincipalPl * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3016,11 +3665,11 @@ public static CompletableFuture getServicePrincipalPl * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() + * final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() * .displayName("my-awesome-application") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3028,10 +3677,17 @@ public static CompletableFuture getServicePrincipalPl * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3039,11 +3695,11 @@ public static CompletableFuture getServicePrincipalPl * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() + * final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() * .applicationId("00000000-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3051,10 +3707,17 @@ public static CompletableFuture getServicePrincipalPl * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3062,11 +3725,11 @@ public static CompletableFuture getServicePrincipalPl * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() + * final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() * .objectId("00000000-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3091,10 +3754,17 @@ public static Output getServicePrincipal(GetServicePr * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3102,11 +3772,11 @@ public static Output getServicePrincipal(GetServicePr * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() + * final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() * .displayName("my-awesome-application") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3114,10 +3784,17 @@ public static Output getServicePrincipal(GetServicePr * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3125,11 +3802,11 @@ public static Output getServicePrincipal(GetServicePr * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() + * final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() * .applicationId("00000000-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3137,10 +3814,17 @@ public static Output getServicePrincipal(GetServicePr * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3148,11 +3832,11 @@ public static Output getServicePrincipal(GetServicePr * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() + * final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() * .objectId("00000000-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3177,10 +3861,17 @@ public static CompletableFuture getServicePrincipalPl * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3188,11 +3879,11 @@ public static CompletableFuture getServicePrincipalPl * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() + * final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() * .displayName("my-awesome-application") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3200,10 +3891,17 @@ public static CompletableFuture getServicePrincipalPl * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3211,11 +3909,11 @@ public static CompletableFuture getServicePrincipalPl * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() + * final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() * .applicationId("00000000-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3223,10 +3921,17 @@ public static CompletableFuture getServicePrincipalPl * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3234,11 +3939,11 @@ public static CompletableFuture getServicePrincipalPl * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() + * final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() * .objectId("00000000-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3263,10 +3968,17 @@ public static Output getServicePrincipal(GetServicePr * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3274,11 +3986,11 @@ public static Output getServicePrincipal(GetServicePr * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() + * final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() * .displayName("my-awesome-application") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3286,10 +3998,17 @@ public static Output getServicePrincipal(GetServicePr * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3297,11 +4016,11 @@ public static Output getServicePrincipal(GetServicePr * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() + * final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() * .applicationId("00000000-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3309,10 +4028,17 @@ public static Output getServicePrincipal(GetServicePr * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3320,11 +4046,11 @@ public static Output getServicePrincipal(GetServicePr * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() + * final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder() * .objectId("00000000-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3349,10 +4075,17 @@ public static CompletableFuture getServicePrincipalPl * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3360,13 +4093,13 @@ public static CompletableFuture getServicePrincipalPl * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() + * final var example = AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() * .displayNames( * "example-app", * "another-app") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3374,10 +4107,17 @@ public static CompletableFuture getServicePrincipalPl * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3385,14 +4125,14 @@ public static CompletableFuture getServicePrincipalPl * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() + * final var example = AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() * .applicationIds( * "11111111-0000-0000-0000-000000000000", * "22222222-0000-0000-0000-000000000000", * "33333333-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3400,10 +4140,17 @@ public static CompletableFuture getServicePrincipalPl * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3411,14 +4158,14 @@ public static CompletableFuture getServicePrincipalPl * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() + * final var example = AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() * .objectIds( * "00000000-0000-0000-0000-000000000000", * "00000000-0000-0000-0000-111111111111", * "00000000-0000-0000-0000-222222222222") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3443,10 +4190,17 @@ public static Output getServicePrincipals() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3454,13 +4208,13 @@ public static Output getServicePrincipals() { * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() + * final var example = AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() * .displayNames( * "example-app", * "another-app") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3468,10 +4222,17 @@ public static Output getServicePrincipals() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3479,14 +4240,14 @@ public static Output getServicePrincipals() { * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() + * final var example = AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() * .applicationIds( * "11111111-0000-0000-0000-000000000000", * "22222222-0000-0000-0000-000000000000", * "33333333-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3494,10 +4255,17 @@ public static Output getServicePrincipals() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3505,14 +4273,14 @@ public static Output getServicePrincipals() { * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() + * final var example = AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() * .objectIds( * "00000000-0000-0000-0000-000000000000", * "00000000-0000-0000-0000-111111111111", * "00000000-0000-0000-0000-222222222222") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3537,10 +4305,17 @@ public static CompletableFuture getServicePrincipals * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3548,13 +4323,13 @@ public static CompletableFuture getServicePrincipals * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() + * final var example = AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() * .displayNames( * "example-app", * "another-app") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3562,10 +4337,17 @@ public static CompletableFuture getServicePrincipals * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3573,14 +4355,14 @@ public static CompletableFuture getServicePrincipals * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() + * final var example = AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() * .applicationIds( * "11111111-0000-0000-0000-000000000000", * "22222222-0000-0000-0000-000000000000", * "33333333-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3588,10 +4370,17 @@ public static CompletableFuture getServicePrincipals * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3599,14 +4388,14 @@ public static CompletableFuture getServicePrincipals * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() + * final var example = AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() * .objectIds( * "00000000-0000-0000-0000-000000000000", * "00000000-0000-0000-0000-111111111111", * "00000000-0000-0000-0000-222222222222") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3631,10 +4420,17 @@ public static Output getServicePrincipals(GetService * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3642,13 +4438,13 @@ public static Output getServicePrincipals(GetService * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() + * final var example = AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() * .displayNames( * "example-app", * "another-app") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3656,10 +4452,17 @@ public static Output getServicePrincipals(GetService * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3667,14 +4470,14 @@ public static Output getServicePrincipals(GetService * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() + * final var example = AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() * .applicationIds( * "11111111-0000-0000-0000-000000000000", * "22222222-0000-0000-0000-000000000000", * "33333333-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3682,10 +4485,17 @@ public static Output getServicePrincipals(GetService * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3693,14 +4503,14 @@ public static Output getServicePrincipals(GetService * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() + * final var example = AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() * .objectIds( * "00000000-0000-0000-0000-000000000000", * "00000000-0000-0000-0000-111111111111", * "00000000-0000-0000-0000-222222222222") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3725,10 +4535,17 @@ public static CompletableFuture getServicePrincipals * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3736,13 +4553,13 @@ public static CompletableFuture getServicePrincipals * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() + * final var example = AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() * .displayNames( * "example-app", * "another-app") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3750,10 +4567,17 @@ public static CompletableFuture getServicePrincipals * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3761,14 +4585,14 @@ public static CompletableFuture getServicePrincipals * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() + * final var example = AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() * .applicationIds( * "11111111-0000-0000-0000-000000000000", * "22222222-0000-0000-0000-000000000000", * "33333333-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3776,10 +4600,17 @@ public static CompletableFuture getServicePrincipals * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3787,14 +4618,14 @@ public static CompletableFuture getServicePrincipals * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() + * final var example = AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() * .objectIds( * "00000000-0000-0000-0000-000000000000", * "00000000-0000-0000-0000-111111111111", * "00000000-0000-0000-0000-222222222222") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3819,10 +4650,17 @@ public static Output getServicePrincipals(GetService * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3830,13 +4668,13 @@ public static Output getServicePrincipals(GetService * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() + * final var example = AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() * .displayNames( * "example-app", * "another-app") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3844,10 +4682,17 @@ public static Output getServicePrincipals(GetService * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3855,14 +4700,14 @@ public static Output getServicePrincipals(GetService * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() + * final var example = AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() * .applicationIds( * "11111111-0000-0000-0000-000000000000", * "22222222-0000-0000-0000-000000000000", * "33333333-0000-0000-0000-000000000000") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3870,10 +4715,17 @@ public static Output getServicePrincipals(GetService * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetServicePrincipalsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3881,14 +4733,14 @@ public static Output getServicePrincipals(GetService * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() + * final var example = AzureadFunctions.getServicePrincipals(GetServicePrincipalsArgs.builder() * .objectIds( * "00000000-0000-0000-0000-000000000000", * "00000000-0000-0000-0000-111111111111", * "00000000-0000-0000-0000-222222222222") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3911,10 +4763,17 @@ public static CompletableFuture getServicePrincipals * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetUserArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3922,11 +4781,11 @@ public static CompletableFuture getServicePrincipals * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getUser(GetUserArgs.builder() + * final var example = AzureadFunctions.getUser(GetUserArgs.builder() * .userPrincipalName("user@hashicorp.com") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3949,10 +4808,17 @@ public static Output getUser() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetUserArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3960,11 +4826,11 @@ public static Output getUser() { * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getUser(GetUserArgs.builder() + * final var example = AzureadFunctions.getUser(GetUserArgs.builder() * .userPrincipalName("user@hashicorp.com") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -3987,10 +4853,17 @@ public static CompletableFuture getUserPlain() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetUserArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -3998,11 +4871,11 @@ public static CompletableFuture getUserPlain() { * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getUser(GetUserArgs.builder() + * final var example = AzureadFunctions.getUser(GetUserArgs.builder() * .userPrincipalName("user@hashicorp.com") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -4025,10 +4898,17 @@ public static Output getUser(GetUserArgs args) { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetUserArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -4036,11 +4916,11 @@ public static Output getUser(GetUserArgs args) { * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getUser(GetUserArgs.builder() + * final var example = AzureadFunctions.getUser(GetUserArgs.builder() * .userPrincipalName("user@hashicorp.com") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -4063,10 +4943,17 @@ public static CompletableFuture getUserPlain(GetUserPlainArgs arg * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetUserArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -4074,11 +4961,11 @@ public static CompletableFuture getUserPlain(GetUserPlainArgs arg * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getUser(GetUserArgs.builder() + * final var example = AzureadFunctions.getUser(GetUserArgs.builder() * .userPrincipalName("user@hashicorp.com") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -4101,10 +4988,17 @@ public static Output getUser(GetUserArgs args, InvokeOptions opti * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetUserArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -4112,11 +5006,11 @@ public static Output getUser(GetUserArgs args, InvokeOptions opti * } * * public static void stack(Context ctx) { - * final var example = Output.of(AzureadFunctions.getUser(GetUserArgs.builder() + * final var example = AzureadFunctions.getUser(GetUserArgs.builder() * .userPrincipalName("user@hashicorp.com") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -4139,10 +5033,17 @@ public static CompletableFuture getUserPlain(GetUserPlainArgs arg * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetUsersArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -4150,13 +5051,13 @@ public static CompletableFuture getUserPlain(GetUserPlainArgs arg * } * * public static void stack(Context ctx) { - * final var users = Output.of(AzureadFunctions.getUsers(GetUsersArgs.builder() + * final var users = AzureadFunctions.getUsers(GetUsersArgs.builder() * .userPrincipalNames( * "kat@hashicorp.com", * "byte@hashicorp.com") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -4179,10 +5080,17 @@ public static Output getUsers() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetUsersArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -4190,13 +5098,13 @@ public static Output getUsers() { * } * * public static void stack(Context ctx) { - * final var users = Output.of(AzureadFunctions.getUsers(GetUsersArgs.builder() + * final var users = AzureadFunctions.getUsers(GetUsersArgs.builder() * .userPrincipalNames( * "kat@hashicorp.com", * "byte@hashicorp.com") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -4219,10 +5127,17 @@ public static CompletableFuture getUsersPlain() { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetUsersArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -4230,13 +5145,13 @@ public static CompletableFuture getUsersPlain() { * } * * public static void stack(Context ctx) { - * final var users = Output.of(AzureadFunctions.getUsers(GetUsersArgs.builder() + * final var users = AzureadFunctions.getUsers(GetUsersArgs.builder() * .userPrincipalNames( * "kat@hashicorp.com", * "byte@hashicorp.com") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -4259,10 +5174,17 @@ public static Output getUsers(GetUsersArgs args) { * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetUsersArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -4270,13 +5192,13 @@ public static Output getUsers(GetUsersArgs args) { * } * * public static void stack(Context ctx) { - * final var users = Output.of(AzureadFunctions.getUsers(GetUsersArgs.builder() + * final var users = AzureadFunctions.getUsers(GetUsersArgs.builder() * .userPrincipalNames( * "kat@hashicorp.com", * "byte@hashicorp.com") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -4299,10 +5221,17 @@ public static CompletableFuture getUsersPlain(GetUsersPlainArgs * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetUsersArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -4310,13 +5239,13 @@ public static CompletableFuture getUsersPlain(GetUsersPlainArgs * } * * public static void stack(Context ctx) { - * final var users = Output.of(AzureadFunctions.getUsers(GetUsersArgs.builder() + * final var users = AzureadFunctions.getUsers(GetUsersArgs.builder() * .userPrincipalNames( * "kat@hashicorp.com", * "byte@hashicorp.com") - * .build())); + * .build()); * - * } + * } * } * ``` * @@ -4339,10 +5268,17 @@ public static Output getUsers(GetUsersArgs args, InvokeOptions o * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetUsersArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -4350,13 +5286,13 @@ public static Output getUsers(GetUsersArgs args, InvokeOptions o * } * * public static void stack(Context ctx) { - * final var users = Output.of(AzureadFunctions.getUsers(GetUsersArgs.builder() + * final var users = AzureadFunctions.getUsers(GetUsersArgs.builder() * .userPrincipalNames( * "kat@hashicorp.com", * "byte@hashicorp.com") - * .build())); + * .build()); * - * } + * } * } * ``` * diff --git a/sdk/java/src/main/java/com/pulumi/azuread/ClaimsMappingPolicy.java b/sdk/java/src/main/java/com/pulumi/azuread/ClaimsMappingPolicy.java index 43d7415d1..f24ba5c7d 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/ClaimsMappingPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/ClaimsMappingPolicy.java @@ -29,11 +29,18 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.ClaimsMappingPolicy; + * import com.pulumi.azuread.ClaimsMappingPolicyArgs; * import static com.pulumi.codegen.internal.Serialization.*; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -66,7 +73,7 @@ * .displayName("My Policy") * .build()); * - * } + * } * } * ``` * diff --git a/sdk/java/src/main/java/com/pulumi/azuread/ConditionalAccessPolicy.java b/sdk/java/src/main/java/com/pulumi/azuread/ConditionalAccessPolicy.java index 0028dd046..8189ee102 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/ConditionalAccessPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/ConditionalAccessPolicy.java @@ -32,10 +32,26 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.ConditionalAccessPolicy; + * import com.pulumi.azuread.ConditionalAccessPolicyArgs; + * import com.pulumi.azuread.inputs.ConditionalAccessPolicyConditionsArgs; + * import com.pulumi.azuread.inputs.ConditionalAccessPolicyConditionsApplicationsArgs; + * import com.pulumi.azuread.inputs.ConditionalAccessPolicyConditionsDevicesArgs; + * import com.pulumi.azuread.inputs.ConditionalAccessPolicyConditionsDevicesFilterArgs; + * import com.pulumi.azuread.inputs.ConditionalAccessPolicyConditionsLocationsArgs; + * import com.pulumi.azuread.inputs.ConditionalAccessPolicyConditionsPlatformsArgs; + * import com.pulumi.azuread.inputs.ConditionalAccessPolicyConditionsUsersArgs; + * import com.pulumi.azuread.inputs.ConditionalAccessPolicyGrantControlsArgs; + * import com.pulumi.azuread.inputs.ConditionalAccessPolicySessionControlsArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -44,39 +60,39 @@ * * public static void stack(Context ctx) { * var example = new ConditionalAccessPolicy("example", ConditionalAccessPolicyArgs.builder() - * .conditions(ConditionalAccessPolicyConditions.builder() - * .applications(ConditionalAccessPolicyConditionsApplications.builder() + * .conditions(ConditionalAccessPolicyConditionsArgs.builder() + * .applications(ConditionalAccessPolicyConditionsApplicationsArgs.builder() * .excludedApplications() * .includedApplications("All") * .build()) * .clientAppTypes("all") - * .devices(ConditionalAccessPolicyConditionsDevices.builder() - * .filter(ConditionalAccessPolicyConditionsDevicesFilter.builder() + * .devices(ConditionalAccessPolicyConditionsDevicesArgs.builder() + * .filter(ConditionalAccessPolicyConditionsDevicesFilterArgs.builder() * .mode("exclude") * .rule("device.operatingSystem eq \"Doors\"") * .build()) * .build()) - * .locations(ConditionalAccessPolicyConditionsLocations.builder() + * .locations(ConditionalAccessPolicyConditionsLocationsArgs.builder() * .excludedLocations("AllTrusted") * .includedLocations("All") * .build()) - * .platforms(ConditionalAccessPolicyConditionsPlatforms.builder() + * .platforms(ConditionalAccessPolicyConditionsPlatformsArgs.builder() * .excludedPlatforms("iOS") * .includedPlatforms("android") * .build()) * .signInRiskLevels("medium") * .userRiskLevels("medium") - * .users(ConditionalAccessPolicyConditionsUsers.builder() + * .users(ConditionalAccessPolicyConditionsUsersArgs.builder() * .excludedUsers("GuestsOrExternalUsers") * .includedUsers("All") * .build()) * .build()) * .displayName("example policy") - * .grantControls(ConditionalAccessPolicyGrantControls.builder() + * .grantControls(ConditionalAccessPolicyGrantControlsArgs.builder() * .builtInControls("mfa") * .operator("OR") * .build()) - * .sessionControls(ConditionalAccessPolicySessionControls.builder() + * .sessionControls(ConditionalAccessPolicySessionControlsArgs.builder() * .applicationEnforcedRestrictionsEnabled(true) * .cloudAppSecurityPolicy("monitorOnly") * .signInFrequency(10) @@ -85,7 +101,7 @@ * .state("disabled") * .build()); * - * } + * } * } * ``` * diff --git a/sdk/java/src/main/java/com/pulumi/azuread/CustomDirectoryRole.java b/sdk/java/src/main/java/com/pulumi/azuread/CustomDirectoryRole.java index d3b4c45d5..54ca92cc3 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/CustomDirectoryRole.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/CustomDirectoryRole.java @@ -22,10 +22,18 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.CustomDirectoryRole; + * import com.pulumi.azuread.CustomDirectoryRoleArgs; + * import com.pulumi.azuread.inputs.CustomDirectoryRolePermissionArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -38,13 +46,13 @@ * .displayName("My Custom Role") * .enabled(true) * .permissions( - * CustomDirectoryRolePermission.builder() + * CustomDirectoryRolePermissionArgs.builder() * .allowedResourceActions( * "microsoft.directory/applications/basic/update", * "microsoft.directory/applications/create", * "microsoft.directory/applications/standard/read") * .build(), - * CustomDirectoryRolePermission.builder() + * CustomDirectoryRolePermissionArgs.builder() * .allowedResourceActions( * "microsoft.directory/groups/allProperties/read", * "microsoft.directory/groups/allProperties/read", @@ -55,7 +63,7 @@ * .version("1.0") * .build()); * - * } + * } * } * ``` * diff --git a/sdk/java/src/main/java/com/pulumi/azuread/DirectoryRole.java b/sdk/java/src/main/java/com/pulumi/azuread/DirectoryRole.java index 5bc5acdcf..9ad7c851f 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/DirectoryRole.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/DirectoryRole.java @@ -34,10 +34,17 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.DirectoryRole; + * import com.pulumi.azuread.DirectoryRoleArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -49,7 +56,7 @@ * .templateId("00000000-0000-0000-0000-000000000000") * .build()); * - * } + * } * } * ``` * @@ -57,10 +64,17 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.DirectoryRole; + * import com.pulumi.azuread.DirectoryRoleArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -72,7 +86,7 @@ * .displayName("Printer administrator") * .build()); * - * } + * } * } * ``` * diff --git a/sdk/java/src/main/java/com/pulumi/azuread/DirectoryRoleMember.java b/sdk/java/src/main/java/com/pulumi/azuread/DirectoryRoleMember.java index e1a202b57..0a415abcb 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/DirectoryRoleMember.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/DirectoryRoleMember.java @@ -19,10 +19,21 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetUserArgs; + * import com.pulumi.azuread.DirectoryRole; + * import com.pulumi.azuread.DirectoryRoleArgs; + * import com.pulumi.azuread.DirectoryRoleMember; + * import com.pulumi.azuread.DirectoryRoleMemberArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -30,20 +41,20 @@ * } * * public static void stack(Context ctx) { - * final var exampleUser = Output.of(AzureadFunctions.getUser(GetUserArgs.builder() + * final var exampleUser = AzureadFunctions.getUser(GetUserArgs.builder() * .userPrincipalName("jdoe@hashicorp.com") - * .build())); + * .build()); * * var exampleDirectoryRole = new DirectoryRole("exampleDirectoryRole", DirectoryRoleArgs.builder() * .displayName("Security administrator") * .build()); * * var exampleDirectoryRoleMember = new DirectoryRoleMember("exampleDirectoryRoleMember", DirectoryRoleMemberArgs.builder() - * .roleObjectId(exampleDirectoryRole.getObjectId()) - * .memberObjectId(exampleUser.apply(getUserResult -> getUserResult.getObjectId())) + * .roleObjectId(exampleDirectoryRole.objectId()) + * .memberObjectId(exampleUser.applyValue(getUserResult -> getUserResult.objectId())) * .build()); * - * } + * } * } * ``` * diff --git a/sdk/java/src/main/java/com/pulumi/azuread/Group.java b/sdk/java/src/main/java/com/pulumi/azuread/Group.java index 2001fbad3..4f10ff0b0 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/Group.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/Group.java @@ -40,10 +40,18 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.Group; + * import com.pulumi.azuread.GroupArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -51,15 +59,15 @@ * } * * public static void stack(Context ctx) { - * final var current = Output.of(AzureadFunctions.getClientConfig()); + * final var current = AzureadFunctions.getClientConfig(); * * var example = new Group("example", GroupArgs.builder() * .displayName("example") - * .owners(current.apply(getClientConfigResult -> getClientConfigResult.getObjectId())) + * .owners(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId())) * .securityEnabled(true) * .build()); * - * } + * } * } * ``` * @@ -67,10 +75,20 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.User; + * import com.pulumi.azuread.UserArgs; + * import com.pulumi.azuread.Group; + * import com.pulumi.azuread.GroupArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -78,7 +96,7 @@ * } * * public static void stack(Context ctx) { - * final var current = Output.of(AzureadFunctions.getClientConfig()); + * final var current = AzureadFunctions.getClientConfig(); * * var groupOwner = new User("groupOwner", UserArgs.builder() * .userPrincipalName("example-group-owner@hashicorp.com") @@ -94,11 +112,11 @@ * .securityEnabled(true) * .types("Unified") * .owners( - * current.apply(getClientConfigResult -> getClientConfigResult.getObjectId()), - * groupOwner.getObjectId()) + * current.applyValue(getClientConfigResult -> getClientConfigResult.objectId()), + * groupOwner.objectId()) * .build()); * - * } + * } * } * ``` * @@ -107,10 +125,20 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.User; + * import com.pulumi.azuread.UserArgs; + * import com.pulumi.azuread.Group; + * import com.pulumi.azuread.GroupArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -118,23 +146,23 @@ * } * * public static void stack(Context ctx) { - * final var current = Output.of(AzureadFunctions.getClientConfig()); + * final var current = AzureadFunctions.getClientConfig(); * * var exampleUser = new User("exampleUser", UserArgs.builder() * .displayName("J Doe") - * .owners(current.apply(getClientConfigResult -> getClientConfigResult.getObjectId())) + * .owners(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId())) * .password("notSecure123") * .userPrincipalName("jdoe@hashicorp.com") * .build()); * * var exampleGroup = new Group("exampleGroup", GroupArgs.builder() * .displayName("MyGroup") - * .owners(current.apply(getClientConfigResult -> getClientConfigResult.getObjectId())) + * .owners(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId())) * .securityEnabled(true) - * .members(exampleUser.getObjectId()) + * .members(exampleUser.objectId()) * .build()); * - * } + * } * } * ``` * @@ -142,10 +170,19 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.Group; + * import com.pulumi.azuread.GroupArgs; + * import com.pulumi.azuread.inputs.GroupDynamicMembershipArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -153,20 +190,20 @@ * } * * public static void stack(Context ctx) { - * final var current = Output.of(AzureadFunctions.getClientConfig()); + * final var current = AzureadFunctions.getClientConfig(); * * var example = new Group("example", GroupArgs.builder() * .displayName("MyGroup") - * .owners(current.apply(getClientConfigResult -> getClientConfigResult.getObjectId())) + * .owners(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId())) * .securityEnabled(true) * .types("DynamicMembership") - * .dynamicMembership(GroupDynamicMembership.builder() + * .dynamicMembership(GroupDynamicMembershipArgs.builder() * .enabled(true) * .rule("user.department -eq \"Sales\"") * .build()) * .build()); * - * } + * } * } * ``` * diff --git a/sdk/java/src/main/java/com/pulumi/azuread/GroupMember.java b/sdk/java/src/main/java/com/pulumi/azuread/GroupMember.java index 85e24c3ce..81d50f86a 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/GroupMember.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/GroupMember.java @@ -30,10 +30,21 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetUserArgs; + * import com.pulumi.azuread.Group; + * import com.pulumi.azuread.GroupArgs; + * import com.pulumi.azuread.GroupMember; + * import com.pulumi.azuread.GroupMemberArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -41,9 +52,9 @@ * } * * public static void stack(Context ctx) { - * final var exampleUser = Output.of(AzureadFunctions.getUser(GetUserArgs.builder() + * final var exampleUser = AzureadFunctions.getUser(GetUserArgs.builder() * .userPrincipalName("jdoe@hashicorp.com") - * .build())); + * .build()); * * var exampleGroup = new Group("exampleGroup", GroupArgs.builder() * .displayName("my_group") @@ -51,11 +62,11 @@ * .build()); * * var exampleGroupMember = new GroupMember("exampleGroupMember", GroupMemberArgs.builder() - * .groupObjectId(exampleGroup.getId()) - * .memberObjectId(exampleUser.apply(getUserResult -> getUserResult.getId())) + * .groupObjectId(exampleGroup.id()) + * .memberObjectId(exampleUser.applyValue(getUserResult -> getUserResult.id())) * .build()); * - * } + * } * } * ``` * diff --git a/sdk/java/src/main/java/com/pulumi/azuread/Invitation.java b/sdk/java/src/main/java/com/pulumi/azuread/Invitation.java index 8a3e7cc97..57d0808f6 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/Invitation.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/Invitation.java @@ -32,10 +32,17 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.Invitation; + * import com.pulumi.azuread.InvitationArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -48,7 +55,7 @@ * .userEmailAddress("jdoe@hashicorp.com") * .build()); * - * } + * } * } * ``` * @@ -56,10 +63,18 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.Invitation; + * import com.pulumi.azuread.InvitationArgs; + * import com.pulumi.azuread.inputs.InvitationMessageArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -68,14 +83,14 @@ * * public static void stack(Context ctx) { * var example = new Invitation("example", InvitationArgs.builder() - * .message(InvitationMessage.builder() + * .message(InvitationMessageArgs.builder() * .language("en-US") * .build()) * .redirectUrl("https://portal.azure.com") * .userEmailAddress("jdoe@hashicorp.com") * .build()); * - * } + * } * } * ``` * @@ -83,10 +98,18 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.Invitation; + * import com.pulumi.azuread.InvitationArgs; + * import com.pulumi.azuread.inputs.InvitationMessageArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -95,7 +118,7 @@ * * public static void stack(Context ctx) { * var example = new Invitation("example", InvitationArgs.builder() - * .message(InvitationMessage.builder() + * .message(InvitationMessageArgs.builder() * .additionalRecipients("aaliceberg@hashicorp.com") * .body("Hello there! You are invited to join my Azure tenant!") * .build()) @@ -104,7 +127,7 @@ * .userEmailAddress("bbobson@hashicorp.com") * .build()); * - * } + * } * } * ``` * diff --git a/sdk/java/src/main/java/com/pulumi/azuread/NamedLocation.java b/sdk/java/src/main/java/com/pulumi/azuread/NamedLocation.java index 336d89513..ae977f7d7 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/NamedLocation.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/NamedLocation.java @@ -31,10 +31,19 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.NamedLocation; + * import com.pulumi.azuread.NamedLocationArgs; + * import com.pulumi.azuread.inputs.NamedLocationIpArgs; + * import com.pulumi.azuread.inputs.NamedLocationCountryArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -44,7 +53,7 @@ * public static void stack(Context ctx) { * var example_ip = new NamedLocation("example-ip", NamedLocationArgs.builder() * .displayName("IP Named Location") - * .ip(NamedLocationIp.builder() + * .ip(NamedLocationIpArgs.builder() * .ipRanges( * "1.1.1.1/32", * "2.2.2.2/32") @@ -53,7 +62,7 @@ * .build()); * * var example_country = new NamedLocation("example-country", NamedLocationArgs.builder() - * .country(NamedLocationCountry.builder() + * .country(NamedLocationCountryArgs.builder() * .countriesAndRegions( * "GB", * "US") @@ -62,7 +71,7 @@ * .displayName("Country Named Location") * .build()); * - * } + * } * } * ``` * diff --git a/sdk/java/src/main/java/com/pulumi/azuread/ServicePrincipal.java b/sdk/java/src/main/java/com/pulumi/azuread/ServicePrincipal.java index 96e1049d1..cbb97775c 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/ServicePrincipal.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/ServicePrincipal.java @@ -41,10 +41,20 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.Application; + * import com.pulumi.azuread.ApplicationArgs; + * import com.pulumi.azuread.ServicePrincipal; + * import com.pulumi.azuread.ServicePrincipalArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -52,20 +62,20 @@ * } * * public static void stack(Context ctx) { - * final var current = Output.of(AzureadFunctions.getClientConfig()); + * final var current = AzureadFunctions.getClientConfig(); * * var exampleApplication = new Application("exampleApplication", ApplicationArgs.builder() * .displayName("example") - * .owners(current.apply(getClientConfigResult -> getClientConfigResult.getObjectId())) + * .owners(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId())) * .build()); * * var exampleServicePrincipal = new ServicePrincipal("exampleServicePrincipal", ServicePrincipalArgs.builder() - * .applicationId(exampleApplication.getApplicationId()) + * .applicationId(exampleApplication.applicationId()) * .appRoleAssignmentRequired(false) - * .owners(current.apply(getClientConfigResult -> getClientConfigResult.getObjectId())) + * .owners(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId())) * .build()); * - * } + * } * } * ``` * @@ -73,10 +83,21 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.Application; + * import com.pulumi.azuread.ApplicationArgs; + * import com.pulumi.azuread.ServicePrincipal; + * import com.pulumi.azuread.ServicePrincipalArgs; + * import com.pulumi.azuread.inputs.ServicePrincipalFeatureTagArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -84,24 +105,24 @@ * } * * public static void stack(Context ctx) { - * final var current = Output.of(AzureadFunctions.getClientConfig()); + * final var current = AzureadFunctions.getClientConfig(); * * var exampleApplication = new Application("exampleApplication", ApplicationArgs.builder() * .displayName("example") - * .owners(current.apply(getClientConfigResult -> getClientConfigResult.getObjectId())) + * .owners(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId())) * .build()); * * var exampleServicePrincipal = new ServicePrincipal("exampleServicePrincipal", ServicePrincipalArgs.builder() - * .applicationId(exampleApplication.getApplicationId()) + * .applicationId(exampleApplication.applicationId()) * .appRoleAssignmentRequired(false) - * .owners(current.apply(getClientConfigResult -> getClientConfigResult.getObjectId())) - * .featureTags(ServicePrincipalFeatureTag.builder() + * .owners(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId())) + * .featureTags(ServicePrincipalFeatureTagArgs.builder() * .enterprise(true) * .gallery(true) * .build()) * .build()); * - * } + * } * } * ``` * @@ -109,10 +130,18 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.ServicePrincipal; + * import com.pulumi.azuread.ServicePrincipalArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -120,14 +149,14 @@ * } * * public static void stack(Context ctx) { - * final var wellKnown = Output.of(AzureadFunctions.getApplicationPublishedAppIds()); + * final var wellKnown = AzureadFunctions.getApplicationPublishedAppIds(); * * var msgraph = new ServicePrincipal("msgraph", ServicePrincipalArgs.builder() - * .applicationId(wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph())) + * .applicationId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result().MicrosoftGraph())) * .useExisting(true) * .build()); * - * } + * } * } * ``` * @@ -135,10 +164,21 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.inputs.GetApplicationTemplateArgs; + * import com.pulumi.azuread.Application; + * import com.pulumi.azuread.ApplicationArgs; + * import com.pulumi.azuread.ServicePrincipal; + * import com.pulumi.azuread.ServicePrincipalArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -146,21 +186,21 @@ * } * * public static void stack(Context ctx) { - * final var exampleApplicationTemplate = Output.of(AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder() + * final var exampleApplicationTemplate = AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder() * .displayName("Marketo") - * .build())); + * .build()); * * var exampleApplication = new Application("exampleApplication", ApplicationArgs.builder() * .displayName("example") - * .templateId(exampleApplicationTemplate.apply(getApplicationTemplateResult -> getApplicationTemplateResult.getTemplateId())) + * .templateId(exampleApplicationTemplate.applyValue(getApplicationTemplateResult -> getApplicationTemplateResult.templateId())) * .build()); * * var exampleServicePrincipal = new ServicePrincipal("exampleServicePrincipal", ServicePrincipalArgs.builder() - * .applicationId(exampleApplication.getApplicationId()) + * .applicationId(exampleApplication.applicationId()) * .useExisting(true) * .build()); * - * } + * } * } * ``` * diff --git a/sdk/java/src/main/java/com/pulumi/azuread/ServicePrincipalClaimsMappingPolicyAssignment.java b/sdk/java/src/main/java/com/pulumi/azuread/ServicePrincipalClaimsMappingPolicyAssignment.java index 1e79b3b7a..eff1bbe65 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/ServicePrincipalClaimsMappingPolicyAssignment.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/ServicePrincipalClaimsMappingPolicyAssignment.java @@ -28,10 +28,17 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.ServicePrincipalClaimsMappingPolicyAssignment; + * import com.pulumi.azuread.ServicePrincipalClaimsMappingPolicyAssignmentArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -40,11 +47,11 @@ * * public static void stack(Context ctx) { * var app = new ServicePrincipalClaimsMappingPolicyAssignment("app", ServicePrincipalClaimsMappingPolicyAssignmentArgs.builder() - * .claimsMappingPolicyId(azuread_claims_mapping_policy.getMy_policy().getId()) - * .servicePrincipalId(azuread_service_principal.getMy_principal().getId()) + * .claimsMappingPolicyId(azuread_claims_mapping_policy.my_policy().id()) + * .servicePrincipalId(azuread_service_principal.my_principal().id()) * .build()); * - * } + * } * } * ``` * diff --git a/sdk/java/src/main/java/com/pulumi/azuread/ServicePrincipalDelegatedPermissionGrant.java b/sdk/java/src/main/java/com/pulumi/azuread/ServicePrincipalDelegatedPermissionGrant.java index 8a67aeb8b..e62370c6f 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/ServicePrincipalDelegatedPermissionGrant.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/ServicePrincipalDelegatedPermissionGrant.java @@ -32,10 +32,23 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.ServicePrincipal; + * import com.pulumi.azuread.ServicePrincipalArgs; + * import com.pulumi.azuread.Application; + * import com.pulumi.azuread.ApplicationArgs; + * import com.pulumi.azuread.inputs.ApplicationRequiredResourceAccessArgs; + * import com.pulumi.azuread.ServicePrincipalDelegatedPermissionGrant; + * import com.pulumi.azuread.ServicePrincipalDelegatedPermissionGrantArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -43,42 +56,42 @@ * } * * public static void stack(Context ctx) { - * final var wellKnown = Output.of(AzureadFunctions.getApplicationPublishedAppIds()); + * final var wellKnown = AzureadFunctions.getApplicationPublishedAppIds(); * * var msgraph = new ServicePrincipal("msgraph", ServicePrincipalArgs.builder() - * .applicationId(wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph())) + * .applicationId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result().MicrosoftGraph())) * .useExisting(true) * .build()); * * var exampleApplication = new Application("exampleApplication", ApplicationArgs.builder() * .displayName("example") - * .requiredResourceAccesses(ApplicationRequiredResourceAccess.builder() - * .resourceAppId(wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph())) + * .requiredResourceAccesses(ApplicationRequiredResourceAccessArgs.builder() + * .resourceAppId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result().MicrosoftGraph())) * .resourceAccesses( - * ApplicationRequiredResourceAccessResourceAccess.builder() - * .id(msgraph.getOauth2PermissionScopeIds().apply(oauth2PermissionScopeIds -> oauth2PermissionScopeIds.getOpenid())) + * ApplicationRequiredResourceAccessResourceAccessArgs.builder() + * .id(msgraph.oauth2PermissionScopeIds().applyValue(oauth2PermissionScopeIds -> oauth2PermissionScopeIds.openid())) * .type("Scope") * .build(), - * ApplicationRequiredResourceAccessResourceAccess.builder() - * .id(msgraph.getOauth2PermissionScopeIds().apply(oauth2PermissionScopeIds -> oauth2PermissionScopeIds.getUser.Read())) + * ApplicationRequiredResourceAccessResourceAccessArgs.builder() + * .id(msgraph.oauth2PermissionScopeIds().applyValue(oauth2PermissionScopeIds -> oauth2PermissionScopeIds.User.Read())) * .type("Scope") * .build()) * .build()) * .build()); * * var exampleServicePrincipal = new ServicePrincipal("exampleServicePrincipal", ServicePrincipalArgs.builder() - * .applicationId(exampleApplication.getApplicationId()) + * .applicationId(exampleApplication.applicationId()) * .build()); * * var exampleServicePrincipalDelegatedPermissionGrant = new ServicePrincipalDelegatedPermissionGrant("exampleServicePrincipalDelegatedPermissionGrant", ServicePrincipalDelegatedPermissionGrantArgs.builder() - * .servicePrincipalObjectId(exampleServicePrincipal.getObjectId()) - * .resourceServicePrincipalObjectId(msgraph.getObjectId()) + * .servicePrincipalObjectId(exampleServicePrincipal.objectId()) + * .resourceServicePrincipalObjectId(msgraph.objectId()) * .claimValues( * "openid", * "User.Read.All") * .build()); * - * } + * } * } * ``` * @@ -86,10 +99,25 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.AzureadFunctions; + * import com.pulumi.azuread.ServicePrincipal; + * import com.pulumi.azuread.ServicePrincipalArgs; + * import com.pulumi.azuread.Application; + * import com.pulumi.azuread.ApplicationArgs; + * import com.pulumi.azuread.inputs.ApplicationRequiredResourceAccessArgs; + * import com.pulumi.azuread.User; + * import com.pulumi.azuread.UserArgs; + * import com.pulumi.azuread.ServicePrincipalDelegatedPermissionGrant; + * import com.pulumi.azuread.ServicePrincipalDelegatedPermissionGrantArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -97,31 +125,31 @@ * } * * public static void stack(Context ctx) { - * final var wellKnown = Output.of(AzureadFunctions.getApplicationPublishedAppIds()); + * final var wellKnown = AzureadFunctions.getApplicationPublishedAppIds(); * * var msgraph = new ServicePrincipal("msgraph", ServicePrincipalArgs.builder() - * .applicationId(wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph())) + * .applicationId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result().MicrosoftGraph())) * .useExisting(true) * .build()); * * var exampleApplication = new Application("exampleApplication", ApplicationArgs.builder() * .displayName("example") - * .requiredResourceAccesses(ApplicationRequiredResourceAccess.builder() - * .resourceAppId(wellKnown.apply(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.getResult().getMicrosoftGraph())) + * .requiredResourceAccesses(ApplicationRequiredResourceAccessArgs.builder() + * .resourceAppId(wellKnown.applyValue(getApplicationPublishedAppIdsResult -> getApplicationPublishedAppIdsResult.result().MicrosoftGraph())) * .resourceAccesses( - * ApplicationRequiredResourceAccessResourceAccess.builder() - * .id(msgraph.getOauth2PermissionScopeIds().apply(oauth2PermissionScopeIds -> oauth2PermissionScopeIds.getOpenid())) + * ApplicationRequiredResourceAccessResourceAccessArgs.builder() + * .id(msgraph.oauth2PermissionScopeIds().applyValue(oauth2PermissionScopeIds -> oauth2PermissionScopeIds.openid())) * .type("Scope") * .build(), - * ApplicationRequiredResourceAccessResourceAccess.builder() - * .id(msgraph.getOauth2PermissionScopeIds().apply(oauth2PermissionScopeIds -> oauth2PermissionScopeIds.getUser.Read())) + * ApplicationRequiredResourceAccessResourceAccessArgs.builder() + * .id(msgraph.oauth2PermissionScopeIds().applyValue(oauth2PermissionScopeIds -> oauth2PermissionScopeIds.User.Read())) * .type("Scope") * .build()) * .build()) * .build()); * * var exampleServicePrincipal = new ServicePrincipal("exampleServicePrincipal", ServicePrincipalArgs.builder() - * .applicationId(exampleApplication.getApplicationId()) + * .applicationId(exampleApplication.applicationId()) * .build()); * * var exampleUser = new User("exampleUser", UserArgs.builder() @@ -132,15 +160,15 @@ * .build()); * * var exampleServicePrincipalDelegatedPermissionGrant = new ServicePrincipalDelegatedPermissionGrant("exampleServicePrincipalDelegatedPermissionGrant", ServicePrincipalDelegatedPermissionGrantArgs.builder() - * .servicePrincipalObjectId(exampleServicePrincipal.getObjectId()) - * .resourceServicePrincipalObjectId(msgraph.getObjectId()) + * .servicePrincipalObjectId(exampleServicePrincipal.objectId()) + * .resourceServicePrincipalObjectId(msgraph.objectId()) * .claimValues( * "openid", * "User.Read.All") - * .userObjectId(exampleUser.getObjectId()) + * .userObjectId(exampleUser.objectId()) * .build()); * - * } + * } * } * ``` * diff --git a/sdk/java/src/main/java/com/pulumi/azuread/User.java b/sdk/java/src/main/java/com/pulumi/azuread/User.java index fe954f745..446c9e770 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/User.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/User.java @@ -31,10 +31,17 @@ * ```java * package generated_program; * - * import java.util.*; - * import java.io.*; - * import java.nio.*; - * import com.pulumi.*; + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.azuread.User; + * import com.pulumi.azuread.UserArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; * * public class App { * public static void main(String[] args) { @@ -49,7 +56,7 @@ * .userPrincipalName("jdoe@hashicorp.com") * .build()); * - * } + * } * } * ``` * diff --git a/sdk/java/src/main/java/com/pulumi/azuread/inputs/ApplicationPasswordState.java b/sdk/java/src/main/java/com/pulumi/azuread/inputs/ApplicationPasswordState.java index 085d9f004..463875312 100644 --- a/sdk/java/src/main/java/com/pulumi/azuread/inputs/ApplicationPasswordState.java +++ b/sdk/java/src/main/java/com/pulumi/azuread/inputs/ApplicationPasswordState.java @@ -32,14 +32,14 @@ public Optional> applicationObjectId() { } /** - * A display name for the password. + * A display name for the password. Changing this field forces a new resource to be created. * */ @Import(name="displayName") private @Nullable Output displayName; /** - * @return A display name for the password. + * @return A display name for the password. Changing this field forces a new resource to be created. * */ public Optional> displayName() { @@ -189,7 +189,7 @@ public Builder applicationObjectId(String applicationObjectId) { } /** - * @param displayName A display name for the password. + * @param displayName A display name for the password. Changing this field forces a new resource to be created. * * @return builder * @@ -200,7 +200,7 @@ public Builder displayName(@Nullable Output displayName) { } /** - * @param displayName A display name for the password. + * @param displayName A display name for the password. Changing this field forces a new resource to be created. * * @return builder * diff --git a/sdk/nodejs/README.md b/sdk/nodejs/README.md index e13d782b3..4af7fbef0 100644 --- a/sdk/nodejs/README.md +++ b/sdk/nodejs/README.md @@ -1,4 +1,4 @@ > This provider is a derived work of the [Terraform Provider](https://github.com/hashicorp/terraform-provider-azuread) > distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature, -> first check the [`pulumi/pulumi-azuread` repo](https://github.com/pulumi/pulumi-azuread/issues); however, if that doesn't turn up anything, -> please consult the source [`hashicorp/terraform-provider-azuread` repo](https://github.com/hashicorp/terraform-provider-azuread/issues). +> first check the [`pulumi-azuread` repo](https://github.com/pulumi/pulumi-azuread/issues); however, if that doesn't turn up anything, +> please consult the source [`terraform-provider-azuread` repo](https://github.com/hashicorp/terraform-provider-azuread/issues). diff --git a/sdk/nodejs/application.ts b/sdk/nodejs/application.ts index 3b47131fd..be9821ca0 100644 --- a/sdk/nodejs/application.ts +++ b/sdk/nodejs/application.ts @@ -13,7 +13,7 @@ import * as utilities from "./utilities"; * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuread from "@pulumi/azuread"; - * import * from "fs"; + * import * as fs from "fs"; * * const current = azuread.getClientConfig({}); * const example = new azuread.Application("example", { diff --git a/sdk/nodejs/applicationPassword.ts b/sdk/nodejs/applicationPassword.ts index 040ebf0ea..85d31a310 100644 --- a/sdk/nodejs/applicationPassword.ts +++ b/sdk/nodejs/applicationPassword.ts @@ -42,7 +42,7 @@ export class ApplicationPassword extends pulumi.CustomResource { */ public readonly applicationObjectId!: pulumi.Output; /** - * A display name for the password. + * A display name for the password. Changing this field forces a new resource to be created. */ public readonly displayName!: pulumi.Output; /** @@ -119,7 +119,7 @@ export interface ApplicationPasswordState { */ applicationObjectId?: pulumi.Input; /** - * A display name for the password. + * A display name for the password. Changing this field forces a new resource to be created. */ displayName?: pulumi.Input; /** @@ -157,7 +157,7 @@ export interface ApplicationPasswordArgs { */ applicationObjectId: pulumi.Input; /** - * A display name for the password. + * A display name for the password. Changing this field forces a new resource to be created. */ displayName?: pulumi.Input; /** diff --git a/sdk/nodejs/package.json b/sdk/nodejs/package.json index 7f6192a9b..24b1f4de6 100644 --- a/sdk/nodejs/package.json +++ b/sdk/nodejs/package.json @@ -22,6 +22,7 @@ "typescript": "^4.3.5" }, "pulumi": { - "resource": true + "resource": true, + "name": "azuread" } } diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index e65904328..ddc1dd11c 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -550,3 +550,4 @@ export interface ServicePrincipalSamlSingleSignOn { */ relayState?: pulumi.Input; } + diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 0afbedbd1..ed06326ed 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -1023,4 +1023,3 @@ export interface ServicePrincipalSamlSingleSignOn { */ relayState?: string; } - diff --git a/sdk/python/pulumi_azuread/README.md b/sdk/python/pulumi_azuread/README.md index 06102b13c..0cc21c54c 100644 --- a/sdk/python/pulumi_azuread/README.md +++ b/sdk/python/pulumi_azuread/README.md @@ -1,4 +1,4 @@ > This provider is a derived work of the [Terraform Provider](https://github.com/hashicorp/terraform-provider-azuread) > distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature, -> first check the [`pulumi/pulumi-azuread` repo](https://github.com/pulumi/pulumi-azuread/issues); however, if that doesn't turn up anything, -> please consult the source [`hashicorp/terraform-provider-azuread` repo](https://github.com/hashicorp/terraform-provider-azuread/issues). \ No newline at end of file +> first check the [`pulumi-azuread` repo](https://github.com/pulumi/pulumi-azuread/issues); however, if that doesn't turn up anything, +> please consult the source [`terraform-provider-azuread` repo](https://github.com/hashicorp/terraform-provider-azuread/issues). \ No newline at end of file diff --git a/sdk/python/pulumi_azuread/_inputs.py b/sdk/python/pulumi_azuread/_inputs.py index 7d55e0f57..0bf259a2e 100644 --- a/sdk/python/pulumi_azuread/_inputs.py +++ b/sdk/python/pulumi_azuread/_inputs.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_azuread/_utilities.py b/sdk/python/pulumi_azuread/_utilities.py index cfdc75725..2d9a3c846 100644 --- a/sdk/python/pulumi_azuread/_utilities.py +++ b/sdk/python/pulumi_azuread/_utilities.py @@ -98,6 +98,17 @@ def _get_semver_version(): def get_version(): return _version_str +def get_resource_opts_defaults() -> pulumi.ResourceOptions: + return pulumi.ResourceOptions( + version=get_version(), + plugin_download_url=get_plugin_download_url(), + ) + +def get_invoke_opts_defaults() -> pulumi.InvokeOptions: + return pulumi.InvokeOptions( + version=get_version(), + plugin_download_url=get_plugin_download_url(), + ) def get_resource_args_opts(resource_args_type, resource_options_type, *args, **kwargs): """ @@ -234,3 +245,6 @@ def lifted_func(*args, opts=None, **kwargs): **resolved_args['kwargs'])) return (lambda _: lifted_func) + +def get_plugin_download_url(): + return None diff --git a/sdk/python/pulumi_azuread/administrative_unit.py b/sdk/python/pulumi_azuread/administrative_unit.py index ca16b4209..f5396f403 100644 --- a/sdk/python/pulumi_azuread/administrative_unit.py +++ b/sdk/python/pulumi_azuread/administrative_unit.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -285,12 +286,9 @@ def _internal_init(__self__, members: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, prevent_duplicate_names: Optional[pulumi.Input[bool]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/administrative_unit_member.py b/sdk/python/pulumi_azuread/administrative_unit_member.py index 05c3c926f..887cf198d 100644 --- a/sdk/python/pulumi_azuread/administrative_unit_member.py +++ b/sdk/python/pulumi_azuread/administrative_unit_member.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -199,12 +200,9 @@ def _internal_init(__self__, administrative_unit_object_id: Optional[pulumi.Input[str]] = None, member_object_id: Optional[pulumi.Input[str]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/app_role_assignment.py b/sdk/python/pulumi_azuread/app_role_assignment.py index dba5a1fe4..64a31682a 100644 --- a/sdk/python/pulumi_azuread/app_role_assignment.py +++ b/sdk/python/pulumi_azuread/app_role_assignment.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -187,111 +188,6 @@ def __init__(__self__, When authenticated with a user principal, this resource requires one of the following directory roles: `Application Administrator` or `Global Administrator` - ## Example Usage - - *App role assignment for accessing Microsoft Graph* - - ```python - import pulumi - import pulumi_azuread as azuread - - well_known = azuread.get_application_published_app_ids() - msgraph = azuread.ServicePrincipal("msgraph", - application_id=well_known.result["MicrosoftGraph"], - use_existing=True) - example_application = azuread.Application("exampleApplication", - display_name="example", - required_resource_accesses=[azuread.ApplicationRequiredResourceAccessArgs( - resource_app_id=well_known.result["MicrosoftGraph"], - resource_accesses=[ - azuread.ApplicationRequiredResourceAccessResourceAccessArgs( - id=msgraph.app_role_ids["User.Read.All"], - type="Role", - ), - azuread.ApplicationRequiredResourceAccessResourceAccessArgs( - id=msgraph.oauth2_permission_scope_ids["User.ReadWrite"], - type="Scope", - ), - ], - )]) - example_service_principal = azuread.ServicePrincipal("exampleServicePrincipal", application_id=example_application.application_id) - example_app_role_assignment = azuread.AppRoleAssignment("exampleAppRoleAssignment", - app_role_id=msgraph.app_role_ids["User.Read.All"], - principal_object_id=example_service_principal.object_id, - resource_object_id=msgraph.object_id) - ``` - - *App role assignment for internal application* - - ```python - import pulumi - import pulumi_azuread as azuread - - internal_application = azuread.Application("internalApplication", - display_name="internal", - app_roles=[azuread.ApplicationAppRoleArgs( - allowed_member_types=["Application"], - description="Apps can query the database", - display_name="Query", - enabled=True, - id="00000000-0000-0000-0000-111111111111", - value="Query.All", - )]) - internal_service_principal = azuread.ServicePrincipal("internalServicePrincipal", application_id=internal_application.application_id) - example_application = azuread.Application("exampleApplication", - display_name="example", - required_resource_accesses=[azuread.ApplicationRequiredResourceAccessArgs( - resource_app_id=internal_application.application_id, - resource_accesses=[azuread.ApplicationRequiredResourceAccessResourceAccessArgs( - id=internal_service_principal.app_role_ids["Query.All"], - type="Role", - )], - )]) - example_service_principal = azuread.ServicePrincipal("exampleServicePrincipal", application_id=example_application.application_id) - example_app_role_assignment = azuread.AppRoleAssignment("exampleAppRoleAssignment", - app_role_id=internal_service_principal.app_role_ids["Query.All"], - principal_object_id=example_service_principal.object_id, - resource_object_id=internal_service_principal.object_id) - ``` - - *Assign a user and group to an internal application* - - ```python - import pulumi - import pulumi_azuread as azuread - - example_domains = azuread.get_domains(only_initial=True) - internal_application = azuread.Application("internalApplication", - display_name="internal", - app_roles=[azuread.ApplicationAppRoleArgs( - allowed_member_types=[ - "Application", - "User", - ], - description="Admins can perform all task actions", - display_name="Admin", - enabled=True, - id="00000000-0000-0000-0000-222222222222", - value="Admin.All", - )]) - internal_service_principal = azuread.ServicePrincipal("internalServicePrincipal", application_id=internal_application.application_id) - example_group = azuread.Group("exampleGroup", - display_name="example", - security_enabled=True) - example_app_role_assignment = azuread.AppRoleAssignment("exampleAppRoleAssignment", - app_role_id=internal_service_principal.app_role_ids["Admin.All"], - principal_object_id=example_group.object_id, - resource_object_id=internal_service_principal.object_id) - example_user = azuread.User("exampleUser", - display_name="D. Duck", - password="SecretP@sswd99!", - user_principal_name=f"d.duck@{example_domains.domains[0].domain_name}") - example_index_app_role_assignment_app_role_assignment = azuread.AppRoleAssignment("exampleIndex/appRoleAssignmentAppRoleAssignment", - app_role_id=internal_service_principal.app_role_ids["Admin.All"], - principal_object_id=example_user.object_id, - resource_object_id=internal_service_principal.object_id) - ``` - ## Import App role assignments can be imported using the object ID of the service principal representing the resource and the ID of the app role assignment (note_not_ the ID of the app role), e.g. @@ -325,111 +221,6 @@ def __init__(__self__, When authenticated with a user principal, this resource requires one of the following directory roles: `Application Administrator` or `Global Administrator` - ## Example Usage - - *App role assignment for accessing Microsoft Graph* - - ```python - import pulumi - import pulumi_azuread as azuread - - well_known = azuread.get_application_published_app_ids() - msgraph = azuread.ServicePrincipal("msgraph", - application_id=well_known.result["MicrosoftGraph"], - use_existing=True) - example_application = azuread.Application("exampleApplication", - display_name="example", - required_resource_accesses=[azuread.ApplicationRequiredResourceAccessArgs( - resource_app_id=well_known.result["MicrosoftGraph"], - resource_accesses=[ - azuread.ApplicationRequiredResourceAccessResourceAccessArgs( - id=msgraph.app_role_ids["User.Read.All"], - type="Role", - ), - azuread.ApplicationRequiredResourceAccessResourceAccessArgs( - id=msgraph.oauth2_permission_scope_ids["User.ReadWrite"], - type="Scope", - ), - ], - )]) - example_service_principal = azuread.ServicePrincipal("exampleServicePrincipal", application_id=example_application.application_id) - example_app_role_assignment = azuread.AppRoleAssignment("exampleAppRoleAssignment", - app_role_id=msgraph.app_role_ids["User.Read.All"], - principal_object_id=example_service_principal.object_id, - resource_object_id=msgraph.object_id) - ``` - - *App role assignment for internal application* - - ```python - import pulumi - import pulumi_azuread as azuread - - internal_application = azuread.Application("internalApplication", - display_name="internal", - app_roles=[azuread.ApplicationAppRoleArgs( - allowed_member_types=["Application"], - description="Apps can query the database", - display_name="Query", - enabled=True, - id="00000000-0000-0000-0000-111111111111", - value="Query.All", - )]) - internal_service_principal = azuread.ServicePrincipal("internalServicePrincipal", application_id=internal_application.application_id) - example_application = azuread.Application("exampleApplication", - display_name="example", - required_resource_accesses=[azuread.ApplicationRequiredResourceAccessArgs( - resource_app_id=internal_application.application_id, - resource_accesses=[azuread.ApplicationRequiredResourceAccessResourceAccessArgs( - id=internal_service_principal.app_role_ids["Query.All"], - type="Role", - )], - )]) - example_service_principal = azuread.ServicePrincipal("exampleServicePrincipal", application_id=example_application.application_id) - example_app_role_assignment = azuread.AppRoleAssignment("exampleAppRoleAssignment", - app_role_id=internal_service_principal.app_role_ids["Query.All"], - principal_object_id=example_service_principal.object_id, - resource_object_id=internal_service_principal.object_id) - ``` - - *Assign a user and group to an internal application* - - ```python - import pulumi - import pulumi_azuread as azuread - - example_domains = azuread.get_domains(only_initial=True) - internal_application = azuread.Application("internalApplication", - display_name="internal", - app_roles=[azuread.ApplicationAppRoleArgs( - allowed_member_types=[ - "Application", - "User", - ], - description="Admins can perform all task actions", - display_name="Admin", - enabled=True, - id="00000000-0000-0000-0000-222222222222", - value="Admin.All", - )]) - internal_service_principal = azuread.ServicePrincipal("internalServicePrincipal", application_id=internal_application.application_id) - example_group = azuread.Group("exampleGroup", - display_name="example", - security_enabled=True) - example_app_role_assignment = azuread.AppRoleAssignment("exampleAppRoleAssignment", - app_role_id=internal_service_principal.app_role_ids["Admin.All"], - principal_object_id=example_group.object_id, - resource_object_id=internal_service_principal.object_id) - example_user = azuread.User("exampleUser", - display_name="D. Duck", - password="SecretP@sswd99!", - user_principal_name=f"d.duck@{example_domains.domains[0].domain_name}") - example_index_app_role_assignment_app_role_assignment = azuread.AppRoleAssignment("exampleIndex/appRoleAssignmentAppRoleAssignment", - app_role_id=internal_service_principal.app_role_ids["Admin.All"], - principal_object_id=example_user.object_id, - resource_object_id=internal_service_principal.object_id) - ``` - ## Import App role assignments can be imported using the object ID of the service principal representing the resource and the ID of the app role assignment (note_not_ the ID of the app role), e.g. @@ -459,12 +250,9 @@ def _internal_init(__self__, principal_object_id: Optional[pulumi.Input[str]] = None, resource_object_id: Optional[pulumi.Input[str]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/application.py b/sdk/python/pulumi_azuread/application.py index e14b9c7ea..d51177547 100644 --- a/sdk/python/pulumi_azuread/application.py +++ b/sdk/python/pulumi_azuread/application.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -1300,12 +1301,9 @@ def _internal_init(__self__, terms_of_service_url: Optional[pulumi.Input[str]] = None, web: Optional[pulumi.Input[pulumi.InputType['ApplicationWebArgs']]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/application_certificate.py b/sdk/python/pulumi_azuread/application_certificate.py index 5fe240e11..25e1ebf20 100644 --- a/sdk/python/pulumi_azuread/application_certificate.py +++ b/sdk/python/pulumi_azuread/application_certificate.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -357,12 +358,9 @@ def _internal_init(__self__, type: Optional[pulumi.Input[str]] = None, value: Optional[pulumi.Input[str]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/application_federated_identity_credential.py b/sdk/python/pulumi_azuread/application_federated_identity_credential.py index f2a468399..072db2adf 100644 --- a/sdk/python/pulumi_azuread/application_federated_identity_credential.py +++ b/sdk/python/pulumi_azuread/application_federated_identity_credential.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -332,12 +333,9 @@ def _internal_init(__self__, issuer: Optional[pulumi.Input[str]] = None, subject: Optional[pulumi.Input[str]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/application_password.py b/sdk/python/pulumi_azuread/application_password.py index c2a7aaab3..ebf7c0bde 100644 --- a/sdk/python/pulumi_azuread/application_password.py +++ b/sdk/python/pulumi_azuread/application_password.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -22,7 +23,7 @@ def __init__(__self__, *, """ The set of arguments for constructing a ApplicationPassword resource. :param pulumi.Input[str] application_object_id: The object ID of the application for which this password should be created. Changing this field forces a new resource to be created. - :param pulumi.Input[str] display_name: A display name for the password. + :param pulumi.Input[str] display_name: A display name for the password. Changing this field forces a new resource to be created. :param pulumi.Input[str] end_date: The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created. :param pulumi.Input[str] end_date_relative: A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] rotate_when_changed: A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created. @@ -56,7 +57,7 @@ def application_object_id(self, value: pulumi.Input[str]): @pulumi.getter(name="displayName") def display_name(self) -> Optional[pulumi.Input[str]]: """ - A display name for the password. + A display name for the password. Changing this field forces a new resource to be created. """ return pulumi.get(self, "display_name") @@ -127,7 +128,7 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering ApplicationPassword resources. :param pulumi.Input[str] application_object_id: The object ID of the application for which this password should be created. Changing this field forces a new resource to be created. - :param pulumi.Input[str] display_name: A display name for the password. + :param pulumi.Input[str] display_name: A display name for the password. Changing this field forces a new resource to be created. :param pulumi.Input[str] end_date: The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created. :param pulumi.Input[str] end_date_relative: A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created. :param pulumi.Input[str] key_id: A UUID used to uniquely identify this password credential. @@ -168,7 +169,7 @@ def application_object_id(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="displayName") def display_name(self) -> Optional[pulumi.Input[str]]: """ - A display name for the password. + A display name for the password. Changing this field forces a new resource to be created. """ return pulumi.get(self, "display_name") @@ -269,7 +270,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] application_object_id: The object ID of the application for which this password should be created. Changing this field forces a new resource to be created. - :param pulumi.Input[str] display_name: A display name for the password. + :param pulumi.Input[str] display_name: A display name for the password. Changing this field forces a new resource to be created. :param pulumi.Input[str] end_date: The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created. :param pulumi.Input[str] end_date_relative: A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] rotate_when_changed: A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created. @@ -308,12 +309,9 @@ def _internal_init(__self__, rotate_when_changed: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, start_date: Optional[pulumi.Input[str]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') @@ -355,7 +353,7 @@ def get(resource_name: str, :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] application_object_id: The object ID of the application for which this password should be created. Changing this field forces a new resource to be created. - :param pulumi.Input[str] display_name: A display name for the password. + :param pulumi.Input[str] display_name: A display name for the password. Changing this field forces a new resource to be created. :param pulumi.Input[str] end_date: The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created. :param pulumi.Input[str] end_date_relative: A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created. :param pulumi.Input[str] key_id: A UUID used to uniquely identify this password credential. @@ -389,7 +387,7 @@ def application_object_id(self) -> pulumi.Output[str]: @pulumi.getter(name="displayName") def display_name(self) -> pulumi.Output[str]: """ - A display name for the password. + A display name for the password. Changing this field forces a new resource to be created. """ return pulumi.get(self, "display_name") diff --git a/sdk/python/pulumi_azuread/application_pre_authorized.py b/sdk/python/pulumi_azuread/application_pre_authorized.py index 851009df3..2c236e4e3 100644 --- a/sdk/python/pulumi_azuread/application_pre_authorized.py +++ b/sdk/python/pulumi_azuread/application_pre_authorized.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -261,12 +262,9 @@ def _internal_init(__self__, authorized_app_id: Optional[pulumi.Input[str]] = None, permission_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/claims_mapping_policy.py b/sdk/python/pulumi_azuread/claims_mapping_policy.py index 0d2d23ab2..3f0aedb32 100644 --- a/sdk/python/pulumi_azuread/claims_mapping_policy.py +++ b/sdk/python/pulumi_azuread/claims_mapping_policy.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -225,12 +226,9 @@ def _internal_init(__self__, definitions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, display_name: Optional[pulumi.Input[str]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/conditional_access_policy.py b/sdk/python/pulumi_azuread/conditional_access_policy.py index 724da71af..74765019a 100644 --- a/sdk/python/pulumi_azuread/conditional_access_policy.py +++ b/sdk/python/pulumi_azuread/conditional_access_policy.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -222,7 +223,7 @@ def __init__(__self__, devices=azuread.ConditionalAccessPolicyConditionsDevicesArgs( filter=azuread.ConditionalAccessPolicyConditionsDevicesFilterArgs( mode="exclude", - rule="device.operatingSystem eq \"Doors\"", + rule="device.operatingSystem eq \\"Doors\\"", ), ), locations=azuread.ConditionalAccessPolicyConditionsLocationsArgs( @@ -303,7 +304,7 @@ def __init__(__self__, devices=azuread.ConditionalAccessPolicyConditionsDevicesArgs( filter=azuread.ConditionalAccessPolicyConditionsDevicesFilterArgs( mode="exclude", - rule="device.operatingSystem eq \"Doors\"", + rule="device.operatingSystem eq \\"Doors\\"", ), ), locations=azuread.ConditionalAccessPolicyConditionsLocationsArgs( @@ -364,12 +365,9 @@ def _internal_init(__self__, session_controls: Optional[pulumi.Input[pulumi.InputType['ConditionalAccessPolicySessionControlsArgs']]] = None, state: Optional[pulumi.Input[str]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/config/__init__.pyi b/sdk/python/pulumi_azuread/config/__init__.pyi index da6e0faeb..839439ee8 100644 --- a/sdk/python/pulumi_azuread/config/__init__.pyi +++ b/sdk/python/pulumi_azuread/config/__init__.pyi @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_azuread/config/vars.py b/sdk/python/pulumi_azuread/config/vars.py index f79ced45b..5f24f1f7e 100644 --- a/sdk/python/pulumi_azuread/config/vars.py +++ b/sdk/python/pulumi_azuread/config/vars.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_azuread/custom_directory_role.py b/sdk/python/pulumi_azuread/custom_directory_role.py index 3bd7d73f9..8a18d446b 100644 --- a/sdk/python/pulumi_azuread/custom_directory_role.py +++ b/sdk/python/pulumi_azuread/custom_directory_role.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -353,12 +354,9 @@ def _internal_init(__self__, template_id: Optional[pulumi.Input[str]] = None, version: Optional[pulumi.Input[str]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/directory_role.py b/sdk/python/pulumi_azuread/directory_role.py index a8a858c15..1feed6106 100644 --- a/sdk/python/pulumi_azuread/directory_role.py +++ b/sdk/python/pulumi_azuread/directory_role.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -237,12 +238,9 @@ def _internal_init(__self__, display_name: Optional[pulumi.Input[str]] = None, template_id: Optional[pulumi.Input[str]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/directory_role_assignment.py b/sdk/python/pulumi_azuread/directory_role_assignment.py index 7b45a53c0..042afe14b 100644 --- a/sdk/python/pulumi_azuread/directory_role_assignment.py +++ b/sdk/python/pulumi_azuread/directory_role_assignment.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -309,12 +310,9 @@ def _internal_init(__self__, principal_object_id: Optional[pulumi.Input[str]] = None, role_id: Optional[pulumi.Input[str]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/directory_role_member.py b/sdk/python/pulumi_azuread/directory_role_member.py index 777e084e8..1d177cd0d 100644 --- a/sdk/python/pulumi_azuread/directory_role_member.py +++ b/sdk/python/pulumi_azuread/directory_role_member.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -175,12 +176,9 @@ def _internal_init(__self__, member_object_id: Optional[pulumi.Input[str]] = None, role_object_id: Optional[pulumi.Input[str]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/get_administrative_unit.py b/sdk/python/pulumi_azuread/get_administrative_unit.py index 221d4a942..24f2cb3d0 100644 --- a/sdk/python/pulumi_azuread/get_administrative_unit.py +++ b/sdk/python/pulumi_azuread/get_administrative_unit.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -143,10 +144,7 @@ def get_administrative_unit(display_name: Optional[str] = None, __args__ = dict() __args__['displayName'] = display_name __args__['objectId'] = object_id - if opts is None: - opts = pulumi.InvokeOptions() - if opts.version is None: - opts.version = _utilities.get_version() + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke('azuread:index/getAdministrativeUnit:getAdministrativeUnit', __args__, opts=opts, typ=GetAdministrativeUnitResult).value return AwaitableGetAdministrativeUnitResult( diff --git a/sdk/python/pulumi_azuread/get_application.py b/sdk/python/pulumi_azuread/get_application.py index 841fab5c5..2f74cef85 100644 --- a/sdk/python/pulumi_azuread/get_application.py +++ b/sdk/python/pulumi_azuread/get_application.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -414,10 +415,7 @@ def get_application(application_id: Optional[str] = None, __args__['applicationId'] = application_id __args__['displayName'] = display_name __args__['objectId'] = object_id - if opts is None: - opts = pulumi.InvokeOptions() - if opts.version is None: - opts.version = _utilities.get_version() + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke('azuread:index/getApplication:getApplication', __args__, opts=opts, typ=GetApplicationResult).value return AwaitableGetApplicationResult( diff --git a/sdk/python/pulumi_azuread/get_application_published_app_ids.py b/sdk/python/pulumi_azuread/get_application_published_app_ids.py index 89e1a8478..b5e3b182f 100644 --- a/sdk/python/pulumi_azuread/get_application_published_app_ids.py +++ b/sdk/python/pulumi_azuread/get_application_published_app_ids.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -61,51 +62,9 @@ def get_application_published_app_ids(opts: Optional[pulumi.InvokeOptions] = Non This data source uses an [unofficial source of application IDs](https://github.com/manicminer/hamilton/blob/main/environments/published.go), as there is currently no available official indexed source for applications or APIs published by Microsoft. The app IDs returned by this data source are sourced from the Azure Global (Public) Cloud, however some of them are known to work in government and national clouds. - - ## Example Usage - - *Listing well-known application IDs* - - ```python - import pulumi - import pulumi_azuread as azuread - - well_known = azuread.get_application_published_app_ids() - pulumi.export("publishedAppIds", well_known.result) - ``` - - *Granting access to an application* - - ```python - import pulumi - import pulumi_azuread as azuread - - well_known = azuread.get_application_published_app_ids() - msgraph = azuread.ServicePrincipal("msgraph", - application_id=well_known.result["MicrosoftGraph"], - use_existing=True) - example = azuread.Application("example", - display_name="example", - required_resource_accesses=[azuread.ApplicationRequiredResourceAccessArgs( - resource_app_id=well_known.result["MicrosoftGraph"], - resource_accesses=[ - azuread.ApplicationRequiredResourceAccessResourceAccessArgs( - id=msgraph.app_role_ids["User.Read.All"], - type="Role", - ), - azuread.ApplicationRequiredResourceAccessResourceAccessArgs( - id=msgraph.oauth2_permission_scope_ids["User.ReadWrite"], - type="Scope", - ), - ], - )]) - ``` """ __args__ = dict() - if opts is None: - opts = pulumi.InvokeOptions() - if opts.version is None: - opts.version = _utilities.get_version() + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke('azuread:index/getApplicationPublishedAppIds:getApplicationPublishedAppIds', __args__, opts=opts, typ=GetApplicationPublishedAppIdsResult).value return AwaitableGetApplicationPublishedAppIdsResult( diff --git a/sdk/python/pulumi_azuread/get_application_template.py b/sdk/python/pulumi_azuread/get_application_template.py index d180fd7dd..8ab3871fb 100644 --- a/sdk/python/pulumi_azuread/get_application_template.py +++ b/sdk/python/pulumi_azuread/get_application_template.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -166,10 +167,7 @@ def get_application_template(display_name: Optional[str] = None, __args__ = dict() __args__['displayName'] = display_name __args__['templateId'] = template_id - if opts is None: - opts = pulumi.InvokeOptions() - if opts.version is None: - opts.version = _utilities.get_version() + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke('azuread:index/getApplicationTemplate:getApplicationTemplate', __args__, opts=opts, typ=GetApplicationTemplateResult).value return AwaitableGetApplicationTemplateResult( diff --git a/sdk/python/pulumi_azuread/get_client_config.py b/sdk/python/pulumi_azuread/get_client_config.py index 4178fd39f..c67f43249 100644 --- a/sdk/python/pulumi_azuread/get_client_config.py +++ b/sdk/python/pulumi_azuread/get_client_config.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -97,10 +98,7 @@ def get_client_config(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableG ``` """ __args__ = dict() - if opts is None: - opts = pulumi.InvokeOptions() - if opts.version is None: - opts.version = _utilities.get_version() + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke('azuread:index/getClientConfig:getClientConfig', __args__, opts=opts, typ=GetClientConfigResult).value return AwaitableGetClientConfigResult( diff --git a/sdk/python/pulumi_azuread/get_domains.py b/sdk/python/pulumi_azuread/get_domains.py index 0bb4c28a7..25c627243 100644 --- a/sdk/python/pulumi_azuread/get_domains.py +++ b/sdk/python/pulumi_azuread/get_domains.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -156,10 +157,7 @@ def get_domains(admin_managed: Optional[bool] = None, __args__['onlyInitial'] = only_initial __args__['onlyRoot'] = only_root __args__['supportsServices'] = supports_services - if opts is None: - opts = pulumi.InvokeOptions() - if opts.version is None: - opts.version = _utilities.get_version() + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke('azuread:index/getDomains:getDomains', __args__, opts=opts, typ=GetDomainsResult).value return AwaitableGetDomainsResult( diff --git a/sdk/python/pulumi_azuread/get_group.py b/sdk/python/pulumi_azuread/get_group.py index 4c98bfbdf..06f0f5ab2 100644 --- a/sdk/python/pulumi_azuread/get_group.py +++ b/sdk/python/pulumi_azuread/get_group.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -406,10 +407,7 @@ def get_group(display_name: Optional[str] = None, __args__['mailEnabled'] = mail_enabled __args__['objectId'] = object_id __args__['securityEnabled'] = security_enabled - if opts is None: - opts = pulumi.InvokeOptions() - if opts.version is None: - opts.version = _utilities.get_version() + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke('azuread:index/getGroup:getGroup', __args__, opts=opts, typ=GetGroupResult).value return AwaitableGetGroupResult( diff --git a/sdk/python/pulumi_azuread/get_groups.py b/sdk/python/pulumi_azuread/get_groups.py index 11f0aef63..7c0f69617 100644 --- a/sdk/python/pulumi_azuread/get_groups.py +++ b/sdk/python/pulumi_azuread/get_groups.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -196,10 +197,7 @@ def get_groups(display_name_prefix: Optional[str] = None, __args__['objectIds'] = object_ids __args__['returnAll'] = return_all __args__['securityEnabled'] = security_enabled - if opts is None: - opts = pulumi.InvokeOptions() - if opts.version is None: - opts.version = _utilities.get_version() + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke('azuread:index/getGroups:getGroups', __args__, opts=opts, typ=GetGroupsResult).value return AwaitableGetGroupsResult( diff --git a/sdk/python/pulumi_azuread/get_service_principal.py b/sdk/python/pulumi_azuread/get_service_principal.py index ae4517791..cb8087bc0 100644 --- a/sdk/python/pulumi_azuread/get_service_principal.py +++ b/sdk/python/pulumi_azuread/get_service_principal.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -422,10 +423,7 @@ def get_service_principal(application_id: Optional[str] = None, __args__['applicationId'] = application_id __args__['displayName'] = display_name __args__['objectId'] = object_id - if opts is None: - opts = pulumi.InvokeOptions() - if opts.version is None: - opts.version = _utilities.get_version() + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke('azuread:index/getServicePrincipal:getServicePrincipal', __args__, opts=opts, typ=GetServicePrincipalResult).value return AwaitableGetServicePrincipalResult( diff --git a/sdk/python/pulumi_azuread/get_service_principals.py b/sdk/python/pulumi_azuread/get_service_principals.py index 490212eb9..bdb409f9d 100644 --- a/sdk/python/pulumi_azuread/get_service_principals.py +++ b/sdk/python/pulumi_azuread/get_service_principals.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -180,10 +181,7 @@ def get_service_principals(application_ids: Optional[Sequence[str]] = None, __args__['ignoreMissing'] = ignore_missing __args__['objectIds'] = object_ids __args__['returnAll'] = return_all - if opts is None: - opts = pulumi.InvokeOptions() - if opts.version is None: - opts.version = _utilities.get_version() + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke('azuread:index/getServicePrincipals:getServicePrincipals', __args__, opts=opts, typ=GetServicePrincipalsResult).value return AwaitableGetServicePrincipalsResult( diff --git a/sdk/python/pulumi_azuread/get_user.py b/sdk/python/pulumi_azuread/get_user.py index 1aedaea7c..01cd3aabc 100644 --- a/sdk/python/pulumi_azuread/get_user.py +++ b/sdk/python/pulumi_azuread/get_user.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -592,10 +593,7 @@ def get_user(mail_nickname: Optional[str] = None, __args__['mailNickname'] = mail_nickname __args__['objectId'] = object_id __args__['userPrincipalName'] = user_principal_name - if opts is None: - opts = pulumi.InvokeOptions() - if opts.version is None: - opts.version = _utilities.get_version() + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke('azuread:index/getUser:getUser', __args__, opts=opts, typ=GetUserResult).value return AwaitableGetUserResult( diff --git a/sdk/python/pulumi_azuread/get_users.py b/sdk/python/pulumi_azuread/get_users.py index 7c44a568f..2abed84f1 100644 --- a/sdk/python/pulumi_azuread/get_users.py +++ b/sdk/python/pulumi_azuread/get_users.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -152,10 +153,7 @@ def get_users(ignore_missing: Optional[bool] = None, __args__['objectIds'] = object_ids __args__['returnAll'] = return_all __args__['userPrincipalNames'] = user_principal_names - if opts is None: - opts = pulumi.InvokeOptions() - if opts.version is None: - opts.version = _utilities.get_version() + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke('azuread:index/getUsers:getUsers', __args__, opts=opts, typ=GetUsersResult).value return AwaitableGetUsersResult( diff --git a/sdk/python/pulumi_azuread/group.py b/sdk/python/pulumi_azuread/group.py index 59842066a..293eb5f74 100644 --- a/sdk/python/pulumi_azuread/group.py +++ b/sdk/python/pulumi_azuread/group.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -917,12 +918,9 @@ def _internal_init(__self__, types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, visibility: Optional[pulumi.Input[str]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/group_member.py b/sdk/python/pulumi_azuread/group_member.py index d2095112c..463cddb8e 100644 --- a/sdk/python/pulumi_azuread/group_member.py +++ b/sdk/python/pulumi_azuread/group_member.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -201,12 +202,9 @@ def _internal_init(__self__, group_object_id: Optional[pulumi.Input[str]] = None, member_object_id: Optional[pulumi.Input[str]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/invitation.py b/sdk/python/pulumi_azuread/invitation.py index 49a0fcd5d..ec6d2a20c 100644 --- a/sdk/python/pulumi_azuread/invitation.py +++ b/sdk/python/pulumi_azuread/invitation.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -380,12 +381,9 @@ def _internal_init(__self__, user_email_address: Optional[pulumi.Input[str]] = None, user_type: Optional[pulumi.Input[str]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/named_location.py b/sdk/python/pulumi_azuread/named_location.py index 742b3c841..9f399de6b 100644 --- a/sdk/python/pulumi_azuread/named_location.py +++ b/sdk/python/pulumi_azuread/named_location.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -253,12 +254,9 @@ def _internal_init(__self__, display_name: Optional[pulumi.Input[str]] = None, ip: Optional[pulumi.Input[pulumi.InputType['NamedLocationIpArgs']]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/outputs.py b/sdk/python/pulumi_azuread/outputs.py index 52efefef4..dd15c0a8b 100644 --- a/sdk/python/pulumi_azuread/outputs.py +++ b/sdk/python/pulumi_azuread/outputs.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_azuread/provider.py b/sdk/python/pulumi_azuread/provider.py index 75312a618..3a61abc13 100644 --- a/sdk/python/pulumi_azuread/provider.py +++ b/sdk/python/pulumi_azuread/provider.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -367,12 +368,9 @@ def _internal_init(__self__, use_msi: Optional[pulumi.Input[bool]] = None, use_oidc: Optional[pulumi.Input[bool]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/service_principal.py b/sdk/python/pulumi_azuread/service_principal.py index 8ec0f8799..f8cc0f082 100644 --- a/sdk/python/pulumi_azuread/service_principal.py +++ b/sdk/python/pulumi_azuread/service_principal.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -771,71 +772,6 @@ def __init__(__self__, When authenticated with a user principal, this resource requires one of the following directory roles: `Application Administrator` or `Global Administrator` - ## Example Usage - - *Create a service principal for an application* - - ```python - import pulumi - import pulumi_azuread as azuread - - current = azuread.get_client_config() - example_application = azuread.Application("exampleApplication", - display_name="example", - owners=[current.object_id]) - example_service_principal = azuread.ServicePrincipal("exampleServicePrincipal", - application_id=example_application.application_id, - app_role_assignment_required=False, - owners=[current.object_id]) - ``` - - *Create a service principal for an enterprise application* - - ```python - import pulumi - import pulumi_azuread as azuread - - current = azuread.get_client_config() - example_application = azuread.Application("exampleApplication", - display_name="example", - owners=[current.object_id]) - example_service_principal = azuread.ServicePrincipal("exampleServicePrincipal", - application_id=example_application.application_id, - app_role_assignment_required=False, - owners=[current.object_id], - feature_tags=[azuread.ServicePrincipalFeatureTagArgs( - enterprise=True, - gallery=True, - )]) - ``` - - *Manage a service principal for a first-party Microsoft application* - - ```python - import pulumi - import pulumi_azuread as azuread - - well_known = azuread.get_application_published_app_ids() - msgraph = azuread.ServicePrincipal("msgraph", - application_id=well_known.result["MicrosoftGraph"], - use_existing=True) - ``` - - *Create a service principal for an application created from a gallery template* - - ```python - import pulumi - import pulumi_azuread as azuread - - example_application_template = azuread.get_application_template(display_name="Marketo") - example_application = azuread.Application("exampleApplication", - display_name="example", - template_id=example_application_template.template_id) - example_service_principal = azuread.ServicePrincipal("exampleServicePrincipal", - application_id=example_application.application_id, - use_existing=True) - ``` - ## Import Service principals can be imported using their object ID, e.g. @@ -881,71 +817,6 @@ def __init__(__self__, When authenticated with a user principal, this resource requires one of the following directory roles: `Application Administrator` or `Global Administrator` - ## Example Usage - - *Create a service principal for an application* - - ```python - import pulumi - import pulumi_azuread as azuread - - current = azuread.get_client_config() - example_application = azuread.Application("exampleApplication", - display_name="example", - owners=[current.object_id]) - example_service_principal = azuread.ServicePrincipal("exampleServicePrincipal", - application_id=example_application.application_id, - app_role_assignment_required=False, - owners=[current.object_id]) - ``` - - *Create a service principal for an enterprise application* - - ```python - import pulumi - import pulumi_azuread as azuread - - current = azuread.get_client_config() - example_application = azuread.Application("exampleApplication", - display_name="example", - owners=[current.object_id]) - example_service_principal = azuread.ServicePrincipal("exampleServicePrincipal", - application_id=example_application.application_id, - app_role_assignment_required=False, - owners=[current.object_id], - feature_tags=[azuread.ServicePrincipalFeatureTagArgs( - enterprise=True, - gallery=True, - )]) - ``` - - *Manage a service principal for a first-party Microsoft application* - - ```python - import pulumi - import pulumi_azuread as azuread - - well_known = azuread.get_application_published_app_ids() - msgraph = azuread.ServicePrincipal("msgraph", - application_id=well_known.result["MicrosoftGraph"], - use_existing=True) - ``` - - *Create a service principal for an application created from a gallery template* - - ```python - import pulumi - import pulumi_azuread as azuread - - example_application_template = azuread.get_application_template(display_name="Marketo") - example_application = azuread.Application("exampleApplication", - display_name="example", - template_id=example_application_template.template_id) - example_service_principal = azuread.ServicePrincipal("exampleServicePrincipal", - application_id=example_application.application_id, - use_existing=True) - ``` - ## Import Service principals can be imported using their object ID, e.g. @@ -985,12 +856,9 @@ def _internal_init(__self__, tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, use_existing: Optional[pulumi.Input[bool]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/service_principal_certificate.py b/sdk/python/pulumi_azuread/service_principal_certificate.py index 351a9535d..ac38048ad 100644 --- a/sdk/python/pulumi_azuread/service_principal_certificate.py +++ b/sdk/python/pulumi_azuread/service_principal_certificate.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -377,12 +378,9 @@ def _internal_init(__self__, type: Optional[pulumi.Input[str]] = None, value: Optional[pulumi.Input[str]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/service_principal_claims_mapping_policy_assignment.py b/sdk/python/pulumi_azuread/service_principal_claims_mapping_policy_assignment.py index 2fc971641..7ace56a4a 100644 --- a/sdk/python/pulumi_azuread/service_principal_claims_mapping_policy_assignment.py +++ b/sdk/python/pulumi_azuread/service_principal_claims_mapping_policy_assignment.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -185,12 +186,9 @@ def _internal_init(__self__, claims_mapping_policy_id: Optional[pulumi.Input[str]] = None, service_principal_id: Optional[pulumi.Input[str]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/service_principal_delegated_permission_grant.py b/sdk/python/pulumi_azuread/service_principal_delegated_permission_grant.py index d329a9f07..21ca17bbe 100644 --- a/sdk/python/pulumi_azuread/service_principal_delegated_permission_grant.py +++ b/sdk/python/pulumi_azuread/service_principal_delegated_permission_grant.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -172,84 +173,6 @@ def __init__(__self__, When authenticated with a user principal, this resource requires one the following directory role: `Global Administrator` - ## Example Usage - - *Delegated permission grant for all users* - - ```python - import pulumi - import pulumi_azuread as azuread - - well_known = azuread.get_application_published_app_ids() - msgraph = azuread.ServicePrincipal("msgraph", - application_id=well_known.result["MicrosoftGraph"], - use_existing=True) - example_application = azuread.Application("exampleApplication", - display_name="example", - required_resource_accesses=[azuread.ApplicationRequiredResourceAccessArgs( - resource_app_id=well_known.result["MicrosoftGraph"], - resource_accesses=[ - azuread.ApplicationRequiredResourceAccessResourceAccessArgs( - id=msgraph.oauth2_permission_scope_ids["openid"], - type="Scope", - ), - azuread.ApplicationRequiredResourceAccessResourceAccessArgs( - id=msgraph.oauth2_permission_scope_ids["User.Read"], - type="Scope", - ), - ], - )]) - example_service_principal = azuread.ServicePrincipal("exampleServicePrincipal", application_id=example_application.application_id) - example_service_principal_delegated_permission_grant = azuread.ServicePrincipalDelegatedPermissionGrant("exampleServicePrincipalDelegatedPermissionGrant", - service_principal_object_id=example_service_principal.object_id, - resource_service_principal_object_id=msgraph.object_id, - claim_values=[ - "openid", - "User.Read.All", - ]) - ``` - - *Delegated permission grant for a single user* - - ```python - import pulumi - import pulumi_azuread as azuread - - well_known = azuread.get_application_published_app_ids() - msgraph = azuread.ServicePrincipal("msgraph", - application_id=well_known.result["MicrosoftGraph"], - use_existing=True) - example_application = azuread.Application("exampleApplication", - display_name="example", - required_resource_accesses=[azuread.ApplicationRequiredResourceAccessArgs( - resource_app_id=well_known.result["MicrosoftGraph"], - resource_accesses=[ - azuread.ApplicationRequiredResourceAccessResourceAccessArgs( - id=msgraph.oauth2_permission_scope_ids["openid"], - type="Scope", - ), - azuread.ApplicationRequiredResourceAccessResourceAccessArgs( - id=msgraph.oauth2_permission_scope_ids["User.Read"], - type="Scope", - ), - ], - )]) - example_service_principal = azuread.ServicePrincipal("exampleServicePrincipal", application_id=example_application.application_id) - example_user = azuread.User("exampleUser", - display_name="J. Doe", - user_principal_name="jdoe@hashicorp.com", - mail_nickname="jdoe", - password="SecretP@sswd99!") - example_service_principal_delegated_permission_grant = azuread.ServicePrincipalDelegatedPermissionGrant("exampleServicePrincipalDelegatedPermissionGrant", - service_principal_object_id=example_service_principal.object_id, - resource_service_principal_object_id=msgraph.object_id, - claim_values=[ - "openid", - "User.Read.All", - ], - user_object_id=example_user.object_id) - ``` - ## Import Delegated permission grants can be imported using their ID, e.g. @@ -282,84 +205,6 @@ def __init__(__self__, When authenticated with a user principal, this resource requires one the following directory role: `Global Administrator` - ## Example Usage - - *Delegated permission grant for all users* - - ```python - import pulumi - import pulumi_azuread as azuread - - well_known = azuread.get_application_published_app_ids() - msgraph = azuread.ServicePrincipal("msgraph", - application_id=well_known.result["MicrosoftGraph"], - use_existing=True) - example_application = azuread.Application("exampleApplication", - display_name="example", - required_resource_accesses=[azuread.ApplicationRequiredResourceAccessArgs( - resource_app_id=well_known.result["MicrosoftGraph"], - resource_accesses=[ - azuread.ApplicationRequiredResourceAccessResourceAccessArgs( - id=msgraph.oauth2_permission_scope_ids["openid"], - type="Scope", - ), - azuread.ApplicationRequiredResourceAccessResourceAccessArgs( - id=msgraph.oauth2_permission_scope_ids["User.Read"], - type="Scope", - ), - ], - )]) - example_service_principal = azuread.ServicePrincipal("exampleServicePrincipal", application_id=example_application.application_id) - example_service_principal_delegated_permission_grant = azuread.ServicePrincipalDelegatedPermissionGrant("exampleServicePrincipalDelegatedPermissionGrant", - service_principal_object_id=example_service_principal.object_id, - resource_service_principal_object_id=msgraph.object_id, - claim_values=[ - "openid", - "User.Read.All", - ]) - ``` - - *Delegated permission grant for a single user* - - ```python - import pulumi - import pulumi_azuread as azuread - - well_known = azuread.get_application_published_app_ids() - msgraph = azuread.ServicePrincipal("msgraph", - application_id=well_known.result["MicrosoftGraph"], - use_existing=True) - example_application = azuread.Application("exampleApplication", - display_name="example", - required_resource_accesses=[azuread.ApplicationRequiredResourceAccessArgs( - resource_app_id=well_known.result["MicrosoftGraph"], - resource_accesses=[ - azuread.ApplicationRequiredResourceAccessResourceAccessArgs( - id=msgraph.oauth2_permission_scope_ids["openid"], - type="Scope", - ), - azuread.ApplicationRequiredResourceAccessResourceAccessArgs( - id=msgraph.oauth2_permission_scope_ids["User.Read"], - type="Scope", - ), - ], - )]) - example_service_principal = azuread.ServicePrincipal("exampleServicePrincipal", application_id=example_application.application_id) - example_user = azuread.User("exampleUser", - display_name="J. Doe", - user_principal_name="jdoe@hashicorp.com", - mail_nickname="jdoe", - password="SecretP@sswd99!") - example_service_principal_delegated_permission_grant = azuread.ServicePrincipalDelegatedPermissionGrant("exampleServicePrincipalDelegatedPermissionGrant", - service_principal_object_id=example_service_principal.object_id, - resource_service_principal_object_id=msgraph.object_id, - claim_values=[ - "openid", - "User.Read.All", - ], - user_object_id=example_user.object_id) - ``` - ## Import Delegated permission grants can be imported using their ID, e.g. @@ -388,12 +233,9 @@ def _internal_init(__self__, service_principal_object_id: Optional[pulumi.Input[str]] = None, user_object_id: Optional[pulumi.Input[str]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/service_principal_password.py b/sdk/python/pulumi_azuread/service_principal_password.py index 4f09a015c..b33e5dd55 100644 --- a/sdk/python/pulumi_azuread/service_principal_password.py +++ b/sdk/python/pulumi_azuread/service_principal_password.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -328,12 +329,9 @@ def _internal_init(__self__, service_principal_id: Optional[pulumi.Input[str]] = None, start_date: Optional[pulumi.Input[str]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') diff --git a/sdk/python/pulumi_azuread/user.py b/sdk/python/pulumi_azuread/user.py index 492821dc0..55edd90ed 100644 --- a/sdk/python/pulumi_azuread/user.py +++ b/sdk/python/pulumi_azuread/user.py @@ -2,6 +2,7 @@ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import copy import warnings import pulumi import pulumi.runtime @@ -1552,12 +1553,9 @@ def _internal_init(__self__, usage_location: Optional[pulumi.Input[str]] = None, user_principal_name: Optional[pulumi.Input[str]] = None, __props__=None): - if opts is None: - opts = pulumi.ResourceOptions() + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')