Class: Aws::PrometheusService::Types::PutResourcePolicyRequest

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

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#client_tokenString

A unique, case-sensitive identifier that you provide to ensure the request is safe to retry (idempotent).

A suitable default value is auto-generated. You should normally not need to pass this option.

Returns:

  • (String)


1499
1500
1501
1502
1503
1504
1505
1506
# File 'gems/aws-sdk-prometheusservice/lib/aws-sdk-prometheusservice/types.rb', line 1499

class PutResourcePolicyRequest < Struct.new(
  :workspace_id,
  :policy_document,
  :client_token,
  :revision_id)
  SENSITIVE = []
  include Aws::Structure
end

#policy_documentString

The JSON policy document to use as the resource-based policy. This policy defines the permissions that other AWS accounts or services have to access your workspace.

Returns:

  • (String)


1499
1500
1501
1502
1503
1504
1505
1506
# File 'gems/aws-sdk-prometheusservice/lib/aws-sdk-prometheusservice/types.rb', line 1499

class PutResourcePolicyRequest < Struct.new(
  :workspace_id,
  :policy_document,
  :client_token,
  :revision_id)
  SENSITIVE = []
  include Aws::Structure
end

#revision_idString

The revision ID of the policy to update. Use this parameter to ensure that you are updating the correct version of the policy. If you don't specify a revision ID, the policy is updated regardless of its current revision.

For the first PUT request on a workspace that doesn't have an existing resource policy, you can specify NO_POLICY as the revision ID.

Returns:

  • (String)


1499
1500
1501
1502
1503
1504
1505
1506
# File 'gems/aws-sdk-prometheusservice/lib/aws-sdk-prometheusservice/types.rb', line 1499

class PutResourcePolicyRequest < Struct.new(
  :workspace_id,
  :policy_document,
  :client_token,
  :revision_id)
  SENSITIVE = []
  include Aws::Structure
end

#workspace_idString

The ID of the workspace to attach the resource-based policy to.

Returns:

  • (String)


1499
1500
1501
1502
1503
1504
1505
1506
# File 'gems/aws-sdk-prometheusservice/lib/aws-sdk-prometheusservice/types.rb', line 1499

class PutResourcePolicyRequest < Struct.new(
  :workspace_id,
  :policy_document,
  :client_token,
  :revision_id)
  SENSITIVE = []
  include Aws::Structure
end