Skip to content

batch_modify_ipam_routing_policy_registrations async

batch_modify_ipam_routing_policy_registrations(
    *,
    config_overrides: Optional[AsyncEC2ClientConfig] = None,
    dry_run: Optional[Boolean] = None,
    ipam_internet_registry_association_id: Optional[
        IpamInternetRegistryAssociationId
    ] = None,
    delta_json: Optional[String] = None,
    force: Optional[BoxedBoolean] = None,
    client_token: Optional[String] = None,
) -> BatchModifyIpamRoutingPolicyRegistrationsResult

Modifies multiple routing policy registrations in a single operation. You can create, update, or delete Route Origin Authorizations (ROAs) in batch.

Parameters:

  • dry_run (Optional[Boolean], default: None ) –

    Checks whether you have the required permissions for the operation, 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.

  • ipam_internet_registry_association_id (Optional[IpamInternetRegistryAssociationId], default: None ) –

    The ID of the IPAM internet registry association.

  • delta_json (Optional[String], default: None ) –

    The batch modifications to apply, in JSON format.

  • force (Optional[BoxedBoolean], default: None ) –

    Forces the batch modification even if individual changes conflict with announced routes. Default: false.

  • client_token (Optional[String], default: None ) –

    A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the operation ignores the request, but does not return an error.

Raises:

Source code in docs_src/capo_ec2/_services/async_ec2.py
async def batch_modify_ipam_routing_policy_registrations(
    self,
    *,
    config_overrides: Optional[AsyncEC2ClientConfig] = None,
    dry_run: Optional["capo_ec2.types.boolean.Boolean"] = None,
    ipam_internet_registry_association_id: Optional[
        "capo_ec2.types.ipam_internet_registry_association_id.IpamInternetRegistryAssociationId"
    ] = None,
    delta_json: Optional["capo_ec2.types.string.String"] = None,
    force: Optional["capo_ec2.types.boxed_boolean.BoxedBoolean"] = None,
    client_token: Optional["capo_ec2.types.string.String"] = None,
) -> "capo_ec2.types.batch_modify_ipam_routing_policy_registrations_result.BatchModifyIpamRoutingPolicyRegistrationsResult":
    """<p>Modifies multiple routing policy registrations in a single operation. You can create, update, or delete Route Origin Authorizations (ROAs) in batch.</p>

    Args:
        dry_run: <p>Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
        ipam_internet_registry_association_id: <p>The ID of the IPAM internet registry association.</p>
        delta_json: <p>The batch modifications to apply, in JSON format.</p>
        force: <p>Forces the batch modification even if individual changes conflict with announced routes. Default: <code>false</code>.</p>
        client_token: <p>A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the operation ignores the request, but does not return an error.</p>

    Raises:
        capo_ec2.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_ec2.types.batch_modify_ipam_routing_policy_registrations_request.BatchModifyIpamRoutingPolicyRegistrationsRequest]",
    ) -> AsyncOperationResponse[
        "capo_ec2.types.batch_modify_ipam_routing_policy_registrations_result.BatchModifyIpamRoutingPolicyRegistrationsResult"
    ]:
        import capo_ec2._operations.amazon_ec2.batch_modify_ipam_routing_policy_registrations

        (
            output,
            http_response,
        ) = await capo_ec2._operations.amazon_ec2.batch_modify_ipam_routing_policy_registrations.async_batch_modify_ipam_routing_policy_registrations(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("BatchModifyIpamRoutingPolicyRegistrations"),
    )
    input_: capo_ec2.types.batch_modify_ipam_routing_policy_registrations_request.BatchModifyIpamRoutingPolicyRegistrationsRequest = {}
    if dry_run is not None:
        input_["dry_run"] = dry_run
    if ipam_internet_registry_association_id is not None:
        input_["ipam_internet_registry_association_id"] = (
            ipam_internet_registry_association_id
        )
    if delta_json is not None:
        input_["delta_json"] = delta_json
    if force is not None:
        input_["force"] = force
    if client_token is None:
        client_token = str(uuid.uuid4())
    input_["client_token"] = client_token

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output