Skip to content

update_access_control_application

update_access_control_application(
    aws_account_id: AwsAccountId,
    application_id: ShortRestrictiveResourceId,
    *,
    config_overrides: Optional[QuickSightClientConfig] = None,
    name: Optional[ResourceName] = None,
    description: Optional[AccessControlApplicationDescription] = None,
    idp_authorizing_configuration: Optional[IdpAuthorizingConfigUpdateInput] = None,
    quick_authentication_configuration: Optional[QuickAuthenticationConfigInput] = None,
    status: Optional[AccessControlApplicationStatus] = None,
) -> UpdateAccessControlApplicationResponse

Updates an access control application. You can change its name, description, status, IdP settings such as the client ID and issuer URL, and its Quick Sight authentication settings such as redirect URIs.

You can't change the IdpAuthorizingType, the QuickAuthenticationType, or the trusted token issuer after the application is created. To manage client secrets, use CreateAccessControlApplicationSecret, UpdateAccessControlApplicationSecret, and DeleteAccessControlApplicationSecret.

Parameters:

  • aws_account_id (AwsAccountId) –

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

  • application_id (ShortRestrictiveResourceId) –

    The ID of the access control application.

  • name (Optional[ResourceName], default: None ) –

    The new name of the access control application.

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

    The new description of the access control application.

  • idp_authorizing_configuration (Optional[IdpAuthorizingConfigUpdateInput], default: None ) –

    The identity provider settings to update, such as the client ID and issuer URL. You can't change the IdpAuthorizingType or the trusted token issuer. To manage client secrets, use the client secret operations.

  • quick_authentication_configuration (Optional[QuickAuthenticationConfigInput], default: None ) –

    The Quick Sight authentication settings to update, such as redirect URIs. You can't change the QuickAuthenticationType.

  • status (Optional[AccessControlApplicationStatus], default: None ) –

    The new status of the access control application.

Raises:

  • AccessDeniedException –

    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.

  • ConflictException –

    Updating or deleting a resource can cause an inconsistent state.

  • InternalFailureException –

    An internal failure occurred.

  • InvalidParameterValueException –

    One or more parameters has a value that isn't valid.

  • ResourceNotFoundException –

    One or more resources can't be found.

  • ThrottlingException –

    Access is throttled.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_quicksight/_services/quick_sight.py
def update_access_control_application(
    self,
    aws_account_id: "capo_quicksight.types.aws_account_id.AwsAccountId",
    application_id: "capo_quicksight.types.short_restrictive_resource_id.ShortRestrictiveResourceId",
    *,
    config_overrides: Optional[QuickSightClientConfig] = None,
    name: Optional["capo_quicksight.types.resource_name.ResourceName"] = None,
    description: Optional[
        "capo_quicksight.types.access_control_application_description.AccessControlApplicationDescription"
    ] = None,
    idp_authorizing_configuration: Optional[
        "capo_quicksight.types.idp_authorizing_config_update_input.IdpAuthorizingConfigUpdateInput"
    ] = None,
    quick_authentication_configuration: Optional[
        "capo_quicksight.types.quick_authentication_config_input.QuickAuthenticationConfigInput"
    ] = None,
    status: Optional[
        "capo_quicksight.types.access_control_application_status.AccessControlApplicationStatus"
    ] = None,
) -> "capo_quicksight.types.update_access_control_application_response.UpdateAccessControlApplicationResponse":
    """<p>Updates an access control application. You can change its name, description, status, IdP settings such as the client ID and issuer URL, and its Quick Sight authentication settings such as redirect URIs.</p> <p>You can't change the <code>IdpAuthorizingType</code>, the <code>QuickAuthenticationType</code>, or the trusted token issuer after the application is created. To manage client secrets, use <code>CreateAccessControlApplicationSecret</code>, <code>UpdateAccessControlApplicationSecret</code>, and <code>DeleteAccessControlApplicationSecret</code>.</p>

    Args:
        aws_account_id: <p>The ID of the Amazon Web Services account that contains the Quick Sight account.</p>
        application_id: <p>The ID of the access control application.</p>
        name: <p>The new name of the access control application.</p>
        description: <p>The new description of the access control application.</p>
        idp_authorizing_configuration: <p>The identity provider settings to update, such as the client ID and issuer URL. You can't change the <code>IdpAuthorizingType</code> or the trusted token issuer. To manage client secrets, use the client secret operations.</p>
        quick_authentication_configuration: <p>The Quick Sight authentication settings to update, such as redirect URIs. You can't change the <code>QuickAuthenticationType</code>.</p>
        status: <p>The new status of the access control application.</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.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.
    """

    def _handler(
        req: "OperationRequest[capo_quicksight.types.update_access_control_application_request.UpdateAccessControlApplicationRequest]",
    ) -> OperationResponse[
        "capo_quicksight.types.update_access_control_application_response.UpdateAccessControlApplicationResponse"
    ]:
        import capo_quicksight._operations.quick_sight_20180401.update_access_control_application

        output, http_response = (
            capo_quicksight._operations.quick_sight_20180401.update_access_control_application.update_access_control_application(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateAccessControlApplication")
    )
    input_: capo_quicksight.types.update_access_control_application_request.UpdateAccessControlApplicationRequest = {
        "aws_account_id": aws_account_id,
        "application_id": application_id,
    }
    if name is not None:
        input_["name"] = name
    if description is not None:
        input_["description"] = description
    if idp_authorizing_configuration is not None:
        input_["idp_authorizing_configuration"] = idp_authorizing_configuration
    if quick_authentication_configuration is not None:
        input_["quick_authentication_configuration"] = (
            quick_authentication_configuration
        )
    if status is not None:
        input_["status"] = status

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