package
0.0.0-20230502073429-587acefb9ced
Repository: https://github.com/ayh20/flogo-components.git
Documentation: pkg.go.dev

# README

Amazon Invoke Sagemaker

Simple Sagemaker function invoke

Installation

flogo install github.com/ayh20/flogo-components/activity/sagemaker

Link for flogo web:

https://github.com/ayh20/flogo-components/activity/sagemaker

Schema

Inputs and Outputs:

{
  "inputs": [
    {
      "name": "awsAccessKeyID",
      "type": "string",
      "required": true
    },
    {
      "name": "awsSecretAccessKey",
      "type": "string",
      "required": true
    },
    {
      "name": "assumeRole",
      "type": "boolean",
      "required": true
    },
    {
      "name": "roleARN",
      "type": "string",
      "required": false
    },
    {
      "name": "roleSessionName",
      "type": "string",
      "required": false
    },
    {
      "name": "awsRegion",
      "type": "string",
      "required": true
    },
    {
      "name": "endpointname",
      "type": "string",
      "required": true
    },
    {
      "name": "body",
      "type": "string",
      "required": true
    },
    {
      "name": "contenttype",
      "type": "string",
      "required": true
    }
  ],
  "outputs": [
    {
      "name": "result",
      "type": "string"
    }
  ]
}

Inputs

InputDescription
awsAccessKeyIDYour AWS Access Key
awsSecretAccessKeyYour AWS Secret Key
assumeRoleFlag to say if you need to switch role to run the task
roleARNThe Role ARN that is to be switched too
roleSessionNameA name for the active session
awsRegionThe AWS region your S3 bucket is in
endpointnameThe name of the Sagemaker enpoint
bodyThe data to be passed to the Sagemaker deployed model
contenttypeThe format of the body data ie "text/csv" or ""application/json""

Ouputs

OutputDescription
resultThe result will contain the value returned from the Sagemaker invoke

# Functions

NewActivity creates a new activity.

# Constants

ID to lookup a service endpoint with.
ErrCodeInternalFailure for service response error code "InternalFailure".
ErrCodeModelError for service response error code "ModelError".
ErrCodeServiceUnavailable for service response error code "ServiceUnavailable".
ErrCodeValidationError for service response error code "ValidationError".
ServiceID is a unique identifier of a specific service.
Name of service.

# Structs

MyActivity is a stub for your Activity implementation.