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

Description

Returns the JSON-formatted resource-based policy on a profiling group.

Synopsis

Creating a Request

data GetPolicy Source #

The structure representing the getPolicyRequest.

See: newGetPolicy smart constructor.

Constructors

GetPolicy' 

Fields

Instances

Instances details
Eq GetPolicy Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.GetPolicy

Read GetPolicy Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.GetPolicy

Show GetPolicy Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.GetPolicy

Generic GetPolicy Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.GetPolicy

Associated Types

type Rep GetPolicy :: Type -> Type #

NFData GetPolicy Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.GetPolicy

Methods

rnf :: GetPolicy -> () #

Hashable GetPolicy Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.GetPolicy

AWSRequest GetPolicy Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.GetPolicy

Associated Types

type AWSResponse GetPolicy #

ToHeaders GetPolicy Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.GetPolicy

Methods

toHeaders :: GetPolicy -> [Header] #

ToPath GetPolicy Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.GetPolicy

ToQuery GetPolicy Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.GetPolicy

type Rep GetPolicy Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.GetPolicy

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

Defined in Amazonka.CodeGuruProfiler.GetPolicy

newGetPolicy Source #

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

getPolicy_profilingGroupName :: Lens' GetPolicy Text Source #

The name of the profiling group.

Destructuring the Response

data GetPolicyResponse Source #

The structure representing the getPolicyResponse.

See: newGetPolicyResponse smart constructor.

Constructors

GetPolicyResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • policy :: Text

    The JSON-formatted resource-based policy attached to the ProfilingGroup.

  • revisionId :: Text

    A unique identifier for the current revision of the returned policy.

Instances

Instances details
Eq GetPolicyResponse Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.GetPolicy

Read GetPolicyResponse Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.GetPolicy

Show GetPolicyResponse Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.GetPolicy

Generic GetPolicyResponse Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.GetPolicy

Associated Types

type Rep GetPolicyResponse :: Type -> Type #

NFData GetPolicyResponse Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.GetPolicy

Methods

rnf :: GetPolicyResponse -> () #

type Rep GetPolicyResponse Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.GetPolicy

type Rep GetPolicyResponse = D1 ('MetaData "GetPolicyResponse" "Amazonka.CodeGuruProfiler.GetPolicy" "libZSservicesZSamazonka-codeguruprofilerZSamazonka-codeguruprofiler" 'False) (C1 ('MetaCons "GetPolicyResponse'" '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))))

newGetPolicyResponse Source #

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.