Class: Aws::EventBridgeV2::Types::DeleteResourcePolicyRequest

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

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#expected_revision_id ⇒ String

The delete succeeds only if the named policy's current revision ID matches this value; if it differs or the policy does not exist, the operation fails with ConflictException. The "NO_POLICY" sentinel is not valid here. When omitted, deleting an absent policy is an idempotent success. Supplying this value makes the delete non-idempotent: once it succeeds the expected revision no longer exists, so retrying an unanswered request fails with ConflictException even though the policy was deleted. To establish the outcome, read the policy back: ResourceNotFoundException means the delete took effect.

Returns:

  • (String)


607
608
609
610
611
612
613
# File 'gems/aws-sdk-eventbridgev2/lib/aws-sdk-eventbridgev2/types.rb', line 607

class DeleteResourcePolicyRequest < Struct.new(
  :resource_arn,
  :policy_name,
  :expected_revision_id)
  SENSITIVE = []
  include Aws::Structure
end

#policy_name ⇒ String

Which named policy to delete. Defaults to "default" when omitted (a delete AWS Resource Access Manager makes on the owner's behalf resolves to "AWS_RAM" instead). The two writers are exclusive in both directions — only Resource Access Manager can delete "AWS_RAM", and only the bus owner can delete "default" — so naming the other party's policy fails with AccessDeniedException. A well-formed name that is neither of the two fails with InvalidInputException.

Returns:

  • (String)


607
608
609
610
611
612
613
# File 'gems/aws-sdk-eventbridgev2/lib/aws-sdk-eventbridgev2/types.rb', line 607

class DeleteResourcePolicyRequest < Struct.new(
  :resource_arn,
  :policy_name,
  :expected_revision_id)
  SENSITIVE = []
  include Aws::Structure
end

#resource_arn ⇒ String

The Amazon Resource Name (ARN) that uniquely identifies an event bus.

Returns:

  • (String)


607
608
609
610
611
612
613
# File 'gems/aws-sdk-eventbridgev2/lib/aws-sdk-eventbridgev2/types.rb', line 607

class DeleteResourcePolicyRequest < Struct.new(
  :resource_arn,
  :policy_name,
  :expected_revision_id)
  SENSITIVE = []
  include Aws::Structure
end