Skip to content

create_inbound_connector async

create_inbound_connector(
    aws_account_id: AwsAccountId,
    inbound_connector_id: ShortRestrictiveResourceId,
    name: ResourceName,
    inbound_connector_configuration: InboundConnectorConfig,
    *,
    config_overrides: Optional[AsyncQuickSightClientConfig] = None,
    description: Optional[InboundConnectorDescription] = None,
    tags: Optional[TagList] = None,
) -> CreateInboundConnectorResponse

Creates an inbound connector in a Quick Sight account. An inbound connector is the endpoint that an external client, such as the Quick Sight desktop application, uses to reach Quick Sight in your account.

Your users authenticate through the access control applications that are associated with the connector. To manage these associations, use UpdateInboundConnectorApplicationAssociations.

An account can have one QUICK_DESKTOP inbound connector in each Region.

Parameters:

  • aws_account_id (AwsAccountId) –

    The ID of the Amazon Web Services account that contains the Quick Sight account.

  • inbound_connector_id (ShortRestrictiveResourceId) –

    The ID for the inbound connector. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

    For a QUICK_DESKTOP inbound connector, the ID must be ibc-desktop- followed by your Amazon Web Services account ID and the Region that you call, separated by a hyphen. For example, ibc-desktop-111122223333-us-east-1. Quick Sight reserves IDs that start with ibc-desktop- for QUICK_DESKTOP inbound connectors.

  • name (ResourceName) –

    The name of the inbound connector.

  • description (Optional[InboundConnectorDescription], default: None ) –

    The description of the inbound connector.

  • inbound_connector_configuration (InboundConnectorConfig) –

    The configuration of the inbound connector.

  • tags (Optional[TagList], default: None ) –

    The tags to assign to the inbound connector.

Raises:

Source code in docs_src/capo_quicksight/_services/async_quick_sight.py
async def create_inbound_connector(
    self,
    aws_account_id: "capo_quicksight.types.aws_account_id.AwsAccountId",
    inbound_connector_id: "capo_quicksight.types.short_restrictive_resource_id.ShortRestrictiveResourceId",
    name: "capo_quicksight.types.resource_name.ResourceName",
    inbound_connector_configuration: "capo_quicksight.types.inbound_connector_config.InboundConnectorConfig",
    *,
    config_overrides: Optional[AsyncQuickSightClientConfig] = None,
    description: Optional[
        "capo_quicksight.types.inbound_connector_description.InboundConnectorDescription"
    ] = None,
    tags: Optional["capo_quicksight.types.tag_list.TagList"] = None,
) -> "capo_quicksight.types.create_inbound_connector_response.CreateInboundConnectorResponse":
    """<p>Creates an inbound connector in a Quick Sight account. An inbound connector is the endpoint that an external client, such as the Quick Sight desktop application, uses to reach Quick Sight in your account.</p> <p>Your users authenticate through the access control applications that are associated with the connector. To manage these associations, use <code>UpdateInboundConnectorApplicationAssociations</code>.</p> <p>An account can have one <code>QUICK_DESKTOP</code> inbound connector in each Region.</p>

    Args:
        aws_account_id: <p>The ID of the Amazon Web Services account that contains the Quick Sight account.</p>
        inbound_connector_id: <p>The ID for the inbound connector. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.</p> <p>For a <code>QUICK_DESKTOP</code> inbound connector, the ID must be <code>ibc-desktop-</code> followed by your Amazon Web Services account ID and the Region that you call, separated by a hyphen. For example, <code>ibc-desktop-111122223333-us-east-1</code>. Quick Sight reserves IDs that start with <code>ibc-desktop-</code> for <code>QUICK_DESKTOP</code> inbound connectors.</p>
        name: <p>The name of the inbound connector.</p>
        description: <p>The description of the inbound connector.</p>
        inbound_connector_configuration: <p>The configuration of the inbound connector.</p>
        tags: <p>The tags to assign to the inbound connector.</p>

    Raises:
        capo_quicksight.errors.access_denied_exception.AccessDeniedException: <p>You don't have access to this item. The provided credentials couldn't be validated. You might not be authorized to carry out the request. Make sure that your account is authorized to use the Amazon Quick Sight service, that your policies have the correct permissions, and that you are using the correct credentials.</p>
        capo_quicksight.errors.conflict_exception.ConflictException: <p>Updating or deleting a resource can cause an inconsistent state.</p>
        capo_quicksight.errors.internal_failure_exception.InternalFailureException: <p>An internal failure occurred.</p>
        capo_quicksight.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One or more parameters has a value that isn't valid.</p>
        capo_quicksight.errors.limit_exceeded_exception.LimitExceededException: <p>A limit is exceeded.</p>
        capo_quicksight.errors.resource_not_found_exception.ResourceNotFoundException: <p>One or more resources can't be found.</p>
        capo_quicksight.errors.throttling_exception.ThrottlingException: <p>Access is throttled.</p>
        capo_quicksight.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_quicksight.types.create_inbound_connector_request.CreateInboundConnectorRequest]",
    ) -> AsyncOperationResponse[
        "capo_quicksight.types.create_inbound_connector_response.CreateInboundConnectorResponse"
    ]:
        import capo_quicksight._operations.quick_sight_20180401.create_inbound_connector

        (
            output,
            http_response,
        ) = await capo_quicksight._operations.quick_sight_20180401.create_inbound_connector.async_create_inbound_connector(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("CreateInboundConnector")
    )
    input_: capo_quicksight.types.create_inbound_connector_request.CreateInboundConnectorRequest = {
        "aws_account_id": aws_account_id,
        "inbound_connector_id": inbound_connector_id,
        "name": name,
        "inbound_connector_configuration": inbound_connector_configuration,
    }
    if description is not None:
        input_["description"] = description
    if tags is not None:
        input_["tags"] = tags

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