libZSservicesZSamazonka-iamZSamazonka-iam
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.IAM.PutRolePermissionsBoundary

Description

Adds or updates the policy that is specified as the IAM role's permissions boundary. You can use an Amazon Web Services managed policy or a customer managed policy to set the boundary for a role. Use the boundary to control the maximum permissions that the role can have. Setting a permissions boundary is an advanced feature that can affect the permissions for the role.

You cannot set the boundary for a service-linked role.

Policies used as permissions boundaries do not provide permissions. You must also attach a permissions policy to the role. To learn how the effective permissions for a role are evaluated, see IAM JSON policy evaluation logic in the IAM User Guide.

Synopsis

Creating a Request

data PutRolePermissionsBoundary Source #

See: newPutRolePermissionsBoundary smart constructor.

Constructors

PutRolePermissionsBoundary' 

Fields

  • roleName :: Text

    The name (friendly name, not ARN) of the IAM role for which you want to set the permissions boundary.

  • permissionsBoundary :: Text

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

Instances

Instances details
Eq PutRolePermissionsBoundary Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

Read PutRolePermissionsBoundary Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

Show PutRolePermissionsBoundary Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

Generic PutRolePermissionsBoundary Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

Associated Types

type Rep PutRolePermissionsBoundary :: Type -> Type #

NFData PutRolePermissionsBoundary Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

Hashable PutRolePermissionsBoundary Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

AWSRequest PutRolePermissionsBoundary Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

ToHeaders PutRolePermissionsBoundary Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

ToPath PutRolePermissionsBoundary Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

ToQuery PutRolePermissionsBoundary Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

type Rep PutRolePermissionsBoundary Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

type Rep PutRolePermissionsBoundary = D1 ('MetaData "PutRolePermissionsBoundary" "Amazonka.IAM.PutRolePermissionsBoundary" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "PutRolePermissionsBoundary'" 'PrefixI 'True) (S1 ('MetaSel ('Just "roleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "permissionsBoundary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse PutRolePermissionsBoundary Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

newPutRolePermissionsBoundary Source #

Create a value of PutRolePermissionsBoundary 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:roleName:PutRolePermissionsBoundary', putRolePermissionsBoundary_roleName - The name (friendly name, not ARN) of the IAM role for which you want to set the permissions boundary.

$sel:permissionsBoundary:PutRolePermissionsBoundary', putRolePermissionsBoundary_permissionsBoundary - The ARN of the policy that is used to set the permissions boundary for the role.

Request Lenses

putRolePermissionsBoundary_roleName :: Lens' PutRolePermissionsBoundary Text Source #

The name (friendly name, not ARN) of the IAM role for which you want to set the permissions boundary.

putRolePermissionsBoundary_permissionsBoundary :: Lens' PutRolePermissionsBoundary Text Source #

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

Destructuring the Response

data PutRolePermissionsBoundaryResponse Source #

Instances

Instances details
Eq PutRolePermissionsBoundaryResponse Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

Read PutRolePermissionsBoundaryResponse Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

Show PutRolePermissionsBoundaryResponse Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

Generic PutRolePermissionsBoundaryResponse Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

Associated Types

type Rep PutRolePermissionsBoundaryResponse :: Type -> Type #

NFData PutRolePermissionsBoundaryResponse Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

type Rep PutRolePermissionsBoundaryResponse Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

type Rep PutRolePermissionsBoundaryResponse = D1 ('MetaData "PutRolePermissionsBoundaryResponse" "Amazonka.IAM.PutRolePermissionsBoundary" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "PutRolePermissionsBoundaryResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newPutRolePermissionsBoundaryResponse :: PutRolePermissionsBoundaryResponse Source #

Create a value of PutRolePermissionsBoundaryResponse with all optional fields omitted.

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