Skip to content

EC2  >  Operations  >  disassociate_networking_flex_cost_allocation_policy

disassociate_networking_flex_cost_allocation_policy

Operation

disassociate_networking_flex_cost_allocation_policy async

disassociate_networking_flex_cost_allocation_policy(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[DisassociateNetworkingFlexCostAllocationPolicyInputDict]) -> DisassociateNetworkingFlexCostAllocationPolicyOutput

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

Parameters:

Name Type Description Default
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DisassociateNetworkingFlexCostAllocationPolicyOutput

An instance of DisassociateNetworkingFlexCostAllocationPolicyOutput.

Input

Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.

Model

DisassociateNetworkingFlexCostAllocationPolicyInput dataclass

Bases: _SerdeShape

Dataclass for DisassociateNetworkingFlexCostAllocationPolicyInput structure.

Attributes
dry_run class-attribute instance-attribute
dry_run: bool | None = ...

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.

fca_policy_association_ids class-attribute instance-attribute
fca_policy_association_ids: list[str] | None = ...

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

Dictionaries

DisassociateNetworkingFlexCostAllocationPolicyInputDict

Bases: TypedDict

Dictionary form of DisassociateNetworkingFlexCostAllocationPolicyInput.

Attributes
dry_run instance-attribute
dry_run: bool | None

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.

fca_policy_association_ids instance-attribute
fca_policy_association_ids: Required[Sequence[str]]

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

Output

DisassociateNetworkingFlexCostAllocationPolicyOutput dataclass

Bases: _SerdeShape

Dataclass for DisassociateNetworkingFlexCostAllocationPolicyOutput structure.

Attributes

fca_policy_disassociation_failures class-attribute instance-attribute
fca_policy_disassociation_failures: list[FlexCostAllocationOperationFailure] | None = ...

Information about the policy associations that could not be removed.

fca_policy_disassociations class-attribute instance-attribute
fca_policy_disassociations: list[str] | None = ...

The IDs of the policy associations that were removed.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.