libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise
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.IoTSiteWise.UpdateAccessPolicy

Description

Updates an existing access policy that specifies an identity's access to an IoT SiteWise Monitor portal or project resource.

Synopsis

Creating a Request

data UpdateAccessPolicy Source #

See: newUpdateAccessPolicy smart constructor.

Constructors

UpdateAccessPolicy' 

Fields

  • clientToken :: Maybe Text

    A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

  • accessPolicyId :: Text

    The ID of the access policy.

  • accessPolicyIdentity :: Identity

    The identity for this access policy. Choose an Amazon Web Services SSO user, an Amazon Web Services SSO group, or an IAM user.

  • accessPolicyResource :: Resource

    The IoT SiteWise Monitor resource for this access policy. Choose either a portal or a project.

  • accessPolicyPermission :: Permission

    The permission level for this access policy. Note that a project ADMINISTRATOR is also known as a project owner.

Instances

Instances details
Eq UpdateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAccessPolicy

Read UpdateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAccessPolicy

Show UpdateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAccessPolicy

Generic UpdateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAccessPolicy

Associated Types

type Rep UpdateAccessPolicy :: Type -> Type #

NFData UpdateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAccessPolicy

Methods

rnf :: UpdateAccessPolicy -> () #

Hashable UpdateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAccessPolicy

ToJSON UpdateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAccessPolicy

AWSRequest UpdateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAccessPolicy

Associated Types

type AWSResponse UpdateAccessPolicy #

ToHeaders UpdateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAccessPolicy

ToPath UpdateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAccessPolicy

ToQuery UpdateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAccessPolicy

type Rep UpdateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAccessPolicy

type Rep UpdateAccessPolicy = D1 ('MetaData "UpdateAccessPolicy" "Amazonka.IoTSiteWise.UpdateAccessPolicy" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "UpdateAccessPolicy'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "accessPolicyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "accessPolicyIdentity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Identity) :*: (S1 ('MetaSel ('Just "accessPolicyResource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Resource) :*: S1 ('MetaSel ('Just "accessPolicyPermission") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Permission)))))
type AWSResponse UpdateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAccessPolicy

newUpdateAccessPolicy Source #

Create a value of UpdateAccessPolicy 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:clientToken:UpdateAccessPolicy', updateAccessPolicy_clientToken - A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

$sel:accessPolicyId:UpdateAccessPolicy', updateAccessPolicy_accessPolicyId - The ID of the access policy.

$sel:accessPolicyIdentity:UpdateAccessPolicy', updateAccessPolicy_accessPolicyIdentity - The identity for this access policy. Choose an Amazon Web Services SSO user, an Amazon Web Services SSO group, or an IAM user.

$sel:accessPolicyResource:UpdateAccessPolicy', updateAccessPolicy_accessPolicyResource - The IoT SiteWise Monitor resource for this access policy. Choose either a portal or a project.

$sel:accessPolicyPermission:UpdateAccessPolicy', updateAccessPolicy_accessPolicyPermission - The permission level for this access policy. Note that a project ADMINISTRATOR is also known as a project owner.

Request Lenses

updateAccessPolicy_clientToken :: Lens' UpdateAccessPolicy (Maybe Text) Source #

A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

updateAccessPolicy_accessPolicyIdentity :: Lens' UpdateAccessPolicy Identity Source #

The identity for this access policy. Choose an Amazon Web Services SSO user, an Amazon Web Services SSO group, or an IAM user.

updateAccessPolicy_accessPolicyResource :: Lens' UpdateAccessPolicy Resource Source #

The IoT SiteWise Monitor resource for this access policy. Choose either a portal or a project.

updateAccessPolicy_accessPolicyPermission :: Lens' UpdateAccessPolicy Permission Source #

The permission level for this access policy. Note that a project ADMINISTRATOR is also known as a project owner.

Destructuring the Response

data UpdateAccessPolicyResponse Source #

See: newUpdateAccessPolicyResponse smart constructor.

Constructors

UpdateAccessPolicyResponse' 

Fields

Instances

Instances details
Eq UpdateAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAccessPolicy

Read UpdateAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAccessPolicy

Show UpdateAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAccessPolicy

Generic UpdateAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAccessPolicy

Associated Types

type Rep UpdateAccessPolicyResponse :: Type -> Type #

NFData UpdateAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAccessPolicy

type Rep UpdateAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.UpdateAccessPolicy

type Rep UpdateAccessPolicyResponse = D1 ('MetaData "UpdateAccessPolicyResponse" "Amazonka.IoTSiteWise.UpdateAccessPolicy" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "UpdateAccessPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateAccessPolicyResponse Source #

Create a value of UpdateAccessPolicyResponse 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:httpStatus:UpdateAccessPolicyResponse', updateAccessPolicyResponse_httpStatus - The response's http status code.

Response Lenses