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

Description

Deletes the specified version of the specified policy. You cannot delete the default version of a policy using this action. To delete the default version of a policy, use DeletePolicy. To find out which version of a policy is marked as the default version, use ListPolicyVersions.

Requires permission to access the DeletePolicyVersion action.

Synopsis

Creating a Request

data DeletePolicyVersion Source #

The input for the DeletePolicyVersion operation.

See: newDeletePolicyVersion smart constructor.

Constructors

DeletePolicyVersion' 

Fields

Instances

Instances details
Eq DeletePolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

Read DeletePolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

Show DeletePolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

Generic DeletePolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

Associated Types

type Rep DeletePolicyVersion :: Type -> Type #

NFData DeletePolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

Methods

rnf :: DeletePolicyVersion -> () #

Hashable DeletePolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

AWSRequest DeletePolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

Associated Types

type AWSResponse DeletePolicyVersion #

ToHeaders DeletePolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

ToPath DeletePolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

ToQuery DeletePolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

type Rep DeletePolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

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

Defined in Amazonka.IoT.DeletePolicyVersion

newDeletePolicyVersion Source #

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

$sel:policyVersionId:DeletePolicyVersion', deletePolicyVersion_policyVersionId - The policy version ID.

Request Lenses

Destructuring the Response

data DeletePolicyVersionResponse Source #

See: newDeletePolicyVersionResponse smart constructor.

Instances

Instances details
Eq DeletePolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

Read DeletePolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

Show DeletePolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

Generic DeletePolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

Associated Types

type Rep DeletePolicyVersionResponse :: Type -> Type #

NFData DeletePolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

type Rep DeletePolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

type Rep DeletePolicyVersionResponse = D1 ('MetaData "DeletePolicyVersionResponse" "Amazonka.IoT.DeletePolicyVersion" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "DeletePolicyVersionResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeletePolicyVersionResponse :: DeletePolicyVersionResponse Source #

Create a value of DeletePolicyVersionResponse with all optional fields omitted.

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