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.Types.PolicyVersion

Description

 
Synopsis

Documentation

data PolicyVersion Source #

Describes a policy version.

See: newPolicyVersion smart constructor.

Constructors

PolicyVersion' 

Fields

Instances

Instances details
FromJSON PolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.Types.PolicyVersion

Generic PolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.Types.PolicyVersion

Associated Types

type Rep PolicyVersion :: Type -> Type #

Read PolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.Types.PolicyVersion

Show PolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.Types.PolicyVersion

NFData PolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.Types.PolicyVersion

Methods

rnf :: PolicyVersion -> () #

Eq PolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.Types.PolicyVersion

Hashable PolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.Types.PolicyVersion

type Rep PolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.Types.PolicyVersion

type Rep PolicyVersion = D1 ('MetaData "PolicyVersion" "Amazonka.IoT.Types.PolicyVersion" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "PolicyVersion'" 'PrefixI 'True) (S1 ('MetaSel ('Just "createDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "isDefaultVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "versionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newPolicyVersion :: PolicyVersion Source #

Create a value of PolicyVersion 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:createDate:PolicyVersion', policyVersion_createDate - The date and time the policy was created.

$sel:isDefaultVersion:PolicyVersion', policyVersion_isDefaultVersion - Specifies whether the policy version is the default.

$sel:versionId:PolicyVersion', policyVersion_versionId - The policy version ID.

policyVersion_createDate :: Lens' PolicyVersion (Maybe UTCTime) Source #

The date and time the policy was created.

policyVersion_isDefaultVersion :: Lens' PolicyVersion (Maybe Bool) Source #

Specifies whether the policy version is the default.