amazonka-iot-2.0: Amazon IoT SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

AWSRequest DeletePolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

Associated Types

type AWSResponse DeletePolicyVersion #

Generic DeletePolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

Associated Types

type Rep DeletePolicyVersion :: Type -> Type #

Read DeletePolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

Show DeletePolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

NFData DeletePolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

Methods

rnf :: DeletePolicyVersion -> () #

Eq DeletePolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

Hashable DeletePolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

type AWSResponse 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" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "DeletePolicyVersion'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policyName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "policyVersionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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:

DeletePolicyVersion, deletePolicyVersion_policyName - The name of the policy.

DeletePolicyVersion, deletePolicyVersion_policyVersionId - The policy version ID.

Request Lenses

Destructuring the Response

data DeletePolicyVersionResponse Source #

See: newDeletePolicyVersionResponse smart constructor.

Instances

Instances details
Generic DeletePolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

Associated Types

type Rep DeletePolicyVersionResponse :: Type -> Type #

Read DeletePolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

Show DeletePolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

NFData DeletePolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IoT.DeletePolicyVersion

Eq 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" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" '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.