libZSservicesZSamazonka-opsworksZSamazonka-opsworks
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

Read CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

Show CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

Generic CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

Associated Types

type Rep CreateUserProfile :: Type -> Type #

NFData CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

Methods

rnf :: CreateUserProfile -> () #

Hashable CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

ToJSON CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

AWSRequest CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

Associated Types

type AWSResponse 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

type Rep CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

type Rep CreateUserProfile = D1 ('MetaData "CreateUserProfile" "Amazonka.OpsWorks.CreateUserProfile" "libZSservicesZSamazonka-opsworksZSamazonka-opsworks" '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))))
type AWSResponse CreateUserProfile Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

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:

$sel:allowSelfManagement: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.

$sel:sshPublicKey:CreateUserProfile', createUserProfile_sshPublicKey - The user's public SSH key.

$sel:sshUsername: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.

$sel:iamUserArn: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
Eq CreateUserProfileResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

Read CreateUserProfileResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

Show CreateUserProfileResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

Generic CreateUserProfileResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateUserProfile

Associated Types

type Rep CreateUserProfileResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-opsworksZSamazonka-opsworks" '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:

$sel:iamUserArn:CreateUserProfile', createUserProfileResponse_iamUserArn - The user's IAM ARN.

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

Response Lenses