You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::IoT::Types::OTAUpdateFile

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

Overview

Note:

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

{
  file_name: "FileName",
  file_version: "OTAUpdateFileVersion",
  file_source: {
    stream_id: "StreamId",
    file_id: 1,
  },
  code_signing: {
    aws_signer_job_id: "SigningJobId",
    custom_code_signing: {
      signature: {
        stream: {
          stream_id: "StreamId",
          file_id: 1,
        },
        inline_document: "data",
      },
      certificate_chain: {
        stream: {
          stream_id: "StreamId",
          file_id: 1,
        },
        certificate_name: "CertificateName",
        inline_document: "InlineDocument",
      },
      hash_algorithm: "HashAlgorithm",
      signature_algorithm: "SignatureAlgorithm",
    },
  },
  attributes: {
    "Key" => "Value",
  },
}

Describes a file to be associated with an OTA update.

Instance Attribute Summary collapse

Instance Attribute Details

#attributesHash<String,String>

A list of name/attribute pairs.

Returns:

  • (Hash<String,String>)


5458
5459
5460
5461
5462
5463
5464
5465
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 5458

class OTAUpdateFile < Struct.new(
  :file_name,
  :file_version,
  :file_source,
  :code_signing,
  :attributes)
  include Aws::Structure
end

#code_signingTypes::CodeSigning

The code signing method of the file.

Returns:



5458
5459
5460
5461
5462
5463
5464
5465
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 5458

class OTAUpdateFile < Struct.new(
  :file_name,
  :file_version,
  :file_source,
  :code_signing,
  :attributes)
  include Aws::Structure
end

#file_nameString

The name of the file.

Returns:

  • (String)


5458
5459
5460
5461
5462
5463
5464
5465
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 5458

class OTAUpdateFile < Struct.new(
  :file_name,
  :file_version,
  :file_source,
  :code_signing,
  :attributes)
  include Aws::Structure
end

#file_sourceTypes::Stream

The source of the file.

Returns:



5458
5459
5460
5461
5462
5463
5464
5465
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 5458

class OTAUpdateFile < Struct.new(
  :file_name,
  :file_version,
  :file_source,
  :code_signing,
  :attributes)
  include Aws::Structure
end

#file_versionString

The file version.

Returns:

  • (String)


5458
5459
5460
5461
5462
5463
5464
5465
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 5458

class OTAUpdateFile < Struct.new(
  :file_name,
  :file_version,
  :file_source,
  :code_signing,
  :attributes)
  include Aws::Structure
end