Class: Aws::CloudWatchRUM::Types::PutResourcePolicyRequest

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

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#nameString

The name of the app monitor that you want to apply this resource-based policy to. To find the names of your app monitors, you can use the [ListAppMonitors] operation.

[1]: docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_ListAppMonitors.html

Returns:

  • (String)


1528
1529
1530
1531
1532
1533
1534
# File 'lib/aws-sdk-cloudwatchrum/types.rb', line 1528

class PutResourcePolicyRequest < Struct.new(
  :name,
  :policy_document,
  :policy_revision_id)
  SENSITIVE = []
  include Aws::Structure
end

#policy_documentString

The JSON to use as the resource policy. The document can be up to 4 KB in size. For more information about the contents and syntax for this policy, see [Using resource-based policies with CloudWatch RUM].

[1]: docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-resource-policies.html

Returns:

  • (String)


1528
1529
1530
1531
1532
1533
1534
# File 'lib/aws-sdk-cloudwatchrum/types.rb', line 1528

class PutResourcePolicyRequest < Struct.new(
  :name,
  :policy_document,
  :policy_revision_id)
  SENSITIVE = []
  include Aws::Structure
end

#policy_revision_idString

A string value that you can use to conditionally update your policy. You can provide the revision ID of your existing policy to make mutating requests against that policy.

When you assign a policy revision ID, then later requests about that policy will be rejected with an ‘InvalidPolicyRevisionIdException` error if they don’t provide the correct current revision ID.

Returns:

  • (String)


1528
1529
1530
1531
1532
1533
1534
# File 'lib/aws-sdk-cloudwatchrum/types.rb', line 1528

class PutResourcePolicyRequest < Struct.new(
  :name,
  :policy_document,
  :policy_revision_id)
  SENSITIVE = []
  include Aws::Structure
end