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

Description

Lists the versions of the specified policy and identifies the default version.

Requires permission to access the ListPolicyVersions action.

Synopsis

Creating a Request

data ListPolicyVersions Source #

The input for the ListPolicyVersions operation.

See: newListPolicyVersions smart constructor.

Constructors

ListPolicyVersions' 

Fields

Instances

Instances details
Eq ListPolicyVersions Source # 
Instance details

Defined in Amazonka.IoT.ListPolicyVersions

Read ListPolicyVersions Source # 
Instance details

Defined in Amazonka.IoT.ListPolicyVersions

Show ListPolicyVersions Source # 
Instance details

Defined in Amazonka.IoT.ListPolicyVersions

Generic ListPolicyVersions Source # 
Instance details

Defined in Amazonka.IoT.ListPolicyVersions

Associated Types

type Rep ListPolicyVersions :: Type -> Type #

NFData ListPolicyVersions Source # 
Instance details

Defined in Amazonka.IoT.ListPolicyVersions

Methods

rnf :: ListPolicyVersions -> () #

Hashable ListPolicyVersions Source # 
Instance details

Defined in Amazonka.IoT.ListPolicyVersions

AWSRequest ListPolicyVersions Source # 
Instance details

Defined in Amazonka.IoT.ListPolicyVersions

Associated Types

type AWSResponse ListPolicyVersions #

ToHeaders ListPolicyVersions Source # 
Instance details

Defined in Amazonka.IoT.ListPolicyVersions

ToPath ListPolicyVersions Source # 
Instance details

Defined in Amazonka.IoT.ListPolicyVersions

ToQuery ListPolicyVersions Source # 
Instance details

Defined in Amazonka.IoT.ListPolicyVersions

type Rep ListPolicyVersions Source # 
Instance details

Defined in Amazonka.IoT.ListPolicyVersions

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

Defined in Amazonka.IoT.ListPolicyVersions

newListPolicyVersions Source #

Create a value of ListPolicyVersions 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:ListPolicyVersions', listPolicyVersions_policyName - The policy name.

Request Lenses

Destructuring the Response

data ListPolicyVersionsResponse Source #

The output from the ListPolicyVersions operation.

See: newListPolicyVersionsResponse smart constructor.

Constructors

ListPolicyVersionsResponse' 

Fields

Instances

Instances details
Eq ListPolicyVersionsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListPolicyVersions

Read ListPolicyVersionsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListPolicyVersions

Show ListPolicyVersionsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListPolicyVersions

Generic ListPolicyVersionsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListPolicyVersions

Associated Types

type Rep ListPolicyVersionsResponse :: Type -> Type #

NFData ListPolicyVersionsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListPolicyVersions

type Rep ListPolicyVersionsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListPolicyVersions

type Rep ListPolicyVersionsResponse = D1 ('MetaData "ListPolicyVersionsResponse" "Amazonka.IoT.ListPolicyVersions" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "ListPolicyVersionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policyVersions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PolicyVersion])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newListPolicyVersionsResponse Source #

Create a value of ListPolicyVersionsResponse 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:policyVersions:ListPolicyVersionsResponse', listPolicyVersionsResponse_policyVersions - The policy versions.

$sel:httpStatus:ListPolicyVersionsResponse', listPolicyVersionsResponse_httpStatus - The response's http status code.

Response Lenses