Skip to content

create_glue_identity_center_configuration

create_glue_identity_center_configuration(
    instance_arn: IdentityCenterInstanceArn,
    *,
    config_overrides: Optional[GlueClientConfig] = None,
    scopes: Optional[IdentityCenterScopesList] = None,
    user_background_sessions_enabled: Optional[NullableBoolean] = None,
) -> CreateGlueIdentityCenterConfigurationResponse

Creates a new Glue Identity Center configuration to enable integration between Glue and Amazon Web Services IAM Identity Center for authentication and authorization.

Parameters:

  • instance_arn (IdentityCenterInstanceArn) –

    The Amazon Resource Name (ARN) of the Identity Center instance to be associated with the Glue configuration.

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

    A list of Identity Center scopes that define the 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/glue.py
def create_glue_identity_center_configuration(
    self,
    instance_arn: "capo_glue.types.identity_center_instance_arn.IdentityCenterInstanceArn",
    *,
    config_overrides: Optional[GlueClientConfig] = 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.create_glue_identity_center_configuration_response.CreateGlueIdentityCenterConfigurationResponse":
    """<p>Creates a new Glue Identity Center configuration to enable integration between Glue and Amazon Web Services IAM Identity Center for authentication and authorization.</p>

    Args:
        instance_arn: <p>The Amazon Resource Name (ARN) of the Identity Center instance to be associated with the Glue configuration.</p>
        scopes: <p>A list of Identity Center scopes that define the 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.already_exists_exception.AlreadyExistsException: <p>A resource to be created or added already exists.</p>
        capo_glue.errors.concurrent_modification_exception.ConcurrentModificationException: <p>Two processes are trying to modify a resource simultaneously.</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.
    """

    def _handler(
        req: "OperationRequest[capo_glue.types.create_glue_identity_center_configuration_request.CreateGlueIdentityCenterConfigurationRequest]",
    ) -> OperationResponse[
        "capo_glue.types.create_glue_identity_center_configuration_response.CreateGlueIdentityCenterConfigurationResponse"
    ]:
        import capo_glue._operations.aws_glue.create_glue_identity_center_configuration

        output, http_response = (
            capo_glue._operations.aws_glue.create_glue_identity_center_configuration.create_glue_identity_center_configuration(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("CreateGlueIdentityCenterConfiguration")
    )
    input_: capo_glue.types.create_glue_identity_center_configuration_request.CreateGlueIdentityCenterConfigurationRequest = {
        "instance_arn": instance_arn
    }
    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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output