Skip to content

modify_ipam_scope async

modify_ipam_scope(
    *,
    config_overrides: Optional[AsyncEC2ClientConfig] = None,
    dry_run: Optional[Boolean] = None,
    ipam_scope_id: Optional[IpamScopeId] = None,
    description: Optional[String] = None,
    external_authority_configuration: Optional[ExternalAuthorityConfiguration] = None,
    remove_external_authority_configuration: Optional[Boolean] = None,
) -> ModifyIpamScopeResult

Modify an IPAM scope.

Parameters:

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

    A check for 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.

  • ipam_scope_id (Optional[IpamScopeId], default: None ) –

    The ID of the scope you want to modify.

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

    The description of the scope you want to modify.

  • external_authority_configuration (Optional[ExternalAuthorityConfiguration], default: None ) –

    The configuration that links an Amazon VPC IPAM scope to an external authority system. It specifies the type of external system and the external resource identifier that identifies your account or instance in that system.

    In IPAM, an external authority is a third-party IP address management system that provides CIDR blocks when you provision address space for top-level IPAM pools. This allows you to use your existing IP management system to control which address ranges are allocated to Amazon Web Services while using Amazon VPC IPAM to manage subnets within those ranges.

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

    Remove the external authority configuration. true to remove.

Raises:

Source code in docs_src/capo_ec2/_services/async_ec2.py
async def modify_ipam_scope(
    self,
    *,
    config_overrides: Optional[AsyncEC2ClientConfig] = None,
    dry_run: Optional["capo_ec2.types.boolean.Boolean"] = None,
    ipam_scope_id: Optional["capo_ec2.types.ipam_scope_id.IpamScopeId"] = None,
    description: Optional["capo_ec2.types.string.String"] = None,
    external_authority_configuration: Optional[
        "capo_ec2.types.external_authority_configuration.ExternalAuthorityConfiguration"
    ] = None,
    remove_external_authority_configuration: Optional[
        "capo_ec2.types.boolean.Boolean"
    ] = None,
) -> "capo_ec2.types.modify_ipam_scope_result.ModifyIpamScopeResult":
    """<p>Modify an IPAM scope.</p>

    Args:
        dry_run: <p>A check for 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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
        ipam_scope_id: <p>The ID of the scope you want to modify.</p>
        description: <p>The description of the scope you want to modify.</p>
        external_authority_configuration: <p>The configuration that links an Amazon VPC IPAM scope to an external authority system. It specifies the type of external system and the external resource identifier that identifies your account or instance in that system.</p> <p>In IPAM, an external authority is a third-party IP address management system that provides CIDR blocks when you provision address space for top-level IPAM pools. This allows you to use your existing IP management system to control which address ranges are allocated to Amazon Web Services while using Amazon VPC IPAM to manage subnets within those ranges.</p>
        remove_external_authority_configuration: <p>Remove the external authority configuration. <code>true</code> to remove.</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.modify_ipam_scope_request.ModifyIpamScopeRequest]",
    ) -> AsyncOperationResponse[
        "capo_ec2.types.modify_ipam_scope_result.ModifyIpamScopeResult"
    ]:
        import capo_ec2._operations.amazon_ec2.modify_ipam_scope

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ModifyIpamScope")
    )
    input_: capo_ec2.types.modify_ipam_scope_request.ModifyIpamScopeRequest = {}
    if dry_run is not None:
        input_["dry_run"] = dry_run
    if ipam_scope_id is not None:
        input_["ipam_scope_id"] = ipam_scope_id
    if description is not None:
        input_["description"] = description
    if external_authority_configuration is not None:
        input_["external_authority_configuration"] = (
            external_authority_configuration
        )
    if remove_external_authority_configuration is not None:
        input_["remove_external_authority_configuration"] = (
            remove_external_authority_configuration
        )

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