Skip to content

update_application_settings async

update_application_settings(
    application_id: ApplicationId,
    *,
    config_overrides: Optional[AsyncSsmSapClientConfig] = None,
    credentials_to_add_or_update: Optional[ApplicationCredentialList] = None,
    credentials_to_remove: Optional[ApplicationCredentialList] = None,
    backint: Optional[BackintConfig] = None,
    database_arn: Optional[SsmSapArn] = None,
) -> UpdateApplicationSettingsOutput

Updates the settings of an application registered with AWS Systems Manager for SAP.

Parameters:

  • application_id (ApplicationId) –

    The ID of the application.

  • credentials_to_add_or_update (Optional[ApplicationCredentialList], default: None ) –

    The credentials to be added or updated.

  • credentials_to_remove (Optional[ApplicationCredentialList], default: None ) –

    The credentials to be removed.

  • backint (Optional[BackintConfig], default: None ) –

    Installation of AWS Backint Agent for SAP HANA.

  • database_arn (Optional[SsmSapArn], default: None ) –

    The Amazon Resource Name of the SAP HANA database that replaces the current SAP HANA connection with the SAP_ABAP application.

Raises:

Source code in docs_src/capo_ssm_sap/_services/async_ssm_sap.py
async def update_application_settings(
    self,
    application_id: "capo_ssm_sap.types.application_id.ApplicationId",
    *,
    config_overrides: Optional[AsyncSsmSapClientConfig] = None,
    credentials_to_add_or_update: Optional[
        "capo_ssm_sap.types.application_credential_list.ApplicationCredentialList"
    ] = None,
    credentials_to_remove: Optional[
        "capo_ssm_sap.types.application_credential_list.ApplicationCredentialList"
    ] = None,
    backint: Optional["capo_ssm_sap.types.backint_config.BackintConfig"] = None,
    database_arn: Optional["capo_ssm_sap.types.ssm_sap_arn.SsmSapArn"] = None,
) -> "capo_ssm_sap.types.update_application_settings_output.UpdateApplicationSettingsOutput":
    """<p>Updates the settings of an application registered with AWS Systems Manager for SAP.</p>

    Args:
        application_id: <p>The ID of the application.</p>
        credentials_to_add_or_update: <p>The credentials to be added or updated.</p>
        credentials_to_remove: <p>The credentials to be removed.</p>
        backint: <p>Installation of AWS Backint Agent for SAP HANA.</p>
        database_arn: <p>The Amazon Resource Name of the SAP HANA database that replaces the current SAP HANA connection with the SAP_ABAP application.</p>

    Raises:
        capo_ssm_sap.errors.conflict_exception.ConflictException: <p>A conflict has occurred.</p>
        capo_ssm_sap.errors.internal_server_exception.InternalServerException: <p>An internal error has occurred.</p>
        capo_ssm_sap.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource is not available.</p>
        capo_ssm_sap.errors.unauthorized_exception.UnauthorizedException: <p>The request is not authorized.</p>
        capo_ssm_sap.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an AWS service. </p>
        capo_ssm_sap.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_ssm_sap.types.update_application_settings_input.UpdateApplicationSettingsInput]",
    ) -> AsyncOperationResponse[
        "capo_ssm_sap.types.update_application_settings_output.UpdateApplicationSettingsOutput"
    ]:
        import capo_ssm_sap._operations.ssm_sap.update_application_settings

        (
            output,
            http_response,
        ) = await capo_ssm_sap._operations.ssm_sap.update_application_settings.async_update_application_settings(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    def _redact_input(
        input_: "capo_ssm_sap.types.update_application_settings_input.UpdateApplicationSettingsInput",
    ) -> dict[str, Any]:
        import capo_ssm_sap.types.update_application_settings_input

        return (
            capo_ssm_sap.types.update_application_settings_input.redact_sensitive(
                input_
            )
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("UpdateApplicationSettings", redact_input=_redact_input),
    )
    input_: capo_ssm_sap.types.update_application_settings_input.UpdateApplicationSettingsInput = {
        "application_id": application_id
    }
    if credentials_to_add_or_update is not None:
        input_["credentials_to_add_or_update"] = credentials_to_add_or_update
    if credentials_to_remove is not None:
        input_["credentials_to_remove"] = credentials_to_remove
    if backint is not None:
        input_["backint"] = backint
    if database_arn is not None:
        input_["database_arn"] = database_arn

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