:doc:`Route53Profiles <../../route53profiles>` / Client / associate_resource_to_profile

*****************************
associate_resource_to_profile
*****************************



.. py:method:: Route53Profiles.Client.associate_resource_to_profile(**kwargs)

  

  Associates a DNS reource configuration to a Route 53 Profile.

  

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


  **Request Syntax**
  ::

    response = client.associate_resource_to_profile(
        Name='string',
        ProfileId='string',
        ResourceArn='string',
        ResourceProperties='string'
    )
    
  :type Name: string
  :param Name: **[REQUIRED]** 

    Name for the resource association.

    

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

    ID of the Profile.

    

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

    Amazon resource number, ARN, of the DNS resource.

    

  
  :type ResourceProperties: string
  :param ResourceProperties: 

    If you are adding a DNS Firewall rule group, include also a priority. The priority indicates the processing order for the rule groups, starting with the priority assinged the lowest value.

     

    The allowed values for priority are between 100 and 9900.

    

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

    
    ::

      {
          'ProfileResourceAssociation': {
              'CreationTime': datetime(2015, 1, 1),
              'Id': 'string',
              'ModificationTime': datetime(2015, 1, 1),
              'Name': 'string',
              'OwnerId': 'string',
              'ProfileId': 'string',
              'ResourceArn': 'string',
              'ResourceProperties': 'string',
              'ResourceType': 'string',
              'Status': 'COMPLETE'|'DELETING'|'UPDATING'|'CREATING'|'DELETED'|'FAILED',
              'StatusMessage': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ProfileResourceAssociation** *(dict) --* 

        Infromation about the ``AssociateResourceToProfile``, including a status message.

        
        

        - **CreationTime** *(datetime) --* 

          The date and time that the Profile resource association was created, in Unix time format and Coordinated Universal Time (UTC).

          
        

        - **Id** *(string) --* 

          ID of the Profile resource association.

          
        

        - **ModificationTime** *(datetime) --* 

          The date and time that the Profile resource association was modified, in Unix time format and Coordinated Universal Time (UTC).

          
        

        - **Name** *(string) --* 

          Name of the Profile resource association.

          
        

        - **OwnerId** *(string) --* 

          Amazon Web Services account ID of the Profile resource association owner.

          
        

        - **ProfileId** *(string) --* 

          Profile ID of the Profile that the resources are associated with.

          
        

        - **ResourceArn** *(string) --* 

          The Amazon Resource Name (ARN) of the resource association.

          
        

        - **ResourceProperties** *(string) --* 

          If the DNS resource is a DNS Firewall rule group, this indicates the priority.

          
        

        - **ResourceType** *(string) --* 

          Resource type, such as a private hosted zone, or DNS Firewall rule group.

          
        

        - **Status** *(string) --* 

          Status of the Profile resource association.

          
        

        - **StatusMessage** *(string) --* 

          Additional information about the Profile resource association.

          
    
  
  **Exceptions**
  
  *   :py:class:`Route53Profiles.Client.exceptions.ResourceNotFoundException`

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

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

  
  *   :py:class:`Route53Profiles.Client.exceptions.InvalidParameterException`

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

  
  *   :py:class:`Route53Profiles.Client.exceptions.ValidationException`

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

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

  