You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::EC2::Types::UserData

  • Object
show all
Defined in:



When passing UserData as input to an Aws::Client method, you can use a vanilla Hash:

  data: "String",

Describes the user data for an instance.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details


The user data. If you are using an AWS SDK or command line tool, Base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide Base64-encoded text.


  • (String)

    The user data.