modify_networking_flex_cost_allocation_policy¶
Operation¶
modify_networking_flex_cost_allocation_policy
async
¶
modify_networking_flex_cost_allocation_policy(request: ModifyNetworkingFlexCostAllocationPolicyInput | ModifyNetworkingFlexCostAllocationPolicyInputDict, /, *, plugins: list[Plugin] | None = None) -> ModifyNetworkingFlexCostAllocationPolicyOutput
modify_networking_flex_cost_allocation_policy(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[ModifyNetworkingFlexCostAllocationPolicyInputDict]) -> ModifyNetworkingFlexCostAllocationPolicyOutput
Modifies a flex cost allocation policy. Changing a policy document or
ShowBackEnabled creates a new version of the policy. Changing only the
description doesn't create a new version.
A policy can have up to 100 versions. Versions are never removed, so
after a policy reaches 100 versions, you can't change its policy
document or ShowBackEnabled. Policies that are managed by a
declarative policy aren't subject to this limit.
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 |
|---|---|
ModifyNetworkingFlexCostAllocationPolicyOutput
|
An instance of |
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¶
ModifyNetworkingFlexCostAllocationPolicyInput
dataclass
¶
Bases: _SerdeShape
Dataclass for ModifyNetworkingFlexCostAllocationPolicyInput structure.
Attributes¶
client_token
class-attribute
instance-attribute
¶
client_token: str | None = ...
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
This field is autopopulated if not provided.
description
class-attribute
instance-attribute
¶
description: str | None = ...
A description for the policy. The description can be up to 1024 characters long.
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_id
class-attribute
instance-attribute
¶
fca_policy_id: str | None = ...
The ID of the flex cost allocation policy to modify. This parameter is required.
instance_fca_policy_document
class-attribute
instance-attribute
¶
instance_fca_policy_document: InstanceFlexCostAllocationPolicyDocument | None = ...
The updated policy document that defines cost allocation for EC2 instances.
nat_fca_policy_document
class-attribute
instance-attribute
¶
nat_fca_policy_document: NatFlexCostAllocationPolicyDocument | None = ...
The updated policy document that defines cost allocation for NAT gateways.
pcx_fca_policy_document
class-attribute
instance-attribute
¶
pcx_fca_policy_document: PcxFlexCostAllocationPolicyDocument | None = ...
The updated policy document that defines cost allocation for Amazon VPC peering connections.
Dictionaries¶
ModifyNetworkingFlexCostAllocationPolicyInputDict
¶
Bases: TypedDict
Dictionary form of ModifyNetworkingFlexCostAllocationPolicyInput.
Attributes¶
client_token
instance-attribute
¶
client_token: str | None
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
This field is autopopulated if not provided.
description
instance-attribute
¶
description: str | None
A description for the policy. The description can be up to 1024 characters long.
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_id
instance-attribute
¶
The ID of the flex cost allocation policy to modify. This parameter is required.
instance_fca_policy_document
instance-attribute
¶
instance_fca_policy_document: InstanceFlexCostAllocationPolicyDocument | InstanceFlexCostAllocationPolicyDocumentDict | None
The updated policy document that defines cost allocation for EC2 instances.
nat_fca_policy_document
instance-attribute
¶
nat_fca_policy_document: NatFlexCostAllocationPolicyDocument | NatFlexCostAllocationPolicyDocumentDict | None
The updated policy document that defines cost allocation for NAT gateways.
pcx_fca_policy_document
instance-attribute
¶
pcx_fca_policy_document: PcxFlexCostAllocationPolicyDocument | PcxFlexCostAllocationPolicyDocumentDict | None
The updated policy document that defines cost allocation for Amazon VPC peering connections.
Output¶
ModifyNetworkingFlexCostAllocationPolicyOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for ModifyNetworkingFlexCostAllocationPolicyOutput structure.
Attributes¶
fca_policy_id
class-attribute
instance-attribute
¶
fca_policy_id: str | None = ...
The ID of the flex cost allocation policy.
response_metadata
class-attribute
instance-attribute
¶
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.
updated_at
class-attribute
instance-attribute
¶
updated_at: datetime | None = ...
The date and time when the policy was updated.