Skip to content

update_glue_identity_center_configuration async

update_glue_identity_center_configuration(
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
    scopes: Optional[IdentityCenterScopesList] = None,
    user_background_sessions_enabled: Optional[NullableBoolean] = None,
) -> UpdateGlueIdentityCenterConfigurationResponse

Updates the existing Glue Identity Center configuration, allowing modification of scopes and permissions for the integration.

Parameters:

  • scopes (Optional[IdentityCenterScopesList], default: None ) –

    A list of Identity Center scopes that define the updated permissions and access levels for the Glue configuration.

  • user_background_sessions_enabled (Optional[NullableBoolean], default: None ) –

    Specifies whether users can run background sessions when using Identity Center authentication with Glue services.

Raises:

Source code in docs_src/capo_glue/_services/async_glue.py
async def update_glue_identity_center_configuration(
    self,
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
    scopes: Optional[
        "capo_glue.types.identity_center_scopes_list.IdentityCenterScopesList"
    ] = None,
    user_background_sessions_enabled: Optional[
        "capo_glue.types.nullable_boolean.NullableBoolean"
    ] = None,
) -> "capo_glue.types.update_glue_identity_center_configuration_response.UpdateGlueIdentityCenterConfigurationResponse":
    """<p>Updates the existing Glue Identity Center configuration, allowing modification of scopes and permissions for the integration.</p>

    Args:
        scopes: <p>A list of Identity Center scopes that define the updated permissions and access levels for the Glue configuration.</p>
        user_background_sessions_enabled: <p>Specifies whether users can run background sessions when using Identity Center authentication with Glue services.</p>

    Raises:
        capo_glue.errors.access_denied_exception.AccessDeniedException: <p>Access to a resource was denied.</p>
        capo_glue.errors.concurrent_modification_exception.ConcurrentModificationException: <p>Two processes are trying to modify a resource simultaneously.</p>
        capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</p>
        capo_glue.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
        capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
        capo_glue.errors.operation_timeout_exception.OperationTimeoutException: <p>The operation timed out.</p>
        capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_glue.types.update_glue_identity_center_configuration_request.UpdateGlueIdentityCenterConfigurationRequest]",
    ) -> AsyncOperationResponse[
        "capo_glue.types.update_glue_identity_center_configuration_response.UpdateGlueIdentityCenterConfigurationResponse"
    ]:
        import capo_glue._operations.aws_glue.update_glue_identity_center_configuration

        (
            output,
            http_response,
        ) = await capo_glue._operations.aws_glue.update_glue_identity_center_configuration.async_update_glue_identity_center_configuration(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateGlueIdentityCenterConfiguration")
    )
    input_: capo_glue.types.update_glue_identity_center_configuration_request.UpdateGlueIdentityCenterConfigurationRequest = {}
    if scopes is not None:
        input_["scopes"] = scopes
    if user_background_sessions_enabled is not None:
        input_["user_background_sessions_enabled"] = (
            user_background_sessions_enabled
        )

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