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.

CreateLoginProfileInput

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

type CreateLoginProfileInput struct { Password *string `min:"1" type:"string" required:"true" sensitive:"true"` PasswordResetRequired *bool `type:"boolean"` UserName *string `min:"1" type:"string" required:"true"` }

Password

Type: *string

The new password for the user.

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.

Password is a required field

PasswordResetRequired

Type: *bool

Specifies whether the user is required to set a new password on next sign-in.

UserName

Type: *string

The name of the IAM user to create a password for. The user must already exist.

This parameter allows (through its regex pattern (http://wikipedia.org/wiki/regex)) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

UserName is a required field

Method

GoString

func (s CreateLoginProfileInput) GoString() string

GoString returns the string representation

SetPassword

func (s *CreateLoginProfileInput) SetPassword(v string) *CreateLoginProfileInput

SetPassword sets the Password field's value.

SetPasswordResetRequired

func (s *CreateLoginProfileInput) SetPasswordResetRequired(v bool) *CreateLoginProfileInput

SetPasswordResetRequired sets the PasswordResetRequired field's value.

SetUserName

func (s *CreateLoginProfileInput) SetUserName(v string) *CreateLoginProfileInput

SetUserName sets the UserName field's value.

String

func (s CreateLoginProfileInput) String() string

String returns the string representation

Validate

func (s *CreateLoginProfileInput) Validate() error

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

On this page: