AWS SDK for C++  1.9.131
AWS SDK for C++
Public Member Functions | List of all members
Aws::EMR::Model::InstanceTypeConfig Class Reference

#include <InstanceTypeConfig.h>

Public Member Functions

 InstanceTypeConfig ()
 
 InstanceTypeConfig (Aws::Utils::Json::JsonView jsonValue)
 
InstanceTypeConfigoperator= (Aws::Utils::Json::JsonView jsonValue)
 
Aws::Utils::Json::JsonValue Jsonize () const
 
const Aws::StringGetInstanceType () const
 
bool InstanceTypeHasBeenSet () const
 
void SetInstanceType (const Aws::String &value)
 
void SetInstanceType (Aws::String &&value)
 
void SetInstanceType (const char *value)
 
InstanceTypeConfigWithInstanceType (const Aws::String &value)
 
InstanceTypeConfigWithInstanceType (Aws::String &&value)
 
InstanceTypeConfigWithInstanceType (const char *value)
 
int GetWeightedCapacity () const
 
bool WeightedCapacityHasBeenSet () const
 
void SetWeightedCapacity (int value)
 
InstanceTypeConfigWithWeightedCapacity (int value)
 
const Aws::StringGetBidPrice () const
 
bool BidPriceHasBeenSet () const
 
void SetBidPrice (const Aws::String &value)
 
void SetBidPrice (Aws::String &&value)
 
void SetBidPrice (const char *value)
 
InstanceTypeConfigWithBidPrice (const Aws::String &value)
 
InstanceTypeConfigWithBidPrice (Aws::String &&value)
 
InstanceTypeConfigWithBidPrice (const char *value)
 
double GetBidPriceAsPercentageOfOnDemandPrice () const
 
bool BidPriceAsPercentageOfOnDemandPriceHasBeenSet () const
 
void SetBidPriceAsPercentageOfOnDemandPrice (double value)
 
InstanceTypeConfigWithBidPriceAsPercentageOfOnDemandPrice (double value)
 
const EbsConfigurationGetEbsConfiguration () const
 
bool EbsConfigurationHasBeenSet () const
 
void SetEbsConfiguration (const EbsConfiguration &value)
 
void SetEbsConfiguration (EbsConfiguration &&value)
 
InstanceTypeConfigWithEbsConfiguration (const EbsConfiguration &value)
 
InstanceTypeConfigWithEbsConfiguration (EbsConfiguration &&value)
 
const Aws::Vector< Configuration > & GetConfigurations () const
 
bool ConfigurationsHasBeenSet () const
 
void SetConfigurations (const Aws::Vector< Configuration > &value)
 
void SetConfigurations (Aws::Vector< Configuration > &&value)
 
InstanceTypeConfigWithConfigurations (const Aws::Vector< Configuration > &value)
 
InstanceTypeConfigWithConfigurations (Aws::Vector< Configuration > &&value)
 
InstanceTypeConfigAddConfigurations (const Configuration &value)
 
InstanceTypeConfigAddConfigurations (Configuration &&value)
 
const Aws::StringGetCustomAmiId () const
 
bool CustomAmiIdHasBeenSet () const
 
void SetCustomAmiId (const Aws::String &value)
 
void SetCustomAmiId (Aws::String &&value)
 
void SetCustomAmiId (const char *value)
 
InstanceTypeConfigWithCustomAmiId (const Aws::String &value)
 
InstanceTypeConfigWithCustomAmiId (Aws::String &&value)
 
InstanceTypeConfigWithCustomAmiId (const char *value)
 

Detailed Description

An instance type configuration for each instance type in an instance fleet, which determines the EC2 instances Amazon EMR attempts to provision to fulfill On-Demand and Spot target capacities. When you use an allocation strategy, you can include a maximum of 30 instance type configurations for a fleet. For more information about how to use an allocation strategy, see Configure Instance Fleets. Without an allocation strategy, you may specify a maximum of five instance type configurations for a fleet.

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.

See Also:

AWS API Reference

Definition at line 43 of file InstanceTypeConfig.h.

Constructor & Destructor Documentation

◆ InstanceTypeConfig() [1/2]

Aws::EMR::Model::InstanceTypeConfig::InstanceTypeConfig ( )

◆ InstanceTypeConfig() [2/2]

Aws::EMR::Model::InstanceTypeConfig::InstanceTypeConfig ( Aws::Utils::Json::JsonView  jsonValue)

Member Function Documentation

◆ AddConfigurations() [1/2]

InstanceTypeConfig& Aws::EMR::Model::InstanceTypeConfig::AddConfigurations ( Configuration &&  value)
inline

A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.

Definition at line 319 of file InstanceTypeConfig.h.

◆ AddConfigurations() [2/2]

InstanceTypeConfig& Aws::EMR::Model::InstanceTypeConfig::AddConfigurations ( const Configuration value)
inline

A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.

Definition at line 312 of file InstanceTypeConfig.h.

◆ BidPriceAsPercentageOfOnDemandPriceHasBeenSet()

bool Aws::EMR::Model::InstanceTypeConfig::BidPriceAsPercentageOfOnDemandPriceHasBeenSet ( ) const
inline

The bid price, as a percentage of On-Demand price, for each EC2 Spot Instance as defined by InstanceType. Expressed as a number (for example, 20 specifies 20%). If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.

Definition at line 207 of file InstanceTypeConfig.h.

◆ BidPriceHasBeenSet()

bool Aws::EMR::Model::InstanceTypeConfig::BidPriceHasBeenSet ( ) const
inline

The bid price for each EC2 Spot Instance type as defined by InstanceType. Expressed in USD. If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.

Definition at line 140 of file InstanceTypeConfig.h.

◆ ConfigurationsHasBeenSet()

bool Aws::EMR::Model::InstanceTypeConfig::ConfigurationsHasBeenSet ( ) const
inline

A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.

Definition at line 277 of file InstanceTypeConfig.h.

◆ CustomAmiIdHasBeenSet()

bool Aws::EMR::Model::InstanceTypeConfig::CustomAmiIdHasBeenSet ( ) const
inline

The custom AMI ID to use for the instance type.

Definition at line 330 of file InstanceTypeConfig.h.

◆ EbsConfigurationHasBeenSet()

bool Aws::EMR::Model::InstanceTypeConfig::EbsConfigurationHasBeenSet ( ) const
inline

The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined by InstanceType.

Definition at line 238 of file InstanceTypeConfig.h.

◆ GetBidPrice()

const Aws::String& Aws::EMR::Model::InstanceTypeConfig::GetBidPrice ( ) const
inline

The bid price for each EC2 Spot Instance type as defined by InstanceType. Expressed in USD. If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.

Definition at line 132 of file InstanceTypeConfig.h.

◆ GetBidPriceAsPercentageOfOnDemandPrice()

double Aws::EMR::Model::InstanceTypeConfig::GetBidPriceAsPercentageOfOnDemandPrice ( ) const
inline

The bid price, as a percentage of On-Demand price, for each EC2 Spot Instance as defined by InstanceType. Expressed as a number (for example, 20 specifies 20%). If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.

Definition at line 198 of file InstanceTypeConfig.h.

◆ GetConfigurations()

const Aws::Vector<Configuration>& Aws::EMR::Model::InstanceTypeConfig::GetConfigurations ( ) const
inline

A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.

Definition at line 270 of file InstanceTypeConfig.h.

◆ GetCustomAmiId()

const Aws::String& Aws::EMR::Model::InstanceTypeConfig::GetCustomAmiId ( ) const
inline

The custom AMI ID to use for the instance type.

Definition at line 325 of file InstanceTypeConfig.h.

◆ GetEbsConfiguration()

const EbsConfiguration& Aws::EMR::Model::InstanceTypeConfig::GetEbsConfiguration ( ) const
inline

The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined by InstanceType.

Definition at line 232 of file InstanceTypeConfig.h.

◆ GetInstanceType()

const Aws::String& Aws::EMR::Model::InstanceTypeConfig::GetInstanceType ( ) const
inline

An EC2 instance type, such as m3.xlarge.

Definition at line 55 of file InstanceTypeConfig.h.

◆ GetWeightedCapacity()

int Aws::EMR::Model::InstanceTypeConfig::GetWeightedCapacity ( ) const
inline

The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in InstanceFleetConfig. This value is 1 for a master instance fleet, and must be 1 or greater for core and task instance fleets. Defaults to 1 if not specified.

Definition at line 99 of file InstanceTypeConfig.h.

◆ InstanceTypeHasBeenSet()

bool Aws::EMR::Model::InstanceTypeConfig::InstanceTypeHasBeenSet ( ) const
inline

An EC2 instance type, such as m3.xlarge.

Definition at line 60 of file InstanceTypeConfig.h.

◆ Jsonize()

Aws::Utils::Json::JsonValue Aws::EMR::Model::InstanceTypeConfig::Jsonize ( ) const

◆ operator=()

InstanceTypeConfig& Aws::EMR::Model::InstanceTypeConfig::operator= ( Aws::Utils::Json::JsonView  jsonValue)

◆ SetBidPrice() [1/3]

void Aws::EMR::Model::InstanceTypeConfig::SetBidPrice ( Aws::String &&  value)
inline

