All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.authorization.AuthorizationFunctions Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azure.authorization;

import com.pulumi.azure.Utilities;
import com.pulumi.azure.authorization.inputs.GetRoleDefinitionArgs;
import com.pulumi.azure.authorization.inputs.GetRoleDefinitionPlainArgs;
import com.pulumi.azure.authorization.inputs.GetUserAssignedIdentityArgs;
import com.pulumi.azure.authorization.inputs.GetUserAssignedIdentityPlainArgs;
import com.pulumi.azure.authorization.outputs.GetRoleDefinitionResult;
import com.pulumi.azure.authorization.outputs.GetUserAssignedIdentityResult;
import com.pulumi.core.Output;
import com.pulumi.core.TypeShape;
import com.pulumi.deployment.Deployment;
import com.pulumi.deployment.InvokeOptions;
import java.util.concurrent.CompletableFuture;

public final class AuthorizationFunctions {
    /**
     * Use this data source to access information about an existing Role Definition.
     * 
     * ## Example Usage
     * 
     * <!--Start PulumiCodeChooser -->
     * 
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.core.CoreFunctions;
     * import com.pulumi.azure.core.inputs.GetSubscriptionArgs;
     * import com.pulumi.azure.authorization.RoleDefinition;
     * import com.pulumi.azure.authorization.RoleDefinitionArgs;
     * import com.pulumi.azure.authorization.AuthorizationFunctions;
     * import com.pulumi.azure.authorization.inputs.GetRoleDefinitionArgs;
     * import java.util.List;
     * import java.util.ArrayList;
     * import java.util.Map;
     * import java.io.File;
     * import java.nio.file.Files;
     * import java.nio.file.Paths;
     * 
     * public class App {
     *     public static void main(String[] args) {
     *         Pulumi.run(App::stack);
     *     }
     * 
     *     public static void stack(Context ctx) {
     *         final var primary = CoreFunctions.getSubscription();
     * 
     *         var customRoleDefinition = new RoleDefinition("customRoleDefinition", RoleDefinitionArgs.builder()
     *             .roleDefinitionId("00000000-0000-0000-0000-000000000000")
     *             .name("CustomRoleDef")
     *             .scope(primary.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
     *             .build());
     * 
     *         final var custom = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()
     *             .roleDefinitionId(customRoleDefinition.roleDefinitionId())
     *             .scope(primary.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
     *             .build());
     * 
     *         final var custom-byname = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()
     *             .name(customRoleDefinition.name())
     *             .scope(primary.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
     *             .build());
     * 
     *         final var builtin = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()
     *             .name("Contributor")
     *             .build());
     * 
     *         ctx.export("customRoleDefinitionId", custom.applyValue(getRoleDefinitionResult -> getRoleDefinitionResult).applyValue(custom -> custom.applyValue(getRoleDefinitionResult -> getRoleDefinitionResult.id())));
     *         ctx.export("contributorRoleDefinitionId", builtin.applyValue(getRoleDefinitionResult -> getRoleDefinitionResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getRoleDefinition() { return getRoleDefinition(GetRoleDefinitionArgs.Empty, InvokeOptions.Empty); } /** * Use this data source to access information about an existing Role Definition. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.core.CoreFunctions;
     * import com.pulumi.azure.core.inputs.GetSubscriptionArgs;
     * import com.pulumi.azure.authorization.RoleDefinition;
     * import com.pulumi.azure.authorization.RoleDefinitionArgs;
     * import com.pulumi.azure.authorization.AuthorizationFunctions;
     * import com.pulumi.azure.authorization.inputs.GetRoleDefinitionArgs;
     * import java.util.List;
     * import java.util.ArrayList;
     * import java.util.Map;
     * import java.io.File;
     * import java.nio.file.Files;
     * import java.nio.file.Paths;
     * 
     * public class App {
     *     public static void main(String[] args) {
     *         Pulumi.run(App::stack);
     *     }
     * 
     *     public static void stack(Context ctx) {
     *         final var primary = CoreFunctions.getSubscription();
     * 
     *         var customRoleDefinition = new RoleDefinition("customRoleDefinition", RoleDefinitionArgs.builder()
     *             .roleDefinitionId("00000000-0000-0000-0000-000000000000")
     *             .name("CustomRoleDef")
     *             .scope(primary.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
     *             .build());
     * 
     *         final var custom = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()
     *             .roleDefinitionId(customRoleDefinition.roleDefinitionId())
     *             .scope(primary.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
     *             .build());
     * 
     *         final var custom-byname = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()
     *             .name(customRoleDefinition.name())
     *             .scope(primary.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
     *             .build());
     * 
     *         final var builtin = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()
     *             .name("Contributor")
     *             .build());
     * 
     *         ctx.export("customRoleDefinitionId", custom.applyValue(getRoleDefinitionResult -> getRoleDefinitionResult).applyValue(custom -> custom.applyValue(getRoleDefinitionResult -> getRoleDefinitionResult.id())));
     *         ctx.export("contributorRoleDefinitionId", builtin.applyValue(getRoleDefinitionResult -> getRoleDefinitionResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getRoleDefinitionPlain() { return getRoleDefinitionPlain(GetRoleDefinitionPlainArgs.Empty, InvokeOptions.Empty); } /** * Use this data source to access information about an existing Role Definition. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.core.CoreFunctions;
     * import com.pulumi.azure.core.inputs.GetSubscriptionArgs;
     * import com.pulumi.azure.authorization.RoleDefinition;
     * import com.pulumi.azure.authorization.RoleDefinitionArgs;
     * import com.pulumi.azure.authorization.AuthorizationFunctions;
     * import com.pulumi.azure.authorization.inputs.GetRoleDefinitionArgs;
     * import java.util.List;
     * import java.util.ArrayList;
     * import java.util.Map;
     * import java.io.File;
     * import java.nio.file.Files;
     * import java.nio.file.Paths;
     * 
     * public class App {
     *     public static void main(String[] args) {
     *         Pulumi.run(App::stack);
     *     }
     * 
     *     public static void stack(Context ctx) {
     *         final var primary = CoreFunctions.getSubscription();
     * 
     *         var customRoleDefinition = new RoleDefinition("customRoleDefinition", RoleDefinitionArgs.builder()
     *             .roleDefinitionId("00000000-0000-0000-0000-000000000000")
     *             .name("CustomRoleDef")
     *             .scope(primary.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
     *             .build());
     * 
     *         final var custom = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()
     *             .roleDefinitionId(customRoleDefinition.roleDefinitionId())
     *             .scope(primary.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
     *             .build());
     * 
     *         final var custom-byname = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()
     *             .name(customRoleDefinition.name())
     *             .scope(primary.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
     *             .build());
     * 
     *         final var builtin = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()
     *             .name("Contributor")
     *             .build());
     * 
     *         ctx.export("customRoleDefinitionId", custom.applyValue(getRoleDefinitionResult -> getRoleDefinitionResult).applyValue(custom -> custom.applyValue(getRoleDefinitionResult -> getRoleDefinitionResult.id())));
     *         ctx.export("contributorRoleDefinitionId", builtin.applyValue(getRoleDefinitionResult -> getRoleDefinitionResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getRoleDefinition(GetRoleDefinitionArgs args) { return getRoleDefinition(args, InvokeOptions.Empty); } /** * Use this data source to access information about an existing Role Definition. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.core.CoreFunctions;
     * import com.pulumi.azure.core.inputs.GetSubscriptionArgs;
     * import com.pulumi.azure.authorization.RoleDefinition;
     * import com.pulumi.azure.authorization.RoleDefinitionArgs;
     * import com.pulumi.azure.authorization.AuthorizationFunctions;
     * import com.pulumi.azure.authorization.inputs.GetRoleDefinitionArgs;
     * import java.util.List;
     * import java.util.ArrayList;
     * import java.util.Map;
     * import java.io.File;
     * import java.nio.file.Files;
     * import java.nio.file.Paths;
     * 
     * public class App {
     *     public static void main(String[] args) {
     *         Pulumi.run(App::stack);
     *     }
     * 
     *     public static void stack(Context ctx) {
     *         final var primary = CoreFunctions.getSubscription();
     * 
     *         var customRoleDefinition = new RoleDefinition("customRoleDefinition", RoleDefinitionArgs.builder()
     *             .roleDefinitionId("00000000-0000-0000-0000-000000000000")
     *             .name("CustomRoleDef")
     *             .scope(primary.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
     *             .build());
     * 
     *         final var custom = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()
     *             .roleDefinitionId(customRoleDefinition.roleDefinitionId())
     *             .scope(primary.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
     *             .build());
     * 
     *         final var custom-byname = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()
     *             .name(customRoleDefinition.name())
     *             .scope(primary.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
     *             .build());
     * 
     *         final var builtin = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()
     *             .name("Contributor")
     *             .build());
     * 
     *         ctx.export("customRoleDefinitionId", custom.applyValue(getRoleDefinitionResult -> getRoleDefinitionResult).applyValue(custom -> custom.applyValue(getRoleDefinitionResult -> getRoleDefinitionResult.id())));
     *         ctx.export("contributorRoleDefinitionId", builtin.applyValue(getRoleDefinitionResult -> getRoleDefinitionResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getRoleDefinitionPlain(GetRoleDefinitionPlainArgs args) { return getRoleDefinitionPlain(args, InvokeOptions.Empty); } /** * Use this data source to access information about an existing Role Definition. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.core.CoreFunctions;
     * import com.pulumi.azure.core.inputs.GetSubscriptionArgs;
     * import com.pulumi.azure.authorization.RoleDefinition;
     * import com.pulumi.azure.authorization.RoleDefinitionArgs;
     * import com.pulumi.azure.authorization.AuthorizationFunctions;
     * import com.pulumi.azure.authorization.inputs.GetRoleDefinitionArgs;
     * import java.util.List;
     * import java.util.ArrayList;
     * import java.util.Map;
     * import java.io.File;
     * import java.nio.file.Files;
     * import java.nio.file.Paths;
     * 
     * public class App {
     *     public static void main(String[] args) {
     *         Pulumi.run(App::stack);
     *     }
     * 
     *     public static void stack(Context ctx) {
     *         final var primary = CoreFunctions.getSubscription();
     * 
     *         var customRoleDefinition = new RoleDefinition("customRoleDefinition", RoleDefinitionArgs.builder()
     *             .roleDefinitionId("00000000-0000-0000-0000-000000000000")
     *             .name("CustomRoleDef")
     *             .scope(primary.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
     *             .build());
     * 
     *         final var custom = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()
     *             .roleDefinitionId(customRoleDefinition.roleDefinitionId())
     *             .scope(primary.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
     *             .build());
     * 
     *         final var custom-byname = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()
     *             .name(customRoleDefinition.name())
     *             .scope(primary.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
     *             .build());
     * 
     *         final var builtin = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()
     *             .name("Contributor")
     *             .build());
     * 
     *         ctx.export("customRoleDefinitionId", custom.applyValue(getRoleDefinitionResult -> getRoleDefinitionResult).applyValue(custom -> custom.applyValue(getRoleDefinitionResult -> getRoleDefinitionResult.id())));
     *         ctx.export("contributorRoleDefinitionId", builtin.applyValue(getRoleDefinitionResult -> getRoleDefinitionResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getRoleDefinition(GetRoleDefinitionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("azure:authorization/getRoleDefinition:getRoleDefinition", TypeShape.of(GetRoleDefinitionResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access information about an existing Role Definition. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.core.CoreFunctions;
     * import com.pulumi.azure.core.inputs.GetSubscriptionArgs;
     * import com.pulumi.azure.authorization.RoleDefinition;
     * import com.pulumi.azure.authorization.RoleDefinitionArgs;
     * import com.pulumi.azure.authorization.AuthorizationFunctions;
     * import com.pulumi.azure.authorization.inputs.GetRoleDefinitionArgs;
     * import java.util.List;
     * import java.util.ArrayList;
     * import java.util.Map;
     * import java.io.File;
     * import java.nio.file.Files;
     * import java.nio.file.Paths;
     * 
     * public class App {
     *     public static void main(String[] args) {
     *         Pulumi.run(App::stack);
     *     }
     * 
     *     public static void stack(Context ctx) {
     *         final var primary = CoreFunctions.getSubscription();
     * 
     *         var customRoleDefinition = new RoleDefinition("customRoleDefinition", RoleDefinitionArgs.builder()
     *             .roleDefinitionId("00000000-0000-0000-0000-000000000000")
     *             .name("CustomRoleDef")
     *             .scope(primary.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
     *             .build());
     * 
     *         final var custom = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()
     *             .roleDefinitionId(customRoleDefinition.roleDefinitionId())
     *             .scope(primary.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
     *             .build());
     * 
     *         final var custom-byname = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()
     *             .name(customRoleDefinition.name())
     *             .scope(primary.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
     *             .build());
     * 
     *         final var builtin = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()
     *             .name("Contributor")
     *             .build());
     * 
     *         ctx.export("customRoleDefinitionId", custom.applyValue(getRoleDefinitionResult -> getRoleDefinitionResult).applyValue(custom -> custom.applyValue(getRoleDefinitionResult -> getRoleDefinitionResult.id())));
     *         ctx.export("contributorRoleDefinitionId", builtin.applyValue(getRoleDefinitionResult -> getRoleDefinitionResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getRoleDefinitionPlain(GetRoleDefinitionPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("azure:authorization/getRoleDefinition:getRoleDefinition", TypeShape.of(GetRoleDefinitionResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access information about an existing User Assigned Identity. * * ## Example Usage * * ### Reference An Existing) * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.authorization.AuthorizationFunctions;
     * import com.pulumi.azure.authorization.inputs.GetUserAssignedIdentityArgs;
     * import java.util.List;
     * import java.util.ArrayList;
     * import java.util.Map;
     * import java.io.File;
     * import java.nio.file.Files;
     * import java.nio.file.Paths;
     * 
     * public class App {
     *     public static void main(String[] args) {
     *         Pulumi.run(App::stack);
     *     }
     * 
     *     public static void stack(Context ctx) {
     *         final var example = AuthorizationFunctions.getUserAssignedIdentity(GetUserAssignedIdentityArgs.builder()
     *             .name("name_of_user_assigned_identity")
     *             .resourceGroupName("name_of_resource_group")
     *             .build());
     * 
     *         ctx.export("uaiClientId", example.applyValue(getUserAssignedIdentityResult -> getUserAssignedIdentityResult.clientId()));
     *         ctx.export("uaiPrincipalId", example.applyValue(getUserAssignedIdentityResult -> getUserAssignedIdentityResult.principalId()));
     *         ctx.export("uaiTenantId", example.applyValue(getUserAssignedIdentityResult -> getUserAssignedIdentityResult.tenantId()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getUserAssignedIdentity(GetUserAssignedIdentityArgs args) { return getUserAssignedIdentity(args, InvokeOptions.Empty); } /** * Use this data source to access information about an existing User Assigned Identity. * * ## Example Usage * * ### Reference An Existing) * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.authorization.AuthorizationFunctions;
     * import com.pulumi.azure.authorization.inputs.GetUserAssignedIdentityArgs;
     * import java.util.List;
     * import java.util.ArrayList;
     * import java.util.Map;
     * import java.io.File;
     * import java.nio.file.Files;
     * import java.nio.file.Paths;
     * 
     * public class App {
     *     public static void main(String[] args) {
     *         Pulumi.run(App::stack);
     *     }
     * 
     *     public static void stack(Context ctx) {
     *         final var example = AuthorizationFunctions.getUserAssignedIdentity(GetUserAssignedIdentityArgs.builder()
     *             .name("name_of_user_assigned_identity")
     *             .resourceGroupName("name_of_resource_group")
     *             .build());
     * 
     *         ctx.export("uaiClientId", example.applyValue(getUserAssignedIdentityResult -> getUserAssignedIdentityResult.clientId()));
     *         ctx.export("uaiPrincipalId", example.applyValue(getUserAssignedIdentityResult -> getUserAssignedIdentityResult.principalId()));
     *         ctx.export("uaiTenantId", example.applyValue(getUserAssignedIdentityResult -> getUserAssignedIdentityResult.tenantId()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getUserAssignedIdentityPlain(GetUserAssignedIdentityPlainArgs args) { return getUserAssignedIdentityPlain(args, InvokeOptions.Empty); } /** * Use this data source to access information about an existing User Assigned Identity. * * ## Example Usage * * ### Reference An Existing) * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.authorization.AuthorizationFunctions;
     * import com.pulumi.azure.authorization.inputs.GetUserAssignedIdentityArgs;
     * import java.util.List;
     * import java.util.ArrayList;
     * import java.util.Map;
     * import java.io.File;
     * import java.nio.file.Files;
     * import java.nio.file.Paths;
     * 
     * public class App {
     *     public static void main(String[] args) {
     *         Pulumi.run(App::stack);
     *     }
     * 
     *     public static void stack(Context ctx) {
     *         final var example = AuthorizationFunctions.getUserAssignedIdentity(GetUserAssignedIdentityArgs.builder()
     *             .name("name_of_user_assigned_identity")
     *             .resourceGroupName("name_of_resource_group")
     *             .build());
     * 
     *         ctx.export("uaiClientId", example.applyValue(getUserAssignedIdentityResult -> getUserAssignedIdentityResult.clientId()));
     *         ctx.export("uaiPrincipalId", example.applyValue(getUserAssignedIdentityResult -> getUserAssignedIdentityResult.principalId()));
     *         ctx.export("uaiTenantId", example.applyValue(getUserAssignedIdentityResult -> getUserAssignedIdentityResult.tenantId()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getUserAssignedIdentity(GetUserAssignedIdentityArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("azure:authorization/getUserAssignedIdentity:getUserAssignedIdentity", TypeShape.of(GetUserAssignedIdentityResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access information about an existing User Assigned Identity. * * ## Example Usage * * ### Reference An Existing) * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.authorization.AuthorizationFunctions;
     * import com.pulumi.azure.authorization.inputs.GetUserAssignedIdentityArgs;
     * import java.util.List;
     * import java.util.ArrayList;
     * import java.util.Map;
     * import java.io.File;
     * import java.nio.file.Files;
     * import java.nio.file.Paths;
     * 
     * public class App {
     *     public static void main(String[] args) {
     *         Pulumi.run(App::stack);
     *     }
     * 
     *     public static void stack(Context ctx) {
     *         final var example = AuthorizationFunctions.getUserAssignedIdentity(GetUserAssignedIdentityArgs.builder()
     *             .name("name_of_user_assigned_identity")
     *             .resourceGroupName("name_of_resource_group")
     *             .build());
     * 
     *         ctx.export("uaiClientId", example.applyValue(getUserAssignedIdentityResult -> getUserAssignedIdentityResult.clientId()));
     *         ctx.export("uaiPrincipalId", example.applyValue(getUserAssignedIdentityResult -> getUserAssignedIdentityResult.principalId()));
     *         ctx.export("uaiTenantId", example.applyValue(getUserAssignedIdentityResult -> getUserAssignedIdentityResult.tenantId()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getUserAssignedIdentityPlain(GetUserAssignedIdentityPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("azure:authorization/getUserAssignedIdentity:getUserAssignedIdentity", TypeShape.of(GetUserAssignedIdentityResult.class), args, Utilities.withVersion(options)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy