Class: Aws::SecretsManager::Types::GetResourcePolicyRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::SecretsManager::Types::GetResourcePolicyRequest
- Defined in:
- gems/aws-sdk-secretsmanager/lib/aws-sdk-secretsmanager/types.rb
Overview
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#policy_name ⇒ String
The name of the resource policy to retrieve.
-
#secret_id ⇒ String
The ARN or name of the secret to retrieve the attached resource-based policy for.
Instance Attribute Details
#policy_name ⇒ String
The name of the resource policy to retrieve. If you don't specify
this field, Secrets Manager uses default. If you specify a name
other than default and no policy with that name exists, the
operation returns a ResourceNotFoundException.
1174 1175 1176 1177 1178 1179 |
# File 'gems/aws-sdk-secretsmanager/lib/aws-sdk-secretsmanager/types.rb', line 1174 class GetResourcePolicyRequest < Struct.new( :secret_id, :policy_name) SENSITIVE = [] include Aws::Structure end |
#secret_id ⇒ String
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.
1174 1175 1176 1177 1178 1179 |
# File 'gems/aws-sdk-secretsmanager/lib/aws-sdk-secretsmanager/types.rb', line 1174 class GetResourcePolicyRequest < Struct.new( :secret_id, :policy_name) SENSITIVE = [] include Aws::Structure end |