AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

ChangePasswordInput

import "github.com/aws/aws-sdk-go/service/iam"

type ChangePasswordInput struct { NewPassword *string `min:"1" type:"string" required:"true" sensitive:"true"` OldPassword *string `min:"1" type:"string" required:"true" sensitive:"true"` }

NewPassword

Type: *string

The new password. The new password must conform to the AWS account's password policy, if one exists.

The regex pattern (http://wikipedia.org/wiki/regex) that is used to validate this parameter is a string of characters. That string can include almost any printable ASCII character from the space (\u0020) through the end of the ASCII character range (\u00FF). You can also include the tab (\u0009), line feed (\u000A), and carriage return (\u000D) characters. Any of these characters are valid in a password. However, many tools, such as the AWS Management Console, might restrict the ability to type certain characters because they have special meaning within that tool.

NewPassword is a required field

OldPassword

Type: *string

The IAM user's current password.

OldPassword is a required field

Method

GoString

func (s ChangePasswordInput) GoString() string

GoString returns the string representation

SetNewPassword

func (s *ChangePasswordInput) SetNewPassword(v string) *ChangePasswordInput

SetNewPassword sets the NewPassword field's value.

SetOldPassword

func (s *ChangePasswordInput) SetOldPassword(v string) *ChangePasswordInput

SetOldPassword sets the OldPassword field's value.

String

func (s ChangePasswordInput) String() string

String returns the string representation

Validate

func (s *ChangePasswordInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: