

# Union
<a name="API_Union"></a>

Specifies a transform that combines the rows from two or more datasets into a single result.

## Contents
<a name="API_Union_Contents"></a>

 ** Inputs **   <a name="Glue-Type-Union-Inputs"></a>
The node ID inputs to the transform.  
Type: Array of strings  
Array Members: Fixed number of 2 items.  
Pattern: `[A-Za-z0-9_-]*`   
Required: Yes

 ** Name **   <a name="Glue-Type-Union-Name"></a>
The name of the transform node.  
Type: String  
Pattern: `([^\r\n])*`   
Required: Yes

 ** UnionType **   <a name="Glue-Type-Union-UnionType"></a>
Indicates the type of Union transform.   
Specify `ALL` to join all rows from data sources to the resulting DynamicFrame. The resulting union does not remove duplicate rows.  
Specify `DISTINCT` to remove duplicate rows in the resulting DynamicFrame.  
Type: String  
Valid Values: `ALL | DISTINCT`   
Required: Yes

## See Also
<a name="API_Union_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/glue-2017-03-31/Union) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/glue-2017-03-31/Union) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/glue-2017-03-31/Union) 