:doc:`ServiceResource <index>` / Sub-Resource / StackResource

*************
StackResource
*************



.. py:method:: CloudFormation.ServiceResource.StackResource(stack_name,logical_id)

  Creates a StackResource resource.::

    stack_resource = cloudformation.StackResource('stack_name','logical_id')

  :type stack_name: string
  :param stack_name: The StackResource's stack_name identifier. This **must** be set.
  :type logical_id: string
  :param logical_id: The StackResource's logical_id identifier. This **must** be set.
  
  :rtype: :py:class:`CloudFormation.StackResource`
  :returns: A StackResource resource
  