libZSservicesZSamazonka-iotZSamazonka-iot
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.IoT.GetPolicy

Description

Gets information about the specified policy with the policy document of the default version.

Requires permission to access the GetPolicy action.

Synopsis

Creating a Request

data GetPolicy Source #

The input for the GetPolicy operation.

See: newGetPolicy smart constructor.

Constructors

GetPolicy' 

Fields

Instances

Instances details
Eq GetPolicy Source # 
Instance details

Defined in Amazonka.IoT.GetPolicy

Read GetPolicy Source # 
Instance details

Defined in Amazonka.IoT.GetPolicy

Show GetPolicy Source # 
Instance details

Defined in Amazonka.IoT.GetPolicy

Generic GetPolicy Source # 
Instance details

Defined in Amazonka.IoT.GetPolicy

Associated Types

type Rep GetPolicy :: Type -> Type #

NFData GetPolicy Source # 
Instance details

Defined in Amazonka.IoT.GetPolicy

Methods

rnf :: GetPolicy -> () #

Hashable GetPolicy Source # 
Instance details

Defined in Amazonka.IoT.GetPolicy

AWSRequest GetPolicy Source # 
Instance details

Defined in Amazonka.IoT.GetPolicy

Associated Types

type AWSResponse GetPolicy #

ToHeaders GetPolicy Source # 
Instance details

Defined in Amazonka.IoT.GetPolicy

Methods

toHeaders :: GetPolicy -> [Header] #

ToPath GetPolicy Source # 
Instance details

Defined in Amazonka.IoT.GetPolicy

ToQuery GetPolicy Source # 
Instance details

Defined in Amazonka.IoT.GetPolicy

type Rep GetPolicy Source # 
Instance details

Defined in Amazonka.IoT.GetPolicy

type Rep GetPolicy = D1 ('MetaData "GetPolicy" "Amazonka.IoT.GetPolicy" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "GetPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policyName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetPolicy Source # 
Instance details

Defined in Amazonka.IoT.GetPolicy

newGetPolicy Source #

Create a value of GetPolicy 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:policyName:GetPolicy', getPolicy_policyName - The name of the policy.

Request Lenses

getPolicy_policyName :: Lens' GetPolicy Text Source #

The name of the policy.

Destructuring the Response

data GetPolicyResponse Source #

The output from the GetPolicy operation.

See: newGetPolicyResponse smart constructor.

Constructors

GetPolicyResponse' 

Fields

Instances

Instances details
Eq GetPolicyResponse Source # 
Instance details

Defined in Amazonka.IoT.GetPolicy

Read GetPolicyResponse Source # 
Instance details

Defined in Amazonka.IoT.GetPolicy

Show GetPolicyResponse Source # 
Instance details

Defined in Amazonka.IoT.GetPolicy

Generic GetPolicyResponse Source # 
Instance details

Defined in Amazonka.IoT.GetPolicy

Associated Types

type Rep GetPolicyResponse :: Type -> Type #

NFData GetPolicyResponse Source # 
Instance details

Defined in Amazonka.IoT.GetPolicy

Methods

rnf :: GetPolicyResponse -> () #

type Rep GetPolicyResponse Source # 
Instance details

Defined in Amazonka.IoT.GetPolicy

newGetPolicyResponse Source #

Create a value of GetPolicyResponse 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:lastModifiedDate:GetPolicyResponse', getPolicyResponse_lastModifiedDate - The date the policy was last modified.

$sel:policyName:GetPolicy', getPolicyResponse_policyName - The policy name.

$sel:policyDocument:GetPolicyResponse', getPolicyResponse_policyDocument - The JSON document that describes the policy.

$sel:defaultVersionId:GetPolicyResponse', getPolicyResponse_defaultVersionId - The default policy version ID.

$sel:policyArn:GetPolicyResponse', getPolicyResponse_policyArn - The policy ARN.

$sel:creationDate:GetPolicyResponse', getPolicyResponse_creationDate - The date the policy was created.

$sel:generationId:GetPolicyResponse', getPolicyResponse_generationId - The generation ID of the policy.

$sel:httpStatus:GetPolicyResponse', getPolicyResponse_httpStatus - The response's http status code.

Response Lenses

getPolicyResponse_policyDocument :: Lens' GetPolicyResponse (Maybe Text) Source #

The JSON document that describes the policy.

getPolicyResponse_httpStatus :: Lens' GetPolicyResponse Int Source #

The response's http status code.