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 |
Deletes the resource-based permission policy attached to the secret. To attach a policy to a secret, use PutResourcePolicy.
Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see Logging Secrets Manager events with CloudTrail.
Required permissions: secretsmanager:DeleteResourcePolicy
. For
more information, see
IAM policy actions for Secrets Manager
and
Authentication and access control in Secrets Manager.
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.
DeleteResourcePolicy' | |
|
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
- The ARN or name of the secret to delete the attached resource-based
policy for.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
Request Lenses
deleteResourcePolicy_secretId :: Lens' DeleteResourcePolicy Text Source #
The ARN or name of the secret to delete the attached resource-based policy for.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from 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:
DeleteResourcePolicyResponse
, deleteResourcePolicyResponse_arn
- The ARN of the secret that the resource-based policy was deleted for.
DeleteResourcePolicyResponse
, deleteResourcePolicyResponse_name
- The 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 name of the secret that the resource-based policy was deleted for.
deleteResourcePolicyResponse_httpStatus :: Lens' DeleteResourcePolicyResponse Int Source #
The response's http status code.