Amazon.IdentityManagement.AmazonIdentityManagementServiceClient.DetachUserPolicy C# (CSharp) Method

DetachUserPolicy() public method

Removes the specified managed policy from the specified user.

A user can also have inline policies embedded with it. To delete an inline policy, use the DeleteUserPolicy API. For information about policies, see Managed Policies and Inline Policies in the IAM User Guide.

/// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// The request was rejected because it attempted to create resources beyond the current /// AWS account limits. The error message describes the limit exceeded. /// /// The request was rejected because it referenced an entity that does not exist. The /// error message describes the entity. /// /// The request processing has failed because of an unknown error, exception or failure. ///
public DetachUserPolicy ( DetachUserPolicyRequest request ) : DetachUserPolicyResponse
request Amazon.IdentityManagement.Model.DetachUserPolicyRequest Container for the necessary parameters to execute the DetachUserPolicy service method.
return DetachUserPolicyResponse
        public DetachUserPolicyResponse DetachUserPolicy(DetachUserPolicyRequest request)
        {
            var marshaller = new DetachUserPolicyRequestMarshaller();
            var unmarshaller = DetachUserPolicyResponseUnmarshaller.Instance;

            return Invoke<DetachUserPolicyRequest,DetachUserPolicyResponse>(request, marshaller, unmarshaller);
        }
AmazonIdentityManagementServiceClient