Class: AWSCDK::Amplify::CfnApp::JobConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
amplify/cfn_app.rb

Overview

Describes the configuration details that apply to the jobs for an Amplify app.

Use JobConfig to apply configuration to jobs, such as customizing the build instance size when you create or update an Amplify app. For more information about customizable build instances, see Custom build instances in the Amplify User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(build_compute_type:) ⇒ JobConfigProperty

Returns a new instance of JobConfigProperty.

Parameters:

  • build_compute_type (String)

    Specifies the size of the build instance.



1127
1128
1129
1130
# File 'amplify/cfn_app.rb', line 1127

def initialize(build_compute_type:)
  @build_compute_type = build_compute_type
  Jsii::Type.check_type(@build_compute_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "buildComputeType")
end

Instance Attribute Details

#build_compute_typeString (readonly)

Specifies the size of the build instance.

Amplify supports three instance sizes: STANDARD_8GB , LARGE_16GB , and XLARGE_72GB . If you don't specify a value, Amplify uses the STANDARD_8GB default.

The following list describes the CPU, memory, and storage capacity for each build instance type:

  • STANDARD_8GB - - vCPUs: 4
  • Memory: 8 GiB
  • Disk space: 128 GB
  • LARGE_16GB - - vCPUs: 8
  • Memory: 16 GiB
  • Disk space: 128 GB
  • XLARGE_72GB - - vCPUs: 36
  • Memory: 72 GiB
  • Disk space: 256 GB


1150
1151
1152
# File 'amplify/cfn_app.rb', line 1150

def build_compute_type
  @build_compute_type
end

Class Method Details

.jsii_propertiesObject



1152
1153
1154
1155
1156
# File 'amplify/cfn_app.rb', line 1152

def self.jsii_properties
  {
    :build_compute_type => "buildComputeType",
  }
end

Instance Method Details

#to_jsiiObject



1158
1159
1160
1161
1162
1163
1164
# File 'amplify/cfn_app.rb', line 1158

def to_jsii
  result = {}
  result.merge!({
    "buildComputeType" => @build_compute_type,
  })
  result.compact
end