Class: Aws::Payments::Types::AccessDeniedException
- Inherits:
-
Struct
- Object
- Struct
- Aws::Payments::Types::AccessDeniedException
- Defined in:
- gems/aws-sdk-payments/lib/aws-sdk-payments/types.rb
Overview
The request is denied because you don't have sufficient access to
perform this operation. Verify that you have the required permissions
and try again. This error is also returned, instead of
ResourceNotFoundException, when you aren't authorized for the
resource, so the response doesn't reveal whether the resource exists.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#message ⇒ String
-
#reason ⇒ String
The reason that access was denied.
Instance Attribute Details
#message ⇒ String
36 37 38 39 40 41 |
# File 'gems/aws-sdk-payments/lib/aws-sdk-payments/types.rb', line 36 class AccessDeniedException < Struct.new( :message, :reason) SENSITIVE = [] include Aws::Structure end |
#reason ⇒ String
The reason that access was denied. The following values are valid:
NOT_AUTHORIZED– Your IAM policies don't allow this action.INVALID_ACCOUNT_STATE– Your Amazon Web Services account isn't in a state that allows this action, for example because registration isn't complete or the account is suspended.OTHER– Access was denied for another reason.
36 37 38 39 40 41 |
# File 'gems/aws-sdk-payments/lib/aws-sdk-payments/types.rb', line 36 class AccessDeniedException < Struct.new( :message, :reason) SENSITIVE = [] include Aws::Structure end |