Menu
AWS Greengrass
API Reference

CreateSubscriptionDefinitionVersion

Creates a version of a subscription definition which has already been defined.

URI: /greengrass/definition/subscriptions/SubscriptionDefinitionId/versions

Operation: POST

Produces: application/json

Parameters:

  • SubscriptionDefinitionId

    The id of the subscription definition.

    where used: path

    required: true

    type: string

  • CreateSubscriptionDefinitionVersionRequestBody

    Information needed to create a subscription definition version.

    where used: body

    required: true

    schema:

    SubscriptionDefinitionVersion

    type: object

    Information about a subscription definition version.

    properties:

    • Subscriptions

      A list of subscriptions in the version.

      type: array

      items:
      Subscription

      type: object

      Information about a subscription.

      required: Id|Source|Subject|Target

      properties:

      • Id:

        The id of the subscription.

        type: string

      • Source:

        The source of the subscription. Can be a thing arn, lambda arn or the word 'cloud'.

        type: string

      • Subject:

        The subject of the message.

        type: string

      • Target:

        Where the message is sent to. Can be a thing arn, lambda arn or the word 'cloud'.

        type: string

    Example:

    Copy
    { "Subscriptions": [ { "Id": "string", "Source": "string", "Subject": "string", "Target": "string" } ] }
  • X-Amzn-Client-Token

    A client token used to correlate requests and responses.

    where used: header

    required: false

    type: string

Responses: