Class: Aws::EventBridgeV2::Types::GetResourcePolicyResponse
- Inherits:
-
Struct
- Object
- Struct
- Aws::EventBridgeV2::Types::GetResourcePolicyResponse
- Defined in:
- gems/aws-sdk-eventbridgev2/lib/aws-sdk-eventbridgev2/types.rb
Overview
Returned only when the named policy exists. A missing event bus or a missing named policy fails with ResourceNotFoundException rather than returning an empty or null policy document. Every member is therefore always present on a successful response.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#policy_document ⇒ String
A resource policy document, as a JSON string.
-
#policy_name ⇒ String
Name of a policy attached to a resource.
-
#resource_arn ⇒ String
The Amazon Resource Name (ARN) that uniquely identifies an event bus.
-
#revision_id ⇒ String
Revision ID of a resource policy.
Instance Attribute Details
#policy_document ⇒ String
A resource policy document, as a JSON string. The maximum size is 389,120 bytes of UTF-8; the byte limit is enforced by the service.
1372 1373 1374 1375 1376 1377 1378 1379 |
# File 'gems/aws-sdk-eventbridgev2/lib/aws-sdk-eventbridgev2/types.rb', line 1372 class GetResourcePolicyResponse < Struct.new( :resource_arn, :policy_document, :policy_name, :revision_id) SENSITIVE = [] include Aws::Structure end |
#policy_name ⇒ String
Name of a policy attached to a resource. Valid values: "default" (the customer-managed policy) and "AWS_RAM" (managed exclusively by AWS Resource Access Manager). Any other value is rejected.
1372 1373 1374 1375 1376 1377 1378 1379 |
# File 'gems/aws-sdk-eventbridgev2/lib/aws-sdk-eventbridgev2/types.rb', line 1372 class GetResourcePolicyResponse < Struct.new( :resource_arn, :policy_document, :policy_name, :revision_id) SENSITIVE = [] include Aws::Structure end |
#resource_arn ⇒ String
The Amazon Resource Name (ARN) that uniquely identifies an event bus.
1372 1373 1374 1375 1376 1377 1378 1379 |
# File 'gems/aws-sdk-eventbridgev2/lib/aws-sdk-eventbridgev2/types.rb', line 1372 class GetResourcePolicyResponse < Struct.new( :resource_arn, :policy_document, :policy_name, :revision_id) SENSITIVE = [] include Aws::Structure end |
#revision_id ⇒ String
Revision ID of a resource policy. A new revision ID is generated on every successful write.
1372 1373 1374 1375 1376 1377 1378 1379 |
# File 'gems/aws-sdk-eventbridgev2/lib/aws-sdk-eventbridgev2/types.rb', line 1372 class GetResourcePolicyResponse < Struct.new( :resource_arn, :policy_document, :policy_name, :revision_id) SENSITIVE = [] include Aws::Structure end |