The bid price for each EC2 Spot Instance type as defined by InstanceType. Expressed in USD. If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.

Definition at line 156 of file InstanceTypeConfig.h.

◆ SetBidPrice() [2/3]

void Aws::EMR::Model::InstanceTypeConfig::SetBidPrice ( const Aws::String value)
inline

The bid price for each EC2 Spot Instance type as defined by InstanceType. Expressed in USD. If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.

Definition at line 148 of file InstanceTypeConfig.h.

◆ SetBidPrice() [3/3]

void Aws::EMR::Model::InstanceTypeConfig::SetBidPrice ( const char *  value)
inline

The bid price for each EC2 Spot Instance type as defined by InstanceType. Expressed in USD. If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.

Definition at line 164 of file InstanceTypeConfig.h.

◆ SetBidPriceAsPercentageOfOnDemandPrice()

void Aws::EMR::Model::InstanceTypeConfig::SetBidPriceAsPercentageOfOnDemandPrice ( double  value)
inline

The bid price, as a percentage of On-Demand price, for each EC2 Spot Instance as defined by InstanceType. Expressed as a number (for example, 20 specifies 20%). If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.

Definition at line 216 of file InstanceTypeConfig.h.

◆ SetConfigurations() [1/2]

void Aws::EMR::Model::InstanceTypeConfig::SetConfigurations ( Aws::Vector< Configuration > &&  value)
inline

A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.

Definition at line 291 of file InstanceTypeConfig.h.

◆ SetConfigurations() [2/2]

void Aws::EMR::Model::InstanceTypeConfig::SetConfigurations ( const Aws::Vector< Configuration > &  value)
inline

A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.

Definition at line 284 of file InstanceTypeConfig.h.

◆ SetCustomAmiId() [1/3]

void Aws::EMR::Model::InstanceTypeConfig::SetCustomAmiId ( Aws::String &&  value)
inline

The custom AMI ID to use for the instance type.

Definition at line 340 of file InstanceTypeConfig.h.

◆ SetCustomAmiId() [2/3]

void Aws::EMR::Model::InstanceTypeConfig::SetCustomAmiId ( const Aws::String value)
inline

The custom AMI ID to use for the instance type.

Definition at line 335 of file InstanceTypeConfig.h.

◆ SetCustomAmiId() [3/3]

void Aws::EMR::Model::InstanceTypeConfig::SetCustomAmiId ( const char *  value)
inline

The custom AMI ID to use for the instance type.

Definition at line 345 of file InstanceTypeConfig.h.

◆ SetEbsConfiguration() [1/2]

void Aws::EMR::Model::InstanceTypeConfig::SetEbsConfiguration ( const EbsConfiguration value)
inline

The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined by InstanceType.

Definition at line 244 of file InstanceTypeConfig.h.

◆ SetEbsConfiguration() [2/2]

void Aws::EMR::Model::InstanceTypeConfig::SetEbsConfiguration ( EbsConfiguration &&  value)
inline

The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined by InstanceType.

Definition at line 250 of file InstanceTypeConfig.h.

◆ SetInstanceType() [1/3]

void Aws::EMR::Model::InstanceTypeConfig::SetInstanceType ( Aws::String &&  value)
inline

An EC2 instance type, such as m3.xlarge.

Definition at line 70 of file InstanceTypeConfig.h.

◆ SetInstanceType() [2/3]

void Aws::EMR::Model::InstanceTypeConfig::SetInstanceType ( const Aws::String value)
inline

An EC2 instance type, such as m3.xlarge.

Definition at line 65 of file InstanceTypeConfig.h.

◆ SetInstanceType() [3/3]

void Aws::EMR::Model::InstanceTypeConfig::SetInstanceType ( const char *  value)
inline

An EC2 instance type, such as m3.xlarge.

Definition at line 75 of file InstanceTypeConfig.h.

◆ SetWeightedCapacity()

void Aws::EMR::Model::InstanceTypeConfig::SetWeightedCapacity ( int  value)
inline

The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in InstanceFleetConfig. This value is 1 for a master instance fleet, and must be 1 or greater for core and task instance fleets. Defaults to 1 if not specified.

Definition at line 115 of file InstanceTypeConfig.h.

◆ WeightedCapacityHasBeenSet()

bool Aws::EMR::Model::InstanceTypeConfig::WeightedCapacityHasBeenSet ( ) const
inline

The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in InstanceFleetConfig. This value is 1 for a master instance fleet, and must be 1 or greater for core and task instance fleets. Defaults to 1 if not specified.

Definition at line 107 of file InstanceTypeConfig.h.

◆ WithBidPrice() [1/3]

