Skip to content

update_integration_configuration

update_integration_configuration(
    integration_name: IntegrationName,
    *,
    config_overrides: Optional[AmplifyGen3ClientConfig] = None,
    integration_type_id: Optional[IntegrationTypeId] = None,
    resource_configuration: Optional[ResourceConfiguration] = None,
    environment_variables: Optional[IntegrationEnvironmentVariableInputList] = None,
    remove_environment_variable_keys: Optional[
        IntegrationEnvironmentVariableKeyList
    ] = None,
) -> UpdateIntegrationConfigurationResponse

Updates an integration configuration.

Parameters:

Raises:

Source code in docs_src/capo_amplifygen3/_services/amplify_gen3.py
def update_integration_configuration(
    self,
    integration_name: "capo_amplifygen3.types.integration_name.IntegrationName",
    *,
    config_overrides: Optional[AmplifyGen3ClientConfig] = None,
    integration_type_id: Optional[
        "capo_amplifygen3.types.integration_type_id.IntegrationTypeId"
    ] = None,
    resource_configuration: Optional[
        "capo_amplifygen3.types.resource_configuration.ResourceConfiguration"
    ] = None,
    environment_variables: Optional[
        "capo_amplifygen3.types.integration_environment_variable_input_list.IntegrationEnvironmentVariableInputList"
    ] = None,
    remove_environment_variable_keys: Optional[
        "capo_amplifygen3.types.integration_environment_variable_key_list.IntegrationEnvironmentVariableKeyList"
    ] = None,
) -> "capo_amplifygen3.types.update_integration_configuration_response.UpdateIntegrationConfigurationResponse":
    """<p>Updates an integration configuration.</p>

    Args:
        integration_name: <p>The name of the integration.</p>
        integration_type_id: <p>The ID of the integration type.</p>
        resource_configuration: <p>The resource configuration for the integration.</p>
        environment_variables: <p>The environment variables.</p>
        remove_environment_variable_keys: <p>The keys of the environment variables to remove.</p>

    Raises:
        capo_amplifygen3.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient permissions to perform this action.</p>
        capo_amplifygen3.errors.internal_server_exception.InternalServerException: <p>An internal error occurred. Retry the request.</p>
        capo_amplifygen3.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource was not found.</p>
        capo_amplifygen3.errors.throttling_exception.ThrottlingException: <p>The request was denied because the request rate exceeds the allowed limit.</p>
        capo_amplifygen3.errors.validation_exception.ValidationException: <p>The request contains invalid parameters or is otherwise malformed.</p>
        capo_amplifygen3.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_amplifygen3.types.update_integration_configuration_request.UpdateIntegrationConfigurationRequest]",
    ) -> OperationResponse[
        "capo_amplifygen3.types.update_integration_configuration_response.UpdateIntegrationConfigurationResponse"
    ]:
        import capo_amplifygen3._operations.omega.update_integration_configuration

        output, http_response = (
            capo_amplifygen3._operations.omega.update_integration_configuration.update_integration_configuration(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    def _redact_input(
        input_: "capo_amplifygen3.types.update_integration_configuration_request.UpdateIntegrationConfigurationRequest",
    ) -> dict[str, Any]:
        import capo_amplifygen3.types.update_integration_configuration_request

        return capo_amplifygen3.types.update_integration_configuration_request.redact_sensitive(
            input_
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging(
            "UpdateIntegrationConfiguration", redact_input=_redact_input
        ),
    )
    input_: capo_amplifygen3.types.update_integration_configuration_request.UpdateIntegrationConfigurationRequest = {
        "integration_name": integration_name
    }
    if integration_type_id is not None:
        input_["integration_type_id"] = integration_type_id
    if resource_configuration is not None:
        input_["resource_configuration"] = resource_configuration
    if environment_variables is not None:
        input_["environment_variables"] = environment_variables
    if remove_environment_variable_keys is not None:
        input_["remove_environment_variable_keys"] = (
            remove_environment_variable_keys
        )

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