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.

CreateUserProfileInput

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

type CreateUserProfileInput struct { AllowSelfManagement *bool `type:"boolean"` IamUserArn *string `type:"string" required:"true"` SshPublicKey *string `type:"string"` SshUsername *string `type:"string"` }

AllowSelfManagement

Type: *bool

Whether users can specify their own SSH public key through the My Settings page. For more information, see Setting an IAM User's Public SSH Key (https://docs.aws.amazon.com/opsworks/latest/userguide/security-settingsshkey.html).

IamUserArn

Type: *string

The user's IAM ARN; this can also be a federated user's ARN.

IamUserArn is a required field

SshPublicKey

Type: *string

The user's public SSH key.

SshUsername

Type: *string

The user's SSH user name. The allowable characters are [a-z], [A-Z], [0-9], '-', and '_'. If the specified name includes other punctuation marks, AWS OpsWorks Stacks removes them. For example, my.name will be changed to myname. If you do not specify an SSH user name, AWS OpsWorks Stacks generates one from the IAM user name.

Method

GoString

func (s CreateUserProfileInput) GoString() string

GoString returns the string representation

SetAllowSelfManagement

func (s *CreateUserProfileInput) SetAllowSelfManagement(v bool) *CreateUserProfileInput

SetAllowSelfManagement sets the AllowSelfManagement field's value.

SetIamUserArn

func (s *CreateUserProfileInput) SetIamUserArn(v string) *CreateUserProfileInput

SetIamUserArn sets the IamUserArn field's value.

SetSshPublicKey

func (s *CreateUserProfileInput) SetSshPublicKey(v string) *CreateUserProfileInput

SetSshPublicKey sets the SshPublicKey field's value.

SetSshUsername

func (s *CreateUserProfileInput) SetSshUsername(v string) *CreateUserProfileInput

SetSshUsername sets the SshUsername field's value.

String

func (s CreateUserProfileInput) String() string

String returns the string representation

Validate

func (s *CreateUserProfileInput) Validate() error

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

On this page: