DeleteNetworkingFlexCostAllocationPolicies
Deletes one or more flex cost allocation policies.
Request Parameters
The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.
- DryRun
-
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.Type: Boolean
Required: No
- FcaPolicyIds.N
-
The IDs of the flex cost allocation policies to delete. You can specify up to 50 policy IDs. This parameter is required.
Type: Array of strings
Array Members: Minimum number of 1 item. Maximum number of 50 items.
Length Constraints: Fixed length of 22.
Pattern:
fcap-[a-f0-9]{17}Required: Yes
Response Elements
The following elements are returned by the service.
- failed
-
Information about the policies that could not be deleted.
Type: Array of FlexCostAllocationOperationFailure objects
- requestId
-
The ID of the request.
Type: String
- successful
-
The IDs of the policies that were successfully deleted.
Type: Array of strings
Array Members: Minimum number of 1 item. Maximum number of 50 items.
Length Constraints: Fixed length of 22.
Pattern:
fcap-[a-f0-9]{17}
Errors
For information about the errors that are common to all actions, see Common Error Types.
Examples
Example 1
This example deletes the specified flex cost allocation policy.
Sample Request
https://ec2.amazonaws.com/?Action=DeleteNetworkingFlexCostAllocationPolicies
&FcaPolicyIds.1=fcap-1234567890abcdef0
&AUTHPARAMS
Sample Response
<DeleteNetworkingFlexCostAllocationPoliciesResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
<requestId>a1b2c3d4-5678-90ab-cdef-EXAMPLE33333</requestId>
<successful>
<item>fcap-1234567890abcdef0</item>
</successful>
<failed/>
</DeleteNetworkingFlexCostAllocationPoliciesResponse>
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: