aws.secretsmanager.get_resource_policy
Example SQL Queries
SELECT * FROMaws.secretsmanager.get_resource_policyWHERE"secret_id" = 'VALUE';Description
Retrieves the JSON text of the resource-based policy document attached to the secret. For more information about permissions policies attached to a secret, see Permissions policies attached to a secret.
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:GetResourcePolicy. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.
Table Definition
| Column Name | Column Data Type |
|---|---|
| secret_id Required Input Column The ARN or name of the secret to retrieve 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. | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| arn The ARN of the secret that the resource-based policy was retrieved for. | VARCHAR |
| name The name of the secret that the resource-based policy was retrieved for. | VARCHAR |
| resource_policy A JSON-formatted string that contains the permissions policy attached to the secret. For more information about permissions policies, see Authentication and access control for Secrets Manager. | VARCHAR |