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

Class: Aws::Amplify::Types::CreateDeploymentRequest

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

Overview

Note:

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

{
  app_id: "AppId", # required
  branch_name: "BranchName", # required
  file_map: {
    "FileName" => "MD5Hash",
  },
}

Request structure for create a new deployment.

Instance Attribute Summary collapse

Instance Attribute Details

#app_idString

Unique Id for an Amplify App.

Returns:

  • (String)


609
610
611
612
613
614
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 609

class CreateDeploymentRequest < Struct.new(
  :app_id,
  :branch_name,
  :file_map)
  include Aws::Structure
end

#branch_nameString

Name for the branch, for the Job.

Returns:

  • (String)


609
610
611
612
613
614
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 609

class CreateDeploymentRequest < Struct.new(
  :app_id,
  :branch_name,
  :file_map)
  include Aws::Structure
end

#file_mapHash<String,String>

Optional file map that contains file name as the key and file content md5 hash as the value. If this argument is provided, the service will generate different upload url per file. Otherwise, the service will only generate a single upload url for the zipped files.

Returns:

  • (Hash<String,String>)


609
610
611
612
613
614
# File 'gems/aws-sdk-amplify/lib/aws-sdk-amplify/types.rb', line 609

class CreateDeploymentRequest < Struct.new(
  :app_id,
  :branch_name,
  :file_map)
  include Aws::Structure
end