| 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.SSM.DeleteResourcePolicy
Description
Deletes a Systems Manager resource policy. A resource policy helps you
to define the IAM entity (for example, an Amazon Web Services account)
that can manage your Systems Manager resources. Currently,
OpsItemGroup is the only resource that supports Systems Manager
resource policies. The resource policy for OpsItemGroup enables Amazon
Web Services accounts to view and interact with OpsCenter operational
work items (OpsItems).
Synopsis
- data DeleteResourcePolicy = DeleteResourcePolicy' {
- resourceArn :: Text
- policyId :: Text
- policyHash :: Text
- newDeleteResourcePolicy :: Text -> Text -> Text -> DeleteResourcePolicy
- deleteResourcePolicy_resourceArn :: Lens' DeleteResourcePolicy Text
- deleteResourcePolicy_policyId :: Lens' DeleteResourcePolicy Text
- deleteResourcePolicy_policyHash :: Lens' DeleteResourcePolicy Text
- data DeleteResourcePolicyResponse = DeleteResourcePolicyResponse' {
- httpStatus :: Int
- newDeleteResourcePolicyResponse :: Int -> DeleteResourcePolicyResponse
- deleteResourcePolicyResponse_httpStatus :: Lens' DeleteResourcePolicyResponse Int
Creating a Request
data DeleteResourcePolicy Source #
See: newDeleteResourcePolicy smart constructor.
Constructors
| DeleteResourcePolicy' | |
Fields
| |
Instances
newDeleteResourcePolicy Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> DeleteResourcePolicy |
Create a value of DeleteResourcePolicy 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:resourceArn:DeleteResourcePolicy', deleteResourcePolicy_resourceArn - Amazon Resource Name (ARN) of the resource to which the policies are
attached.
DeleteResourcePolicy, deleteResourcePolicy_policyId - The policy ID.
DeleteResourcePolicy, deleteResourcePolicy_policyHash - ID of the current policy version. The hash helps to prevent multiple
calls from attempting to overwrite a policy.
Request Lenses
deleteResourcePolicy_resourceArn :: Lens' DeleteResourcePolicy Text Source #
Amazon Resource Name (ARN) of the resource to which the policies are attached.
deleteResourcePolicy_policyId :: Lens' DeleteResourcePolicy Text Source #
The policy ID.
deleteResourcePolicy_policyHash :: Lens' DeleteResourcePolicy Text Source #
ID of the current policy version. The hash helps to prevent multiple calls from attempting to overwrite a policy.
Destructuring the Response
data DeleteResourcePolicyResponse Source #
See: newDeleteResourcePolicyResponse smart constructor.
Constructors
| DeleteResourcePolicyResponse' | |
Fields
| |
Instances
newDeleteResourcePolicyResponse Source #
Create a value of DeleteResourcePolicyResponse 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:DeleteResourcePolicyResponse', deleteResourcePolicyResponse_httpStatus - The response's http status code.
Response Lenses
deleteResourcePolicyResponse_httpStatus :: Lens' DeleteResourcePolicyResponse Int Source #
The response's http status code.