DescribeNetworkingFlexCostAllocationPolicies
Describes one or more of your flex cost allocation policies. We recommend using pagination to ensure that the operation returns quickly and successfully.
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 describe.
Type: Array of strings
Array Members: Minimum number of 1 item. Maximum number of 1000 items.
Length Constraints: Fixed length of 22.
Pattern:
fcap-[a-f0-9]{17}Required: No
- Filters.N
-
The filters.
-
fca-policy-id- The ID of the policy. -
managed-by- The entity that manages the policy (account|declarative-policy). -
network-resource-type- The type of network resource that the policy applies to (natgw|ec2|pcx). -
showback-enabled- Indicates whether showback reporting is enabled for the policy (true|false).
Type: Array of Filter objects
Required: No
-
- MaxResults
-
The maximum number of results to return in a single call. The range is 5 to 1000. To retrieve the remaining results, make another call with the returned
nextTokenvalue.Default: 100
Type: Integer
Valid Range: Minimum value of 5. Maximum value of 1000.
Required: No
- NextToken
-
The token for the next page of results.
Type: String
Required: No
Response Elements
The following elements are returned by the service.
- flexCostAllocationPolicies
-
Information about the flex cost allocation policies.
Type: Array of FlexCostAllocationPolicyDescription objects
- nextToken
-
The token to use to retrieve the next page of results. This value is
nullwhen there are no more results to return.Type: String
- 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 describes the specified flex cost allocation policy.
Sample Request
https://ec2.amazonaws.com/?Action=DescribeNetworkingFlexCostAllocationPolicies
&FcaPolicyIds.1=fcap-1234567890abcdef0
&AUTHPARAMS
Sample Response
<DescribeNetworkingFlexCostAllocationPoliciesResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
<requestId>a1b2c3d4-5678-90ab-cdef-EXAMPLE22222</requestId>
<flexCostAllocationPolicies>
<item>
<fcaPolicyId>fcap-1234567890abcdef0</fcaPolicyId>
<fcaPolicyArn>arn:aws:ec2:us-east-1:111122223333:fca-policy/fcap-1234567890abcdef0</fcaPolicyArn>
<networkResourceType>natgw</networkResourceType>
<natFcaPolicyDocument>
<ReportingGranularity>
<item>vpc</item>
</ReportingGranularity>
<Dimensions>
<item>data-transfer</item>
<item>data-processing</item>
</Dimensions>
</natFcaPolicyDocument>
<showBackEnabled>true</showBackEnabled>
<ownerAccount>111122223333</ownerAccount>
<latestVersion>1</latestVersion>
<policyCreatedAt>2026-11-01T12:00:00.000Z</policyCreatedAt>
<updatedAt>2026-11-01T12:00:00.000Z</updatedAt>
<managedBy>account</managedBy>
</item>
</flexCostAllocationPolicies>
</DescribeNetworkingFlexCostAllocationPoliciesResponse>
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: