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

Description

Creates an access policy that grants the specified identity (Amazon Web Services SSO user, Amazon Web Services SSO group, or IAM user) access to the specified IoT SiteWise Monitor portal or project resource.

Synopsis

Creating a Request

data CreateAccessPolicy Source #

See: newCreateAccessPolicy smart constructor.

Constructors

CreateAccessPolicy' 

Fields

Instances

Instances details
Eq CreateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAccessPolicy

Read CreateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAccessPolicy

Show CreateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAccessPolicy

Generic CreateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAccessPolicy

Associated Types

type Rep CreateAccessPolicy :: Type -> Type #

NFData CreateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAccessPolicy

Methods

rnf :: CreateAccessPolicy -> () #

Hashable CreateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAccessPolicy

ToJSON CreateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAccessPolicy

AWSRequest CreateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAccessPolicy

Associated Types

type AWSResponse CreateAccessPolicy #

ToHeaders CreateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAccessPolicy

ToPath CreateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAccessPolicy

ToQuery CreateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAccessPolicy

type Rep CreateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAccessPolicy

type Rep CreateAccessPolicy = D1 ('MetaData "CreateAccessPolicy" "Amazonka.IoTSiteWise.CreateAccessPolicy" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "CreateAccessPolicy'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text 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 CreateAccessPolicy Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAccessPolicy

newCreateAccessPolicy Source #

Create a value of CreateAccessPolicy 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:CreateAccessPolicy', createAccessPolicy_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:tags:CreateAccessPolicy', createAccessPolicy_tags - A list of key-value pairs that contain metadata for the access policy. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide.

$sel:accessPolicyIdentity:CreateAccessPolicy', createAccessPolicy_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:CreateAccessPolicy', createAccessPolicy_accessPolicyResource - The IoT SiteWise Monitor resource for this access policy. Choose either a portal or a project.

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

Request Lenses

createAccessPolicy_clientToken :: Lens' CreateAccessPolicy (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.

createAccessPolicy_tags :: Lens' CreateAccessPolicy (Maybe (HashMap Text Text)) Source #

A list of key-value pairs that contain metadata for the access policy. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide.

createAccessPolicy_accessPolicyIdentity :: Lens' CreateAccessPolicy 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.

createAccessPolicy_accessPolicyResource :: Lens' CreateAccessPolicy Resource Source #

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

createAccessPolicy_accessPolicyPermission :: Lens' CreateAccessPolicy 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 CreateAccessPolicyResponse Source #

See: newCreateAccessPolicyResponse smart constructor.

Constructors

CreateAccessPolicyResponse' 

Fields

Instances

Instances details
Eq CreateAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAccessPolicy

Read CreateAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAccessPolicy

Show CreateAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAccessPolicy

Generic CreateAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAccessPolicy

Associated Types

type Rep CreateAccessPolicyResponse :: Type -> Type #

NFData CreateAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAccessPolicy

type Rep CreateAccessPolicyResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateAccessPolicy

type Rep CreateAccessPolicyResponse = D1 ('MetaData "CreateAccessPolicyResponse" "Amazonka.IoTSiteWise.CreateAccessPolicy" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "CreateAccessPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "accessPolicyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "accessPolicyArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateAccessPolicyResponse Source #

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

$sel:accessPolicyId:CreateAccessPolicyResponse', createAccessPolicyResponse_accessPolicyId - The ID of the access policy.

$sel:accessPolicyArn:CreateAccessPolicyResponse', createAccessPolicyResponse_accessPolicyArn - The ARN of the access policy, which has the following format.

arn:${Partition}:iotsitewise:${Region}:${Account}:access-policy/${AccessPolicyId}

Response Lenses

createAccessPolicyResponse_accessPolicyArn :: Lens' CreateAccessPolicyResponse Text Source #

The ARN of the access policy, which has the following format.

arn:${Partition}:iotsitewise:${Region}:${Account}:access-policy/${AccessPolicyId}