Skip to content

EC2  >  Structures  >  FlexCostAllocationOperationFailure

FlexCostAllocationOperationFailure

Structure Class

FlexCostAllocationOperationFailure dataclass

Bases: _SerdeShape

Describes a policy, association, or network resource that a Networking Flexible Cost Allocation operation failed to process.

Attributes

failure_code class-attribute instance-attribute
failure_code: str | None = ...

The code that identifies the type of failure. Possible values are:

  • ResourceNotFound - (DeleteNetworkingFlexCostAllocationPolicies) The policy doesn't exist or isn't owned by your account.

  • InvalidResourceState - (DeleteNetworkingFlexCostAllocationPolicies) The policy has active associations.

  • InvalidResource - (AssociateNetworkingFlexCostAllocationPolicy) The resource ID is malformed, the resource type doesn't match the policy, or the scope is an account other than yours. (DisassociateNetworkingFlexCostAllocationPolicy) The association doesn't exist or was already removed.

  • ResourceAlreadyAssociated - (AssociateNetworkingFlexCostAllocationPolicy) The resource already has an active association.

  • InternalError - An internal error occurred. Retry the request.

failure_reason class-attribute instance-attribute
failure_reason: str | None = ...

The reason for the failure.

resource_id class-attribute instance-attribute
resource_id: str | None = ...

The ID of the resource that could not be processed.