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

com.pulumi.azurenative.customerinsights.RoleAssignment Maven / Gradle / Ivy

// *** 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.azurenative.customerinsights;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.customerinsights.RoleAssignmentArgs;
import com.pulumi.azurenative.customerinsights.outputs.AssignmentPrincipalResponse;
import com.pulumi.azurenative.customerinsights.outputs.ResourceSetDescriptionResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * The Role Assignment resource format.
 * Azure REST API version: 2017-04-26. Prior API version in Azure Native 1.x: 2017-04-26.
 * 
 * ## Example Usage
 * ### RoleAssignments_CreateOrUpdate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.customerinsights.RoleAssignment;
 * import com.pulumi.azurenative.customerinsights.RoleAssignmentArgs;
 * import com.pulumi.azurenative.customerinsights.inputs.AssignmentPrincipalArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * 
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 * 
 *     public static void stack(Context ctx) {
 *         var roleAssignment = new RoleAssignment("roleAssignment", RoleAssignmentArgs.builder()
 *             .assignmentName("assignmentName8976")
 *             .hubName("sdkTestHub")
 *             .principals(            
 *                 AssignmentPrincipalArgs.builder()
 *                     .principalId("4c54c38ffa9b416ba5a6d6c8a20cbe7e")
 *                     .principalType("User")
 *                     .build(),
 *                 AssignmentPrincipalArgs.builder()
 *                     .principalId("93061d15a5054f2b9948ae25724cf9d5")
 *                     .principalType("User")
 *                     .build())
 *             .resourceGroupName("TestHubRG")
 *             .role("Admin")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:customerinsights:RoleAssignment azSdkTestHub/assignmentName8976 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roleAssignments/{assignmentName} * ``` * */ @ResourceType(type="azure-native:customerinsights:RoleAssignment") public class RoleAssignment extends com.pulumi.resources.CustomResource { /** * The name of the metadata object. * */ @Export(name="assignmentName", refs={String.class}, tree="[0]") private Output assignmentName; /** * @return The name of the metadata object. * */ public Output assignmentName() { return this.assignmentName; } /** * Widget types set for the assignment. * */ @Export(name="conflationPolicies", refs={ResourceSetDescriptionResponse.class}, tree="[0]") private Output conflationPolicies; /** * @return Widget types set for the assignment. * */ public Output> conflationPolicies() { return Codegen.optional(this.conflationPolicies); } /** * Connectors set for the assignment. * */ @Export(name="connectors", refs={ResourceSetDescriptionResponse.class}, tree="[0]") private Output connectors; /** * @return Connectors set for the assignment. * */ public Output> connectors() { return Codegen.optional(this.connectors); } /** * Localized description for the metadata. * */ @Export(name="description", refs={Map.class,String.class}, tree="[0,1,1]") private Output> description; /** * @return Localized description for the metadata. * */ public Output>> description() { return Codegen.optional(this.description); } /** * Localized display names for the metadata. * */ @Export(name="displayName", refs={Map.class,String.class}, tree="[0,1,1]") private Output> displayName; /** * @return Localized display names for the metadata. * */ public Output>> displayName() { return Codegen.optional(this.displayName); } /** * Interactions set for the assignment. * */ @Export(name="interactions", refs={ResourceSetDescriptionResponse.class}, tree="[0]") private Output interactions; /** * @return Interactions set for the assignment. * */ public Output> interactions() { return Codegen.optional(this.interactions); } /** * Kpis set for the assignment. * */ @Export(name="kpis", refs={ResourceSetDescriptionResponse.class}, tree="[0]") private Output kpis; /** * @return Kpis set for the assignment. * */ public Output> kpis() { return Codegen.optional(this.kpis); } /** * Links set for the assignment. * */ @Export(name="links", refs={ResourceSetDescriptionResponse.class}, tree="[0]") private Output links; /** * @return Links set for the assignment. * */ public Output> links() { return Codegen.optional(this.links); } /** * Resource name. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Resource name. * */ public Output name() { return this.name; } /** * The principals being assigned to. * */ @Export(name="principals", refs={List.class,AssignmentPrincipalResponse.class}, tree="[0,1]") private Output> principals; /** * @return The principals being assigned to. * */ public Output> principals() { return this.principals; } /** * Profiles set for the assignment. * */ @Export(name="profiles", refs={ResourceSetDescriptionResponse.class}, tree="[0]") private Output profiles; /** * @return Profiles set for the assignment. * */ public Output> profiles() { return Codegen.optional(this.profiles); } /** * Provisioning state. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return Provisioning state. * */ public Output provisioningState() { return this.provisioningState; } /** * The Role assignments set for the relationship links. * */ @Export(name="relationshipLinks", refs={ResourceSetDescriptionResponse.class}, tree="[0]") private Output relationshipLinks; /** * @return The Role assignments set for the relationship links. * */ public Output> relationshipLinks() { return Codegen.optional(this.relationshipLinks); } /** * The Role assignments set for the relationships. * */ @Export(name="relationships", refs={ResourceSetDescriptionResponse.class}, tree="[0]") private Output relationships; /** * @return The Role assignments set for the relationships. * */ public Output> relationships() { return Codegen.optional(this.relationships); } /** * Type of roles. * */ @Export(name="role", refs={String.class}, tree="[0]") private Output role; /** * @return Type of roles. * */ public Output role() { return this.role; } /** * The Role assignments set for the assignment. * */ @Export(name="roleAssignments", refs={ResourceSetDescriptionResponse.class}, tree="[0]") private Output roleAssignments; /** * @return The Role assignments set for the assignment. * */ public Output> roleAssignments() { return Codegen.optional(this.roleAssignments); } /** * Sas Policies set for the assignment. * */ @Export(name="sasPolicies", refs={ResourceSetDescriptionResponse.class}, tree="[0]") private Output sasPolicies; /** * @return Sas Policies set for the assignment. * */ public Output> sasPolicies() { return Codegen.optional(this.sasPolicies); } /** * The Role assignments set for the assignment. * */ @Export(name="segments", refs={ResourceSetDescriptionResponse.class}, tree="[0]") private Output segments; /** * @return The Role assignments set for the assignment. * */ public Output> segments() { return Codegen.optional(this.segments); } /** * The hub name. * */ @Export(name="tenantId", refs={String.class}, tree="[0]") private Output tenantId; /** * @return The hub name. * */ public Output tenantId() { return this.tenantId; } /** * Resource type. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Resource type. * */ public Output type() { return this.type; } /** * Views set for the assignment. * */ @Export(name="views", refs={ResourceSetDescriptionResponse.class}, tree="[0]") private Output views; /** * @return Views set for the assignment. * */ public Output> views() { return Codegen.optional(this.views); } /** * Widget types set for the assignment. * */ @Export(name="widgetTypes", refs={ResourceSetDescriptionResponse.class}, tree="[0]") private Output widgetTypes; /** * @return Widget types set for the assignment. * */ public Output> widgetTypes() { return Codegen.optional(this.widgetTypes); } /** * * @param name The _unique_ name of the resulting resource. */ public RoleAssignment(java.lang.String name) { this(name, RoleAssignmentArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public RoleAssignment(java.lang.String name, RoleAssignmentArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public RoleAssignment(java.lang.String name, RoleAssignmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:customerinsights:RoleAssignment", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private RoleAssignment(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:customerinsights:RoleAssignment", name, null, makeResourceOptions(options, id), false); } private static RoleAssignmentArgs makeArgs(RoleAssignmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? RoleAssignmentArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:customerinsights/v20170101:RoleAssignment").build()), Output.of(Alias.builder().type("azure-native:customerinsights/v20170426:RoleAssignment").build()) )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param options Optional settings to control the behavior of the CustomResource. */ public static RoleAssignment get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new RoleAssignment(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy