Class RoleManagementPolicyAssignment
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.azurenative.authorization.RoleManagementPolicyAssignment
-
public class RoleManagementPolicyAssignment extends com.pulumi.resources.CustomResource
Role management policy Azure REST API version: 2020-10-01. Prior API version in Azure Native 1.x: 2020-10-01. Other available API versions: 2020-10-01-preview. ## Example Usage ### PutRoleManagementPolicyAssignment ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.azurenative.authorization.RoleManagementPolicyAssignment; import com.pulumi.azurenative.authorization.RoleManagementPolicyAssignmentArgs; 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 roleManagementPolicyAssignment = new RoleManagementPolicyAssignment("roleManagementPolicyAssignment", RoleManagementPolicyAssignmentArgs.builder() .policyId("/subscriptions/129ff972-28f8-46b8-a726-e497be039368/providers/Microsoft.Authorization/roleManagementPolicies/b959d571-f0b5-4042-88a7-01be6cb22db9") .roleDefinitionId("/subscriptions/129ff972-28f8-46b8-a726-e497be039368/providers/Microsoft.Authorization/roleDefinitions/a1705bd2-3a8f-45a5-8683-466fcfd5cc24") .roleManagementPolicyAssignmentName("b959d571-f0b5-4042-88a7-01be6cb22db9_a1705bd2-3a8f-45a5-8683-466fcfd5cc24") .scope("providers/Microsoft.Subscription/subscriptions/129ff972-28f8-46b8-a726-e497be039368") .build()); } } ``` ## Import An existing resource can be imported using its type token, name, and identifier, e.g. ```sh $ pulumi import azure-native:authorization:RoleManagementPolicyAssignment b959d571-f0b5-4042-88a7-01be6cb22db9_a1705bd2-3a8f-45a5-8683-466fcfd5cc24 /{scope}/providers/Microsoft.Authorization/roleManagementPolicyAssignments/{roleManagementPolicyAssignmentName} ```
-
-
Constructor Summary
Constructors Constructor Description RoleManagementPolicyAssignment(java.lang.String name)
RoleManagementPolicyAssignment(java.lang.String name, RoleManagementPolicyAssignmentArgs args)
RoleManagementPolicyAssignment(java.lang.String name, RoleManagementPolicyAssignmentArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.List<java.lang.Object>>
effectiveRules()
static RoleManagementPolicyAssignment
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<PolicyAssignmentPropertiesResponse>
policyAssignmentProperties()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
policyId()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
roleDefinitionId()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
scope()
com.pulumi.core.Output<java.lang.String>
type()
-
-
-
Constructor Detail
-
RoleManagementPolicyAssignment
public RoleManagementPolicyAssignment(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
RoleManagementPolicyAssignment
public RoleManagementPolicyAssignment(java.lang.String name, RoleManagementPolicyAssignmentArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
RoleManagementPolicyAssignment
public RoleManagementPolicyAssignment(java.lang.String name, RoleManagementPolicyAssignmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
effectiveRules
public com.pulumi.core.Output<java.util.List<java.lang.Object>> effectiveRules()
- Returns:
- The readonly computed rule applied to the policy.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The role management policy name.
-
policyAssignmentProperties
public com.pulumi.core.Output<PolicyAssignmentPropertiesResponse> policyAssignmentProperties()
- Returns:
- Additional properties of scope, role definition and policy
-
policyId
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> policyId()
- Returns:
- The policy id role management policy assignment.
-
roleDefinitionId
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> roleDefinitionId()
- Returns:
- The role definition of management policy assignment.
-
scope
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> scope()
- Returns:
- The role management policy scope.
-
type
public com.pulumi.core.Output<java.lang.String> type()
- Returns:
- The role management policy type.
-
get
public static RoleManagementPolicyAssignment get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.options
- Optional settings to control the behavior of the CustomResource.
-
-