This documentation is for a prerelease version of O3DE. Click here to switch to the latest release, or select a version from the dropdown.

Version:

AWS Core Scripting

This topic demonstrates the Script Canvas nodes that the AWS Core Gem defines.

Amazon S3

GetObject

Input data pins:

  • Bucket Resource KeyName
  • Object KeyName
  • Outfile Name

If the function is successful, you will get a success message from the OnGetObjectSuccess event handler on the AWSS3BehaviorNotificationBus bus. The file downloads to the location specified as the Outfile Name.

If the function results in an error, you will get an error message from the OnGetObjectError event handler on the AWSS3BehaviorNotificationBus bus.

Scripting AWS S3 GetObject node

HeadObject

Input data pins:

  • Bucket Resource KeyName
  • Object KeyName

If the function is successful, you will get a success message from the OnHeadObjectSuccess event handler on the AWSS3BehaviorNotificationBus bus.

If the function results in an error, you will get an error message from the OnHeadObjectError event handler on the AWSS3BehaviorNotificationBus bus.

Scripting AWS S3 HeadObject node

Amazon DynamoDB

GetItem

Input data pins:

  • Table Resource KeyName
  • Key Map

Key map variable format:

GetItem - Key variable properties

Refer to AttributeValue in the Amazon DynamoDB API Reference.

If the function is successful, you will get a result in the AttributeValue string map from the OnGetItemSuccess event handler on the AWSDynamoDBBehaviorNotificationBus bus.

If the function results in an error, you will get an error message from the OnGetItemError event handler on the AWSDynamoDBBehaviorNotificationBus bus.

Scripting AWS DynamoDB GetItem node

AWS Lambda

Invoke

Input data pins:

  • Function Resource KeyName
  • Payload

If the function is successful, you will get the return value from the OnInvokeSuccess event handler on the AWSLambdaBehaviorNotificationBus bus.

If the function results in an error, you will get an error message from the OnInvokeError event handler on the AWSLambdaBehaviorNotificationBus bus.

Scripting AWS Lambda Invoke node