libZSservicesZSamazonka-codeguruprofilerZSamazonka-codeguruprofiler
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Creating a Request

data RemovePermission Source #

 The structure representing the <code>removePermissionRequest</code>.</p>

See: newRemovePermission smart constructor.

Constructors

RemovePermission' 

Fields

  • actionGroup :: 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.

  • profilingGroupName :: Text

    The name of the profiling group.

  • revisionId :: Text

    A universally unique identifier (UUID) for the revision of the resource-based policy from which you want to remove permissions.

Instances

Instances details
Eq RemovePermission Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.RemovePermission

Read RemovePermission Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.RemovePermission

Show RemovePermission Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.RemovePermission

Generic RemovePermission Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.RemovePermission

Associated Types

type Rep RemovePermission :: Type -> Type #

NFData RemovePermission Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.RemovePermission

Methods

rnf :: RemovePermission -> () #

Hashable RemovePermission Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.RemovePermission

AWSRequest RemovePermission Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.RemovePermission

Associated Types

type AWSResponse RemovePermission #

ToHeaders RemovePermission Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.RemovePermission

ToPath RemovePermission Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.RemovePermission

ToQuery RemovePermission Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.RemovePermission

type Rep RemovePermission Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.RemovePermission

type Rep RemovePermission = D1 ('MetaData "RemovePermission" "Amazonka.CodeGuruProfiler.RemovePermission" "libZSservicesZSamazonka-codeguruprofilerZSamazonka-codeguruprofiler" 'False) (C1 ('MetaCons "RemovePermission'" 'PrefixI 'True) (S1 ('MetaSel ('Just "actionGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ActionGroup) :*: (S1 ('MetaSel ('Just "profilingGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "revisionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse RemovePermission Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.RemovePermission

newRemovePermission Source #

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_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

  • httpStatus :: Int

    The response's http status code.

  • policy :: Text

    The JSON-formatted resource-based policy on the profiling group after the specified permissions were removed.

  • revisionId :: Text

    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.

Instances

Instances details
Eq RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.RemovePermission

Read RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.RemovePermission

Show RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.RemovePermission

Generic RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.RemovePermission

Associated Types

type Rep RemovePermissionResponse :: Type -> Type #

NFData RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.RemovePermission

type Rep RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.RemovePermission

type Rep RemovePermissionResponse = D1 ('MetaData "RemovePermissionResponse" "Amazonka.CodeGuruProfiler.RemovePermission" "libZSservicesZSamazonka-codeguruprofilerZSamazonka-codeguruprofiler" 'False) (C1 ('MetaCons "RemovePermissionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "policy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "revisionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newRemovePermissionResponse Source #

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_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.