View a markdown version of this page

DisassociateNetworkingFlexCostAllocationPolicy - Amazon Elastic Compute Cloud

DisassociateNetworkingFlexCostAllocationPolicy

Disassociates a flex cost allocation policy from one or more network resources.

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 is UnauthorizedOperation.

Type: Boolean

Required: No

FcaPolicyAssociationIds.N

The IDs of the policy associations to remove. You can specify up to 100 association IDs. This parameter is required.

Type: Array of strings

Array Members: Minimum number of 1 item. Maximum number of 100 items.

Length Constraints: Fixed length of 27.

Pattern: fcapassoc-[a-f0-9]{17}

Required: Yes

Response Elements

The following elements are returned by the service.

fcaPolicyDisassociationFailures

Information about the policy associations that could not be removed.

Type: Array of FlexCostAllocationOperationFailure objects

fcaPolicyDisassociations

The IDs of the policy associations that were removed.

Type: Array of strings

Array Members: Minimum number of 1 item. Maximum number of 1000 items.

Length Constraints: Fixed length of 27.

Pattern: fcapassoc-[a-f0-9]{17}

requestId

The ID of the request.

Type: String

Errors

For information about the errors that are common to all actions, see Common Error Types.

Examples

Example 1

This example removes the specified policy association.

Sample Request

https://ec2.amazonaws.com/?Action=DisassociateNetworkingFlexCostAllocationPolicy &FcaPolicyAssociationIds.1=fcapassoc-1234567890abcdef0 &AUTHPARAMS

Sample Response

<DisassociateNetworkingFlexCostAllocationPolicyResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/"> <requestId>a1b2c3d4-5678-90ab-cdef-EXAMPLE77777</requestId> <fcaPolicyDisassociations> <item>fcapassoc-1234567890abcdef0</item> </fcaPolicyDisassociations> <fcaPolicyDisassociationFailures/> </DisassociateNetworkingFlexCostAllocationPolicyResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: