| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CodeGuruProfiler.RemovePermission
Description
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.
Constructors
| RemovePermission' | |
Fields
| |
Instances
Arguments
| :: 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.
RemovePermission, removePermission_profilingGroupName - The name of the profiling group.
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.
Constructors
| RemovePermissionResponse' | |
Fields
| |
Instances
newRemovePermissionResponse Source #
Arguments
| :: 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.
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.