AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: Aws::SecretsManager::Types::GetResourcePolicyResponse

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

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#arnString

The ARN of the secret that the resource-based policy was retrieved for.

Returns:

  • (String)


824
825
826
827
828
829
830
# File 'gems/aws-sdk-secretsmanager/lib/aws-sdk-secretsmanager/types.rb', line 824

class GetResourcePolicyResponse < Struct.new(
  :arn,
  :name,
  :resource_policy)
  SENSITIVE = []
  include Aws::Structure
end

#nameString

The friendly name of the secret that the resource-based policy was retrieved for.

Returns:

  • (String)


824
825
826
827
828
829
830
# File 'gems/aws-sdk-secretsmanager/lib/aws-sdk-secretsmanager/types.rb', line 824

class GetResourcePolicyResponse < Struct.new(
  :arn,
  :name,
  :resource_policy)
  SENSITIVE = []
  include Aws::Structure
end

#resource_policyString

A JSON-formatted string that describes the permissions that are associated with the attached secret. These permissions are combined with any permissions that are associated with the user or role that attempts to access this secret. The combined permissions specify who can access the secret and what actions they can perform. For more information, see Authentication and Access Control for Amazon Web Services Secrets Manager in the Amazon Web Services Secrets Manager User Guide.

Returns:

  • (String)


824
825
826
827
828
829
830
# File 'gems/aws-sdk-secretsmanager/lib/aws-sdk-secretsmanager/types.rb', line 824

class GetResourcePolicyResponse < Struct.new(
  :arn,
  :name,
  :resource_policy)
  SENSITIVE = []
  include Aws::Structure
end