:doc:`FMS <../../fms>` / Client / put_notification_channel

************************
put_notification_channel
************************



.. py:method:: FMS.Client.put_notification_channel(**kwargs)

  

  Designates the IAM role and Amazon Simple Notification Service (SNS) topic that Firewall Manager uses to record SNS logs.

   

  To perform this action outside of the console, you must first configure the SNS topic's access policy to allow the ``SnsRoleName`` to publish SNS logs. If the ``SnsRoleName`` provided is a role other than the ``AWSServiceRoleForFMS`` service-linked role, this role must have a trust relationship configured to allow the Firewall Manager service principal ``fms.amazonaws.com`` to assume this role. For information about configuring an SNS access policy, see `Service roles for Firewall Manager <https://docs.aws.amazon.com/waf/latest/developerguide/fms-security_iam_service-with-iam.html#fms-security_iam_service-with-iam-roles-service>`__ in the *Firewall Manager Developer Guide*.

  

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


  **Request Syntax**
  ::

    response = client.put_notification_channel(
        SnsTopicArn='string',
        SnsRoleName='string'
    )
    
  :type SnsTopicArn: string
  :param SnsTopicArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the SNS topic that collects notifications from Firewall Manager.

    

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

    The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to record Firewall Manager activity.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`FMS.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`FMS.Client.exceptions.InvalidOperationException`

  
  *   :py:class:`FMS.Client.exceptions.InternalErrorException`

  