amazonka-iam-2.0: Amazon Identity and Access Management 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.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
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

AWSRequest 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 #

Read PutRolePermissionsBoundary Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

Show PutRolePermissionsBoundary Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

NFData PutRolePermissionsBoundary Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

Eq PutRolePermissionsBoundary Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

Hashable PutRolePermissionsBoundary Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

type AWSResponse 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" "amazonka-iam-2.0-5DxkArXx9sD3CCYYGFyGET" 'False) (C1 ('MetaCons "PutRolePermissionsBoundary'" 'PrefixI 'True) (S1 ('MetaSel ('Just "roleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "permissionsBoundary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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:

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

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
Generic PutRolePermissionsBoundaryResponse Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

Associated Types

type Rep PutRolePermissionsBoundaryResponse :: Type -> Type #

Read PutRolePermissionsBoundaryResponse Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

Show PutRolePermissionsBoundaryResponse Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

NFData PutRolePermissionsBoundaryResponse Source # 
Instance details

Defined in Amazonka.IAM.PutRolePermissionsBoundary

Eq 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" "amazonka-iam-2.0-5DxkArXx9sD3CCYYGFyGET" '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.