Class: Aws::IoT::Types::RepublishAction

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-iot/types.rb

Overview

Note:

When making an API call, you may pass RepublishAction data as a hash:

{
  role_arn: "AwsArn", # required
  topic: "TopicPattern", # required
  qos: 1,
  headers: {
    payload_format_indicator: "PayloadFormatIndicator",
    content_type: "ContentType",
    response_topic: "ResponseTopic",
    correlation_data: "CorrelationData",
    message_expiry: "MessageExpiry",
    user_properties: [
      {
        key: "UserPropertyKey", # required
        value: "UserPropertyValue", # required
      },
    ],
  },
}

Describes an action to republish to another topic.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#headersTypes::MqttHeaders

MQTT Version 5.0 headers information. For more information, see [ MQTT] from the Amazon Web Services IoT Core Developer Guide.

[1]: docs.aws.amazon.com/iot/latest/developerguide/mqtt.html

Returns:



16384
16385
16386
16387
16388
16389
16390
16391
# File 'lib/aws-sdk-iot/types.rb', line 16384

class RepublishAction < Struct.new(
  :role_arn,
  :topic,
  :qos,
  :headers)
  SENSITIVE = []
  include Aws::Structure
end

#qosInteger

The Quality of Service (QoS) level to use when republishing messages. The default value is 0.

Returns:

  • (Integer)


16384
16385
16386
16387
16388
16389
16390
16391
# File 'lib/aws-sdk-iot/types.rb', line 16384

class RepublishAction < Struct.new(
  :role_arn,
  :topic,
  :qos,
  :headers)
  SENSITIVE = []
  include Aws::Structure
end

#role_arnString

The ARN of the IAM role that grants access.

Returns:

  • (String)


16384
16385
16386
16387
16388
16389
16390
16391
# File 'lib/aws-sdk-iot/types.rb', line 16384

class RepublishAction < Struct.new(
  :role_arn,
  :topic,
  :qos,
  :headers)
  SENSITIVE = []
  include Aws::Structure
end

#topicString

The name of the MQTT topic.

Returns:

  • (String)


16384
16385
16386
16387
16388
16389
16390
16391
# File 'lib/aws-sdk-iot/types.rb', line 16384

class RepublishAction < Struct.new(
  :role_arn,
  :topic,
  :qos,
  :headers)
  SENSITIVE = []
  include Aws::Structure
end