InstanceTypeConfig& Aws::EMR::Model::InstanceTypeConfig::WithBidPrice ( Aws::String &&  value)
inline

The bid price for each EC2 Spot Instance type as defined by InstanceType. Expressed in USD. If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.

Definition at line 180 of file InstanceTypeConfig.h.

◆ WithBidPrice() [2/3]

InstanceTypeConfig& Aws::EMR::Model::InstanceTypeConfig::WithBidPrice ( const Aws::String value)
inline

The bid price for each EC2 Spot Instance type as defined by InstanceType. Expressed in USD. If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.

Definition at line 172 of file InstanceTypeConfig.h.

◆ WithBidPrice() [3/3]

InstanceTypeConfig& Aws::EMR::Model::InstanceTypeConfig::WithBidPrice ( const char *  value)
inline

The bid price for each EC2 Spot Instance type as defined by InstanceType. Expressed in USD. If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.

Definition at line 188 of file InstanceTypeConfig.h.

◆ WithBidPriceAsPercentageOfOnDemandPrice()

InstanceTypeConfig& Aws::EMR::Model::InstanceTypeConfig::WithBidPriceAsPercentageOfOnDemandPrice ( double  value)
inline

The bid price, as a percentage of On-Demand price, for each EC2 Spot Instance as defined by InstanceType. Expressed as a number (for example, 20 specifies 20%). If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.

Definition at line 225 of file InstanceTypeConfig.h.

◆ WithConfigurations() [1/2]

InstanceTypeConfig& Aws::EMR::Model::InstanceTypeConfig::WithConfigurations ( Aws::Vector< Configuration > &&  value)
inline

A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.

Definition at line 305 of file InstanceTypeConfig.h.

◆ WithConfigurations() [2/2]

InstanceTypeConfig& Aws::EMR::Model::InstanceTypeConfig::WithConfigurations ( const Aws::Vector< Configuration > &  value)
inline

A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.

Definition at line 298 of file InstanceTypeConfig.h.

◆ WithCustomAmiId() [1/3]

InstanceTypeConfig& Aws::EMR::Model::InstanceTypeConfig::WithCustomAmiId ( Aws::String &&  value)
inline

The custom AMI ID to use for the instance type.

Definition at line 355 of file InstanceTypeConfig.h.

◆ WithCustomAmiId() [2/3]

InstanceTypeConfig& Aws::EMR::Model::InstanceTypeConfig::WithCustomAmiId ( const Aws::String value)
inline

The custom AMI ID to use for the instance type.

Definition at line 350 of file InstanceTypeConfig.h.

◆ WithCustomAmiId() [3/3]

InstanceTypeConfig& Aws::EMR::Model::InstanceTypeConfig::WithCustomAmiId ( const char *  value)
inline

The custom AMI ID to use for the instance type.

Definition at line 360 of file InstanceTypeConfig.h.

◆ WithEbsConfiguration() [1/2]

InstanceTypeConfig& Aws::EMR::Model::InstanceTypeConfig::WithEbsConfiguration ( const EbsConfiguration value)
inline

The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined by InstanceType.

Definition at line 256 of file InstanceTypeConfig.h.

◆ WithEbsConfiguration() [2/2]

InstanceTypeConfig& Aws::EMR::Model::InstanceTypeConfig::WithEbsConfiguration ( EbsConfiguration &&  value)
inline

The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined by InstanceType.

Definition at line 262 of file InstanceTypeConfig.h.

◆ WithInstanceType() [1/3]

InstanceTypeConfig& Aws::EMR::Model::InstanceTypeConfig::WithInstanceType ( Aws::String &&  value)
inline

An EC2 instance type, such as m3.xlarge.

Definition at line 85 of file InstanceTypeConfig.h.

◆ WithInstanceType() [2/3]

InstanceTypeConfig& Aws::EMR::Model::InstanceTypeConfig::WithInstanceType ( const Aws::String value)
inline

An EC2 instance type, such as m3.xlarge.

Definition at line 80 of file InstanceTypeConfig.h.

◆ WithInstanceType() [3/3]

InstanceTypeConfig& Aws::EMR::Model::InstanceTypeConfig::WithInstanceType ( const char *  value)
inline

An EC2 instance type, such as m3.xlarge.

Definition at line 90 of file InstanceTypeConfig.h.

◆ WithWeightedCapacity()

InstanceTypeConfig& Aws::EMR::Model::InstanceTypeConfig::WithWeightedCapacity ( int  value)
inline

The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in InstanceFleetConfig. This value is 1 for a master instance fleet, and must be 1 or greater for core and task instance fleets. Defaults to 1 if not specified.

Definition at line 123 of file InstanceTypeConfig.h.


The documentation for this class was generated from the following file: