Class: Aws::SecretsManager::Types::ValidateResourcePolicyRequest

Inherits:
Struct
  • Object
show all
Includes:
Aws::Structure
Defined in:
lib/aws-sdk-secretsmanager/types.rb

Overview

Note:

When making an API call, you may pass ValidateResourcePolicyRequest data as a hash:

{
  secret_id: "SecretIdType",
  resource_policy: "NonEmptyResourcePolicyType", # required
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#resource_policyString

A JSON-formatted string that contains an Amazon Web Services resource-based policy. The policy in the string identifies who can access or manage this secret and its versions. For example policies, see [Permissions policy examples].

[1]: docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_examples.html

Returns:

  • (String)

2447
2448
2449
2450
2451
2452
# File 'lib/aws-sdk-secretsmanager/types.rb', line 2447

class ValidateResourcePolicyRequest < Struct.new(
  :secret_id,
  :resource_policy)
  SENSITIVE = []
  include Aws::Structure
end

#secret_idString

This field is reserved for internal use.

Returns:

  • (String)

2447
2448
2449
2450
2451
2452
# File 'lib/aws-sdk-secretsmanager/types.rb', line 2447

class ValidateResourcePolicyRequest < Struct.new(
  :secret_id,
  :resource_policy)
  SENSITIVE = []
  include Aws::Structure
end