:doc:`GlobalAccelerator <../../globalaccelerator>` / Client / update_accelerator_attributes

*****************************
update_accelerator_attributes
*****************************



.. py:method:: GlobalAccelerator.Client.update_accelerator_attributes(**kwargs)

  

  Update the attributes for an accelerator.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/UpdateAcceleratorAttributes>`_  


  **Request Syntax**
  ::

    response = client.update_accelerator_attributes(
        AcceleratorArn='string',
        FlowLogsEnabled=True|False,
        FlowLogsS3Bucket='string',
        FlowLogsS3Prefix='string'
    )
    
  :type AcceleratorArn: string
  :param AcceleratorArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the accelerator that you want to update.

    

  
  :type FlowLogsEnabled: boolean
  :param FlowLogsEnabled: 

    Update whether flow logs are enabled. The default value is false. If the value is true, ``FlowLogsS3Bucket`` and ``FlowLogsS3Prefix`` must be specified.

     

    For more information, see `Flow Logs <https://docs.aws.amazon.com/global-accelerator/latest/dg/monitoring-global-accelerator.flow-logs.html>`__ in the *Global Accelerator Developer Guide*.

    

  
  :type FlowLogsS3Bucket: string
  :param FlowLogsS3Bucket: 

    The name of the Amazon S3 bucket for the flow logs. Attribute is required if ``FlowLogsEnabled`` is ``true``. The bucket must exist and have a bucket policy that grants Global Accelerator permission to write to the bucket.

    

  
  :type FlowLogsS3Prefix: string
  :param FlowLogsS3Prefix: 

    Update the prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if ``FlowLogsEnabled`` is ``true``.

     

    If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a double slash (//), like the following:

     

    s3-bucket_name//AWSLogs/aws_account_id

    

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

    
    ::

      {
          'AcceleratorAttributes': {
              'FlowLogsEnabled': True|False,
              'FlowLogsS3Bucket': 'string',
              'FlowLogsS3Prefix': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **AcceleratorAttributes** *(dict) --* 

        Updated attributes for the accelerator.

        
        

        - **FlowLogsEnabled** *(boolean) --* 

          Indicates whether flow logs are enabled. The default value is false. If the value is true, ``FlowLogsS3Bucket`` and ``FlowLogsS3Prefix`` must be specified.

           

          For more information, see `Flow logs <https://docs.aws.amazon.com/global-accelerator/latest/dg/monitoring-global-accelerator.flow-logs.html>`__ in the *Global Accelerator Developer Guide*.

          
        

        - **FlowLogsS3Bucket** *(string) --* 

          The name of the Amazon S3 bucket for the flow logs. Attribute is required if ``FlowLogsEnabled`` is ``true``. The bucket must exist and have a bucket policy that grants Global Accelerator permission to write to the bucket.

          
        

        - **FlowLogsS3Prefix** *(string) --* 

          The prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if ``FlowLogsEnabled`` is ``true``.

           

          If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a double slash (//), like the following:

           

          s3-bucket_name//AWSLogs/aws_account_id

          
    
  
  **Exceptions**
  
  *   :py:class:`GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException`

  
  *   :py:class:`GlobalAccelerator.Client.exceptions.InternalServiceErrorException`

  
  *   :py:class:`GlobalAccelerator.Client.exceptions.InvalidArgumentException`

  
  *   :py:class:`GlobalAccelerator.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`GlobalAccelerator.Client.exceptions.TransactionInProgressException`

  