Class: Aws::SecretsManager::Types::PutResourcePolicyRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::SecretsManager::Types::PutResourcePolicyRequest
- Includes:
- Aws::Structure
- Defined in:
- lib/aws-sdk-secretsmanager/types.rb
Overview
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#block_public_policy ⇒ Boolean
Specifies whether to block resource-based policies that allow broad access to the secret, for example those that use a wildcard for the principal.
-
#resource_policy ⇒ String
A JSON-formatted string for an Amazon Web Services resource-based policy.
-
#secret_id ⇒ String
The ARN or name of the secret to attach the resource-based policy.
Instance Attribute Details
#block_public_policy ⇒ Boolean
Specifies whether to block resource-based policies that allow broad access to the secret, for example those that use a wildcard for the principal. By default, public policies aren’t blocked.
1249 1250 1251 1252 1253 1254 1255 |
# File 'lib/aws-sdk-secretsmanager/types.rb', line 1249 class PutResourcePolicyRequest < Struct.new( :secret_id, :resource_policy, :block_public_policy) SENSITIVE = [] include Aws::Structure end |
#resource_policy ⇒ String
A JSON-formatted string for an Amazon Web Services resource-based policy. For example policies, see [Permissions policy examples].
[1]: docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_examples.html
1249 1250 1251 1252 1253 1254 1255 |
# File 'lib/aws-sdk-secretsmanager/types.rb', line 1249 class PutResourcePolicyRequest < Struct.new( :secret_id, :resource_policy, :block_public_policy) SENSITIVE = [] include Aws::Structure end |
#secret_id ⇒ String
The ARN or name of the secret to attach the resource-based policy.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See [Finding a secret from a partial ARN].
[1]: docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen
1249 1250 1251 1252 1253 1254 1255 |
# File 'lib/aws-sdk-secretsmanager/types.rb', line 1249 class PutResourcePolicyRequest < Struct.new( :secret_id, :resource_policy, :block_public_policy) SENSITIVE = [] include Aws::Structure end |