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

Description

Gets information about the specified policy version.

Requires permission to access the GetPolicyVersion action.

Synopsis

Creating a Request

data GetPolicyVersion Source #

The input for the GetPolicyVersion operation.

See: newGetPolicyVersion smart constructor.

Constructors

GetPolicyVersion' 

Fields

Instances

Instances details
Eq GetPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.GetPolicyVersion

Read GetPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.GetPolicyVersion

Show GetPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.GetPolicyVersion

Generic GetPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.GetPolicyVersion

Associated Types

type Rep GetPolicyVersion :: Type -> Type #

NFData GetPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.GetPolicyVersion

Methods

rnf :: GetPolicyVersion -> () #

Hashable GetPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.GetPolicyVersion

AWSRequest GetPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.GetPolicyVersion

Associated Types

type AWSResponse GetPolicyVersion #

ToHeaders GetPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.GetPolicyVersion

ToPath GetPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.GetPolicyVersion

ToQuery GetPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.GetPolicyVersion

type Rep GetPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.GetPolicyVersion

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

Defined in Amazonka.IoT.GetPolicyVersion

newGetPolicyVersion Source #

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

$sel:policyVersionId:GetPolicyVersion', getPolicyVersion_policyVersionId - The policy version ID.

Request Lenses

Destructuring the Response

data GetPolicyVersionResponse Source #

The output from the GetPolicyVersion operation.

See: newGetPolicyVersionResponse smart constructor.

Constructors

GetPolicyVersionResponse' 

Fields

Instances

Instances details
Eq GetPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IoT.GetPolicyVersion

Read GetPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IoT.GetPolicyVersion

Show GetPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IoT.GetPolicyVersion

Generic GetPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IoT.GetPolicyVersion

Associated Types

type Rep GetPolicyVersionResponse :: Type -> Type #

NFData GetPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IoT.GetPolicyVersion

type Rep GetPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IoT.GetPolicyVersion

Response Lenses

getPolicyVersionResponse_isDefaultVersion :: Lens' GetPolicyVersionResponse (Maybe Bool) Source #

Specifies whether the policy version is the default.