Skip to content

enable_ipam_internet_registry_association

enable_ipam_internet_registry_association(
    *,
    config_overrides: Optional[EC2ClientConfig] = None,
    dry_run: Optional[Boolean] = None,
    ipam_internet_registry_association_id: Optional[
        IpamInternetRegistryAssociationId
    ] = None,
    rpki_version: Optional[String] = None,
    service_uri: Optional[String] = None,
    child_handle: Optional[String] = None,
    parent_handle: Optional[String] = None,
    parent_bpki_ta: Optional[String] = None,
    client_token: Optional[String] = None,
) -> EnableIpamInternetRegistryAssociationResult

Enables Resource Public Key Infrastructure (RPKI) on an existing IPAM internet registry association by providing BGP Public Key Infrastructure (BPKI) certificate details. After enabling, you can create Route Origin Authorizations (ROAs) for prefixes registered with the internet registry.

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 to enable.

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

    The RPKI version to use from the Parent Response XML.

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

    The RPKI service URI for the publication point from the Parent Response XML.

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

    The child handle for the BPKI certificate hierarchy from the Parent Response XML.

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

    The parent handle for the BPKI certificate hierarchy from the Parent Response XML.

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

    The parent BPKI Trust Anchor certificate in PEM format from the Parent Response XML.

  • 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/ec2.py
def enable_ipam_internet_registry_association(
    self,
    *,
    config_overrides: Optional[EC2ClientConfig] = 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,
    rpki_version: Optional["capo_ec2.types.string.String"] = None,
    service_uri: Optional["capo_ec2.types.string.String"] = None,
    child_handle: Optional["capo_ec2.types.string.String"] = None,
    parent_handle: Optional["capo_ec2.types.string.String"] = None,
    parent_bpki_ta: Optional["capo_ec2.types.string.String"] = None,
    client_token: Optional["capo_ec2.types.string.String"] = None,
) -> "capo_ec2.types.enable_ipam_internet_registry_association_result.EnableIpamInternetRegistryAssociationResult":
    """<p>Enables Resource Public Key Infrastructure (RPKI) on an existing IPAM internet registry association by providing BGP Public Key Infrastructure (BPKI) certificate details. After enabling, you can create Route Origin Authorizations (ROAs) for prefixes registered with the internet registry.</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 to enable.</p>
        rpki_version: <p>The RPKI version to use from the Parent Response XML.</p>
        service_uri: <p>The RPKI service URI for the publication point from the Parent Response XML.</p>
        child_handle: <p>The child handle for the BPKI certificate hierarchy from the Parent Response XML.</p>
        parent_handle: <p>The parent handle for the BPKI certificate hierarchy from the Parent Response XML.</p>
        parent_bpki_ta: <p>The parent BPKI Trust Anchor certificate in PEM format from the Parent Response XML.</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.
    """

    def _handler(
        req: "OperationRequest[capo_ec2.types.enable_ipam_internet_registry_association_request.EnableIpamInternetRegistryAssociationRequest]",
    ) -> OperationResponse[
        "capo_ec2.types.enable_ipam_internet_registry_association_result.EnableIpamInternetRegistryAssociationResult"
    ]:
        import capo_ec2._operations.amazon_ec2.enable_ipam_internet_registry_association

        output, http_response = (
            capo_ec2._operations.amazon_ec2.enable_ipam_internet_registry_association.enable_ipam_internet_registry_association(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("EnableIpamInternetRegistryAssociation")
    )
    input_: capo_ec2.types.enable_ipam_internet_registry_association_request.EnableIpamInternetRegistryAssociationRequest = {}
    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 rpki_version is not None:
        input_["rpki_version"] = rpki_version
    if service_uri is not None:
        input_["service_uri"] = service_uri
    if child_handle is not None:
        input_["child_handle"] = child_handle
    if parent_handle is not None:
        input_["parent_handle"] = parent_handle
    if parent_bpki_ta is not None:
        input_["parent_bpki_ta"] = parent_bpki_ta
    if client_token is None:
        client_token = str(uuid.uuid4())
    input_["client_token"] = client_token

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output