repo_name
stringlengths 1
52
| repo_creator
stringclasses 6
values | programming_language
stringclasses 4
values | code
stringlengths 0
9.68M
| num_lines
int64 1
234k
|
---|---|---|---|---|
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.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.AugmentedAIRuntime.Model
{
/// <summary>
/// Container for the parameters to the DeleteHumanLoop operation.
/// Deletes the specified human loop for a flow definition.
///
///
/// <para>
/// If the human loop was deleted, this operation will return a <code>ResourceNotFoundException</code>.
///
/// </para>
/// </summary>
public partial class DeleteHumanLoopRequest : AmazonAugmentedAIRuntimeRequest
{
private string _humanLoopName;
/// <summary>
/// Gets and sets the property HumanLoopName.
/// <para>
/// The name of the human loop that you want to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=63)]
public string HumanLoopName
{
get { return this._humanLoopName; }
set { this._humanLoopName = value; }
}
// Check to see if HumanLoopName property is set
internal bool IsSetHumanLoopName()
{
return this._humanLoopName != null;
}
}
}
| 65 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.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.AugmentedAIRuntime.Model
{
/// <summary>
/// This is the response object from the DeleteHumanLoop operation.
/// </summary>
public partial class DeleteHumanLoopResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.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.AugmentedAIRuntime.Model
{
/// <summary>
/// Container for the parameters to the DescribeHumanLoop operation.
/// Returns information about the specified human loop. If the human loop was deleted,
/// this operation will return a <code>ResourceNotFoundException</code> error.
/// </summary>
public partial class DescribeHumanLoopRequest : AmazonAugmentedAIRuntimeRequest
{
private string _humanLoopName;
/// <summary>
/// Gets and sets the property HumanLoopName.
/// <para>
/// The name of the human loop that you want information about.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=63)]
public string HumanLoopName
{
get { return this._humanLoopName; }
set { this._humanLoopName = value; }
}
// Check to see if HumanLoopName property is set
internal bool IsSetHumanLoopName()
{
return this._humanLoopName != null;
}
}
}
| 60 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.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.AugmentedAIRuntime.Model
{
/// <summary>
/// This is the response object from the DescribeHumanLoop operation.
/// </summary>
public partial class DescribeHumanLoopResponse : AmazonWebServiceResponse
{
private DateTime? _creationTime;
private string _failureCode;
private string _failureReason;
private string _flowDefinitionArn;
private string _humanLoopArn;
private string _humanLoopName;
private HumanLoopOutput _humanLoopOutput;
private HumanLoopStatus _humanLoopStatus;
/// <summary>
/// Gets and sets the property CreationTime.
/// <para>
/// The creation time when Amazon Augmented AI created the human loop.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
/// <summary>
/// Gets and sets the property FailureCode.
/// <para>
/// A failure code that identifies the type of failure.
/// </para>
///
/// <para>
/// Possible values: <code>ValidationError</code>, <code>Expired</code>, <code>InternalError</code>
///
/// </para>
/// </summary>
public string FailureCode
{
get { return this._failureCode; }
set { this._failureCode = value; }
}
// Check to see if FailureCode property is set
internal bool IsSetFailureCode()
{
return this._failureCode != null;
}
/// <summary>
/// Gets and sets the property FailureReason.
/// <para>
/// The reason why a human loop failed. The failure reason is returned when the status
/// of the human loop is <code>Failed</code>.
/// </para>
/// </summary>
public string FailureReason
{
get { return this._failureReason; }
set { this._failureReason = value; }
}
// Check to see if FailureReason property is set
internal bool IsSetFailureReason()
{
return this._failureReason != null;
}
/// <summary>
/// Gets and sets the property FlowDefinitionArn.
/// <para>
/// The Amazon Resource Name (ARN) of the flow definition.
/// </para>
/// </summary>
[AWSProperty(Required=true, Max=1024)]
public string FlowDefinitionArn
{
get { return this._flowDefinitionArn; }
set { this._flowDefinitionArn = value; }
}
// Check to see if FlowDefinitionArn property is set
internal bool IsSetFlowDefinitionArn()
{
return this._flowDefinitionArn != null;
}
/// <summary>
/// Gets and sets the property HumanLoopArn.
/// <para>
/// The Amazon Resource Name (ARN) of the human loop.
/// </para>
/// </summary>
[AWSProperty(Required=true, Max=1024)]
public string HumanLoopArn
{
get { return this._humanLoopArn; }
set { this._humanLoopArn = value; }
}
// Check to see if HumanLoopArn property is set
internal bool IsSetHumanLoopArn()
{
return this._humanLoopArn != null;
}
/// <summary>
/// Gets and sets the property HumanLoopName.
/// <para>
/// The name of the human loop. The name must be lowercase, unique within the Region in
/// your account, and can have up to 63 characters. Valid characters: a-z, 0-9, and -
/// (hyphen).
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=63)]
public string HumanLoopName
{
get { return this._humanLoopName; }
set { this._humanLoopName = value; }
}
// Check to see if HumanLoopName property is set
internal bool IsSetHumanLoopName()
{
return this._humanLoopName != null;
}
/// <summary>
/// Gets and sets the property HumanLoopOutput.
/// <para>
/// An object that contains information about the output of the human loop.
/// </para>
/// </summary>
public HumanLoopOutput HumanLoopOutput
{
get { return this._humanLoopOutput; }
set { this._humanLoopOutput = value; }
}
// Check to see if HumanLoopOutput property is set
internal bool IsSetHumanLoopOutput()
{
return this._humanLoopOutput != null;
}
/// <summary>
/// Gets and sets the property HumanLoopStatus.
/// <para>
/// The status of the human loop.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public HumanLoopStatus HumanLoopStatus
{
get { return this._humanLoopStatus; }
set { this._humanLoopStatus = value; }
}
// Check to see if HumanLoopStatus property is set
internal bool IsSetHumanLoopStatus()
{
return this._humanLoopStatus != null;
}
}
}
| 203 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.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.AugmentedAIRuntime.Model
{
/// <summary>
/// Attributes of the data specified by the customer. Use these to describe the data to
/// be labeled.
/// </summary>
public partial class HumanLoopDataAttributes
{
private List<string> _contentClassifiers = new List<string>();
/// <summary>
/// Gets and sets the property ContentClassifiers.
/// <para>
/// Declares that your content is free of personally identifiable information or adult
/// content.
/// </para>
///
/// <para>
/// Amazon SageMaker can restrict the Amazon Mechanical Turk workers who can view your
/// task based on this information.
/// </para>
/// </summary>
[AWSProperty(Required=true, Max=256)]
public List<string> ContentClassifiers
{
get { return this._contentClassifiers; }
set { this._contentClassifiers = value; }
}
// Check to see if ContentClassifiers property is set
internal bool IsSetContentClassifiers()
{
return this._contentClassifiers != null && this._contentClassifiers.Count > 0;
}
}
}
| 65 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.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.AugmentedAIRuntime.Model
{
/// <summary>
/// An object containing the human loop input in JSON format.
/// </summary>
public partial class HumanLoopInput
{
private string _inputContent;
/// <summary>
/// Gets and sets the property InputContent.
/// <para>
/// Serialized input from the human loop. The input must be a string representation of
/// a file in JSON format.
/// </para>
/// </summary>
[AWSProperty(Required=true, Max=3145728)]
public string InputContent
{
get { return this._inputContent; }
set { this._inputContent = value; }
}
// Check to see if InputContent property is set
internal bool IsSetInputContent()
{
return this._inputContent != null;
}
}
}
| 59 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.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.AugmentedAIRuntime.Model
{
/// <summary>
/// Information about where the human output will be stored.
/// </summary>
public partial class HumanLoopOutput
{
private string _outputS3Uri;
/// <summary>
/// Gets and sets the property OutputS3Uri.
/// <para>
/// The location of the Amazon S3 object where Amazon Augmented AI stores your human loop
/// output.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string OutputS3Uri
{
get { return this._outputS3Uri; }
set { this._outputS3Uri = value; }
}
// Check to see if OutputS3Uri property is set
internal bool IsSetOutputS3Uri()
{
return this._outputS3Uri != null;
}
}
}
| 59 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.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.AugmentedAIRuntime.Model
{
/// <summary>
/// Summary information about the human loop.
/// </summary>
public partial class HumanLoopSummary
{
private DateTime? _creationTime;
private string _failureReason;
private string _flowDefinitionArn;
private string _humanLoopName;
private HumanLoopStatus _humanLoopStatus;
/// <summary>
/// Gets and sets the property CreationTime.
/// <para>
/// When Amazon Augmented AI created the human loop.
/// </para>
/// </summary>
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
/// <summary>
/// Gets and sets the property FailureReason.
/// <para>
/// The reason why the human loop failed. A failure reason is returned when the status
/// of the human loop is <code>Failed</code>.
/// </para>
/// </summary>
[AWSProperty(Max=1024)]
public string FailureReason
{
get { return this._failureReason; }
set { this._failureReason = value; }
}
// Check to see if FailureReason property is set
internal bool IsSetFailureReason()
{
return this._failureReason != null;
}
/// <summary>
/// Gets and sets the property FlowDefinitionArn.
/// <para>
/// The Amazon Resource Name (ARN) of the flow definition used to configure the human
/// loop.
/// </para>
/// </summary>
[AWSProperty(Max=1024)]
public string FlowDefinitionArn
{
get { return this._flowDefinitionArn; }
set { this._flowDefinitionArn = value; }
}
// Check to see if FlowDefinitionArn property is set
internal bool IsSetFlowDefinitionArn()
{
return this._flowDefinitionArn != null;
}
/// <summary>
/// Gets and sets the property HumanLoopName.
/// <para>
/// The name of the human loop.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=63)]
public string HumanLoopName
{
get { return this._humanLoopName; }
set { this._humanLoopName = value; }
}
// Check to see if HumanLoopName property is set
internal bool IsSetHumanLoopName()
{
return this._humanLoopName != null;
}
/// <summary>
/// Gets and sets the property HumanLoopStatus.
/// <para>
/// The status of the human loop.
/// </para>
/// </summary>
public HumanLoopStatus HumanLoopStatus
{
get { return this._humanLoopStatus; }
set { this._humanLoopStatus = value; }
}
// Check to see if HumanLoopStatus property is set
internal bool IsSetHumanLoopStatus()
{
return this._humanLoopStatus != null;
}
}
}
| 138 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.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.AugmentedAIRuntime.Model
{
/// <summary>
/// We couldn't process your request because of an issue with the server. Try again later.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InternalServerException : AmazonAugmentedAIRuntimeException
{
/// <summary>
/// Constructs a new InternalServerException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InternalServerException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InternalServerException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InternalServerException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InternalServerException
/// </summary>
/// <param name="innerException"></param>
public InternalServerException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InternalServerException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InternalServerException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InternalServerException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InternalServerException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the InternalServerException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected InternalServerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 124 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.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.AugmentedAIRuntime.Model
{
/// <summary>
/// Container for the parameters to the ListHumanLoops operation.
/// Returns information about human loops, given the specified parameters. If a human
/// loop was deleted, it will not be included.
/// </summary>
public partial class ListHumanLoopsRequest : AmazonAugmentedAIRuntimeRequest
{
private DateTime? _creationTimeAfter;
private DateTime? _creationTimeBefore;
private string _flowDefinitionArn;
private int? _maxResults;
private string _nextToken;
private SortOrder _sortOrder;
/// <summary>
/// Gets and sets the property CreationTimeAfter.
/// <para>
/// (Optional) The timestamp of the date when you want the human loops to begin in ISO
/// 8601 format. For example, <code>2020-02-24</code>.
/// </para>
/// </summary>
public DateTime CreationTimeAfter
{
get { return this._creationTimeAfter.GetValueOrDefault(); }
set { this._creationTimeAfter = value; }
}
// Check to see if CreationTimeAfter property is set
internal bool IsSetCreationTimeAfter()
{
return this._creationTimeAfter.HasValue;
}
/// <summary>
/// Gets and sets the property CreationTimeBefore.
/// <para>
/// (Optional) The timestamp of the date before which you want the human loops to begin
/// in ISO 8601 format. For example, <code>2020-02-24</code>.
/// </para>
/// </summary>
public DateTime CreationTimeBefore
{
get { return this._creationTimeBefore.GetValueOrDefault(); }
set { this._creationTimeBefore = value; }
}
// Check to see if CreationTimeBefore property is set
internal bool IsSetCreationTimeBefore()
{
return this._creationTimeBefore.HasValue;
}
/// <summary>
/// Gets and sets the property FlowDefinitionArn.
/// <para>
/// The Amazon Resource Name (ARN) of a flow definition.
/// </para>
/// </summary>
[AWSProperty(Required=true, Max=1024)]
public string FlowDefinitionArn
{
get { return this._flowDefinitionArn; }
set { this._flowDefinitionArn = value; }
}
// Check to see if FlowDefinitionArn property is set
internal bool IsSetFlowDefinitionArn()
{
return this._flowDefinitionArn != null;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The total number of items to return. If the total number of available items is more
/// than the value specified in <code>MaxResults</code>, then a <code>NextToken</code>
/// is returned in the output. You can use this token to display the next page of results.
///
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A token to display the next page of results.
/// </para>
/// </summary>
[AWSProperty(Max=8192)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
/// <summary>
/// Gets and sets the property SortOrder.
/// <para>
/// Optional. The order for displaying results. Valid values: <code>Ascending</code> and
/// <code>Descending</code>.
/// </para>
/// </summary>
public SortOrder SortOrder
{
get { return this._sortOrder; }
set { this._sortOrder = value; }
}
// Check to see if SortOrder property is set
internal bool IsSetSortOrder()
{
return this._sortOrder != null;
}
}
}
| 163 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.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.AugmentedAIRuntime.Model
{
/// <summary>
/// This is the response object from the ListHumanLoops operation.
/// </summary>
public partial class ListHumanLoopsResponse : AmazonWebServiceResponse
{
private List<HumanLoopSummary> _humanLoopSummaries = new List<HumanLoopSummary>();
private string _nextToken;
/// <summary>
/// Gets and sets the property HumanLoopSummaries.
/// <para>
/// An array of objects that contain information about the human loops.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<HumanLoopSummary> HumanLoopSummaries
{
get { return this._humanLoopSummaries; }
set { this._humanLoopSummaries = value; }
}
// Check to see if HumanLoopSummaries property is set
internal bool IsSetHumanLoopSummaries()
{
return this._humanLoopSummaries != null && this._humanLoopSummaries.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A token to display the next page of results.
/// </para>
/// </summary>
[AWSProperty(Max=8192)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 78 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.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.AugmentedAIRuntime.Model
{
/// <summary>
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ResourceNotFoundException : AmazonAugmentedAIRuntimeException
{
/// <summary>
/// Constructs a new ResourceNotFoundException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ResourceNotFoundException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ResourceNotFoundException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="innerException"></param>
public ResourceNotFoundException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceNotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ResourceNotFoundException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ResourceNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 125 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.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.AugmentedAIRuntime.Model
{
/// <summary>
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your AWS account. For a list
/// of Amazon A2I service quotes, see <a href="https://docs.aws.amazon.com/general/latest/gr/a2i.html">Amazon
/// Augmented AI Service Quotes</a>. Delete some resources or request an increase in your
/// service quota. You can request a quota increase using Service Quotas or the AWS Support
/// Center. To request an increase, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">AWS
/// Service Quotas</a> in the <i>AWS General Reference</i>.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ServiceQuotaExceededException : AmazonAugmentedAIRuntimeException
{
/// <summary>
/// Constructs a new ServiceQuotaExceededException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ServiceQuotaExceededException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ServiceQuotaExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ServiceQuotaExceededException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ServiceQuotaExceededException
/// </summary>
/// <param name="innerException"></param>
public ServiceQuotaExceededException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ServiceQuotaExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ServiceQuotaExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ServiceQuotaExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ServiceQuotaExceededException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ServiceQuotaExceededException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ServiceQuotaExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 130 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.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.AugmentedAIRuntime.Model
{
/// <summary>
/// Container for the parameters to the StartHumanLoop operation.
/// Starts a human loop, provided that at least one activation condition is met.
/// </summary>
public partial class StartHumanLoopRequest : AmazonAugmentedAIRuntimeRequest
{
private HumanLoopDataAttributes _dataAttributes;
private string _flowDefinitionArn;
private HumanLoopInput _humanLoopInput;
private string _humanLoopName;
/// <summary>
/// Gets and sets the property DataAttributes.
/// <para>
/// Attributes of the specified data. Use <code>DataAttributes</code> to specify if your
/// data is free of personally identifiable information and/or free of adult content.
/// </para>
/// </summary>
public HumanLoopDataAttributes DataAttributes
{
get { return this._dataAttributes; }
set { this._dataAttributes = value; }
}
// Check to see if DataAttributes property is set
internal bool IsSetDataAttributes()
{
return this._dataAttributes != null;
}
/// <summary>
/// Gets and sets the property FlowDefinitionArn.
/// <para>
/// The Amazon Resource Name (ARN) of the flow definition associated with this human loop.
/// </para>
/// </summary>
[AWSProperty(Required=true, Max=1024)]
public string FlowDefinitionArn
{
get { return this._flowDefinitionArn; }
set { this._flowDefinitionArn = value; }
}
// Check to see if FlowDefinitionArn property is set
internal bool IsSetFlowDefinitionArn()
{
return this._flowDefinitionArn != null;
}
/// <summary>
/// Gets and sets the property HumanLoopInput.
/// <para>
/// An object that contains information about the human loop.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public HumanLoopInput HumanLoopInput
{
get { return this._humanLoopInput; }
set { this._humanLoopInput = value; }
}
// Check to see if HumanLoopInput property is set
internal bool IsSetHumanLoopInput()
{
return this._humanLoopInput != null;
}
/// <summary>
/// Gets and sets the property HumanLoopName.
/// <para>
/// The name of the human loop.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=63)]
public string HumanLoopName
{
get { return this._humanLoopName; }
set { this._humanLoopName = value; }
}
// Check to see if HumanLoopName property is set
internal bool IsSetHumanLoopName()
{
return this._humanLoopName != null;
}
}
}
| 119 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.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.AugmentedAIRuntime.Model
{
/// <summary>
/// This is the response object from the StartHumanLoop operation.
/// </summary>
public partial class StartHumanLoopResponse : AmazonWebServiceResponse
{
private string _humanLoopArn;
/// <summary>
/// Gets and sets the property HumanLoopArn.
/// <para>
/// The Amazon Resource Name (ARN) of the human loop.
/// </para>
/// </summary>
[AWSProperty(Max=1024)]
public string HumanLoopArn
{
get { return this._humanLoopArn; }
set { this._humanLoopArn = value; }
}
// Check to see if HumanLoopArn property is set
internal bool IsSetHumanLoopArn()
{
return this._humanLoopArn != null;
}
}
}
| 58 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.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.AugmentedAIRuntime.Model
{
/// <summary>
/// Container for the parameters to the StopHumanLoop operation.
/// Stops the specified human loop.
/// </summary>
public partial class StopHumanLoopRequest : AmazonAugmentedAIRuntimeRequest
{
private string _humanLoopName;
/// <summary>
/// Gets and sets the property HumanLoopName.
/// <para>
/// The name of the human loop that you want to stop.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=63)]
public string HumanLoopName
{
get { return this._humanLoopName; }
set { this._humanLoopName = value; }
}
// Check to see if HumanLoopName property is set
internal bool IsSetHumanLoopName()
{
return this._humanLoopName != null;
}
}
}
| 59 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.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.AugmentedAIRuntime.Model
{
/// <summary>
/// This is the response object from the StopHumanLoop operation.
/// </summary>
public partial class StopHumanLoopResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.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.AugmentedAIRuntime.Model
{
/// <summary>
/// You exceeded the maximum number of requests.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ThrottlingException : AmazonAugmentedAIRuntimeException
{
/// <summary>
/// Constructs a new ThrottlingException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ThrottlingException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ThrottlingException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ThrottlingException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ThrottlingException
/// </summary>
/// <param name="innerException"></param>
public ThrottlingException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ThrottlingException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ThrottlingException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ThrottlingException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ThrottlingException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ThrottlingException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ThrottlingException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 124 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.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.AugmentedAIRuntime.Model
{
/// <summary>
/// The request isn't valid. Check the syntax and try again.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ValidationException : AmazonAugmentedAIRuntimeException
{
/// <summary>
/// Constructs a new ValidationException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ValidationException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ValidationException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ValidationException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ValidationException
/// </summary>
/// <param name="innerException"></param>
public ValidationException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ValidationException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ValidationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ValidationException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ValidationException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ValidationException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ValidationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 124 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ConflictException Object
/// </summary>
public class ConflictExceptionUnmarshaller : IErrorResponseUnmarshaller<ConflictException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ConflictException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ConflictException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ConflictException unmarshalledObject = new ConflictException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ConflictExceptionUnmarshaller _instance = new ConflictExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ConflictExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 85 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteHumanLoop Request Marshaller
/// </summary>
public class DeleteHumanLoopRequestMarshaller : IMarshaller<IRequest, DeleteHumanLoopRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DeleteHumanLoopRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteHumanLoopRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AugmentedAIRuntime");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-11-07";
request.HttpMethod = "DELETE";
if (!publicRequest.IsSetHumanLoopName())
throw new AmazonAugmentedAIRuntimeException("Request object does not have required field HumanLoopName set");
request.AddPathResource("{HumanLoopName}", StringUtils.FromString(publicRequest.HumanLoopName));
request.ResourcePath = "/human-loops/{HumanLoopName}";
return request;
}
private static DeleteHumanLoopRequestMarshaller _instance = new DeleteHumanLoopRequestMarshaller();
internal static DeleteHumanLoopRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteHumanLoopRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 87 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteHumanLoop operation
/// </summary>
public class DeleteHumanLoopResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DeleteHumanLoopResponse response = new DeleteHumanLoopResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAugmentedAIRuntimeException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteHumanLoopResponseUnmarshaller _instance = new DeleteHumanLoopResponseUnmarshaller();
internal static DeleteHumanLoopResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteHumanLoopResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 111 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeHumanLoop Request Marshaller
/// </summary>
public class DescribeHumanLoopRequestMarshaller : IMarshaller<IRequest, DescribeHumanLoopRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DescribeHumanLoopRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeHumanLoopRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AugmentedAIRuntime");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-11-07";
request.HttpMethod = "GET";
if (!publicRequest.IsSetHumanLoopName())
throw new AmazonAugmentedAIRuntimeException("Request object does not have required field HumanLoopName set");
request.AddPathResource("{HumanLoopName}", StringUtils.FromString(publicRequest.HumanLoopName));
request.ResourcePath = "/human-loops/{HumanLoopName}";
return request;
}
private static DescribeHumanLoopRequestMarshaller _instance = new DescribeHumanLoopRequestMarshaller();
internal static DescribeHumanLoopRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeHumanLoopRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 87 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeHumanLoop operation
/// </summary>
public class DescribeHumanLoopResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeHumanLoopResponse response = new DescribeHumanLoopResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("CreationTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.CreationTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("FailureCode", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.FailureCode = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("FailureReason", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.FailureReason = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("FlowDefinitionArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.FlowDefinitionArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("HumanLoopArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.HumanLoopArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("HumanLoopName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.HumanLoopName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("HumanLoopOutput", targetDepth))
{
var unmarshaller = HumanLoopOutputUnmarshaller.Instance;
response.HumanLoopOutput = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("HumanLoopStatus", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.HumanLoopStatus = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAugmentedAIRuntimeException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeHumanLoopResponseUnmarshaller _instance = new DescribeHumanLoopResponseUnmarshaller();
internal static DescribeHumanLoopResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeHumanLoopResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 164 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations
{
/// <summary>
/// HumanLoopDataAttributes Marshaller
/// </summary>
public class HumanLoopDataAttributesMarshaller : IRequestMarshaller<HumanLoopDataAttributes, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(HumanLoopDataAttributes requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetContentClassifiers())
{
context.Writer.WritePropertyName("ContentClassifiers");
context.Writer.WriteArrayStart();
foreach(var requestObjectContentClassifiersListValue in requestObject.ContentClassifiers)
{
context.Writer.Write(requestObjectContentClassifiersListValue);
}
context.Writer.WriteArrayEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static HumanLoopDataAttributesMarshaller Instance = new HumanLoopDataAttributesMarshaller();
}
}
| 67 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations
{
/// <summary>
/// HumanLoopInput Marshaller
/// </summary>
public class HumanLoopInputMarshaller : IRequestMarshaller<HumanLoopInput, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(HumanLoopInput requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetInputContent())
{
context.Writer.WritePropertyName("InputContent");
context.Writer.Write(requestObject.InputContent);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static HumanLoopInputMarshaller Instance = new HumanLoopInputMarshaller();
}
}
| 62 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for HumanLoopOutput Object
/// </summary>
public class HumanLoopOutputUnmarshaller : IUnmarshaller<HumanLoopOutput, XmlUnmarshallerContext>, IUnmarshaller<HumanLoopOutput, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
HumanLoopOutput IUnmarshaller<HumanLoopOutput, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public HumanLoopOutput Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
HumanLoopOutput unmarshalledObject = new HumanLoopOutput();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("OutputS3Uri", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.OutputS3Uri = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static HumanLoopOutputUnmarshaller _instance = new HumanLoopOutputUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static HumanLoopOutputUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 92 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for HumanLoopSummary Object
/// </summary>
public class HumanLoopSummaryUnmarshaller : IUnmarshaller<HumanLoopSummary, XmlUnmarshallerContext>, IUnmarshaller<HumanLoopSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
HumanLoopSummary IUnmarshaller<HumanLoopSummary, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public HumanLoopSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
HumanLoopSummary unmarshalledObject = new HumanLoopSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("CreationTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.CreationTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("FailureReason", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.FailureReason = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("FlowDefinitionArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.FlowDefinitionArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("HumanLoopName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.HumanLoopName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("HumanLoopStatus", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.HumanLoopStatus = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static HumanLoopSummaryUnmarshaller _instance = new HumanLoopSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static HumanLoopSummaryUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 116 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InternalServerException Object
/// </summary>
public class InternalServerExceptionUnmarshaller : IErrorResponseUnmarshaller<InternalServerException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InternalServerException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public InternalServerException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InternalServerException unmarshalledObject = new InternalServerException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InternalServerExceptionUnmarshaller _instance = new InternalServerExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InternalServerExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 85 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListHumanLoops Request Marshaller
/// </summary>
public class ListHumanLoopsRequestMarshaller : IMarshaller<IRequest, ListHumanLoopsRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((ListHumanLoopsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListHumanLoopsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AugmentedAIRuntime");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-11-07";
request.HttpMethod = "GET";
if (publicRequest.IsSetCreationTimeAfter())
request.Parameters.Add("CreationTimeAfter", StringUtils.FromDateTimeToISO8601(publicRequest.CreationTimeAfter));
if (publicRequest.IsSetCreationTimeBefore())
request.Parameters.Add("CreationTimeBefore", StringUtils.FromDateTimeToISO8601(publicRequest.CreationTimeBefore));
if (publicRequest.IsSetFlowDefinitionArn())
request.Parameters.Add("FlowDefinitionArn", StringUtils.FromString(publicRequest.FlowDefinitionArn));
if (publicRequest.IsSetMaxResults())
request.Parameters.Add("MaxResults", StringUtils.FromInt(publicRequest.MaxResults));
if (publicRequest.IsSetNextToken())
request.Parameters.Add("NextToken", StringUtils.FromString(publicRequest.NextToken));
if (publicRequest.IsSetSortOrder())
request.Parameters.Add("SortOrder", StringUtils.FromString(publicRequest.SortOrder));
request.ResourcePath = "/human-loops";
request.UseQueryString = true;
return request;
}
private static ListHumanLoopsRequestMarshaller _instance = new ListHumanLoopsRequestMarshaller();
internal static ListHumanLoopsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListHumanLoopsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 103 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListHumanLoops operation
/// </summary>
public class ListHumanLoopsResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
ListHumanLoopsResponse response = new ListHumanLoopsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("HumanLoopSummaries", targetDepth))
{
var unmarshaller = new ListUnmarshaller<HumanLoopSummary, HumanLoopSummaryUnmarshaller>(HumanLoopSummaryUnmarshaller.Instance);
response.HumanLoopSummaries = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAugmentedAIRuntimeException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListHumanLoopsResponseUnmarshaller _instance = new ListHumanLoopsResponseUnmarshaller();
internal static ListHumanLoopsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListHumanLoopsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 128 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ResourceNotFoundException Object
/// </summary>
public class ResourceNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceNotFoundException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ResourceNotFoundException unmarshalledObject = new ResourceNotFoundException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ResourceNotFoundExceptionUnmarshaller _instance = new ResourceNotFoundExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ResourceNotFoundExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 85 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ServiceQuotaExceededException Object
/// </summary>
public class ServiceQuotaExceededExceptionUnmarshaller : IErrorResponseUnmarshaller<ServiceQuotaExceededException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ServiceQuotaExceededException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ServiceQuotaExceededException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ServiceQuotaExceededException unmarshalledObject = new ServiceQuotaExceededException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ServiceQuotaExceededExceptionUnmarshaller _instance = new ServiceQuotaExceededExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ServiceQuotaExceededExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 85 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations
{
/// <summary>
/// StartHumanLoop Request Marshaller
/// </summary>
public class StartHumanLoopRequestMarshaller : IMarshaller<IRequest, StartHumanLoopRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((StartHumanLoopRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(StartHumanLoopRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AugmentedAIRuntime");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-11-07";
request.HttpMethod = "POST";
request.ResourcePath = "/human-loops";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetDataAttributes())
{
context.Writer.WritePropertyName("DataAttributes");
context.Writer.WriteObjectStart();
var marshaller = HumanLoopDataAttributesMarshaller.Instance;
marshaller.Marshall(publicRequest.DataAttributes, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetFlowDefinitionArn())
{
context.Writer.WritePropertyName("FlowDefinitionArn");
context.Writer.Write(publicRequest.FlowDefinitionArn);
}
if(publicRequest.IsSetHumanLoopInput())
{
context.Writer.WritePropertyName("HumanLoopInput");
context.Writer.WriteObjectStart();
var marshaller = HumanLoopInputMarshaller.Instance;
marshaller.Marshall(publicRequest.HumanLoopInput, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetHumanLoopName())
{
context.Writer.WritePropertyName("HumanLoopName");
context.Writer.Write(publicRequest.HumanLoopName);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static StartHumanLoopRequestMarshaller _instance = new StartHumanLoopRequestMarshaller();
internal static StartHumanLoopRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StartHumanLoopRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 129 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for StartHumanLoop operation
/// </summary>
public class StartHumanLoopResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
StartHumanLoopResponse response = new StartHumanLoopResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("HumanLoopArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.HumanLoopArn = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException"))
{
return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException"))
{
return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAugmentedAIRuntimeException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static StartHumanLoopResponseUnmarshaller _instance = new StartHumanLoopResponseUnmarshaller();
internal static StartHumanLoopResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StartHumanLoopResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 126 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations
{
/// <summary>
/// StopHumanLoop Request Marshaller
/// </summary>
public class StopHumanLoopRequestMarshaller : IMarshaller<IRequest, StopHumanLoopRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((StopHumanLoopRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(StopHumanLoopRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AugmentedAIRuntime");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-11-07";
request.HttpMethod = "POST";
request.ResourcePath = "/human-loops/stop";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetHumanLoopName())
{
context.Writer.WritePropertyName("HumanLoopName");
context.Writer.Write(publicRequest.HumanLoopName);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static StopHumanLoopRequestMarshaller _instance = new StopHumanLoopRequestMarshaller();
internal static StopHumanLoopRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StopHumanLoopRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 101 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for StopHumanLoop operation
/// </summary>
public class StopHumanLoopResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
StopHumanLoopResponse response = new StopHumanLoopResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAugmentedAIRuntimeException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static StopHumanLoopResponseUnmarshaller _instance = new StopHumanLoopResponseUnmarshaller();
internal static StopHumanLoopResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StopHumanLoopResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 111 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ThrottlingException Object
/// </summary>
public class ThrottlingExceptionUnmarshaller : IErrorResponseUnmarshaller<ThrottlingException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ThrottlingException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ThrottlingException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ThrottlingException unmarshalledObject = new ThrottlingException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ThrottlingExceptionUnmarshaller _instance = new ThrottlingExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ThrottlingExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 85 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ValidationException Object
/// </summary>
public class ValidationExceptionUnmarshaller : IErrorResponseUnmarshaller<ValidationException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ValidationException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ValidationException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ValidationException unmarshalledObject = new ValidationException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ValidationExceptionUnmarshaller _instance = new ValidationExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ValidationExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 85 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace Amazon.AugmentedAIRuntime.Model
{
/// <summary>
/// Paginators for the AugmentedAIRuntime service
///</summary>
public class AugmentedAIRuntimePaginatorFactory : IAugmentedAIRuntimePaginatorFactory
{
private readonly IAmazonAugmentedAIRuntime client;
internal AugmentedAIRuntimePaginatorFactory(IAmazonAugmentedAIRuntime client)
{
this.client = client;
}
/// <summary>
/// Paginator for ListHumanLoops operation
///</summary>
public IListHumanLoopsPaginator ListHumanLoops(ListHumanLoopsRequest request)
{
return new ListHumanLoopsPaginator(this.client, request);
}
}
}
| 46 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
namespace Amazon.AugmentedAIRuntime.Model
{
/// <summary>
/// Paginators for the AugmentedAIRuntime service
///</summary>
public interface IAugmentedAIRuntimePaginatorFactory
{
/// <summary>
/// Paginator for ListHumanLoops operation
///</summary>
IListHumanLoopsPaginator ListHumanLoops(ListHumanLoopsRequest request);
}
}
| 33 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AugmentedAIRuntime.Model
{
/// <summary>
/// Paginator for the ListHumanLoops operation
///</summary>
public interface IListHumanLoopsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListHumanLoopsResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the HumanLoopSummaries
/// </summary>
IPaginatedEnumerable<HumanLoopSummary> HumanLoopSummaries { get; }
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AugmentedAIRuntime.Model
{
/// <summary>
/// Base class for ListHumanLoops paginators.
/// </summary>
internal sealed partial class ListHumanLoopsPaginator : IPaginator<ListHumanLoopsResponse>, IListHumanLoopsPaginator
{
private readonly IAmazonAugmentedAIRuntime _client;
private readonly ListHumanLoopsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListHumanLoopsResponse> Responses => new PaginatedResponse<ListHumanLoopsResponse>(this);
/// <summary>
/// Enumerable containing all of the HumanLoopSummaries
/// </summary>
public IPaginatedEnumerable<HumanLoopSummary> HumanLoopSummaries =>
new PaginatedResultKeyResponse<ListHumanLoopsResponse, HumanLoopSummary>(this, (i) => i.HumanLoopSummaries);
internal ListHumanLoopsPaginator(IAmazonAugmentedAIRuntime client, ListHumanLoopsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListHumanLoopsResponse> IPaginator<ListHumanLoopsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListHumanLoopsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListHumanLoops(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListHumanLoopsResponse> IPaginator<ListHumanLoopsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListHumanLoopsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListHumanLoopsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
}
| 97 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations;
using Amazon.AugmentedAIRuntime.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.AugmentedAIRuntime
{
/// <summary>
/// Implementation for accessing AugmentedAIRuntime
///
/// Amazon Augmented AI (Amazon A2I) adds the benefit of human judgment to any machine
/// learning application. When an AI application can't evaluate data with a high degree
/// of confidence, human reviewers can take over. This human review is called a human
/// review workflow. To create and start a human review workflow, you need three resources:
/// a <i>worker task template</i>, a <i>flow definition</i>, and a <i>human loop</i>.
///
///
/// <para>
/// For information about these resources and prerequisites for using Amazon A2I, see
/// <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-getting-started.html">Get
/// Started with Amazon Augmented AI</a> in the Amazon SageMaker Developer Guide.
/// </para>
///
/// <para>
/// This API reference includes information about API actions and data types that you
/// can use to interact with Amazon A2I programmatically. Use this guide to:
/// </para>
/// <ul> <li>
/// <para>
/// Start a human loop with the <code>StartHumanLoop</code> operation when using Amazon
/// A2I with a <i>custom task type</i>. To learn more about the difference between custom
/// and built-in task types, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-task-types-general.html">Use
/// Task Types </a>. To learn how to start a human loop using this API, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-start-human-loop.html#a2i-instructions-starthumanloop">Create
/// and Start a Human Loop for a Custom Task Type </a> in the Amazon SageMaker Developer
/// Guide.
/// </para>
/// </li> <li>
/// <para>
/// Manage your human loops. You can list all human loops that you have created, describe
/// individual human loops, and stop and delete human loops. To learn more, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-monitor-humanloop-results.html">Monitor
/// and Manage Your Human Loop </a> in the Amazon SageMaker Developer Guide.
/// </para>
/// </li> </ul>
/// <para>
/// Amazon A2I integrates APIs from various AWS services to create and start human review
/// workflows for those services. To learn how Amazon A2I uses these APIs, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-api-references.html">Use
/// APIs in Amazon A2I</a> in the Amazon SageMaker Developer Guide.
/// </para>
/// </summary>
public partial class AmazonAugmentedAIRuntimeClient : AmazonServiceClient, IAmazonAugmentedAIRuntime
{
private static IServiceMetadata serviceMetadata = new AmazonAugmentedAIRuntimeMetadata();
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
private IAugmentedAIRuntimePaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IAugmentedAIRuntimePaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new AugmentedAIRuntimePaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Constructors
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonAugmentedAIRuntimeClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAugmentedAIRuntimeConfig()) { }
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonAugmentedAIRuntimeClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAugmentedAIRuntimeConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonAugmentedAIRuntimeClient Configuration Object</param>
public AmazonAugmentedAIRuntimeClient(AmazonAugmentedAIRuntimeConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAugmentedAIRuntimeClient(AWSCredentials credentials)
: this(credentials, new AmazonAugmentedAIRuntimeConfig())
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAugmentedAIRuntimeClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAugmentedAIRuntimeConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Credentials and an
/// AmazonAugmentedAIRuntimeClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAugmentedAIRuntimeClient Configuration Object</param>
public AmazonAugmentedAIRuntimeClient(AWSCredentials credentials, AmazonAugmentedAIRuntimeConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
public AmazonAugmentedAIRuntimeClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAugmentedAIRuntimeConfig())
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="region">The region to connect.</param>
public AmazonAugmentedAIRuntimeClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAugmentedAIRuntimeConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAugmentedAIRuntimeClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAugmentedAIRuntimeClient Configuration Object</param>
public AmazonAugmentedAIRuntimeClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAugmentedAIRuntimeConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
public AmazonAugmentedAIRuntimeClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAugmentedAIRuntimeConfig())
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="region">The region to connect.</param>
public AmazonAugmentedAIRuntimeClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAugmentedAIRuntimeConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAugmentedAIRuntimeClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="clientConfig">The AmazonAugmentedAIRuntimeClient Configuration Object</param>
public AmazonAugmentedAIRuntimeClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAugmentedAIRuntimeConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customize the pipeline
/// </summary>
/// <param name="pipeline"></param>
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>();
pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonAugmentedAIRuntimeEndpointResolver());
}
/// <summary>
/// Capture metadata for the service.
/// </summary>
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region DeleteHumanLoop
/// <summary>
/// Deletes the specified human loop for a flow definition.
///
///
/// <para>
/// If the human loop was deleted, this operation will return a <code>ResourceNotFoundException</code>.
///
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteHumanLoop service method.</param>
///
/// <returns>The response from the DeleteHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DeleteHumanLoop">REST API Reference for DeleteHumanLoop Operation</seealso>
public virtual DeleteHumanLoopResponse DeleteHumanLoop(DeleteHumanLoopRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteHumanLoopResponseUnmarshaller.Instance;
return Invoke<DeleteHumanLoopResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteHumanLoop operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteHumanLoop operation on AmazonAugmentedAIRuntimeClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteHumanLoop
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DeleteHumanLoop">REST API Reference for DeleteHumanLoop Operation</seealso>
public virtual IAsyncResult BeginDeleteHumanLoop(DeleteHumanLoopRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteHumanLoopResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteHumanLoop operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteHumanLoop.</param>
///
/// <returns>Returns a DeleteHumanLoopResult from AugmentedAIRuntime.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DeleteHumanLoop">REST API Reference for DeleteHumanLoop Operation</seealso>
public virtual DeleteHumanLoopResponse EndDeleteHumanLoop(IAsyncResult asyncResult)
{
return EndInvoke<DeleteHumanLoopResponse>(asyncResult);
}
#endregion
#region DescribeHumanLoop
/// <summary>
/// Returns information about the specified human loop. If the human loop was deleted,
/// this operation will return a <code>ResourceNotFoundException</code> error.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeHumanLoop service method.</param>
///
/// <returns>The response from the DescribeHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DescribeHumanLoop">REST API Reference for DescribeHumanLoop Operation</seealso>
public virtual DescribeHumanLoopResponse DescribeHumanLoop(DescribeHumanLoopRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeHumanLoopResponseUnmarshaller.Instance;
return Invoke<DescribeHumanLoopResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeHumanLoop operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeHumanLoop operation on AmazonAugmentedAIRuntimeClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeHumanLoop
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DescribeHumanLoop">REST API Reference for DescribeHumanLoop Operation</seealso>
public virtual IAsyncResult BeginDescribeHumanLoop(DescribeHumanLoopRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeHumanLoopResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeHumanLoop operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeHumanLoop.</param>
///
/// <returns>Returns a DescribeHumanLoopResult from AugmentedAIRuntime.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DescribeHumanLoop">REST API Reference for DescribeHumanLoop Operation</seealso>
public virtual DescribeHumanLoopResponse EndDescribeHumanLoop(IAsyncResult asyncResult)
{
return EndInvoke<DescribeHumanLoopResponse>(asyncResult);
}
#endregion
#region ListHumanLoops
/// <summary>
/// Returns information about human loops, given the specified parameters. If a human
/// loop was deleted, it will not be included.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListHumanLoops service method.</param>
///
/// <returns>The response from the ListHumanLoops service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ListHumanLoops">REST API Reference for ListHumanLoops Operation</seealso>
public virtual ListHumanLoopsResponse ListHumanLoops(ListHumanLoopsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListHumanLoopsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListHumanLoopsResponseUnmarshaller.Instance;
return Invoke<ListHumanLoopsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListHumanLoops operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListHumanLoops operation on AmazonAugmentedAIRuntimeClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListHumanLoops
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ListHumanLoops">REST API Reference for ListHumanLoops Operation</seealso>
public virtual IAsyncResult BeginListHumanLoops(ListHumanLoopsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListHumanLoopsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListHumanLoopsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListHumanLoops operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListHumanLoops.</param>
///
/// <returns>Returns a ListHumanLoopsResult from AugmentedAIRuntime.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ListHumanLoops">REST API Reference for ListHumanLoops Operation</seealso>
public virtual ListHumanLoopsResponse EndListHumanLoops(IAsyncResult asyncResult)
{
return EndInvoke<ListHumanLoopsResponse>(asyncResult);
}
#endregion
#region StartHumanLoop
/// <summary>
/// Starts a human loop, provided that at least one activation condition is met.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartHumanLoop service method.</param>
///
/// <returns>The response from the StartHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ConflictException">
/// Your request has the same name as another active human loop but has different input
/// data. You cannot start two human loops with the same name and different input data.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your AWS account. For a list
/// of Amazon A2I service quotes, see <a href="https://docs.aws.amazon.com/general/latest/gr/a2i.html">Amazon
/// Augmented AI Service Quotes</a>. Delete some resources or request an increase in your
/// service quota. You can request a quota increase using Service Quotas or the AWS Support
/// Center. To request an increase, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">AWS
/// Service Quotas</a> in the <i>AWS General Reference</i>.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoop">REST API Reference for StartHumanLoop Operation</seealso>
public virtual StartHumanLoopResponse StartHumanLoop(StartHumanLoopRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartHumanLoopResponseUnmarshaller.Instance;
return Invoke<StartHumanLoopResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the StartHumanLoop operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StartHumanLoop operation on AmazonAugmentedAIRuntimeClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartHumanLoop
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoop">REST API Reference for StartHumanLoop Operation</seealso>
public virtual IAsyncResult BeginStartHumanLoop(StartHumanLoopRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartHumanLoopResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the StartHumanLoop operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartHumanLoop.</param>
///
/// <returns>Returns a StartHumanLoopResult from AugmentedAIRuntime.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoop">REST API Reference for StartHumanLoop Operation</seealso>
public virtual StartHumanLoopResponse EndStartHumanLoop(IAsyncResult asyncResult)
{
return EndInvoke<StartHumanLoopResponse>(asyncResult);
}
#endregion
#region StopHumanLoop
/// <summary>
/// Stops the specified human loop.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopHumanLoop service method.</param>
///
/// <returns>The response from the StopHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StopHumanLoop">REST API Reference for StopHumanLoop Operation</seealso>
public virtual StopHumanLoopResponse StopHumanLoop(StopHumanLoopRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StopHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopHumanLoopResponseUnmarshaller.Instance;
return Invoke<StopHumanLoopResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the StopHumanLoop operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StopHumanLoop operation on AmazonAugmentedAIRuntimeClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopHumanLoop
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StopHumanLoop">REST API Reference for StopHumanLoop Operation</seealso>
public virtual IAsyncResult BeginStopHumanLoop(StopHumanLoopRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = StopHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopHumanLoopResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the StopHumanLoop operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStopHumanLoop.</param>
///
/// <returns>Returns a StopHumanLoopResult from AugmentedAIRuntime.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StopHumanLoop">REST API Reference for StopHumanLoop Operation</seealso>
public virtual StopHumanLoopResponse EndStopHumanLoop(IAsyncResult asyncResult)
{
return EndInvoke<StopHumanLoopResponse>(asyncResult);
}
#endregion
}
}
| 657 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.AugmentedAIRuntime.Model;
namespace Amazon.AugmentedAIRuntime
{
/// <summary>
/// Interface for accessing AugmentedAIRuntime
///
/// Amazon Augmented AI (Amazon A2I) adds the benefit of human judgment to any machine
/// learning application. When an AI application can't evaluate data with a high degree
/// of confidence, human reviewers can take over. This human review is called a human
/// review workflow. To create and start a human review workflow, you need three resources:
/// a <i>worker task template</i>, a <i>flow definition</i>, and a <i>human loop</i>.
///
///
/// <para>
/// For information about these resources and prerequisites for using Amazon A2I, see
/// <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-getting-started.html">Get
/// Started with Amazon Augmented AI</a> in the Amazon SageMaker Developer Guide.
/// </para>
///
/// <para>
/// This API reference includes information about API actions and data types that you
/// can use to interact with Amazon A2I programmatically. Use this guide to:
/// </para>
/// <ul> <li>
/// <para>
/// Start a human loop with the <code>StartHumanLoop</code> operation when using Amazon
/// A2I with a <i>custom task type</i>. To learn more about the difference between custom
/// and built-in task types, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-task-types-general.html">Use
/// Task Types </a>. To learn how to start a human loop using this API, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-start-human-loop.html#a2i-instructions-starthumanloop">Create
/// and Start a Human Loop for a Custom Task Type </a> in the Amazon SageMaker Developer
/// Guide.
/// </para>
/// </li> <li>
/// <para>
/// Manage your human loops. You can list all human loops that you have created, describe
/// individual human loops, and stop and delete human loops. To learn more, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-monitor-humanloop-results.html">Monitor
/// and Manage Your Human Loop </a> in the Amazon SageMaker Developer Guide.
/// </para>
/// </li> </ul>
/// <para>
/// Amazon A2I integrates APIs from various AWS services to create and start human review
/// workflows for those services. To learn how Amazon A2I uses these APIs, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-api-references.html">Use
/// APIs in Amazon A2I</a> in the Amazon SageMaker Developer Guide.
/// </para>
/// </summary>
public partial interface IAmazonAugmentedAIRuntime : IAmazonService, IDisposable
{
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
IAugmentedAIRuntimePaginatorFactory Paginators { get; }
#endif
#region DeleteHumanLoop
/// <summary>
/// Deletes the specified human loop for a flow definition.
///
///
/// <para>
/// If the human loop was deleted, this operation will return a <code>ResourceNotFoundException</code>.
///
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteHumanLoop service method.</param>
///
/// <returns>The response from the DeleteHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DeleteHumanLoop">REST API Reference for DeleteHumanLoop Operation</seealso>
DeleteHumanLoopResponse DeleteHumanLoop(DeleteHumanLoopRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteHumanLoop operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteHumanLoop operation on AmazonAugmentedAIRuntimeClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteHumanLoop
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DeleteHumanLoop">REST API Reference for DeleteHumanLoop Operation</seealso>
IAsyncResult BeginDeleteHumanLoop(DeleteHumanLoopRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteHumanLoop operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteHumanLoop.</param>
///
/// <returns>Returns a DeleteHumanLoopResult from AugmentedAIRuntime.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DeleteHumanLoop">REST API Reference for DeleteHumanLoop Operation</seealso>
DeleteHumanLoopResponse EndDeleteHumanLoop(IAsyncResult asyncResult);
#endregion
#region DescribeHumanLoop
/// <summary>
/// Returns information about the specified human loop. If the human loop was deleted,
/// this operation will return a <code>ResourceNotFoundException</code> error.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeHumanLoop service method.</param>
///
/// <returns>The response from the DescribeHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DescribeHumanLoop">REST API Reference for DescribeHumanLoop Operation</seealso>
DescribeHumanLoopResponse DescribeHumanLoop(DescribeHumanLoopRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeHumanLoop operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeHumanLoop operation on AmazonAugmentedAIRuntimeClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeHumanLoop
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DescribeHumanLoop">REST API Reference for DescribeHumanLoop Operation</seealso>
IAsyncResult BeginDescribeHumanLoop(DescribeHumanLoopRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeHumanLoop operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeHumanLoop.</param>
///
/// <returns>Returns a DescribeHumanLoopResult from AugmentedAIRuntime.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DescribeHumanLoop">REST API Reference for DescribeHumanLoop Operation</seealso>
DescribeHumanLoopResponse EndDescribeHumanLoop(IAsyncResult asyncResult);
#endregion
#region ListHumanLoops
/// <summary>
/// Returns information about human loops, given the specified parameters. If a human
/// loop was deleted, it will not be included.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListHumanLoops service method.</param>
///
/// <returns>The response from the ListHumanLoops service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ListHumanLoops">REST API Reference for ListHumanLoops Operation</seealso>
ListHumanLoopsResponse ListHumanLoops(ListHumanLoopsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListHumanLoops operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListHumanLoops operation on AmazonAugmentedAIRuntimeClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListHumanLoops
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ListHumanLoops">REST API Reference for ListHumanLoops Operation</seealso>
IAsyncResult BeginListHumanLoops(ListHumanLoopsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListHumanLoops operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListHumanLoops.</param>
///
/// <returns>Returns a ListHumanLoopsResult from AugmentedAIRuntime.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ListHumanLoops">REST API Reference for ListHumanLoops Operation</seealso>
ListHumanLoopsResponse EndListHumanLoops(IAsyncResult asyncResult);
#endregion
#region StartHumanLoop
/// <summary>
/// Starts a human loop, provided that at least one activation condition is met.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartHumanLoop service method.</param>
///
/// <returns>The response from the StartHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ConflictException">
/// Your request has the same name as another active human loop but has different input
/// data. You cannot start two human loops with the same name and different input data.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your AWS account. For a list
/// of Amazon A2I service quotes, see <a href="https://docs.aws.amazon.com/general/latest/gr/a2i.html">Amazon
/// Augmented AI Service Quotes</a>. Delete some resources or request an increase in your
/// service quota. You can request a quota increase using Service Quotas or the AWS Support
/// Center. To request an increase, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">AWS
/// Service Quotas</a> in the <i>AWS General Reference</i>.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoop">REST API Reference for StartHumanLoop Operation</seealso>
StartHumanLoopResponse StartHumanLoop(StartHumanLoopRequest request);
/// <summary>
/// Initiates the asynchronous execution of the StartHumanLoop operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StartHumanLoop operation on AmazonAugmentedAIRuntimeClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartHumanLoop
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoop">REST API Reference for StartHumanLoop Operation</seealso>
IAsyncResult BeginStartHumanLoop(StartHumanLoopRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the StartHumanLoop operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartHumanLoop.</param>
///
/// <returns>Returns a StartHumanLoopResult from AugmentedAIRuntime.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoop">REST API Reference for StartHumanLoop Operation</seealso>
StartHumanLoopResponse EndStartHumanLoop(IAsyncResult asyncResult);
#endregion
#region StopHumanLoop
/// <summary>
/// Stops the specified human loop.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopHumanLoop service method.</param>
///
/// <returns>The response from the StopHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StopHumanLoop">REST API Reference for StopHumanLoop Operation</seealso>
StopHumanLoopResponse StopHumanLoop(StopHumanLoopRequest request);
/// <summary>
/// Initiates the asynchronous execution of the StopHumanLoop operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StopHumanLoop operation on AmazonAugmentedAIRuntimeClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopHumanLoop
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StopHumanLoop">REST API Reference for StopHumanLoop Operation</seealso>
IAsyncResult BeginStopHumanLoop(StopHumanLoopRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the StopHumanLoop operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStopHumanLoop.</param>
///
/// <returns>Returns a StopHumanLoopResult from AugmentedAIRuntime.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StopHumanLoop">REST API Reference for StopHumanLoop Operation</seealso>
StopHumanLoopResponse EndStopHumanLoop(IAsyncResult asyncResult);
#endregion
}
}
| 367 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations;
using Amazon.AugmentedAIRuntime.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.AugmentedAIRuntime
{
/// <summary>
/// Implementation for accessing AugmentedAIRuntime
///
/// Amazon Augmented AI (Amazon A2I) adds the benefit of human judgment to any machine
/// learning application. When an AI application can't evaluate data with a high degree
/// of confidence, human reviewers can take over. This human review is called a human
/// review workflow. To create and start a human review workflow, you need three resources:
/// a <i>worker task template</i>, a <i>flow definition</i>, and a <i>human loop</i>.
///
///
/// <para>
/// For information about these resources and prerequisites for using Amazon A2I, see
/// <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-getting-started.html">Get
/// Started with Amazon Augmented AI</a> in the Amazon SageMaker Developer Guide.
/// </para>
///
/// <para>
/// This API reference includes information about API actions and data types that you
/// can use to interact with Amazon A2I programmatically. Use this guide to:
/// </para>
/// <ul> <li>
/// <para>
/// Start a human loop with the <code>StartHumanLoop</code> operation when using Amazon
/// A2I with a <i>custom task type</i>. To learn more about the difference between custom
/// and built-in task types, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-task-types-general.html">Use
/// Task Types </a>. To learn how to start a human loop using this API, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-start-human-loop.html#a2i-instructions-starthumanloop">Create
/// and Start a Human Loop for a Custom Task Type </a> in the Amazon SageMaker Developer
/// Guide.
/// </para>
/// </li> <li>
/// <para>
/// Manage your human loops. You can list all human loops that you have created, describe
/// individual human loops, and stop and delete human loops. To learn more, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-monitor-humanloop-results.html">Monitor
/// and Manage Your Human Loop </a> in the Amazon SageMaker Developer Guide.
/// </para>
/// </li> </ul>
/// <para>
/// Amazon A2I integrates APIs from various AWS services to create and start human review
/// workflows for those services. To learn how Amazon A2I uses these APIs, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-api-references.html">Use
/// APIs in Amazon A2I</a> in the Amazon SageMaker Developer Guide.
/// </para>
/// </summary>
public partial class AmazonAugmentedAIRuntimeClient : AmazonServiceClient, IAmazonAugmentedAIRuntime
{
private static IServiceMetadata serviceMetadata = new AmazonAugmentedAIRuntimeMetadata();
private IAugmentedAIRuntimePaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IAugmentedAIRuntimePaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new AugmentedAIRuntimePaginatorFactory(this);
}
return this._paginators;
}
}
#region Constructors
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonAugmentedAIRuntimeClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAugmentedAIRuntimeConfig()) { }
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonAugmentedAIRuntimeClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAugmentedAIRuntimeConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonAugmentedAIRuntimeClient Configuration Object</param>
public AmazonAugmentedAIRuntimeClient(AmazonAugmentedAIRuntimeConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAugmentedAIRuntimeClient(AWSCredentials credentials)
: this(credentials, new AmazonAugmentedAIRuntimeConfig())
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAugmentedAIRuntimeClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAugmentedAIRuntimeConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Credentials and an
/// AmazonAugmentedAIRuntimeClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAugmentedAIRuntimeClient Configuration Object</param>
public AmazonAugmentedAIRuntimeClient(AWSCredentials credentials, AmazonAugmentedAIRuntimeConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
public AmazonAugmentedAIRuntimeClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAugmentedAIRuntimeConfig())
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="region">The region to connect.</param>
public AmazonAugmentedAIRuntimeClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAugmentedAIRuntimeConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAugmentedAIRuntimeClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAugmentedAIRuntimeClient Configuration Object</param>
public AmazonAugmentedAIRuntimeClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAugmentedAIRuntimeConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
public AmazonAugmentedAIRuntimeClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAugmentedAIRuntimeConfig())
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="region">The region to connect.</param>
public AmazonAugmentedAIRuntimeClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAugmentedAIRuntimeConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAugmentedAIRuntimeClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="clientConfig">The AmazonAugmentedAIRuntimeClient Configuration Object</param>
public AmazonAugmentedAIRuntimeClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAugmentedAIRuntimeConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customize the pipeline
/// </summary>
/// <param name="pipeline"></param>
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>();
pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonAugmentedAIRuntimeEndpointResolver());
}
/// <summary>
/// Capture metadata for the service.
/// </summary>
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region DeleteHumanLoop
/// <summary>
/// Deletes the specified human loop for a flow definition.
///
///
/// <para>
/// If the human loop was deleted, this operation will return a <code>ResourceNotFoundException</code>.
///
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteHumanLoop service method.</param>
///
/// <returns>The response from the DeleteHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DeleteHumanLoop">REST API Reference for DeleteHumanLoop Operation</seealso>
public virtual DeleteHumanLoopResponse DeleteHumanLoop(DeleteHumanLoopRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteHumanLoopResponseUnmarshaller.Instance;
return Invoke<DeleteHumanLoopResponse>(request, options);
}
/// <summary>
/// Deletes the specified human loop for a flow definition.
///
///
/// <para>
/// If the human loop was deleted, this operation will return a <code>ResourceNotFoundException</code>.
///
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteHumanLoop service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DeleteHumanLoop">REST API Reference for DeleteHumanLoop Operation</seealso>
public virtual Task<DeleteHumanLoopResponse> DeleteHumanLoopAsync(DeleteHumanLoopRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteHumanLoopResponseUnmarshaller.Instance;
return InvokeAsync<DeleteHumanLoopResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeHumanLoop
/// <summary>
/// Returns information about the specified human loop. If the human loop was deleted,
/// this operation will return a <code>ResourceNotFoundException</code> error.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeHumanLoop service method.</param>
///
/// <returns>The response from the DescribeHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DescribeHumanLoop">REST API Reference for DescribeHumanLoop Operation</seealso>
public virtual DescribeHumanLoopResponse DescribeHumanLoop(DescribeHumanLoopRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeHumanLoopResponseUnmarshaller.Instance;
return Invoke<DescribeHumanLoopResponse>(request, options);
}
/// <summary>
/// Returns information about the specified human loop. If the human loop was deleted,
/// this operation will return a <code>ResourceNotFoundException</code> error.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeHumanLoop service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DescribeHumanLoop">REST API Reference for DescribeHumanLoop Operation</seealso>
public virtual Task<DescribeHumanLoopResponse> DescribeHumanLoopAsync(DescribeHumanLoopRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeHumanLoopResponseUnmarshaller.Instance;
return InvokeAsync<DescribeHumanLoopResponse>(request, options, cancellationToken);
}
#endregion
#region ListHumanLoops
/// <summary>
/// Returns information about human loops, given the specified parameters. If a human
/// loop was deleted, it will not be included.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListHumanLoops service method.</param>
///
/// <returns>The response from the ListHumanLoops service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ListHumanLoops">REST API Reference for ListHumanLoops Operation</seealso>
public virtual ListHumanLoopsResponse ListHumanLoops(ListHumanLoopsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListHumanLoopsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListHumanLoopsResponseUnmarshaller.Instance;
return Invoke<ListHumanLoopsResponse>(request, options);
}
/// <summary>
/// Returns information about human loops, given the specified parameters. If a human
/// loop was deleted, it will not be included.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListHumanLoops service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListHumanLoops service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ListHumanLoops">REST API Reference for ListHumanLoops Operation</seealso>
public virtual Task<ListHumanLoopsResponse> ListHumanLoopsAsync(ListHumanLoopsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListHumanLoopsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListHumanLoopsResponseUnmarshaller.Instance;
return InvokeAsync<ListHumanLoopsResponse>(request, options, cancellationToken);
}
#endregion
#region StartHumanLoop
/// <summary>
/// Starts a human loop, provided that at least one activation condition is met.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartHumanLoop service method.</param>
///
/// <returns>The response from the StartHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ConflictException">
/// Your request has the same name as another active human loop but has different input
/// data. You cannot start two human loops with the same name and different input data.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your AWS account. For a list
/// of Amazon A2I service quotes, see <a href="https://docs.aws.amazon.com/general/latest/gr/a2i.html">Amazon
/// Augmented AI Service Quotes</a>. Delete some resources or request an increase in your
/// service quota. You can request a quota increase using Service Quotas or the AWS Support
/// Center. To request an increase, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">AWS
/// Service Quotas</a> in the <i>AWS General Reference</i>.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoop">REST API Reference for StartHumanLoop Operation</seealso>
public virtual StartHumanLoopResponse StartHumanLoop(StartHumanLoopRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartHumanLoopResponseUnmarshaller.Instance;
return Invoke<StartHumanLoopResponse>(request, options);
}
/// <summary>
/// Starts a human loop, provided that at least one activation condition is met.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartHumanLoop service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ConflictException">
/// Your request has the same name as another active human loop but has different input
/// data. You cannot start two human loops with the same name and different input data.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your AWS account. For a list
/// of Amazon A2I service quotes, see <a href="https://docs.aws.amazon.com/general/latest/gr/a2i.html">Amazon
/// Augmented AI Service Quotes</a>. Delete some resources or request an increase in your
/// service quota. You can request a quota increase using Service Quotas or the AWS Support
/// Center. To request an increase, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">AWS
/// Service Quotas</a> in the <i>AWS General Reference</i>.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoop">REST API Reference for StartHumanLoop Operation</seealso>
public virtual Task<StartHumanLoopResponse> StartHumanLoopAsync(StartHumanLoopRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartHumanLoopResponseUnmarshaller.Instance;
return InvokeAsync<StartHumanLoopResponse>(request, options, cancellationToken);
}
#endregion
#region StopHumanLoop
/// <summary>
/// Stops the specified human loop.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopHumanLoop service method.</param>
///
/// <returns>The response from the StopHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StopHumanLoop">REST API Reference for StopHumanLoop Operation</seealso>
public virtual StopHumanLoopResponse StopHumanLoop(StopHumanLoopRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StopHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopHumanLoopResponseUnmarshaller.Instance;
return Invoke<StopHumanLoopResponse>(request, options);
}
/// <summary>
/// Stops the specified human loop.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopHumanLoop service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StopHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StopHumanLoop">REST API Reference for StopHumanLoop Operation</seealso>
public virtual Task<StopHumanLoopResponse> StopHumanLoopAsync(StopHumanLoopRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StopHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopHumanLoopResponseUnmarshaller.Instance;
return InvokeAsync<StopHumanLoopResponse>(request, options, cancellationToken);
}
#endregion
}
}
| 673 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.AugmentedAIRuntime.Model;
namespace Amazon.AugmentedAIRuntime
{
/// <summary>
/// Interface for accessing AugmentedAIRuntime
///
/// Amazon Augmented AI (Amazon A2I) adds the benefit of human judgment to any machine
/// learning application. When an AI application can't evaluate data with a high degree
/// of confidence, human reviewers can take over. This human review is called a human
/// review workflow. To create and start a human review workflow, you need three resources:
/// a <i>worker task template</i>, a <i>flow definition</i>, and a <i>human loop</i>.
///
///
/// <para>
/// For information about these resources and prerequisites for using Amazon A2I, see
/// <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-getting-started.html">Get
/// Started with Amazon Augmented AI</a> in the Amazon SageMaker Developer Guide.
/// </para>
///
/// <para>
/// This API reference includes information about API actions and data types that you
/// can use to interact with Amazon A2I programmatically. Use this guide to:
/// </para>
/// <ul> <li>
/// <para>
/// Start a human loop with the <code>StartHumanLoop</code> operation when using Amazon
/// A2I with a <i>custom task type</i>. To learn more about the difference between custom
/// and built-in task types, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-task-types-general.html">Use
/// Task Types </a>. To learn how to start a human loop using this API, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-start-human-loop.html#a2i-instructions-starthumanloop">Create
/// and Start a Human Loop for a Custom Task Type </a> in the Amazon SageMaker Developer
/// Guide.
/// </para>
/// </li> <li>
/// <para>
/// Manage your human loops. You can list all human loops that you have created, describe
/// individual human loops, and stop and delete human loops. To learn more, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-monitor-humanloop-results.html">Monitor
/// and Manage Your Human Loop </a> in the Amazon SageMaker Developer Guide.
/// </para>
/// </li> </ul>
/// <para>
/// Amazon A2I integrates APIs from various AWS services to create and start human review
/// workflows for those services. To learn how Amazon A2I uses these APIs, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-api-references.html">Use
/// APIs in Amazon A2I</a> in the Amazon SageMaker Developer Guide.
/// </para>
/// </summary>
public partial interface IAmazonAugmentedAIRuntime : IAmazonService, IDisposable
{
/// <summary>
/// Paginators for the service
/// </summary>
IAugmentedAIRuntimePaginatorFactory Paginators { get; }
#region DeleteHumanLoop
/// <summary>
/// Deletes the specified human loop for a flow definition.
///
///
/// <para>
/// If the human loop was deleted, this operation will return a <code>ResourceNotFoundException</code>.
///
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteHumanLoop service method.</param>
///
/// <returns>The response from the DeleteHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DeleteHumanLoop">REST API Reference for DeleteHumanLoop Operation</seealso>
DeleteHumanLoopResponse DeleteHumanLoop(DeleteHumanLoopRequest request);
/// <summary>
/// Deletes the specified human loop for a flow definition.
///
///
/// <para>
/// If the human loop was deleted, this operation will return a <code>ResourceNotFoundException</code>.
///
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteHumanLoop service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DeleteHumanLoop">REST API Reference for DeleteHumanLoop Operation</seealso>
Task<DeleteHumanLoopResponse> DeleteHumanLoopAsync(DeleteHumanLoopRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeHumanLoop
/// <summary>
/// Returns information about the specified human loop. If the human loop was deleted,
/// this operation will return a <code>ResourceNotFoundException</code> error.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeHumanLoop service method.</param>
///
/// <returns>The response from the DescribeHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DescribeHumanLoop">REST API Reference for DescribeHumanLoop Operation</seealso>
DescribeHumanLoopResponse DescribeHumanLoop(DescribeHumanLoopRequest request);
/// <summary>
/// Returns information about the specified human loop. If the human loop was deleted,
/// this operation will return a <code>ResourceNotFoundException</code> error.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeHumanLoop service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DescribeHumanLoop">REST API Reference for DescribeHumanLoop Operation</seealso>
Task<DescribeHumanLoopResponse> DescribeHumanLoopAsync(DescribeHumanLoopRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListHumanLoops
/// <summary>
/// Returns information about human loops, given the specified parameters. If a human
/// loop was deleted, it will not be included.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListHumanLoops service method.</param>
///
/// <returns>The response from the ListHumanLoops service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ListHumanLoops">REST API Reference for ListHumanLoops Operation</seealso>
ListHumanLoopsResponse ListHumanLoops(ListHumanLoopsRequest request);
/// <summary>
/// Returns information about human loops, given the specified parameters. If a human
/// loop was deleted, it will not be included.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListHumanLoops service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListHumanLoops service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ListHumanLoops">REST API Reference for ListHumanLoops Operation</seealso>
Task<ListHumanLoopsResponse> ListHumanLoopsAsync(ListHumanLoopsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StartHumanLoop
/// <summary>
/// Starts a human loop, provided that at least one activation condition is met.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartHumanLoop service method.</param>
///
/// <returns>The response from the StartHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ConflictException">
/// Your request has the same name as another active human loop but has different input
/// data. You cannot start two human loops with the same name and different input data.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your AWS account. For a list
/// of Amazon A2I service quotes, see <a href="https://docs.aws.amazon.com/general/latest/gr/a2i.html">Amazon
/// Augmented AI Service Quotes</a>. Delete some resources or request an increase in your
/// service quota. You can request a quota increase using Service Quotas or the AWS Support
/// Center. To request an increase, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">AWS
/// Service Quotas</a> in the <i>AWS General Reference</i>.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoop">REST API Reference for StartHumanLoop Operation</seealso>
StartHumanLoopResponse StartHumanLoop(StartHumanLoopRequest request);
/// <summary>
/// Starts a human loop, provided that at least one activation condition is met.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartHumanLoop service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ConflictException">
/// Your request has the same name as another active human loop but has different input
/// data. You cannot start two human loops with the same name and different input data.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your AWS account. For a list
/// of Amazon A2I service quotes, see <a href="https://docs.aws.amazon.com/general/latest/gr/a2i.html">Amazon
/// Augmented AI Service Quotes</a>. Delete some resources or request an increase in your
/// service quota. You can request a quota increase using Service Quotas or the AWS Support
/// Center. To request an increase, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">AWS
/// Service Quotas</a> in the <i>AWS General Reference</i>.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoop">REST API Reference for StartHumanLoop Operation</seealso>
Task<StartHumanLoopResponse> StartHumanLoopAsync(StartHumanLoopRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StopHumanLoop
/// <summary>
/// Stops the specified human loop.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopHumanLoop service method.</param>
///
/// <returns>The response from the StopHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StopHumanLoop">REST API Reference for StopHumanLoop Operation</seealso>
StopHumanLoopResponse StopHumanLoop(StopHumanLoopRequest request);
/// <summary>
/// Stops the specified human loop.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopHumanLoop service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StopHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StopHumanLoop">REST API Reference for StopHumanLoop Operation</seealso>
Task<StopHumanLoopResponse> StopHumanLoopAsync(StopHumanLoopRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
}
| 387 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.AugmentedAIRuntime.Model;
using Amazon.AugmentedAIRuntime.Model.Internal.MarshallTransformations;
using Amazon.AugmentedAIRuntime.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.AugmentedAIRuntime
{
/// <summary>
/// Implementation for accessing AugmentedAIRuntime
///
/// Amazon Augmented AI (Amazon A2I) adds the benefit of human judgment to any machine
/// learning application. When an AI application can't evaluate data with a high degree
/// of confidence, human reviewers can take over. This human review is called a human
/// review workflow. To create and start a human review workflow, you need three resources:
/// a <i>worker task template</i>, a <i>flow definition</i>, and a <i>human loop</i>.
///
///
/// <para>
/// For information about these resources and prerequisites for using Amazon A2I, see
/// <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-getting-started.html">Get
/// Started with Amazon Augmented AI</a> in the Amazon SageMaker Developer Guide.
/// </para>
///
/// <para>
/// This API reference includes information about API actions and data types that you
/// can use to interact with Amazon A2I programmatically. Use this guide to:
/// </para>
/// <ul> <li>
/// <para>
/// Start a human loop with the <code>StartHumanLoop</code> operation when using Amazon
/// A2I with a <i>custom task type</i>. To learn more about the difference between custom
/// and built-in task types, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-task-types-general.html">Use
/// Task Types </a>. To learn how to start a human loop using this API, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-start-human-loop.html#a2i-instructions-starthumanloop">Create
/// and Start a Human Loop for a Custom Task Type </a> in the Amazon SageMaker Developer
/// Guide.
/// </para>
/// </li> <li>
/// <para>
/// Manage your human loops. You can list all human loops that you have created, describe
/// individual human loops, and stop and delete human loops. To learn more, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-monitor-humanloop-results.html">Monitor
/// and Manage Your Human Loop </a> in the Amazon SageMaker Developer Guide.
/// </para>
/// </li> </ul>
/// <para>
/// Amazon A2I integrates APIs from various AWS services to create and start human review
/// workflows for those services. To learn how Amazon A2I uses these APIs, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-api-references.html">Use
/// APIs in Amazon A2I</a> in the Amazon SageMaker Developer Guide.
/// </para>
/// </summary>
public partial class AmazonAugmentedAIRuntimeClient : AmazonServiceClient, IAmazonAugmentedAIRuntime
{
private static IServiceMetadata serviceMetadata = new AmazonAugmentedAIRuntimeMetadata();
#region Constructors
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonAugmentedAIRuntimeClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAugmentedAIRuntimeConfig()) { }
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonAugmentedAIRuntimeClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAugmentedAIRuntimeConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonAugmentedAIRuntimeClient Configuration Object</param>
public AmazonAugmentedAIRuntimeClient(AmazonAugmentedAIRuntimeConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAugmentedAIRuntimeClient(AWSCredentials credentials)
: this(credentials, new AmazonAugmentedAIRuntimeConfig())
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAugmentedAIRuntimeClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAugmentedAIRuntimeConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Credentials and an
/// AmazonAugmentedAIRuntimeClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAugmentedAIRuntimeClient Configuration Object</param>
public AmazonAugmentedAIRuntimeClient(AWSCredentials credentials, AmazonAugmentedAIRuntimeConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
public AmazonAugmentedAIRuntimeClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAugmentedAIRuntimeConfig())
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="region">The region to connect.</param>
public AmazonAugmentedAIRuntimeClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAugmentedAIRuntimeConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAugmentedAIRuntimeClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAugmentedAIRuntimeClient Configuration Object</param>
public AmazonAugmentedAIRuntimeClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAugmentedAIRuntimeConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
public AmazonAugmentedAIRuntimeClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAugmentedAIRuntimeConfig())
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="region">The region to connect.</param>
public AmazonAugmentedAIRuntimeClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAugmentedAIRuntimeConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAugmentedAIRuntimeClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAugmentedAIRuntimeClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="clientConfig">The AmazonAugmentedAIRuntimeClient Configuration Object</param>
public AmazonAugmentedAIRuntimeClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAugmentedAIRuntimeConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private IAugmentedAIRuntimePaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IAugmentedAIRuntimePaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new AugmentedAIRuntimePaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customizes the runtime pipeline.
/// </summary>
/// <param name="pipeline">Runtime pipeline for the current client.</param>
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>();
pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonAugmentedAIRuntimeEndpointResolver());
}
/// <summary>
/// Capture metadata for the service.
/// </summary>
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region DeleteHumanLoop
internal virtual DeleteHumanLoopResponse DeleteHumanLoop(DeleteHumanLoopRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteHumanLoopResponseUnmarshaller.Instance;
return Invoke<DeleteHumanLoopResponse>(request, options);
}
/// <summary>
/// Deletes the specified human loop for a flow definition.
///
///
/// <para>
/// If the human loop was deleted, this operation will return a <code>ResourceNotFoundException</code>.
///
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteHumanLoop service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DeleteHumanLoop">REST API Reference for DeleteHumanLoop Operation</seealso>
public virtual Task<DeleteHumanLoopResponse> DeleteHumanLoopAsync(DeleteHumanLoopRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteHumanLoopResponseUnmarshaller.Instance;
return InvokeAsync<DeleteHumanLoopResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeHumanLoop
internal virtual DescribeHumanLoopResponse DescribeHumanLoop(DescribeHumanLoopRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeHumanLoopResponseUnmarshaller.Instance;
return Invoke<DescribeHumanLoopResponse>(request, options);
}
/// <summary>
/// Returns information about the specified human loop. If the human loop was deleted,
/// this operation will return a <code>ResourceNotFoundException</code> error.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeHumanLoop service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DescribeHumanLoop">REST API Reference for DescribeHumanLoop Operation</seealso>
public virtual Task<DescribeHumanLoopResponse> DescribeHumanLoopAsync(DescribeHumanLoopRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeHumanLoopResponseUnmarshaller.Instance;
return InvokeAsync<DescribeHumanLoopResponse>(request, options, cancellationToken);
}
#endregion
#region ListHumanLoops
internal virtual ListHumanLoopsResponse ListHumanLoops(ListHumanLoopsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListHumanLoopsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListHumanLoopsResponseUnmarshaller.Instance;
return Invoke<ListHumanLoopsResponse>(request, options);
}
/// <summary>
/// Returns information about human loops, given the specified parameters. If a human
/// loop was deleted, it will not be included.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListHumanLoops service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListHumanLoops service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ListHumanLoops">REST API Reference for ListHumanLoops Operation</seealso>
public virtual Task<ListHumanLoopsResponse> ListHumanLoopsAsync(ListHumanLoopsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListHumanLoopsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListHumanLoopsResponseUnmarshaller.Instance;
return InvokeAsync<ListHumanLoopsResponse>(request, options, cancellationToken);
}
#endregion
#region StartHumanLoop
internal virtual StartHumanLoopResponse StartHumanLoop(StartHumanLoopRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartHumanLoopResponseUnmarshaller.Instance;
return Invoke<StartHumanLoopResponse>(request, options);
}
/// <summary>
/// Starts a human loop, provided that at least one activation condition is met.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartHumanLoop service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ConflictException">
/// Your request has the same name as another active human loop but has different input
/// data. You cannot start two human loops with the same name and different input data.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your AWS account. For a list
/// of Amazon A2I service quotes, see <a href="https://docs.aws.amazon.com/general/latest/gr/a2i.html">Amazon
/// Augmented AI Service Quotes</a>. Delete some resources or request an increase in your
/// service quota. You can request a quota increase using Service Quotas or the AWS Support
/// Center. To request an increase, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">AWS
/// Service Quotas</a> in the <i>AWS General Reference</i>.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoop">REST API Reference for StartHumanLoop Operation</seealso>
public virtual Task<StartHumanLoopResponse> StartHumanLoopAsync(StartHumanLoopRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartHumanLoopResponseUnmarshaller.Instance;
return InvokeAsync<StartHumanLoopResponse>(request, options, cancellationToken);
}
#endregion
#region StopHumanLoop
internal virtual StopHumanLoopResponse StopHumanLoop(StopHumanLoopRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StopHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopHumanLoopResponseUnmarshaller.Instance;
return Invoke<StopHumanLoopResponse>(request, options);
}
/// <summary>
/// Stops the specified human loop.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopHumanLoop service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StopHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StopHumanLoop">REST API Reference for StopHumanLoop Operation</seealso>
public virtual Task<StopHumanLoopResponse> StopHumanLoopAsync(StopHumanLoopRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StopHumanLoopRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopHumanLoopResponseUnmarshaller.Instance;
return InvokeAsync<StopHumanLoopResponse>(request, options, cancellationToken);
}
#endregion
}
}
| 560 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 sagemaker-a2i-runtime-2019-11-07.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.AugmentedAIRuntime.Model;
namespace Amazon.AugmentedAIRuntime
{
/// <summary>
/// Interface for accessing AugmentedAIRuntime
///
/// Amazon Augmented AI (Amazon A2I) adds the benefit of human judgment to any machine
/// learning application. When an AI application can't evaluate data with a high degree
/// of confidence, human reviewers can take over. This human review is called a human
/// review workflow. To create and start a human review workflow, you need three resources:
/// a <i>worker task template</i>, a <i>flow definition</i>, and a <i>human loop</i>.
///
///
/// <para>
/// For information about these resources and prerequisites for using Amazon A2I, see
/// <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-getting-started.html">Get
/// Started with Amazon Augmented AI</a> in the Amazon SageMaker Developer Guide.
/// </para>
///
/// <para>
/// This API reference includes information about API actions and data types that you
/// can use to interact with Amazon A2I programmatically. Use this guide to:
/// </para>
/// <ul> <li>
/// <para>
/// Start a human loop with the <code>StartHumanLoop</code> operation when using Amazon
/// A2I with a <i>custom task type</i>. To learn more about the difference between custom
/// and built-in task types, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-task-types-general.html">Use
/// Task Types </a>. To learn how to start a human loop using this API, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-start-human-loop.html#a2i-instructions-starthumanloop">Create
/// and Start a Human Loop for a Custom Task Type </a> in the Amazon SageMaker Developer
/// Guide.
/// </para>
/// </li> <li>
/// <para>
/// Manage your human loops. You can list all human loops that you have created, describe
/// individual human loops, and stop and delete human loops. To learn more, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-monitor-humanloop-results.html">Monitor
/// and Manage Your Human Loop </a> in the Amazon SageMaker Developer Guide.
/// </para>
/// </li> </ul>
/// <para>
/// Amazon A2I integrates APIs from various AWS services to create and start human review
/// workflows for those services. To learn how Amazon A2I uses these APIs, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-api-references.html">Use
/// APIs in Amazon A2I</a> in the Amazon SageMaker Developer Guide.
/// </para>
/// </summary>
public partial interface IAmazonAugmentedAIRuntime : IAmazonService, IDisposable
{
#if AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
IAugmentedAIRuntimePaginatorFactory Paginators { get; }
#endif
#region DeleteHumanLoop
/// <summary>
/// Deletes the specified human loop for a flow definition.
///
///
/// <para>
/// If the human loop was deleted, this operation will return a <code>ResourceNotFoundException</code>.
///
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteHumanLoop service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DeleteHumanLoop">REST API Reference for DeleteHumanLoop Operation</seealso>
Task<DeleteHumanLoopResponse> DeleteHumanLoopAsync(DeleteHumanLoopRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeHumanLoop
/// <summary>
/// Returns information about the specified human loop. If the human loop was deleted,
/// this operation will return a <code>ResourceNotFoundException</code> error.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeHumanLoop service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DescribeHumanLoop">REST API Reference for DescribeHumanLoop Operation</seealso>
Task<DescribeHumanLoopResponse> DescribeHumanLoopAsync(DescribeHumanLoopRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListHumanLoops
/// <summary>
/// Returns information about human loops, given the specified parameters. If a human
/// loop was deleted, it will not be included.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListHumanLoops service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListHumanLoops service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ListHumanLoops">REST API Reference for ListHumanLoops Operation</seealso>
Task<ListHumanLoopsResponse> ListHumanLoopsAsync(ListHumanLoopsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StartHumanLoop
/// <summary>
/// Starts a human loop, provided that at least one activation condition is met.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartHumanLoop service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ConflictException">
/// Your request has the same name as another active human loop but has different input
/// data. You cannot start two human loops with the same name and different input data.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your AWS account. For a list
/// of Amazon A2I service quotes, see <a href="https://docs.aws.amazon.com/general/latest/gr/a2i.html">Amazon
/// Augmented AI Service Quotes</a>. Delete some resources or request an increase in your
/// service quota. You can request a quota increase using Service Quotas or the AWS Support
/// Center. To request an increase, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">AWS
/// Service Quotas</a> in the <i>AWS General Reference</i>.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoop">REST API Reference for StartHumanLoop Operation</seealso>
Task<StartHumanLoopResponse> StartHumanLoopAsync(StartHumanLoopRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StopHumanLoop
/// <summary>
/// Stops the specified human loop.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopHumanLoop service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StopHumanLoop service method, as returned by AugmentedAIRuntime.</returns>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException">
/// We couldn't process your request because of an issue with the server. Try again later.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException">
/// We couldn't find the requested resource. Check that your resources exists and were
/// created in the same AWS Region as your request, and try your request again.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException">
/// You exceeded the maximum number of requests.
/// </exception>
/// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException">
/// The request isn't valid. Check the syntax and try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StopHumanLoop">REST API Reference for StopHumanLoop Operation</seealso>
Task<StopHumanLoopResponse> StopHumanLoopAsync(StopHumanLoopRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
}
| 255 |
aws-sdk-net
|
aws
|
C#
|
using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("AWSSDK.AugmentedAIRuntime")]
#if BCL35
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Amazon Augmented AI Runtime. This release adds support for Amazon Augmented AI, which makes it easy to build workflows for human review of machine learning predictions.")]
#elif BCL45
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - Amazon Augmented AI Runtime. This release adds support for Amazon Augmented AI, which makes it easy to build workflows for human review of machine learning predictions.")]
#elif NETSTANDARD20
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - Amazon Augmented AI Runtime. This release adds support for Amazon Augmented AI, which makes it easy to build workflows for human review of machine learning predictions.")]
#elif NETCOREAPP3_1
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - Amazon Augmented AI Runtime. This release adds support for Amazon Augmented AI, which makes it easy to build workflows for human review of machine learning predictions.")]
#else
#error Unknown platform constant - unable to set correct AssemblyDescription
#endif
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("Amazon Web Services SDK for .NET")]
[assembly: AssemblyCompany("Amazon.com, Inc")]
[assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.3")]
[assembly: AssemblyFileVersion("3.7.100.147")]
[assembly: System.CLSCompliant(true)]
#if BCL
[assembly: System.Security.AllowPartiallyTrustedCallers]
#endif
| 51 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Util.Internal;
using Amazon.AutoScaling.Internal;
namespace Amazon.AutoScaling
{
/// <summary>
/// Configuration for accessing Amazon AutoScaling service
/// </summary>
[AWSSignerType("v4")]
public partial class AmazonAutoScalingConfig : ClientConfig
{
private static readonly string UserAgentString =
InternalSDKUtils.BuildUserAgentString("3.7.104.45");
private string _userAgent = UserAgentString;
/// <summary>
/// Default constructor
/// </summary>
public AmazonAutoScalingConfig()
: base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonAutoScalingDefaultConfiguration.GetAllConfigurations()))
{
this.AuthenticationServiceName = "autoscaling";
this.EndpointProvider = new AmazonAutoScalingEndpointProvider();
}
/// <summary>
/// The constant used to lookup in the region hash the endpoint.
/// </summary>
public override string RegionEndpointServiceName
{
get
{
return "autoscaling";
}
}
/// <summary>
/// Gets the ServiceVersion property.
/// </summary>
public override string ServiceVersion
{
get
{
return "2011-01-01";
}
}
/// <summary>
/// Gets the value of UserAgent property.
/// </summary>
public override string UserAgent
{
get
{
return _userAgent;
}
}
}
}
| 83 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Amazon.Runtime;
namespace Amazon.AutoScaling
{
/// <summary>
/// Configuration for accessing Amazon AutoScaling service
/// </summary>
public static class AmazonAutoScalingDefaultConfiguration
{
/// <summary>
/// Collection of all <see cref="DefaultConfiguration"/>s supported by
/// AutoScaling
/// </summary>
public static ReadOnlyCollection<IDefaultConfiguration> GetAllConfigurations()
{
return new ReadOnlyCollection<IDefaultConfiguration>(new List<IDefaultConfiguration>
{
Standard,
InRegion,
CrossRegion,
Mobile,
Auto,
Legacy
});
}
/// <summary>
/// <p>The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration Standard {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Standard,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:03.1
ConnectTimeout = TimeSpan.FromMilliseconds(3100L),
// 0:00:03.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration InRegion {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.InRegion,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:01.1
ConnectTimeout = TimeSpan.FromMilliseconds(1100L),
// 0:00:01.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration CrossRegion {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.CrossRegion,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:03.1
ConnectTimeout = TimeSpan.FromMilliseconds(3100L),
// 0:00:03.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration Mobile {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Mobile,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:30
ConnectTimeout = TimeSpan.FromMilliseconds(30000L),
// 0:00:30
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(30000L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.</p><p>Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">EC2 Instance Metadata service</a>, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application</p>
/// </summary>
public static IDefaultConfiguration Auto {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Auto,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:01.1
ConnectTimeout = TimeSpan.FromMilliseconds(1100L),
// 0:00:01.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The LEGACY mode provides default settings that vary per SDK and were used prior to establishment of defaults_mode</p>
/// </summary>
public static IDefaultConfiguration Legacy {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Legacy,
RetryMode = RequestRetryMode.Legacy,
StsRegionalEndpoints = StsRegionalEndpointsValue.Legacy,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Legacy,
ConnectTimeout = null,
TlsNegotiationTimeout = null,
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
}
}
| 146 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
namespace Amazon.AutoScaling.Endpoints
{
/// <summary>
/// Contains parameters used for resolving AutoScaling endpoints
/// Parameters can be sourced from client config and service operations
/// Used by internal AutoScalingEndpointProvider and AutoScalingEndpointResolver
/// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider
/// </summary>
public class AutoScalingEndpointParameters : EndpointParameters
{
/// <summary>
/// AutoScalingEndpointParameters constructor
/// </summary>
public AutoScalingEndpointParameters()
{
UseDualStack = false;
UseFIPS = false;
}
/// <summary>
/// Region parameter
/// </summary>
public string Region
{
get { return (string)this["Region"]; }
set { this["Region"] = value; }
}
/// <summary>
/// UseDualStack parameter
/// </summary>
public bool? UseDualStack
{
get { return (bool?)this["UseDualStack"]; }
set { this["UseDualStack"] = value; }
}
/// <summary>
/// UseFIPS parameter
/// </summary>
public bool? UseFIPS
{
get { return (bool?)this["UseFIPS"]; }
set { this["UseFIPS"] = value; }
}
/// <summary>
/// Endpoint parameter
/// </summary>
public string Endpoint
{
get { return (string)this["Endpoint"]; }
set { this["Endpoint"] = value; }
}
}
}
| 78 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
using Amazon.Runtime;
namespace Amazon.AutoScaling
{
///<summary>
/// Common exception for the AutoScaling service.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class AmazonAutoScalingException : AmazonServiceException
{
/// <summary>
/// Construct instance of AmazonAutoScalingException
/// </summary>
/// <param name="message"></param>
public AmazonAutoScalingException(string message)
: base(message)
{
}
/// <summary>
/// Construct instance of AmazonAutoScalingException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public AmazonAutoScalingException(string message, Exception innerException)
: base(message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonAutoScalingException
/// </summary>
/// <param name="innerException"></param>
public AmazonAutoScalingException(Exception innerException)
: base(innerException.Message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonAutoScalingException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AmazonAutoScalingException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode)
{
}
/// <summary>
/// Construct instance of AmazonAutoScalingException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AmazonAutoScalingException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode)
{
}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the AmazonAutoScalingException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected AmazonAutoScalingException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
#endif
}
}
| 105 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using Amazon.Runtime;
namespace Amazon.AutoScaling
{
/// <summary>
/// Constants used for properties of type AcceleratorManufacturer.
/// </summary>
public class AcceleratorManufacturer : ConstantClass
{
/// <summary>
/// Constant AmazonWebServices for AcceleratorManufacturer
/// </summary>
public static readonly AcceleratorManufacturer AmazonWebServices = new AcceleratorManufacturer("amazon-web-services");
/// <summary>
/// Constant Amd for AcceleratorManufacturer
/// </summary>
public static readonly AcceleratorManufacturer Amd = new AcceleratorManufacturer("amd");
/// <summary>
/// Constant Nvidia for AcceleratorManufacturer
/// </summary>
public static readonly AcceleratorManufacturer Nvidia = new AcceleratorManufacturer("nvidia");
/// <summary>
/// Constant Xilinx for AcceleratorManufacturer
/// </summary>
public static readonly AcceleratorManufacturer Xilinx = new AcceleratorManufacturer("xilinx");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public AcceleratorManufacturer(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static AcceleratorManufacturer FindValue(string value)
{
return FindValue<AcceleratorManufacturer>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator AcceleratorManufacturer(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type AcceleratorName.
/// </summary>
public class AcceleratorName : ConstantClass
{
/// <summary>
/// Constant A100 for AcceleratorName
/// </summary>
public static readonly AcceleratorName A100 = new AcceleratorName("a100");
/// <summary>
/// Constant K80 for AcceleratorName
/// </summary>
public static readonly AcceleratorName K80 = new AcceleratorName("k80");
/// <summary>
/// Constant M60 for AcceleratorName
/// </summary>
public static readonly AcceleratorName M60 = new AcceleratorName("m60");
/// <summary>
/// Constant RadeonProV520 for AcceleratorName
/// </summary>
public static readonly AcceleratorName RadeonProV520 = new AcceleratorName("radeon-pro-v520");
/// <summary>
/// Constant T4 for AcceleratorName
/// </summary>
public static readonly AcceleratorName T4 = new AcceleratorName("t4");
/// <summary>
/// Constant V100 for AcceleratorName
/// </summary>
public static readonly AcceleratorName V100 = new AcceleratorName("v100");
/// <summary>
/// Constant Vu9p for AcceleratorName
/// </summary>
public static readonly AcceleratorName Vu9p = new AcceleratorName("vu9p");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public AcceleratorName(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static AcceleratorName FindValue(string value)
{
return FindValue<AcceleratorName>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator AcceleratorName(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type AcceleratorType.
/// </summary>
public class AcceleratorType : ConstantClass
{
/// <summary>
/// Constant Fpga for AcceleratorType
/// </summary>
public static readonly AcceleratorType Fpga = new AcceleratorType("fpga");
/// <summary>
/// Constant Gpu for AcceleratorType
/// </summary>
public static readonly AcceleratorType Gpu = new AcceleratorType("gpu");
/// <summary>
/// Constant Inference for AcceleratorType
/// </summary>
public static readonly AcceleratorType Inference = new AcceleratorType("inference");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public AcceleratorType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static AcceleratorType FindValue(string value)
{
return FindValue<AcceleratorType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator AcceleratorType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type BareMetal.
/// </summary>
public class BareMetal : ConstantClass
{
/// <summary>
/// Constant Excluded for BareMetal
/// </summary>
public static readonly BareMetal Excluded = new BareMetal("excluded");
/// <summary>
/// Constant Included for BareMetal
/// </summary>
public static readonly BareMetal Included = new BareMetal("included");
/// <summary>
/// Constant Required for BareMetal
/// </summary>
public static readonly BareMetal Required = new BareMetal("required");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public BareMetal(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static BareMetal FindValue(string value)
{
return FindValue<BareMetal>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator BareMetal(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type BurstablePerformance.
/// </summary>
public class BurstablePerformance : ConstantClass
{
/// <summary>
/// Constant Excluded for BurstablePerformance
/// </summary>
public static readonly BurstablePerformance Excluded = new BurstablePerformance("excluded");
/// <summary>
/// Constant Included for BurstablePerformance
/// </summary>
public static readonly BurstablePerformance Included = new BurstablePerformance("included");
/// <summary>
/// Constant Required for BurstablePerformance
/// </summary>
public static readonly BurstablePerformance Required = new BurstablePerformance("required");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public BurstablePerformance(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static BurstablePerformance FindValue(string value)
{
return FindValue<BurstablePerformance>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator BurstablePerformance(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type CpuManufacturer.
/// </summary>
public class CpuManufacturer : ConstantClass
{
/// <summary>
/// Constant AmazonWebServices for CpuManufacturer
/// </summary>
public static readonly CpuManufacturer AmazonWebServices = new CpuManufacturer("amazon-web-services");
/// <summary>
/// Constant Amd for CpuManufacturer
/// </summary>
public static readonly CpuManufacturer Amd = new CpuManufacturer("amd");
/// <summary>
/// Constant Intel for CpuManufacturer
/// </summary>
public static readonly CpuManufacturer Intel = new CpuManufacturer("intel");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public CpuManufacturer(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static CpuManufacturer FindValue(string value)
{
return FindValue<CpuManufacturer>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator CpuManufacturer(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type InstanceGeneration.
/// </summary>
public class InstanceGeneration : ConstantClass
{
/// <summary>
/// Constant Current for InstanceGeneration
/// </summary>
public static readonly InstanceGeneration Current = new InstanceGeneration("current");
/// <summary>
/// Constant Previous for InstanceGeneration
/// </summary>
public static readonly InstanceGeneration Previous = new InstanceGeneration("previous");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public InstanceGeneration(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static InstanceGeneration FindValue(string value)
{
return FindValue<InstanceGeneration>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator InstanceGeneration(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type InstanceMetadataEndpointState.
/// </summary>
public class InstanceMetadataEndpointState : ConstantClass
{
/// <summary>
/// Constant Disabled for InstanceMetadataEndpointState
/// </summary>
public static readonly InstanceMetadataEndpointState Disabled = new InstanceMetadataEndpointState("disabled");
/// <summary>
/// Constant Enabled for InstanceMetadataEndpointState
/// </summary>
public static readonly InstanceMetadataEndpointState Enabled = new InstanceMetadataEndpointState("enabled");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public InstanceMetadataEndpointState(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static InstanceMetadataEndpointState FindValue(string value)
{
return FindValue<InstanceMetadataEndpointState>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator InstanceMetadataEndpointState(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type InstanceMetadataHttpTokensState.
/// </summary>
public class InstanceMetadataHttpTokensState : ConstantClass
{
/// <summary>
/// Constant Optional for InstanceMetadataHttpTokensState
/// </summary>
public static readonly InstanceMetadataHttpTokensState Optional = new InstanceMetadataHttpTokensState("optional");
/// <summary>
/// Constant Required for InstanceMetadataHttpTokensState
/// </summary>
public static readonly InstanceMetadataHttpTokensState Required = new InstanceMetadataHttpTokensState("required");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public InstanceMetadataHttpTokensState(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static InstanceMetadataHttpTokensState FindValue(string value)
{
return FindValue<InstanceMetadataHttpTokensState>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator InstanceMetadataHttpTokensState(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type InstanceRefreshStatus.
/// </summary>
public class InstanceRefreshStatus : ConstantClass
{
/// <summary>
/// Constant Cancelled for InstanceRefreshStatus
/// </summary>
public static readonly InstanceRefreshStatus Cancelled = new InstanceRefreshStatus("Cancelled");
/// <summary>
/// Constant Cancelling for InstanceRefreshStatus
/// </summary>
public static readonly InstanceRefreshStatus Cancelling = new InstanceRefreshStatus("Cancelling");
/// <summary>
/// Constant Failed for InstanceRefreshStatus
/// </summary>
public static readonly InstanceRefreshStatus Failed = new InstanceRefreshStatus("Failed");
/// <summary>
/// Constant InProgress for InstanceRefreshStatus
/// </summary>
public static readonly InstanceRefreshStatus InProgress = new InstanceRefreshStatus("InProgress");
/// <summary>
/// Constant Pending for InstanceRefreshStatus
/// </summary>
public static readonly InstanceRefreshStatus Pending = new InstanceRefreshStatus("Pending");
/// <summary>
/// Constant RollbackFailed for InstanceRefreshStatus
/// </summary>
public static readonly InstanceRefreshStatus RollbackFailed = new InstanceRefreshStatus("RollbackFailed");
/// <summary>
/// Constant RollbackInProgress for InstanceRefreshStatus
/// </summary>
public static readonly InstanceRefreshStatus RollbackInProgress = new InstanceRefreshStatus("RollbackInProgress");
/// <summary>
/// Constant RollbackSuccessful for InstanceRefreshStatus
/// </summary>
public static readonly InstanceRefreshStatus RollbackSuccessful = new InstanceRefreshStatus("RollbackSuccessful");
/// <summary>
/// Constant Successful for InstanceRefreshStatus
/// </summary>
public static readonly InstanceRefreshStatus Successful = new InstanceRefreshStatus("Successful");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public InstanceRefreshStatus(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static InstanceRefreshStatus FindValue(string value)
{
return FindValue<InstanceRefreshStatus>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator InstanceRefreshStatus(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type LifecycleState.
/// </summary>
public class LifecycleState : ConstantClass
{
/// <summary>
/// Constant Detached for LifecycleState
/// </summary>
public static readonly LifecycleState Detached = new LifecycleState("Detached");
/// <summary>
/// Constant Detaching for LifecycleState
/// </summary>
public static readonly LifecycleState Detaching = new LifecycleState("Detaching");
/// <summary>
/// Constant EnteringStandby for LifecycleState
/// </summary>
public static readonly LifecycleState EnteringStandby = new LifecycleState("EnteringStandby");
/// <summary>
/// Constant InService for LifecycleState
/// </summary>
public static readonly LifecycleState InService = new LifecycleState("InService");
/// <summary>
/// Constant Pending for LifecycleState
/// </summary>
public static readonly LifecycleState Pending = new LifecycleState("Pending");
/// <summary>
/// Constant PendingProceed for LifecycleState
/// </summary>
public static readonly LifecycleState PendingProceed = new LifecycleState("Pending:Proceed");
/// <summary>
/// Constant PendingWait for LifecycleState
/// </summary>
public static readonly LifecycleState PendingWait = new LifecycleState("Pending:Wait");
/// <summary>
/// Constant Quarantined for LifecycleState
/// </summary>
public static readonly LifecycleState Quarantined = new LifecycleState("Quarantined");
/// <summary>
/// Constant Standby for LifecycleState
/// </summary>
public static readonly LifecycleState Standby = new LifecycleState("Standby");
/// <summary>
/// Constant Terminated for LifecycleState
/// </summary>
public static readonly LifecycleState Terminated = new LifecycleState("Terminated");
/// <summary>
/// Constant Terminating for LifecycleState
/// </summary>
public static readonly LifecycleState Terminating = new LifecycleState("Terminating");
/// <summary>
/// Constant TerminatingProceed for LifecycleState
/// </summary>
public static readonly LifecycleState TerminatingProceed = new LifecycleState("Terminating:Proceed");
/// <summary>
/// Constant TerminatingWait for LifecycleState
/// </summary>
public static readonly LifecycleState TerminatingWait = new LifecycleState("Terminating:Wait");
/// <summary>
/// Constant WarmedHibernated for LifecycleState
/// </summary>
public static readonly LifecycleState WarmedHibernated = new LifecycleState("Warmed:Hibernated");
/// <summary>
/// Constant WarmedPending for LifecycleState
/// </summary>
public static readonly LifecycleState WarmedPending = new LifecycleState("Warmed:Pending");
/// <summary>
/// Constant WarmedPendingProceed for LifecycleState
/// </summary>
public static readonly LifecycleState WarmedPendingProceed = new LifecycleState("Warmed:Pending:Proceed");
/// <summary>
/// Constant WarmedPendingWait for LifecycleState
/// </summary>
public static readonly LifecycleState WarmedPendingWait = new LifecycleState("Warmed:Pending:Wait");
/// <summary>
/// Constant WarmedRunning for LifecycleState
/// </summary>
public static readonly LifecycleState WarmedRunning = new LifecycleState("Warmed:Running");
/// <summary>
/// Constant WarmedStopped for LifecycleState
/// </summary>
public static readonly LifecycleState WarmedStopped = new LifecycleState("Warmed:Stopped");
/// <summary>
/// Constant WarmedTerminated for LifecycleState
/// </summary>
public static readonly LifecycleState WarmedTerminated = new LifecycleState("Warmed:Terminated");
/// <summary>
/// Constant WarmedTerminating for LifecycleState
/// </summary>
public static readonly LifecycleState WarmedTerminating = new LifecycleState("Warmed:Terminating");
/// <summary>
/// Constant WarmedTerminatingProceed for LifecycleState
/// </summary>
public static readonly LifecycleState WarmedTerminatingProceed = new LifecycleState("Warmed:Terminating:Proceed");
/// <summary>
/// Constant WarmedTerminatingWait for LifecycleState
/// </summary>
public static readonly LifecycleState WarmedTerminatingWait = new LifecycleState("Warmed:Terminating:Wait");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public LifecycleState(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static LifecycleState FindValue(string value)
{
return FindValue<LifecycleState>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator LifecycleState(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type LocalStorage.
/// </summary>
public class LocalStorage : ConstantClass
{
/// <summary>
/// Constant Excluded for LocalStorage
/// </summary>
public static readonly LocalStorage Excluded = new LocalStorage("excluded");
/// <summary>
/// Constant Included for LocalStorage
/// </summary>
public static readonly LocalStorage Included = new LocalStorage("included");
/// <summary>
/// Constant Required for LocalStorage
/// </summary>
public static readonly LocalStorage Required = new LocalStorage("required");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public LocalStorage(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static LocalStorage FindValue(string value)
{
return FindValue<LocalStorage>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator LocalStorage(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type LocalStorageType.
/// </summary>
public class LocalStorageType : ConstantClass
{
/// <summary>
/// Constant Hdd for LocalStorageType
/// </summary>
public static readonly LocalStorageType Hdd = new LocalStorageType("hdd");
/// <summary>
/// Constant Ssd for LocalStorageType
/// </summary>
public static readonly LocalStorageType Ssd = new LocalStorageType("ssd");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public LocalStorageType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static LocalStorageType FindValue(string value)
{
return FindValue<LocalStorageType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator LocalStorageType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type MetricStatistic.
/// </summary>
public class MetricStatistic : ConstantClass
{
/// <summary>
/// Constant Average for MetricStatistic
/// </summary>
public static readonly MetricStatistic Average = new MetricStatistic("Average");
/// <summary>
/// Constant Maximum for MetricStatistic
/// </summary>
public static readonly MetricStatistic Maximum = new MetricStatistic("Maximum");
/// <summary>
/// Constant Minimum for MetricStatistic
/// </summary>
public static readonly MetricStatistic Minimum = new MetricStatistic("Minimum");
/// <summary>
/// Constant SampleCount for MetricStatistic
/// </summary>
public static readonly MetricStatistic SampleCount = new MetricStatistic("SampleCount");
/// <summary>
/// Constant Sum for MetricStatistic
/// </summary>
public static readonly MetricStatistic Sum = new MetricStatistic("Sum");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public MetricStatistic(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static MetricStatistic FindValue(string value)
{
return FindValue<MetricStatistic>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator MetricStatistic(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type MetricType.
/// </summary>
public class MetricType : ConstantClass
{
/// <summary>
/// Constant ALBRequestCountPerTarget for MetricType
/// </summary>
public static readonly MetricType ALBRequestCountPerTarget = new MetricType("ALBRequestCountPerTarget");
/// <summary>
/// Constant ASGAverageCPUUtilization for MetricType
/// </summary>
public static readonly MetricType ASGAverageCPUUtilization = new MetricType("ASGAverageCPUUtilization");
/// <summary>
/// Constant ASGAverageNetworkIn for MetricType
/// </summary>
public static readonly MetricType ASGAverageNetworkIn = new MetricType("ASGAverageNetworkIn");
/// <summary>
/// Constant ASGAverageNetworkOut for MetricType
/// </summary>
public static readonly MetricType ASGAverageNetworkOut = new MetricType("ASGAverageNetworkOut");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public MetricType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static MetricType FindValue(string value)
{
return FindValue<MetricType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator MetricType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type PredefinedLoadMetricType.
/// </summary>
public class PredefinedLoadMetricType : ConstantClass
{
/// <summary>
/// Constant ALBTargetGroupRequestCount for PredefinedLoadMetricType
/// </summary>
public static readonly PredefinedLoadMetricType ALBTargetGroupRequestCount = new PredefinedLoadMetricType("ALBTargetGroupRequestCount");
/// <summary>
/// Constant ASGTotalCPUUtilization for PredefinedLoadMetricType
/// </summary>
public static readonly PredefinedLoadMetricType ASGTotalCPUUtilization = new PredefinedLoadMetricType("ASGTotalCPUUtilization");
/// <summary>
/// Constant ASGTotalNetworkIn for PredefinedLoadMetricType
/// </summary>
public static readonly PredefinedLoadMetricType ASGTotalNetworkIn = new PredefinedLoadMetricType("ASGTotalNetworkIn");
/// <summary>
/// Constant ASGTotalNetworkOut for PredefinedLoadMetricType
/// </summary>
public static readonly PredefinedLoadMetricType ASGTotalNetworkOut = new PredefinedLoadMetricType("ASGTotalNetworkOut");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public PredefinedLoadMetricType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static PredefinedLoadMetricType FindValue(string value)
{
return FindValue<PredefinedLoadMetricType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator PredefinedLoadMetricType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type PredefinedMetricPairType.
/// </summary>
public class PredefinedMetricPairType : ConstantClass
{
/// <summary>
/// Constant ALBRequestCount for PredefinedMetricPairType
/// </summary>
public static readonly PredefinedMetricPairType ALBRequestCount = new PredefinedMetricPairType("ALBRequestCount");
/// <summary>
/// Constant ASGCPUUtilization for PredefinedMetricPairType
/// </summary>
public static readonly PredefinedMetricPairType ASGCPUUtilization = new PredefinedMetricPairType("ASGCPUUtilization");
/// <summary>
/// Constant ASGNetworkIn for PredefinedMetricPairType
/// </summary>
public static readonly PredefinedMetricPairType ASGNetworkIn = new PredefinedMetricPairType("ASGNetworkIn");
/// <summary>
/// Constant ASGNetworkOut for PredefinedMetricPairType
/// </summary>
public static readonly PredefinedMetricPairType ASGNetworkOut = new PredefinedMetricPairType("ASGNetworkOut");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public PredefinedMetricPairType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static PredefinedMetricPairType FindValue(string value)
{
return FindValue<PredefinedMetricPairType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator PredefinedMetricPairType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type PredefinedScalingMetricType.
/// </summary>
public class PredefinedScalingMetricType : ConstantClass
{
/// <summary>
/// Constant ALBRequestCountPerTarget for PredefinedScalingMetricType
/// </summary>
public static readonly PredefinedScalingMetricType ALBRequestCountPerTarget = new PredefinedScalingMetricType("ALBRequestCountPerTarget");
/// <summary>
/// Constant ASGAverageCPUUtilization for PredefinedScalingMetricType
/// </summary>
public static readonly PredefinedScalingMetricType ASGAverageCPUUtilization = new PredefinedScalingMetricType("ASGAverageCPUUtilization");
/// <summary>
/// Constant ASGAverageNetworkIn for PredefinedScalingMetricType
/// </summary>
public static readonly PredefinedScalingMetricType ASGAverageNetworkIn = new PredefinedScalingMetricType("ASGAverageNetworkIn");
/// <summary>
/// Constant ASGAverageNetworkOut for PredefinedScalingMetricType
/// </summary>
public static readonly PredefinedScalingMetricType ASGAverageNetworkOut = new PredefinedScalingMetricType("ASGAverageNetworkOut");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public PredefinedScalingMetricType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static PredefinedScalingMetricType FindValue(string value)
{
return FindValue<PredefinedScalingMetricType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator PredefinedScalingMetricType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type PredictiveScalingMaxCapacityBreachBehavior.
/// </summary>
public class PredictiveScalingMaxCapacityBreachBehavior : ConstantClass
{
/// <summary>
/// Constant HonorMaxCapacity for PredictiveScalingMaxCapacityBreachBehavior
/// </summary>
public static readonly PredictiveScalingMaxCapacityBreachBehavior HonorMaxCapacity = new PredictiveScalingMaxCapacityBreachBehavior("HonorMaxCapacity");
/// <summary>
/// Constant IncreaseMaxCapacity for PredictiveScalingMaxCapacityBreachBehavior
/// </summary>
public static readonly PredictiveScalingMaxCapacityBreachBehavior IncreaseMaxCapacity = new PredictiveScalingMaxCapacityBreachBehavior("IncreaseMaxCapacity");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public PredictiveScalingMaxCapacityBreachBehavior(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static PredictiveScalingMaxCapacityBreachBehavior FindValue(string value)
{
return FindValue<PredictiveScalingMaxCapacityBreachBehavior>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator PredictiveScalingMaxCapacityBreachBehavior(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type PredictiveScalingMode.
/// </summary>
public class PredictiveScalingMode : ConstantClass
{
/// <summary>
/// Constant ForecastAndScale for PredictiveScalingMode
/// </summary>
public static readonly PredictiveScalingMode ForecastAndScale = new PredictiveScalingMode("ForecastAndScale");
/// <summary>
/// Constant ForecastOnly for PredictiveScalingMode
/// </summary>
public static readonly PredictiveScalingMode ForecastOnly = new PredictiveScalingMode("ForecastOnly");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public PredictiveScalingMode(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static PredictiveScalingMode FindValue(string value)
{
return FindValue<PredictiveScalingMode>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator PredictiveScalingMode(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type RefreshStrategy.
/// </summary>
public class RefreshStrategy : ConstantClass
{
/// <summary>
/// Constant Rolling for RefreshStrategy
/// </summary>
public static readonly RefreshStrategy Rolling = new RefreshStrategy("Rolling");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public RefreshStrategy(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static RefreshStrategy FindValue(string value)
{
return FindValue<RefreshStrategy>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator RefreshStrategy(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ScaleInProtectedInstances.
/// </summary>
public class ScaleInProtectedInstances : ConstantClass
{
/// <summary>
/// Constant Ignore for ScaleInProtectedInstances
/// </summary>
public static readonly ScaleInProtectedInstances Ignore = new ScaleInProtectedInstances("Ignore");
/// <summary>
/// Constant Refresh for ScaleInProtectedInstances
/// </summary>
public static readonly ScaleInProtectedInstances Refresh = new ScaleInProtectedInstances("Refresh");
/// <summary>
/// Constant Wait for ScaleInProtectedInstances
/// </summary>
public static readonly ScaleInProtectedInstances Wait = new ScaleInProtectedInstances("Wait");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ScaleInProtectedInstances(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ScaleInProtectedInstances FindValue(string value)
{
return FindValue<ScaleInProtectedInstances>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ScaleInProtectedInstances(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ScalingActivityStatusCode.
/// </summary>
public class ScalingActivityStatusCode : ConstantClass
{
/// <summary>
/// Constant Cancelled for ScalingActivityStatusCode
/// </summary>
public static readonly ScalingActivityStatusCode Cancelled = new ScalingActivityStatusCode("Cancelled");
/// <summary>
/// Constant Failed for ScalingActivityStatusCode
/// </summary>
public static readonly ScalingActivityStatusCode Failed = new ScalingActivityStatusCode("Failed");
/// <summary>
/// Constant InProgress for ScalingActivityStatusCode
/// </summary>
public static readonly ScalingActivityStatusCode InProgress = new ScalingActivityStatusCode("InProgress");
/// <summary>
/// Constant MidLifecycleAction for ScalingActivityStatusCode
/// </summary>
public static readonly ScalingActivityStatusCode MidLifecycleAction = new ScalingActivityStatusCode("MidLifecycleAction");
/// <summary>
/// Constant PendingSpotBidPlacement for ScalingActivityStatusCode
/// </summary>
public static readonly ScalingActivityStatusCode PendingSpotBidPlacement = new ScalingActivityStatusCode("PendingSpotBidPlacement");
/// <summary>
/// Constant PreInService for ScalingActivityStatusCode
/// </summary>
public static readonly ScalingActivityStatusCode PreInService = new ScalingActivityStatusCode("PreInService");
/// <summary>
/// Constant Successful for ScalingActivityStatusCode
/// </summary>
public static readonly ScalingActivityStatusCode Successful = new ScalingActivityStatusCode("Successful");
/// <summary>
/// Constant WaitingForConnectionDraining for ScalingActivityStatusCode
/// </summary>
public static readonly ScalingActivityStatusCode WaitingForConnectionDraining = new ScalingActivityStatusCode("WaitingForConnectionDraining");
/// <summary>
/// Constant WaitingForELBConnectionDraining for ScalingActivityStatusCode
/// </summary>
public static readonly ScalingActivityStatusCode WaitingForELBConnectionDraining = new ScalingActivityStatusCode("WaitingForELBConnectionDraining");
/// <summary>
/// Constant WaitingForInstanceId for ScalingActivityStatusCode
/// </summary>
public static readonly ScalingActivityStatusCode WaitingForInstanceId = new ScalingActivityStatusCode("WaitingForInstanceId");
/// <summary>
/// Constant WaitingForInstanceWarmup for ScalingActivityStatusCode
/// </summary>
public static readonly ScalingActivityStatusCode WaitingForInstanceWarmup = new ScalingActivityStatusCode("WaitingForInstanceWarmup");
/// <summary>
/// Constant WaitingForSpotInstanceId for ScalingActivityStatusCode
/// </summary>
public static readonly ScalingActivityStatusCode WaitingForSpotInstanceId = new ScalingActivityStatusCode("WaitingForSpotInstanceId");
/// <summary>
/// Constant WaitingForSpotInstanceRequestId for ScalingActivityStatusCode
/// </summary>
public static readonly ScalingActivityStatusCode WaitingForSpotInstanceRequestId = new ScalingActivityStatusCode("WaitingForSpotInstanceRequestId");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ScalingActivityStatusCode(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ScalingActivityStatusCode FindValue(string value)
{
return FindValue<ScalingActivityStatusCode>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ScalingActivityStatusCode(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type StandbyInstances.
/// </summary>
public class StandbyInstances : ConstantClass
{
/// <summary>
/// Constant Ignore for StandbyInstances
/// </summary>
public static readonly StandbyInstances Ignore = new StandbyInstances("Ignore");
/// <summary>
/// Constant Terminate for StandbyInstances
/// </summary>
public static readonly StandbyInstances Terminate = new StandbyInstances("Terminate");
/// <summary>
/// Constant Wait for StandbyInstances
/// </summary>
public static readonly StandbyInstances Wait = new StandbyInstances("Wait");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public StandbyInstances(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static StandbyInstances FindValue(string value)
{
return FindValue<StandbyInstances>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator StandbyInstances(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type WarmPoolState.
/// </summary>
public class WarmPoolState : ConstantClass
{
/// <summary>
/// Constant Hibernated for WarmPoolState
/// </summary>
public static readonly WarmPoolState Hibernated = new WarmPoolState("Hibernated");
/// <summary>
/// Constant Running for WarmPoolState
/// </summary>
public static readonly WarmPoolState Running = new WarmPoolState("Running");
/// <summary>
/// Constant Stopped for WarmPoolState
/// </summary>
public static readonly WarmPoolState Stopped = new WarmPoolState("Stopped");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public WarmPoolState(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static WarmPoolState FindValue(string value)
{
return FindValue<WarmPoolState>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator WarmPoolState(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type WarmPoolStatus.
/// </summary>
public class WarmPoolStatus : ConstantClass
{
/// <summary>
/// Constant PendingDelete for WarmPoolStatus
/// </summary>
public static readonly WarmPoolStatus PendingDelete = new WarmPoolStatus("PendingDelete");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public WarmPoolStatus(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static WarmPoolStatus FindValue(string value)
{
return FindValue<WarmPoolStatus>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator WarmPoolStatus(string value)
{
return FindValue(value);
}
}
}
| 1,578 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
using static Amazon.Runtime.Internal.Endpoints.StandardLibrary.Fn;
namespace Amazon.AutoScaling.Internal
{
/// <summary>
/// Amazon AutoScaling endpoint provider.
/// Resolves endpoint for given set of AutoScalingEndpointParameters.
/// Can throw AmazonClientException if endpoint resolution is unsuccessful.
/// </summary>
public class AmazonAutoScalingEndpointProvider : IEndpointProvider
{
/// <summary>
/// Resolve endpoint for AutoScalingEndpointParameters
/// </summary>
public Endpoint ResolveEndpoint(EndpointParameters parameters)
{
if (parameters == null)
throw new ArgumentNullException("parameters");
if (parameters["UseDualStack"] == null)
throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution");
if (parameters["UseFIPS"] == null)
throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution");
var refs = new Dictionary<string, object>()
{
["Region"] = parameters["Region"],
["UseDualStack"] = parameters["UseDualStack"],
["UseFIPS"] = parameters["UseFIPS"],
["Endpoint"] = parameters["Endpoint"],
};
if (IsSet(refs["Endpoint"]))
{
if (Equals(refs["UseFIPS"], true))
{
throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported");
}
if (Equals(refs["UseDualStack"], true))
{
throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported");
}
return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
if (IsSet(refs["Region"]))
{
if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null)
{
if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack")))
{
return new Endpoint(Interpolate(@"https://autoscaling-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both");
}
if (Equals(refs["UseFIPS"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")))
{
if (Equals("aws-us-gov", GetAttr(refs["PartitionResult"], "name")))
{
return new Endpoint(Interpolate(@"https://autoscaling.{Region}.amazonaws.com", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
return new Endpoint(Interpolate(@"https://autoscaling-fips.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS");
}
if (Equals(refs["UseDualStack"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack")))
{
return new Endpoint(Interpolate(@"https://autoscaling.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack");
}
return new Endpoint(Interpolate(@"https://autoscaling.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
}
throw new AmazonClientException("Invalid Configuration: Missing Region");
throw new AmazonClientException("Cannot resolve endpoint");
}
}
}
| 107 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Endpoints;
using Amazon.Util;
using Amazon.AutoScaling.Endpoints;
#pragma warning disable 1591
namespace Amazon.AutoScaling.Internal
{
/// <summary>
/// Amazon AutoScaling endpoint resolver.
/// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for AutoScaling service requests.
/// Collects values for AutoScalingEndpointParameters and then tries to resolve endpoint by calling
/// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses AutoScalingEndpointProvider.
/// Responsible for setting authentication and http headers provided by resolved endpoint.
/// </summary>
public class AmazonAutoScalingEndpointResolver : BaseEndpointResolver
{
protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters)
{
InjectHostPrefix(executionContext.RequestContext);
}
protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext)
{
var config = (AmazonAutoScalingConfig)requestContext.ClientConfig;
var result = new AutoScalingEndpointParameters();
result.Region = config.RegionEndpoint?.SystemName;
result.UseDualStack = config.UseDualstackEndpoint;
result.UseFIPS = config.UseFIPSEndpoint;
result.Endpoint = config.ServiceURL;
// The region needs to be determined from the ServiceURL if not set.
var regionEndpoint = config.RegionEndpoint;
if (regionEndpoint == null && !string.IsNullOrEmpty(config.ServiceURL))
{
var regionName = AWSSDKUtils.DetermineRegion(config.ServiceURL);
result.Region = RegionEndpoint.GetBySystemName(regionName).SystemName;
}
// To support legacy endpoint overridding rules in the endpoints.json
if (result.Region == "us-east-1-regional")
{
result.Region = "us-east-1";
}
// Use AlternateEndpoint region override if set
if (requestContext.Request.AlternateEndpoint != null)
{
result.Region = requestContext.Request.AlternateEndpoint.SystemName;
}
// Assign staticContextParams and contextParam per operation
return result;
}
}
}
| 83 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using Amazon.Runtime.Internal;
namespace Amazon.AutoScaling.Internal
{
/// <summary>
/// Service metadata for Amazon AutoScaling service
/// </summary>
public partial class AmazonAutoScalingMetadata : IServiceMetadata
{
/// <summary>
/// Gets the value of the Service Id.
/// </summary>
public string ServiceId
{
get
{
return "Auto Scaling";
}
}
/// <summary>
/// Gets the dictionary that gives mapping of renamed operations
/// </summary>
public System.Collections.Generic.IDictionary<string, string> OperationNameMapping
{
get
{
return new System.Collections.Generic.Dictionary<string, string>(0)
{
};
}
}
}
}
| 55 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Specifies the minimum and maximum for the <code>AcceleratorCount</code> object when
/// you specify <a>InstanceRequirements</a> for an Auto Scaling group.
/// </summary>
public partial class AcceleratorCountRequest
{
private int? _max;
private int? _min;
/// <summary>
/// Gets and sets the property Max.
/// <para>
/// The maximum value.
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public int Max
{
get { return this._max.GetValueOrDefault(); }
set { this._max = value; }
}
// Check to see if Max property is set
internal bool IsSetMax()
{
return this._max.HasValue;
}
/// <summary>
/// Gets and sets the property Min.
/// <para>
/// The minimum value.
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public int Min
{
get { return this._min.GetValueOrDefault(); }
set { this._min = value; }
}
// Check to see if Min property is set
internal bool IsSetMin()
{
return this._min.HasValue;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Specifies the minimum and maximum for the <code>AcceleratorTotalMemoryMiB</code> object
/// when you specify <a>InstanceRequirements</a> for an Auto Scaling group.
/// </summary>
public partial class AcceleratorTotalMemoryMiBRequest
{
private int? _max;
private int? _min;
/// <summary>
/// Gets and sets the property Max.
/// <para>
/// The memory maximum in MiB.
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public int Max
{
get { return this._max.GetValueOrDefault(); }
set { this._max = value; }
}
// Check to see if Max property is set
internal bool IsSetMax()
{
return this._max.HasValue;
}
/// <summary>
/// Gets and sets the property Min.
/// <para>
/// The memory minimum in MiB.
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public int Min
{
get { return this._min.GetValueOrDefault(); }
set { this._min = value; }
}
// Check to see if Min property is set
internal bool IsSetMin()
{
return this._min.HasValue;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// The request failed because an active instance refresh or rollback for the specified
/// Auto Scaling group was not found.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ActiveInstanceRefreshNotFoundException : AmazonAutoScalingException
{
/// <summary>
/// Constructs a new ActiveInstanceRefreshNotFoundException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ActiveInstanceRefreshNotFoundException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ActiveInstanceRefreshNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ActiveInstanceRefreshNotFoundException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ActiveInstanceRefreshNotFoundException
/// </summary>
/// <param name="innerException"></param>
public ActiveInstanceRefreshNotFoundException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ActiveInstanceRefreshNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ActiveInstanceRefreshNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ActiveInstanceRefreshNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ActiveInstanceRefreshNotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ActiveInstanceRefreshNotFoundException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ActiveInstanceRefreshNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 125 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes scaling activity, which is a long-running process that represents a change
/// to your Auto Scaling group, such as changing its size or replacing an instance.
/// </summary>
public partial class Activity
{
private string _activityId;
private string _autoScalingGroupARN;
private string _autoScalingGroupName;
private string _autoScalingGroupState;
private string _cause;
private string _description;
private string _details;
private DateTime? _endTime;
private int? _progress;
private DateTime? _startTime;
private ScalingActivityStatusCode _statusCode;
private string _statusMessage;
/// <summary>
/// Gets and sets the property ActivityId.
/// <para>
/// The ID of the activity.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ActivityId
{
get { return this._activityId; }
set { this._activityId = value; }
}
// Check to see if ActivityId property is set
internal bool IsSetActivityId()
{
return this._activityId != null;
}
/// <summary>
/// Gets and sets the property AutoScalingGroupARN.
/// <para>
/// The Amazon Resource Name (ARN) of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string AutoScalingGroupARN
{
get { return this._autoScalingGroupARN; }
set { this._autoScalingGroupARN = value; }
}
// Check to see if AutoScalingGroupARN property is set
internal bool IsSetAutoScalingGroupARN()
{
return this._autoScalingGroupARN != null;
}
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property AutoScalingGroupState.
/// <para>
/// The state of the Auto Scaling group, which is either <code>InService</code> or <code>Deleted</code>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=32)]
public string AutoScalingGroupState
{
get { return this._autoScalingGroupState; }
set { this._autoScalingGroupState = value; }
}
// Check to see if AutoScalingGroupState property is set
internal bool IsSetAutoScalingGroupState()
{
return this._autoScalingGroupState != null;
}
/// <summary>
/// Gets and sets the property Cause.
/// <para>
/// The reason the activity began.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1023)]
public string Cause
{
get { return this._cause; }
set { this._cause = value; }
}
// Check to see if Cause property is set
internal bool IsSetCause()
{
return this._cause != null;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// A friendly, more verbose description of the activity.
/// </para>
/// </summary>
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property Details.
/// <para>
/// The details about the activity.
/// </para>
/// </summary>
public string Details
{
get { return this._details; }
set { this._details = value; }
}
// Check to see if Details property is set
internal bool IsSetDetails()
{
return this._details != null;
}
/// <summary>
/// Gets and sets the property EndTime.
/// <para>
/// The end time of the activity.
/// </para>
/// </summary>
public DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set { this._endTime = value; }
}
// Check to see if EndTime property is set
internal bool IsSetEndTime()
{
return this._endTime.HasValue;
}
/// <summary>
/// Gets and sets the property Progress.
/// <para>
/// A value between 0 and 100 that indicates the progress of the activity.
/// </para>
/// </summary>
public int Progress
{
get { return this._progress.GetValueOrDefault(); }
set { this._progress = value; }
}
// Check to see if Progress property is set
internal bool IsSetProgress()
{
return this._progress.HasValue;
}
/// <summary>
/// Gets and sets the property StartTime.
/// <para>
/// The start time of the activity.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set { this._startTime = value; }
}
// Check to see if StartTime property is set
internal bool IsSetStartTime()
{
return this._startTime.HasValue;
}
/// <summary>
/// Gets and sets the property StatusCode.
/// <para>
/// The current status of the activity.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ScalingActivityStatusCode StatusCode
{
get { return this._statusCode; }
set { this._statusCode = value; }
}
// Check to see if StatusCode property is set
internal bool IsSetStatusCode()
{
return this._statusCode != null;
}
/// <summary>
/// Gets and sets the property StatusMessage.
/// <para>
/// A friendly, more verbose description of the activity status.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string StatusMessage
{
get { return this._statusMessage; }
set { this._statusMessage = value; }
}
// Check to see if StatusMessage property is set
internal bool IsSetStatusMessage()
{
return this._statusMessage != null;
}
}
}
| 275 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes a policy adjustment type.
/// </summary>
public partial class AdjustmentType
{
private string _type;
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// The policy adjustment type. The valid values are <code>ChangeInCapacity</code>, <code>ExactCapacity</code>,
/// and <code>PercentChangeInCapacity</code>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}
| 59 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes an alarm.
/// </summary>
public partial class Alarm
{
private string _alarmARN;
private string _alarmName;
/// <summary>
/// Gets and sets the property AlarmARN.
/// <para>
/// The Amazon Resource Name (ARN) of the alarm.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string AlarmARN
{
get { return this._alarmARN; }
set { this._alarmARN = value; }
}
// Check to see if AlarmARN property is set
internal bool IsSetAlarmARN()
{
return this._alarmARN != null;
}
/// <summary>
/// Gets and sets the property AlarmName.
/// <para>
/// The name of the alarm.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string AlarmName
{
get { return this._alarmName; }
set { this._alarmName = value; }
}
// Check to see if AlarmName property is set
internal bool IsSetAlarmName()
{
return this._alarmName != null;
}
}
}
| 78 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// You already have an Auto Scaling group or launch configuration with this name.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class AlreadyExistsException : AmazonAutoScalingException
{
/// <summary>
/// Constructs a new AlreadyExistsException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public AlreadyExistsException(string message)
: base(message) {}
/// <summary>
/// Construct instance of AlreadyExistsException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public AlreadyExistsException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of AlreadyExistsException
/// </summary>
/// <param name="innerException"></param>
public AlreadyExistsException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of AlreadyExistsException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AlreadyExistsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of AlreadyExistsException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AlreadyExistsException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the AlreadyExistsException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected AlreadyExistsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 124 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AutoScaling
{
/// <summary>
/// Base class for AutoScaling operation requests.
/// </summary>
public partial class AmazonAutoScalingRequest : AmazonWebServiceRequest
{
}
}
| 30 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the AttachInstances operation.
/// Attaches one or more EC2 instances to the specified Auto Scaling group.
///
///
/// <para>
/// When you attach instances, Amazon EC2 Auto Scaling increases the desired capacity
/// of the group by the number of instances being attached. If the number of instances
/// being attached plus the desired capacity of the group exceeds the maximum size of
/// the group, the operation fails.
/// </para>
///
/// <para>
/// If there is a Classic Load Balancer attached to your Auto Scaling group, the instances
/// are also registered with the load balancer. If there are target groups attached to
/// your Auto Scaling group, the instances are also registered with the target groups.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/attach-instance-asg.html">Attach
/// EC2 instances to your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User
/// Guide</i>.
/// </para>
/// </summary>
public partial class AttachInstancesRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private List<string> _instanceIds = new List<string>();
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property InstanceIds.
/// <para>
/// The IDs of the instances. You can specify up to 20 instances.
/// </para>
/// </summary>
public List<string> InstanceIds
{
get { return this._instanceIds; }
set { this._instanceIds = value; }
}
// Check to see if InstanceIds property is set
internal bool IsSetInstanceIds()
{
return this._instanceIds != null && this._instanceIds.Count > 0;
}
}
}
| 98 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the AttachInstances operation.
/// </summary>
public partial class AttachInstancesResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the AttachLoadBalancers operation.
/// <note>
/// <para>
/// This API operation is superseded by <a>AttachTrafficSources</a>, which can attach
/// multiple traffic sources types. We recommend using <code>AttachTrafficSources</code>
/// to simplify how you manage traffic sources. However, we continue to support <code>AttachLoadBalancers</code>.
/// You can use both the original <code>AttachLoadBalancers</code> API operation and <code>AttachTrafficSources</code>
/// on the same Auto Scaling group.
/// </para>
/// </note>
/// <para>
/// Attaches one or more Classic Load Balancers to the specified Auto Scaling group. Amazon
/// EC2 Auto Scaling registers the running instances with these Classic Load Balancers.
/// </para>
///
/// <para>
/// To describe the load balancers for an Auto Scaling group, call the <a>DescribeLoadBalancers</a>
/// API. To detach a load balancer from the Auto Scaling group, call the <a>DetachLoadBalancers</a>
/// API.
/// </para>
///
/// <para>
/// This operation is additive and does not detach existing Classic Load Balancers or
/// target groups from the Auto Scaling group.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use
/// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling
/// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class AttachLoadBalancersRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private List<string> _loadBalancerNames = new List<string>();
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property LoadBalancerNames.
/// <para>
/// The names of the load balancers. You can specify up to 10 load balancers.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> LoadBalancerNames
{
get { return this._loadBalancerNames; }
set { this._loadBalancerNames = value; }
}
// Check to see if LoadBalancerNames property is set
internal bool IsSetLoadBalancerNames()
{
return this._loadBalancerNames != null && this._loadBalancerNames.Count > 0;
}
}
}
| 108 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the AttachLoadBalancers operation.
/// </summary>
public partial class AttachLoadBalancersResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the AttachLoadBalancerTargetGroups operation.
/// <note>
/// <para>
/// This API operation is superseded by <a>AttachTrafficSources</a>, which can attach
/// multiple traffic sources types. We recommend using <code>AttachTrafficSources</code>
/// to simplify how you manage traffic sources. However, we continue to support <code>AttachLoadBalancerTargetGroups</code>.
/// You can use both the original <code>AttachLoadBalancerTargetGroups</code> API operation
/// and <code>AttachTrafficSources</code> on the same Auto Scaling group.
/// </para>
/// </note>
/// <para>
/// Attaches one or more target groups to the specified Auto Scaling group.
/// </para>
///
/// <para>
/// This operation is used with the following load balancer types:
/// </para>
/// <ul> <li>
/// <para>
/// Application Load Balancer - Operates at the application layer (layer 7) and supports
/// HTTP and HTTPS.
/// </para>
/// </li> <li>
/// <para>
/// Network Load Balancer - Operates at the transport layer (layer 4) and supports TCP,
/// TLS, and UDP.
/// </para>
/// </li> <li>
/// <para>
/// Gateway Load Balancer - Operates at the network layer (layer 3).
/// </para>
/// </li> </ul>
/// <para>
/// To describe the target groups for an Auto Scaling group, call the <a>DescribeLoadBalancerTargetGroups</a>
/// API. To detach the target group from the Auto Scaling group, call the <a>DetachLoadBalancerTargetGroups</a>
/// API.
/// </para>
///
/// <para>
/// This operation is additive and does not detach existing target groups or Classic Load
/// Balancers from the Auto Scaling group.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use
/// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling
/// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class AttachLoadBalancerTargetGroupsRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private List<string> _targetGroupARNs = new List<string>();
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property TargetGroupARNs.
/// <para>
/// The Amazon Resource Names (ARNs) of the target groups. You can specify up to 10 target
/// groups. To get the ARN of a target group, use the Elastic Load Balancing <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html">DescribeTargetGroups</a>
/// API operation.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> TargetGroupARNs
{
get { return this._targetGroupARNs; }
set { this._targetGroupARNs = value; }
}
// Check to see if TargetGroupARNs property is set
internal bool IsSetTargetGroupARNs()
{
return this._targetGroupARNs != null && this._targetGroupARNs.Count > 0;
}
}
}
| 127 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the AttachLoadBalancerTargetGroups operation.
/// </summary>
public partial class AttachLoadBalancerTargetGroupsResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the AttachTrafficSources operation.
/// Attaches one or more traffic sources to the specified Auto Scaling group.
///
///
/// <para>
/// You can use any of the following as traffic sources for an Auto Scaling group:
/// </para>
/// <ul> <li>
/// <para>
/// Application Load Balancer
/// </para>
/// </li> <li>
/// <para>
/// Classic Load Balancer
/// </para>
/// </li> <li>
/// <para>
/// Gateway Load Balancer
/// </para>
/// </li> <li>
/// <para>
/// Network Load Balancer
/// </para>
/// </li> <li>
/// <para>
/// VPC Lattice
/// </para>
/// </li> </ul>
/// <para>
/// This operation is additive and does not detach existing traffic sources from the Auto
/// Scaling group.
/// </para>
///
/// <para>
/// After the operation completes, use the <a>DescribeTrafficSources</a> API to return
/// details about the state of the attachments between traffic sources and your Auto Scaling
/// group. To detach a traffic source from the Auto Scaling group, call the <a>DetachTrafficSources</a>
/// API.
/// </para>
/// </summary>
public partial class AttachTrafficSourcesRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private List<TrafficSourceIdentifier> _trafficSources = new List<TrafficSourceIdentifier>();
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property TrafficSources.
/// <para>
/// The unique identifiers of one or more traffic sources. You can specify up to 10 traffic
/// sources.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<TrafficSourceIdentifier> TrafficSources
{
get { return this._trafficSources; }
set { this._trafficSources = value; }
}
// Check to see if TrafficSources property is set
internal bool IsSetTrafficSources()
{
return this._trafficSources != null && this._trafficSources.Count > 0;
}
}
}
| 117 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the AttachTrafficSources operation.
/// </summary>
public partial class AttachTrafficSourcesResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes an Auto Scaling group.
/// </summary>
public partial class AutoScalingGroup
{
private string _autoScalingGroupARN;
private string _autoScalingGroupName;
private List<string> _availabilityZones = new List<string>();
private bool? _capacityRebalance;
private string _context;
private DateTime? _createdTime;
private int? _defaultCooldown;
private int? _defaultInstanceWarmup;
private int? _desiredCapacity;
private string _desiredCapacityType;
private List<EnabledMetric> _enabledMetrics = new List<EnabledMetric>();
private int? _healthCheckGracePeriod;
private string _healthCheckType;
private List<Instance> _instances = new List<Instance>();
private string _launchConfigurationName;
private LaunchTemplateSpecification _launchTemplate;
private List<string> _loadBalancerNames = new List<string>();
private int? _maxInstanceLifetime;
private int? _maxSize;
private int? _minSize;
private MixedInstancesPolicy _mixedInstancesPolicy;
private bool? _newInstancesProtectedFromScaleIn;
private string _placementGroup;
private int? _predictedCapacity;
private string _serviceLinkedRoleARN;
private string _status;
private List<SuspendedProcess> _suspendedProcesses = new List<SuspendedProcess>();
private List<TagDescription> _tags = new List<TagDescription>();
private List<string> _targetGroupARNs = new List<string>();
private List<string> _terminationPolicies = new List<string>();
private List<TrafficSourceIdentifier> _trafficSources = new List<TrafficSourceIdentifier>();
private string _vpcZoneIdentifier;
private WarmPoolConfiguration _warmPoolConfiguration;
private int? _warmPoolSize;
/// <summary>
/// Gets and sets the property AutoScalingGroupARN.
/// <para>
/// The Amazon Resource Name (ARN) of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string AutoScalingGroupARN
{
get { return this._autoScalingGroupARN; }
set { this._autoScalingGroupARN = value; }
}
// Check to see if AutoScalingGroupARN property is set
internal bool IsSetAutoScalingGroupARN()
{
return this._autoScalingGroupARN != null;
}
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property AvailabilityZones.
/// <para>
/// One or more Availability Zones for the group.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> AvailabilityZones
{
get { return this._availabilityZones; }
set { this._availabilityZones = value; }
}
// Check to see if AvailabilityZones property is set
internal bool IsSetAvailabilityZones()
{
return this._availabilityZones != null && this._availabilityZones.Count > 0;
}
/// <summary>
/// Gets and sets the property CapacityRebalance.
/// <para>
/// Indicates whether Capacity Rebalancing is enabled.
/// </para>
/// </summary>
public bool CapacityRebalance
{
get { return this._capacityRebalance.GetValueOrDefault(); }
set { this._capacityRebalance = value; }
}
// Check to see if CapacityRebalance property is set
internal bool IsSetCapacityRebalance()
{
return this._capacityRebalance.HasValue;
}
/// <summary>
/// Gets and sets the property Context.
/// <para>
/// Reserved.
/// </para>
/// </summary>
public string Context
{
get { return this._context; }
set { this._context = value; }
}
// Check to see if Context property is set
internal bool IsSetContext()
{
return this._context != null;
}
/// <summary>
/// Gets and sets the property CreatedTime.
/// <para>
/// The date and time the group was created.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime CreatedTime
{
get { return this._createdTime.GetValueOrDefault(); }
set { this._createdTime = value; }
}
// Check to see if CreatedTime property is set
internal bool IsSetCreatedTime()
{
return this._createdTime.HasValue;
}
/// <summary>
/// Gets and sets the property DefaultCooldown.
/// <para>
/// The duration of the default cooldown period, in seconds.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public int DefaultCooldown
{
get { return this._defaultCooldown.GetValueOrDefault(); }
set { this._defaultCooldown = value; }
}
// Check to see if DefaultCooldown property is set
internal bool IsSetDefaultCooldown()
{
return this._defaultCooldown.HasValue;
}
/// <summary>
/// Gets and sets the property DefaultInstanceWarmup.
/// <para>
/// The duration of the default instance warmup, in seconds.
/// </para>
/// </summary>
public int DefaultInstanceWarmup
{
get { return this._defaultInstanceWarmup.GetValueOrDefault(); }
set { this._defaultInstanceWarmup = value; }
}
// Check to see if DefaultInstanceWarmup property is set
internal bool IsSetDefaultInstanceWarmup()
{
return this._defaultInstanceWarmup.HasValue;
}
/// <summary>
/// Gets and sets the property DesiredCapacity.
/// <para>
/// The desired size of the group.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public int DesiredCapacity
{
get { return this._desiredCapacity.GetValueOrDefault(); }
set { this._desiredCapacity = value; }
}
// Check to see if DesiredCapacity property is set
internal bool IsSetDesiredCapacity()
{
return this._desiredCapacity.HasValue;
}
/// <summary>
/// Gets and sets the property DesiredCapacityType.
/// <para>
/// The unit of measurement for the value specified for desired capacity. Amazon EC2 Auto
/// Scaling supports <code>DesiredCapacityType</code> for attribute-based instance type
/// selection only.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string DesiredCapacityType
{
get { return this._desiredCapacityType; }
set { this._desiredCapacityType = value; }
}
// Check to see if DesiredCapacityType property is set
internal bool IsSetDesiredCapacityType()
{
return this._desiredCapacityType != null;
}
/// <summary>
/// Gets and sets the property EnabledMetrics.
/// <para>
/// The metrics enabled for the group.
/// </para>
/// </summary>
public List<EnabledMetric> EnabledMetrics
{
get { return this._enabledMetrics; }
set { this._enabledMetrics = value; }
}
// Check to see if EnabledMetrics property is set
internal bool IsSetEnabledMetrics()
{
return this._enabledMetrics != null && this._enabledMetrics.Count > 0;
}
/// <summary>
/// Gets and sets the property HealthCheckGracePeriod.
/// <para>
/// The duration of the health check grace period, in seconds.
/// </para>
/// </summary>
public int HealthCheckGracePeriod
{
get { return this._healthCheckGracePeriod.GetValueOrDefault(); }
set { this._healthCheckGracePeriod = value; }
}
// Check to see if HealthCheckGracePeriod property is set
internal bool IsSetHealthCheckGracePeriod()
{
return this._healthCheckGracePeriod.HasValue;
}
/// <summary>
/// Gets and sets the property HealthCheckType.
/// <para>
/// A comma-separated value string of one or more health check types.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=32)]
public string HealthCheckType
{
get { return this._healthCheckType; }
set { this._healthCheckType = value; }
}
// Check to see if HealthCheckType property is set
internal bool IsSetHealthCheckType()
{
return this._healthCheckType != null;
}
/// <summary>
/// Gets and sets the property Instances.
/// <para>
/// The EC2 instances associated with the group.
/// </para>
/// </summary>
public List<Instance> Instances
{
get { return this._instances; }
set { this._instances = value; }
}
// Check to see if Instances property is set
internal bool IsSetInstances()
{
return this._instances != null && this._instances.Count > 0;
}
/// <summary>
/// Gets and sets the property LaunchConfigurationName.
/// <para>
/// The name of the associated launch configuration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string LaunchConfigurationName
{
get { return this._launchConfigurationName; }
set { this._launchConfigurationName = value; }
}
// Check to see if LaunchConfigurationName property is set
internal bool IsSetLaunchConfigurationName()
{
return this._launchConfigurationName != null;
}
/// <summary>
/// Gets and sets the property LaunchTemplate.
/// <para>
/// The launch template for the group.
/// </para>
/// </summary>
public LaunchTemplateSpecification LaunchTemplate
{
get { return this._launchTemplate; }
set { this._launchTemplate = value; }
}
// Check to see if LaunchTemplate property is set
internal bool IsSetLaunchTemplate()
{
return this._launchTemplate != null;
}
/// <summary>
/// Gets and sets the property LoadBalancerNames.
/// <para>
/// One or more load balancers associated with the group.
/// </para>
/// </summary>
public List<string> LoadBalancerNames
{
get { return this._loadBalancerNames; }
set { this._loadBalancerNames = value; }
}
// Check to see if LoadBalancerNames property is set
internal bool IsSetLoadBalancerNames()
{
return this._loadBalancerNames != null && this._loadBalancerNames.Count > 0;
}
/// <summary>
/// Gets and sets the property MaxInstanceLifetime.
/// <para>
/// The maximum amount of time, in seconds, that an instance can be in service.
/// </para>
///
/// <para>
/// Valid Range: Minimum value of 0.
/// </para>
/// </summary>
public int MaxInstanceLifetime
{
get { return this._maxInstanceLifetime.GetValueOrDefault(); }
set { this._maxInstanceLifetime = value; }
}
// Check to see if MaxInstanceLifetime property is set
internal bool IsSetMaxInstanceLifetime()
{
return this._maxInstanceLifetime.HasValue;
}
/// <summary>
/// Gets and sets the property MaxSize.
/// <para>
/// The maximum size of the group.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public int MaxSize
{
get { return this._maxSize.GetValueOrDefault(); }
set { this._maxSize = value; }
}
// Check to see if MaxSize property is set
internal bool IsSetMaxSize()
{
return this._maxSize.HasValue;
}
/// <summary>
/// Gets and sets the property MinSize.
/// <para>
/// The minimum size of the group.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public int MinSize
{
get { return this._minSize.GetValueOrDefault(); }
set { this._minSize = value; }
}
// Check to see if MinSize property is set
internal bool IsSetMinSize()
{
return this._minSize.HasValue;
}
/// <summary>
/// Gets and sets the property MixedInstancesPolicy.
/// <para>
/// The mixed instances policy for the group.
/// </para>
/// </summary>
public MixedInstancesPolicy MixedInstancesPolicy
{
get { return this._mixedInstancesPolicy; }
set { this._mixedInstancesPolicy = value; }
}
// Check to see if MixedInstancesPolicy property is set
internal bool IsSetMixedInstancesPolicy()
{
return this._mixedInstancesPolicy != null;
}
/// <summary>
/// Gets and sets the property NewInstancesProtectedFromScaleIn.
/// <para>
/// Indicates whether newly launched instances are protected from termination by Amazon
/// EC2 Auto Scaling when scaling in.
/// </para>
/// </summary>
public bool NewInstancesProtectedFromScaleIn
{
get { return this._newInstancesProtectedFromScaleIn.GetValueOrDefault(); }
set { this._newInstancesProtectedFromScaleIn = value; }
}
// Check to see if NewInstancesProtectedFromScaleIn property is set
internal bool IsSetNewInstancesProtectedFromScaleIn()
{
return this._newInstancesProtectedFromScaleIn.HasValue;
}
/// <summary>
/// Gets and sets the property PlacementGroup.
/// <para>
/// The name of the placement group into which to launch your instances, if any.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string PlacementGroup
{
get { return this._placementGroup; }
set { this._placementGroup = value; }
}
// Check to see if PlacementGroup property is set
internal bool IsSetPlacementGroup()
{
return this._placementGroup != null;
}
/// <summary>
/// Gets and sets the property PredictedCapacity.
/// <para>
/// The predicted capacity of the group when it has a predictive scaling policy.
/// </para>
/// </summary>
public int PredictedCapacity
{
get { return this._predictedCapacity.GetValueOrDefault(); }
set { this._predictedCapacity = value; }
}
// Check to see if PredictedCapacity property is set
internal bool IsSetPredictedCapacity()
{
return this._predictedCapacity.HasValue;
}
/// <summary>
/// Gets and sets the property ServiceLinkedRoleARN.
/// <para>
/// The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group
/// uses to call other Amazon Web Services on your behalf.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string ServiceLinkedRoleARN
{
get { return this._serviceLinkedRoleARN; }
set { this._serviceLinkedRoleARN = value; }
}
// Check to see if ServiceLinkedRoleARN property is set
internal bool IsSetServiceLinkedRoleARN()
{
return this._serviceLinkedRoleARN != null;
}
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// The current state of the group when the <a>DeleteAutoScalingGroup</a> operation is
/// in progress.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
/// <summary>
/// Gets and sets the property SuspendedProcesses.
/// <para>
/// The suspended processes associated with the group.
/// </para>
/// </summary>
public List<SuspendedProcess> SuspendedProcesses
{
get { return this._suspendedProcesses; }
set { this._suspendedProcesses = value; }
}
// Check to see if SuspendedProcesses property is set
internal bool IsSetSuspendedProcesses()
{
return this._suspendedProcesses != null && this._suspendedProcesses.Count > 0;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The tags for the group.
/// </para>
/// </summary>
public List<TagDescription> 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 TargetGroupARNs.
/// <para>
/// The Amazon Resource Names (ARN) of the target groups for your load balancer.
/// </para>
/// </summary>
public List<string> TargetGroupARNs
{
get { return this._targetGroupARNs; }
set { this._targetGroupARNs = value; }
}
// Check to see if TargetGroupARNs property is set
internal bool IsSetTargetGroupARNs()
{
return this._targetGroupARNs != null && this._targetGroupARNs.Count > 0;
}
/// <summary>
/// Gets and sets the property TerminationPolicies.
/// <para>
/// The termination policies for the group.
/// </para>
/// </summary>
public List<string> TerminationPolicies
{
get { return this._terminationPolicies; }
set { this._terminationPolicies = value; }
}
// Check to see if TerminationPolicies property is set
internal bool IsSetTerminationPolicies()
{
return this._terminationPolicies != null && this._terminationPolicies.Count > 0;
}
/// <summary>
/// Gets and sets the property TrafficSources.
/// <para>
/// The traffic sources associated with this Auto Scaling group.
/// </para>
/// </summary>
public List<TrafficSourceIdentifier> TrafficSources
{
get { return this._trafficSources; }
set { this._trafficSources = value; }
}
// Check to see if TrafficSources property is set
internal bool IsSetTrafficSources()
{
return this._trafficSources != null && this._trafficSources.Count > 0;
}
/// <summary>
/// Gets and sets the property VPCZoneIdentifier.
/// <para>
/// One or more subnet IDs, if applicable, separated by commas.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2047)]
public string VPCZoneIdentifier
{
get { return this._vpcZoneIdentifier; }
set { this._vpcZoneIdentifier = value; }
}
// Check to see if VPCZoneIdentifier property is set
internal bool IsSetVPCZoneIdentifier()
{
return this._vpcZoneIdentifier != null;
}
/// <summary>
/// Gets and sets the property WarmPoolConfiguration.
/// <para>
/// The warm pool for the group.
/// </para>
/// </summary>
public WarmPoolConfiguration WarmPoolConfiguration
{
get { return this._warmPoolConfiguration; }
set { this._warmPoolConfiguration = value; }
}
// Check to see if WarmPoolConfiguration property is set
internal bool IsSetWarmPoolConfiguration()
{
return this._warmPoolConfiguration != null;
}
/// <summary>
/// Gets and sets the property WarmPoolSize.
/// <para>
/// The current size of the warm pool.
/// </para>
/// </summary>
public int WarmPoolSize
{
get { return this._warmPoolSize.GetValueOrDefault(); }
set { this._warmPoolSize = value; }
}
// Check to see if WarmPoolSize property is set
internal bool IsSetWarmPoolSize()
{
return this._warmPoolSize.HasValue;
}
}
}
| 708 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes an EC2 instance associated with an Auto Scaling group.
/// </summary>
public partial class AutoScalingInstanceDetails
{
private string _autoScalingGroupName;
private string _availabilityZone;
private string _healthStatus;
private string _instanceId;
private string _instanceType;
private string _launchConfigurationName;
private LaunchTemplateSpecification _launchTemplate;
private string _lifecycleState;
private bool? _protectedFromScaleIn;
private string _weightedCapacity;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group for the instance.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property AvailabilityZone.
/// <para>
/// The Availability Zone for the instance.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AvailabilityZone
{
get { return this._availabilityZone; }
set { this._availabilityZone = value; }
}
// Check to see if AvailabilityZone property is set
internal bool IsSetAvailabilityZone()
{
return this._availabilityZone != null;
}
/// <summary>
/// Gets and sets the property HealthStatus.
/// <para>
/// The last reported health status of this instance. <code>Healthy</code> means that
/// the instance is healthy and should remain in service. <code>Unhealthy</code> means
/// that the instance is unhealthy and Amazon EC2 Auto Scaling should terminate and replace
/// it.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=32)]
public string HealthStatus
{
get { return this._healthStatus; }
set { this._healthStatus = value; }
}
// Check to see if HealthStatus property is set
internal bool IsSetHealthStatus()
{
return this._healthStatus != null;
}
/// <summary>
/// Gets and sets the property InstanceId.
/// <para>
/// The ID of the instance.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=19)]
public string InstanceId
{
get { return this._instanceId; }
set { this._instanceId = value; }
}
// Check to see if InstanceId property is set
internal bool IsSetInstanceId()
{
return this._instanceId != null;
}
/// <summary>
/// Gets and sets the property InstanceType.
/// <para>
/// The instance type of the EC2 instance.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string InstanceType
{
get { return this._instanceType; }
set { this._instanceType = value; }
}
// Check to see if InstanceType property is set
internal bool IsSetInstanceType()
{
return this._instanceType != null;
}
/// <summary>
/// Gets and sets the property LaunchConfigurationName.
/// <para>
/// The launch configuration used to launch the instance. This value is not available
/// if you attached the instance to the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string LaunchConfigurationName
{
get { return this._launchConfigurationName; }
set { this._launchConfigurationName = value; }
}
// Check to see if LaunchConfigurationName property is set
internal bool IsSetLaunchConfigurationName()
{
return this._launchConfigurationName != null;
}
/// <summary>
/// Gets and sets the property LaunchTemplate.
/// <para>
/// The launch template for the instance.
/// </para>
/// </summary>
public LaunchTemplateSpecification LaunchTemplate
{
get { return this._launchTemplate; }
set { this._launchTemplate = value; }
}
// Check to see if LaunchTemplate property is set
internal bool IsSetLaunchTemplate()
{
return this._launchTemplate != null;
}
/// <summary>
/// Gets and sets the property LifecycleState.
/// <para>
/// The lifecycle state for the instance. The <code>Quarantined</code> state is not used.
/// For information about lifecycle states, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroupLifecycle.html">Instance
/// lifecycle</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
///
/// <para>
/// Valid values: <code>Pending</code> | <code>Pending:Wait</code> | <code>Pending:Proceed</code>
/// | <code>Quarantined</code> | <code>InService</code> | <code>Terminating</code> | <code>Terminating:Wait</code>
/// | <code>Terminating:Proceed</code> | <code>Terminated</code> | <code>Detaching</code>
/// | <code>Detached</code> | <code>EnteringStandby</code> | <code>Standby</code> | <code>Warmed:Pending</code>
/// | <code>Warmed:Pending:Wait</code> | <code>Warmed:Pending:Proceed</code> | <code>Warmed:Terminating</code>
/// | <code>Warmed:Terminating:Wait</code> | <code>Warmed:Terminating:Proceed</code> |
/// <code>Warmed:Terminated</code> | <code>Warmed:Stopped</code> | <code>Warmed:Running</code>
///
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=32)]
public string LifecycleState
{
get { return this._lifecycleState; }
set { this._lifecycleState = value; }
}
// Check to see if LifecycleState property is set
internal bool IsSetLifecycleState()
{
return this._lifecycleState != null;
}
/// <summary>
/// Gets and sets the property ProtectedFromScaleIn.
/// <para>
/// Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling
/// when scaling in.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public bool ProtectedFromScaleIn
{
get { return this._protectedFromScaleIn.GetValueOrDefault(); }
set { this._protectedFromScaleIn = value; }
}
// Check to see if ProtectedFromScaleIn property is set
internal bool IsSetProtectedFromScaleIn()
{
return this._protectedFromScaleIn.HasValue;
}
/// <summary>
/// Gets and sets the property WeightedCapacity.
/// <para>
/// The number of capacity units contributed by the instance based on its instance type.
/// </para>
///
/// <para>
/// Valid Range: Minimum value of 1. Maximum value of 999.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=32)]
public string WeightedCapacity
{
get { return this._weightedCapacity; }
set { this._weightedCapacity = value; }
}
// Check to see if WeightedCapacity property is set
internal bool IsSetWeightedCapacity()
{
return this._weightedCapacity != null;
}
}
}
| 259 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Specifies the minimum and maximum for the <code>BaselineEbsBandwidthMbps</code> object
/// when you specify <a>InstanceRequirements</a> for an Auto Scaling group.
/// </summary>
public partial class BaselineEbsBandwidthMbpsRequest
{
private int? _max;
private int? _min;
/// <summary>
/// Gets and sets the property Max.
/// <para>
/// The maximum value in Mbps.
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public int Max
{
get { return this._max.GetValueOrDefault(); }
set { this._max = value; }
}
// Check to see if Max property is set
internal bool IsSetMax()
{
return this._max.HasValue;
}
/// <summary>
/// Gets and sets the property Min.
/// <para>
/// The minimum value in Mbps.
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public int Min
{
get { return this._min.GetValueOrDefault(); }
set { this._min = value; }
}
// Check to see if Min property is set
internal bool IsSetMin()
{
return this._min.HasValue;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the BatchDeleteScheduledAction operation.
/// Deletes one or more scheduled actions for the specified Auto Scaling group.
/// </summary>
public partial class BatchDeleteScheduledActionRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private List<string> _scheduledActionNames = new List<string>();
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property ScheduledActionNames.
/// <para>
/// The names of the scheduled actions to delete. The maximum number allowed is 50.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> ScheduledActionNames
{
get { return this._scheduledActionNames; }
set { this._scheduledActionNames = value; }
}
// Check to see if ScheduledActionNames property is set
internal bool IsSetScheduledActionNames()
{
return this._scheduledActionNames != null && this._scheduledActionNames.Count > 0;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the BatchDeleteScheduledAction operation.
/// </summary>
public partial class BatchDeleteScheduledActionResponse : AmazonWebServiceResponse
{
private List<FailedScheduledUpdateGroupActionRequest> _failedScheduledActions = new List<FailedScheduledUpdateGroupActionRequest>();
/// <summary>
/// Gets and sets the property FailedScheduledActions.
/// <para>
/// The names of the scheduled actions that could not be deleted, including an error message.
/// </para>
/// </summary>
public List<FailedScheduledUpdateGroupActionRequest> FailedScheduledActions
{
get { return this._failedScheduledActions; }
set { this._failedScheduledActions = value; }
}
// Check to see if FailedScheduledActions property is set
internal bool IsSetFailedScheduledActions()
{
return this._failedScheduledActions != null && this._failedScheduledActions.Count > 0;
}
}
}
| 57 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the BatchPutScheduledUpdateGroupAction operation.
/// Creates or updates one or more scheduled scaling actions for an Auto Scaling group.
/// </summary>
public partial class BatchPutScheduledUpdateGroupActionRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private List<ScheduledUpdateGroupActionRequest> _scheduledUpdateGroupActions = new List<ScheduledUpdateGroupActionRequest>();
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property ScheduledUpdateGroupActions.
/// <para>
/// One or more scheduled actions. The maximum number allowed is 50.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<ScheduledUpdateGroupActionRequest> ScheduledUpdateGroupActions
{
get { return this._scheduledUpdateGroupActions; }
set { this._scheduledUpdateGroupActions = value; }
}
// Check to see if ScheduledUpdateGroupActions property is set
internal bool IsSetScheduledUpdateGroupActions()
{
return this._scheduledUpdateGroupActions != null && this._scheduledUpdateGroupActions.Count > 0;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the BatchPutScheduledUpdateGroupAction operation.
/// </summary>
public partial class BatchPutScheduledUpdateGroupActionResponse : AmazonWebServiceResponse
{
private List<FailedScheduledUpdateGroupActionRequest> _failedScheduledUpdateGroupActions = new List<FailedScheduledUpdateGroupActionRequest>();
/// <summary>
/// Gets and sets the property FailedScheduledUpdateGroupActions.
/// <para>
/// The names of the scheduled actions that could not be created or updated, including
/// an error message.
/// </para>
/// </summary>
public List<FailedScheduledUpdateGroupActionRequest> FailedScheduledUpdateGroupActions
{
get { return this._failedScheduledUpdateGroupActions; }
set { this._failedScheduledUpdateGroupActions = value; }
}
// Check to see if FailedScheduledUpdateGroupActions property is set
internal bool IsSetFailedScheduledUpdateGroupActions()
{
return this._failedScheduledUpdateGroupActions != null && this._failedScheduledUpdateGroupActions.Count > 0;
}
}
}
| 58 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes a block device mapping.
/// </summary>
public partial class BlockDeviceMapping
{
private string _deviceName;
private Ebs _ebs;
private bool? _noDevice;
private string _virtualName;
/// <summary>
/// Gets and sets the property DeviceName.
/// <para>
/// The device name assigned to the volume (for example, <code>/dev/sdh</code> or <code>xvdh</code>).
/// For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html">Device
/// naming on Linux instances</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.
/// </para>
/// <note>
/// <para>
/// To define a block device mapping, set the device name and exactly one of the following
/// properties: <code>Ebs</code>, <code>NoDevice</code>, or <code>VirtualName</code>.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string DeviceName
{
get { return this._deviceName; }
set { this._deviceName = value; }
}
// Check to see if DeviceName property is set
internal bool IsSetDeviceName()
{
return this._deviceName != null;
}
/// <summary>
/// Gets and sets the property Ebs.
/// <para>
/// Information to attach an EBS volume to an instance at launch.
/// </para>
/// </summary>
public Ebs Ebs
{
get { return this._ebs; }
set { this._ebs = value; }
}
// Check to see if Ebs property is set
internal bool IsSetEbs()
{
return this._ebs != null;
}
/// <summary>
/// Gets and sets the property NoDevice.
/// <para>
/// Setting this value to <code>true</code> prevents a volume that is included in the
/// block device mapping of the AMI from being mapped to the specified device name at
/// launch.
/// </para>
///
/// <para>
/// If <code>NoDevice</code> is <code>true</code> for the root device, instances might
/// fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches replacement
/// instances.
/// </para>
/// </summary>
public bool NoDevice
{
get { return this._noDevice.GetValueOrDefault(); }
set { this._noDevice = value; }
}
// Check to see if NoDevice property is set
internal bool IsSetNoDevice()
{
return this._noDevice.HasValue;
}
/// <summary>
/// Gets and sets the property VirtualName.
/// <para>
/// The name of the instance store volume (virtual device) to attach to an instance at
/// launch. The name must be in the form ephemeral<i>X</i> where <i>X</i> is a number
/// starting from zero (0), for example, <code>ephemeral0</code>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string VirtualName
{
get { return this._virtualName; }
set { this._virtualName = value; }
}
// Check to see if VirtualName property is set
internal bool IsSetVirtualName()
{
return this._virtualName != null;
}
}
}
| 134 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the CancelInstanceRefresh operation.
/// Cancels an instance refresh or rollback that is in progress. If an instance refresh
/// or rollback is not in progress, an <code>ActiveInstanceRefreshNotFound</code> error
/// occurs.
///
///
/// <para>
/// This operation is part of the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html">instance
/// refresh feature</a> in Amazon EC2 Auto Scaling, which helps you update instances in
/// your Auto Scaling group after you make configuration changes.
/// </para>
///
/// <para>
/// When you cancel an instance refresh, this does not roll back any changes that it made.
/// Use the <a>RollbackInstanceRefresh</a> API to roll back instead.
/// </para>
/// </summary>
public partial class CancelInstanceRefreshRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
}
}
| 73 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the CancelInstanceRefresh operation.
/// </summary>
public partial class CancelInstanceRefreshResponse : AmazonWebServiceResponse
{
private string _instanceRefreshId;
/// <summary>
/// Gets and sets the property InstanceRefreshId.
/// <para>
/// The instance refresh ID associated with the request. This is the unique ID assigned
/// to the instance refresh when it was started.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string InstanceRefreshId
{
get { return this._instanceRefreshId; }
set { this._instanceRefreshId = value; }
}
// Check to see if InstanceRefreshId property is set
internal bool IsSetInstanceRefreshId()
{
return this._instanceRefreshId != null;
}
}
}
| 59 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// A <code>GetPredictiveScalingForecast</code> call returns the capacity forecast for
/// a predictive scaling policy. This structure includes the data points for that capacity
/// forecast, along with the timestamps of those data points.
/// </summary>
public partial class CapacityForecast
{
private List<DateTime> _timestamps = new List<DateTime>();
private List<double> _values = new List<double>();
/// <summary>
/// Gets and sets the property Timestamps.
/// <para>
/// The timestamps for the data points, in UTC format.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<DateTime> Timestamps
{
get { return this._timestamps; }
set { this._timestamps = value; }
}
// Check to see if Timestamps property is set
internal bool IsSetTimestamps()
{
return this._timestamps != null && this._timestamps.Count > 0;
}
/// <summary>
/// Gets and sets the property Values.
/// <para>
/// The values of the data points.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<double> Values
{
get { return this._values; }
set { this._values = value; }
}
// Check to see if Values property is set
internal bool IsSetValues()
{
return this._values != null && this._values.Count > 0;
}
}
}
| 80 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the CompleteLifecycleAction operation.
/// Completes the lifecycle action for the specified token or instance with the specified
/// result.
///
///
/// <para>
/// This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling
/// group:
/// </para>
/// <ol> <li>
/// <para>
/// (Optional) Create a launch template or launch configuration with a user data script
/// that runs while an instance is in a wait state due to a lifecycle hook.
/// </para>
/// </li> <li>
/// <para>
/// (Optional) Create a Lambda function and a rule that allows Amazon EventBridge to invoke
/// your Lambda function when an instance is put into a wait state due to a lifecycle
/// hook.
/// </para>
/// </li> <li>
/// <para>
/// (Optional) Create a notification target and an IAM role. The target can be either
/// an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling
/// to publish lifecycle notifications to the target.
/// </para>
/// </li> <li>
/// <para>
/// Create the lifecycle hook. Specify whether the hook is used when the instances launch
/// or terminate.
/// </para>
/// </li> <li>
/// <para>
/// If you need more time, record the lifecycle action heartbeat to keep the instance
/// in a wait state.
/// </para>
/// </li> <li>
/// <para>
/// <b>If you finish before the timeout period ends, send a callback by using the <a>CompleteLifecycleAction</a>
/// API call.</b>
/// </para>
/// </li> </ol>
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html">Amazon
/// EC2 Auto Scaling lifecycle hooks</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class CompleteLifecycleActionRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private string _instanceId;
private string _lifecycleActionResult;
private string _lifecycleActionToken;
private string _lifecycleHookName;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property InstanceId.
/// <para>
/// The ID of the instance.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=19)]
public string InstanceId
{
get { return this._instanceId; }
set { this._instanceId = value; }
}
// Check to see if InstanceId property is set
internal bool IsSetInstanceId()
{
return this._instanceId != null;
}
/// <summary>
/// Gets and sets the property LifecycleActionResult.
/// <para>
/// The action for the group to take. You can specify either <code>CONTINUE</code> or
/// <code>ABANDON</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string LifecycleActionResult
{
get { return this._lifecycleActionResult; }
set { this._lifecycleActionResult = value; }
}
// Check to see if LifecycleActionResult property is set
internal bool IsSetLifecycleActionResult()
{
return this._lifecycleActionResult != null;
}
/// <summary>
/// Gets and sets the property LifecycleActionToken.
/// <para>
/// A universally unique identifier (UUID) that identifies a specific lifecycle action
/// associated with an instance. Amazon EC2 Auto Scaling sends this token to the notification
/// target you specified when you created the lifecycle hook.
/// </para>
/// </summary>
[AWSProperty(Min=36, Max=36)]
public string LifecycleActionToken
{
get { return this._lifecycleActionToken; }
set { this._lifecycleActionToken = value; }
}
// Check to see if LifecycleActionToken property is set
internal bool IsSetLifecycleActionToken()
{
return this._lifecycleActionToken != null;
}
/// <summary>
/// Gets and sets the property LifecycleHookName.
/// <para>
/// The name of the lifecycle hook.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string LifecycleHookName
{
get { return this._lifecycleHookName; }
set { this._lifecycleHookName = value; }
}
// Check to see if LifecycleHookName property is set
internal bool IsSetLifecycleHookName()
{
return this._lifecycleHookName != null;
}
}
}
| 186 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the CompleteLifecycleAction operation.
/// </summary>
public partial class CompleteLifecycleActionResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the CreateAutoScalingGroup operation.
/// <b>We strongly recommend using a launch template when calling this operation to ensure
/// full functionality for Amazon EC2 Auto Scaling and Amazon EC2.</b>
///
///
/// <para>
/// Creates an Auto Scaling group with the specified name and attributes.
/// </para>
///
/// <para>
/// If you exceed your maximum limit of Auto Scaling groups, the call fails. To query
/// this limit, call the <a>DescribeAccountLimits</a> API. For information about updating
/// this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas
/// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
///
/// <para>
/// For introductory exercises for creating an Auto Scaling group, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/GettingStartedTutorial.html">Getting
/// started with Amazon EC2 Auto Scaling</a> and <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-register-lbs-with-asg.html">Tutorial:
/// Set up a scaled and load-balanced application</a> in the <i>Amazon EC2 Auto Scaling
/// User Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroup.html">Auto
/// Scaling groups</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
///
/// <para>
/// Every Auto Scaling group has three size properties (<code>DesiredCapacity</code>,
/// <code>MaxSize</code>, and <code>MinSize</code>). Usually, you set these sizes based
/// on a specific number of instances. However, if you configure a mixed instances policy
/// that defines weights for the instance types, you must specify these sizes with the
/// same units that you use for weighting instances.
/// </para>
/// </summary>
public partial class CreateAutoScalingGroupRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private List<string> _availabilityZones = new List<string>();
private bool? _capacityRebalance;
private string _context;
private int? _defaultCooldown;
private int? _defaultInstanceWarmup;
private int? _desiredCapacity;
private string _desiredCapacityType;
private int? _healthCheckGracePeriod;
private string _healthCheckType;
private string _instanceId;
private string _launchConfigurationName;
private LaunchTemplateSpecification _launchTemplate;
private List<LifecycleHookSpecification> _lifecycleHookSpecificationList = new List<LifecycleHookSpecification>();
private List<string> _loadBalancerNames = new List<string>();
private int? _maxInstanceLifetime;
private int? _maxSize;
private int? _minSize;
private MixedInstancesPolicy _mixedInstancesPolicy;
private bool? _newInstancesProtectedFromScaleIn;
private string _placementGroup;
private string _serviceLinkedRoleARN;
private List<Tag> _tags = new List<Tag>();
private List<string> _targetGroupARNs = new List<string>();
private List<string> _terminationPolicies = new List<string>();
private List<TrafficSourceIdentifier> _trafficSources = new List<TrafficSourceIdentifier>();
private string _vpcZoneIdentifier;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group. This name must be unique per Region per account.
/// </para>
///
/// <para>
/// The name can contain any ASCII character 33 to 126 including most punctuation characters,
/// digits, and upper and lowercased letters.
/// </para>
/// <note>
/// <para>
/// You cannot use a colon (:) in the name.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property AvailabilityZones.
/// <para>
/// A list of Availability Zones where instances in the Auto Scaling group can be created.
/// Used for launching into the default VPC subnet in each Availability Zone when not
/// using the <code>VPCZoneIdentifier</code> property, or for attaching a network interface
/// when an existing network interface ID is specified in a launch template.
/// </para>
/// </summary>
public List<string> AvailabilityZones
{
get { return this._availabilityZones; }
set { this._availabilityZones = value; }
}
// Check to see if AvailabilityZones property is set
internal bool IsSetAvailabilityZones()
{
return this._availabilityZones != null && this._availabilityZones.Count > 0;
}
/// <summary>
/// Gets and sets the property CapacityRebalance.
/// <para>
/// Indicates whether Capacity Rebalancing is enabled. Otherwise, Capacity Rebalancing
/// is disabled. When you turn on Capacity Rebalancing, Amazon EC2 Auto Scaling attempts
/// to launch a Spot Instance whenever Amazon EC2 notifies that a Spot Instance is at
/// an elevated risk of interruption. After launching a new instance, it then terminates
/// an old instance. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-capacity-rebalancing.html">Use
/// Capacity Rebalancing to handle Amazon EC2 Spot Interruptions</a> in the in the <i>Amazon
/// EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public bool CapacityRebalance
{
get { return this._capacityRebalance.GetValueOrDefault(); }
set { this._capacityRebalance = value; }
}
// Check to see if CapacityRebalance property is set
internal bool IsSetCapacityRebalance()
{
return this._capacityRebalance.HasValue;
}
/// <summary>
/// Gets and sets the property Context.
/// <para>
/// Reserved.
/// </para>
/// </summary>
public string Context
{
get { return this._context; }
set { this._context = value; }
}
// Check to see if Context property is set
internal bool IsSetContext()
{
return this._context != null;
}
/// <summary>
/// Gets and sets the property DefaultCooldown.
/// <para>
/// <i>Only needed if you use simple scaling policies.</i>
/// </para>
///
/// <para>
/// The amount of time, in seconds, between one scaling activity ending and another one
/// starting due to simple scaling policies. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html">Scaling
/// cooldowns for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
///
/// <para>
/// Default: <code>300</code> seconds
/// </para>
/// </summary>
public int DefaultCooldown
{
get { return this._defaultCooldown.GetValueOrDefault(); }
set { this._defaultCooldown = value; }
}
// Check to see if DefaultCooldown property is set
internal bool IsSetDefaultCooldown()
{
return this._defaultCooldown.HasValue;
}
/// <summary>
/// Gets and sets the property DefaultInstanceWarmup.
/// <para>
/// The amount of time, in seconds, until a new instance is considered to have finished
/// initializing and resource consumption to become stable after it enters the <code>InService</code>
/// state.
/// </para>
///
/// <para>
/// During an instance refresh, Amazon EC2 Auto Scaling waits for the warm-up period after
/// it replaces an instance before it moves on to replacing the next instance. Amazon
/// EC2 Auto Scaling also waits for the warm-up period before aggregating the metrics
/// for new instances with existing instances in the Amazon CloudWatch metrics that are
/// used for scaling, resulting in more reliable usage data. For more information, see
/// <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-default-instance-warmup.html">Set
/// the default instance warmup for an Auto Scaling group</a> in the <i>Amazon EC2 Auto
/// Scaling User Guide</i>.
/// </para>
/// <important>
/// <para>
/// To manage various warm-up settings at the group level, we recommend that you set the
/// default instance warmup, <i>even if it is set to 0 seconds</i>. To remove a value
/// that you previously set, include the property but specify <code>-1</code> for the
/// value. However, we strongly recommend keeping the default instance warmup enabled
/// by specifying a value of <code>0</code> or other nominal value.
/// </para>
/// </important>
/// <para>
/// Default: None
/// </para>
/// </summary>
public int DefaultInstanceWarmup
{
get { return this._defaultInstanceWarmup.GetValueOrDefault(); }
set { this._defaultInstanceWarmup = value; }
}
// Check to see if DefaultInstanceWarmup property is set
internal bool IsSetDefaultInstanceWarmup()
{
return this._defaultInstanceWarmup.HasValue;
}
/// <summary>
/// Gets and sets the property DesiredCapacity.
/// <para>
/// The desired capacity is the initial capacity of the Auto Scaling group at the time
/// of its creation and the capacity it attempts to maintain. It can scale beyond this
/// capacity if you configure auto scaling. This number must be greater than or equal
/// to the minimum size of the group and less than or equal to the maximum size of the
/// group. If you do not specify a desired capacity, the default is the minimum size of
/// the group.
/// </para>
/// </summary>
public int DesiredCapacity
{
get { return this._desiredCapacity.GetValueOrDefault(); }
set { this._desiredCapacity = value; }
}
// Check to see if DesiredCapacity property is set
internal bool IsSetDesiredCapacity()
{
return this._desiredCapacity.HasValue;
}
/// <summary>
/// Gets and sets the property DesiredCapacityType.
/// <para>
/// The unit of measurement for the value specified for desired capacity. Amazon EC2 Auto
/// Scaling supports <code>DesiredCapacityType</code> for attribute-based instance type
/// selection only. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html">Creating
/// an Auto Scaling group using attribute-based instance type selection</a> in the <i>Amazon
/// EC2 Auto Scaling User Guide</i>.
/// </para>
///
/// <para>
/// By default, Amazon EC2 Auto Scaling specifies <code>units</code>, which translates
/// into number of instances.
/// </para>
///
/// <para>
/// Valid values: <code>units</code> | <code>vcpu</code> | <code>memory-mib</code>
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string DesiredCapacityType
{
get { return this._desiredCapacityType; }
set { this._desiredCapacityType = value; }
}
// Check to see if DesiredCapacityType property is set
internal bool IsSetDesiredCapacityType()
{
return this._desiredCapacityType != null;
}
/// <summary>
/// Gets and sets the property HealthCheckGracePeriod.
/// <para>
/// The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking
/// the health status of an EC2 instance that has come into service and marking it unhealthy
/// due to a failed health check. This is useful if your instances do not immediately
/// pass their health checks after they enter the <code>InService</code> state. For more
/// information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/health-check-grace-period.html">Set
/// the health check grace period for an Auto Scaling group</a> in the <i>Amazon EC2 Auto
/// Scaling User Guide</i>.
/// </para>
///
/// <para>
/// Default: <code>0</code> seconds
/// </para>
/// </summary>
public int HealthCheckGracePeriod
{
get { return this._healthCheckGracePeriod.GetValueOrDefault(); }
set { this._healthCheckGracePeriod = value; }
}
// Check to see if HealthCheckGracePeriod property is set
internal bool IsSetHealthCheckGracePeriod()
{
return this._healthCheckGracePeriod.HasValue;
}
/// <summary>
/// Gets and sets the property HealthCheckType.
/// <para>
/// A comma-separated value string of one or more health check types.
/// </para>
///
/// <para>
/// The valid values are <code>EC2</code>, <code>ELB</code>, and <code>VPC_LATTICE</code>.
/// <code>EC2</code> is the default health check and cannot be disabled. For more information,
/// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html">Health
/// checks for Auto Scaling instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
///
/// <para>
/// Only specify <code>EC2</code> if you must clear a value that was previously set.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=32)]
public string HealthCheckType
{
get { return this._healthCheckType; }
set { this._healthCheckType = value; }
}
// Check to see if HealthCheckType property is set
internal bool IsSetHealthCheckType()
{
return this._healthCheckType != null;
}
/// <summary>
/// Gets and sets the property InstanceId.
/// <para>
/// The ID of the instance used to base the launch configuration on. If specified, Amazon
/// EC2 Auto Scaling uses the configuration values from the specified instance to create
/// a new launch configuration. To get the instance ID, use the Amazon EC2 <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html">DescribeInstances</a>
/// API operation. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-from-instance.html">Creating
/// an Auto Scaling group using an EC2 instance</a> in the <i>Amazon EC2 Auto Scaling
/// User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=19)]
public string InstanceId
{
get { return this._instanceId; }
set { this._instanceId = value; }
}
// Check to see if InstanceId property is set
internal bool IsSetInstanceId()
{
return this._instanceId != null;
}
/// <summary>
/// Gets and sets the property LaunchConfigurationName.
/// <para>
/// The name of the launch configuration to use to launch instances.
/// </para>
///
/// <para>
/// Conditional: You must specify either a launch template (<code>LaunchTemplate</code>
/// or <code>MixedInstancesPolicy</code>) or a launch configuration (<code>LaunchConfigurationName</code>
/// or <code>InstanceId</code>).
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string LaunchConfigurationName
{
get { return this._launchConfigurationName; }
set { this._launchConfigurationName = value; }
}
// Check to see if LaunchConfigurationName property is set
internal bool IsSetLaunchConfigurationName()
{
return this._launchConfigurationName != null;
}
/// <summary>
/// Gets and sets the property LaunchTemplate.
/// <para>
/// Information used to specify the launch template and version to use to launch instances.
///
/// </para>
///
/// <para>
/// Conditional: You must specify either a launch template (<code>LaunchTemplate</code>
/// or <code>MixedInstancesPolicy</code>) or a launch configuration (<code>LaunchConfigurationName</code>
/// or <code>InstanceId</code>).
/// </para>
/// <note>
/// <para>
/// The launch template that is specified must be configured for use with an Auto Scaling
/// group. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html">Creating
/// a launch template for an Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling
/// User Guide</i>.
/// </para>
/// </note>
/// </summary>
public LaunchTemplateSpecification LaunchTemplate
{
get { return this._launchTemplate; }
set { this._launchTemplate = value; }
}
// Check to see if LaunchTemplate property is set
internal bool IsSetLaunchTemplate()
{
return this._launchTemplate != null;
}
/// <summary>
/// Gets and sets the property LifecycleHookSpecificationList.
/// <para>
/// One or more lifecycle hooks to add to the Auto Scaling group before instances are
/// launched.
/// </para>
/// </summary>
public List<LifecycleHookSpecification> LifecycleHookSpecificationList
{
get { return this._lifecycleHookSpecificationList; }
set { this._lifecycleHookSpecificationList = value; }
}
// Check to see if LifecycleHookSpecificationList property is set
internal bool IsSetLifecycleHookSpecificationList()
{
return this._lifecycleHookSpecificationList != null && this._lifecycleHookSpecificationList.Count > 0;
}
/// <summary>
/// Gets and sets the property LoadBalancerNames.
/// <para>
/// A list of Classic Load Balancers associated with this Auto Scaling group. For Application
/// Load Balancers, Network Load Balancers, and Gateway Load Balancers, specify the <code>TargetGroupARNs</code>
/// property instead.
/// </para>
/// </summary>
public List<string> LoadBalancerNames
{
get { return this._loadBalancerNames; }
set { this._loadBalancerNames = value; }
}
// Check to see if LoadBalancerNames property is set
internal bool IsSetLoadBalancerNames()
{
return this._loadBalancerNames != null && this._loadBalancerNames.Count > 0;
}
/// <summary>
/// Gets and sets the property MaxInstanceLifetime.
/// <para>
/// The maximum amount of time, in seconds, that an instance can be in service. The default
/// is null. If specified, the value must be either 0 or a number equal to or greater
/// than 86,400 seconds (1 day). For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html">Replacing
/// Auto Scaling instances based on maximum instance lifetime</a> in the <i>Amazon EC2
/// Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public int MaxInstanceLifetime
{
get { return this._maxInstanceLifetime.GetValueOrDefault(); }
set { this._maxInstanceLifetime = value; }
}
// Check to see if MaxInstanceLifetime property is set
internal bool IsSetMaxInstanceLifetime()
{
return this._maxInstanceLifetime.HasValue;
}
/// <summary>
/// Gets and sets the property MaxSize.
/// <para>
/// The maximum size of the group.
/// </para>
/// <note>
/// <para>
/// With a mixed instances policy that uses instance weighting, Amazon EC2 Auto Scaling
/// may need to go above <code>MaxSize</code> to meet your capacity requirements. In this
/// event, Amazon EC2 Auto Scaling will never go above <code>MaxSize</code> by more than
/// your largest instance weight (weights that define how many units each instance contributes
/// to the desired capacity of the group).
/// </para>
/// </note>
/// </summary>
[AWSProperty(Required=true)]
public int MaxSize
{
get { return this._maxSize.GetValueOrDefault(); }
set { this._maxSize = value; }
}
// Check to see if MaxSize property is set
internal bool IsSetMaxSize()
{
return this._maxSize.HasValue;
}
/// <summary>
/// Gets and sets the property MinSize.
/// <para>
/// The minimum size of the group.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public int MinSize
{
get { return this._minSize.GetValueOrDefault(); }
set { this._minSize = value; }
}
// Check to see if MinSize property is set
internal bool IsSetMinSize()
{
return this._minSize.HasValue;
}
/// <summary>
/// Gets and sets the property MixedInstancesPolicy.
/// <para>
/// The mixed instances policy. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html">Auto
/// Scaling groups with multiple instance types and purchase options</a> in the <i>Amazon
/// EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public MixedInstancesPolicy MixedInstancesPolicy
{
get { return this._mixedInstancesPolicy; }
set { this._mixedInstancesPolicy = value; }
}
// Check to see if MixedInstancesPolicy property is set
internal bool IsSetMixedInstancesPolicy()
{
return this._mixedInstancesPolicy != null;
}
/// <summary>
/// Gets and sets the property NewInstancesProtectedFromScaleIn.
/// <para>
/// Indicates whether newly launched instances are protected from termination by Amazon
/// EC2 Auto Scaling when scaling in. For more information about preventing instances
/// from terminating on scale in, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-protection.html">Using
/// instance scale-in protection</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public bool NewInstancesProtectedFromScaleIn
{
get { return this._newInstancesProtectedFromScaleIn.GetValueOrDefault(); }
set { this._newInstancesProtectedFromScaleIn = value; }
}
// Check to see if NewInstancesProtectedFromScaleIn property is set
internal bool IsSetNewInstancesProtectedFromScaleIn()
{
return this._newInstancesProtectedFromScaleIn.HasValue;
}
/// <summary>
/// Gets and sets the property PlacementGroup.
/// <para>
/// The name of the placement group into which to launch your instances. For more information,
/// see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html">Placement
/// groups</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.
/// </para>
/// <note>
/// <para>
/// A <i>cluster</i> placement group is a logical grouping of instances within a single
/// Availability Zone. You cannot specify multiple Availability Zones and a cluster placement
/// group.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string PlacementGroup
{
get { return this._placementGroup; }
set { this._placementGroup = value; }
}
// Check to see if PlacementGroup property is set
internal bool IsSetPlacementGroup()
{
return this._placementGroup != null;
}
/// <summary>
/// Gets and sets the property ServiceLinkedRoleARN.
/// <para>
/// The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group
/// uses to call other Amazon Web Services service on your behalf. By default, Amazon
/// EC2 Auto Scaling uses a service-linked role named <code>AWSServiceRoleForAutoScaling</code>,
/// which it creates if it does not exist. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-service-linked-role.html">Service-linked
/// roles</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string ServiceLinkedRoleARN
{
get { return this._serviceLinkedRoleARN; }
set { this._serviceLinkedRoleARN = value; }
}
// Check to see if ServiceLinkedRoleARN property is set
internal bool IsSetServiceLinkedRoleARN()
{
return this._serviceLinkedRoleARN != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// One or more tags. You can tag your Auto Scaling group and propagate the tags to the
/// Amazon EC2 instances it launches. Tags are not propagated to Amazon EBS volumes. To
/// add tags to Amazon EBS volumes, specify the tags in a launch template but use caution.
/// If the launch template specifies an instance tag with a key that is also specified
/// for the Auto Scaling group, Amazon EC2 Auto Scaling overrides the value of that instance
/// tag with the value specified by the Auto Scaling group. For more information, see
/// <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag
/// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public List<Tag> 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 TargetGroupARNs.
/// <para>
/// The Amazon Resource Names (ARN) of the Elastic Load Balancing target groups to associate
/// with the Auto Scaling group. Instances are registered as targets with the target groups.
/// The target groups receive incoming traffic and route requests to one or more registered
/// targets. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use
/// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling
/// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public List<string> TargetGroupARNs
{
get { return this._targetGroupARNs; }
set { this._targetGroupARNs = value; }
}
// Check to see if TargetGroupARNs property is set
internal bool IsSetTargetGroupARNs()
{
return this._targetGroupARNs != null && this._targetGroupARNs.Count > 0;
}
/// <summary>
/// Gets and sets the property TerminationPolicies.
/// <para>
/// A policy or a list of policies that are used to select the instance to terminate.
/// These policies are executed in the order that you list them. For more information,
/// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-termination-policies.html">Work
/// with Amazon EC2 Auto Scaling termination policies</a> in the <i>Amazon EC2 Auto Scaling
/// User Guide</i>.
/// </para>
///
/// <para>
/// Valid values: <code>Default</code> | <code>AllocationStrategy</code> | <code>ClosestToNextInstanceHour</code>
/// | <code>NewestInstance</code> | <code>OldestInstance</code> | <code>OldestLaunchConfiguration</code>
/// | <code>OldestLaunchTemplate</code> | <code>arn:aws:lambda:region:account-id:function:my-function:my-alias</code>
///
/// </para>
/// </summary>
public List<string> TerminationPolicies
{
get { return this._terminationPolicies; }
set { this._terminationPolicies = value; }
}
// Check to see if TerminationPolicies property is set
internal bool IsSetTerminationPolicies()
{
return this._terminationPolicies != null && this._terminationPolicies.Count > 0;
}
/// <summary>
/// Gets and sets the property TrafficSources.
/// <para>
/// The list of traffic sources to attach to this Auto Scaling group. You can use any
/// of the following as traffic sources for an Auto Scaling group: Classic Load Balancer,
/// Application Load Balancer, Gateway Load Balancer, Network Load Balancer, and VPC Lattice.
/// </para>
/// </summary>
public List<TrafficSourceIdentifier> TrafficSources
{
get { return this._trafficSources; }
set { this._trafficSources = value; }
}
// Check to see if TrafficSources property is set
internal bool IsSetTrafficSources()
{
return this._trafficSources != null && this._trafficSources.Count > 0;
}
/// <summary>
/// Gets and sets the property VPCZoneIdentifier.
/// <para>
/// A comma-separated list of subnet IDs for a virtual private cloud (VPC) where instances
/// in the Auto Scaling group can be created. If you specify <code>VPCZoneIdentifier</code>
/// with <code>AvailabilityZones</code>, the subnets that you specify must reside in those
/// Availability Zones.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2047)]
public string VPCZoneIdentifier
{
get { return this._vpcZoneIdentifier; }
set { this._vpcZoneIdentifier = value; }
}
// Check to see if VPCZoneIdentifier property is set
internal bool IsSetVPCZoneIdentifier()
{
return this._vpcZoneIdentifier != null;
}
}
}
| 772 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the CreateAutoScalingGroup operation.
/// </summary>
public partial class CreateAutoScalingGroupResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the CreateLaunchConfiguration operation.
/// Creates a launch configuration.
///
///
/// <para>
/// If you exceed your maximum limit of launch configurations, the call fails. To query
/// this limit, call the <a>DescribeAccountLimits</a> API. For information about updating
/// this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas
/// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchConfiguration.html">Launch
/// configurations</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// <note>
/// <para>
/// Amazon EC2 Auto Scaling configures instances launched as part of an Auto Scaling group
/// using either a launch template or a launch configuration. We strongly recommend that
/// you do not use launch configurations. They do not provide full functionality for Amazon
/// EC2 Auto Scaling or Amazon EC2. For information about using launch templates, see
/// <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-templates.html">Launch
/// templates</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </note>
/// </summary>
public partial class CreateLaunchConfigurationRequest : AmazonAutoScalingRequest
{
private bool? _associatePublicIpAddress;
private List<BlockDeviceMapping> _blockDeviceMappings = new List<BlockDeviceMapping>();
private string _classicLinkVPCId;
private List<string> _classicLinkVPCSecurityGroups = new List<string>();
private bool? _ebsOptimized;
private string _iamInstanceProfile;
private string _imageId;
private string _instanceId;
private InstanceMonitoring _instanceMonitoring;
private string _instanceType;
private string _kernelId;
private string _keyName;
private string _launchConfigurationName;
private InstanceMetadataOptions _metadataOptions;
private string _placementTenancy;
private string _ramdiskId;
private List<string> _securityGroups = new List<string>();
private string _spotPrice;
private string _userData;
/// <summary>
/// Gets and sets the property AssociatePublicIpAddress.
/// <para>
/// Specifies whether to assign a public IPv4 address to the group's instances. If the
/// instance is launched into a default subnet, the default is to assign a public IPv4
/// address, unless you disabled the option to assign a public IPv4 address on the subnet.
/// If the instance is launched into a nondefault subnet, the default is not to assign
/// a public IPv4 address, unless you enabled the option to assign a public IPv4 address
/// on the subnet.
/// </para>
///
/// <para>
/// If you specify <code>true</code>, each instance in the Auto Scaling group receives
/// a unique public IPv4 address. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html">Launching
/// Auto Scaling instances in a VPC</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
///
/// <para>
/// If you specify this property, you must specify at least one subnet for <code>VPCZoneIdentifier</code>
/// when you create your group.
/// </para>
/// </summary>
public bool AssociatePublicIpAddress
{
get { return this._associatePublicIpAddress.GetValueOrDefault(); }
set { this._associatePublicIpAddress = value; }
}
// Check to see if AssociatePublicIpAddress property is set
internal bool IsSetAssociatePublicIpAddress()
{
return this._associatePublicIpAddress.HasValue;
}
/// <summary>
/// Gets and sets the property BlockDeviceMappings.
/// <para>
/// The block device mapping entries that define the block devices to attach to the instances
/// at launch. By default, the block devices specified in the block device mapping for
/// the AMI are used. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html">Block
/// device mappings</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.
/// </para>
/// </summary>
public List<BlockDeviceMapping> BlockDeviceMappings
{
get { return this._blockDeviceMappings; }
set { this._blockDeviceMappings = value; }
}
// Check to see if BlockDeviceMappings property is set
internal bool IsSetBlockDeviceMappings()
{
return this._blockDeviceMappings != null && this._blockDeviceMappings.Count > 0;
}
/// <summary>
/// Gets and sets the property ClassicLinkVPCId.
/// <para>
/// Available for backward compatibility.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string ClassicLinkVPCId
{
get { return this._classicLinkVPCId; }
set { this._classicLinkVPCId = value; }
}
// Check to see if ClassicLinkVPCId property is set
internal bool IsSetClassicLinkVPCId()
{
return this._classicLinkVPCId != null;
}
/// <summary>
/// Gets and sets the property ClassicLinkVPCSecurityGroups.
/// <para>
/// Available for backward compatibility.
/// </para>
/// </summary>
public List<string> ClassicLinkVPCSecurityGroups
{
get { return this._classicLinkVPCSecurityGroups; }
set { this._classicLinkVPCSecurityGroups = value; }
}
// Check to see if ClassicLinkVPCSecurityGroups property is set
internal bool IsSetClassicLinkVPCSecurityGroups()
{
return this._classicLinkVPCSecurityGroups != null && this._classicLinkVPCSecurityGroups.Count > 0;
}
/// <summary>
/// Gets and sets the property EbsOptimized.
/// <para>
/// Specifies whether the launch configuration is optimized for EBS I/O (<code>true</code>)
/// or not (<code>false</code>). The optimization provides dedicated throughput to Amazon
/// EBS and an optimized configuration stack to provide optimal I/O performance. This
/// optimization is not available with all instance types. Additional fees are incurred
/// when you enable EBS optimization for an instance type that is not EBS-optimized by
/// default. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html">Amazon
/// EBS-optimized instances</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.
/// </para>
///
/// <para>
/// The default value is <code>false</code>.
/// </para>
/// </summary>
public bool EbsOptimized
{
get { return this._ebsOptimized.GetValueOrDefault(); }
set { this._ebsOptimized = value; }
}
// Check to see if EbsOptimized property is set
internal bool IsSetEbsOptimized()
{
return this._ebsOptimized.HasValue;
}
/// <summary>
/// Gets and sets the property IamInstanceProfile.
/// <para>
/// The name or the Amazon Resource Name (ARN) of the instance profile associated with
/// the IAM role for the instance. The instance profile contains the IAM role. For more
/// information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/us-iam-role.html">IAM
/// role for applications that run on Amazon EC2 instances</a> in the <i>Amazon EC2 Auto
/// Scaling User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string IamInstanceProfile
{
get { return this._iamInstanceProfile; }
set { this._iamInstanceProfile = value; }
}
// Check to see if IamInstanceProfile property is set
internal bool IsSetIamInstanceProfile()
{
return this._iamInstanceProfile != null;
}
/// <summary>
/// Gets and sets the property ImageId.
/// <para>
/// The ID of the Amazon Machine Image (AMI) that was assigned during registration. For
/// more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html">Finding
/// a Linux AMI</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.
/// </para>
///
/// <para>
/// If you specify <code>InstanceId</code>, an <code>ImageId</code> is not required.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string ImageId
{
get { return this._imageId; }
set { this._imageId = value; }
}
// Check to see if ImageId property is set
internal bool IsSetImageId()
{
return this._imageId != null;
}
/// <summary>
/// Gets and sets the property InstanceId.
/// <para>
/// The ID of the instance to use to create the launch configuration. The new launch configuration
/// derives attributes from the instance, except for the block device mapping.
/// </para>
///
/// <para>
/// To create a launch configuration with a block device mapping or override any other
/// instance attributes, specify them as part of the same request.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-lc-with-instanceID.html">Creating
/// a launch configuration using an EC2 instance</a> in the <i>Amazon EC2 Auto Scaling
/// User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=19)]
public string InstanceId
{
get { return this._instanceId; }
set { this._instanceId = value; }
}
// Check to see if InstanceId property is set
internal bool IsSetInstanceId()
{
return this._instanceId != null;
}
/// <summary>
/// Gets and sets the property InstanceMonitoring.
/// <para>
/// Controls whether instances in this group are launched with detailed (<code>true</code>)
/// or basic (<code>false</code>) monitoring.
/// </para>
///
/// <para>
/// The default value is <code>true</code> (enabled).
/// </para>
/// <important>
/// <para>
/// When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute
/// and your account is charged a fee. When you disable detailed monitoring, CloudWatch
/// generates metrics every 5 minutes. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/latest/userguide/enable-as-instance-metrics.html">Configure
/// Monitoring for Auto Scaling Instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </important>
/// </summary>
public InstanceMonitoring InstanceMonitoring
{
get { return this._instanceMonitoring; }
set { this._instanceMonitoring = value; }
}
// Check to see if InstanceMonitoring property is set
internal bool IsSetInstanceMonitoring()
{
return this._instanceMonitoring != null;
}
/// <summary>
/// Gets and sets the property InstanceType.
/// <para>
/// Specifies the instance type of the EC2 instance. For information about available instance
/// types, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes">Available
/// instance types</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.
/// </para>
///
/// <para>
/// If you specify <code>InstanceId</code>, an <code>InstanceType</code> is not required.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string InstanceType
{
get { return this._instanceType; }
set { this._instanceType = value; }
}
// Check to see if InstanceType property is set
internal bool IsSetInstanceType()
{
return this._instanceType != null;
}
/// <summary>
/// Gets and sets the property KernelId.
/// <para>
/// The ID of the kernel associated with the AMI.
/// </para>
/// <note>
/// <para>
/// We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information,
/// see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html">User
/// provided kernels</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string KernelId
{
get { return this._kernelId; }
set { this._kernelId = value; }
}
// Check to see if KernelId property is set
internal bool IsSetKernelId()
{
return this._kernelId != null;
}
/// <summary>
/// Gets and sets the property KeyName.
/// <para>
/// The name of the key pair. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html">Amazon
/// EC2 key pairs and Linux instances</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string KeyName
{
get { return this._keyName; }
set { this._keyName = value; }
}
// Check to see if KeyName property is set
internal bool IsSetKeyName()
{
return this._keyName != null;
}
/// <summary>
/// Gets and sets the property LaunchConfigurationName.
/// <para>
/// The name of the launch configuration. This name must be unique per Region per account.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string LaunchConfigurationName
{
get { return this._launchConfigurationName; }
set { this._launchConfigurationName = value; }
}
// Check to see if LaunchConfigurationName property is set
internal bool IsSetLaunchConfigurationName()
{
return this._launchConfigurationName != null;
}
/// <summary>
/// Gets and sets the property MetadataOptions.
/// <para>
/// The metadata options for the instances. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds">Configuring
/// the Instance Metadata Options</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public InstanceMetadataOptions MetadataOptions
{
get { return this._metadataOptions; }
set { this._metadataOptions = value; }
}
// Check to see if MetadataOptions property is set
internal bool IsSetMetadataOptions()
{
return this._metadataOptions != null;
}
/// <summary>
/// Gets and sets the property PlacementTenancy.
/// <para>
/// The tenancy of the instance, either <code>default</code> or <code>dedicated</code>.
/// An instance with <code>dedicated</code> tenancy runs on isolated, single-tenant hardware
/// and can only be launched into a VPC. To launch dedicated instances into a shared tenancy
/// VPC (a VPC with the instance placement tenancy attribute set to <code>default</code>),
/// you must set the value of this property to <code>dedicated</code>. For more information,
/// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/auto-scaling-dedicated-instances.html">Configuring
/// instance tenancy with Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling
/// User Guide</i>.
/// </para>
///
/// <para>
/// If you specify <code>PlacementTenancy</code>, you must specify at least one subnet
/// for <code>VPCZoneIdentifier</code> when you create your group.
/// </para>
///
/// <para>
/// Valid values: <code>default</code> | <code>dedicated</code>
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public string PlacementTenancy
{
get { return this._placementTenancy; }
set { this._placementTenancy = value; }
}
// Check to see if PlacementTenancy property is set
internal bool IsSetPlacementTenancy()
{
return this._placementTenancy != null;
}
/// <summary>
/// Gets and sets the property RamdiskId.
/// <para>
/// The ID of the RAM disk to select.
/// </para>
/// <note>
/// <para>
/// We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information,
/// see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html">User
/// provided kernels</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string RamdiskId
{
get { return this._ramdiskId; }
set { this._ramdiskId = value; }
}
// Check to see if RamdiskId property is set
internal bool IsSetRamdiskId()
{
return this._ramdiskId != null;
}
/// <summary>
/// Gets and sets the property SecurityGroups.
/// <para>
/// A list that contains the security group IDs to assign to the instances in the Auto
/// Scaling group. For more information, see <a href="https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html">Control
/// traffic to resources using security groups</a> in the <i>Amazon Virtual Private Cloud
/// User Guide</i>.
/// </para>
/// </summary>
public List<string> SecurityGroups
{
get { return this._securityGroups; }
set { this._securityGroups = value; }
}
// Check to see if SecurityGroups property is set
internal bool IsSetSecurityGroups()
{
return this._securityGroups != null && this._securityGroups.Count > 0;
}
/// <summary>
/// Gets and sets the property SpotPrice.
/// <para>
/// The maximum hourly price to be paid for any Spot Instance launched to fulfill the
/// request. Spot Instances are launched when the price you specify exceeds the current
/// Spot price. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-template-spot-instances.html">Request
/// Spot Instances for fault-tolerant and flexible applications</a> in the <i>Amazon EC2
/// Auto Scaling User Guide</i>.
/// </para>
///
/// <para>
/// Valid Range: Minimum value of 0.001
/// </para>
/// <note>
/// <para>
/// When you change your maximum price by creating a new launch configuration, running
/// instances will continue to run as long as the maximum price for those running instances
/// is higher than the current Spot price.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string SpotPrice
{
get { return this._spotPrice; }
set { this._spotPrice = value; }
}
// Check to see if SpotPrice property is set
internal bool IsSetSpotPrice()
{
return this._spotPrice != null;
}
/// <summary>
/// Gets and sets the property UserData.
/// <para>
/// The user data to make available to the launched EC2 instances. For more information,
/// see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">Instance
/// metadata and user data</a> (Linux) and <a href="https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html">Instance
/// metadata and user data</a> (Windows). If you are using a command line tool, base64-encoding
/// is performed for you, and you can load the text from a file. Otherwise, you must provide
/// base64-encoded text. User data is limited to 16 KB.
/// </para>
/// </summary>
[AWSProperty(Max=21847)]
public string UserData
{
get { return this._userData; }
set { this._userData = value; }
}
// Check to see if UserData property is set
internal bool IsSetUserData()
{
return this._userData != null;
}
}
}
| 560 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the CreateLaunchConfiguration operation.
/// </summary>
public partial class CreateLaunchConfigurationResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the CreateOrUpdateTags operation.
/// Creates or updates tags for the specified Auto Scaling group.
///
///
/// <para>
/// When you specify a tag with a key that already exists, the operation overwrites the
/// previous tag definition, and you do not get an error message.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag
/// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class CreateOrUpdateTagsRequest : AmazonAutoScalingRequest
{
private List<Tag> _tags = new List<Tag>();
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// One or more tags.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<Tag> 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;
}
}
}
| 70 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the CreateOrUpdateTags operation.
/// </summary>
public partial class CreateOrUpdateTagsResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Represents a CloudWatch metric of your choosing for a target tracking scaling policy
/// to use with Amazon EC2 Auto Scaling.
///
///
/// <para>
/// To create your customized metric specification:
/// </para>
/// <ul> <li>
/// <para>
/// Add values for each required property from CloudWatch. You can use an existing metric,
/// or a new metric that you create. To use your own metric, you must first publish the
/// metric to CloudWatch. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html">Publish
/// custom metrics</a> in the <i>Amazon CloudWatch User Guide</i>.
/// </para>
/// </li> <li>
/// <para>
/// Choose a metric that changes proportionally with capacity. The value of the metric
/// should increase or decrease in inverse proportion to the number of capacity units.
/// That is, the value of the metric should decrease when capacity increases.
/// </para>
/// </li> </ul>
/// <para>
/// For more information about the CloudWatch terminology below, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html">Amazon
/// CloudWatch concepts</a>.
/// </para>
/// <note>
/// <para>
/// Each individual service provides information about the metrics, namespace, and dimensions
/// they use. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html">Amazon
/// Web Services services that publish CloudWatch metrics</a> in the <i>Amazon CloudWatch
/// User Guide</i>.
/// </para>
/// </note>
/// </summary>
public partial class CustomizedMetricSpecification
{
private List<MetricDimension> _dimensions = new List<MetricDimension>();
private string _metricName;
private List<TargetTrackingMetricDataQuery> _metrics = new List<TargetTrackingMetricDataQuery>();
private string _awsNamespace;
private MetricStatistic _statistic;
private string _unit;
/// <summary>
/// Gets and sets the property Dimensions.
/// <para>
/// The dimensions of the metric.
/// </para>
///
/// <para>
/// Conditional: If you published your metric with dimensions, you must specify the same
/// dimensions in your scaling policy.
/// </para>
/// </summary>
public List<MetricDimension> Dimensions
{
get { return this._dimensions; }
set { this._dimensions = value; }
}
// Check to see if Dimensions property is set
internal bool IsSetDimensions()
{
return this._dimensions != null && this._dimensions.Count > 0;
}
/// <summary>
/// Gets and sets the property MetricName.
/// <para>
/// The name of the metric. To get the exact metric name, namespace, and dimensions, inspect
/// the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Metric.html">Metric</a>
/// object that is returned by a call to <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html">ListMetrics</a>.
/// </para>
/// </summary>
public string MetricName
{
get { return this._metricName; }
set { this._metricName = value; }
}
// Check to see if MetricName property is set
internal bool IsSetMetricName()
{
return this._metricName != null;
}
/// <summary>
/// Gets and sets the property Metrics.
/// <para>
/// The metrics to include in the target tracking scaling policy, as a metric data query.
/// This can include both raw metric and metric math expressions.
/// </para>
/// </summary>
public List<TargetTrackingMetricDataQuery> Metrics
{
get { return this._metrics; }
set { this._metrics = value; }
}
// Check to see if Metrics property is set
internal bool IsSetMetrics()
{
return this._metrics != null && this._metrics.Count > 0;
}
/// <summary>
/// Gets and sets the property Namespace.
/// <para>
/// The namespace of the metric.
/// </para>
/// </summary>
public string Namespace
{
get { return this._awsNamespace; }
set { this._awsNamespace = value; }
}
// Check to see if Namespace property is set
internal bool IsSetNamespace()
{
return this._awsNamespace != null;
}
/// <summary>
/// Gets and sets the property Statistic.
/// <para>
/// The statistic of the metric.
/// </para>
/// </summary>
public MetricStatistic Statistic
{
get { return this._statistic; }
set { this._statistic = value; }
}
// Check to see if Statistic property is set
internal bool IsSetStatistic()
{
return this._statistic != null;
}
/// <summary>
/// Gets and sets the property Unit.
/// <para>
/// The unit of the metric. For a complete list of the units that CloudWatch supports,
/// see the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html">MetricDatum</a>
/// data type in the <i>Amazon CloudWatch API Reference</i>.
/// </para>
/// </summary>
public string Unit
{
get { return this._unit; }
set { this._unit = value; }
}
// Check to see if Unit property is set
internal bool IsSetUnit()
{
return this._unit != null;
}
}
}
| 194 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DeleteAutoScalingGroup operation.
/// Deletes the specified Auto Scaling group.
///
///
/// <para>
/// If the group has instances or scaling activities in progress, you must specify the
/// option to force the deletion in order for it to succeed. The force delete operation
/// will also terminate the EC2 instances. If the group has a warm pool, the force delete
/// option also deletes the warm pool.
/// </para>
///
/// <para>
/// To remove instances from the Auto Scaling group before deleting it, call the <a>DetachInstances</a>
/// API with the list of instances and the option to decrement the desired capacity. This
/// ensures that Amazon EC2 Auto Scaling does not launch replacement instances.
/// </para>
///
/// <para>
/// To terminate all instances before deleting the Auto Scaling group, call the <a>UpdateAutoScalingGroup</a>
/// API and set the minimum size and desired capacity of the Auto Scaling group to zero.
/// </para>
///
/// <para>
/// If the group has scaling policies, deleting the group deletes the policies, the underlying
/// alarm actions, and any alarm that no longer has an associated action.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-process-shutdown.html">Delete
/// your Auto Scaling infrastructure</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class DeleteAutoScalingGroupRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private bool? _forceDelete;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property ForceDelete.
/// <para>
/// Specifies that the group is to be deleted along with all instances associated with
/// the group, without waiting for all instances to be terminated. This action also deletes
/// any outstanding lifecycle actions associated with the group.
/// </para>
/// </summary>
public bool ForceDelete
{
get { return this._forceDelete.GetValueOrDefault(); }
set { this._forceDelete = value; }
}
// Check to see if ForceDelete property is set
internal bool IsSetForceDelete()
{
return this._forceDelete.HasValue;
}
}
}
| 109 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DeleteAutoScalingGroup operation.
/// </summary>
public partial class DeleteAutoScalingGroupResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DeleteLaunchConfiguration operation.
/// Deletes the specified launch configuration.
///
///
/// <para>
/// The launch configuration must not be attached to an Auto Scaling group. When this
/// call completes, the launch configuration is no longer available for use.
/// </para>
/// </summary>
public partial class DeleteLaunchConfigurationRequest : AmazonAutoScalingRequest
{
private string _launchConfigurationName;
/// <summary>
/// Gets and sets the property LaunchConfigurationName.
/// <para>
/// The name of the launch configuration.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string LaunchConfigurationName
{
get { return this._launchConfigurationName; }
set { this._launchConfigurationName = value; }
}
// Check to see if LaunchConfigurationName property is set
internal bool IsSetLaunchConfigurationName()
{
return this._launchConfigurationName != null;
}
}
}
| 65 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DeleteLaunchConfiguration operation.
/// </summary>
public partial class DeleteLaunchConfigurationResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the DeleteLifecycleHook operation.
/// Deletes the specified lifecycle hook.
///
///
/// <para>
/// If there are any outstanding lifecycle actions, they are completed first (<code>ABANDON</code>
/// for launching instances, <code>CONTINUE</code> for terminating instances).
/// </para>
/// </summary>
public partial class DeleteLifecycleHookRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private string _lifecycleHookName;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property LifecycleHookName.
/// <para>
/// The name of the lifecycle hook.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string LifecycleHookName
{
get { return this._lifecycleHookName; }
set { this._lifecycleHookName = value; }
}
// Check to see if LifecycleHookName property is set
internal bool IsSetLifecycleHookName()
{
return this._lifecycleHookName != null;
}
}
}
| 85 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the DeleteLifecycleHook operation.
/// </summary>
public partial class DeleteLifecycleHookResponse : AmazonWebServiceResponse
{
}
}
| 38 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.