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

Description

Sets the specified version of the specified policy as the policy's default (operative) version. This action affects all certificates to which the policy is attached. To list the principals the policy is attached to, use the ListPrincipalPolicies action.

Requires permission to access the SetDefaultPolicyVersion action.

Synopsis

Creating a Request

data SetDefaultPolicyVersion Source #

The input for the SetDefaultPolicyVersion operation.

See: newSetDefaultPolicyVersion smart constructor.

Constructors

SetDefaultPolicyVersion' 

Fields

Instances

Instances details
Eq SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.SetDefaultPolicyVersion

Read SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.SetDefaultPolicyVersion

Show SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.SetDefaultPolicyVersion

Generic SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.SetDefaultPolicyVersion

Associated Types

type Rep SetDefaultPolicyVersion :: Type -> Type #

NFData SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.SetDefaultPolicyVersion

Methods

rnf :: SetDefaultPolicyVersion -> () #

Hashable SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.SetDefaultPolicyVersion

ToJSON SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.SetDefaultPolicyVersion

AWSRequest SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.SetDefaultPolicyVersion

ToHeaders SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.SetDefaultPolicyVersion

ToPath SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.SetDefaultPolicyVersion

ToQuery SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.SetDefaultPolicyVersion

type Rep SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IoT.SetDefaultPolicyVersion

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

Defined in Amazonka.IoT.SetDefaultPolicyVersion

newSetDefaultPolicyVersion Source #

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

$sel:policyVersionId:SetDefaultPolicyVersion', setDefaultPolicyVersion_policyVersionId - The policy version ID.

Request Lenses

Destructuring the Response

data SetDefaultPolicyVersionResponse Source #

See: newSetDefaultPolicyVersionResponse smart constructor.

Instances

Instances details
Eq SetDefaultPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IoT.SetDefaultPolicyVersion

Read SetDefaultPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IoT.SetDefaultPolicyVersion

Show SetDefaultPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IoT.SetDefaultPolicyVersion

Generic SetDefaultPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IoT.SetDefaultPolicyVersion

Associated Types

type Rep SetDefaultPolicyVersionResponse :: Type -> Type #

NFData SetDefaultPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IoT.SetDefaultPolicyVersion

type Rep SetDefaultPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IoT.SetDefaultPolicyVersion

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

newSetDefaultPolicyVersionResponse :: SetDefaultPolicyVersionResponse Source #

Create a value of SetDefaultPolicyVersionResponse with all optional fields omitted.

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