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

SetDefaultPolicyVersion() public method

Sets the specified version of the specified policy as the policy's default (operative) version.

This action affects all users, groups, and roles that the policy is attached to. To list the users, groups, and roles that the policy is attached to, use the ListEntitiesForPolicy API.

For information about managed 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 SetDefaultPolicyVersion ( SetDefaultPolicyVersionRequest request ) : SetDefaultPolicyVersionResponse
request SetDefaultPolicyVersionRequest Container for the necessary parameters to execute the SetDefaultPolicyVersion service method.
return SetDefaultPolicyVersionResponse
        public SetDefaultPolicyVersionResponse SetDefaultPolicyVersion(SetDefaultPolicyVersionRequest request)
        {
            var marshaller = new SetDefaultPolicyVersionRequestMarshaller();
            var unmarshaller = SetDefaultPolicyVersionResponseUnmarshaller.Instance;

            return Invoke<SetDefaultPolicyVersionRequest,SetDefaultPolicyVersionResponse>(request, marshaller, unmarshaller);
        }
AmazonIdentityManagementServiceClient