Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Basic Operations

The following

...

basic operations are available for the AWS Injector Module and can be executed within any of the available Ignition

...

Warning

Configuration changes made through scripting do not have the same validation as when made through the UI. 

For example, deleting a Sets configuring that is being referenced by a Servers configuration will result in the UI showing an Internal Error. Follow the instructions here to recover the configuration.

APIs

...

  • Parameters
    • String type
      • The type of configuration to create with valid options:

        • Kinesis

        • Dynamo

        • Agents

        • Sets

    • Map props
      • Dictionary of properties making up the configuration with the following keys and datatypes:
        • Kinesis
          • Id (long)(cannot be null)

          • Name (str) 

          • Enabled (bool) 

          • UseAwsKeys (bool)(added 4.0.22)
          • AwsAccessKey (str) 

          • AwsSecretKey (str) 

          • EnableSessionTokens (bool) 

          • RoleARN (str) 

          • SessionDuration (int) 

          • RoleSessionName (str) 

          • StreamName (str) 

          • FirehoseStream (bool) 

          • AwsRegion (str) 

          • AwsSetId (long) (must be included)

          • HistoryEnabled (bool) 

          • HistoryStoreType (str) "In_Memory" or "Disk_Backed" (added 4.0.17)

          • MessageCapacity (int)(deprecated 4.0.19)

          • HistoryMaxSize (int)(added 4.0.22)
          • HistoryMaxAge (int)(added 4.0.19)
          • FlushPeriod (long) 

          • PartitionKeyCount (int) 

          • PartitionKeyPattern (str) 

          • MaxSize (int)

          • H2dbDirectory (str)(added 4.0.25) 

          • H2dbPort (int)(added 4.0.22)
        • Dynamo
          • Id (long)(cannot be null)

          • Name (str) 

          • Enabled (bool) 

          • AwsAccessKey (str) 

          • AwsSecretKey (str) 

          • TableName (str) 

          • AwsRegion (str) 

          • AwsSetId (long) (must be included)

          • HistoryEnabled (bool) 

          • HistoryStoreType (str) "In_Memory" or "Disk_Backed" (added 4.0.17)

          • MessageCapacity (int)(deprecated 4.0.19)

          • HistoryMaxSize (int)(added 4.0.22)
          • HistoryMaxAge (int)(added 4.0.19)
          • FlushPeriod (long) 

          • H2dbDirectory (str)(added 4.0.25)
          • H2dbPort (int)(added 4.0.22)
        • Agents
          • Id (long)(cannot be null)

          • Name (str) (added 4.0.17)

          • Enabled (bool) (added 4.0.17)

          • TagProvider (str) 

          • TagPath (str) 

          • PushTrigger (str) "EVENT_DRIVEN", "PERIODIC" or "HYBRID" 

          • TagPacingPeriod (long) 

          • ConvertUdts (bool) 

          • PublishUdtDefinitions (bool) 

          • OptimizeUdts (bool) 

          • AwsSetId (long)(must be included)

          • GroupId (str) 

          • EdgeNodeId (str) 

          • DeviceId (str) 

          • FilteredProperties (str)

          • SendAllProps (bool)(added 4.0.25)

          • IncludeInfoFolders (bool)(added 4.0.30)

        • Sets
          • Id (long)(cannot be null) 

          • Name (str) 

          • Description (str) 

          • PushPolicy (str) "PUSH_TO_ALL" or "PUSH_TO_ANY"

  • Return Value
    • A map representing the newly created configuration after it has been written to the database. (added 4.0.16)

...

  • Parameters
    • String type
      • The type of configuration to read with valid options:

        • General
        • Kinesis
        • Dynamo
        • Agents
        • Sets
  • Return Value
    • A List of Dictionaries of properties making up the configurations with the following keys and datatypes:
      • General
        • Id (long)

        • Enabled (bool)

      • Kinesis
        • Id (long) 

        • Name (str) 

        • Enabled (bool)

        • EnableAwsKeys (bool)(added 4.0.22) 

        • AwsAccessKey (str) 

        • AwsSecretKey (str) 

        • EnableSessionTokens (bool) 

        • RoleARN (str) 

        • SessionDuration (int) 

        • RoleSessionName (str) 

        • StreamName (str) 

        • FirehoseStream (bool) 

        • AwsRegion (str) 

        • AwsSetId (long) 

        • HistoryEnabled (bool) 

        • HistoryStoreType (str) "In_Memory" or "Disk_Backed" (added 4.0.17)

        • MessageCapacity (int)(deprecated 4.0.19)

        • HistoryMaxSize (int)(added 4.0.22)
        • HistoryMaxAge (int)(added 4.0.19)
        • FlushPeriod (long) 

        • PartitionKeyCount (int) 

        • PartitionKeyPattern (str) 

        • MaxSize (int) 

        • H2dbDirectory (str)(added 4.0.25)
        • H2dbPort (int)(added 4.0.22)
      • Dynamo
        • Id (long) 

        • Name (str) 

        • Enabled (bool) 

        • AwsAccessKey (str) 

        • AwsSecretKey (str) 

        • TableName (str) 

        • AwsRegion (str) 

        • AwsSetId (long) 

        • HistoryEnabled (bool) 

        • HistoryStoreType (str) "In_Memory" or "Disk_Backed" (added 4.0.17)

        • MessageCapacity (int)(deprecated 4.0.19)

        • HistoryMaxSize (int)(added 4.0.22)
        • HistoryMaxAge (int)(added 4.0.19)
        • FlushPeriod (long)

        • H2dbDirectory (str)(added 4.0.25) 

        • H2dbPort (int)(added 4.0.22)
      • Agents
        • Id (long) 

        • Name (str) (added 4.0.17)
        • Enabled (bool) (added 4.0.17)
        • TagProvider (str) 

        • TagPath (str) 

        • PushTrigger (str) "EVENT_DRIVEN", "PERIODIC" or "HYBRID" 

        • TagPacingPeriod (long) 

        • ConvertUdts (bool) 

        • PublishUdtDefinitions (bool) 

        • OptimizeUdts (bool) 

        • AwsSetId (long) 

        • GroupId (str) 

        • EdgeNodeId (str) 

        • DeviceId (str) 

        • FilteredProperties (str) 

        • SendAllProps (bool)(added 4.0.25)
        • IncludeInfoFolders (bool)(added 4.0.30)
      • Sets
        • Id (long) 

        • Name (str) 

        • Description (str) 

        • PushPolicy (str) "PUSH_TO_ALL" or "PUSH_TO_ANY"

...

scopes using the format system.cirruslink.aws.operation

  • createConfig(type, name, config, enabled, description)
    • enabled (boolean) and description (string) are optional calls
    • returns a dictionary that represents the config.json of the specified resource
  • deleteConfig(type, name)
    • returns a boolean
  • getConfigNames(type, enabled)
    • enabled is an optional call
    • returns a list strings
  • isConfigEnabled(type, name)
    • returns a boolean
  • readConfig(type, name)
    • returns a dictionary that represents the config.json of the specified resource
  • setConfigEnabled(type, name, enabled)
    • returns a boolean 
  • updateConfig(type, name, collisionPolicy, config)
    • returns a dictionary that represents the config.json of the specified resource

where:

  • type
    • string denoting the type of configuration to operate on
  • name
    • string denoting the unique name for the configuration resource to operate on
  • config
    • dictionary of properties making up the configuration resource to operate on
      • general
      • dynamo-db
      • kinesis
      • server-set
      • agent
  • enabled
    • boolean
  • collisionPolicy
    • string with options "MergeOverwrite" or "Overwrite"
      • "MergeOverwrite" will replace the existing properties in the resource name with only those included in the call
      • "Overwrite" will replace all properties in the resource name with those in the call


Warning

Configuration changes made through scripting do have the same validation as when made through the UI. 

For example, attempting to delete a Sets configuring that is being referenced by a Servers configuration will result in no action being performed.



AWS Injector 'type' keys

  • general
  • dynamo-db
  • kinesis
  • server-set
  • agent

AWS Injector 'general' keys

enabledboolean

Whether or not the configuration resource is enabled

AWS Injector 'dynamo-db' keys

enabledboolean

Whether or not the configuration resource is enabled

namestring

The unique name for the configuration resource

awsAccessKeystring

AWS Access Key

awsSecretKeystring

AWS Secret Key

awsRegionstring

AWS Region

serverSetstring

The Set this DynamoDB setting is associated with

tableNamestring

DynamoDB Table Name

