Lists the resource-based policies attached to a secret. The response contains only the names of the policies, not their contents. Secrets Manager lists
default first, followed by any other policies in alphabetical order. To get the contents of a policy, use
GetResourcePolicy. You can modify only the
default policy.
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:ListResourcePolicies. For more information, see
IAM policy actions for Secrets Manager and
Authentication and access control in Secrets Manager.
This cmdlet automatically pages all available results to the pipeline - parameters related to iteration are only needed if you want to manually control the paginated output. To disable autopagination, use -NoAutoIteration.