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 "default" policy can be up to 20 KB (20,480 bytes of UTF-8) by default. This quota is adjustable in Service Quotas. A "default" policy that exceeds the quota is rejected with PolicyLengthExceededException. No policy document can exceed 389,120 bytes of UTF-8, regardless of the quota.
1297 1298 1299 1300 1301 1302 1303 1304 |
# File 'gems/aws-sdk-eventbridgev2/lib/aws-sdk-eventbridgev2/types.rb', line 1297 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.
1297 1298 1299 1300 1301 1302 1303 1304 |
# File 'gems/aws-sdk-eventbridgev2/lib/aws-sdk-eventbridgev2/types.rb', line 1297 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.
1297 1298 1299 1300 1301 1302 1303 1304 |
# File 'gems/aws-sdk-eventbridgev2/lib/aws-sdk-eventbridgev2/types.rb', line 1297 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.
1297 1298 1299 1300 1301 1302 1303 1304 |
# File 'gems/aws-sdk-eventbridgev2/lib/aws-sdk-eventbridgev2/types.rb', line 1297 class GetResourcePolicyResponse < Struct.new( :resource_arn, :policy_document, :policy_name, :revision_id) SENSITIVE = [] include Aws::Structure end |