historyEnabledbooleanEnable Store and Forward capabilities for this stream
historyStoreTypestringThe Type of this Store & Forward mechanism
partionPeriodstringThe partitioning scheme to use for the Disk-backed history store (e.g. HOUR, MINUTE, DAY, etc)
historyMaxSizeintegerMaximum number of megabytes history can use before dropping the data
trimmerTaskPeriodMultiplierintegerA integer multiplier which is applied to the 'storageMonitorPeriod' which results in the period in which to trim potential excess history
historyMaxAgeintegerMaximum number of minutes to store history before dropping the data
queryTimeoutintegerThe H2 DB query timeout in seconds for the disk-backed history store
flushPeriodlongUpon reestablishing communication, the period to wait in milliseconds between sending when flushing messages
h2dbDirectorystringDirectory to store the H2 Database in. Applicable for Disk-backed history store only
h2dbPortintegerTCP Port to connect to H2 Database. Applicable for Disk-backed history store only
dbMaxMessageSizeintegerThe Max Message size allowed in the Store and Forward DB. This only applies to Disk-Backed history stores
republishBirthsbooleanWhether or not to republish BIRTH messages on reestablishing connection to the endpoint

AWS Injector 'kinesis' keys

enabledboolean

Whether or not the configuration resource is enabled

namestring

The unique name for the configuration resource

useAwsKeysboolean

Whether to use AWS access and secret keys or use an AWS EC2 instance with an AWS IAM role

awsAccessKeystring

AWS Access Key

awsSecretKeystring

AWS Secret Key

enableSessionTokensbooleanAWS Session Tokens
roleARNstringAWS Role ARN
sessionDurationintegerAWS Session Duration in seconds
roleSessionNamestringAWS Session Name
awsRegionstringAWS Region
serverSetstringThe Set this Kinesis Stream setting is associated with
streamNamestringKinesis Stream Name
firehoseStreambooleanEnables pushing directly into a Kinesis Data Firehose delivery stream
historyEnabledbooleanEnable Store and Forward capabilities for this stream
historyStoreTypestringThe Type of this Store & Forward mechanism
partionPeriodstringThe partitioning scheme to use for the Disk-backed history store (e.g. HOUR, MINUTE, DAY, etc)
historyMaxSizeintegerMaximum number of megabytes history can use before dropping the data
trimmerTaskPeriodMultiplierintegerA integer multiplier which is applied to the 'storageMonitorPeriod' which results in the period in which to trim potential excess history
historyMaxAgeintegerMaximum number of minutes to store history before dropping the data
queryTimeoutintegerThe H2 DB query timeout in seconds for the disk-backed history store
flushPeriodlongUpon reestablishing communication, the period to wait in milliseconds between sending when flushing messages
partionKeyCountintegerThe number of unique indexed partition keys
partionKeyPatternstringAn optional key pattern that supports token substitution for the following message fields: ${group}, ${edgenode}, and ${device}. This setting overrides the partition key count
maxSizeintegerMaximum message size before dividing into multiple messages
h2dbDirectorystringDirectory to store the H2 Database in. Applicable for Disk-backed history store only
h2dbPortintegerTCP Port to connect to H2 Database. Applicable for Disk-backed history store only
dbMaxMessageSizeintegerThe Max Message size allowed in the Store and Forward DB. This only applies to Disk-Backed history stores
republishBirthsbooleanWhether or not to republish BIRTH messages on reestablishing connection to the endpoint

AWS Injector 'server-set' keys

enabledboolean

Whether or not the configuration resource is enabled

namestring

The unique name for the configuration resource

descriptionstring

Description of this Set

pushPolicystringThe Push Policy defines whether all cloud end-points in a set will be pushed to or only one will at a time - PUSH_TO_ALL or PUSH_TO_ANY

AWS Injector 'agent' keys

enabledboolean

Whether or not the configuration resource is enabled

namestring

The unique name for the configuration resource

tagProviderstringThe Name of the tag provider
tagPathstringA path to the root folder where the tag tree starts (optional)
pushTriggerstring

The trigger to use when pushing data - EVENT_DRIVEN, PERIODIC or HYBRID

tagPacingPeriodlong

If using an EVENT_DRIVEN Push trigger, the waiting period in milliseconds after an initial tag change event before pushing all changed tags.

If using PERIODIC, the number of milliseconds to wait between pushing all data

