:doc:`IAMRolesAnywhere <../../rolesanywhere>` / Client / reset_notification_settings

***************************
reset_notification_settings
***************************



.. py:method:: IAMRolesAnywhere.Client.reset_notification_settings(**kwargs)

  

  Resets the *custom notification setting* to IAM Roles Anywhere default setting.

   

  **Required permissions:** ``rolesanywhere:ResetNotificationSettings``.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/rolesanywhere-2018-05-10/ResetNotificationSettings>`_  


  **Request Syntax**
  ::

    response = client.reset_notification_settings(
        trustAnchorId='string',
        notificationSettingKeys=[
            {
                'event': 'CA_CERTIFICATE_EXPIRY'|'END_ENTITY_CERTIFICATE_EXPIRY',
                'channel': 'ALL'
            },
        ]
    )
    
  :type trustAnchorId: string
  :param trustAnchorId: **[REQUIRED]** 

    The unique identifier of the trust anchor.

    

  
  :type notificationSettingKeys: list
  :param notificationSettingKeys: **[REQUIRED]** 

    A list of notification setting keys to reset. A notification setting key includes the event and the channel.

    

  
    - *(dict) --* 

      A notification setting key to reset. A notification setting key includes the event and the channel.

      

    
      - **event** *(string) --* **[REQUIRED]** 

        The notification setting event to reset.

        

      
      - **channel** *(string) --* 

        The specified channel of notification.

        

      
    

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

    
    ::

      {
          'trustAnchor': {
              'trustAnchorId': 'string',
              'trustAnchorArn': 'string',
              'name': 'string',
              'source': {
                  'sourceType': 'AWS_ACM_PCA'|'CERTIFICATE_BUNDLE'|'SELF_SIGNED_REPOSITORY',
                  'sourceData': {
                      'x509CertificateData': 'string',
                      'acmPcaArn': 'string'
                  }
              },
              'enabled': True|False,
              'createdAt': datetime(2015, 1, 1),
              'updatedAt': datetime(2015, 1, 1),
              'notificationSettings': [
                  {
                      'enabled': True|False,
                      'event': 'CA_CERTIFICATE_EXPIRY'|'END_ENTITY_CERTIFICATE_EXPIRY',
                      'threshold': 123,
                      'channel': 'ALL',
                      'configuredBy': 'string'
                  },
              ]
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **trustAnchor** *(dict) --* 

        The state of the trust anchor after a read or write operation.

        
        

        - **trustAnchorId** *(string) --* 

          The unique identifier of the trust anchor.

          
        

        - **trustAnchorArn** *(string) --* 

          The ARN of the trust anchor.

          
        

        - **name** *(string) --* 

          The name of the trust anchor.

          
        

        - **source** *(dict) --* 

          The trust anchor type and its related certificate data.

          
          

          - **sourceType** *(string) --* 

            The type of the trust anchor.

            
          

          - **sourceData** *(dict) --* 

            The data field of the trust anchor depending on its type.

            .. note::    This is a Tagged Union structure. Only one of the     following top level keys will be set: ``x509CertificateData``, ``acmPcaArn``.     If a client receives an unknown member it will     set ``SDK_UNKNOWN_MEMBER`` as the top level key,     which maps to the name or tag of the unknown     member. The structure of ``SDK_UNKNOWN_MEMBER`` is     as follows::

                        'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}


          
            

            - **x509CertificateData** *(string) --* 

              The PEM-encoded data for the certificate anchor. Included for trust anchors of type ``CERTIFICATE_BUNDLE``.

              
            

            - **acmPcaArn** *(string) --* 

              The root certificate of the Private Certificate Authority specified by this ARN is used in trust validation for temporary credential requests. Included for trust anchors of type ``AWS_ACM_PCA``.

              
        
      
        

        - **enabled** *(boolean) --* 

          Indicates whether the trust anchor is enabled.

          
        

        - **createdAt** *(datetime) --* 

          The ISO-8601 timestamp when the trust anchor was created.

          
        

        - **updatedAt** *(datetime) --* 

          The ISO-8601 timestamp when the trust anchor was last updated.

          
        

        - **notificationSettings** *(list) --* 

          A list of notification settings to be associated to the trust anchor.

          
          

          - *(dict) --* 

            The state of a notification setting.

             

            A notification setting includes information such as event name, threshold, status of the notification setting, and the channel to notify.

            
            

            - **enabled** *(boolean) --* 

              Indicates whether the notification setting is enabled.

              
            

            - **event** *(string) --* 

              The event to which this notification setting is applied.

              
            

            - **threshold** *(integer) --* 

              The number of days before a notification event.

              
            

            - **channel** *(string) --* 

              The specified channel of notification. IAM Roles Anywhere uses CloudWatch metrics, EventBridge, and Health Dashboard to notify for an event.

               

              .. note::

                

                In the absence of a specific channel, IAM Roles Anywhere applies this setting to 'ALL' channels.

                

              
            

            - **configuredBy** *(string) --* 

              The principal that configured the notification setting. For default settings configured by IAM Roles Anywhere, the value is ``rolesanywhere.amazonaws.com``, and for customized notifications settings, it is the respective account ID.

              
        
      
    
  
  **Exceptions**
  
  *   :py:class:`IAMRolesAnywhere.Client.exceptions.ValidationException`

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

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

  