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 |
Removes permissions from a profiling group's resource-based policy that
are provided using an action group. The one supported action group that
can be removed is agentPermission
which grants ConfigureAgent
and
PostAgent
permissions. For more information, see
Resource-based policies in CodeGuru Profiler
in the Amazon CodeGuru Profiler User Guide,
ConfigureAgent
, and
PostAgentProfile
.
Synopsis
- data RemovePermission = RemovePermission' {}
- newRemovePermission :: ActionGroup -> Text -> Text -> RemovePermission
- removePermission_actionGroup :: Lens' RemovePermission ActionGroup
- removePermission_profilingGroupName :: Lens' RemovePermission Text
- removePermission_revisionId :: Lens' RemovePermission Text
- data RemovePermissionResponse = RemovePermissionResponse' {
- httpStatus :: Int
- policy :: Text
- revisionId :: Text
- newRemovePermissionResponse :: Int -> Text -> Text -> RemovePermissionResponse
- removePermissionResponse_httpStatus :: Lens' RemovePermissionResponse Int
- removePermissionResponse_policy :: Lens' RemovePermissionResponse Text
- removePermissionResponse_revisionId :: Lens' RemovePermissionResponse Text
Creating a Request
data RemovePermission Source #
The structure representing the <code>removePermissionRequest</code>.</p>
See: newRemovePermission
smart constructor.
RemovePermission' | |
|
Instances
:: ActionGroup | |
-> Text | |
-> Text | |
-> RemovePermission |
Create a value of RemovePermission
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:actionGroup:RemovePermission'
, removePermission_actionGroup
- Specifies an action group that contains the permissions to remove from a
profiling group's resource-based policy. One action group is supported,
agentPermissions
, which grants ConfigureAgent
and PostAgentProfile
permissions.
$sel:profilingGroupName:RemovePermission'
, removePermission_profilingGroupName
- The name of the profiling group.
$sel:revisionId:RemovePermission'
, removePermission_revisionId
- A universally unique identifier (UUID) for the revision of the
resource-based policy from which you want to remove permissions.
Request Lenses
removePermission_actionGroup :: Lens' RemovePermission ActionGroup Source #
Specifies an action group that contains the permissions to remove from a
profiling group's resource-based policy. One action group is supported,
agentPermissions
, which grants ConfigureAgent
and PostAgentProfile
permissions.
removePermission_profilingGroupName :: Lens' RemovePermission Text Source #
The name of the profiling group.
removePermission_revisionId :: Lens' RemovePermission Text Source #
A universally unique identifier (UUID) for the revision of the resource-based policy from which you want to remove permissions.
Destructuring the Response
data RemovePermissionResponse Source #
The structure representing the removePermissionResponse
.
See: newRemovePermissionResponse
smart constructor.
RemovePermissionResponse' | |
|
Instances
newRemovePermissionResponse Source #
:: Int | |
-> Text | |
-> Text | |
-> RemovePermissionResponse |
Create a value of RemovePermissionResponse
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:RemovePermissionResponse'
, removePermissionResponse_httpStatus
- The response's http status code.
$sel:policy:RemovePermissionResponse'
, removePermissionResponse_policy
- The JSON-formatted resource-based policy on the profiling group after
the specified permissions were removed.
$sel:revisionId:RemovePermission'
, removePermissionResponse_revisionId
- A universally unique identifier (UUID) for the revision of the
resource-based policy after the specified permissions were removed. The
updated JSON-formatted policy is in the policy
element of the
response.
Response Lenses
removePermissionResponse_httpStatus :: Lens' RemovePermissionResponse Int Source #
The response's http status code.
removePermissionResponse_policy :: Lens' RemovePermissionResponse Text Source #
The JSON-formatted resource-based policy on the profiling group after the specified permissions were removed.
removePermissionResponse_revisionId :: Lens' RemovePermissionResponse Text Source #
A universally unique identifier (UUID) for the revision of the
resource-based policy after the specified permissions were removed. The
updated JSON-formatted policy is in the policy
element of the
response.