| 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.Rekognition.DeleteProjectPolicy
Description
Deletes an existing project policy.
To get a list of project policies attached to a project, call ListProjectPolicies. To attach a project policy to a project, call PutProjectPolicy.
Synopsis
- data DeleteProjectPolicy = DeleteProjectPolicy' {}
- newDeleteProjectPolicy :: Text -> Text -> DeleteProjectPolicy
- deleteProjectPolicy_policyRevisionId :: Lens' DeleteProjectPolicy (Maybe Text)
- deleteProjectPolicy_projectArn :: Lens' DeleteProjectPolicy Text
- deleteProjectPolicy_policyName :: Lens' DeleteProjectPolicy Text
- data DeleteProjectPolicyResponse = DeleteProjectPolicyResponse' {
- httpStatus :: Int
- newDeleteProjectPolicyResponse :: Int -> DeleteProjectPolicyResponse
- deleteProjectPolicyResponse_httpStatus :: Lens' DeleteProjectPolicyResponse Int
Creating a Request
data DeleteProjectPolicy Source #
See: newDeleteProjectPolicy smart constructor.
Constructors
| DeleteProjectPolicy' | |
Fields
| |
Instances
newDeleteProjectPolicy Source #
Arguments
| :: Text | |
| -> Text | |
| -> DeleteProjectPolicy |
Create a value of DeleteProjectPolicy 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:
DeleteProjectPolicy, deleteProjectPolicy_policyRevisionId - The ID of the project policy revision that you want to delete.
DeleteProjectPolicy, deleteProjectPolicy_projectArn - The Amazon Resource Name (ARN) of the project that the project policy
you want to delete is attached to.
DeleteProjectPolicy, deleteProjectPolicy_policyName - The name of the policy that you want to delete.
Request Lenses
deleteProjectPolicy_policyRevisionId :: Lens' DeleteProjectPolicy (Maybe Text) Source #
The ID of the project policy revision that you want to delete.
deleteProjectPolicy_projectArn :: Lens' DeleteProjectPolicy Text Source #
The Amazon Resource Name (ARN) of the project that the project policy you want to delete is attached to.
deleteProjectPolicy_policyName :: Lens' DeleteProjectPolicy Text Source #
The name of the policy that you want to delete.
Destructuring the Response
data DeleteProjectPolicyResponse Source #
See: newDeleteProjectPolicyResponse smart constructor.
Constructors
| DeleteProjectPolicyResponse' | |
Fields
| |
Instances
newDeleteProjectPolicyResponse Source #
Create a value of DeleteProjectPolicyResponse 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:DeleteProjectPolicyResponse', deleteProjectPolicyResponse_httpStatus - The response's http status code.
Response Lenses
deleteProjectPolicyResponse_httpStatus :: Lens' DeleteProjectPolicyResponse Int Source #
The response's http status code.