Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data CreateAccessPolicy = CreateAccessPolicy' {}
- newCreateAccessPolicy :: Identity -> Resource -> Permission -> CreateAccessPolicy
- createAccessPolicy_clientToken :: Lens' CreateAccessPolicy (Maybe Text)
- createAccessPolicy_tags :: Lens' CreateAccessPolicy (Maybe (HashMap Text Text))
- createAccessPolicy_accessPolicyIdentity :: Lens' CreateAccessPolicy Identity
- createAccessPolicy_accessPolicyResource :: Lens' CreateAccessPolicy Resource
- createAccessPolicy_accessPolicyPermission :: Lens' CreateAccessPolicy Permission
- data CreateAccessPolicyResponse = CreateAccessPolicyResponse' {}
- newCreateAccessPolicyResponse :: Int -> Text -> Text -> CreateAccessPolicyResponse
- createAccessPolicyResponse_httpStatus :: Lens' CreateAccessPolicyResponse Int
- createAccessPolicyResponse_accessPolicyId :: Lens' CreateAccessPolicyResponse Text
- createAccessPolicyResponse_accessPolicyArn :: Lens' CreateAccessPolicyResponse Text
Creating a Request
data CreateAccessPolicy Source #
See: newCreateAccessPolicy
smart constructor.
CreateAccessPolicy' | |
|
Instances
newCreateAccessPolicy Source #
:: Identity | |
-> Resource | |
-> Permission | |
-> CreateAccessPolicy |
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.
CreateAccessPolicyResponse' | |
|
Instances
newCreateAccessPolicyResponse Source #
:: Int | |
-> Text | |
-> Text | |
-> CreateAccessPolicyResponse |
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_httpStatus :: Lens' CreateAccessPolicyResponse Int Source #
The response's http status code.
createAccessPolicyResponse_accessPolicyId :: Lens' CreateAccessPolicyResponse Text Source #
The ID of the access policy.
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}