---
type: resource-type
title: SmResourcePolicy
description: aws resource type AWS::SecretsManager::ResourcePolicy
name: SmResourcePolicy
lexicon: aws
resource_type: AWS::SecretsManager::ResourcePolicy
---
`AWS::SecretsManager::ResourcePolicy`, a resource type of the aws lexicon.

## Properties

- `ResourcePolicy` (`string`, required): A JSON-formatted string for an AWS resource-based policy.
- `SecretId` (`string`, required): The ARN or name of the secret to attach the resource-based policy.
- `BlockPublicPolicy` (`boolean`, optional): Specifies whether to block resource-based policies that allow broad access to the secret.
- `Id` (`string`, optional): The Arn of the secret.

## Attributes

- `Id`
