/* * 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 databrew-2017-07-25.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.GlueDataBrew.Model { /// <summary> /// Container for the parameters to the CreateRecipeJob operation. /// Creates a new job to transform input data, using steps defined in an existing Glue /// DataBrew recipe /// </summary> public partial class CreateRecipeJobRequest : AmazonGlueDataBrewRequest { private List<DatabaseOutput> _databaseOutputs = new List<DatabaseOutput>(); private List<DataCatalogOutput> _dataCatalogOutputs = new List<DataCatalogOutput>(); private string _datasetName; private string _encryptionKeyArn; private EncryptionMode _encryptionMode; private LogSubscription _logSubscription; private int? _maxCapacity; private int? _maxRetries; private string _name; private List<Output> _outputs = new List<Output>(); private string _projectName; private RecipeReference _recipeReference; private string _roleArn; private Dictionary<string, string> _tags = new Dictionary<string, string>(); private int? _timeout; /// <summary> /// Gets and sets the property DatabaseOutputs. /// <para> /// Represents a list of JDBC database output objects which defines the output destination /// for a DataBrew recipe job to write to. /// </para> /// </summary> [AWSProperty(Min=1)] public List<DatabaseOutput> DatabaseOutputs { get { return this._databaseOutputs; } set { this._databaseOutputs = value; } } // Check to see if DatabaseOutputs property is set internal bool IsSetDatabaseOutputs() { return this._databaseOutputs != null && this._databaseOutputs.Count > 0; } /// <summary> /// Gets and sets the property DataCatalogOutputs. /// <para> /// One or more artifacts that represent the Glue Data Catalog output from running the /// job. /// </para> /// </summary> [AWSProperty(Min=1)] public List<DataCatalogOutput> DataCatalogOutputs { get { return this._dataCatalogOutputs; } set { this._dataCatalogOutputs = value; } } // Check to see if DataCatalogOutputs property is set internal bool IsSetDataCatalogOutputs() { return this._dataCatalogOutputs != null && this._dataCatalogOutputs.Count > 0; } /// <summary> /// Gets and sets the property DatasetName. /// <para> /// The name of the dataset that this job processes. /// </para> /// </summary> [AWSProperty(Min=1, Max=255)] public string DatasetName { get { return this._datasetName; } set { this._datasetName = value; } } // Check to see if DatasetName property is set internal bool IsSetDatasetName() { return this._datasetName != null; } /// <summary> /// Gets and sets the property EncryptionKeyArn. /// <para> /// The Amazon Resource Name (ARN) of an encryption key that is used to protect the job. /// </para> /// </summary> [AWSProperty(Min=20, Max=2048)] public string EncryptionKeyArn { get { return this._encryptionKeyArn; } set { this._encryptionKeyArn = value; } } // Check to see if EncryptionKeyArn property is set internal bool IsSetEncryptionKeyArn() { return this._encryptionKeyArn != null; } /// <summary> /// Gets and sets the property EncryptionMode. /// <para> /// The encryption mode for the job, which can be one of the following: /// </para> /// <ul> <li> /// <para> /// <code>SSE-KMS</code> - Server-side encryption with keys managed by KMS. /// </para> /// </li> <li> /// <para> /// <code>SSE-S3</code> - Server-side encryption with keys managed by Amazon S3. /// </para> /// </li> </ul> /// </summary> public EncryptionMode EncryptionMode { get { return this._encryptionMode; } set { this._encryptionMode = value; } } // Check to see if EncryptionMode property is set internal bool IsSetEncryptionMode() { return this._encryptionMode != null; } /// <summary> /// Gets and sets the property LogSubscription. /// <para> /// Enables or disables Amazon CloudWatch logging for the job. If logging is enabled, /// CloudWatch writes one log stream for each job run. /// </para> /// </summary> public LogSubscription LogSubscription { get { return this._logSubscription; } set { this._logSubscription = value; } } // Check to see if LogSubscription property is set internal bool IsSetLogSubscription() { return this._logSubscription != null; } /// <summary> /// Gets and sets the property MaxCapacity. /// <para> /// The maximum number of nodes that DataBrew can consume when the job processes data. /// </para> /// </summary> public int MaxCapacity { get { return this._maxCapacity.GetValueOrDefault(); } set { this._maxCapacity = value; } } // Check to see if MaxCapacity property is set internal bool IsSetMaxCapacity() { return this._maxCapacity.HasValue; } /// <summary> /// Gets and sets the property MaxRetries. /// <para> /// The maximum number of times to retry the job after a job run fails. /// </para> /// </summary> [AWSProperty(Min=0)] public int MaxRetries { get { return this._maxRetries.GetValueOrDefault(); } set { this._maxRetries = value; } } // Check to see if MaxRetries property is set internal bool IsSetMaxRetries() { return this._maxRetries.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// A unique name for the job. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen /// (-), period (.), and space. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=240)] 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; } /// <summary> /// Gets and sets the property Outputs. /// <para> /// One or more artifacts that represent the output from running the job. /// </para> /// </summary> [AWSProperty(Min=1)] public List<Output> Outputs { get { return this._outputs; } set { this._outputs = value; } } // Check to see if Outputs property is set internal bool IsSetOutputs() { return this._outputs != null && this._outputs.Count > 0; } /// <summary> /// Gets and sets the property ProjectName. /// <para> /// Either the name of an existing project, or a combination of a recipe and a dataset /// to associate with the recipe. /// </para> /// </summary> [AWSProperty(Min=1, Max=255)] public string ProjectName { get { return this._projectName; } set { this._projectName = value; } } // Check to see if ProjectName property is set internal bool IsSetProjectName() { return this._projectName != null; } /// <summary> /// Gets and sets the property RecipeReference. /// </summary> public RecipeReference RecipeReference { get { return this._recipeReference; } set { this._recipeReference = value; } } // Check to see if RecipeReference property is set internal bool IsSetRecipeReference() { return this._recipeReference != null; } /// <summary> /// Gets and sets the property RoleArn. /// <para> /// The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role to /// be assumed when DataBrew runs the job. /// </para> /// </summary> [AWSProperty(Required=true, Min=20, Max=2048)] public string RoleArn { get { return this._roleArn; } set { this._roleArn = value; } } // Check to see if RoleArn property is set internal bool IsSetRoleArn() { return this._roleArn != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// Metadata tags to apply to this job. /// </para> /// </summary> [AWSProperty(Min=1, Max=200)] public Dictionary<string, string> 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; } /// <summary> /// Gets and sets the property Timeout. /// <para> /// The job's timeout in minutes. A job that attempts to run longer than this timeout /// period ends with a status of <code>TIMEOUT</code>. /// </para> /// </summary> [AWSProperty(Min=0)] public int Timeout { get { return this._timeout.GetValueOrDefault(); } set { this._timeout = value; } } // Check to see if Timeout property is set internal bool IsSetTimeout() { return this._timeout.HasValue; } } }