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 |
Gets a list of the policies that have an effect on the authorization behavior of the specified device when it connects to the IoT device gateway.
Requires permission to access the GetEffectivePolicies action.
Synopsis
- data GetEffectivePolicies = GetEffectivePolicies' {}
- newGetEffectivePolicies :: GetEffectivePolicies
- getEffectivePolicies_principal :: Lens' GetEffectivePolicies (Maybe Text)
- getEffectivePolicies_cognitoIdentityPoolId :: Lens' GetEffectivePolicies (Maybe Text)
- getEffectivePolicies_thingName :: Lens' GetEffectivePolicies (Maybe Text)
- data GetEffectivePoliciesResponse = GetEffectivePoliciesResponse' {}
- newGetEffectivePoliciesResponse :: Int -> GetEffectivePoliciesResponse
- getEffectivePoliciesResponse_effectivePolicies :: Lens' GetEffectivePoliciesResponse (Maybe [EffectivePolicy])
- getEffectivePoliciesResponse_httpStatus :: Lens' GetEffectivePoliciesResponse Int
Creating a Request
data GetEffectivePolicies Source #
See: newGetEffectivePolicies
smart constructor.
GetEffectivePolicies' | |
|
Instances
newGetEffectivePolicies :: GetEffectivePolicies Source #
Create a value of GetEffectivePolicies
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:principal:GetEffectivePolicies'
, getEffectivePolicies_principal
- The principal. Valid principals are CertificateArn
(arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn
(arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId
(region:id).
$sel:cognitoIdentityPoolId:GetEffectivePolicies'
, getEffectivePolicies_cognitoIdentityPoolId
- The Cognito identity pool ID.
$sel:thingName:GetEffectivePolicies'
, getEffectivePolicies_thingName
- The thing name.
Request Lenses
getEffectivePolicies_principal :: Lens' GetEffectivePolicies (Maybe Text) Source #
The principal. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
getEffectivePolicies_cognitoIdentityPoolId :: Lens' GetEffectivePolicies (Maybe Text) Source #
The Cognito identity pool ID.
getEffectivePolicies_thingName :: Lens' GetEffectivePolicies (Maybe Text) Source #
The thing name.
Destructuring the Response
data GetEffectivePoliciesResponse Source #
See: newGetEffectivePoliciesResponse
smart constructor.
GetEffectivePoliciesResponse' | |
|
Instances
newGetEffectivePoliciesResponse Source #
Create a value of GetEffectivePoliciesResponse
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:effectivePolicies:GetEffectivePoliciesResponse'
, getEffectivePoliciesResponse_effectivePolicies
- The effective policies.
$sel:httpStatus:GetEffectivePoliciesResponse'
, getEffectivePoliciesResponse_httpStatus
- The response's http status code.
Response Lenses
getEffectivePoliciesResponse_effectivePolicies :: Lens' GetEffectivePoliciesResponse (Maybe [EffectivePolicy]) Source #
The effective policies.
getEffectivePoliciesResponse_httpStatus :: Lens' GetEffectivePoliciesResponse Int Source #
The response's http status code.