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

We welcome your feedback on this new version of the documentation. Send your comments to


import ""

type CreateUserInput struct { Path *string `min:"1" type:"string"` PermissionsBoundary *string `min:"20" type:"string"` Tags []*Tag `type:"list"` UserName *string `min:"1" type:"string" required:"true"` }


Type: *string

The path for the user name. For more information about paths, see IAM Identifiers ( in the IAM User Guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

This parameter allows (through its regex pattern ( a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (\u0021) through the DEL character (\u007F), including most punctuation characters, digits, and upper and lowercased letters.


Type: *string

The ARN of the policy that is used to set the permissions boundary for the user.


A structure that represents user-provided metadata that can be associated with a resource such as an IAM user or role. For more information about tagging, see Tagging IAM Identities ( in the IAM User Guide.


Type: *string

The name of the user to create.

This parameter allows (through its regex pattern ( a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-. User names are not distinguished by case. For example, you cannot create users named both "TESTUSER" and "testuser".

UserName is a required field



func (s CreateUserInput) GoString() string

GoString returns the string representation


func (s *CreateUserInput) SetPath(v string) *CreateUserInput

SetPath sets the Path field's value.


func (s *CreateUserInput) SetPermissionsBoundary(v string) *CreateUserInput

SetPermissionsBoundary sets the PermissionsBoundary field's value.


func (s *CreateUserInput) SetTags(v []*Tag) *CreateUserInput

SetTags sets the Tags field's value.


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

SetUserName sets the UserName field's value.


func (s CreateUserInput) String() string

String returns the string representation


func (s *CreateUserInput) Validate() error

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

On this page: