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

Description

Attaches the specified managed policy to the specified IAM group.

You use this operation to attach a managed policy to a group. To embed an inline policy in a group, use PutGroupPolicy.

As a best practice, you can validate your IAM policies. To learn more, see Validating IAM policies in the IAM User Guide.

For more information about policies, see Managed policies and inline policies in the IAM User Guide.

Synopsis

Creating a Request

data AttachGroupPolicy Source #

See: newAttachGroupPolicy smart constructor.

Constructors

AttachGroupPolicy' 

Fields

  • groupName :: Text

    The name (friendly name, not ARN) of the group to attach the policy to.

    This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

  • policyArn :: Text

    The Amazon Resource Name (ARN) of the IAM policy you want to attach.

    For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.

Instances

Instances details
Eq AttachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.AttachGroupPolicy

Read AttachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.AttachGroupPolicy

Show AttachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.AttachGroupPolicy

Generic AttachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.AttachGroupPolicy

Associated Types

type Rep AttachGroupPolicy :: Type -> Type #

NFData AttachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.AttachGroupPolicy

Methods

rnf :: AttachGroupPolicy -> () #

Hashable AttachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.AttachGroupPolicy

AWSRequest AttachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.AttachGroupPolicy

Associated Types

type AWSResponse AttachGroupPolicy #

ToHeaders AttachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.AttachGroupPolicy

ToPath AttachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.AttachGroupPolicy

ToQuery AttachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.AttachGroupPolicy

type Rep AttachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.AttachGroupPolicy

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

Defined in Amazonka.IAM.AttachGroupPolicy

newAttachGroupPolicy Source #

Create a value of AttachGroupPolicy 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:groupName:AttachGroupPolicy', attachGroupPolicy_groupName - The name (friendly name, not ARN) of the group to attach the policy to.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

$sel:policyArn:AttachGroupPolicy', attachGroupPolicy_policyArn - The Amazon Resource Name (ARN) of the IAM policy you want to attach.

For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.

Request Lenses

attachGroupPolicy_groupName :: Lens' AttachGroupPolicy Text Source #

The name (friendly name, not ARN) of the group to attach the policy to.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

attachGroupPolicy_policyArn :: Lens' AttachGroupPolicy Text Source #

The Amazon Resource Name (ARN) of the IAM policy you want to attach.

For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.

Destructuring the Response

data AttachGroupPolicyResponse Source #

See: newAttachGroupPolicyResponse smart constructor.

Instances

Instances details
Eq AttachGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.AttachGroupPolicy

Read AttachGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.AttachGroupPolicy

Show AttachGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.AttachGroupPolicy

Generic AttachGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.AttachGroupPolicy

Associated Types

type Rep AttachGroupPolicyResponse :: Type -> Type #

NFData AttachGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.AttachGroupPolicy

type Rep AttachGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.AttachGroupPolicy

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

newAttachGroupPolicyResponse :: AttachGroupPolicyResponse Source #

Create a value of AttachGroupPolicyResponse with all optional fields omitted.

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