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.SetPermission

Description

Specifies a user's permissions. For more information, see Security and Permissions.

Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

Synopsis

Creating a Request

data SetPermission Source #

See: newSetPermission smart constructor.

Constructors

SetPermission' 

Fields

  • allowSudo :: Maybe Bool

    The user is allowed to use sudo to elevate privileges.

  • level :: Maybe Text

    The user's permission level, which must be set to one of the following strings. You cannot set your own permissions level.

    • deny
    • show
    • deploy
    • manage
    • iam_only

    For more information about the permissions associated with these levels, see Managing User Permissions.

  • allowSsh :: Maybe Bool

    The user is allowed to use SSH to communicate with the instance.

  • stackId :: Text

    The stack ID.

  • iamUserArn :: Text

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

Instances

Instances details
Eq SetPermission Source # 
Instance details

Defined in Amazonka.OpsWorks.SetPermission

Read SetPermission Source # 
Instance details

Defined in Amazonka.OpsWorks.SetPermission

Show SetPermission Source # 
Instance details

Defined in Amazonka.OpsWorks.SetPermission

Generic SetPermission Source # 
Instance details

Defined in Amazonka.OpsWorks.SetPermission

Associated Types

type Rep SetPermission :: Type -> Type #

NFData SetPermission Source # 
Instance details

Defined in Amazonka.OpsWorks.SetPermission

Methods

rnf :: SetPermission -> () #

Hashable SetPermission Source # 
Instance details

Defined in Amazonka.OpsWorks.SetPermission

ToJSON SetPermission Source # 
Instance details

Defined in Amazonka.OpsWorks.SetPermission

AWSRequest SetPermission Source # 
Instance details

Defined in Amazonka.OpsWorks.SetPermission

Associated Types

type AWSResponse SetPermission #

ToHeaders SetPermission Source # 
Instance details

Defined in Amazonka.OpsWorks.SetPermission

ToPath SetPermission Source # 
Instance details

Defined in Amazonka.OpsWorks.SetPermission

ToQuery SetPermission Source # 
Instance details

Defined in Amazonka.OpsWorks.SetPermission

type Rep SetPermission Source # 
Instance details

Defined in Amazonka.OpsWorks.SetPermission

type Rep SetPermission = D1 ('MetaData "SetPermission" "Amazonka.OpsWorks.SetPermission" "libZSservicesZSamazonka-opsworksZSamazonka-opsworks" 'False) (C1 ('MetaCons "SetPermission'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "allowSudo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "level") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "allowSsh") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "stackId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "iamUserArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse SetPermission Source # 
Instance details

Defined in Amazonka.OpsWorks.SetPermission

newSetPermission Source #

Create a value of SetPermission 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:allowSudo:SetPermission', setPermission_allowSudo - The user is allowed to use sudo to elevate privileges.

$sel:level:SetPermission', setPermission_level - The user's permission level, which must be set to one of the following strings. You cannot set your own permissions level.

  • deny
  • show
  • deploy
  • manage
  • iam_only

For more information about the permissions associated with these levels, see Managing User Permissions.

$sel:allowSsh:SetPermission', setPermission_allowSsh - The user is allowed to use SSH to communicate with the instance.

$sel:stackId:SetPermission', setPermission_stackId - The stack ID.

$sel:iamUserArn:SetPermission', setPermission_iamUserArn - The user's IAM ARN. This can also be a federated user's ARN.

Request Lenses

setPermission_allowSudo :: Lens' SetPermission (Maybe Bool) Source #

The user is allowed to use sudo to elevate privileges.

setPermission_level :: Lens' SetPermission (Maybe Text) Source #

The user's permission level, which must be set to one of the following strings. You cannot set your own permissions level.

  • deny
  • show
  • deploy
  • manage
  • iam_only

For more information about the permissions associated with these levels, see Managing User Permissions.

setPermission_allowSsh :: Lens' SetPermission (Maybe Bool) Source #

The user is allowed to use SSH to communicate with the instance.

setPermission_iamUserArn :: Lens' SetPermission Text Source #

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

Destructuring the Response

data SetPermissionResponse Source #

See: newSetPermissionResponse smart constructor.

Instances

Instances details
Eq SetPermissionResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.SetPermission

Read SetPermissionResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.SetPermission

Show SetPermissionResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.SetPermission

Generic SetPermissionResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.SetPermission

Associated Types

type Rep SetPermissionResponse :: Type -> Type #

NFData SetPermissionResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.SetPermission

Methods

rnf :: SetPermissionResponse -> () #

type Rep SetPermissionResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.SetPermission

type Rep SetPermissionResponse = D1 ('MetaData "SetPermissionResponse" "Amazonka.OpsWorks.SetPermission" "libZSservicesZSamazonka-opsworksZSamazonka-opsworks" 'False) (C1 ('MetaCons "SetPermissionResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newSetPermissionResponse :: SetPermissionResponse Source #

Create a value of SetPermissionResponse with all optional fields omitted.

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