amazonka-opsworks-2.0: Amazon OpsWorks SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.OpsWorks.CreateUserProfile

Description

Creates a new user profile.

Required Permissions: To use this action, an IAM user must have an attached policy that explicitly grants permissions. For more information about user permissions, see Managing User Permissions.

Synopsis

Creating a Request

data CreateUserProfile Source #

See: newCreateUserProfile smart constructor.

Constructors

CreateUserProfile' 

Fields

  • allowSelfManagement :: Maybe 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.

  • sshPublicKey :: Maybe Text

    The user's public SSH key.

  • sshUsername :: Maybe Text

    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.

  • iamUserArn :: Text

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

Instances

Instances details
ToJSON CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

ToHeaders CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

ToPath CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

ToQuery CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

AWSRequest CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

Associated Types

type AWSResponse CreateUserProfile #

Generic CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

Associated Types

type Rep CreateUserProfile :: Type -> Type #

Read CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

Show CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

NFData CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

Methods

rnf :: CreateUserProfile -> () #

Eq CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

Hashable CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

type AWSResponse CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

type Rep CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

type Rep CreateUserProfile = D1 ('MetaData "CreateUserProfile" "Amazonka.OpsWorks.CreateUserProfile" "amazonka-opsworks-2.0-7XrzSD2vbuN9lVUGWMVZ7S" 'False) (C1 ('MetaCons "CreateUserProfile'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "allowSelfManagement") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "sshPublicKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "sshUsername") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "iamUserArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateUserProfile Source #

Create a value of CreateUserProfile with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateUserProfile, createUserProfile_allowSelfManagement - 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.

CreateUserProfile, createUserProfile_sshPublicKey - The user's public SSH key.

CreateUserProfile, createUserProfile_sshUsername - 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.

CreateUserProfile, createUserProfile_iamUserArn - The user's IAM ARN; this can also be a federated user's ARN.

Request Lenses

createUserProfile_allowSelfManagement :: Lens' CreateUserProfile (Maybe Bool) Source #

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.

createUserProfile_sshUsername :: Lens' CreateUserProfile (Maybe Text) Source #

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.

createUserProfile_iamUserArn :: Lens' CreateUserProfile Text Source #

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

Destructuring the Response

data CreateUserProfileResponse Source #

Contains the response to a CreateUserProfile request.

See: newCreateUserProfileResponse smart constructor.

Constructors

CreateUserProfileResponse' 

Fields

Instances

Instances details
Generic CreateUserProfileResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

Associated Types

type Rep CreateUserProfileResponse :: Type -> Type #

Read CreateUserProfileResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

Show CreateUserProfileResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

NFData CreateUserProfileResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

Eq CreateUserProfileResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

type Rep CreateUserProfileResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

type Rep CreateUserProfileResponse = D1 ('MetaData "CreateUserProfileResponse" "Amazonka.OpsWorks.CreateUserProfile" "amazonka-opsworks-2.0-7XrzSD2vbuN9lVUGWMVZ7S" 'False) (C1 ('MetaCons "CreateUserProfileResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "iamUserArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateUserProfileResponse Source #

Create a value of CreateUserProfileResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateUserProfile, createUserProfileResponse_iamUserArn - The user's IAM ARN.

$sel:httpStatus:CreateUserProfileResponse', createUserProfileResponse_httpStatus - The response's http status code.

Response Lenses