Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Deletes the resource-based permission policy attached to the secret.
Minimum permissions
To run this command, you must have the following permissions:
- secretsmanager:DeleteResourcePolicy
Related operations
- To attach a resource policy to a secret, use PutResourcePolicy.
- To retrieve the current resource-based policy attached to a secret, use GetResourcePolicy.
- To list all of the currently available secrets, use ListSecrets.
Synopsis
- data DeleteResourcePolicy = DeleteResourcePolicy' {}
- newDeleteResourcePolicy :: Text -> DeleteResourcePolicy
- deleteResourcePolicy_secretId :: Lens' DeleteResourcePolicy Text
- data DeleteResourcePolicyResponse = DeleteResourcePolicyResponse' {}
- newDeleteResourcePolicyResponse :: Int -> DeleteResourcePolicyResponse
- deleteResourcePolicyResponse_arn :: Lens' DeleteResourcePolicyResponse (Maybe Text)
- deleteResourcePolicyResponse_name :: Lens' DeleteResourcePolicyResponse (Maybe Text)
- deleteResourcePolicyResponse_httpStatus :: Lens' DeleteResourcePolicyResponse Int
Creating a Request
data DeleteResourcePolicy Source #
See: newDeleteResourcePolicy
smart constructor.
Instances
newDeleteResourcePolicy Source #
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:secretId:DeleteResourcePolicy'
, deleteResourcePolicy_secretId
- Specifies the secret that you want to delete the attached resource-based
policy for. You can specify either the Amazon Resource Name (ARN) or the
friendly name of the secret.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.
Request Lenses
deleteResourcePolicy_secretId :: Lens' DeleteResourcePolicy Text Source #
Specifies the secret that you want to delete the attached resource-based policy for. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.
Destructuring the Response
data DeleteResourcePolicyResponse Source #
See: newDeleteResourcePolicyResponse
smart constructor.
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:arn:DeleteResourcePolicyResponse'
, deleteResourcePolicyResponse_arn
- The ARN of the secret that the resource-based policy was deleted for.
$sel:name:DeleteResourcePolicyResponse'
, deleteResourcePolicyResponse_name
- The friendly name of the secret that the resource-based policy was
deleted for.
$sel:httpStatus:DeleteResourcePolicyResponse'
, deleteResourcePolicyResponse_httpStatus
- The response's http status code.
Response Lenses
deleteResourcePolicyResponse_arn :: Lens' DeleteResourcePolicyResponse (Maybe Text) Source #
The ARN of the secret that the resource-based policy was deleted for.
deleteResourcePolicyResponse_name :: Lens' DeleteResourcePolicyResponse (Maybe Text) Source #
The friendly name of the secret that the resource-based policy was deleted for.
deleteResourcePolicyResponse_httpStatus :: Lens' DeleteResourcePolicyResponse Int Source #
The response's http status code.