Skip to content

update_inbound_connector_application_associations async

update_inbound_connector_application_associations(
    aws_account_id: AwsAccountId,
    inbound_connector_id: ShortRestrictiveResourceId,
    *,
    config_overrides: Optional[AsyncQuickSightClientConfig] = None,
    associate_access_control_applications: Optional[
        InboundConnectorAssociationArnList
    ] = None,
    disassociate_access_control_applications: Optional[
        InboundConnectorAssociationArnList
    ] = None,
) -> UpdateInboundConnectorApplicationAssociationsResponse

Associates access control applications with an inbound connector, disassociates them from it, or both. You can add up to 20 associations and remove up to 20 associations in each request. An inbound connector supports up to 6,000 associations.

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 of the inbound connector.

  • associate_access_control_applications (Optional[InboundConnectorAssociationArnList], default: None ) –

    The ARNs of up to 20 access control applications to associate with the inbound connector. ARNs that are already associated are ignored.

  • disassociate_access_control_applications (Optional[InboundConnectorAssociationArnList], default: None ) –

    The ARNs of up to 20 access control applications to disassociate from the inbound connector. ARNs that aren't associated are ignored.

Raises:

Source code in docs_src/capo_quicksight/_services/async_quick_sight.py
async def update_inbound_connector_application_associations(
    self,
    aws_account_id: "capo_quicksight.types.aws_account_id.AwsAccountId",
    inbound_connector_id: "capo_quicksight.types.short_restrictive_resource_id.ShortRestrictiveResourceId",
    *,
    config_overrides: Optional[AsyncQuickSightClientConfig] = None,
    associate_access_control_applications: Optional[
        "capo_quicksight.types.inbound_connector_association_arn_list.InboundConnectorAssociationArnList"
    ] = None,
    disassociate_access_control_applications: Optional[
        "capo_quicksight.types.inbound_connector_association_arn_list.InboundConnectorAssociationArnList"
    ] = None,
) -> "capo_quicksight.types.update_inbound_connector_application_associations_response.UpdateInboundConnectorApplicationAssociationsResponse":
    """<p>Associates access control applications with an inbound connector, disassociates them from it, or both. You can add up to 20 associations and remove up to 20 associations in each request. An inbound connector supports up to 6,000 associations.</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 of the inbound connector.</p>
        associate_access_control_applications: <p>The ARNs of up to 20 access control applications to associate with the inbound connector. ARNs that are already associated are ignored.</p>
        disassociate_access_control_applications: <p>The ARNs of up to 20 access control applications to disassociate from the inbound connector. ARNs that aren't associated are ignored.</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.update_inbound_connector_application_associations_request.UpdateInboundConnectorApplicationAssociationsRequest]",
    ) -> AsyncOperationResponse[
        "capo_quicksight.types.update_inbound_connector_application_associations_response.UpdateInboundConnectorApplicationAssociationsResponse"
    ]:
        import capo_quicksight._operations.quick_sight_20180401.update_inbound_connector_application_associations

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

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("UpdateInboundConnectorApplicationAssociations"),
    )
    input_: capo_quicksight.types.update_inbound_connector_application_associations_request.UpdateInboundConnectorApplicationAssociationsRequest = {
        "aws_account_id": aws_account_id,
        "inbound_connector_id": inbound_connector_id,
    }
    if associate_access_control_applications is not None:
        input_["associate_access_control_applications"] = (
            associate_access_control_applications
        )
    if disassociate_access_control_applications is not None:
        input_["disassociate_access_control_applications"] = (
            disassociate_access_control_applications
        )

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