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

Description

Retrieves the specified inline policy document that is embedded in the specified IAM group.

Policies returned by this operation are URL-encoded compliant with RFC 3986. You can use a URL decoding method to convert the policy back to plain JSON text. For example, if you use Java, you can use the decode method of the java.net.URLDecoder utility class in the Java SDK. Other languages and SDKs provide similar functionality.

An IAM group can also have managed policies attached to it. To retrieve a managed policy document that is attached to a group, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.

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

Synopsis

Creating a Request

data GetGroupPolicy Source #

See: newGetGroupPolicy smart constructor.

Constructors

GetGroupPolicy' 

Fields

  • groupName :: Text

    The name of the group the policy is associated with.

    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: _+=,.@-

  • policyName :: Text

    The name of the policy document to get.

    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: _+=,.@-

Instances

Instances details
Eq GetGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.GetGroupPolicy

Read GetGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.GetGroupPolicy

Show GetGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.GetGroupPolicy

Generic GetGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.GetGroupPolicy

Associated Types

type Rep GetGroupPolicy :: Type -> Type #

NFData GetGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.GetGroupPolicy

Methods

rnf :: GetGroupPolicy -> () #

Hashable GetGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.GetGroupPolicy

AWSRequest GetGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.GetGroupPolicy

Associated Types

type AWSResponse GetGroupPolicy #

ToHeaders GetGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.GetGroupPolicy

ToPath GetGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.GetGroupPolicy

ToQuery GetGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.GetGroupPolicy

type Rep GetGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.GetGroupPolicy

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

Defined in Amazonka.IAM.GetGroupPolicy

newGetGroupPolicy Source #

Create a value of GetGroupPolicy 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:GetGroupPolicy', getGroupPolicy_groupName - The name of the group the policy is associated with.

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:policyName:GetGroupPolicy', getGroupPolicy_policyName - The name of the policy document to get.

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: _+=,.@-

Request Lenses

getGroupPolicy_groupName :: Lens' GetGroupPolicy Text Source #

The name of the group the policy is associated with.

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: _+=,.@-

getGroupPolicy_policyName :: Lens' GetGroupPolicy Text Source #

The name of the policy document to get.

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: _+=,.@-

Destructuring the Response

data GetGroupPolicyResponse Source #

Contains the response to a successful GetGroupPolicy request.

See: newGetGroupPolicyResponse smart constructor.

Constructors

GetGroupPolicyResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • groupName :: Text

    The group the policy is associated with.

  • policyName :: Text

    The name of the policy.

  • policyDocument :: Text

    The policy document.

    IAM stores policies in JSON format. However, resources that were created using CloudFormation templates can be formatted in YAML. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.

Instances

Instances details
Eq GetGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.GetGroupPolicy

Read GetGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.GetGroupPolicy

Show GetGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.GetGroupPolicy

Generic GetGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.GetGroupPolicy

Associated Types

type Rep GetGroupPolicyResponse :: Type -> Type #

NFData GetGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.GetGroupPolicy

Methods

rnf :: GetGroupPolicyResponse -> () #

type Rep GetGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.GetGroupPolicy

type Rep GetGroupPolicyResponse = D1 ('MetaData "GetGroupPolicyResponse" "Amazonka.IAM.GetGroupPolicy" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "GetGroupPolicyResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "groupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "policyName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "policyDocument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newGetGroupPolicyResponse Source #

Create a value of GetGroupPolicyResponse 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:httpStatus:GetGroupPolicyResponse', getGroupPolicyResponse_httpStatus - The response's http status code.

$sel:groupName:GetGroupPolicy', getGroupPolicyResponse_groupName - The group the policy is associated with.

$sel:policyName:GetGroupPolicy', getGroupPolicyResponse_policyName - The name of the policy.

$sel:policyDocument:GetGroupPolicyResponse', getGroupPolicyResponse_policyDocument - The policy document.

IAM stores policies in JSON format. However, resources that were created using CloudFormation templates can be formatted in YAML. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.

Response Lenses

getGroupPolicyResponse_groupName :: Lens' GetGroupPolicyResponse Text Source #

The group the policy is associated with.

getGroupPolicyResponse_policyDocument :: Lens' GetGroupPolicyResponse Text Source #

The policy document.

IAM stores policies in JSON format. However, resources that were created using CloudFormation templates can be formatted in YAML. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.