amazonka-rekognition-2.0: Amazon Rekognition SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Rekognition.ListProjectPolicies

Description

Gets a list of the project policies attached to a project.

To attach a project policy to a project, call PutProjectPolicy. To remove a project policy from a project, call DeleteProjectPolicy.

This operation returns paginated results.

Synopsis

Creating a Request

data ListProjectPolicies Source #

See: newListProjectPolicies smart constructor.

Constructors

ListProjectPolicies' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of results to return per paginated call. The largest value you can specify is 5. If you specify a value greater than 5, a ValidationException error occurs. The default value is 5.

  • nextToken :: Maybe Text

    If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.

  • projectArn :: Text

    The ARN of the project for which you want to list the project policies.

Instances

Instances details
ToJSON ListProjectPolicies Source # 
Instance details

Defined in Amazonka.Rekognition.ListProjectPolicies

ToHeaders ListProjectPolicies Source # 
Instance details

Defined in Amazonka.Rekognition.ListProjectPolicies

ToPath ListProjectPolicies Source # 
Instance details

Defined in Amazonka.Rekognition.ListProjectPolicies

ToQuery ListProjectPolicies Source # 
Instance details

Defined in Amazonka.Rekognition.ListProjectPolicies

AWSPager ListProjectPolicies Source # 
Instance details

Defined in Amazonka.Rekognition.ListProjectPolicies

AWSRequest ListProjectPolicies Source # 
Instance details

Defined in Amazonka.Rekognition.ListProjectPolicies

Associated Types

type AWSResponse ListProjectPolicies #

Generic ListProjectPolicies Source # 
Instance details

Defined in Amazonka.Rekognition.ListProjectPolicies

Associated Types

type Rep ListProjectPolicies :: Type -> Type #

Read ListProjectPolicies Source # 
Instance details

Defined in Amazonka.Rekognition.ListProjectPolicies

Show ListProjectPolicies Source # 
Instance details

Defined in Amazonka.Rekognition.ListProjectPolicies

NFData ListProjectPolicies Source # 
Instance details

Defined in Amazonka.Rekognition.ListProjectPolicies

Methods

rnf :: ListProjectPolicies -> () #

Eq ListProjectPolicies Source # 
Instance details

Defined in Amazonka.Rekognition.ListProjectPolicies

Hashable ListProjectPolicies Source # 
Instance details

Defined in Amazonka.Rekognition.ListProjectPolicies

type AWSResponse ListProjectPolicies Source # 
Instance details

Defined in Amazonka.Rekognition.ListProjectPolicies

type Rep ListProjectPolicies Source # 
Instance details

Defined in Amazonka.Rekognition.ListProjectPolicies

type Rep ListProjectPolicies = D1 ('MetaData "ListProjectPolicies" "Amazonka.Rekognition.ListProjectPolicies" "amazonka-rekognition-2.0-EaCrS9R3rWADqefEZvOx5B" 'False) (C1 ('MetaCons "ListProjectPolicies'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "projectArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newListProjectPolicies Source #

Create a value of ListProjectPolicies 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:maxResults:ListProjectPolicies', listProjectPolicies_maxResults - The maximum number of results to return per paginated call. The largest value you can specify is 5. If you specify a value greater than 5, a ValidationException error occurs. The default value is 5.

ListProjectPolicies, listProjectPolicies_nextToken - If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.

ListProjectPolicies, listProjectPolicies_projectArn - The ARN of the project for which you want to list the project policies.

Request Lenses

listProjectPolicies_maxResults :: Lens' ListProjectPolicies (Maybe Natural) Source #

The maximum number of results to return per paginated call. The largest value you can specify is 5. If you specify a value greater than 5, a ValidationException error occurs. The default value is 5.

listProjectPolicies_nextToken :: Lens' ListProjectPolicies (Maybe Text) Source #

If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.

listProjectPolicies_projectArn :: Lens' ListProjectPolicies Text Source #

The ARN of the project for which you want to list the project policies.

Destructuring the Response

data ListProjectPoliciesResponse Source #

See: newListProjectPoliciesResponse smart constructor.

Constructors

ListProjectPoliciesResponse' 

Fields

Instances

Instances details
Generic ListProjectPoliciesResponse Source # 
Instance details

Defined in Amazonka.Rekognition.ListProjectPolicies

Associated Types

type Rep ListProjectPoliciesResponse :: Type -> Type #

Read ListProjectPoliciesResponse Source # 
Instance details

Defined in Amazonka.Rekognition.ListProjectPolicies

Show ListProjectPoliciesResponse Source # 
Instance details

Defined in Amazonka.Rekognition.ListProjectPolicies

NFData ListProjectPoliciesResponse Source # 
Instance details

Defined in Amazonka.Rekognition.ListProjectPolicies

Eq ListProjectPoliciesResponse Source # 
Instance details

Defined in Amazonka.Rekognition.ListProjectPolicies

type Rep ListProjectPoliciesResponse Source # 
Instance details

Defined in Amazonka.Rekognition.ListProjectPolicies

type Rep ListProjectPoliciesResponse = D1 ('MetaData "ListProjectPoliciesResponse" "Amazonka.Rekognition.ListProjectPolicies" "amazonka-rekognition-2.0-EaCrS9R3rWADqefEZvOx5B" 'False) (C1 ('MetaCons "ListProjectPoliciesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "projectPolicies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ProjectPolicy])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListProjectPoliciesResponse Source #

Create a value of ListProjectPoliciesResponse 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:

ListProjectPolicies, listProjectPoliciesResponse_nextToken - If the response is truncated, Amazon Rekognition returns this token that you can use in the subsequent request to retrieve the next set of project policies.

$sel:projectPolicies:ListProjectPoliciesResponse', listProjectPoliciesResponse_projectPolicies - A list of project policies attached to the project.

$sel:httpStatus:ListProjectPoliciesResponse', listProjectPoliciesResponse_httpStatus - The response's http status code.

Response Lenses

listProjectPoliciesResponse_nextToken :: Lens' ListProjectPoliciesResponse (Maybe Text) Source #

If the response is truncated, Amazon Rekognition returns this token that you can use in the subsequent request to retrieve the next set of project policies.