convertUdtsbooleanConverts UDT members to normal Tags
sendAllPropsbooleanSend all properties, including non-default properties, in Sparkplug BIRTH messages
includeQualityContextbooleanInclude the metric 'quality context' string in addition to the quality codes for metrics
includeInfoFoldersbooleanPush all Node and Device Info and Control folder information (from MQTT Engine) rather than excluding it
publishUdtDefinitionsbooleanPublish UDT Definitions in BIRTH
optimizeUdtsbooleanOptimizes UDT payload sizes in NDATA and DDATA payloads
serverSetstringThe Set this Agent is associated with
groupIdstringAn ID representing a logical grouping of Edge Nodes and Devices (optional)
edgeNodeIdstringAn ID representing an Edge or Network (EoN) Node (optional)
deviceIdstringAn ID representing a Device (optional)
filteredPropertiesstringA semicolon delimited list of Tag properties to filter/block from being published
birthSettleDelaylongThe amount of time to wait after setting the BIRTH timestamp before fetching the cached BIRTH payloads
  • Parameters
    • String type
      • The type of configuration to update with valid options:

        • General
        • Kinesis
        • Dynamo
        • Agents
        • Sets
    • Long id
      • The ID of the record to update
    • String collisionPolicy
      • "MergeOverwrite" or "Overwrite"
        • "MergeOverwrite" will replace the existing properties in the record ID with only those included in the call
        • "Overwrite" will replace all properties in the record ID with those in the call
    • Map props
      • Dictionary of properties making up the configuration with the following keys and datatypes:
        • General
          • Id (long)

          • Enabled (bool)

        • Kinesis
          • Id (long) 

          • Name (str) 

          • Enabled (bool) 

          • UseAwsKeys (bool)(added 4.0.22)
          • AwsAccessKey (str) 

          • AwsSecretKey (str) 

          • EnableSessionTokens (bool) 

          • RoleARN (str) 

          • SessionDuration (int) 

          • RoleSessionName (str) 

          • StreamName (str) 

          • FirehoseStream (bool) 

          • AwsRegion (str) 

          • AwsSetId (long) 

          • HistoryEnabled (bool) 

          • HistoryStoreType (str) "In_Memory" or "Disk_Backed" (added 4.0.17)

          • MessageCapacity (int)(deprecated 4.0.19)

          • HistoryMaxSize (int)(added 4.0.22)
          • HistoryMaxAge (int)(added 4.0.19)
          • FlushPeriod (long) 

          • PartitionKeyCount (int) 

          • PartitionKeyPattern (str) 

          • MaxSize (int) 

          • H2dbDirectory (str)(added 4.0.25)
          • H2dbPort (int)(added 4.0.22)
        • Dynamo
          • Id (long) 

          • Name (str) 

          • Enabled (bool) 

          • AwsAccessKey (str) 

          • AwsSecretKey (str) 

          • TableName (str) 

          • AwsRegion (str) 

          • AwsSetId (long) 

          • HistoryEnabled (bool) 

          • HistoryStoreType (str) "In_Memory" or "Disk_Backed" (added 4.0.17)

          • MessageCapacity (int)(deprecated 4.0.19)

          • HistoryMaxSize (int)(added 4.0.22)
          • HistoryMaxAge (int)(added 4.0.19) 

          • FlushPeriod (long)

          • H2dbDirectory (str)(added 4.0.25) 

          • H2dbPort (int)(added 4.0.22)
        • Agents
          • Id (long) 

          • Name (str) (added 4.0.17)
          • Enabled (bool) (added 4.0.17)
          • TagProvider (str) 

          • TagPath (str) 

          • PushTrigger (str) "EVENT_DRIVEN", "PERIODIC" or "HYBRID" 

          • TagPacingPeriod (long) 

          • ConvertUdts (bool) 

          • PublishUdtDefinitions (bool) 

          • OptimizeUdts (bool) 

          • AwsSetId (long) 

          • GroupId (str) 

          • EdgeNodeId (str) 

          • DeviceId (str) 

          • FilteredProperties (str)

          • SendAllProps (bool)(added 4.0.25) 

          • IncludeInfoFolders (bool)(added 4.0.30)
        • Sets
          • Id (long) 

          • Name (str) 

          • Description (str) 

          • PushPolicy (str) "PUSH_TO_ALL" or "PUSH_TO_ANY"

  • Return Value
    • A map representing the updated configuration after it has been written to the database. (added 4.0.16)

...

  • String type
    • The type of configuration to delete with valid options:

      • Kinesis
      • Dynamo
      • Agents
      • Sets
  • Long id
    • The ID of the record to delete

...