public static final class DetachPolicyRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
DetachPolicyRequest |
build() |
DetachPolicyRequest.Builder |
policyName(String policyName)
The name of the policy.
|
DetachPolicyRequest.Builder |
policyType(String policyType)
The type of the policy.
|
DetachPolicyRequest.Builder |
principalName(String principalName)
The name of the object to which the policy is attached.
|
DetachPolicyRequest.Builder |
principalType(String principalType)
The type of the object to which the policy is attached.
|
DetachPolicyRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group or the ID of the Alibaba Cloud account to which the resource group belongs.
|
public DetachPolicyRequest.Builder policyName(String policyName)
The name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).
public DetachPolicyRequest.Builder policyType(String policyType)
* Custom: custom policy * System: system policy
public DetachPolicyRequest.Builder principalName(String principalName)
public DetachPolicyRequest.Builder principalType(String principalType)
* IMSUser: RAM user * IMSGroup: RAM user group * ServiceRole: RAM role
public DetachPolicyRequest.Builder resourceGroupId(String resourceGroupId)
This parameter specifies the resource group or Alibaba Cloud account for which you want to revoke permissions.
public DetachPolicyRequest build()
Copyright © 2023. All rights reserved.