Class: Aws::PrometheusService::Types::PutResourcePolicyRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::PrometheusService::Types::PutResourcePolicyRequest
- Defined in:
- gems/aws-sdk-prometheusservice/lib/aws-sdk-prometheusservice/types.rb
Overview
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#client_token ⇒ String
A unique, case-sensitive identifier that you provide to ensure the request is safe to retry (idempotent).
-
#policy_document ⇒ String
The JSON policy document to use as the resource-based policy.
-
#revision_id ⇒ String
The revision ID of the policy to update.
-
#workspace_id ⇒ String
The ID of the workspace to attach the resource-based policy to.
Instance Attribute Details
#client_token ⇒ String
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.
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_document ⇒ String
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.
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_id ⇒ String
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.
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_id ⇒ String
The ID of the workspace to attach the resource-based policy to.
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 |