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 |
Returns the JSON-formatted resource-based policy on a profiling group.
Synopsis
- data GetPolicy = GetPolicy' {}
- newGetPolicy :: Text -> GetPolicy
- getPolicy_profilingGroupName :: Lens' GetPolicy Text
- data GetPolicyResponse = GetPolicyResponse' {
- httpStatus :: Int
- policy :: Text
- revisionId :: Text
- newGetPolicyResponse :: Int -> Text -> Text -> GetPolicyResponse
- getPolicyResponse_httpStatus :: Lens' GetPolicyResponse Int
- getPolicyResponse_policy :: Lens' GetPolicyResponse Text
- getPolicyResponse_revisionId :: Lens' GetPolicyResponse Text
Creating a Request
The structure representing the getPolicyRequest
.
See: newGetPolicy
smart constructor.
GetPolicy' | |
|
Instances
Create a value of GetPolicy
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:profilingGroupName:GetPolicy'
, getPolicy_profilingGroupName
- The name of the profiling group.
Request Lenses
Destructuring the Response
data GetPolicyResponse Source #
The structure representing the getPolicyResponse
.
See: newGetPolicyResponse
smart constructor.
GetPolicyResponse' | |
|
Instances
:: Int | |
-> Text | |
-> Text | |
-> GetPolicyResponse |
Create a value of GetPolicyResponse
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:GetPolicyResponse'
, getPolicyResponse_httpStatus
- The response's http status code.
$sel:policy:GetPolicyResponse'
, getPolicyResponse_policy
- The JSON-formatted resource-based policy attached to the
ProfilingGroup
.
$sel:revisionId:GetPolicyResponse'
, getPolicyResponse_revisionId
- A unique identifier for the current revision of the returned policy.
Response Lenses
getPolicyResponse_httpStatus :: Lens' GetPolicyResponse Int Source #
The response's http status code.
getPolicyResponse_policy :: Lens' GetPolicyResponse Text Source #
The JSON-formatted resource-based policy attached to the
ProfilingGroup
.
getPolicyResponse_revisionId :: Lens' GetPolicyResponse Text Source #
A unique identifier for the current revision of the returned policy.