Skip to content

update_shared_vpc_configuration async

update_shared_vpc_configuration(
    *,
    config_overrides: Optional[AsyncFSxClientConfig] = None,
    enable_fsx_route_table_updates_from_participant_accounts: Optional[
        VerboseFlag
    ] = None,
    client_request_token: Optional[ClientRequestToken] = None,
) -> UpdateSharedVpcConfigurationResponse

Configures whether participant accounts in your organization can create Amazon FSx for NetApp ONTAP Multi-AZ file systems in subnets that are shared by a virtual private cloud (VPC) owner. For more information, see the Amazon FSx for NetApp ONTAP User Guide.

We strongly recommend that participant-created Multi-AZ file systems in the shared VPC are deleted before you disable this feature. Once the feature is disabled, these file systems will enter a MISCONFIGURED state and behave like Single-AZ file systems. For more information, see Important considerations before disabling shared VPC support for Multi-AZ file systems.

Parameters:

  • enable_fsx_route_table_updates_from_participant_accounts (Optional[VerboseFlag], default: None ) –

    Specifies whether participant accounts can create FSx for ONTAP Multi-AZ file systems in shared subnets. Set to true to enable or false to disable.

Raises:

  • BadRequest –

    A generic error indicating a failure with a client request.

  • IncompatibleParameterError –

    The error returned when a second request is received with the same client request token but different parameters settings. A client request token should always uniquely identify a single request.

  • InternalServerError –

    A generic error indicating a server-side failure.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_fsx/_services/async_f_sx.py
async def update_shared_vpc_configuration(
    self,
    *,
    config_overrides: Optional[AsyncFSxClientConfig] = None,
    enable_fsx_route_table_updates_from_participant_accounts: Optional[
        "capo_fsx.types.verbose_flag.VerboseFlag"
    ] = None,
    client_request_token: Optional[
        "capo_fsx.types.client_request_token.ClientRequestToken"
    ] = None,
) -> "capo_fsx.types.update_shared_vpc_configuration_response.UpdateSharedVpcConfigurationResponse":
    """<p>Configures whether participant accounts in your organization can create Amazon FSx for NetApp ONTAP Multi-AZ file systems in subnets that are shared by a virtual private cloud (VPC) owner. For more information, see the <a href="https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/maz-shared-vpc.html">Amazon FSx for NetApp ONTAP User Guide</a>.</p> <note> <p>We strongly recommend that participant-created Multi-AZ file systems in the shared VPC are deleted before you disable this feature. Once the feature is disabled, these file systems will enter a <code>MISCONFIGURED</code> state and behave like Single-AZ file systems. For more information, see <a href="https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/maz-shared-vpc.html#disabling-maz-vpc-sharing">Important considerations before disabling shared VPC support for Multi-AZ file systems</a>.</p> </note>

    Args:
        enable_fsx_route_table_updates_from_participant_accounts: <p>Specifies whether participant accounts can create FSx for ONTAP Multi-AZ file systems in shared subnets. Set to <code>true</code> to enable or <code>false</code> to disable.</p>

    Raises:
        capo_fsx.errors.bad_request.BadRequest: <p>A generic error indicating a failure with a client request.</p>
        capo_fsx.errors.incompatible_parameter_error.IncompatibleParameterError: <p>The error returned when a second request is received with the same client request token but different parameters settings. A client request token should always uniquely identify a single request.</p>
        capo_fsx.errors.internal_server_error.InternalServerError: <p>A generic error indicating a server-side failure.</p>
        capo_fsx.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_fsx.types.update_shared_vpc_configuration_request.UpdateSharedVpcConfigurationRequest]",
    ) -> AsyncOperationResponse[
        "capo_fsx.types.update_shared_vpc_configuration_response.UpdateSharedVpcConfigurationResponse"
    ]:
        import capo_fsx._operations.aws_simba_api_service_v20180301.update_shared_vpc_configuration

        (
            output,
            http_response,
        ) = await capo_fsx._operations.aws_simba_api_service_v20180301.update_shared_vpc_configuration.async_update_shared_vpc_configuration(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateSharedVpcConfiguration")
    )
    input_: capo_fsx.types.update_shared_vpc_configuration_request.UpdateSharedVpcConfigurationRequest = {}
    if enable_fsx_route_table_updates_from_participant_accounts is not None:
        input_["enable_fsx_route_table_updates_from_participant_accounts"] = (
            enable_fsx_route_table_updates_from_participant_accounts
        )
    if client_request_token is None:
        client_request_token = str(uuid.uuid4())
    input_["client_request_token"] = client_request_token

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