AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the GetAccountPasswordPolicy operation. Retrieves the password policy for the Amazon Web Services account. This tells you the complexity requirements and mandatory rotation periods for the IAM user passwords in your account. For more information about using a password policy, see Managing an IAM password policy.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.IdentityManagement.AmazonIdentityManagementServiceRequest
      Amazon.IdentityManagement.Model.GetAccountPasswordPolicyRequest

Namespace: Amazon.IdentityManagement.Model
Assembly: AWSSDK.IdentityManagement.dll
Version: 3.x.y.z

Syntax

C#
public class GetAccountPasswordPolicyRequest : AmazonIdentityManagementServiceRequest
         IAmazonWebServiceRequest

The GetAccountPasswordPolicyRequest type exposes the following members

Constructors

Examples

The following command displays details about the password policy for the current AWS account.

To see the current account password policy


var client = new AmazonIdentityManagementServiceClient();
var response = client.GetAccountPasswordPolicy(new GetAccountPasswordPolicyRequest 
{
});

PasswordPolicy passwordPolicy = response.PasswordPolicy;

            

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5