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_type: 1,
  file_version: "OTAUpdateFileVersion",
  file_location: {
    stream: {
      stream_id: "StreamId",
      file_id: 1,
    },
    s3_location: {
      bucket: "S3Bucket",
      key: "S3Key",
      version: "S3Version",
    },
  },
  code_signing: {
    aws_signer_job_id: "SigningJobId",
    start_signing_job_parameter: {
      signing_profile_parameter: {
        certificate_arn: "CertificateArn",
        platform: "Platform",
        certificate_path_on_device: "CertificatePathOnDevice",
      },
      signing_profile_name: "SigningProfileName",
      destination: {
        s3_destination: {
          bucket: "S3Bucket",
          prefix: "Prefix",
        },
      },
    },
    custom_code_signing: {
      signature: {
        inline_document: "data",
      },
      certificate_chain: {
        certificate_name: "CertificateName",
        inline_document: "InlineDocument",
      },
      hash_algorithm: "HashAlgorithm",
      signature_algorithm: "SignatureAlgorithm",
    },
  },
  attributes: {
    "AttributeKey" => "Value",
  },
}

Describes a file to be associated with an OTA update.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#attributesHash<String,String>

A list of name/attribute pairs.

Returns:

  • (Hash<String,String>)


14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 14062

class OTAUpdateFile < Struct.new(
  :file_name,
  :file_type,
  :file_version,
  :file_location,
  :code_signing,
  :attributes)
  SENSITIVE = []
  include Aws::Structure
end

#code_signingTypes::CodeSigning

The code signing method of the file.

Returns:



14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 14062

class OTAUpdateFile < Struct.new(
  :file_name,
  :file_type,
  :file_version,
  :file_location,
  :code_signing,
  :attributes)
  SENSITIVE = []
  include Aws::Structure
end

#file_locationTypes::FileLocation

The location of the updated firmware.

Returns:



14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 14062

class OTAUpdateFile < Struct.new(
  :file_name,
  :file_type,
  :file_version,
  :file_location,
  :code_signing,
  :attributes)
  SENSITIVE = []
  include Aws::Structure
end

#file_nameString

The name of the file.

Returns:

  • (String)


14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 14062

class OTAUpdateFile < Struct.new(
  :file_name,
  :file_type,
  :file_version,
  :file_location,
  :code_signing,
  :attributes)
  SENSITIVE = []
  include Aws::Structure
end

#file_typeInteger

An integer value you can include in the job document to allow your devices to identify the type of file received from the cloud.

Returns:

  • (Integer)


14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 14062

class OTAUpdateFile < Struct.new(
  :file_name,
  :file_type,
  :file_version,
  :file_location,
  :code_signing,
  :attributes)
  SENSITIVE = []
  include Aws::Structure
end

#file_versionString

The file version.

Returns:

  • (String)


14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 14062

class OTAUpdateFile < Struct.new(
  :file_name,
  :file_type,
  :file_version,
  :file_location,
  :code_signing,
  :attributes)
  SENSITIVE = []
  include Aws::Structure
end