/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the emr-serverless-2021-07-13.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.EMRServerless.Model
{
///
/// Information about a job run. A job run is a unit of work, such as a Spark JAR, Hive
/// query, or SparkSQL query, that you submit to an Amazon EMR Serverless application.
///
public partial class JobRun
{
private string _applicationId;
private string _arn;
private ResourceUtilization _billedResourceUtilization;
private ConfigurationOverrides _configurationOverrides;
private DateTime? _createdAt;
private string _createdBy;
private string _executionRole;
private long? _executionTimeoutMinutes;
private JobDriver _jobDriver;
private string _jobRunId;
private string _name;
private NetworkConfiguration _networkConfiguration;
private string _releaseLabel;
private JobRunState _state;
private string _stateDetails;
private Dictionary _tags = new Dictionary();
private int? _totalExecutionDurationSeconds;
private TotalResourceUtilization _totalResourceUtilization;
private DateTime? _updatedAt;
///
/// Gets and sets the property ApplicationId.
///
/// The ID of the application the job is running on.
///
///
[AWSProperty(Required=true, Min=1, Max=64)]
public string ApplicationId
{
get { return this._applicationId; }
set { this._applicationId = value; }
}
// Check to see if ApplicationId property is set
internal bool IsSetApplicationId()
{
return this._applicationId != null;
}
///
/// Gets and sets the property Arn.
///
/// The execution role ARN of the job run.
///
///
[AWSProperty(Required=true, Min=60, Max=1024)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
///
/// Gets and sets the property BilledResourceUtilization.
///
/// The aggregate vCPU, memory, and storage that Amazon Web Services has billed for the
/// job run. The billed resources include a 1-minute minimum usage for workers, plus additional
/// storage over 20 GB per worker. Note that billed resources do not include usage for
/// idle pre-initialized workers.
///
///
public ResourceUtilization BilledResourceUtilization
{
get { return this._billedResourceUtilization; }
set { this._billedResourceUtilization = value; }
}
// Check to see if BilledResourceUtilization property is set
internal bool IsSetBilledResourceUtilization()
{
return this._billedResourceUtilization != null;
}
///
/// Gets and sets the property ConfigurationOverrides.
///
/// The configuration settings that are used to override default configuration.
///
///
public ConfigurationOverrides ConfigurationOverrides
{
get { return this._configurationOverrides; }
set { this._configurationOverrides = value; }
}
// Check to see if ConfigurationOverrides property is set
internal bool IsSetConfigurationOverrides()
{
return this._configurationOverrides != null;
}
///
/// Gets and sets the property CreatedAt.
///
/// The date and time when the job run was created.
///
///
[AWSProperty(Required=true)]
public DateTime CreatedAt
{
get { return this._createdAt.GetValueOrDefault(); }
set { this._createdAt = value; }
}
// Check to see if CreatedAt property is set
internal bool IsSetCreatedAt()
{
return this._createdAt.HasValue;
}
///
/// Gets and sets the property CreatedBy.
///
/// The user who created the job run.
///
///
[AWSProperty(Required=true, Min=20, Max=2048)]
public string CreatedBy
{
get { return this._createdBy; }
set { this._createdBy = value; }
}
// Check to see if CreatedBy property is set
internal bool IsSetCreatedBy()
{
return this._createdBy != null;
}
///
/// Gets and sets the property ExecutionRole.
///
/// The execution role ARN of the job run.
///
///
[AWSProperty(Required=true, Min=20, Max=2048)]
public string ExecutionRole
{
get { return this._executionRole; }
set { this._executionRole = value; }
}
// Check to see if ExecutionRole property is set
internal bool IsSetExecutionRole()
{
return this._executionRole != null;
}
///
/// Gets and sets the property ExecutionTimeoutMinutes.
///
/// Returns the job run timeout value from the StartJobRun
call. If no timeout
/// was specified, then it returns the default timeout of 720 minutes.
///
///
[AWSProperty(Min=0, Max=1000000)]
public long ExecutionTimeoutMinutes
{
get { return this._executionTimeoutMinutes.GetValueOrDefault(); }
set { this._executionTimeoutMinutes = value; }
}
// Check to see if ExecutionTimeoutMinutes property is set
internal bool IsSetExecutionTimeoutMinutes()
{
return this._executionTimeoutMinutes.HasValue;
}
///
/// Gets and sets the property JobDriver.
///
/// The job driver for the job run.
///
///
[AWSProperty(Required=true)]
public JobDriver JobDriver
{
get { return this._jobDriver; }
set { this._jobDriver = value; }
}
// Check to see if JobDriver property is set
internal bool IsSetJobDriver()
{
return this._jobDriver != null;
}
///
/// Gets and sets the property JobRunId.
///
/// The ID of the job run.
///
///
[AWSProperty(Required=true, Min=1, Max=64)]
public string JobRunId
{
get { return this._jobRunId; }
set { this._jobRunId = value; }
}
// Check to see if JobRunId property is set
internal bool IsSetJobRunId()
{
return this._jobRunId != null;
}
///
/// Gets and sets the property Name.
///
/// The optional job run name. This doesn't have to be unique.
///
///
[AWSProperty(Min=1, Max=256)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property NetworkConfiguration.
///
public NetworkConfiguration NetworkConfiguration
{
get { return this._networkConfiguration; }
set { this._networkConfiguration = value; }
}
// Check to see if NetworkConfiguration property is set
internal bool IsSetNetworkConfiguration()
{
return this._networkConfiguration != null;
}
///
/// Gets and sets the property ReleaseLabel.
///
/// The Amazon EMR release associated with the application your job is running on.
///
///
[AWSProperty(Required=true, Min=1, Max=64)]
public string ReleaseLabel
{
get { return this._releaseLabel; }
set { this._releaseLabel = value; }
}
// Check to see if ReleaseLabel property is set
internal bool IsSetReleaseLabel()
{
return this._releaseLabel != null;
}
///
/// Gets and sets the property State.
///
/// The state of the job run.
///
///
[AWSProperty(Required=true)]
public JobRunState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
///
/// Gets and sets the property StateDetails.
///
/// The state details of the job run.
///
///
[AWSProperty(Required=true, Min=1, Max=256)]
public string StateDetails
{
get { return this._stateDetails; }
set { this._stateDetails = value; }
}
// Check to see if StateDetails property is set
internal bool IsSetStateDetails()
{
return this._stateDetails != null;
}
///
/// Gets and sets the property Tags.
///
/// The tags assigned to the job run.
///
///
[AWSProperty(Min=0, Max=200)]
public Dictionary Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
///
/// Gets and sets the property TotalExecutionDurationSeconds.
///
/// The job run total execution duration in seconds. This field is only available for
/// job runs in a COMPLETED
, FAILED
, or CANCELLED
/// state.
///
///
public int TotalExecutionDurationSeconds
{
get { return this._totalExecutionDurationSeconds.GetValueOrDefault(); }
set { this._totalExecutionDurationSeconds = value; }
}
// Check to see if TotalExecutionDurationSeconds property is set
internal bool IsSetTotalExecutionDurationSeconds()
{
return this._totalExecutionDurationSeconds.HasValue;
}
///
/// Gets and sets the property TotalResourceUtilization.
///
/// The aggregate vCPU, memory, and storage resources used from the time the job starts
/// to execute, until the time the job terminates, rounded up to the nearest second.
///
///
public TotalResourceUtilization TotalResourceUtilization
{
get { return this._totalResourceUtilization; }
set { this._totalResourceUtilization = value; }
}
// Check to see if TotalResourceUtilization property is set
internal bool IsSetTotalResourceUtilization()
{
return this._totalResourceUtilization != null;
}
///
/// Gets and sets the property UpdatedAt.
///
/// The date and time when the job run was updated.
///
///
[AWSProperty(Required=true)]
public DateTime UpdatedAt
{
get { return this._updatedAt.GetValueOrDefault(); }
set { this._updatedAt = value; }
}
// Check to see if UpdatedAt property is set
internal bool IsSetUpdatedAt()
{
return this._updatedAt.HasValue;
}
}
}