:doc:`QuickSight <../../quicksight>` / Client / update_topic_refresh_schedule

*****************************
update_topic_refresh_schedule
*****************************



.. py:method:: QuickSight.Client.update_topic_refresh_schedule(**kwargs)

  

  Updates a topic refresh schedule.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateTopicRefreshSchedule>`_  


  **Request Syntax**
  ::

    response = client.update_topic_refresh_schedule(
        AwsAccountId='string',
        TopicId='string',
        DatasetId='string',
        RefreshSchedule={
            'IsEnabled': True|False,
            'BasedOnSpiceSchedule': True|False,
            'StartingAt': datetime(2015, 1, 1),
            'Timezone': 'string',
            'RepeatAt': 'string',
            'TopicScheduleType': 'HOURLY'|'DAILY'|'WEEKLY'|'MONTHLY'
        }
    )
    
  :type AwsAccountId: string
  :param AwsAccountId: **[REQUIRED]** 

    The ID of the Amazon Web Services account that contains the topic whose refresh schedule you want to update.

    

  
  :type TopicId: string
  :param TopicId: **[REQUIRED]** 

    The ID of the topic that you want to modify. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

    

  
  :type DatasetId: string
  :param DatasetId: **[REQUIRED]** 

    The ID of the dataset.

    

  
  :type RefreshSchedule: dict
  :param RefreshSchedule: **[REQUIRED]** 

    The definition of a refresh schedule.

    

  
    - **IsEnabled** *(boolean) --* **[REQUIRED]** 

      A Boolean value that controls whether to schedule is enabled.

      

    
    - **BasedOnSpiceSchedule** *(boolean) --* **[REQUIRED]** 

      A Boolean value that controls whether to schedule runs at the same schedule that is specified in SPICE dataset.

      

    
    - **StartingAt** *(datetime) --* 

      The starting date and time for the refresh schedule.

      

    
    - **Timezone** *(string) --* 

      The timezone that you want the refresh schedule to use.

      

    
    - **RepeatAt** *(string) --* 

      The time of day when the refresh should run, for example, Monday-Sunday.

      

    
    - **TopicScheduleType** *(string) --* 

      The type of refresh schedule. Valid values for this structure are ``HOURLY``, ``DAILY``, ``WEEKLY``, and ``MONTHLY``.

      

    
  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'TopicId': 'string',
          'TopicArn': 'string',
          'DatasetArn': 'string',
          'Status': 123,
          'RequestId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **TopicId** *(string) --* 

        The ID of the topic that you want to modify. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

        
      

      - **TopicArn** *(string) --* 

        The Amazon Resource Name (ARN) of the topic.

        
      

      - **DatasetArn** *(string) --* 

        The Amazon Resource Name (ARN) of the dataset.

        
      

      - **Status** *(integer) --* 

        The HTTP status of the request.

        
      

      - **RequestId** *(string) --* 

        The Amazon Web Services request ID for this operation.

        
  
  **Exceptions**
  
  *   :py:class:`QuickSight.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`QuickSight.Client.exceptions.ConflictException`

  
  *   :py:class:`QuickSight.Client.exceptions.InvalidParameterValueException`

  
  *   :py:class:`QuickSight.Client.exceptions.LimitExceededException`

  
  *   :py:class:`QuickSight.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`QuickSight.Client.exceptions.ResourceExistsException`

  
  *   :py:class:`QuickSight.Client.exceptions.ThrottlingException`

  
  *   :py:class:`QuickSight.Client.exceptions.InternalFailureException`

  