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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations
{
/// <summary>
/// GetObjectMetadata Request Marshaller
/// </summary>
public class GetObjectMetadataRequestMarshaller : IMarshaller<IRequest, GetObjectMetadataRequest> , 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((GetObjectMetadataRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(GetObjectMetadataRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.BackupStorage");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-04-10";
request.HttpMethod = "GET";
if (!publicRequest.IsSetObjectToken())
throw new AmazonBackupStorageException("Request object does not have required field ObjectToken set");
request.AddPathResource("{objectToken}", StringUtils.FromString(publicRequest.ObjectToken));
if (!publicRequest.IsSetStorageJobId())
throw new AmazonBackupStorageException("Request object does not have required field StorageJobId set");
request.AddPathResource("{jobId}", StringUtils.FromString(publicRequest.StorageJobId));
request.ResourcePath = "/restore-jobs/{jobId}/object/{objectToken}/metadata";
return request;
}
private static GetObjectMetadataRequestMarshaller _instance = new GetObjectMetadataRequestMarshaller();
internal static GetObjectMetadataRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static GetObjectMetadataRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 90 |
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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for GetObjectMetadata operation
/// </summary>
public class GetObjectMetadataResponseUnmarshaller : 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)
{
GetObjectMetadataResponse response = new GetObjectMetadataResponse();
response.MetadataBlob = context.Stream;
if (context.ResponseData.IsHeaderPresent("x-amz-checksum"))
response.MetadataBlobChecksum = context.ResponseData.GetHeaderValue("x-amz-checksum");
if (context.ResponseData.IsHeaderPresent("x-amz-checksum-algorithm"))
response.MetadataBlobChecksumAlgorithm = context.ResponseData.GetHeaderValue("x-amz-checksum-algorithm");
if (context.ResponseData.IsHeaderPresent("x-amz-data-length"))
response.MetadataBlobLength = long.Parse(context.ResponseData.GetHeaderValue("x-amz-data-length"), CultureInfo.InvariantCulture);
if (context.ResponseData.IsHeaderPresent("x-amz-metadata-string"))
response.MetadataString = context.ResponseData.GetHeaderValue("x-amz-metadata-string");
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("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("IllegalArgumentException"))
{
return IllegalArgumentExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("KMSInvalidKeyUsageException"))
{
return KMSInvalidKeyUsageExceptionUnmarshaller.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("RetryableException"))
{
return RetryableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceInternalException"))
{
return ServiceInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException"))
{
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBackupStorageException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
/// <summary>
/// Overriden to return true indicating the response contains streaming data.
/// </summary>
public override bool HasStreamingProperty
{
get
{
return true;
}
}
private static GetObjectMetadataResponseUnmarshaller _instance = new GetObjectMetadataResponseUnmarshaller();
internal static GetObjectMetadataResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static GetObjectMetadataResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 147 |
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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for IllegalArgumentException Object
/// </summary>
public class IllegalArgumentExceptionUnmarshaller : IErrorResponseUnmarshaller<IllegalArgumentException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public IllegalArgumentException 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 IllegalArgumentException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
IllegalArgumentException unmarshalledObject = new IllegalArgumentException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static IllegalArgumentExceptionUnmarshaller _instance = new IllegalArgumentExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static IllegalArgumentExceptionUnmarshaller 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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for KMSInvalidKeyUsageException Object
/// </summary>
public class KMSInvalidKeyUsageExceptionUnmarshaller : IErrorResponseUnmarshaller<KMSInvalidKeyUsageException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public KMSInvalidKeyUsageException 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 KMSInvalidKeyUsageException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
KMSInvalidKeyUsageException unmarshalledObject = new KMSInvalidKeyUsageException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static KMSInvalidKeyUsageExceptionUnmarshaller _instance = new KMSInvalidKeyUsageExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static KMSInvalidKeyUsageExceptionUnmarshaller 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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListChunks Request Marshaller
/// </summary>
public class ListChunksRequestMarshaller : IMarshaller<IRequest, ListChunksRequest> , 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((ListChunksRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListChunksRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.BackupStorage");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-04-10";
request.HttpMethod = "GET";
if (!publicRequest.IsSetObjectToken())
throw new AmazonBackupStorageException("Request object does not have required field ObjectToken set");
request.AddPathResource("{objectToken}", StringUtils.FromString(publicRequest.ObjectToken));
if (!publicRequest.IsSetStorageJobId())
throw new AmazonBackupStorageException("Request object does not have required field StorageJobId set");
request.AddPathResource("{jobId}", StringUtils.FromString(publicRequest.StorageJobId));
if (publicRequest.IsSetMaxResults())
request.Parameters.Add("max-results", StringUtils.FromInt(publicRequest.MaxResults));
if (publicRequest.IsSetNextToken())
request.Parameters.Add("next-token", StringUtils.FromString(publicRequest.NextToken));
request.ResourcePath = "/restore-jobs/{jobId}/chunks/{objectToken}/list";
request.UseQueryString = true;
return request;
}
private static ListChunksRequestMarshaller _instance = new ListChunksRequestMarshaller();
internal static ListChunksRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListChunksRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListChunks operation
/// </summary>
public class ListChunksResponseUnmarshaller : 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)
{
ListChunksResponse response = new ListChunksResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ChunkList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Chunk, ChunkUnmarshaller>(ChunkUnmarshaller.Instance);
response.ChunkList = 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("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("IllegalArgumentException"))
{
return IllegalArgumentExceptionUnmarshaller.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("RetryableException"))
{
return RetryableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceInternalException"))
{
return ServiceInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException"))
{
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBackupStorageException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListChunksResponseUnmarshaller _instance = new ListChunksResponseUnmarshaller();
internal static ListChunksResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListChunksResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 136 |
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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListObjects Request Marshaller
/// </summary>
public class ListObjectsRequestMarshaller : IMarshaller<IRequest, ListObjectsRequest> , 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((ListObjectsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListObjectsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.BackupStorage");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-04-10";
request.HttpMethod = "GET";
if (!publicRequest.IsSetStorageJobId())
throw new AmazonBackupStorageException("Request object does not have required field StorageJobId set");
request.AddPathResource("{jobId}", StringUtils.FromString(publicRequest.StorageJobId));
if (publicRequest.IsSetCreatedAfter())
request.Parameters.Add("created-after", StringUtils.FromDateTimeToISO8601(publicRequest.CreatedAfter));
if (publicRequest.IsSetCreatedBefore())
request.Parameters.Add("created-before", StringUtils.FromDateTimeToISO8601(publicRequest.CreatedBefore));
if (publicRequest.IsSetMaxResults())
request.Parameters.Add("max-results", StringUtils.FromInt(publicRequest.MaxResults));
if (publicRequest.IsSetNextToken())
request.Parameters.Add("next-token", StringUtils.FromString(publicRequest.NextToken));
if (publicRequest.IsSetStartingObjectName())
request.Parameters.Add("starting-object-name", StringUtils.FromString(publicRequest.StartingObjectName));
if (publicRequest.IsSetStartingObjectPrefix())
request.Parameters.Add("starting-object-prefix", StringUtils.FromString(publicRequest.StartingObjectPrefix));
request.ResourcePath = "/restore-jobs/{jobId}/objects/list";
request.UseQueryString = true;
return request;
}
private static ListObjectsRequestMarshaller _instance = new ListObjectsRequestMarshaller();
internal static ListObjectsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListObjectsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 106 |
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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListObjects operation
/// </summary>
public class ListObjectsResponseUnmarshaller : 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)
{
ListObjectsResponse response = new ListObjectsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ObjectList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<BackupObject, BackupObjectUnmarshaller>(BackupObjectUnmarshaller.Instance);
response.ObjectList = 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("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("IllegalArgumentException"))
{
return IllegalArgumentExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("KMSInvalidKeyUsageException"))
{
return KMSInvalidKeyUsageExceptionUnmarshaller.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("RetryableException"))
{
return RetryableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceInternalException"))
{
return ServiceInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException"))
{
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBackupStorageException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListObjectsResponseUnmarshaller _instance = new ListObjectsResponseUnmarshaller();
internal static ListObjectsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListObjectsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 144 |
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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations
{
/// <summary>
/// NotifyObjectComplete Request Marshaller
/// </summary>
public class NotifyObjectCompleteRequestMarshaller : IMarshaller<IRequest, NotifyObjectCompleteRequest> , 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((NotifyObjectCompleteRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(NotifyObjectCompleteRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.BackupStorage");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-04-10";
request.HttpMethod = "PUT";
if (!publicRequest.IsSetBackupJobId())
throw new AmazonBackupStorageException("Request object does not have required field BackupJobId set");
request.AddPathResource("{jobId}", StringUtils.FromString(publicRequest.BackupJobId));
if (!publicRequest.IsSetUploadId())
throw new AmazonBackupStorageException("Request object does not have required field UploadId set");
request.AddPathResource("{uploadId}", StringUtils.FromString(publicRequest.UploadId));
if (publicRequest.IsSetMetadataBlobChecksum())
request.Parameters.Add("metadata-checksum", StringUtils.FromString(publicRequest.MetadataBlobChecksum));
if (publicRequest.IsSetMetadataBlobChecksumAlgorithm())
request.Parameters.Add("metadata-checksum-algorithm", StringUtils.FromString(publicRequest.MetadataBlobChecksumAlgorithm));
if (publicRequest.IsSetMetadataBlobLength())
request.Parameters.Add("metadata-blob-length", StringUtils.FromLong(publicRequest.MetadataBlobLength));
if (publicRequest.IsSetMetadataString())
request.Parameters.Add("metadata-string", StringUtils.FromString(publicRequest.MetadataString));
if (publicRequest.IsSetObjectChecksum())
request.Parameters.Add("checksum", StringUtils.FromString(publicRequest.ObjectChecksum));
if (publicRequest.IsSetObjectChecksumAlgorithm())
request.Parameters.Add("checksum-algorithm", StringUtils.FromString(publicRequest.ObjectChecksumAlgorithm));
request.ResourcePath = "/backup-jobs/{jobId}/object/{uploadId}/complete";
request.ContentStream = publicRequest.MetadataBlob ?? new MemoryStream();
if (request.ContentStream.CanSeek)
{
request.Headers[Amazon.Util.HeaderKeys.ContentLengthHeader] =
request.ContentStream.Length.ToString(CultureInfo.InvariantCulture);
}
else
{
request.Headers[Amazon.Util.HeaderKeys.TransferEncodingHeader] = "chunked";
}
request.Headers[Amazon.Util.HeaderKeys.ContentTypeHeader] = "binary/octet-stream";
if (request.ContentStream != null && request.ContentStream.Length == 0)
{
request.Headers.Remove(Amazon.Util.HeaderKeys.ContentTypeHeader);
}
request.UseQueryString = true;
return request;
}
private static NotifyObjectCompleteRequestMarshaller _instance = new NotifyObjectCompleteRequestMarshaller();
internal static NotifyObjectCompleteRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static NotifyObjectCompleteRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for NotifyObjectComplete operation
/// </summary>
public class NotifyObjectCompleteResponseUnmarshaller : 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)
{
NotifyObjectCompleteResponse response = new NotifyObjectCompleteResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ObjectChecksum", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ObjectChecksum = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ObjectChecksumAlgorithm", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ObjectChecksumAlgorithm = 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("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("IllegalArgumentException"))
{
return IllegalArgumentExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("KMSInvalidKeyUsageException"))
{
return KMSInvalidKeyUsageExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("NotReadableInputStreamException"))
{
return NotReadableInputStreamExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("RetryableException"))
{
return RetryableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceInternalException"))
{
return ServiceInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException"))
{
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBackupStorageException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static NotifyObjectCompleteResponseUnmarshaller _instance = new NotifyObjectCompleteResponseUnmarshaller();
internal static NotifyObjectCompleteResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static NotifyObjectCompleteResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 144 |
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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for NotReadableInputStreamException Object
/// </summary>
public class NotReadableInputStreamExceptionUnmarshaller : IErrorResponseUnmarshaller<NotReadableInputStreamException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public NotReadableInputStreamException 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 NotReadableInputStreamException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
NotReadableInputStreamException unmarshalledObject = new NotReadableInputStreamException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static NotReadableInputStreamExceptionUnmarshaller _instance = new NotReadableInputStreamExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static NotReadableInputStreamExceptionUnmarshaller 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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations
{
/// <summary>
/// PutChunk Request Marshaller
/// </summary>
public class PutChunkRequestMarshaller : IMarshaller<IRequest, PutChunkRequest> , 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((PutChunkRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(PutChunkRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.BackupStorage");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-04-10";
request.HttpMethod = "PUT";
if (!publicRequest.IsSetBackupJobId())
throw new AmazonBackupStorageException("Request object does not have required field BackupJobId set");
request.AddPathResource("{jobId}", StringUtils.FromString(publicRequest.BackupJobId));
if (!publicRequest.IsSetChunkIndex())
throw new AmazonBackupStorageException("Request object does not have required field ChunkIndex set");
request.AddPathResource("{chunkIndex}", StringUtils.FromLong(publicRequest.ChunkIndex));
if (!publicRequest.IsSetUploadId())
throw new AmazonBackupStorageException("Request object does not have required field UploadId set");
request.AddPathResource("{uploadId}", StringUtils.FromString(publicRequest.UploadId));
if (publicRequest.IsSetChecksum())
request.Parameters.Add("checksum", StringUtils.FromString(publicRequest.Checksum));
if (publicRequest.IsSetChecksumAlgorithm())
request.Parameters.Add("checksum-algorithm", StringUtils.FromString(publicRequest.ChecksumAlgorithm));
if (publicRequest.IsSetLength())
request.Parameters.Add("length", StringUtils.FromLong(publicRequest.Length));
request.ResourcePath = "/backup-jobs/{jobId}/chunk/{uploadId}/{chunkIndex}";
request.ContentStream = publicRequest.Data ?? new MemoryStream();
if (request.ContentStream.CanSeek)
{
request.Headers[Amazon.Util.HeaderKeys.ContentLengthHeader] =
request.ContentStream.Length.ToString(CultureInfo.InvariantCulture);
}
else
{
request.Headers[Amazon.Util.HeaderKeys.TransferEncodingHeader] = "chunked";
}
request.Headers[Amazon.Util.HeaderKeys.ContentTypeHeader] = "binary/octet-stream";
if (request.ContentStream != null && request.ContentStream.Length == 0)
{
request.Headers.Remove(Amazon.Util.HeaderKeys.ContentTypeHeader);
}
request.UseQueryString = true;
return request;
}
private static PutChunkRequestMarshaller _instance = new PutChunkRequestMarshaller();
internal static PutChunkRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static PutChunkRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for PutChunk operation
/// </summary>
public class PutChunkResponseUnmarshaller : 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)
{
PutChunkResponse response = new PutChunkResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ChunkChecksum", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ChunkChecksum = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ChunkChecksumAlgorithm", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ChunkChecksumAlgorithm = 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("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("IllegalArgumentException"))
{
return IllegalArgumentExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("KMSInvalidKeyUsageException"))
{
return KMSInvalidKeyUsageExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("NotReadableInputStreamException"))
{
return NotReadableInputStreamExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("RetryableException"))
{
return RetryableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceInternalException"))
{
return ServiceInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException"))
{
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBackupStorageException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static PutChunkResponseUnmarshaller _instance = new PutChunkResponseUnmarshaller();
internal static PutChunkResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static PutChunkResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 144 |
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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations
{
/// <summary>
/// PutObject Request Marshaller
/// </summary>
public class PutObjectRequestMarshaller : IMarshaller<IRequest, PutObjectRequest> , 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((PutObjectRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(PutObjectRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.BackupStorage");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-04-10";
request.HttpMethod = "PUT";
if (!publicRequest.IsSetBackupJobId())
throw new AmazonBackupStorageException("Request object does not have required field BackupJobId set");
request.AddPathResource("{jobId}", StringUtils.FromString(publicRequest.BackupJobId));
if (!publicRequest.IsSetObjectName())
throw new AmazonBackupStorageException("Request object does not have required field ObjectName set");
request.AddPathResource("{objectName}", StringUtils.FromString(publicRequest.ObjectName));
if (publicRequest.IsSetInlineChunkChecksum())
request.Parameters.Add("checksum", StringUtils.FromString(publicRequest.InlineChunkChecksum));
if (publicRequest.IsSetInlineChunkChecksumAlgorithm())
request.Parameters.Add("checksum-algorithm", StringUtils.FromString(publicRequest.InlineChunkChecksumAlgorithm));
if (publicRequest.IsSetInlineChunkLength())
request.Parameters.Add("length", StringUtils.FromLong(publicRequest.InlineChunkLength));
if (publicRequest.IsSetMetadataString())
request.Parameters.Add("metadata-string", StringUtils.FromString(publicRequest.MetadataString));
if (publicRequest.IsSetObjectChecksum())
request.Parameters.Add("object-checksum", StringUtils.FromString(publicRequest.ObjectChecksum));
if (publicRequest.IsSetObjectChecksumAlgorithm())
request.Parameters.Add("object-checksum-algorithm", StringUtils.FromString(publicRequest.ObjectChecksumAlgorithm));
if (publicRequest.IsSetThrowOnDuplicate())
request.Parameters.Add("throwOnDuplicate", StringUtils.FromBool(publicRequest.ThrowOnDuplicate));
request.ResourcePath = "/backup-jobs/{jobId}/object/{objectName}/put-object";
request.ContentStream = publicRequest.InlineChunk ?? new MemoryStream();
if (request.ContentStream.CanSeek)
{
request.Headers[Amazon.Util.HeaderKeys.ContentLengthHeader] =
request.ContentStream.Length.ToString(CultureInfo.InvariantCulture);
}
else
{
request.Headers[Amazon.Util.HeaderKeys.TransferEncodingHeader] = "chunked";
}
request.Headers[Amazon.Util.HeaderKeys.ContentTypeHeader] = "binary/octet-stream";
if (request.ContentStream != null && request.ContentStream.Length == 0)
{
request.Headers.Remove(Amazon.Util.HeaderKeys.ContentTypeHeader);
}
request.UseQueryString = true;
return request;
}
private static PutObjectRequestMarshaller _instance = new PutObjectRequestMarshaller();
internal static PutObjectRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static PutObjectRequestMarshaller 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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for PutObject operation
/// </summary>
public class PutObjectResponseUnmarshaller : 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)
{
PutObjectResponse response = new PutObjectResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("InlineChunkChecksum", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.InlineChunkChecksum = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("InlineChunkChecksumAlgorithm", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.InlineChunkChecksumAlgorithm = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ObjectChecksum", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ObjectChecksum = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ObjectChecksumAlgorithm", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ObjectChecksumAlgorithm = 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("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("IllegalArgumentException"))
{
return IllegalArgumentExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("KMSInvalidKeyUsageException"))
{
return KMSInvalidKeyUsageExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("NotReadableInputStreamException"))
{
return NotReadableInputStreamExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("RetryableException"))
{
return RetryableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceInternalException"))
{
return ServiceInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException"))
{
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBackupStorageException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static PutObjectResponseUnmarshaller _instance = new PutObjectResponseUnmarshaller();
internal static PutObjectResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static PutObjectResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 156 |
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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.BackupStorage.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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for RetryableException Object
/// </summary>
public class RetryableExceptionUnmarshaller : IErrorResponseUnmarshaller<RetryableException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public RetryableException 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 RetryableException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
RetryableException unmarshalledObject = new RetryableException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static RetryableExceptionUnmarshaller _instance = new RetryableExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static RetryableExceptionUnmarshaller 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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ServiceInternalException Object
/// </summary>
public class ServiceInternalExceptionUnmarshaller : IErrorResponseUnmarshaller<ServiceInternalException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ServiceInternalException 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 ServiceInternalException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ServiceInternalException unmarshalledObject = new ServiceInternalException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ServiceInternalExceptionUnmarshaller _instance = new ServiceInternalExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ServiceInternalExceptionUnmarshaller 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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ServiceUnavailableException Object
/// </summary>
public class ServiceUnavailableExceptionUnmarshaller : IErrorResponseUnmarshaller<ServiceUnavailableException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ServiceUnavailableException 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 ServiceUnavailableException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ServiceUnavailableException unmarshalledObject = new ServiceUnavailableException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ServiceUnavailableExceptionUnmarshaller _instance = new ServiceUnavailableExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ServiceUnavailableExceptionUnmarshaller 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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations
{
/// <summary>
/// StartObject Request Marshaller
/// </summary>
public class StartObjectRequestMarshaller : IMarshaller<IRequest, StartObjectRequest> , 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((StartObjectRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(StartObjectRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.BackupStorage");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-04-10";
request.HttpMethod = "PUT";
if (!publicRequest.IsSetBackupJobId())
throw new AmazonBackupStorageException("Request object does not have required field BackupJobId set");
request.AddPathResource("{jobId}", StringUtils.FromString(publicRequest.BackupJobId));
if (!publicRequest.IsSetObjectName())
throw new AmazonBackupStorageException("Request object does not have required field ObjectName set");
request.AddPathResource("{objectName}", StringUtils.FromString(publicRequest.ObjectName));
request.ResourcePath = "/backup-jobs/{jobId}/object/{objectName}";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetThrowOnDuplicate())
{
context.Writer.WritePropertyName("ThrowOnDuplicate");
context.Writer.Write(publicRequest.ThrowOnDuplicate);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static StartObjectRequestMarshaller _instance = new StartObjectRequestMarshaller();
internal static StartObjectRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StartObjectRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for StartObject operation
/// </summary>
public class StartObjectResponseUnmarshaller : 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)
{
StartObjectResponse response = new StartObjectResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("UploadId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.UploadId = 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("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("DataAlreadyExistsException"))
{
return DataAlreadyExistsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("IllegalArgumentException"))
{
return IllegalArgumentExceptionUnmarshaller.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("RetryableException"))
{
return RetryableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceInternalException"))
{
return ServiceInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException"))
{
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBackupStorageException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static StartObjectResponseUnmarshaller _instance = new StartObjectResponseUnmarshaller();
internal static StartObjectResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StartObjectResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.BackupStorage.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 backupstorage-2018-04-10.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace Amazon.BackupStorage.Model
{
/// <summary>
/// Paginators for the BackupStorage service
///</summary>
public class BackupStoragePaginatorFactory : IBackupStoragePaginatorFactory
{
private readonly IAmazonBackupStorage client;
internal BackupStoragePaginatorFactory(IAmazonBackupStorage client)
{
this.client = client;
}
/// <summary>
/// Paginator for ListChunks operation
///</summary>
public IListChunksPaginator ListChunks(ListChunksRequest request)
{
return new ListChunksPaginator(this.client, request);
}
/// <summary>
/// Paginator for ListObjects operation
///</summary>
public IListObjectsPaginator ListObjects(ListObjectsRequest request)
{
return new ListObjectsPaginator(this.client, request);
}
}
}
| 54 |
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 backupstorage-2018-04-10.normal.json service model.
*/
namespace Amazon.BackupStorage.Model
{
/// <summary>
/// Paginators for the BackupStorage service
///</summary>
public interface IBackupStoragePaginatorFactory
{
/// <summary>
/// Paginator for ListChunks operation
///</summary>
IListChunksPaginator ListChunks(ListChunksRequest request);
/// <summary>
/// Paginator for ListObjects operation
///</summary>
IListObjectsPaginator ListObjects(ListObjectsRequest request);
}
}
| 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 backupstorage-2018-04-10.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.BackupStorage.Model
{
/// <summary>
/// Paginator for the ListChunks operation
///</summary>
public interface IListChunksPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListChunksResponse> Responses { get; }
}
}
| 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 backupstorage-2018-04-10.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.BackupStorage.Model
{
/// <summary>
/// Paginator for the ListObjects operation
///</summary>
public interface IListObjectsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListObjectsResponse> Responses { get; }
}
}
| 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 backupstorage-2018-04-10.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.BackupStorage.Model
{
/// <summary>
/// Base class for ListChunks paginators.
/// </summary>
internal sealed partial class ListChunksPaginator : IPaginator<ListChunksResponse>, IListChunksPaginator
{
private readonly IAmazonBackupStorage _client;
private readonly ListChunksRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListChunksResponse> Responses => new PaginatedResponse<ListChunksResponse>(this);
internal ListChunksPaginator(IAmazonBackupStorage client, ListChunksRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListChunksResponse> IPaginator<ListChunksResponse>.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;
ListChunksResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListChunks(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListChunksResponse> IPaginator<ListChunksResponse>.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;
ListChunksResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListChunksAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
}
| 91 |
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 backupstorage-2018-04-10.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.BackupStorage.Model
{
/// <summary>
/// Base class for ListObjects paginators.
/// </summary>
internal sealed partial class ListObjectsPaginator : IPaginator<ListObjectsResponse>, IListObjectsPaginator
{
private readonly IAmazonBackupStorage _client;
private readonly ListObjectsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListObjectsResponse> Responses => new PaginatedResponse<ListObjectsResponse>(this);
internal ListObjectsPaginator(IAmazonBackupStorage client, ListObjectsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListObjectsResponse> IPaginator<ListObjectsResponse>.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;
ListObjectsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListObjects(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListObjectsResponse> IPaginator<ListObjectsResponse>.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;
ListObjectsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListObjectsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
}
| 91 |
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 backupstorage-2018-04-10.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.BackupStorage.Model;
using Amazon.BackupStorage.Model.Internal.MarshallTransformations;
using Amazon.BackupStorage.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.BackupStorage
{
/// <summary>
/// Implementation for accessing BackupStorage
///
/// The frontend service for Cryo Storage.
/// </summary>
public partial class AmazonBackupStorageClient : AmazonServiceClient, IAmazonBackupStorage
{
private static IServiceMetadata serviceMetadata = new AmazonBackupStorageMetadata();
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
private IBackupStoragePaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IBackupStoragePaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new BackupStoragePaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Constructors
/// <summary>
/// Constructs AmazonBackupStorageClient 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 AmazonBackupStorageClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonBackupStorageConfig()) { }
/// <summary>
/// Constructs AmazonBackupStorageClient 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 AmazonBackupStorageClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonBackupStorageConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonBackupStorageClient 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 AmazonBackupStorageClient Configuration Object</param>
public AmazonBackupStorageClient(AmazonBackupStorageConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonBackupStorageClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonBackupStorageClient(AWSCredentials credentials)
: this(credentials, new AmazonBackupStorageConfig())
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonBackupStorageClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonBackupStorageConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient with AWS Credentials and an
/// AmazonBackupStorageClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonBackupStorageClient Configuration Object</param>
public AmazonBackupStorageClient(AWSCredentials credentials, AmazonBackupStorageConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient 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 AmazonBackupStorageClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonBackupStorageConfig())
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient 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 AmazonBackupStorageClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonBackupStorageConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonBackupStorageClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonBackupStorageClient Configuration Object</param>
public AmazonBackupStorageClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonBackupStorageConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient 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 AmazonBackupStorageClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBackupStorageConfig())
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient 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 AmazonBackupStorageClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBackupStorageConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonBackupStorageClient 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 AmazonBackupStorageClient Configuration Object</param>
public AmazonBackupStorageClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonBackupStorageConfig 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 AmazonBackupStorageEndpointResolver());
}
/// <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 DeleteObject
/// <summary>
/// Delete Object from the incremental base Backup.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteObject service method.</param>
///
/// <returns>The response from the DeleteObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/DeleteObject">REST API Reference for DeleteObject Operation</seealso>
public virtual DeleteObjectResponse DeleteObject(DeleteObjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteObjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteObjectResponseUnmarshaller.Instance;
return Invoke<DeleteObjectResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteObject operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteObject operation on AmazonBackupStorageClient.</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 EndDeleteObject
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/DeleteObject">REST API Reference for DeleteObject Operation</seealso>
public virtual IAsyncResult BeginDeleteObject(DeleteObjectRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteObjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteObjectResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteObject operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteObject.</param>
///
/// <returns>Returns a DeleteObjectResult from BackupStorage.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/DeleteObject">REST API Reference for DeleteObject Operation</seealso>
public virtual DeleteObjectResponse EndDeleteObject(IAsyncResult asyncResult)
{
return EndInvoke<DeleteObjectResponse>(asyncResult);
}
#endregion
#region GetChunk
/// <summary>
/// Gets the specified object's chunk.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetChunk service method.</param>
///
/// <returns>The response from the GetChunk service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetChunk">REST API Reference for GetChunk Operation</seealso>
public virtual GetChunkResponse GetChunk(GetChunkRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetChunkRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetChunkResponseUnmarshaller.Instance;
return Invoke<GetChunkResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the GetChunk operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetChunk operation on AmazonBackupStorageClient.</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 EndGetChunk
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetChunk">REST API Reference for GetChunk Operation</seealso>
public virtual IAsyncResult BeginGetChunk(GetChunkRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetChunkRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetChunkResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the GetChunk operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetChunk.</param>
///
/// <returns>Returns a GetChunkResult from BackupStorage.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetChunk">REST API Reference for GetChunk Operation</seealso>
public virtual GetChunkResponse EndGetChunk(IAsyncResult asyncResult)
{
return EndInvoke<GetChunkResponse>(asyncResult);
}
#endregion
#region GetObjectMetadata
/// <summary>
/// Get metadata associated with an Object.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetObjectMetadata service method.</param>
///
/// <returns>The response from the GetObjectMetadata service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetObjectMetadata">REST API Reference for GetObjectMetadata Operation</seealso>
public virtual GetObjectMetadataResponse GetObjectMetadata(GetObjectMetadataRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetObjectMetadataRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetObjectMetadataResponseUnmarshaller.Instance;
return Invoke<GetObjectMetadataResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the GetObjectMetadata operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetObjectMetadata operation on AmazonBackupStorageClient.</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 EndGetObjectMetadata
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetObjectMetadata">REST API Reference for GetObjectMetadata Operation</seealso>
public virtual IAsyncResult BeginGetObjectMetadata(GetObjectMetadataRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetObjectMetadataRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetObjectMetadataResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the GetObjectMetadata operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetObjectMetadata.</param>
///
/// <returns>Returns a GetObjectMetadataResult from BackupStorage.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetObjectMetadata">REST API Reference for GetObjectMetadata Operation</seealso>
public virtual GetObjectMetadataResponse EndGetObjectMetadata(IAsyncResult asyncResult)
{
return EndInvoke<GetObjectMetadataResponse>(asyncResult);
}
#endregion
#region ListChunks
/// <summary>
/// List chunks in a given Object
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListChunks service method.</param>
///
/// <returns>The response from the ListChunks service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListChunks">REST API Reference for ListChunks Operation</seealso>
public virtual ListChunksResponse ListChunks(ListChunksRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListChunksRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListChunksResponseUnmarshaller.Instance;
return Invoke<ListChunksResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListChunks operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListChunks operation on AmazonBackupStorageClient.</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 EndListChunks
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListChunks">REST API Reference for ListChunks Operation</seealso>
public virtual IAsyncResult BeginListChunks(ListChunksRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListChunksRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListChunksResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListChunks operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListChunks.</param>
///
/// <returns>Returns a ListChunksResult from BackupStorage.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListChunks">REST API Reference for ListChunks Operation</seealso>
public virtual ListChunksResponse EndListChunks(IAsyncResult asyncResult)
{
return EndInvoke<ListChunksResponse>(asyncResult);
}
#endregion
#region ListObjects
/// <summary>
/// List all Objects in a given Backup.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListObjects service method.</param>
///
/// <returns>The response from the ListObjects service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListObjects">REST API Reference for ListObjects Operation</seealso>
public virtual ListObjectsResponse ListObjects(ListObjectsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListObjectsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListObjectsResponseUnmarshaller.Instance;
return Invoke<ListObjectsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListObjects operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListObjects operation on AmazonBackupStorageClient.</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 EndListObjects
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListObjects">REST API Reference for ListObjects Operation</seealso>
public virtual IAsyncResult BeginListObjects(ListObjectsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListObjectsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListObjectsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListObjects operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListObjects.</param>
///
/// <returns>Returns a ListObjectsResult from BackupStorage.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListObjects">REST API Reference for ListObjects Operation</seealso>
public virtual ListObjectsResponse EndListObjects(IAsyncResult asyncResult)
{
return EndInvoke<ListObjectsResponse>(asyncResult);
}
#endregion
#region NotifyObjectComplete
/// <summary>
/// Complete upload
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the NotifyObjectComplete service method.</param>
///
/// <returns>The response from the NotifyObjectComplete service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/NotifyObjectComplete">REST API Reference for NotifyObjectComplete Operation</seealso>
public virtual NotifyObjectCompleteResponse NotifyObjectComplete(NotifyObjectCompleteRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = NotifyObjectCompleteRequestMarshaller.Instance;
options.ResponseUnmarshaller = NotifyObjectCompleteResponseUnmarshaller.Instance;
return Invoke<NotifyObjectCompleteResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the NotifyObjectComplete operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the NotifyObjectComplete operation on AmazonBackupStorageClient.</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 EndNotifyObjectComplete
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/NotifyObjectComplete">REST API Reference for NotifyObjectComplete Operation</seealso>
public virtual IAsyncResult BeginNotifyObjectComplete(NotifyObjectCompleteRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = NotifyObjectCompleteRequestMarshaller.Instance;
options.ResponseUnmarshaller = NotifyObjectCompleteResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the NotifyObjectComplete operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginNotifyObjectComplete.</param>
///
/// <returns>Returns a NotifyObjectCompleteResult from BackupStorage.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/NotifyObjectComplete">REST API Reference for NotifyObjectComplete Operation</seealso>
public virtual NotifyObjectCompleteResponse EndNotifyObjectComplete(IAsyncResult asyncResult)
{
return EndInvoke<NotifyObjectCompleteResponse>(asyncResult);
}
#endregion
#region PutChunk
/// <summary>
/// Upload chunk.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutChunk service method.</param>
///
/// <returns>The response from the PutChunk service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutChunk">REST API Reference for PutChunk Operation</seealso>
public virtual PutChunkResponse PutChunk(PutChunkRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutChunkRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutChunkResponseUnmarshaller.Instance;
return Invoke<PutChunkResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the PutChunk operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutChunk operation on AmazonBackupStorageClient.</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 EndPutChunk
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutChunk">REST API Reference for PutChunk Operation</seealso>
public virtual IAsyncResult BeginPutChunk(PutChunkRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutChunkRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutChunkResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the PutChunk operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutChunk.</param>
///
/// <returns>Returns a PutChunkResult from BackupStorage.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutChunk">REST API Reference for PutChunk Operation</seealso>
public virtual PutChunkResponse EndPutChunk(IAsyncResult asyncResult)
{
return EndInvoke<PutChunkResponse>(asyncResult);
}
#endregion
#region PutObject
/// <summary>
/// Upload object that can store object metadata String and data blob in single API call
/// using inline chunk field.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutObject service method.</param>
///
/// <returns>The response from the PutObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutObject">REST API Reference for PutObject Operation</seealso>
public virtual PutObjectResponse PutObject(PutObjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutObjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutObjectResponseUnmarshaller.Instance;
return Invoke<PutObjectResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the PutObject operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutObject operation on AmazonBackupStorageClient.</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 EndPutObject
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutObject">REST API Reference for PutObject Operation</seealso>
public virtual IAsyncResult BeginPutObject(PutObjectRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutObjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutObjectResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the PutObject operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutObject.</param>
///
/// <returns>Returns a PutObjectResult from BackupStorage.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutObject">REST API Reference for PutObject Operation</seealso>
public virtual PutObjectResponse EndPutObject(IAsyncResult asyncResult)
{
return EndInvoke<PutObjectResponse>(asyncResult);
}
#endregion
#region StartObject
/// <summary>
/// Start upload containing one or many chunks.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartObject service method.</param>
///
/// <returns>The response from the StartObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.DataAlreadyExistsException">
/// Non-retryable exception. Attempted to create already existing object or chunk. This
/// message contains a checksum of already presented data.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/StartObject">REST API Reference for StartObject Operation</seealso>
public virtual StartObjectResponse StartObject(StartObjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartObjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartObjectResponseUnmarshaller.Instance;
return Invoke<StartObjectResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the StartObject operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StartObject operation on AmazonBackupStorageClient.</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 EndStartObject
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/StartObject">REST API Reference for StartObject Operation</seealso>
public virtual IAsyncResult BeginStartObject(StartObjectRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartObjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartObjectResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the StartObject operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartObject.</param>
///
/// <returns>Returns a StartObjectResult from BackupStorage.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/StartObject">REST API Reference for StartObject Operation</seealso>
public virtual StartObjectResponse EndStartObject(IAsyncResult asyncResult)
{
return EndInvoke<StartObjectResponse>(asyncResult);
}
#endregion
}
}
| 984 |
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 backupstorage-2018-04-10.normal.json service model.
*/
using System;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.BackupStorage.Model;
namespace Amazon.BackupStorage
{
/// <summary>
/// Interface for accessing BackupStorage
///
/// The frontend service for Cryo Storage.
/// </summary>
public partial interface IAmazonBackupStorage : IAmazonService, IDisposable
{
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
IBackupStoragePaginatorFactory Paginators { get; }
#endif
#region DeleteObject
/// <summary>
/// Delete Object from the incremental base Backup.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteObject service method.</param>
///
/// <returns>The response from the DeleteObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/DeleteObject">REST API Reference for DeleteObject Operation</seealso>
DeleteObjectResponse DeleteObject(DeleteObjectRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteObject operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteObject operation on AmazonBackupStorageClient.</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 EndDeleteObject
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/DeleteObject">REST API Reference for DeleteObject Operation</seealso>
IAsyncResult BeginDeleteObject(DeleteObjectRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteObject operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteObject.</param>
///
/// <returns>Returns a DeleteObjectResult from BackupStorage.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/DeleteObject">REST API Reference for DeleteObject Operation</seealso>
DeleteObjectResponse EndDeleteObject(IAsyncResult asyncResult);
#endregion
#region GetChunk
/// <summary>
/// Gets the specified object's chunk.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetChunk service method.</param>
///
/// <returns>The response from the GetChunk service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetChunk">REST API Reference for GetChunk Operation</seealso>
GetChunkResponse GetChunk(GetChunkRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetChunk operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetChunk operation on AmazonBackupStorageClient.</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 EndGetChunk
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetChunk">REST API Reference for GetChunk Operation</seealso>
IAsyncResult BeginGetChunk(GetChunkRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetChunk operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetChunk.</param>
///
/// <returns>Returns a GetChunkResult from BackupStorage.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetChunk">REST API Reference for GetChunk Operation</seealso>
GetChunkResponse EndGetChunk(IAsyncResult asyncResult);
#endregion
#region GetObjectMetadata
/// <summary>
/// Get metadata associated with an Object.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetObjectMetadata service method.</param>
///
/// <returns>The response from the GetObjectMetadata service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetObjectMetadata">REST API Reference for GetObjectMetadata Operation</seealso>
GetObjectMetadataResponse GetObjectMetadata(GetObjectMetadataRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetObjectMetadata operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetObjectMetadata operation on AmazonBackupStorageClient.</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 EndGetObjectMetadata
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetObjectMetadata">REST API Reference for GetObjectMetadata Operation</seealso>
IAsyncResult BeginGetObjectMetadata(GetObjectMetadataRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetObjectMetadata operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetObjectMetadata.</param>
///
/// <returns>Returns a GetObjectMetadataResult from BackupStorage.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetObjectMetadata">REST API Reference for GetObjectMetadata Operation</seealso>
GetObjectMetadataResponse EndGetObjectMetadata(IAsyncResult asyncResult);
#endregion
#region ListChunks
/// <summary>
/// List chunks in a given Object
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListChunks service method.</param>
///
/// <returns>The response from the ListChunks service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListChunks">REST API Reference for ListChunks Operation</seealso>
ListChunksResponse ListChunks(ListChunksRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListChunks operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListChunks operation on AmazonBackupStorageClient.</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 EndListChunks
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListChunks">REST API Reference for ListChunks Operation</seealso>
IAsyncResult BeginListChunks(ListChunksRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListChunks operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListChunks.</param>
///
/// <returns>Returns a ListChunksResult from BackupStorage.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListChunks">REST API Reference for ListChunks Operation</seealso>
ListChunksResponse EndListChunks(IAsyncResult asyncResult);
#endregion
#region ListObjects
/// <summary>
/// List all Objects in a given Backup.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListObjects service method.</param>
///
/// <returns>The response from the ListObjects service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListObjects">REST API Reference for ListObjects Operation</seealso>
ListObjectsResponse ListObjects(ListObjectsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListObjects operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListObjects operation on AmazonBackupStorageClient.</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 EndListObjects
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListObjects">REST API Reference for ListObjects Operation</seealso>
IAsyncResult BeginListObjects(ListObjectsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListObjects operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListObjects.</param>
///
/// <returns>Returns a ListObjectsResult from BackupStorage.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListObjects">REST API Reference for ListObjects Operation</seealso>
ListObjectsResponse EndListObjects(IAsyncResult asyncResult);
#endregion
#region NotifyObjectComplete
/// <summary>
/// Complete upload
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the NotifyObjectComplete service method.</param>
///
/// <returns>The response from the NotifyObjectComplete service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/NotifyObjectComplete">REST API Reference for NotifyObjectComplete Operation</seealso>
NotifyObjectCompleteResponse NotifyObjectComplete(NotifyObjectCompleteRequest request);
/// <summary>
/// Initiates the asynchronous execution of the NotifyObjectComplete operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the NotifyObjectComplete operation on AmazonBackupStorageClient.</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 EndNotifyObjectComplete
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/NotifyObjectComplete">REST API Reference for NotifyObjectComplete Operation</seealso>
IAsyncResult BeginNotifyObjectComplete(NotifyObjectCompleteRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the NotifyObjectComplete operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginNotifyObjectComplete.</param>
///
/// <returns>Returns a NotifyObjectCompleteResult from BackupStorage.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/NotifyObjectComplete">REST API Reference for NotifyObjectComplete Operation</seealso>
NotifyObjectCompleteResponse EndNotifyObjectComplete(IAsyncResult asyncResult);
#endregion
#region PutChunk
/// <summary>
/// Upload chunk.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutChunk service method.</param>
///
/// <returns>The response from the PutChunk service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutChunk">REST API Reference for PutChunk Operation</seealso>
PutChunkResponse PutChunk(PutChunkRequest request);
/// <summary>
/// Initiates the asynchronous execution of the PutChunk operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutChunk operation on AmazonBackupStorageClient.</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 EndPutChunk
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutChunk">REST API Reference for PutChunk Operation</seealso>
IAsyncResult BeginPutChunk(PutChunkRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the PutChunk operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutChunk.</param>
///
/// <returns>Returns a PutChunkResult from BackupStorage.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutChunk">REST API Reference for PutChunk Operation</seealso>
PutChunkResponse EndPutChunk(IAsyncResult asyncResult);
#endregion
#region PutObject
/// <summary>
/// Upload object that can store object metadata String and data blob in single API call
/// using inline chunk field.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutObject service method.</param>
///
/// <returns>The response from the PutObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutObject">REST API Reference for PutObject Operation</seealso>
PutObjectResponse PutObject(PutObjectRequest request);
/// <summary>
/// Initiates the asynchronous execution of the PutObject operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutObject operation on AmazonBackupStorageClient.</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 EndPutObject
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutObject">REST API Reference for PutObject Operation</seealso>
IAsyncResult BeginPutObject(PutObjectRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the PutObject operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutObject.</param>
///
/// <returns>Returns a PutObjectResult from BackupStorage.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutObject">REST API Reference for PutObject Operation</seealso>
PutObjectResponse EndPutObject(IAsyncResult asyncResult);
#endregion
#region StartObject
/// <summary>
/// Start upload containing one or many chunks.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartObject service method.</param>
///
/// <returns>The response from the StartObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.DataAlreadyExistsException">
/// Non-retryable exception. Attempted to create already existing object or chunk. This
/// message contains a checksum of already presented data.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/StartObject">REST API Reference for StartObject Operation</seealso>
StartObjectResponse StartObject(StartObjectRequest request);
/// <summary>
/// Initiates the asynchronous execution of the StartObject operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StartObject operation on AmazonBackupStorageClient.</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 EndStartObject
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/StartObject">REST API Reference for StartObject Operation</seealso>
IAsyncResult BeginStartObject(StartObjectRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the StartObject operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartObject.</param>
///
/// <returns>Returns a StartObjectResult from BackupStorage.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/StartObject">REST API Reference for StartObject Operation</seealso>
StartObjectResponse EndStartObject(IAsyncResult asyncResult);
#endregion
}
}
| 638 |
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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.BackupStorage.Model.Internal.MarshallTransformations;
using Amazon.BackupStorage.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.BackupStorage
{
/// <summary>
/// Implementation for accessing BackupStorage
///
/// The frontend service for Cryo Storage.
/// </summary>
public partial class AmazonBackupStorageClient : AmazonServiceClient, IAmazonBackupStorage
{
private static IServiceMetadata serviceMetadata = new AmazonBackupStorageMetadata();
private IBackupStoragePaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IBackupStoragePaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new BackupStoragePaginatorFactory(this);
}
return this._paginators;
}
}
#region Constructors
/// <summary>
/// Constructs AmazonBackupStorageClient 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 AmazonBackupStorageClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonBackupStorageConfig()) { }
/// <summary>
/// Constructs AmazonBackupStorageClient 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 AmazonBackupStorageClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonBackupStorageConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonBackupStorageClient 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 AmazonBackupStorageClient Configuration Object</param>
public AmazonBackupStorageClient(AmazonBackupStorageConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonBackupStorageClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonBackupStorageClient(AWSCredentials credentials)
: this(credentials, new AmazonBackupStorageConfig())
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonBackupStorageClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonBackupStorageConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient with AWS Credentials and an
/// AmazonBackupStorageClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonBackupStorageClient Configuration Object</param>
public AmazonBackupStorageClient(AWSCredentials credentials, AmazonBackupStorageConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient 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 AmazonBackupStorageClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonBackupStorageConfig())
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient 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 AmazonBackupStorageClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonBackupStorageConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonBackupStorageClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonBackupStorageClient Configuration Object</param>
public AmazonBackupStorageClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonBackupStorageConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient 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 AmazonBackupStorageClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBackupStorageConfig())
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient 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 AmazonBackupStorageClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBackupStorageConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonBackupStorageClient 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 AmazonBackupStorageClient Configuration Object</param>
public AmazonBackupStorageClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonBackupStorageConfig 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 AmazonBackupStorageEndpointResolver());
}
/// <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 DeleteObject
/// <summary>
/// Delete Object from the incremental base Backup.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteObject service method.</param>
///
/// <returns>The response from the DeleteObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/DeleteObject">REST API Reference for DeleteObject Operation</seealso>
public virtual DeleteObjectResponse DeleteObject(DeleteObjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteObjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteObjectResponseUnmarshaller.Instance;
return Invoke<DeleteObjectResponse>(request, options);
}
/// <summary>
/// Delete Object from the incremental base Backup.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteObject 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 DeleteObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/DeleteObject">REST API Reference for DeleteObject Operation</seealso>
public virtual Task<DeleteObjectResponse> DeleteObjectAsync(DeleteObjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteObjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteObjectResponseUnmarshaller.Instance;
return InvokeAsync<DeleteObjectResponse>(request, options, cancellationToken);
}
#endregion
#region GetChunk
/// <summary>
/// Gets the specified object's chunk.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetChunk service method.</param>
///
/// <returns>The response from the GetChunk service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetChunk">REST API Reference for GetChunk Operation</seealso>
public virtual GetChunkResponse GetChunk(GetChunkRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetChunkRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetChunkResponseUnmarshaller.Instance;
return Invoke<GetChunkResponse>(request, options);
}
/// <summary>
/// Gets the specified object's chunk.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetChunk 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 GetChunk service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetChunk">REST API Reference for GetChunk Operation</seealso>
public virtual Task<GetChunkResponse> GetChunkAsync(GetChunkRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetChunkRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetChunkResponseUnmarshaller.Instance;
return InvokeAsync<GetChunkResponse>(request, options, cancellationToken);
}
#endregion
#region GetObjectMetadata
/// <summary>
/// Get metadata associated with an Object.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetObjectMetadata service method.</param>
///
/// <returns>The response from the GetObjectMetadata service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetObjectMetadata">REST API Reference for GetObjectMetadata Operation</seealso>
public virtual GetObjectMetadataResponse GetObjectMetadata(GetObjectMetadataRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetObjectMetadataRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetObjectMetadataResponseUnmarshaller.Instance;
return Invoke<GetObjectMetadataResponse>(request, options);
}
/// <summary>
/// Get metadata associated with an Object.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetObjectMetadata 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 GetObjectMetadata service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetObjectMetadata">REST API Reference for GetObjectMetadata Operation</seealso>
public virtual Task<GetObjectMetadataResponse> GetObjectMetadataAsync(GetObjectMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetObjectMetadataRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetObjectMetadataResponseUnmarshaller.Instance;
return InvokeAsync<GetObjectMetadataResponse>(request, options, cancellationToken);
}
#endregion
#region ListChunks
/// <summary>
/// List chunks in a given Object
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListChunks service method.</param>
///
/// <returns>The response from the ListChunks service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListChunks">REST API Reference for ListChunks Operation</seealso>
public virtual ListChunksResponse ListChunks(ListChunksRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListChunksRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListChunksResponseUnmarshaller.Instance;
return Invoke<ListChunksResponse>(request, options);
}
/// <summary>
/// List chunks in a given Object
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListChunks 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 ListChunks service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListChunks">REST API Reference for ListChunks Operation</seealso>
public virtual Task<ListChunksResponse> ListChunksAsync(ListChunksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListChunksRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListChunksResponseUnmarshaller.Instance;
return InvokeAsync<ListChunksResponse>(request, options, cancellationToken);
}
#endregion
#region ListObjects
/// <summary>
/// List all Objects in a given Backup.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListObjects service method.</param>
///
/// <returns>The response from the ListObjects service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListObjects">REST API Reference for ListObjects Operation</seealso>
public virtual ListObjectsResponse ListObjects(ListObjectsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListObjectsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListObjectsResponseUnmarshaller.Instance;
return Invoke<ListObjectsResponse>(request, options);
}
/// <summary>
/// List all Objects in a given Backup.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListObjects 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 ListObjects service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListObjects">REST API Reference for ListObjects Operation</seealso>
public virtual Task<ListObjectsResponse> ListObjectsAsync(ListObjectsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListObjectsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListObjectsResponseUnmarshaller.Instance;
return InvokeAsync<ListObjectsResponse>(request, options, cancellationToken);
}
#endregion
#region NotifyObjectComplete
/// <summary>
/// Complete upload
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the NotifyObjectComplete service method.</param>
///
/// <returns>The response from the NotifyObjectComplete service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/NotifyObjectComplete">REST API Reference for NotifyObjectComplete Operation</seealso>
public virtual NotifyObjectCompleteResponse NotifyObjectComplete(NotifyObjectCompleteRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = NotifyObjectCompleteRequestMarshaller.Instance;
options.ResponseUnmarshaller = NotifyObjectCompleteResponseUnmarshaller.Instance;
return Invoke<NotifyObjectCompleteResponse>(request, options);
}
/// <summary>
/// Complete upload
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the NotifyObjectComplete 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 NotifyObjectComplete service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/NotifyObjectComplete">REST API Reference for NotifyObjectComplete Operation</seealso>
public virtual Task<NotifyObjectCompleteResponse> NotifyObjectCompleteAsync(NotifyObjectCompleteRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = NotifyObjectCompleteRequestMarshaller.Instance;
options.ResponseUnmarshaller = NotifyObjectCompleteResponseUnmarshaller.Instance;
return InvokeAsync<NotifyObjectCompleteResponse>(request, options, cancellationToken);
}
#endregion
#region PutChunk
/// <summary>
/// Upload chunk.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutChunk service method.</param>
///
/// <returns>The response from the PutChunk service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutChunk">REST API Reference for PutChunk Operation</seealso>
public virtual PutChunkResponse PutChunk(PutChunkRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutChunkRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutChunkResponseUnmarshaller.Instance;
return Invoke<PutChunkResponse>(request, options);
}
/// <summary>
/// Upload chunk.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutChunk 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 PutChunk service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutChunk">REST API Reference for PutChunk Operation</seealso>
public virtual Task<PutChunkResponse> PutChunkAsync(PutChunkRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutChunkRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutChunkResponseUnmarshaller.Instance;
return InvokeAsync<PutChunkResponse>(request, options, cancellationToken);
}
#endregion
#region PutObject
/// <summary>
/// Upload object that can store object metadata String and data blob in single API call
/// using inline chunk field.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutObject service method.</param>
///
/// <returns>The response from the PutObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutObject">REST API Reference for PutObject Operation</seealso>
public virtual PutObjectResponse PutObject(PutObjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutObjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutObjectResponseUnmarshaller.Instance;
return Invoke<PutObjectResponse>(request, options);
}
/// <summary>
/// Upload object that can store object metadata String and data blob in single API call
/// using inline chunk field.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutObject 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 PutObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutObject">REST API Reference for PutObject Operation</seealso>
public virtual Task<PutObjectResponse> PutObjectAsync(PutObjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutObjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutObjectResponseUnmarshaller.Instance;
return InvokeAsync<PutObjectResponse>(request, options, cancellationToken);
}
#endregion
#region StartObject
/// <summary>
/// Start upload containing one or many chunks.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartObject service method.</param>
///
/// <returns>The response from the StartObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.DataAlreadyExistsException">
/// Non-retryable exception. Attempted to create already existing object or chunk. This
/// message contains a checksum of already presented data.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/StartObject">REST API Reference for StartObject Operation</seealso>
public virtual StartObjectResponse StartObject(StartObjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartObjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartObjectResponseUnmarshaller.Instance;
return Invoke<StartObjectResponse>(request, options);
}
/// <summary>
/// Start upload containing one or many chunks.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartObject 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 StartObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.DataAlreadyExistsException">
/// Non-retryable exception. Attempted to create already existing object or chunk. This
/// message contains a checksum of already presented data.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/StartObject">REST API Reference for StartObject Operation</seealso>
public virtual Task<StartObjectResponse> StartObjectAsync(StartObjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartObjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartObjectResponseUnmarshaller.Instance;
return InvokeAsync<StartObjectResponse>(request, options, cancellationToken);
}
#endregion
}
}
| 1,096 |
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 backupstorage-2018-04-10.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.BackupStorage.Model;
namespace Amazon.BackupStorage
{
/// <summary>
/// Interface for accessing BackupStorage
///
/// The frontend service for Cryo Storage.
/// </summary>
public partial interface IAmazonBackupStorage : IAmazonService, IDisposable
{
/// <summary>
/// Paginators for the service
/// </summary>
IBackupStoragePaginatorFactory Paginators { get; }
#region DeleteObject
/// <summary>
/// Delete Object from the incremental base Backup.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteObject service method.</param>
///
/// <returns>The response from the DeleteObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/DeleteObject">REST API Reference for DeleteObject Operation</seealso>
DeleteObjectResponse DeleteObject(DeleteObjectRequest request);
/// <summary>
/// Delete Object from the incremental base Backup.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteObject 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 DeleteObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/DeleteObject">REST API Reference for DeleteObject Operation</seealso>
Task<DeleteObjectResponse> DeleteObjectAsync(DeleteObjectRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetChunk
/// <summary>
/// Gets the specified object's chunk.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetChunk service method.</param>
///
/// <returns>The response from the GetChunk service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetChunk">REST API Reference for GetChunk Operation</seealso>
GetChunkResponse GetChunk(GetChunkRequest request);
/// <summary>
/// Gets the specified object's chunk.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetChunk 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 GetChunk service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetChunk">REST API Reference for GetChunk Operation</seealso>
Task<GetChunkResponse> GetChunkAsync(GetChunkRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetObjectMetadata
/// <summary>
/// Get metadata associated with an Object.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetObjectMetadata service method.</param>
///
/// <returns>The response from the GetObjectMetadata service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetObjectMetadata">REST API Reference for GetObjectMetadata Operation</seealso>
GetObjectMetadataResponse GetObjectMetadata(GetObjectMetadataRequest request);
/// <summary>
/// Get metadata associated with an Object.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetObjectMetadata 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 GetObjectMetadata service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetObjectMetadata">REST API Reference for GetObjectMetadata Operation</seealso>
Task<GetObjectMetadataResponse> GetObjectMetadataAsync(GetObjectMetadataRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListChunks
/// <summary>
/// List chunks in a given Object
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListChunks service method.</param>
///
/// <returns>The response from the ListChunks service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListChunks">REST API Reference for ListChunks Operation</seealso>
ListChunksResponse ListChunks(ListChunksRequest request);
/// <summary>
/// List chunks in a given Object
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListChunks 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 ListChunks service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListChunks">REST API Reference for ListChunks Operation</seealso>
Task<ListChunksResponse> ListChunksAsync(ListChunksRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListObjects
/// <summary>
/// List all Objects in a given Backup.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListObjects service method.</param>
///
/// <returns>The response from the ListObjects service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListObjects">REST API Reference for ListObjects Operation</seealso>
ListObjectsResponse ListObjects(ListObjectsRequest request);
/// <summary>
/// List all Objects in a given Backup.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListObjects 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 ListObjects service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListObjects">REST API Reference for ListObjects Operation</seealso>
Task<ListObjectsResponse> ListObjectsAsync(ListObjectsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region NotifyObjectComplete
/// <summary>
/// Complete upload
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the NotifyObjectComplete service method.</param>
///
/// <returns>The response from the NotifyObjectComplete service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/NotifyObjectComplete">REST API Reference for NotifyObjectComplete Operation</seealso>
NotifyObjectCompleteResponse NotifyObjectComplete(NotifyObjectCompleteRequest request);
/// <summary>
/// Complete upload
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the NotifyObjectComplete 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 NotifyObjectComplete service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/NotifyObjectComplete">REST API Reference for NotifyObjectComplete Operation</seealso>
Task<NotifyObjectCompleteResponse> NotifyObjectCompleteAsync(NotifyObjectCompleteRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutChunk
/// <summary>
/// Upload chunk.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutChunk service method.</param>
///
/// <returns>The response from the PutChunk service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutChunk">REST API Reference for PutChunk Operation</seealso>
PutChunkResponse PutChunk(PutChunkRequest request);
/// <summary>
/// Upload chunk.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutChunk 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 PutChunk service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutChunk">REST API Reference for PutChunk Operation</seealso>
Task<PutChunkResponse> PutChunkAsync(PutChunkRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutObject
/// <summary>
/// Upload object that can store object metadata String and data blob in single API call
/// using inline chunk field.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutObject service method.</param>
///
/// <returns>The response from the PutObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutObject">REST API Reference for PutObject Operation</seealso>
PutObjectResponse PutObject(PutObjectRequest request);
/// <summary>
/// Upload object that can store object metadata String and data blob in single API call
/// using inline chunk field.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutObject 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 PutObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutObject">REST API Reference for PutObject Operation</seealso>
Task<PutObjectResponse> PutObjectAsync(PutObjectRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StartObject
/// <summary>
/// Start upload containing one or many chunks.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartObject service method.</param>
///
/// <returns>The response from the StartObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.DataAlreadyExistsException">
/// Non-retryable exception. Attempted to create already existing object or chunk. This
/// message contains a checksum of already presented data.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/StartObject">REST API Reference for StartObject Operation</seealso>
StartObjectResponse StartObject(StartObjectRequest request);
/// <summary>
/// Start upload containing one or many chunks.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartObject 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 StartObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.DataAlreadyExistsException">
/// Non-retryable exception. Attempted to create already existing object or chunk. This
/// message contains a checksum of already presented data.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/StartObject">REST API Reference for StartObject Operation</seealso>
Task<StartObjectResponse> StartObjectAsync(StartObjectRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
}
| 758 |
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 backupstorage-2018-04-10.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.BackupStorage.Model;
using Amazon.BackupStorage.Model.Internal.MarshallTransformations;
using Amazon.BackupStorage.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.BackupStorage
{
/// <summary>
/// Implementation for accessing BackupStorage
///
/// The frontend service for Cryo Storage.
/// </summary>
public partial class AmazonBackupStorageClient : AmazonServiceClient, IAmazonBackupStorage
{
private static IServiceMetadata serviceMetadata = new AmazonBackupStorageMetadata();
#region Constructors
/// <summary>
/// Constructs AmazonBackupStorageClient 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 AmazonBackupStorageClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonBackupStorageConfig()) { }
/// <summary>
/// Constructs AmazonBackupStorageClient 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 AmazonBackupStorageClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonBackupStorageConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonBackupStorageClient 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 AmazonBackupStorageClient Configuration Object</param>
public AmazonBackupStorageClient(AmazonBackupStorageConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonBackupStorageClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonBackupStorageClient(AWSCredentials credentials)
: this(credentials, new AmazonBackupStorageConfig())
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonBackupStorageClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonBackupStorageConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient with AWS Credentials and an
/// AmazonBackupStorageClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonBackupStorageClient Configuration Object</param>
public AmazonBackupStorageClient(AWSCredentials credentials, AmazonBackupStorageConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient 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 AmazonBackupStorageClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonBackupStorageConfig())
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient 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 AmazonBackupStorageClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonBackupStorageConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonBackupStorageClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonBackupStorageClient Configuration Object</param>
public AmazonBackupStorageClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonBackupStorageConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient 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 AmazonBackupStorageClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBackupStorageConfig())
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient 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 AmazonBackupStorageClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBackupStorageConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonBackupStorageClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonBackupStorageClient 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 AmazonBackupStorageClient Configuration Object</param>
public AmazonBackupStorageClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonBackupStorageConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private IBackupStoragePaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IBackupStoragePaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new BackupStoragePaginatorFactory(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 AmazonBackupStorageEndpointResolver());
}
/// <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 DeleteObject
internal virtual DeleteObjectResponse DeleteObject(DeleteObjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteObjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteObjectResponseUnmarshaller.Instance;
return Invoke<DeleteObjectResponse>(request, options);
}
/// <summary>
/// Delete Object from the incremental base Backup.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteObject 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 DeleteObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/DeleteObject">REST API Reference for DeleteObject Operation</seealso>
public virtual Task<DeleteObjectResponse> DeleteObjectAsync(DeleteObjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteObjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteObjectResponseUnmarshaller.Instance;
return InvokeAsync<DeleteObjectResponse>(request, options, cancellationToken);
}
#endregion
#region GetChunk
internal virtual GetChunkResponse GetChunk(GetChunkRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetChunkRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetChunkResponseUnmarshaller.Instance;
return Invoke<GetChunkResponse>(request, options);
}
/// <summary>
/// Gets the specified object's chunk.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetChunk 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 GetChunk service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetChunk">REST API Reference for GetChunk Operation</seealso>
public virtual Task<GetChunkResponse> GetChunkAsync(GetChunkRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetChunkRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetChunkResponseUnmarshaller.Instance;
return InvokeAsync<GetChunkResponse>(request, options, cancellationToken);
}
#endregion
#region GetObjectMetadata
internal virtual GetObjectMetadataResponse GetObjectMetadata(GetObjectMetadataRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetObjectMetadataRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetObjectMetadataResponseUnmarshaller.Instance;
return Invoke<GetObjectMetadataResponse>(request, options);
}
/// <summary>
/// Get metadata associated with an Object.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetObjectMetadata 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 GetObjectMetadata service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetObjectMetadata">REST API Reference for GetObjectMetadata Operation</seealso>
public virtual Task<GetObjectMetadataResponse> GetObjectMetadataAsync(GetObjectMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetObjectMetadataRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetObjectMetadataResponseUnmarshaller.Instance;
return InvokeAsync<GetObjectMetadataResponse>(request, options, cancellationToken);
}
#endregion
#region ListChunks
internal virtual ListChunksResponse ListChunks(ListChunksRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListChunksRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListChunksResponseUnmarshaller.Instance;
return Invoke<ListChunksResponse>(request, options);
}
/// <summary>
/// List chunks in a given Object
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListChunks 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 ListChunks service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListChunks">REST API Reference for ListChunks Operation</seealso>
public virtual Task<ListChunksResponse> ListChunksAsync(ListChunksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListChunksRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListChunksResponseUnmarshaller.Instance;
return InvokeAsync<ListChunksResponse>(request, options, cancellationToken);
}
#endregion
#region ListObjects
internal virtual ListObjectsResponse ListObjects(ListObjectsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListObjectsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListObjectsResponseUnmarshaller.Instance;
return Invoke<ListObjectsResponse>(request, options);
}
/// <summary>
/// List all Objects in a given Backup.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListObjects 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 ListObjects service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListObjects">REST API Reference for ListObjects Operation</seealso>
public virtual Task<ListObjectsResponse> ListObjectsAsync(ListObjectsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListObjectsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListObjectsResponseUnmarshaller.Instance;
return InvokeAsync<ListObjectsResponse>(request, options, cancellationToken);
}
#endregion
#region NotifyObjectComplete
internal virtual NotifyObjectCompleteResponse NotifyObjectComplete(NotifyObjectCompleteRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = NotifyObjectCompleteRequestMarshaller.Instance;
options.ResponseUnmarshaller = NotifyObjectCompleteResponseUnmarshaller.Instance;
return Invoke<NotifyObjectCompleteResponse>(request, options);
}
/// <summary>
/// Complete upload
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the NotifyObjectComplete 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 NotifyObjectComplete service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/NotifyObjectComplete">REST API Reference for NotifyObjectComplete Operation</seealso>
public virtual Task<NotifyObjectCompleteResponse> NotifyObjectCompleteAsync(NotifyObjectCompleteRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = NotifyObjectCompleteRequestMarshaller.Instance;
options.ResponseUnmarshaller = NotifyObjectCompleteResponseUnmarshaller.Instance;
return InvokeAsync<NotifyObjectCompleteResponse>(request, options, cancellationToken);
}
#endregion
#region PutChunk
internal virtual PutChunkResponse PutChunk(PutChunkRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutChunkRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutChunkResponseUnmarshaller.Instance;
return Invoke<PutChunkResponse>(request, options);
}
/// <summary>
/// Upload chunk.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutChunk 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 PutChunk service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutChunk">REST API Reference for PutChunk Operation</seealso>
public virtual Task<PutChunkResponse> PutChunkAsync(PutChunkRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutChunkRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutChunkResponseUnmarshaller.Instance;
return InvokeAsync<PutChunkResponse>(request, options, cancellationToken);
}
#endregion
#region PutObject
internal virtual PutObjectResponse PutObject(PutObjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutObjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutObjectResponseUnmarshaller.Instance;
return Invoke<PutObjectResponse>(request, options);
}
/// <summary>
/// Upload object that can store object metadata String and data blob in single API call
/// using inline chunk field.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutObject 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 PutObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutObject">REST API Reference for PutObject Operation</seealso>
public virtual Task<PutObjectResponse> PutObjectAsync(PutObjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutObjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutObjectResponseUnmarshaller.Instance;
return InvokeAsync<PutObjectResponse>(request, options, cancellationToken);
}
#endregion
#region StartObject
internal virtual StartObjectResponse StartObject(StartObjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartObjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartObjectResponseUnmarshaller.Instance;
return Invoke<StartObjectResponse>(request, options);
}
/// <summary>
/// Start upload containing one or many chunks.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartObject 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 StartObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.DataAlreadyExistsException">
/// Non-retryable exception. Attempted to create already existing object or chunk. This
/// message contains a checksum of already presented data.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/StartObject">REST API Reference for StartObject Operation</seealso>
public virtual Task<StartObjectResponse> StartObjectAsync(StartObjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartObjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartObjectResponseUnmarshaller.Instance;
return InvokeAsync<StartObjectResponse>(request, options, cancellationToken);
}
#endregion
}
}
| 807 |
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 backupstorage-2018-04-10.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.BackupStorage.Model;
namespace Amazon.BackupStorage
{
/// <summary>
/// Interface for accessing BackupStorage
///
/// The frontend service for Cryo Storage.
/// </summary>
public partial interface IAmazonBackupStorage : IAmazonService, IDisposable
{
#if AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
IBackupStoragePaginatorFactory Paginators { get; }
#endif
#region DeleteObject
/// <summary>
/// Delete Object from the incremental base Backup.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteObject 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 DeleteObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/DeleteObject">REST API Reference for DeleteObject Operation</seealso>
Task<DeleteObjectResponse> DeleteObjectAsync(DeleteObjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetChunk
/// <summary>
/// Gets the specified object's chunk.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetChunk 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 GetChunk service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetChunk">REST API Reference for GetChunk Operation</seealso>
Task<GetChunkResponse> GetChunkAsync(GetChunkRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetObjectMetadata
/// <summary>
/// Get metadata associated with an Object.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetObjectMetadata 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 GetObjectMetadata service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/GetObjectMetadata">REST API Reference for GetObjectMetadata Operation</seealso>
Task<GetObjectMetadataResponse> GetObjectMetadataAsync(GetObjectMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListChunks
/// <summary>
/// List chunks in a given Object
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListChunks 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 ListChunks service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListChunks">REST API Reference for ListChunks Operation</seealso>
Task<ListChunksResponse> ListChunksAsync(ListChunksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListObjects
/// <summary>
/// List all Objects in a given Backup.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListObjects 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 ListObjects service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/ListObjects">REST API Reference for ListObjects Operation</seealso>
Task<ListObjectsResponse> ListObjectsAsync(ListObjectsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region NotifyObjectComplete
/// <summary>
/// Complete upload
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the NotifyObjectComplete 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 NotifyObjectComplete service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/NotifyObjectComplete">REST API Reference for NotifyObjectComplete Operation</seealso>
Task<NotifyObjectCompleteResponse> NotifyObjectCompleteAsync(NotifyObjectCompleteRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutChunk
/// <summary>
/// Upload chunk.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutChunk 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 PutChunk service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutChunk">REST API Reference for PutChunk Operation</seealso>
Task<PutChunkResponse> PutChunkAsync(PutChunkRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutObject
/// <summary>
/// Upload object that can store object metadata String and data blob in single API call
/// using inline chunk field.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutObject 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 PutObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.KMSInvalidKeyUsageException">
/// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message
/// for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.NotReadableInputStreamException">
/// Retryalble exception. Indicated issues while reading an input stream due to the networking
/// issues or connection drop on the client side.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/PutObject">REST API Reference for PutObject Operation</seealso>
Task<PutObjectResponse> PutObjectAsync(PutObjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StartObject
/// <summary>
/// Start upload containing one or many chunks.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartObject 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 StartObject service method, as returned by BackupStorage.</returns>
/// <exception cref="Amazon.BackupStorage.Model.AccessDeniedException">
///
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.DataAlreadyExistsException">
/// Non-retryable exception. Attempted to create already existing object or chunk. This
/// message contains a checksum of already presented data.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.IllegalArgumentException">
/// Non-retryable exception, indicates client error (wrong argument passed to API). See
/// exception message for details.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ResourceNotFoundException">
/// Non-retryable exception. Attempted to make an operation on non-existing or expired
/// resource.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.RetryableException">
/// Retryable exception. In general indicates internal failure that can be fixed by retry.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceInternalException">
/// Deprecated. To be removed from the model.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ServiceUnavailableException">
/// Retryable exception, indicates internal server error.
/// </exception>
/// <exception cref="Amazon.BackupStorage.Model.ThrottlingException">
/// Increased rate over throttling limits. Can be retried with exponential backoff.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backupstorage-2018-04-10/StartObject">REST API Reference for StartObject Operation</seealso>
Task<StartObjectResponse> StartObjectAsync(StartObjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
}
| 438 |
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.BackupStorage")]
#if BCL35
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - AWS Backup Storage. This is the first public release of AWS Backup Storage. We are exposing some previously-internal APIs for use by external services. These APIs are not meant to be used directly by customers.")]
#elif BCL45
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - AWS Backup Storage. This is the first public release of AWS Backup Storage. We are exposing some previously-internal APIs for use by external services. These APIs are not meant to be used directly by customers.")]
#elif NETSTANDARD20
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - AWS Backup Storage. This is the first public release of AWS Backup Storage. We are exposing some previously-internal APIs for use by external services. These APIs are not meant to be used directly by customers.")]
#elif NETCOREAPP3_1
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - AWS Backup Storage. This is the first public release of AWS Backup Storage. We are exposing some previously-internal APIs for use by external services. These APIs are not meant to be used directly by customers.")]
#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 batch-2016-08-10.normal.json service model.
*/
using System;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Util.Internal;
using Amazon.Batch.Internal;
namespace Amazon.Batch
{
/// <summary>
/// Configuration for accessing Amazon Batch service
/// </summary>
[AWSSignerType("v4")]
public partial class AmazonBatchConfig : ClientConfig
{
private static readonly string UserAgentString =
InternalSDKUtils.BuildUserAgentString("3.7.104.45");
private string _userAgent = UserAgentString;
/// <summary>
/// Default constructor
/// </summary>
public AmazonBatchConfig()
: base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonBatchDefaultConfiguration.GetAllConfigurations()))
{
this.AuthenticationServiceName = "batch";
this.EndpointProvider = new AmazonBatchEndpointProvider();
}
/// <summary>
/// The constant used to lookup in the region hash the endpoint.
/// </summary>
public override string RegionEndpointServiceName
{
get
{
return "batch";
}
}
/// <summary>
/// Gets the ServiceVersion property.
/// </summary>
public override string ServiceVersion
{
get
{
return "2016-08-10";
}
}
/// <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 batch-2016-08-10.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Amazon.Runtime;
namespace Amazon.Batch
{
/// <summary>
/// Configuration for accessing Amazon Batch service
/// </summary>
public static class AmazonBatchDefaultConfiguration
{
/// <summary>
/// Collection of all <see cref="DefaultConfiguration"/>s supported by
/// Batch
/// </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 batch-2016-08-10.normal.json service model.
*/
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
namespace Amazon.Batch.Endpoints
{
/// <summary>
/// Contains parameters used for resolving Batch endpoints
/// Parameters can be sourced from client config and service operations
/// Used by internal BatchEndpointProvider and BatchEndpointResolver
/// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider
/// </summary>
public class BatchEndpointParameters : EndpointParameters
{
/// <summary>
/// BatchEndpointParameters constructor
/// </summary>
public BatchEndpointParameters()
{
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 batch-2016-08-10.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
using Amazon.Runtime;
namespace Amazon.Batch
{
///<summary>
/// Common exception for the Batch service.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class AmazonBatchException : AmazonServiceException
{
/// <summary>
/// Construct instance of AmazonBatchException
/// </summary>
/// <param name="message"></param>
public AmazonBatchException(string message)
: base(message)
{
}
/// <summary>
/// Construct instance of AmazonBatchException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public AmazonBatchException(string message, Exception innerException)
: base(message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonBatchException
/// </summary>
/// <param name="innerException"></param>
public AmazonBatchException(Exception innerException)
: base(innerException.Message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonBatchException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AmazonBatchException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode)
{
}
/// <summary>
/// Construct instance of AmazonBatchException
/// </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 AmazonBatchException(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 AmazonBatchException 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 AmazonBatchException(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 batch-2016-08-10.normal.json service model.
*/
using System;
using Amazon.Runtime;
namespace Amazon.Batch
{
/// <summary>
/// Constants used for properties of type ArrayJobDependency.
/// </summary>
public class ArrayJobDependency : ConstantClass
{
/// <summary>
/// Constant N_TO_N for ArrayJobDependency
/// </summary>
public static readonly ArrayJobDependency N_TO_N = new ArrayJobDependency("N_TO_N");
/// <summary>
/// Constant SEQUENTIAL for ArrayJobDependency
/// </summary>
public static readonly ArrayJobDependency SEQUENTIAL = new ArrayJobDependency("SEQUENTIAL");
/// <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 ArrayJobDependency(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 ArrayJobDependency FindValue(string value)
{
return FindValue<ArrayJobDependency>(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 ArrayJobDependency(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type AssignPublicIp.
/// </summary>
public class AssignPublicIp : ConstantClass
{
/// <summary>
/// Constant DISABLED for AssignPublicIp
/// </summary>
public static readonly AssignPublicIp DISABLED = new AssignPublicIp("DISABLED");
/// <summary>
/// Constant ENABLED for AssignPublicIp
/// </summary>
public static readonly AssignPublicIp ENABLED = new AssignPublicIp("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 AssignPublicIp(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 AssignPublicIp FindValue(string value)
{
return FindValue<AssignPublicIp>(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 AssignPublicIp(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type CEState.
/// </summary>
public class CEState : ConstantClass
{
/// <summary>
/// Constant DISABLED for CEState
/// </summary>
public static readonly CEState DISABLED = new CEState("DISABLED");
/// <summary>
/// Constant ENABLED for CEState
/// </summary>
public static readonly CEState ENABLED = new CEState("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 CEState(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 CEState FindValue(string value)
{
return FindValue<CEState>(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 CEState(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type CEStatus.
/// </summary>
public class CEStatus : ConstantClass
{
/// <summary>
/// Constant CREATING for CEStatus
/// </summary>
public static readonly CEStatus CREATING = new CEStatus("CREATING");
/// <summary>
/// Constant DELETED for CEStatus
/// </summary>
public static readonly CEStatus DELETED = new CEStatus("DELETED");
/// <summary>
/// Constant DELETING for CEStatus
/// </summary>
public static readonly CEStatus DELETING = new CEStatus("DELETING");
/// <summary>
/// Constant INVALID for CEStatus
/// </summary>
public static readonly CEStatus INVALID = new CEStatus("INVALID");
/// <summary>
/// Constant UPDATING for CEStatus
/// </summary>
public static readonly CEStatus UPDATING = new CEStatus("UPDATING");
/// <summary>
/// Constant VALID for CEStatus
/// </summary>
public static readonly CEStatus VALID = new CEStatus("VALID");
/// <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 CEStatus(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 CEStatus FindValue(string value)
{
return FindValue<CEStatus>(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 CEStatus(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type CEType.
/// </summary>
public class CEType : ConstantClass
{
/// <summary>
/// Constant MANAGED for CEType
/// </summary>
public static readonly CEType MANAGED = new CEType("MANAGED");
/// <summary>
/// Constant UNMANAGED for CEType
/// </summary>
public static readonly CEType UNMANAGED = new CEType("UNMANAGED");
/// <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 CEType(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 CEType FindValue(string value)
{
return FindValue<CEType>(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 CEType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type CRAllocationStrategy.
/// </summary>
public class CRAllocationStrategy : ConstantClass
{
/// <summary>
/// Constant BEST_FIT for CRAllocationStrategy
/// </summary>
public static readonly CRAllocationStrategy BEST_FIT = new CRAllocationStrategy("BEST_FIT");
/// <summary>
/// Constant BEST_FIT_PROGRESSIVE for CRAllocationStrategy
/// </summary>
public static readonly CRAllocationStrategy BEST_FIT_PROGRESSIVE = new CRAllocationStrategy("BEST_FIT_PROGRESSIVE");
/// <summary>
/// Constant SPOT_CAPACITY_OPTIMIZED for CRAllocationStrategy
/// </summary>
public static readonly CRAllocationStrategy SPOT_CAPACITY_OPTIMIZED = new CRAllocationStrategy("SPOT_CAPACITY_OPTIMIZED");
/// <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 CRAllocationStrategy(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 CRAllocationStrategy FindValue(string value)
{
return FindValue<CRAllocationStrategy>(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 CRAllocationStrategy(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type CRType.
/// </summary>
public class CRType : ConstantClass
{
/// <summary>
/// Constant EC2 for CRType
/// </summary>
public static readonly CRType EC2 = new CRType("EC2");
/// <summary>
/// Constant FARGATE for CRType
/// </summary>
public static readonly CRType FARGATE = new CRType("FARGATE");
/// <summary>
/// Constant FARGATE_SPOT for CRType
/// </summary>
public static readonly CRType FARGATE_SPOT = new CRType("FARGATE_SPOT");
/// <summary>
/// Constant SPOT for CRType
/// </summary>
public static readonly CRType SPOT = new CRType("SPOT");
/// <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 CRType(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 CRType FindValue(string value)
{
return FindValue<CRType>(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 CRType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type CRUpdateAllocationStrategy.
/// </summary>
public class CRUpdateAllocationStrategy : ConstantClass
{
/// <summary>
/// Constant BEST_FIT_PROGRESSIVE for CRUpdateAllocationStrategy
/// </summary>
public static readonly CRUpdateAllocationStrategy BEST_FIT_PROGRESSIVE = new CRUpdateAllocationStrategy("BEST_FIT_PROGRESSIVE");
/// <summary>
/// Constant SPOT_CAPACITY_OPTIMIZED for CRUpdateAllocationStrategy
/// </summary>
public static readonly CRUpdateAllocationStrategy SPOT_CAPACITY_OPTIMIZED = new CRUpdateAllocationStrategy("SPOT_CAPACITY_OPTIMIZED");
/// <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 CRUpdateAllocationStrategy(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 CRUpdateAllocationStrategy FindValue(string value)
{
return FindValue<CRUpdateAllocationStrategy>(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 CRUpdateAllocationStrategy(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type DeviceCgroupPermission.
/// </summary>
public class DeviceCgroupPermission : ConstantClass
{
/// <summary>
/// Constant MKNOD for DeviceCgroupPermission
/// </summary>
public static readonly DeviceCgroupPermission MKNOD = new DeviceCgroupPermission("MKNOD");
/// <summary>
/// Constant READ for DeviceCgroupPermission
/// </summary>
public static readonly DeviceCgroupPermission READ = new DeviceCgroupPermission("READ");
/// <summary>
/// Constant WRITE for DeviceCgroupPermission
/// </summary>
public static readonly DeviceCgroupPermission WRITE = new DeviceCgroupPermission("WRITE");
/// <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 DeviceCgroupPermission(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 DeviceCgroupPermission FindValue(string value)
{
return FindValue<DeviceCgroupPermission>(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 DeviceCgroupPermission(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type EFSAuthorizationConfigIAM.
/// </summary>
public class EFSAuthorizationConfigIAM : ConstantClass
{
/// <summary>
/// Constant DISABLED for EFSAuthorizationConfigIAM
/// </summary>
public static readonly EFSAuthorizationConfigIAM DISABLED = new EFSAuthorizationConfigIAM("DISABLED");
/// <summary>
/// Constant ENABLED for EFSAuthorizationConfigIAM
/// </summary>
public static readonly EFSAuthorizationConfigIAM ENABLED = new EFSAuthorizationConfigIAM("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 EFSAuthorizationConfigIAM(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 EFSAuthorizationConfigIAM FindValue(string value)
{
return FindValue<EFSAuthorizationConfigIAM>(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 EFSAuthorizationConfigIAM(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type EFSTransitEncryption.
/// </summary>
public class EFSTransitEncryption : ConstantClass
{
/// <summary>
/// Constant DISABLED for EFSTransitEncryption
/// </summary>
public static readonly EFSTransitEncryption DISABLED = new EFSTransitEncryption("DISABLED");
/// <summary>
/// Constant ENABLED for EFSTransitEncryption
/// </summary>
public static readonly EFSTransitEncryption ENABLED = new EFSTransitEncryption("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 EFSTransitEncryption(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 EFSTransitEncryption FindValue(string value)
{
return FindValue<EFSTransitEncryption>(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 EFSTransitEncryption(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type JobDefinitionType.
/// </summary>
public class JobDefinitionType : ConstantClass
{
/// <summary>
/// Constant Container for JobDefinitionType
/// </summary>
public static readonly JobDefinitionType Container = new JobDefinitionType("container");
/// <summary>
/// Constant Multinode for JobDefinitionType
/// </summary>
public static readonly JobDefinitionType Multinode = new JobDefinitionType("multinode");
/// <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 JobDefinitionType(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 JobDefinitionType FindValue(string value)
{
return FindValue<JobDefinitionType>(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 JobDefinitionType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type JobStatus.
/// </summary>
public class JobStatus : ConstantClass
{
/// <summary>
/// Constant FAILED for JobStatus
/// </summary>
public static readonly JobStatus FAILED = new JobStatus("FAILED");
/// <summary>
/// Constant PENDING for JobStatus
/// </summary>
public static readonly JobStatus PENDING = new JobStatus("PENDING");
/// <summary>
/// Constant RUNNABLE for JobStatus
/// </summary>
public static readonly JobStatus RUNNABLE = new JobStatus("RUNNABLE");
/// <summary>
/// Constant RUNNING for JobStatus
/// </summary>
public static readonly JobStatus RUNNING = new JobStatus("RUNNING");
/// <summary>
/// Constant STARTING for JobStatus
/// </summary>
public static readonly JobStatus STARTING = new JobStatus("STARTING");
/// <summary>
/// Constant SUBMITTED for JobStatus
/// </summary>
public static readonly JobStatus SUBMITTED = new JobStatus("SUBMITTED");
/// <summary>
/// Constant SUCCEEDED for JobStatus
/// </summary>
public static readonly JobStatus SUCCEEDED = new JobStatus("SUCCEEDED");
/// <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 JobStatus(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 JobStatus FindValue(string value)
{
return FindValue<JobStatus>(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 JobStatus(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type JQState.
/// </summary>
public class JQState : ConstantClass
{
/// <summary>
/// Constant DISABLED for JQState
/// </summary>
public static readonly JQState DISABLED = new JQState("DISABLED");
/// <summary>
/// Constant ENABLED for JQState
/// </summary>
public static readonly JQState ENABLED = new JQState("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 JQState(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 JQState FindValue(string value)
{
return FindValue<JQState>(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 JQState(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type JQStatus.
/// </summary>
public class JQStatus : ConstantClass
{
/// <summary>
/// Constant CREATING for JQStatus
/// </summary>
public static readonly JQStatus CREATING = new JQStatus("CREATING");
/// <summary>
/// Constant DELETED for JQStatus
/// </summary>
public static readonly JQStatus DELETED = new JQStatus("DELETED");
/// <summary>
/// Constant DELETING for JQStatus
/// </summary>
public static readonly JQStatus DELETING = new JQStatus("DELETING");
/// <summary>
/// Constant INVALID for JQStatus
/// </summary>
public static readonly JQStatus INVALID = new JQStatus("INVALID");
/// <summary>
/// Constant UPDATING for JQStatus
/// </summary>
public static readonly JQStatus UPDATING = new JQStatus("UPDATING");
/// <summary>
/// Constant VALID for JQStatus
/// </summary>
public static readonly JQStatus VALID = new JQStatus("VALID");
/// <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 JQStatus(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 JQStatus FindValue(string value)
{
return FindValue<JQStatus>(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 JQStatus(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type LogDriver.
/// </summary>
public class LogDriver : ConstantClass
{
/// <summary>
/// Constant Awslogs for LogDriver
/// </summary>
public static readonly LogDriver Awslogs = new LogDriver("awslogs");
/// <summary>
/// Constant Fluentd for LogDriver
/// </summary>
public static readonly LogDriver Fluentd = new LogDriver("fluentd");
/// <summary>
/// Constant Gelf for LogDriver
/// </summary>
public static readonly LogDriver Gelf = new LogDriver("gelf");
/// <summary>
/// Constant Journald for LogDriver
/// </summary>
public static readonly LogDriver Journald = new LogDriver("journald");
/// <summary>
/// Constant JsonFile for LogDriver
/// </summary>
public static readonly LogDriver JsonFile = new LogDriver("json-file");
/// <summary>
/// Constant Splunk for LogDriver
/// </summary>
public static readonly LogDriver Splunk = new LogDriver("splunk");
/// <summary>
/// Constant Syslog for LogDriver
/// </summary>
public static readonly LogDriver Syslog = new LogDriver("syslog");
/// <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 LogDriver(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 LogDriver FindValue(string value)
{
return FindValue<LogDriver>(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 LogDriver(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type OrchestrationType.
/// </summary>
public class OrchestrationType : ConstantClass
{
/// <summary>
/// Constant ECS for OrchestrationType
/// </summary>
public static readonly OrchestrationType ECS = new OrchestrationType("ECS");
/// <summary>
/// Constant EKS for OrchestrationType
/// </summary>
public static readonly OrchestrationType EKS = new OrchestrationType("EKS");
/// <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 OrchestrationType(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 OrchestrationType FindValue(string value)
{
return FindValue<OrchestrationType>(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 OrchestrationType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type PlatformCapability.
/// </summary>
public class PlatformCapability : ConstantClass
{
/// <summary>
/// Constant EC2 for PlatformCapability
/// </summary>
public static readonly PlatformCapability EC2 = new PlatformCapability("EC2");
/// <summary>
/// Constant FARGATE for PlatformCapability
/// </summary>
public static readonly PlatformCapability FARGATE = new PlatformCapability("FARGATE");
/// <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 PlatformCapability(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 PlatformCapability FindValue(string value)
{
return FindValue<PlatformCapability>(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 PlatformCapability(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ResourceType.
/// </summary>
public class ResourceType : ConstantClass
{
/// <summary>
/// Constant GPU for ResourceType
/// </summary>
public static readonly ResourceType GPU = new ResourceType("GPU");
/// <summary>
/// Constant MEMORY for ResourceType
/// </summary>
public static readonly ResourceType MEMORY = new ResourceType("MEMORY");
/// <summary>
/// Constant VCPU for ResourceType
/// </summary>
public static readonly ResourceType VCPU = new ResourceType("VCPU");
/// <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 ResourceType(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 ResourceType FindValue(string value)
{
return FindValue<ResourceType>(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 ResourceType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type RetryAction.
/// </summary>
public class RetryAction : ConstantClass
{
/// <summary>
/// Constant EXIT for RetryAction
/// </summary>
public static readonly RetryAction EXIT = new RetryAction("EXIT");
/// <summary>
/// Constant RETRY for RetryAction
/// </summary>
public static readonly RetryAction RETRY = new RetryAction("RETRY");
/// <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 RetryAction(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 RetryAction FindValue(string value)
{
return FindValue<RetryAction>(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 RetryAction(string value)
{
return FindValue(value);
}
}
}
| 1,118 |
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 batch-2016-08-10.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.Batch.Internal
{
/// <summary>
/// Amazon Batch endpoint provider.
/// Resolves endpoint for given set of BatchEndpointParameters.
/// Can throw AmazonClientException if endpoint resolution is unsuccessful.
/// </summary>
public class AmazonBatchEndpointProvider : IEndpointProvider
{
/// <summary>
/// Resolve endpoint for BatchEndpointParameters
/// </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://batch-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", GetAttr(refs["PartitionResult"], "name")))
{
return new Endpoint(Interpolate(@"https://fips.batch.{Region}.amazonaws.com", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
if (Equals("aws-us-gov", GetAttr(refs["PartitionResult"], "name")))
{
return new Endpoint(Interpolate(@"https://batch.{Region}.amazonaws.com", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
return new Endpoint(Interpolate(@"https://batch-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://batch.{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://batch.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
}
throw new AmazonClientException("Invalid Configuration: Missing Region");
throw new AmazonClientException("Cannot resolve endpoint");
}
}
}
| 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 batch-2016-08-10.normal.json service model.
*/
using System;
using Amazon.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Endpoints;
using Amazon.Util;
using Amazon.Batch.Endpoints;
#pragma warning disable 1591
namespace Amazon.Batch.Internal
{
/// <summary>
/// Amazon Batch endpoint resolver.
/// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for Batch service requests.
/// Collects values for BatchEndpointParameters and then tries to resolve endpoint by calling
/// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses BatchEndpointProvider.
/// Responsible for setting authentication and http headers provided by resolved endpoint.
/// </summary>
public class AmazonBatchEndpointResolver : BaseEndpointResolver
{
protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters)
{
InjectHostPrefix(executionContext.RequestContext);
}
protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext)
{
var config = (AmazonBatchConfig)requestContext.ClientConfig;
var result = new BatchEndpointParameters();
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 batch-2016-08-10.normal.json service model.
*/
using Amazon.Runtime.Internal;
namespace Amazon.Batch.Internal
{
/// <summary>
/// Service metadata for Amazon Batch service
/// </summary>
public partial class AmazonBatchMetadata : IServiceMetadata
{
/// <summary>
/// Gets the value of the Service Id.
/// </summary>
public string ServiceId
{
get
{
return "Batch";
}
}
/// <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 batch-2016-08-10.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.Batch
{
/// <summary>
/// Base class for Batch operation requests.
/// </summary>
public partial class AmazonBatchRequest : 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// An object that represents an Batch array job.
/// </summary>
public partial class ArrayProperties
{
private int? _size;
/// <summary>
/// Gets and sets the property Size.
/// <para>
/// The size of the array job.
/// </para>
/// </summary>
public int Size
{
get { return this._size.GetValueOrDefault(); }
set { this._size = value; }
}
// Check to see if Size property is set
internal bool IsSetSize()
{
return this._size.HasValue;
}
}
}
| 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// An object that represents the array properties of a job.
/// </summary>
public partial class ArrayPropertiesDetail
{
private int? _index;
private int? _size;
private Dictionary<string, int> _statusSummary = new Dictionary<string, int>();
/// <summary>
/// Gets and sets the property Index.
/// <para>
/// The job index within the array that's associated with this job. This parameter is
/// returned for array job children.
/// </para>
/// </summary>
public int Index
{
get { return this._index.GetValueOrDefault(); }
set { this._index = value; }
}
// Check to see if Index property is set
internal bool IsSetIndex()
{
return this._index.HasValue;
}
/// <summary>
/// Gets and sets the property Size.
/// <para>
/// The size of the array job. This parameter is returned for parent array jobs.
/// </para>
/// </summary>
public int Size
{
get { return this._size.GetValueOrDefault(); }
set { this._size = value; }
}
// Check to see if Size property is set
internal bool IsSetSize()
{
return this._size.HasValue;
}
/// <summary>
/// Gets and sets the property StatusSummary.
/// <para>
/// A summary of the number of array job children in each available job status. This parameter
/// is returned for parent array jobs.
/// </para>
/// </summary>
public Dictionary<string, int> StatusSummary
{
get { return this._statusSummary; }
set { this._statusSummary = value; }
}
// Check to see if StatusSummary property is set
internal bool IsSetStatusSummary()
{
return this._statusSummary != null && this._statusSummary.Count > 0;
}
}
}
| 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// An object that represents the array properties of a job.
/// </summary>
public partial class ArrayPropertiesSummary
{
private int? _index;
private int? _size;
/// <summary>
/// Gets and sets the property Index.
/// <para>
/// The job index within the array that's associated with this job. This parameter is
/// returned for children of array jobs.
/// </para>
/// </summary>
public int Index
{
get { return this._index.GetValueOrDefault(); }
set { this._index = value; }
}
// Check to see if Index property is set
internal bool IsSetIndex()
{
return this._index.HasValue;
}
/// <summary>
/// Gets and sets the property Size.
/// <para>
/// The size of the array job. This parameter is returned for parent array jobs.
/// </para>
/// </summary>
public int Size
{
get { return this._size.GetValueOrDefault(); }
set { this._size = value; }
}
// Check to see if Size property is set
internal bool IsSetSize()
{
return this._size.HasValue;
}
}
}
| 77 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// An object that represents the details of a container that's part of a job attempt.
/// </summary>
public partial class AttemptContainerDetail
{
private string _containerInstanceArn;
private int? _exitCode;
private string _logStreamName;
private List<NetworkInterface> _networkInterfaces = new List<NetworkInterface>();
private string _reason;
private string _taskArn;
/// <summary>
/// Gets and sets the property ContainerInstanceArn.
/// <para>
/// The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the
/// job attempt.
/// </para>
/// </summary>
public string ContainerInstanceArn
{
get { return this._containerInstanceArn; }
set { this._containerInstanceArn = value; }
}
// Check to see if ContainerInstanceArn property is set
internal bool IsSetContainerInstanceArn()
{
return this._containerInstanceArn != null;
}
/// <summary>
/// Gets and sets the property ExitCode.
/// <para>
/// The exit code for the job attempt. A non-zero exit code is considered failed.
/// </para>
/// </summary>
public int ExitCode
{
get { return this._exitCode.GetValueOrDefault(); }
set { this._exitCode = value; }
}
// Check to see if ExitCode property is set
internal bool IsSetExitCode()
{
return this._exitCode.HasValue;
}
/// <summary>
/// Gets and sets the property LogStreamName.
/// <para>
/// The name of the CloudWatch Logs log stream that's associated with the container. The
/// log group for Batch jobs is <code>/aws/batch/job</code>. Each container attempt receives
/// a log stream name when they reach the <code>RUNNING</code> status.
/// </para>
/// </summary>
public string LogStreamName
{
get { return this._logStreamName; }
set { this._logStreamName = value; }
}
// Check to see if LogStreamName property is set
internal bool IsSetLogStreamName()
{
return this._logStreamName != null;
}
/// <summary>
/// Gets and sets the property NetworkInterfaces.
/// <para>
/// The network interfaces that are associated with the job attempt.
/// </para>
/// </summary>
public List<NetworkInterface> NetworkInterfaces
{
get { return this._networkInterfaces; }
set { this._networkInterfaces = value; }
}
// Check to see if NetworkInterfaces property is set
internal bool IsSetNetworkInterfaces()
{
return this._networkInterfaces != null && this._networkInterfaces.Count > 0;
}
/// <summary>
/// Gets and sets the property Reason.
/// <para>
/// A short (255 max characters) human-readable string to provide additional details for
/// a running or stopped container.
/// </para>
/// </summary>
public string Reason
{
get { return this._reason; }
set { this._reason = value; }
}
// Check to see if Reason property is set
internal bool IsSetReason()
{
return this._reason != null;
}
/// <summary>
/// Gets and sets the property TaskArn.
/// <para>
/// The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the job
/// attempt. Each container attempt receives a task ARN when they reach the <code>STARTING</code>
/// status.
/// </para>
/// </summary>
public string TaskArn
{
get { return this._taskArn; }
set { this._taskArn = value; }
}
// Check to see if TaskArn property is set
internal bool IsSetTaskArn()
{
return this._taskArn != null;
}
}
}
| 158 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// An object that represents a job attempt.
/// </summary>
public partial class AttemptDetail
{
private AttemptContainerDetail _container;
private long? _startedAt;
private string _statusReason;
private long? _stoppedAt;
/// <summary>
/// Gets and sets the property Container.
/// <para>
/// The details for the container in this job attempt.
/// </para>
/// </summary>
public AttemptContainerDetail Container
{
get { return this._container; }
set { this._container = value; }
}
// Check to see if Container property is set
internal bool IsSetContainer()
{
return this._container != null;
}
/// <summary>
/// Gets and sets the property StartedAt.
/// <para>
/// The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt
/// transitioned from the <code>STARTING</code> state to the <code>RUNNING</code> state).
/// </para>
/// </summary>
public long StartedAt
{
get { return this._startedAt.GetValueOrDefault(); }
set { this._startedAt = value; }
}
// Check to see if StartedAt property is set
internal bool IsSetStartedAt()
{
return this._startedAt.HasValue;
}
/// <summary>
/// Gets and sets the property StatusReason.
/// <para>
/// A short, human-readable string to provide additional details for the current status
/// of the job attempt.
/// </para>
/// </summary>
public string StatusReason
{
get { return this._statusReason; }
set { this._statusReason = value; }
}
// Check to see if StatusReason property is set
internal bool IsSetStatusReason()
{
return this._statusReason != null;
}
/// <summary>
/// Gets and sets the property StoppedAt.
/// <para>
/// The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt
/// transitioned from the <code>RUNNING</code> state to a terminal state, such as <code>SUCCEEDED</code>
/// or <code>FAILED</code>).
/// </para>
/// </summary>
public long StoppedAt
{
get { return this._stoppedAt.GetValueOrDefault(); }
set { this._stoppedAt = value; }
}
// Check to see if StoppedAt property is set
internal bool IsSetStoppedAt()
{
return this._stoppedAt.HasValue;
}
}
}
| 118 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// Container for the parameters to the CancelJob operation.
/// Cancels a job in an Batch job queue. Jobs that are in the <code>SUBMITTED</code> or
/// <code>PENDING</code> are canceled. A job in<code>RUNNABLE</code> remains in <code>RUNNABLE</code>
/// until it reaches the head of the job queue. Then the job status is updated to <code>FAILED</code>.
///
///
/// <para>
/// Jobs that progressed to the <code>STARTING</code> or <code>RUNNING</code> state aren't
/// canceled. However, the API operation still succeeds, even if no job is canceled. These
/// jobs must be terminated with the <a>TerminateJob</a> operation.
/// </para>
/// </summary>
public partial class CancelJobRequest : AmazonBatchRequest
{
private string _jobId;
private string _reason;
/// <summary>
/// Gets and sets the property JobId.
/// <para>
/// The Batch job ID of the job to cancel.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string JobId
{
get { return this._jobId; }
set { this._jobId = value; }
}
// Check to see if JobId property is set
internal bool IsSetJobId()
{
return this._jobId != null;
}
/// <summary>
/// Gets and sets the property Reason.
/// <para>
/// A message to attach to the job that explains the reason for canceling it. This message
/// is returned by future <a>DescribeJobs</a> operations on the job. This message is also
/// recorded in the Batch activity logs.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Reason
{
get { return this._reason; }
set { this._reason = value; }
}
// Check to see if Reason property is set
internal bool IsSetReason()
{
return this._reason != null;
}
}
}
| 90 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// This is the response object from the CancelJob operation.
/// </summary>
public partial class CancelJobResponse : 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// These errors are usually caused by a client action. One example cause is using an
/// action or resource on behalf of a user that doesn't have permissions to use the action
/// or resource. Another cause is specifying an identifier that's not valid.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ClientException : AmazonBatchException
{
/// <summary>
/// Constructs a new ClientException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ClientException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ClientException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ClientException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ClientException
/// </summary>
/// <param name="innerException"></param>
public ClientException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ClientException
/// </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 ClientException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ClientException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ClientException(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 ClientException 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 ClientException(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
}
}
| 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// An object that represents an Batch compute environment.
/// </summary>
public partial class ComputeEnvironmentDetail
{
private string _computeEnvironmentArn;
private string _computeEnvironmentName;
private ComputeResource _computeResources;
private OrchestrationType _containerOrchestrationType;
private string _ecsClusterArn;
private EksConfiguration _eksConfiguration;
private string _serviceRole;
private CEState _state;
private CEStatus _status;
private string _statusReason;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
private CEType _type;
private int? _unmanagedvCpus;
private UpdatePolicy _updatePolicy;
private string _uuid;
/// <summary>
/// Gets and sets the property ComputeEnvironmentArn.
/// <para>
/// The Amazon Resource Name (ARN) of the compute environment.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ComputeEnvironmentArn
{
get { return this._computeEnvironmentArn; }
set { this._computeEnvironmentArn = value; }
}
// Check to see if ComputeEnvironmentArn property is set
internal bool IsSetComputeEnvironmentArn()
{
return this._computeEnvironmentArn != null;
}
/// <summary>
/// Gets and sets the property ComputeEnvironmentName.
/// <para>
/// The name of the compute environment. It can be up to 128 characters long. It can contain
/// uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ComputeEnvironmentName
{
get { return this._computeEnvironmentName; }
set { this._computeEnvironmentName = value; }
}
// Check to see if ComputeEnvironmentName property is set
internal bool IsSetComputeEnvironmentName()
{
return this._computeEnvironmentName != null;
}
/// <summary>
/// Gets and sets the property ComputeResources.
/// <para>
/// The compute resources defined for the compute environment. For more information, see
/// <a href="https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html">Compute
/// environments</a> in the <i>Batch User Guide</i>.
/// </para>
/// </summary>
public ComputeResource ComputeResources
{
get { return this._computeResources; }
set { this._computeResources = value; }
}
// Check to see if ComputeResources property is set
internal bool IsSetComputeResources()
{
return this._computeResources != null;
}
/// <summary>
/// Gets and sets the property ContainerOrchestrationType.
/// <para>
/// The orchestration type of the compute environment. The valid values are <code>ECS</code>
/// (default) or <code>EKS</code>.
/// </para>
/// </summary>
public OrchestrationType ContainerOrchestrationType
{
get { return this._containerOrchestrationType; }
set { this._containerOrchestrationType = value; }
}
// Check to see if ContainerOrchestrationType property is set
internal bool IsSetContainerOrchestrationType()
{
return this._containerOrchestrationType != null;
}
/// <summary>
/// Gets and sets the property EcsClusterArn.
/// <para>
/// The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster that the compute
/// environment uses.
/// </para>
/// </summary>
public string EcsClusterArn
{
get { return this._ecsClusterArn; }
set { this._ecsClusterArn = value; }
}
// Check to see if EcsClusterArn property is set
internal bool IsSetEcsClusterArn()
{
return this._ecsClusterArn != null;
}
/// <summary>
/// Gets and sets the property EksConfiguration.
/// <para>
/// The configuration for the Amazon EKS cluster that supports the Batch compute environment.
/// Only specify this parameter if the <code>containerOrchestrationType</code> is <code>EKS</code>.
/// </para>
/// </summary>
public EksConfiguration EksConfiguration
{
get { return this._eksConfiguration; }
set { this._eksConfiguration = value; }
}
// Check to see if EksConfiguration property is set
internal bool IsSetEksConfiguration()
{
return this._eksConfiguration != null;
}
/// <summary>
/// Gets and sets the property ServiceRole.
/// <para>
/// The service role that's associated with the compute environment that allows Batch
/// to make calls to Amazon Web Services API operations on your behalf. For more information,
/// see <a href="https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html">Batch
/// service IAM role</a> in the <i>Batch User Guide</i>.
/// </para>
/// </summary>
public string ServiceRole
{
get { return this._serviceRole; }
set { this._serviceRole = value; }
}
// Check to see if ServiceRole property is set
internal bool IsSetServiceRole()
{
return this._serviceRole != null;
}
/// <summary>
/// Gets and sets the property State.
/// <para>
/// The state of the compute environment. The valid values are <code>ENABLED</code> or
/// <code>DISABLED</code>.
/// </para>
///
/// <para>
/// If the state is <code>ENABLED</code>, then the Batch scheduler can attempt to place
/// jobs from an associated job queue on the compute resources within the environment.
/// If the compute environment is managed, then it can scale its instances out or in automatically
/// based on the job queue demand.
/// </para>
///
/// <para>
/// If the state is <code>DISABLED</code>, then the Batch scheduler doesn't attempt to
/// place jobs within the environment. Jobs in a <code>STARTING</code> or <code>RUNNING</code>
/// state continue to progress normally. Managed compute environments in the <code>DISABLED</code>
/// state don't scale out.
/// </para>
/// <note>
/// <para>
/// Compute environments in a <code>DISABLED</code> state may continue to incur billing
/// charges. To prevent additional charges, turn off and then delete the compute environment.
/// For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/compute_environment_parameters.html#compute_environment_state">State</a>
/// in the <i>Batch User Guide</i>.
/// </para>
/// </note>
/// <para>
/// When an instance is idle, the instance scales down to the <code>minvCpus</code> value.
/// However, the instance size doesn't change. For example, consider a <code>c5.8xlarge</code>
/// instance with a <code>minvCpus</code> value of <code>4</code> and a <code>desiredvCpus</code>
/// value of <code>36</code>. This instance doesn't scale down to a <code>c5.large</code>
/// instance.
/// </para>
/// </summary>
public CEState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// The current status of the compute environment (for example, <code>CREATING</code>
/// or <code>VALID</code>).
/// </para>
/// </summary>
public CEStatus 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 StatusReason.
/// <para>
/// A short, human-readable string to provide additional details for the current status
/// of the compute environment.
/// </para>
/// </summary>
public string StatusReason
{
get { return this._statusReason; }
set { this._statusReason = value; }
}
// Check to see if StatusReason property is set
internal bool IsSetStatusReason()
{
return this._statusReason != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The tags applied to the compute environment.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// The type of the compute environment: <code>MANAGED</code> or <code>UNMANAGED</code>.
/// For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html">Compute
/// environments</a> in the <i>Batch User Guide</i>.
/// </para>
/// </summary>
public CEType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
/// <summary>
/// Gets and sets the property UnmanagedvCpus.
/// <para>
/// The maximum number of VCPUs expected to be used for an unmanaged compute environment.
/// </para>
/// </summary>
public int UnmanagedvCpus
{
get { return this._unmanagedvCpus.GetValueOrDefault(); }
set { this._unmanagedvCpus = value; }
}
// Check to see if UnmanagedvCpus property is set
internal bool IsSetUnmanagedvCpus()
{
return this._unmanagedvCpus.HasValue;
}
/// <summary>
/// Gets and sets the property UpdatePolicy.
/// <para>
/// Specifies the infrastructure update policy for the compute environment. For more information
/// about infrastructure updates, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
/// compute environments</a> in the <i>Batch User Guide</i>.
/// </para>
/// </summary>
public UpdatePolicy UpdatePolicy
{
get { return this._updatePolicy; }
set { this._updatePolicy = value; }
}
// Check to see if UpdatePolicy property is set
internal bool IsSetUpdatePolicy()
{
return this._updatePolicy != null;
}
/// <summary>
/// Gets and sets the property Uuid.
/// <para>
/// Unique identifier for the compute environment.
/// </para>
/// </summary>
public string Uuid
{
get { return this._uuid; }
set { this._uuid = value; }
}
// Check to see if Uuid property is set
internal bool IsSetUuid()
{
return this._uuid != null;
}
}
}
| 371 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// The order that compute environments are tried in for job placement within a queue.
/// Compute environments are tried in ascending order. For example, if two compute environments
/// are associated with a job queue, the compute environment with a lower order integer
/// value is tried for job placement first. Compute environments must be in the <code>VALID</code>
/// state before you can associate them with a job queue. All of the compute environments
/// must be either EC2 (<code>EC2</code> or <code>SPOT</code>) or Fargate (<code>FARGATE</code>
/// or <code>FARGATE_SPOT</code>); EC2 and Fargate compute environments can't be mixed.
///
/// <note>
/// <para>
/// All compute environments that are associated with a job queue must share the same
/// architecture. Batch doesn't support mixing compute environment architecture types
/// in a single job queue.
/// </para>
/// </note>
/// </summary>
public partial class ComputeEnvironmentOrder
{
private string _computeEnvironment;
private int? _order;
/// <summary>
/// Gets and sets the property ComputeEnvironment.
/// <para>
/// The Amazon Resource Name (ARN) of the compute environment.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ComputeEnvironment
{
get { return this._computeEnvironment; }
set { this._computeEnvironment = value; }
}
// Check to see if ComputeEnvironment property is set
internal bool IsSetComputeEnvironment()
{
return this._computeEnvironment != null;
}
/// <summary>
/// Gets and sets the property Order.
/// <para>
/// The order of the compute environment. Compute environments are tried in ascending
/// order. For example, if two compute environments are associated with a job queue, the
/// compute environment with a lower <code>order</code> integer value is tried for job
/// placement first.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public int Order
{
get { return this._order.GetValueOrDefault(); }
set { this._order = value; }
}
// Check to see if Order property is set
internal bool IsSetOrder()
{
return this._order.HasValue;
}
}
}
| 95 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// An object that represents an Batch compute resource. For more information, see <a
/// href="https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html">Compute
/// environments</a> in the <i>Batch User Guide</i>.
/// </summary>
public partial class ComputeResource
{
private CRAllocationStrategy _allocationStrategy;
private int? _bidPercentage;
private int? _desiredvCpus;
private List<Ec2Configuration> _ec2Configuration = new List<Ec2Configuration>();
private string _ec2KeyPair;
private string _imageId;
private string _instanceRole;
private List<string> _instanceTypes = new List<string>();
private LaunchTemplateSpecification _launchTemplate;
private int? _maxvCpus;
private int? _minvCpus;
private string _placementGroup;
private List<string> _securityGroupIds = new List<string>();
private string _spotIamFleetRole;
private List<string> _subnets = new List<string>();
private Dictionary<string, string> _tags = new Dictionary<string, string>();
private CRType _type;
/// <summary>
/// Gets and sets the property AllocationStrategy.
/// <para>
/// The allocation strategy to use for the compute resource if not enough instances of
/// the best fitting instance type can be allocated. This might be because of availability
/// of the instance type in the Region or <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html">Amazon
/// EC2 service limits</a>. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/allocation-strategies.html">Allocation
/// strategies</a> in the <i>Batch User Guide</i>.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note> <dl> <dt>BEST_FIT (default)</dt> <dd>
/// <para>
/// Batch selects an instance type that best fits the needs of the jobs with a preference
/// for the lowest-cost instance type. If additional instances of the selected instance
/// type aren't available, Batch waits for the additional instances to be available. If
/// there aren't enough instances available or the user is reaching <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html">Amazon
/// EC2 service limits</a>, additional jobs aren't run until the currently running jobs
/// are completed. This allocation strategy keeps costs lower but can limit scaling. If
/// you're using Spot Fleets with <code>BEST_FIT</code>, the Spot Fleet IAM Role must
/// be specified. Compute resources that use a <code>BEST_FIT</code> allocation strategy
/// don't support infrastructure updates and can't update some parameters. For more information,
/// see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
/// compute environments</a> in the <i>Batch User Guide</i>.
/// </para>
/// </dd> <dt>BEST_FIT_PROGRESSIVE</dt> <dd>
/// <para>
/// Batch selects additional instance types that are large enough to meet the requirements
/// of the jobs in the queue. Its preference is for instance types with lower cost vCPUs.
/// If additional instances of the previously selected instance types aren't available,
/// Batch selects new instance types.
/// </para>
/// </dd> <dt>SPOT_CAPACITY_OPTIMIZED</dt> <dd>
/// <para>
/// Batch selects one or more instance types that are large enough to meet the requirements
/// of the jobs in the queue. Its preference is for instance types that are less likely
/// to be interrupted. This allocation strategy is only available for Spot Instance compute
/// resources.
/// </para>
/// </dd> </dl>
/// <para>
/// With both <code>BEST_FIT_PROGRESSIVE</code> and <code>SPOT_CAPACITY_OPTIMIZED</code>
/// strategies using On-Demand or Spot Instances, and the <code>BEST_FIT</code> strategy
/// using Spot Instances, Batch might need to exceed <code>maxvCpus</code> to meet your
/// capacity requirements. In this event, Batch never exceeds <code>maxvCpus</code> by
/// more than a single instance.
/// </para>
/// </summary>
public CRAllocationStrategy AllocationStrategy
{
get { return this._allocationStrategy; }
set { this._allocationStrategy = value; }
}
// Check to see if AllocationStrategy property is set
internal bool IsSetAllocationStrategy()
{
return this._allocationStrategy != null;
}
/// <summary>
/// Gets and sets the property BidPercentage.
/// <para>
/// The maximum percentage that a Spot Instance price can be when compared with the On-Demand
/// price for that instance type before instances are launched. For example, if your maximum
/// percentage is 20%, then the Spot price must be less than 20% of the current On-Demand
/// price for that Amazon EC2 instance. You always pay the lowest (market) price and never
/// more than your maximum percentage. If you leave this field empty, the default value
/// is 100% of the On-Demand price. For most use cases, we recommend leaving this field
/// empty.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note>
/// </summary>
public int BidPercentage
{
get { return this._bidPercentage.GetValueOrDefault(); }
set { this._bidPercentage = value; }
}
// Check to see if BidPercentage property is set
internal bool IsSetBidPercentage()
{
return this._bidPercentage.HasValue;
}
/// <summary>
/// Gets and sets the property DesiredvCpus.
/// <para>
/// The desired number of Amazon EC2 vCPUS in the compute environment. Batch modifies
/// this value between the minimum and maximum values based on job queue demand.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note>
/// </summary>
public int DesiredvCpus
{
get { return this._desiredvCpus.GetValueOrDefault(); }
set { this._desiredvCpus = value; }
}
// Check to see if DesiredvCpus property is set
internal bool IsSetDesiredvCpus()
{
return this._desiredvCpus.HasValue;
}
/// <summary>
/// Gets and sets the property Ec2Configuration.
/// <para>
/// Provides information that's used to select Amazon Machine Images (AMIs) for EC2 instances
/// in the compute environment. If <code>Ec2Configuration</code> isn't specified, the
/// default is <code>ECS_AL2</code>.
/// </para>
///
/// <para>
/// One or two values can be provided.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note>
/// </summary>
public List<Ec2Configuration> Ec2Configuration
{
get { return this._ec2Configuration; }
set { this._ec2Configuration = value; }
}
// Check to see if Ec2Configuration property is set
internal bool IsSetEc2Configuration()
{
return this._ec2Configuration != null && this._ec2Configuration.Count > 0;
}
/// <summary>
/// Gets and sets the property Ec2KeyPair.
/// <para>
/// The Amazon EC2 key pair that's used for instances launched in the compute environment.
/// You can use this key pair to log in to your instances with SSH.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note>
/// </summary>
public string Ec2KeyPair
{
get { return this._ec2KeyPair; }
set { this._ec2KeyPair = value; }
}
// Check to see if Ec2KeyPair property is set
internal bool IsSetEc2KeyPair()
{
return this._ec2KeyPair != null;
}
/// <summary>
/// Gets and sets the property ImageId.
/// <para>
/// The Amazon Machine Image (AMI) ID used for instances launched in the compute environment.
/// This parameter is overridden by the <code>imageIdOverride</code> member of the <code>Ec2Configuration</code>
/// structure.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note> <note>
/// <para>
/// The AMI that you choose for a compute environment must match the architecture of the
/// instance types that you intend to use for that compute environment. For example, if
/// your compute environment uses A1 instance types, the compute resource AMI that you
/// choose must support ARM instances. Amazon ECS vends both x86 and ARM versions of the
/// Amazon ECS-optimized Amazon Linux 2 AMI. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#ecs-optimized-ami-linux-variants.html">Amazon
/// ECS-optimized Amazon Linux 2 AMI</a> in the <i>Amazon Elastic Container Service Developer
/// Guide</i>.
/// </para>
/// </note>
/// </summary>
[Obsolete("This field is deprecated, use ec2Configuration[].imageIdOverride instead.")]
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 InstanceRole.
/// <para>
/// The Amazon ECS instance profile applied to Amazon EC2 instances in a compute environment.
/// You can specify the short name or full Amazon Resource Name (ARN) of an instance profile.
/// For example, <code> <i>ecsInstanceRole</i> </code> or <code>arn:aws:iam::<i><aws_account_id></i>:instance-profile/<i>ecsInstanceRole</i>
/// </code>. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/instance_IAM_role.html">Amazon
/// ECS instance role</a> in the <i>Batch User Guide</i>.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note>
/// </summary>
public string InstanceRole
{
get { return this._instanceRole; }
set { this._instanceRole = value; }
}
// Check to see if InstanceRole property is set
internal bool IsSetInstanceRole()
{
return this._instanceRole != null;
}
/// <summary>
/// Gets and sets the property InstanceTypes.
/// <para>
/// The instances types that can be launched. You can specify instance families to launch
/// any instance type within those families (for example, <code>c5</code> or <code>p3</code>),
/// or you can specify specific sizes within a family (such as <code>c5.8xlarge</code>).
/// You can also choose <code>optimal</code> to select instance types (from the C4, M4,
/// and R4 instance families) that match the demand of your job queues.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note> <note>
/// <para>
/// When you create a compute environment, the instance types that you select for the
/// compute environment must share the same architecture. For example, you can't mix x86
/// and ARM instances in the same compute environment.
/// </para>
/// </note> <note>
/// <para>
/// Currently, <code>optimal</code> uses instance types from the C4, M4, and R4 instance
/// families. In Regions that don't have instance types from those instance families,
/// instance types from the C5, M5, and R5 instance families are used.
/// </para>
/// </note>
/// </summary>
public List<string> InstanceTypes
{
get { return this._instanceTypes; }
set { this._instanceTypes = value; }
}
// Check to see if InstanceTypes property is set
internal bool IsSetInstanceTypes()
{
return this._instanceTypes != null && this._instanceTypes.Count > 0;
}
/// <summary>
/// Gets and sets the property LaunchTemplate.
/// <para>
/// The launch template to use for your compute resources. Any other compute resource
/// parameters that you specify in a <a>CreateComputeEnvironment</a> API operation override
/// the same parameters in the launch template. You must specify either the launch template
/// ID or launch template name in the request, but not both. For more information, see
/// <a href="https://docs.aws.amazon.com/batch/latest/userguide/launch-templates.html">Launch
/// template support</a> in the <i>Batch User Guide</i>.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </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 MaxvCpus.
/// <para>
/// The maximum number of Amazon EC2 vCPUs that a compute environment can reach.
/// </para>
/// <note>
/// <para>
/// With both <code>BEST_FIT_PROGRESSIVE</code> and <code>SPOT_CAPACITY_OPTIMIZED</code>
/// allocation strategies using On-Demand or Spot Instances, and the <code>BEST_FIT</code>
/// strategy using Spot Instances, Batch might need to exceed <code>maxvCpus</code> to
/// meet your capacity requirements. In this event, Batch never exceeds <code>maxvCpus</code>
/// by more than a single instance. For example, no more than a single instance from among
/// those specified in your compute environment is allocated.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Required=true)]
public int MaxvCpus
{
get { return this._maxvCpus.GetValueOrDefault(); }
set { this._maxvCpus = value; }
}
// Check to see if MaxvCpus property is set
internal bool IsSetMaxvCpus()
{
return this._maxvCpus.HasValue;
}
/// <summary>
/// Gets and sets the property MinvCpus.
/// <para>
/// The minimum number of Amazon EC2 vCPUs that an environment should maintain (even if
/// the compute environment is <code>DISABLED</code>).
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note>
/// </summary>
public int MinvCpus
{
get { return this._minvCpus.GetValueOrDefault(); }
set { this._minvCpus = value; }
}
// Check to see if MinvCpus property is set
internal bool IsSetMinvCpus()
{
return this._minvCpus.HasValue;
}
/// <summary>
/// Gets and sets the property PlacementGroup.
/// <para>
/// The Amazon EC2 placement group to associate with your compute resources. If you intend
/// to submit multi-node parallel jobs to your compute environment, you should consider
/// creating a cluster placement group and associate it with your compute resources. This
/// keeps your multi-node parallel job on a logical grouping of instances within a single
/// Availability Zone with high network flow potential. 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>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note>
/// </summary>
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 SecurityGroupIds.
/// <para>
/// The Amazon EC2 security groups that are associated with instances launched in the
/// compute environment. One or more security groups must be specified, either in <code>securityGroupIds</code>
/// or using a launch template referenced in <code>launchTemplate</code>. This parameter
/// is required for jobs that are running on Fargate resources and must contain at least
/// one security group. Fargate doesn't support launch templates. If security groups are
/// specified using both <code>securityGroupIds</code> and <code>launchTemplate</code>,
/// the values in <code>securityGroupIds</code> are used.
/// </para>
/// </summary>
public List<string> SecurityGroupIds
{
get { return this._securityGroupIds; }
set { this._securityGroupIds = value; }
}
// Check to see if SecurityGroupIds property is set
internal bool IsSetSecurityGroupIds()
{
return this._securityGroupIds != null && this._securityGroupIds.Count > 0;
}
/// <summary>
/// Gets and sets the property SpotIamFleetRole.
/// <para>
/// The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied to a
/// <code>SPOT</code> compute environment. This role is required if the allocation strategy
/// set to <code>BEST_FIT</code> or if the allocation strategy isn't specified. For more
/// information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/spot_fleet_IAM_role.html">Amazon
/// EC2 spot fleet role</a> in the <i>Batch User Guide</i>.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note> <important>
/// <para>
/// To tag your Spot Instances on creation, the Spot Fleet IAM role specified here must
/// use the newer <b>AmazonEC2SpotFleetTaggingRole</b> managed policy. The previously
/// recommended <b>AmazonEC2SpotFleetRole</b> managed policy doesn't have the required
/// permissions to tag Spot Instances. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#spot-instance-no-tag">Spot
/// instances not tagged on creation</a> in the <i>Batch User Guide</i>.
/// </para>
/// </important>
/// </summary>
public string SpotIamFleetRole
{
get { return this._spotIamFleetRole; }
set { this._spotIamFleetRole = value; }
}
// Check to see if SpotIamFleetRole property is set
internal bool IsSetSpotIamFleetRole()
{
return this._spotIamFleetRole != null;
}
/// <summary>
/// Gets and sets the property Subnets.
/// <para>
/// The VPC subnets where the compute resources are launched. These subnets must be within
/// the same VPC. Fargate compute resources can contain up to 16 subnets. For more information,
/// see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html">VPCs
/// and subnets</a> in the <i>Amazon VPC User Guide</i>.
/// </para>
/// <note>
/// <para>
/// Batch on Amazon EC2 and Batch on Amazon EKS support Local Zones. For more information,
/// see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-local-zones">
/// Local Zones</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>, <a href="https://docs.aws.amazon.com/eks/latest/userguide/local-zones.html">Amazon
/// EKS and Amazon Web Services Local Zones</a> in the <i>Amazon EKS User Guide</i> and
/// <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-regions-zones.html#clusters-local-zones">
/// Amazon ECS clusters in Local Zones, Wavelength Zones, and Amazon Web Services Outposts</a>
/// in the <i>Amazon ECS Developer Guide</i>.
/// </para>
///
/// <para>
/// Batch on Fargate doesn't currently support Local Zones.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Required=true)]
public List<string> Subnets
{
get { return this._subnets; }
set { this._subnets = value; }
}
// Check to see if Subnets property is set
internal bool IsSetSubnets()
{
return this._subnets != null && this._subnets.Count > 0;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// Key-value pair tags to be applied to EC2 resources that are launched in the compute
/// environment. For Batch, these take the form of <code>"String1": "String2"</code>,
/// where <code>String1</code> is the tag key and <code>String2</code> is the tag value-for
/// example, <code>{ "Name": "Batch Instance - C4OnDemand" }</code>. This is helpful for
/// recognizing your Batch instances in the Amazon EC2 console. Updating these tags requires
/// an infrastructure update to the compute environment. For more information, see <a
/// href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
/// compute environments</a> in the <i>Batch User Guide</i>. These tags aren't seen when
/// using the Batch <code>ListTagsForResource</code> API operation.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note>
/// </summary>
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// The type of compute environment: <code>EC2</code>, <code>SPOT</code>, <code>FARGATE</code>,
/// or <code>FARGATE_SPOT</code>. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html">Compute
/// environments</a> in the <i>Batch User Guide</i>.
/// </para>
///
/// <para>
/// If you choose <code>SPOT</code>, you must also specify an Amazon EC2 Spot Fleet role
/// with the <code>spotIamFleetRole</code> parameter. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/spot_fleet_IAM_role.html">Amazon
/// EC2 spot fleet role</a> in the <i>Batch User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public CRType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}
| 603 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// An object that represents the attributes of a compute environment that can be updated.
/// For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
/// compute environments</a> in the <i>Batch User Guide</i>.
/// </summary>
public partial class ComputeResourceUpdate
{
private CRUpdateAllocationStrategy _allocationStrategy;
private int? _bidPercentage;
private int? _desiredvCpus;
private List<Ec2Configuration> _ec2Configuration = new List<Ec2Configuration>();
private string _ec2KeyPair;
private string _imageId;
private string _instanceRole;
private List<string> _instanceTypes = new List<string>();
private LaunchTemplateSpecification _launchTemplate;
private int? _maxvCpus;
private int? _minvCpus;
private string _placementGroup;
private List<string> _securityGroupIds = new List<string>();
private List<string> _subnets = new List<string>();
private Dictionary<string, string> _tags = new Dictionary<string, string>();
private CRType _type;
private bool? _updateToLatestImageVersion;
/// <summary>
/// Gets and sets the property AllocationStrategy.
/// <para>
/// The allocation strategy to use for the compute resource if there's not enough instances
/// of the best fitting instance type that can be allocated. This might be because of
/// availability of the instance type in the Region or <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html">Amazon
/// EC2 service limits</a>. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/allocation-strategies.html">Allocation
/// strategies</a> in the <i>Batch User Guide</i>.
/// </para>
///
/// <para>
/// When updating a compute environment, changing the allocation strategy requires an
/// infrastructure update of the compute environment. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
/// compute environments</a> in the <i>Batch User Guide</i>. <code>BEST_FIT</code> isn't
/// supported when updating a compute environment.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note> <dl> <dt>BEST_FIT_PROGRESSIVE</dt> <dd>
/// <para>
/// Batch selects additional instance types that are large enough to meet the requirements
/// of the jobs in the queue. Its preference is for instance types with lower cost vCPUs.
/// If additional instances of the previously selected instance types aren't available,
/// Batch selects new instance types.
/// </para>
/// </dd> <dt>SPOT_CAPACITY_OPTIMIZED</dt> <dd>
/// <para>
/// Batch selects one or more instance types that are large enough to meet the requirements
/// of the jobs in the queue. Its preference is for instance types that are less likely
/// to be interrupted. This allocation strategy is only available for Spot Instance compute
/// resources.
/// </para>
/// </dd> </dl>
/// <para>
/// With both <code>BEST_FIT_PROGRESSIVE</code> and <code>SPOT_CAPACITY_OPTIMIZED</code>
/// strategies using On-Demand or Spot Instances, and the <code>BEST_FIT</code> strategy
/// using Spot Instances, Batch might need to exceed <code>maxvCpus</code> to meet your
/// capacity requirements. In this event, Batch never exceeds <code>maxvCpus</code> by
/// more than a single instance.
/// </para>
/// </summary>
public CRUpdateAllocationStrategy AllocationStrategy
{
get { return this._allocationStrategy; }
set { this._allocationStrategy = value; }
}
// Check to see if AllocationStrategy property is set
internal bool IsSetAllocationStrategy()
{
return this._allocationStrategy != null;
}
/// <summary>
/// Gets and sets the property BidPercentage.
/// <para>
/// The maximum percentage that a Spot Instance price can be when compared with the On-Demand
/// price for that instance type before instances are launched. For example, if your maximum
/// percentage is 20%, the Spot price must be less than 20% of the current On-Demand price
/// for that Amazon EC2 instance. You always pay the lowest (market) price and never more
/// than your maximum percentage. For most use cases, we recommend leaving this field
/// empty.
/// </para>
///
/// <para>
/// When updating a compute environment, changing the bid percentage requires an infrastructure
/// update of the compute environment. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
/// compute environments</a> in the <i>Batch User Guide</i>.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note>
/// </summary>
public int BidPercentage
{
get { return this._bidPercentage.GetValueOrDefault(); }
set { this._bidPercentage = value; }
}
// Check to see if BidPercentage property is set
internal bool IsSetBidPercentage()
{
return this._bidPercentage.HasValue;
}
/// <summary>
/// Gets and sets the property DesiredvCpus.
/// <para>
/// The desired number of Amazon EC2 vCPUS in the compute environment. Batch modifies
/// this value between the minimum and maximum values based on job queue demand.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note> <note>
/// <para>
/// Batch doesn't support changing the desired number of vCPUs of an existing compute
/// environment. Don't specify this parameter for compute environments using Amazon EKS
/// clusters.
/// </para>
/// </note> <note>
/// <para>
/// When you update the <code>desiredvCpus</code> setting, the value must be between the
/// <code>minvCpus</code> and <code>maxvCpus</code> values.
/// </para>
///
/// <para>
/// Additionally, the updated <code>desiredvCpus</code> value must be greater than or
/// equal to the current <code>desiredvCpus</code> value. For more information, see <a
/// href="https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#error-desired-vcpus-update">Troubleshooting
/// Batch</a> in the <i>Batch User Guide</i>.
/// </para>
/// </note>
/// </summary>
public int DesiredvCpus
{
get { return this._desiredvCpus.GetValueOrDefault(); }
set { this._desiredvCpus = value; }
}
// Check to see if DesiredvCpus property is set
internal bool IsSetDesiredvCpus()
{
return this._desiredvCpus.HasValue;
}
/// <summary>
/// Gets and sets the property Ec2Configuration.
/// <para>
/// Provides information used to select Amazon Machine Images (AMIs) for EC2 instances
/// in the compute environment. If <code>Ec2Configuration</code> isn't specified, the
/// default is <code>ECS_AL2</code>.
/// </para>
///
/// <para>
/// When updating a compute environment, changing this setting requires an infrastructure
/// update of the compute environment. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
/// compute environments</a> in the <i>Batch User Guide</i>. To remove the EC2 configuration
/// and any custom AMI ID specified in <code>imageIdOverride</code>, set this value to
/// an empty string.
/// </para>
///
/// <para>
/// One or two values can be provided.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note>
/// </summary>
public List<Ec2Configuration> Ec2Configuration
{
get { return this._ec2Configuration; }
set { this._ec2Configuration = value; }
}
// Check to see if Ec2Configuration property is set
internal bool IsSetEc2Configuration()
{
return this._ec2Configuration != null && this._ec2Configuration.Count > 0;
}
/// <summary>
/// Gets and sets the property Ec2KeyPair.
/// <para>
/// The Amazon EC2 key pair that's used for instances launched in the compute environment.
/// You can use this key pair to log in to your instances with SSH. To remove the Amazon
/// EC2 key pair, set this value to an empty string.
/// </para>
///
/// <para>
/// When updating a compute environment, changing the EC2 key pair requires an infrastructure
/// update of the compute environment. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
/// compute environments</a> in the <i>Batch User Guide</i>.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note>
/// </summary>
public string Ec2KeyPair
{
get { return this._ec2KeyPair; }
set { this._ec2KeyPair = value; }
}
// Check to see if Ec2KeyPair property is set
internal bool IsSetEc2KeyPair()
{
return this._ec2KeyPair != null;
}
/// <summary>
/// Gets and sets the property ImageId.
/// <para>
/// The Amazon Machine Image (AMI) ID used for instances launched in the compute environment.
/// This parameter is overridden by the <code>imageIdOverride</code> member of the <code>Ec2Configuration</code>
/// structure. To remove the custom AMI ID and use the default AMI ID, set this value
/// to an empty string.
/// </para>
///
/// <para>
/// When updating a compute environment, changing the AMI ID requires an infrastructure
/// update of the compute environment. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
/// compute environments</a> in the <i>Batch User Guide</i>.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note> <note>
/// <para>
/// The AMI that you choose for a compute environment must match the architecture of the
/// instance types that you intend to use for that compute environment. For example, if
/// your compute environment uses A1 instance types, the compute resource AMI that you
/// choose must support ARM instances. Amazon ECS vends both x86 and ARM versions of the
/// Amazon ECS-optimized Amazon Linux 2 AMI. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#ecs-optimized-ami-linux-variants.html">Amazon
/// ECS-optimized Amazon Linux 2 AMI</a> in the <i>Amazon Elastic Container Service Developer
/// Guide</i>.
/// </para>
/// </note>
/// </summary>
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 InstanceRole.
/// <para>
/// The Amazon ECS instance profile applied to Amazon EC2 instances in a compute environment.
/// You can specify the short name or full Amazon Resource Name (ARN) of an instance profile.
/// For example, <code> <i>ecsInstanceRole</i> </code> or <code>arn:aws:iam::<i><aws_account_id></i>:instance-profile/<i>ecsInstanceRole</i>
/// </code>. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/instance_IAM_role.html">Amazon
/// ECS instance role</a> in the <i>Batch User Guide</i>.
/// </para>
///
/// <para>
/// When updating a compute environment, changing this setting requires an infrastructure
/// update of the compute environment. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
/// compute environments</a> in the <i>Batch User Guide</i>.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note>
/// </summary>
public string InstanceRole
{
get { return this._instanceRole; }
set { this._instanceRole = value; }
}
// Check to see if InstanceRole property is set
internal bool IsSetInstanceRole()
{
return this._instanceRole != null;
}
/// <summary>
/// Gets and sets the property InstanceTypes.
/// <para>
/// The instances types that can be launched. You can specify instance families to launch
/// any instance type within those families (for example, <code>c5</code> or <code>p3</code>),
/// or you can specify specific sizes within a family (such as <code>c5.8xlarge</code>).
/// You can also choose <code>optimal</code> to select instance types (from the C4, M4,
/// and R4 instance families) that match the demand of your job queues.
/// </para>
///
/// <para>
/// When updating a compute environment, changing this setting requires an infrastructure
/// update of the compute environment. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
/// compute environments</a> in the <i>Batch User Guide</i>.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note> <note>
/// <para>
/// When you create a compute environment, the instance types that you select for the
/// compute environment must share the same architecture. For example, you can't mix x86
/// and ARM instances in the same compute environment.
/// </para>
/// </note> <note>
/// <para>
/// Currently, <code>optimal</code> uses instance types from the C4, M4, and R4 instance
/// families. In Regions that don't have instance types from those instance families,
/// instance types from the C5, M5, and R5 instance families are used.
/// </para>
/// </note>
/// </summary>
public List<string> InstanceTypes
{
get { return this._instanceTypes; }
set { this._instanceTypes = value; }
}
// Check to see if InstanceTypes property is set
internal bool IsSetInstanceTypes()
{
return this._instanceTypes != null && this._instanceTypes.Count > 0;
}
/// <summary>
/// Gets and sets the property LaunchTemplate.
/// <para>
/// The updated launch template to use for your compute resources. You must specify either
/// the launch template ID or launch template name in the request, but not both. For more
/// information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/launch-templates.html">Launch
/// template support</a> in the <i>Batch User Guide</i>. To remove the custom launch template
/// and use the default launch template, set <code>launchTemplateId</code> or <code>launchTemplateName</code>
/// member of the launch template specification to an empty string. Removing the launch
/// template from a compute environment will not remove the AMI specified in the launch
/// template. In order to update the AMI specified in a launch template, the <code>updateToLatestImageVersion</code>
/// parameter must be set to <code>true</code>.
/// </para>
///
/// <para>
/// When updating a compute environment, changing the launch template requires an infrastructure
/// update of the compute environment. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
/// compute environments</a> in the <i>Batch User Guide</i>.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </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 MaxvCpus.
/// <para>
/// The maximum number of Amazon EC2 vCPUs that an environment can reach.
/// </para>
/// <note>
/// <para>
/// With both <code>BEST_FIT_PROGRESSIVE</code> and <code>SPOT_CAPACITY_OPTIMIZED</code>
/// allocation strategies using On-Demand or Spot Instances, and the <code>BEST_FIT</code>
/// strategy using Spot Instances, Batch might need to exceed <code>maxvCpus</code> to
/// meet your capacity requirements. In this event, Batch never exceeds <code>maxvCpus</code>
/// by more than a single instance. That is, no more than a single instance from among
/// those specified in your compute environment.
/// </para>
/// </note>
/// </summary>
public int MaxvCpus
{
get { return this._maxvCpus.GetValueOrDefault(); }
set { this._maxvCpus = value; }
}
// Check to see if MaxvCpus property is set
internal bool IsSetMaxvCpus()
{
return this._maxvCpus.HasValue;
}
/// <summary>
/// Gets and sets the property MinvCpus.
/// <para>
/// The minimum number of Amazon EC2 vCPUs that an environment should maintain (even if
/// the compute environment is <code>DISABLED</code>).
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note>
/// </summary>
public int MinvCpus
{
get { return this._minvCpus.GetValueOrDefault(); }
set { this._minvCpus = value; }
}
// Check to see if MinvCpus property is set
internal bool IsSetMinvCpus()
{
return this._minvCpus.HasValue;
}
/// <summary>
/// Gets and sets the property PlacementGroup.
/// <para>
/// The Amazon EC2 placement group to associate with your compute resources. If you intend
/// to submit multi-node parallel jobs to your compute environment, you should consider
/// creating a cluster placement group and associate it with your compute resources. This
/// keeps your multi-node parallel job on a logical grouping of instances within a single
/// Availability Zone with high network flow potential. 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>
///
/// <para>
/// When updating a compute environment, changing the placement group requires an infrastructure
/// update of the compute environment. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
/// compute environments</a> in the <i>Batch User Guide</i>.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note>
/// </summary>
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 SecurityGroupIds.
/// <para>
/// The Amazon EC2 security groups that are associated with instances launched in the
/// compute environment. This parameter is required for Fargate compute resources, where
/// it can contain up to 5 security groups. For Fargate compute resources, providing an
/// empty list is handled as if this parameter wasn't specified and no change is made.
/// For EC2 compute resources, providing an empty list removes the security groups from
/// the compute resource.
/// </para>
///
/// <para>
/// When updating a compute environment, changing the EC2 security groups requires an
/// infrastructure update of the compute environment. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
/// compute environments</a> in the <i>Batch User Guide</i>.
/// </para>
/// </summary>
public List<string> SecurityGroupIds
{
get { return this._securityGroupIds; }
set { this._securityGroupIds = value; }
}
// Check to see if SecurityGroupIds property is set
internal bool IsSetSecurityGroupIds()
{
return this._securityGroupIds != null && this._securityGroupIds.Count > 0;
}
/// <summary>
/// Gets and sets the property Subnets.
/// <para>
/// The VPC subnets where the compute resources are launched. Fargate compute resources
/// can contain up to 16 subnets. For Fargate compute resources, providing an empty list
/// will be handled as if this parameter wasn't specified and no change is made. For EC2
/// compute resources, providing an empty list removes the VPC subnets from the compute
/// resource. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html">VPCs
/// and subnets</a> in the <i>Amazon VPC User Guide</i>.
/// </para>
///
/// <para>
/// When updating a compute environment, changing the VPC subnets requires an infrastructure
/// update of the compute environment. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
/// compute environments</a> in the <i>Batch User Guide</i>.
/// </para>
/// <note>
/// <para>
/// Batch on Amazon EC2 and Batch on Amazon EKS support Local Zones. For more information,
/// see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-local-zones">
/// Local Zones</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>, <a href="https://docs.aws.amazon.com/eks/latest/userguide/local-zones.html">Amazon
/// EKS and Amazon Web Services Local Zones</a> in the <i>Amazon EKS User Guide</i> and
/// <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-regions-zones.html#clusters-local-zones">
/// Amazon ECS clusters in Local Zones, Wavelength Zones, and Amazon Web Services Outposts</a>
/// in the <i>Amazon ECS Developer Guide</i>.
/// </para>
///
/// <para>
/// Batch on Fargate doesn't currently support Local Zones.
/// </para>
/// </note>
/// </summary>
public List<string> Subnets
{
get { return this._subnets; }
set { this._subnets = value; }
}
// Check to see if Subnets property is set
internal bool IsSetSubnets()
{
return this._subnets != null && this._subnets.Count > 0;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// Key-value pair tags to be applied to EC2 resources that are launched in the compute
/// environment. For Batch, these take the form of <code>"String1": "String2"</code>,
/// where <code>String1</code> is the tag key and <code>String2</code> is the tag value-for
/// example, <code>{ "Name": "Batch Instance - C4OnDemand" }</code>. This is helpful for
/// recognizing your Batch instances in the Amazon EC2 console. These tags aren't seen
/// when using the Batch <code>ListTagsForResource</code> API operation.
/// </para>
///
/// <para>
/// When updating a compute environment, changing this setting requires an infrastructure
/// update of the compute environment. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
/// compute environments</a> in the <i>Batch User Guide</i>.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// specify it.
/// </para>
/// </note>
/// </summary>
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// The type of compute environment: <code>EC2</code>, <code>SPOT</code>, <code>FARGATE</code>,
/// or <code>FARGATE_SPOT</code>. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html">Compute
/// environments</a> in the <i>Batch User Guide</i>.
/// </para>
///
/// <para>
/// If you choose <code>SPOT</code>, you must also specify an Amazon EC2 Spot Fleet role
/// with the <code>spotIamFleetRole</code> parameter. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/spot_fleet_IAM_role.html">Amazon
/// EC2 spot fleet role</a> in the <i>Batch User Guide</i>.
/// </para>
///
/// <para>
/// When updating a compute environment, changing the type of a compute environment requires
/// an infrastructure update of the compute environment. For more information, see <a
/// href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
/// compute environments</a> in the <i>Batch User Guide</i>.
/// </para>
/// </summary>
public CRType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
/// <summary>
/// Gets and sets the property UpdateToLatestImageVersion.
/// <para>
/// Specifies whether the AMI ID is updated to the latest one that's supported by Batch
/// when the compute environment has an infrastructure update. The default value is <code>false</code>.
/// </para>
/// <note>
/// <para>
/// An AMI ID can either be specified in the <code>imageId</code> or <code>imageIdOverride</code>
/// parameters or be determined by the launch template that's specified in the <code>launchTemplate</code>
/// parameter. If an AMI ID is specified any of these ways, this parameter is ignored.
/// For more information about to update AMI IDs during an infrastructure update, see
/// <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html#updating-compute-environments-ami">Updating
/// the AMI ID</a> in the <i>Batch User Guide</i>.
/// </para>
/// </note>
/// <para>
/// When updating a compute environment, changing this setting requires an infrastructure
/// update of the compute environment. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
/// compute environments</a> in the <i>Batch User Guide</i>.
/// </para>
/// </summary>
public bool UpdateToLatestImageVersion
{
get { return this._updateToLatestImageVersion.GetValueOrDefault(); }
set { this._updateToLatestImageVersion = value; }
}
// Check to see if UpdateToLatestImageVersion property is set
internal bool IsSetUpdateToLatestImageVersion()
{
return this._updateToLatestImageVersion.HasValue;
}
}
}
| 685 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// An object that represents the details of a container that's part of a job.
/// </summary>
public partial class ContainerDetail
{
private List<string> _command = new List<string>();
private string _containerInstanceArn;
private List<KeyValuePair> _environment = new List<KeyValuePair>();
private EphemeralStorage _ephemeralStorage;
private string _executionRoleArn;
private int? _exitCode;
private FargatePlatformConfiguration _fargatePlatformConfiguration;
private string _image;
private string _instanceType;
private string _jobRoleArn;
private LinuxParameters _linuxParameters;
private LogConfiguration _logConfiguration;
private string _logStreamName;
private int? _memory;
private List<MountPoint> _mountPoints = new List<MountPoint>();
private NetworkConfiguration _networkConfiguration;
private List<NetworkInterface> _networkInterfaces = new List<NetworkInterface>();
private bool? _privileged;
private bool? _readonlyRootFilesystem;
private string _reason;
private List<ResourceRequirement> _resourceRequirements = new List<ResourceRequirement>();
private List<Secret> _secrets = new List<Secret>();
private string _taskArn;
private List<Ulimit> _ulimits = new List<Ulimit>();
private string _user;
private int? _vcpus;
private List<Volume> _volumes = new List<Volume>();
/// <summary>
/// Gets and sets the property Command.
/// <para>
/// The command that's passed to the container.
/// </para>
/// </summary>
public List<string> Command
{
get { return this._command; }
set { this._command = value; }
}
// Check to see if Command property is set
internal bool IsSetCommand()
{
return this._command != null && this._command.Count > 0;
}
/// <summary>
/// Gets and sets the property ContainerInstanceArn.
/// <para>
/// The Amazon Resource Name (ARN) of the container instance that the container is running
/// on.
/// </para>
/// </summary>
public string ContainerInstanceArn
{
get { return this._containerInstanceArn; }
set { this._containerInstanceArn = value; }
}
// Check to see if ContainerInstanceArn property is set
internal bool IsSetContainerInstanceArn()
{
return this._containerInstanceArn != null;
}
/// <summary>
/// Gets and sets the property Environment.
/// <para>
/// The environment variables to pass to a container.
/// </para>
/// <note>
/// <para>
/// Environment variables cannot start with "<code>AWS_BATCH</code>". This naming convention
/// is reserved for variables that Batch sets.
/// </para>
/// </note>
/// </summary>
public List<KeyValuePair> Environment
{
get { return this._environment; }
set { this._environment = value; }
}
// Check to see if Environment property is set
internal bool IsSetEnvironment()
{
return this._environment != null && this._environment.Count > 0;
}
/// <summary>
/// Gets and sets the property EphemeralStorage.
/// <para>
/// The amount of ephemeral storage allocated for the task. This parameter is used to
/// expand the total amount of ephemeral storage available, beyond the default amount,
/// for tasks hosted on Fargate.
/// </para>
/// </summary>
public EphemeralStorage EphemeralStorage
{
get { return this._ephemeralStorage; }
set { this._ephemeralStorage = value; }
}
// Check to see if EphemeralStorage property is set
internal bool IsSetEphemeralStorage()
{
return this._ephemeralStorage != null;
}
/// <summary>
/// Gets and sets the property ExecutionRoleArn.
/// <para>
/// The Amazon Resource Name (ARN) of the execution role that Batch can assume. For more
/// information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/execution-IAM-role.html">Batch
/// execution IAM role</a> in the <i>Batch User Guide</i>.
/// </para>
/// </summary>
public string ExecutionRoleArn
{
get { return this._executionRoleArn; }
set { this._executionRoleArn = value; }
}
// Check to see if ExecutionRoleArn property is set
internal bool IsSetExecutionRoleArn()
{
return this._executionRoleArn != null;
}
/// <summary>
/// Gets and sets the property ExitCode.
/// <para>
/// The exit code to return upon completion.
/// </para>
/// </summary>
public int ExitCode
{
get { return this._exitCode.GetValueOrDefault(); }
set { this._exitCode = value; }
}
// Check to see if ExitCode property is set
internal bool IsSetExitCode()
{
return this._exitCode.HasValue;
}
/// <summary>
/// Gets and sets the property FargatePlatformConfiguration.
/// <para>
/// The platform configuration for jobs that are running on Fargate resources. Jobs that
/// are running on EC2 resources must not specify this parameter.
/// </para>
/// </summary>
public FargatePlatformConfiguration FargatePlatformConfiguration
{
get { return this._fargatePlatformConfiguration; }
set { this._fargatePlatformConfiguration = value; }
}
// Check to see if FargatePlatformConfiguration property is set
internal bool IsSetFargatePlatformConfiguration()
{
return this._fargatePlatformConfiguration != null;
}
/// <summary>
/// Gets and sets the property Image.
/// <para>
/// The image used to start the container.
/// </para>
/// </summary>
public string Image
{
get { return this._image; }
set { this._image = value; }
}
// Check to see if Image property is set
internal bool IsSetImage()
{
return this._image != null;
}
/// <summary>
/// Gets and sets the property InstanceType.
/// <para>
/// The instance type of the underlying host infrastructure of a multi-node parallel job.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources.
/// </para>
/// </note>
/// </summary>
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 JobRoleArn.
/// <para>
/// The Amazon Resource Name (ARN) that's associated with the job when run.
/// </para>
/// </summary>
public string JobRoleArn
{
get { return this._jobRoleArn; }
set { this._jobRoleArn = value; }
}
// Check to see if JobRoleArn property is set
internal bool IsSetJobRoleArn()
{
return this._jobRoleArn != null;
}
/// <summary>
/// Gets and sets the property LinuxParameters.
/// <para>
/// Linux-specific modifications that are applied to the container, such as details for
/// device mappings.
/// </para>
/// </summary>
public LinuxParameters LinuxParameters
{
get { return this._linuxParameters; }
set { this._linuxParameters = value; }
}
// Check to see if LinuxParameters property is set
internal bool IsSetLinuxParameters()
{
return this._linuxParameters != null;
}
/// <summary>
/// Gets and sets the property LogConfiguration.
/// <para>
/// The log configuration specification for the container.
/// </para>
///
/// <para>
/// This parameter maps to <code>LogConfig</code> in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create
/// a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker
/// Remote API</a> and the <code>--log-driver</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker
/// run</a>. By default, containers use the same logging driver that the Docker daemon
/// uses. However, the container might use a different logging driver than the Docker
/// daemon by specifying a log driver with this parameter in the container definition.
/// To use a different logging driver for a container, the log system must be configured
/// properly on the container instance. Or, alternatively, it must be configured on a
/// different log server for remote logging options. For more information on the options
/// for different supported log drivers, see <a href="https://docs.docker.com/engine/admin/logging/overview/">Configure
/// logging drivers</a> in the Docker documentation.
/// </para>
/// <note>
/// <para>
/// Batch currently supports a subset of the logging drivers available to the Docker daemon
/// (shown in the <a>LogConfiguration</a> data type). Additional log drivers might be
/// available in future releases of the Amazon ECS container agent.
/// </para>
/// </note>
/// <para>
/// This parameter requires version 1.18 of the Docker Remote API or greater on your container
/// instance. To check the Docker Remote API version on your container instance, log in
/// to your container instance and run the following command: <code>sudo docker version
/// | grep "Server API version"</code>
/// </para>
/// <note>
/// <para>
/// The Amazon ECS container agent running on a container instance must register the logging
/// drivers available on that instance with the <code>ECS_AVAILABLE_LOGGING_DRIVERS</code>
/// environment variable before containers placed on that instance can use these log configuration
/// options. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html">Amazon
/// ECS container agent configuration</a> in the <i>Amazon Elastic Container Service Developer
/// Guide</i>.
/// </para>
/// </note>
/// </summary>
public LogConfiguration LogConfiguration
{
get { return this._logConfiguration; }
set { this._logConfiguration = value; }
}
// Check to see if LogConfiguration property is set
internal bool IsSetLogConfiguration()
{
return this._logConfiguration != null;
}
/// <summary>
/// Gets and sets the property LogStreamName.
/// <para>
/// The name of the Amazon CloudWatch Logs log stream that's associated with the container.
/// The log group for Batch jobs is <code>/aws/batch/job</code>. Each container attempt
/// receives a log stream name when they reach the <code>RUNNING</code> status.
/// </para>
/// </summary>
public string LogStreamName
{
get { return this._logStreamName; }
set { this._logStreamName = value; }
}
// Check to see if LogStreamName property is set
internal bool IsSetLogStreamName()
{
return this._logStreamName != null;
}
/// <summary>
/// Gets and sets the property Memory.
/// <para>
/// For jobs running on EC2 resources that didn't specify memory requirements using <code>resourceRequirements</code>,
/// the number of MiB of memory reserved for the job. For other jobs, including all run
/// on Fargate resources, see <code>resourceRequirements</code>.
/// </para>
/// </summary>
public int Memory
{
get { return this._memory.GetValueOrDefault(); }
set { this._memory = value; }
}
// Check to see if Memory property is set
internal bool IsSetMemory()
{
return this._memory.HasValue;
}
/// <summary>
/// Gets and sets the property MountPoints.
/// <para>
/// The mount points for data volumes in your container.
/// </para>
/// </summary>
public List<MountPoint> MountPoints
{
get { return this._mountPoints; }
set { this._mountPoints = value; }
}
// Check to see if MountPoints property is set
internal bool IsSetMountPoints()
{
return this._mountPoints != null && this._mountPoints.Count > 0;
}
/// <summary>
/// Gets and sets the property NetworkConfiguration.
/// <para>
/// The network configuration for jobs that are running on Fargate resources. Jobs that
/// are running on EC2 resources must not specify this parameter.
/// </para>
/// </summary>
public NetworkConfiguration NetworkConfiguration
{
get { return this._networkConfiguration; }
set { this._networkConfiguration = value; }
}
// Check to see if NetworkConfiguration property is set
internal bool IsSetNetworkConfiguration()
{
return this._networkConfiguration != null;
}
/// <summary>
/// Gets and sets the property NetworkInterfaces.
/// <para>
/// The network interfaces that are associated with the job.
/// </para>
/// </summary>
public List<NetworkInterface> NetworkInterfaces
{
get { return this._networkInterfaces; }
set { this._networkInterfaces = value; }
}
// Check to see if NetworkInterfaces property is set
internal bool IsSetNetworkInterfaces()
{
return this._networkInterfaces != null && this._networkInterfaces.Count > 0;
}
/// <summary>
/// Gets and sets the property Privileged.
/// <para>
/// When this parameter is true, the container is given elevated permissions on the host
/// container instance (similar to the <code>root</code> user). The default value is <code>false</code>.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources and
/// shouldn't be provided, or specified as <code>false</code>.
/// </para>
/// </note>
/// </summary>
public bool Privileged
{
get { return this._privileged.GetValueOrDefault(); }
set { this._privileged = value; }
}
// Check to see if Privileged property is set
internal bool IsSetPrivileged()
{
return this._privileged.HasValue;
}
/// <summary>
/// Gets and sets the property ReadonlyRootFilesystem.
/// <para>
/// When this parameter is true, the container is given read-only access to its root file
/// system. This parameter maps to <code>ReadonlyRootfs</code> in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create
/// a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker
/// Remote API</a> and the <code>--read-only</code> option to <a href="https://docs.docker.com/engine/reference/commandline/run/">
/// <code>docker run</code> </a>.
/// </para>
/// </summary>
public bool ReadonlyRootFilesystem
{
get { return this._readonlyRootFilesystem.GetValueOrDefault(); }
set { this._readonlyRootFilesystem = value; }
}
// Check to see if ReadonlyRootFilesystem property is set
internal bool IsSetReadonlyRootFilesystem()
{
return this._readonlyRootFilesystem.HasValue;
}
/// <summary>
/// Gets and sets the property Reason.
/// <para>
/// A short (255 max characters) human-readable string to provide additional details for
/// a running or stopped container.
/// </para>
/// </summary>
public string Reason
{
get { return this._reason; }
set { this._reason = value; }
}
// Check to see if Reason property is set
internal bool IsSetReason()
{
return this._reason != null;
}
/// <summary>
/// Gets and sets the property ResourceRequirements.
/// <para>
/// The type and amount of resources to assign to a container. The supported resources
/// include <code>GPU</code>, <code>MEMORY</code>, and <code>VCPU</code>.
/// </para>
/// </summary>
public List<ResourceRequirement> ResourceRequirements
{
get { return this._resourceRequirements; }
set { this._resourceRequirements = value; }
}
// Check to see if ResourceRequirements property is set
internal bool IsSetResourceRequirements()
{
return this._resourceRequirements != null && this._resourceRequirements.Count > 0;
}
/// <summary>
/// Gets and sets the property Secrets.
/// <para>
/// The secrets to pass to the container. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html">Specifying
/// sensitive data</a> in the <i>Batch User Guide</i>.
/// </para>
/// </summary>
public List<Secret> Secrets
{
get { return this._secrets; }
set { this._secrets = value; }
}
// Check to see if Secrets property is set
internal bool IsSetSecrets()
{
return this._secrets != null && this._secrets.Count > 0;
}
/// <summary>
/// Gets and sets the property TaskArn.
/// <para>
/// The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the container
/// job. Each container attempt receives a task ARN when they reach the <code>STARTING</code>
/// status.
/// </para>
/// </summary>
public string TaskArn
{
get { return this._taskArn; }
set { this._taskArn = value; }
}
// Check to see if TaskArn property is set
internal bool IsSetTaskArn()
{
return this._taskArn != null;
}
/// <summary>
/// Gets and sets the property Ulimits.
/// <para>
/// A list of <code>ulimit</code> values to set in the container. This parameter maps
/// to <code>Ulimits</code> in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create
/// a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker
/// Remote API</a> and the <code>--ulimit</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker
/// run</a>.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources.
/// </para>
/// </note>
/// </summary>
public List<Ulimit> Ulimits
{
get { return this._ulimits; }
set { this._ulimits = value; }
}
// Check to see if Ulimits property is set
internal bool IsSetUlimits()
{
return this._ulimits != null && this._ulimits.Count > 0;
}
/// <summary>
/// Gets and sets the property User.
/// <para>
/// The user name to use inside the container. This parameter maps to <code>User</code>
/// in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create
/// a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker
/// Remote API</a> and the <code>--user</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker
/// run</a>.
/// </para>
/// </summary>
public string User
{
get { return this._user; }
set { this._user = value; }
}
// Check to see if User property is set
internal bool IsSetUser()
{
return this._user != null;
}
/// <summary>
/// Gets and sets the property Vcpus.
/// <para>
/// The number of vCPUs reserved for the container. For jobs that run on EC2 resources,
/// you can specify the vCPU requirement for the job using <code>resourceRequirements</code>,
/// but you can't specify the vCPU requirements in both the <code>vcpus</code> and <code>resourceRequirements</code>
/// object. This parameter maps to <code>CpuShares</code> in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create
/// a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker
/// Remote API</a> and the <code>--cpu-shares</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker
/// run</a>. Each vCPU is equivalent to 1,024 CPU shares. You must specify at least one
/// vCPU. This is required but can be specified in several places. It must be specified
/// for each node at least once.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that run on Fargate resources. For jobs that
/// run on Fargate resources, you must specify the vCPU requirement for the job using
/// <code>resourceRequirements</code>.
/// </para>
/// </note>
/// </summary>
public int Vcpus
{
get { return this._vcpus.GetValueOrDefault(); }
set { this._vcpus = value; }
}
// Check to see if Vcpus property is set
internal bool IsSetVcpus()
{
return this._vcpus.HasValue;
}
/// <summary>
/// Gets and sets the property Volumes.
/// <para>
/// A list of volumes that are associated with the job.
/// </para>
/// </summary>
public List<Volume> Volumes
{
get { return this._volumes; }
set { this._volumes = value; }
}
// Check to see if Volumes property is set
internal bool IsSetVolumes()
{
return this._volumes != null && this._volumes.Count > 0;
}
}
}
| 655 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// The overrides that should be sent to a container.
/// </summary>
public partial class ContainerOverrides
{
private List<string> _command = new List<string>();
private List<KeyValuePair> _environment = new List<KeyValuePair>();
private string _instanceType;
private int? _memory;
private List<ResourceRequirement> _resourceRequirements = new List<ResourceRequirement>();
private int? _vcpus;
/// <summary>
/// Gets and sets the property Command.
/// <para>
/// The command to send to the container that overrides the default command from the Docker
/// image or the job definition.
/// </para>
/// </summary>
public List<string> Command
{
get { return this._command; }
set { this._command = value; }
}
// Check to see if Command property is set
internal bool IsSetCommand()
{
return this._command != null && this._command.Count > 0;
}
/// <summary>
/// Gets and sets the property Environment.
/// <para>
/// The environment variables to send to the container. You can add new environment variables,
/// which are added to the container at launch, or you can override the existing environment
/// variables from the Docker image or the job definition.
/// </para>
/// <note>
/// <para>
/// Environment variables cannot start with "<code>AWS_BATCH</code>". This naming convention
/// is reserved for variables that Batch sets.
/// </para>
/// </note>
/// </summary>
public List<KeyValuePair> Environment
{
get { return this._environment; }
set { this._environment = value; }
}
// Check to see if Environment property is set
internal bool IsSetEnvironment()
{
return this._environment != null && this._environment.Count > 0;
}
/// <summary>
/// Gets and sets the property InstanceType.
/// <para>
/// The instance type to use for a multi-node parallel job.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to single-node container jobs or jobs that run on
/// Fargate resources, and shouldn't be provided.
/// </para>
/// </note>
/// </summary>
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 Memory.
/// <para>
/// This parameter is deprecated, use <code>resourceRequirements</code> to override the
/// memory requirements specified in the job definition. It's not supported for jobs running
/// on Fargate resources. For jobs that run on EC2 resources, it overrides the <code>memory</code>
/// parameter set in the job definition, but doesn't override any memory requirement that's
/// specified in the <code>resourceRequirements</code> structure in the job definition.
/// To override memory requirements that are specified in the <code>resourceRequirements</code>
/// structure in the job definition, <code>resourceRequirements</code> must be specified
/// in the <code>SubmitJob</code> request, with <code>type</code> set to <code>MEMORY</code>
/// and <code>value</code> set to the new value. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#override-resource-requirements">Can't
/// override job definition resource requirements</a> in the <i>Batch User Guide</i>.
/// </para>
/// </summary>
[Obsolete("This field is deprecated, use resourceRequirements instead.")]
public int Memory
{
get { return this._memory.GetValueOrDefault(); }
set { this._memory = value; }
}
// Check to see if Memory property is set
internal bool IsSetMemory()
{
return this._memory.HasValue;
}
/// <summary>
/// Gets and sets the property ResourceRequirements.
/// <para>
/// The type and amount of resources to assign to a container. This overrides the settings
/// in the job definition. The supported resources include <code>GPU</code>, <code>MEMORY</code>,
/// and <code>VCPU</code>.
/// </para>
/// </summary>
public List<ResourceRequirement> ResourceRequirements
{
get { return this._resourceRequirements; }
set { this._resourceRequirements = value; }
}
// Check to see if ResourceRequirements property is set
internal bool IsSetResourceRequirements()
{
return this._resourceRequirements != null && this._resourceRequirements.Count > 0;
}
/// <summary>
/// Gets and sets the property Vcpus.
/// <para>
/// This parameter is deprecated, use <code>resourceRequirements</code> to override the
/// <code>vcpus</code> parameter that's set in the job definition. It's not supported
/// for jobs running on Fargate resources. For jobs that run on EC2 resources, it overrides
/// the <code>vcpus</code> parameter set in the job definition, but doesn't override any
/// vCPU requirement specified in the <code>resourceRequirements</code> structure in the
/// job definition. To override vCPU requirements that are specified in the <code>resourceRequirements</code>
/// structure in the job definition, <code>resourceRequirements</code> must be specified
/// in the <code>SubmitJob</code> request, with <code>type</code> set to <code>VCPU</code>
/// and <code>value</code> set to the new value. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#override-resource-requirements">Can't
/// override job definition resource requirements</a> in the <i>Batch User Guide</i>.
/// </para>
/// </summary>
[Obsolete("This field is deprecated, use resourceRequirements instead.")]
public int Vcpus
{
get { return this._vcpus.GetValueOrDefault(); }
set { this._vcpus = value; }
}
// Check to see if Vcpus property is set
internal bool IsSetVcpus()
{
return this._vcpus.HasValue;
}
}
}
| 189 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// Container properties are used for Amazon ECS based job definitions. These properties
/// to describe the container that's launched as part of a job.
/// </summary>
public partial class ContainerProperties
{
private List<string> _command = new List<string>();
private List<KeyValuePair> _environment = new List<KeyValuePair>();
private EphemeralStorage _ephemeralStorage;
private string _executionRoleArn;
private FargatePlatformConfiguration _fargatePlatformConfiguration;
private string _image;
private string _instanceType;
private string _jobRoleArn;
private LinuxParameters _linuxParameters;
private LogConfiguration _logConfiguration;
private int? _memory;
private List<MountPoint> _mountPoints = new List<MountPoint>();
private NetworkConfiguration _networkConfiguration;
private bool? _privileged;
private bool? _readonlyRootFilesystem;
private List<ResourceRequirement> _resourceRequirements = new List<ResourceRequirement>();
private List<Secret> _secrets = new List<Secret>();
private List<Ulimit> _ulimits = new List<Ulimit>();
private string _user;
private int? _vcpus;
private List<Volume> _volumes = new List<Volume>();
/// <summary>
/// Gets and sets the property Command.
/// <para>
/// The command that's passed to the container. This parameter maps to <code>Cmd</code>
/// in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create
/// a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker
/// Remote API</a> and the <code>COMMAND</code> parameter to <a href="https://docs.docker.com/engine/reference/run/">docker
/// run</a>. For more information, see <a href="https://docs.docker.com/engine/reference/builder/#cmd">https://docs.docker.com/engine/reference/builder/#cmd</a>.
/// </para>
/// </summary>
public List<string> Command
{
get { return this._command; }
set { this._command = value; }
}
// Check to see if Command property is set
internal bool IsSetCommand()
{
return this._command != null && this._command.Count > 0;
}
/// <summary>
/// Gets and sets the property Environment.
/// <para>
/// The environment variables to pass to a container. This parameter maps to <code>Env</code>
/// in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create
/// a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker
/// Remote API</a> and the <code>--env</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker
/// run</a>.
/// </para>
/// <important>
/// <para>
/// We don't recommend using plaintext environment variables for sensitive information,
/// such as credential data.
/// </para>
/// </important> <note>
/// <para>
/// Environment variables cannot start with "<code>AWS_BATCH</code>". This naming convention
/// is reserved for variables that Batch sets.
/// </para>
/// </note>
/// </summary>
public List<KeyValuePair> Environment
{
get { return this._environment; }
set { this._environment = value; }
}
// Check to see if Environment property is set
internal bool IsSetEnvironment()
{
return this._environment != null && this._environment.Count > 0;
}
/// <summary>
/// Gets and sets the property EphemeralStorage.
/// <para>
/// The amount of ephemeral storage to allocate for the task. This parameter is used to
/// expand the total amount of ephemeral storage available, beyond the default amount,
/// for tasks hosted on Fargate.
/// </para>
/// </summary>
public EphemeralStorage EphemeralStorage
{
get { return this._ephemeralStorage; }
set { this._ephemeralStorage = value; }
}
// Check to see if EphemeralStorage property is set
internal bool IsSetEphemeralStorage()
{
return this._ephemeralStorage != null;
}
/// <summary>
/// Gets and sets the property ExecutionRoleArn.
/// <para>
/// The Amazon Resource Name (ARN) of the execution role that Batch can assume. For jobs
/// that run on Fargate resources, you must provide an execution role. For more information,
/// see <a href="https://docs.aws.amazon.com/batch/latest/userguide/execution-IAM-role.html">Batch
/// execution IAM role</a> in the <i>Batch User Guide</i>.
/// </para>
/// </summary>
public string ExecutionRoleArn
{
get { return this._executionRoleArn; }
set { this._executionRoleArn = value; }
}
// Check to see if ExecutionRoleArn property is set
internal bool IsSetExecutionRoleArn()
{
return this._executionRoleArn != null;
}
/// <summary>
/// Gets and sets the property FargatePlatformConfiguration.
/// <para>
/// The platform configuration for jobs that are running on Fargate resources. Jobs that
/// are running on EC2 resources must not specify this parameter.
/// </para>
/// </summary>
public FargatePlatformConfiguration FargatePlatformConfiguration
{
get { return this._fargatePlatformConfiguration; }
set { this._fargatePlatformConfiguration = value; }
}
// Check to see if FargatePlatformConfiguration property is set
internal bool IsSetFargatePlatformConfiguration()
{
return this._fargatePlatformConfiguration != null;
}
/// <summary>
/// Gets and sets the property Image.
/// <para>
/// The image used to start a container. This string is passed directly to the Docker
/// daemon. Images in the Docker Hub registry are available by default. Other repositories
/// are specified with <code> <i>repository-url</i>/<i>image</i>:<i>tag</i> </code>. It
/// can be 255 characters long. It can contain uppercase and lowercase letters, numbers,
/// hyphens (-), underscores (_), colons (:), periods (.), forward slashes (/), and number
/// signs (#). This parameter maps to <code>Image</code> in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create
/// a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker
/// Remote API</a> and the <code>IMAGE</code> parameter of <a href="https://docs.docker.com/engine/reference/run/">docker
/// run</a>.
/// </para>
/// <note>
/// <para>
/// Docker image architecture must match the processor architecture of the compute resources
/// that they're scheduled on. For example, ARM-based Docker images can only run on ARM-based
/// compute resources.
/// </para>
/// </note> <ul> <li>
/// <para>
/// Images in Amazon ECR Public repositories use the full <code>registry/repository[:tag]</code>
/// or <code>registry/repository[@digest]</code> naming conventions. For example, <code>public.ecr.aws/<i>registry_alias</i>/<i>my-web-app</i>:<i>latest</i>
/// </code>.
/// </para>
/// </li> <li>
/// <para>
/// Images in Amazon ECR repositories use the full registry and repository URI (for example,
/// <code>123456789012.dkr.ecr.<region-name>.amazonaws.com/<repository-name></code>).
/// </para>
/// </li> <li>
/// <para>
/// Images in official repositories on Docker Hub use a single name (for example, <code>ubuntu</code>
/// or <code>mongo</code>).
/// </para>
/// </li> <li>
/// <para>
/// Images in other repositories on Docker Hub are qualified with an organization name
/// (for example, <code>amazon/amazon-ecs-agent</code>).
/// </para>
/// </li> <li>
/// <para>
/// Images in other online repositories are qualified further by a domain name (for example,
/// <code>quay.io/assemblyline/ubuntu</code>).
/// </para>
/// </li> </ul>
/// </summary>
public string Image
{
get { return this._image; }
set { this._image = value; }
}
// Check to see if Image property is set
internal bool IsSetImage()
{
return this._image != null;
}
/// <summary>
/// Gets and sets the property InstanceType.
/// <para>
/// The instance type to use for a multi-node parallel job. All node groups in a multi-node
/// parallel job must use the same instance type.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to single-node container jobs or jobs that run on
/// Fargate resources, and shouldn't be provided.
/// </para>
/// </note>
/// </summary>
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 JobRoleArn.
/// <para>
/// The Amazon Resource Name (ARN) of the IAM role that the container can assume for Amazon
/// Web Services permissions. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html">IAM
/// roles for tasks</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
/// </para>
/// </summary>
public string JobRoleArn
{
get { return this._jobRoleArn; }
set { this._jobRoleArn = value; }
}
// Check to see if JobRoleArn property is set
internal bool IsSetJobRoleArn()
{
return this._jobRoleArn != null;
}
/// <summary>
/// Gets and sets the property LinuxParameters.
/// <para>
/// Linux-specific modifications that are applied to the container, such as details for
/// device mappings.
/// </para>
/// </summary>
public LinuxParameters LinuxParameters
{
get { return this._linuxParameters; }
set { this._linuxParameters = value; }
}
// Check to see if LinuxParameters property is set
internal bool IsSetLinuxParameters()
{
return this._linuxParameters != null;
}
/// <summary>
/// Gets and sets the property LogConfiguration.
/// <para>
/// The log configuration specification for the container.
/// </para>
///
/// <para>
/// This parameter maps to <code>LogConfig</code> in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create
/// a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker
/// Remote API</a> and the <code>--log-driver</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker
/// run</a>. By default, containers use the same logging driver that the Docker daemon
/// uses. However the container might use a different logging driver than the Docker daemon
/// by specifying a log driver with this parameter in the container definition. To use
/// a different logging driver for a container, the log system must be configured properly
/// on the container instance (or on a different log server for remote logging options).
/// For more information on the options for different supported log drivers, see <a href="https://docs.docker.com/engine/admin/logging/overview/">Configure
/// logging drivers</a> in the Docker documentation.
/// </para>
/// <note>
/// <para>
/// Batch currently supports a subset of the logging drivers available to the Docker daemon
/// (shown in the <a>LogConfiguration</a> data type).
/// </para>
/// </note>
/// <para>
/// This parameter requires version 1.18 of the Docker Remote API or greater on your container
/// instance. To check the Docker Remote API version on your container instance, log in
/// to your container instance and run the following command: <code>sudo docker version
/// | grep "Server API version"</code>
/// </para>
/// <note>
/// <para>
/// The Amazon ECS container agent running on a container instance must register the logging
/// drivers available on that instance with the <code>ECS_AVAILABLE_LOGGING_DRIVERS</code>
/// environment variable before containers placed on that instance can use these log configuration
/// options. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html">Amazon
/// ECS container agent configuration</a> in the <i>Amazon Elastic Container Service Developer
/// Guide</i>.
/// </para>
/// </note>
/// </summary>
public LogConfiguration LogConfiguration
{
get { return this._logConfiguration; }
set { this._logConfiguration = value; }
}
// Check to see if LogConfiguration property is set
internal bool IsSetLogConfiguration()
{
return this._logConfiguration != null;
}
/// <summary>
/// Gets and sets the property Memory.
/// <para>
/// This parameter is deprecated, use <code>resourceRequirements</code> to specify the
/// memory requirements for the job definition. It's not supported for jobs running on
/// Fargate resources. For jobs that run on EC2 resources, it specifies the memory hard
/// limit (in MiB) for a container. If your container attempts to exceed the specified
/// number, it's terminated. You must specify at least 4 MiB of memory for a job using
/// this parameter. The memory hard limit can be specified in several places. It must
/// be specified for each node at least once.
/// </para>
/// </summary>
[Obsolete("This field is deprecated, use resourceRequirements instead.")]
public int Memory
{
get { return this._memory.GetValueOrDefault(); }
set { this._memory = value; }
}
// Check to see if Memory property is set
internal bool IsSetMemory()
{
return this._memory.HasValue;
}
/// <summary>
/// Gets and sets the property MountPoints.
/// <para>
/// The mount points for data volumes in your container. This parameter maps to <code>Volumes</code>
/// in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create
/// a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker
/// Remote API</a> and the <code>--volume</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker
/// run</a>.
/// </para>
/// </summary>
public List<MountPoint> MountPoints
{
get { return this._mountPoints; }
set { this._mountPoints = value; }
}
// Check to see if MountPoints property is set
internal bool IsSetMountPoints()
{
return this._mountPoints != null && this._mountPoints.Count > 0;
}
/// <summary>
/// Gets and sets the property NetworkConfiguration.
/// <para>
/// The network configuration for jobs that are running on Fargate resources. Jobs that
/// are running on EC2 resources must not specify this parameter.
/// </para>
/// </summary>
public NetworkConfiguration NetworkConfiguration
{
get { return this._networkConfiguration; }
set { this._networkConfiguration = value; }
}
// Check to see if NetworkConfiguration property is set
internal bool IsSetNetworkConfiguration()
{
return this._networkConfiguration != null;
}
/// <summary>
/// Gets and sets the property Privileged.
/// <para>
/// When this parameter is true, the container is given elevated permissions on the host
/// container instance (similar to the <code>root</code> user). This parameter maps to
/// <code>Privileged</code> in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create
/// a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker
/// Remote API</a> and the <code>--privileged</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker
/// run</a>. The default value is false.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources and
/// shouldn't be provided, or specified as false.
/// </para>
/// </note>
/// </summary>
public bool Privileged
{
get { return this._privileged.GetValueOrDefault(); }
set { this._privileged = value; }
}
// Check to see if Privileged property is set
internal bool IsSetPrivileged()
{
return this._privileged.HasValue;
}
/// <summary>
/// Gets and sets the property ReadonlyRootFilesystem.
/// <para>
/// When this parameter is true, the container is given read-only access to its root file
/// system. This parameter maps to <code>ReadonlyRootfs</code> in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create
/// a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker
/// Remote API</a> and the <code>--read-only</code> option to <code>docker run</code>.
/// </para>
/// </summary>
public bool ReadonlyRootFilesystem
{
get { return this._readonlyRootFilesystem.GetValueOrDefault(); }
set { this._readonlyRootFilesystem = value; }
}
// Check to see if ReadonlyRootFilesystem property is set
internal bool IsSetReadonlyRootFilesystem()
{
return this._readonlyRootFilesystem.HasValue;
}
/// <summary>
/// Gets and sets the property ResourceRequirements.
/// <para>
/// The type and amount of resources to assign to a container. The supported resources
/// include <code>GPU</code>, <code>MEMORY</code>, and <code>VCPU</code>.
/// </para>
/// </summary>
public List<ResourceRequirement> ResourceRequirements
{
get { return this._resourceRequirements; }
set { this._resourceRequirements = value; }
}
// Check to see if ResourceRequirements property is set
internal bool IsSetResourceRequirements()
{
return this._resourceRequirements != null && this._resourceRequirements.Count > 0;
}
/// <summary>
/// Gets and sets the property Secrets.
/// <para>
/// The secrets for the container. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html">Specifying
/// sensitive data</a> in the <i>Batch User Guide</i>.
/// </para>
/// </summary>
public List<Secret> Secrets
{
get { return this._secrets; }
set { this._secrets = value; }
}
// Check to see if Secrets property is set
internal bool IsSetSecrets()
{
return this._secrets != null && this._secrets.Count > 0;
}
/// <summary>
/// Gets and sets the property Ulimits.
/// <para>
/// A list of <code>ulimits</code> to set in the container. This parameter maps to <code>Ulimits</code>
/// in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create
/// a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker
/// Remote API</a> and the <code>--ulimit</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker
/// run</a>.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources and
/// shouldn't be provided.
/// </para>
/// </note>
/// </summary>
public List<Ulimit> Ulimits
{
get { return this._ulimits; }
set { this._ulimits = value; }
}
// Check to see if Ulimits property is set
internal bool IsSetUlimits()
{
return this._ulimits != null && this._ulimits.Count > 0;
}
/// <summary>
/// Gets and sets the property User.
/// <para>
/// The user name to use inside the container. This parameter maps to <code>User</code>
/// in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create
/// a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker
/// Remote API</a> and the <code>--user</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker
/// run</a>.
/// </para>
/// </summary>
public string User
{
get { return this._user; }
set { this._user = value; }
}
// Check to see if User property is set
internal bool IsSetUser()
{
return this._user != null;
}
/// <summary>
/// Gets and sets the property Vcpus.
/// <para>
/// This parameter is deprecated, use <code>resourceRequirements</code> to specify the
/// vCPU requirements for the job definition. It's not supported for jobs running on Fargate
/// resources. For jobs running on EC2 resources, it specifies the number of vCPUs reserved
/// for the job.
/// </para>
///
/// <para>
/// Each vCPU is equivalent to 1,024 CPU shares. This parameter maps to <code>CpuShares</code>
/// in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create
/// a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker
/// Remote API</a> and the <code>--cpu-shares</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker
/// run</a>. The number of vCPUs must be specified but can be specified in several places.
/// You must specify it at least once for each node.
/// </para>
/// </summary>
[Obsolete("This field is deprecated, use resourceRequirements instead.")]
public int Vcpus
{
get { return this._vcpus.GetValueOrDefault(); }
set { this._vcpus = value; }
}
// Check to see if Vcpus property is set
internal bool IsSetVcpus()
{
return this._vcpus.HasValue;
}
/// <summary>
/// Gets and sets the property Volumes.
/// <para>
/// A list of data volumes used in a job.
/// </para>
/// </summary>
public List<Volume> Volumes
{
get { return this._volumes; }
set { this._volumes = value; }
}
// Check to see if Volumes property is set
internal bool IsSetVolumes()
{
return this._volumes != null && this._volumes.Count > 0;
}
}
}
| 604 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// An object that represents summary details of a container within a job.
/// </summary>
public partial class ContainerSummary
{
private int? _exitCode;
private string _reason;
/// <summary>
/// Gets and sets the property ExitCode.
/// <para>
/// The exit code to return upon completion.
/// </para>
/// </summary>
public int ExitCode
{
get { return this._exitCode.GetValueOrDefault(); }
set { this._exitCode = value; }
}
// Check to see if ExitCode property is set
internal bool IsSetExitCode()
{
return this._exitCode.HasValue;
}
/// <summary>
/// Gets and sets the property Reason.
/// <para>
/// A short (255 max characters) human-readable string to provide additional details for
/// a running or stopped container.
/// </para>
/// </summary>
public string Reason
{
get { return this._reason; }
set { this._reason = value; }
}
// Check to see if Reason property is set
internal bool IsSetReason()
{
return this._reason != null;
}
}
}
| 77 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// Container for the parameters to the CreateComputeEnvironment operation.
/// Creates an Batch compute environment. You can create <code>MANAGED</code> or <code>UNMANAGED</code>
/// compute environments. <code>MANAGED</code> compute environments can use Amazon EC2
/// or Fargate resources. <code>UNMANAGED</code> compute environments can only use EC2
/// resources.
///
///
/// <para>
/// In a managed compute environment, Batch manages the capacity and instance types of
/// the compute resources within the environment. This is based on the compute resource
/// specification that you define or the <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html">launch
/// template</a> that you specify when you create the compute environment. Either, you
/// can choose to use EC2 On-Demand Instances and EC2 Spot Instances. Or, you can use
/// Fargate and Fargate Spot capacity in your managed compute environment. You can optionally
/// set a maximum price so that Spot Instances only launch when the Spot Instance price
/// is less than a specified percentage of the On-Demand price.
/// </para>
/// <note>
/// <para>
/// Multi-node parallel jobs aren't supported on Spot Instances.
/// </para>
/// </note>
/// <para>
/// In an unmanaged compute environment, you can manage your own EC2 compute resources
/// and have flexibility with how you configure your compute resources. For example, you
/// can use custom AMIs. However, you must verify that each of your AMIs meet the Amazon
/// ECS container instance AMI specification. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container_instance_AMIs.html">container
/// instance AMIs</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
/// After you created your unmanaged compute environment, you can use the <a>DescribeComputeEnvironments</a>
/// operation to find the Amazon ECS cluster that's associated with it. Then, launch your
/// container instances into that Amazon ECS cluster. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html">Launching
/// an Amazon ECS container instance</a> in the <i>Amazon Elastic Container Service Developer
/// Guide</i>.
/// </para>
/// <note>
/// <para>
/// To create a compute environment that uses EKS resources, the caller must have permissions
/// to call <code>eks:DescribeCluster</code>.
/// </para>
/// </note> <note>
/// <para>
/// Batch doesn't automatically upgrade the AMIs in a compute environment after it's created.
/// For example, it also doesn't update the AMIs in your compute environment when a newer
/// version of the Amazon ECS optimized AMI is available. You're responsible for the management
/// of the guest operating system. This includes any updates and security patches. You're
/// also responsible for any additional application software or utilities that you install
/// on the compute resources. There are two ways to use a new AMI for your Batch jobs.
/// The original method is to complete these steps:
/// </para>
/// <ol> <li>
/// <para>
/// Create a new compute environment with the new AMI.
/// </para>
/// </li> <li>
/// <para>
/// Add the compute environment to an existing job queue.
/// </para>
/// </li> <li>
/// <para>
/// Remove the earlier compute environment from your job queue.
/// </para>
/// </li> <li>
/// <para>
/// Delete the earlier compute environment.
/// </para>
/// </li> </ol>
/// <para>
/// In April 2022, Batch added enhanced support for updating compute environments. For
/// more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
/// compute environments</a>. To use the enhanced updating of compute environments to
/// update AMIs, follow these rules:
/// </para>
/// <ul> <li>
/// <para>
/// Either don't set the service role (<code>serviceRole</code>) parameter or set it to
/// the <b>AWSBatchServiceRole</b> service-linked role.
/// </para>
/// </li> <li>
/// <para>
/// Set the allocation strategy (<code>allocationStrategy</code>) parameter to <code>BEST_FIT_PROGRESSIVE</code>
/// or <code>SPOT_CAPACITY_OPTIMIZED</code>.
/// </para>
/// </li> <li>
/// <para>
/// Set the update to latest image version (<code>updateToLatestImageVersion</code>) parameter
/// to <code>true</code>.
/// </para>
/// </li> <li>
/// <para>
/// Don't specify an AMI ID in <code>imageId</code>, <code>imageIdOverride</code> (in
/// <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_Ec2Configuration.html">
/// <code>ec2Configuration</code> </a>), or in the launch template (<code>launchTemplate</code>).
/// In that case, Batch selects the latest Amazon ECS optimized AMI that's supported by
/// Batch at the time the infrastructure update is initiated. Alternatively, you can specify
/// the AMI ID in the <code>imageId</code> or <code>imageIdOverride</code> parameters,
/// or the launch template identified by the <code>LaunchTemplate</code> properties. Changing
/// any of these properties starts an infrastructure update. If the AMI ID is specified
/// in the launch template, it can't be replaced by specifying an AMI ID in either the
/// <code>imageId</code> or <code>imageIdOverride</code> parameters. It can only be replaced
/// by specifying a different launch template, or if the launch template version is set
/// to <code>$Default</code> or <code>$Latest</code>, by setting either a new default
/// version for the launch template (if <code>$Default</code>) or by adding a new version
/// to the launch template (if <code>$Latest</code>).
/// </para>
/// </li> </ul>
/// <para>
/// If these rules are followed, any update that starts an infrastructure update causes
/// the AMI ID to be re-selected. If the <code>version</code> setting in the launch template
/// (<code>launchTemplate</code>) is set to <code>$Latest</code> or <code>$Default</code>,
/// the latest or default version of the launch template is evaluated up at the time of
/// the infrastructure update, even if the <code>launchTemplate</code> wasn't updated.
/// </para>
/// </note>
/// </summary>
public partial class CreateComputeEnvironmentRequest : AmazonBatchRequest
{
private string _computeEnvironmentName;
private ComputeResource _computeResources;
private EksConfiguration _eksConfiguration;
private string _serviceRole;
private CEState _state;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
private CEType _type;
private int? _unmanagedvCpus;
/// <summary>
/// Gets and sets the property ComputeEnvironmentName.
/// <para>
/// The name for your compute environment. It can be up to 128 characters long. It can
/// contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ComputeEnvironmentName
{
get { return this._computeEnvironmentName; }
set { this._computeEnvironmentName = value; }
}
// Check to see if ComputeEnvironmentName property is set
internal bool IsSetComputeEnvironmentName()
{
return this._computeEnvironmentName != null;
}
/// <summary>
/// Gets and sets the property ComputeResources.
/// <para>
/// Details about the compute resources managed by the compute environment. This parameter
/// is required for managed compute environments. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html">Compute
/// Environments</a> in the <i>Batch User Guide</i>.
/// </para>
/// </summary>
public ComputeResource ComputeResources
{
get { return this._computeResources; }
set { this._computeResources = value; }
}
// Check to see if ComputeResources property is set
internal bool IsSetComputeResources()
{
return this._computeResources != null;
}
/// <summary>
/// Gets and sets the property EksConfiguration.
/// <para>
/// The details for the Amazon EKS cluster that supports the compute environment.
/// </para>
/// </summary>
public EksConfiguration EksConfiguration
{
get { return this._eksConfiguration; }
set { this._eksConfiguration = value; }
}
// Check to see if EksConfiguration property is set
internal bool IsSetEksConfiguration()
{
return this._eksConfiguration != null;
}
/// <summary>
/// Gets and sets the property ServiceRole.
/// <para>
/// The full Amazon Resource Name (ARN) of the IAM role that allows Batch to make calls
/// to other Amazon Web Services services on your behalf. For more information, see <a
/// href="https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html">Batch
/// service IAM role</a> in the <i>Batch User Guide</i>.
/// </para>
/// <important>
/// <para>
/// If your account already created the Batch service-linked role, that role is used by
/// default for your compute environment unless you specify a different role here. If
/// the Batch service-linked role doesn't exist in your account, and no role is specified
/// here, the service attempts to create the Batch service-linked role in your account.
/// </para>
/// </important>
/// <para>
/// If your specified role has a path other than <code>/</code>, then you must specify
/// either the full role ARN (recommended) or prefix the role name with the path. For
/// example, if a role with the name <code>bar</code> has a path of <code>/foo/</code>,
/// specify <code>/foo/bar</code> as the role name. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-friendly-names">Friendly
/// names and paths</a> in the <i>IAM User Guide</i>.
/// </para>
/// <note>
/// <para>
/// Depending on how you created your Batch service role, its ARN might contain the <code>service-role</code>
/// path prefix. When you only specify the name of the service role, Batch assumes that
/// your ARN doesn't use the <code>service-role</code> path prefix. Because of this, we
/// recommend that you specify the full ARN of your service role when you create compute
/// environments.
/// </para>
/// </note>
/// </summary>
public string ServiceRole
{
get { return this._serviceRole; }
set { this._serviceRole = value; }
}
// Check to see if ServiceRole property is set
internal bool IsSetServiceRole()
{
return this._serviceRole != null;
}
/// <summary>
/// Gets and sets the property State.
/// <para>
/// The state of the compute environment. If the state is <code>ENABLED</code>, then the
/// compute environment accepts jobs from a queue and can scale out automatically based
/// on queues.
/// </para>
///
/// <para>
/// If the state is <code>ENABLED</code>, then the Batch scheduler can attempt to place
/// jobs from an associated job queue on the compute resources within the environment.
/// If the compute environment is managed, then it can scale its instances out or in automatically,
/// based on the job queue demand.
/// </para>
///
/// <para>
/// If the state is <code>DISABLED</code>, then the Batch scheduler doesn't attempt to
/// place jobs within the environment. Jobs in a <code>STARTING</code> or <code>RUNNING</code>
/// state continue to progress normally. Managed compute environments in the <code>DISABLED</code>
/// state don't scale out.
/// </para>
/// <note>
/// <para>
/// Compute environments in a <code>DISABLED</code> state may continue to incur billing
/// charges. To prevent additional charges, turn off and then delete the compute environment.
/// For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/compute_environment_parameters.html#compute_environment_state">State</a>
/// in the <i>Batch User Guide</i>.
/// </para>
/// </note>
/// <para>
/// When an instance is idle, the instance scales down to the <code>minvCpus</code> value.
/// However, the instance size doesn't change. For example, consider a <code>c5.8xlarge</code>
/// instance with a <code>minvCpus</code> value of <code>4</code> and a <code>desiredvCpus</code>
/// value of <code>36</code>. This instance doesn't scale down to a <code>c5.large</code>
/// instance.
/// </para>
/// </summary>
public CEState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The tags that you apply to the compute environment to help you categorize and organize
/// your resources. Each tag consists of a key and an optional value. For more information,
/// see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging
/// Amazon Web Services Resources</a> in <i>Amazon Web Services General Reference</i>.
/// </para>
///
/// <para>
/// These tags can be updated or removed using the <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_TagResource.html">TagResource</a>
/// and <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_UntagResource.html">UntagResource</a>
/// API operations. These tags don't propagate to the underlying compute resources.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// The type of the compute environment: <code>MANAGED</code> or <code>UNMANAGED</code>.
/// For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html">Compute
/// Environments</a> in the <i>Batch User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public CEType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
/// <summary>
/// Gets and sets the property UnmanagedvCpus.
/// <para>
/// The maximum number of vCPUs for an unmanaged compute environment. This parameter is
/// only used for fair share scheduling to reserve vCPU capacity for new share identifiers.
/// If this parameter isn't provided for a fair share job queue, no vCPU capacity is reserved.
/// </para>
/// <note>
/// <para>
/// This parameter is only supported when the <code>type</code> parameter is set to <code>UNMANAGED</code>.
/// </para>
/// </note>
/// </summary>
public int UnmanagedvCpus
{
get { return this._unmanagedvCpus.GetValueOrDefault(); }
set { this._unmanagedvCpus = value; }
}
// Check to see if UnmanagedvCpus property is set
internal bool IsSetUnmanagedvCpus()
{
return this._unmanagedvCpus.HasValue;
}
}
}
| 384 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// This is the response object from the CreateComputeEnvironment operation.
/// </summary>
public partial class CreateComputeEnvironmentResponse : AmazonWebServiceResponse
{
private string _computeEnvironmentArn;
private string _computeEnvironmentName;
/// <summary>
/// Gets and sets the property ComputeEnvironmentArn.
/// <para>
/// The Amazon Resource Name (ARN) of the compute environment.
/// </para>
/// </summary>
public string ComputeEnvironmentArn
{
get { return this._computeEnvironmentArn; }
set { this._computeEnvironmentArn = value; }
}
// Check to see if ComputeEnvironmentArn property is set
internal bool IsSetComputeEnvironmentArn()
{
return this._computeEnvironmentArn != null;
}
/// <summary>
/// Gets and sets the property ComputeEnvironmentName.
/// <para>
/// The name of the compute environment. It can be up to 128 characters long. It can contain
/// uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
/// </para>
/// </summary>
public string ComputeEnvironmentName
{
get { return this._computeEnvironmentName; }
set { this._computeEnvironmentName = value; }
}
// Check to see if ComputeEnvironmentName property is set
internal bool IsSetComputeEnvironmentName()
{
return this._computeEnvironmentName != null;
}
}
}
| 77 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// Container for the parameters to the CreateJobQueue operation.
/// Creates an Batch job queue. When you create a job queue, you associate one or more
/// compute environments to the queue and assign an order of preference for the compute
/// environments.
///
///
/// <para>
/// You also set a priority to the job queue that determines the order that the Batch
/// scheduler places jobs onto its associated compute environments. For example, if a
/// compute environment is associated with more than one job queue, the job queue with
/// a higher priority is given preference for scheduling jobs to that compute environment.
/// </para>
/// </summary>
public partial class CreateJobQueueRequest : AmazonBatchRequest
{
private List<ComputeEnvironmentOrder> _computeEnvironmentOrder = new List<ComputeEnvironmentOrder>();
private string _jobQueueName;
private int? _priority;
private string _schedulingPolicyArn;
private JQState _state;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property ComputeEnvironmentOrder.
/// <para>
/// The set of compute environments mapped to a job queue and their order relative to
/// each other. The job scheduler uses this parameter to determine which compute environment
/// runs a specific job. Compute environments must be in the <code>VALID</code> state
/// before you can associate them with a job queue. You can associate up to three compute
/// environments with a job queue. All of the compute environments must be either EC2
/// (<code>EC2</code> or <code>SPOT</code>) or Fargate (<code>FARGATE</code> or <code>FARGATE_SPOT</code>);
/// EC2 and Fargate compute environments can't be mixed.
/// </para>
/// <note>
/// <para>
/// All compute environments that are associated with a job queue must share the same
/// architecture. Batch doesn't support mixing compute environment architecture types
/// in a single job queue.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Required=true)]
public List<ComputeEnvironmentOrder> ComputeEnvironmentOrder
{
get { return this._computeEnvironmentOrder; }
set { this._computeEnvironmentOrder = value; }
}
// Check to see if ComputeEnvironmentOrder property is set
internal bool IsSetComputeEnvironmentOrder()
{
return this._computeEnvironmentOrder != null && this._computeEnvironmentOrder.Count > 0;
}
/// <summary>
/// Gets and sets the property JobQueueName.
/// <para>
/// The name of the job queue. It can be up to 128 letters long. It can contain uppercase
/// and lowercase letters, numbers, hyphens (-), and underscores (_).
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string JobQueueName
{
get { return this._jobQueueName; }
set { this._jobQueueName = value; }
}
// Check to see if JobQueueName property is set
internal bool IsSetJobQueueName()
{
return this._jobQueueName != null;
}
/// <summary>
/// Gets and sets the property Priority.
/// <para>
/// The priority of the job queue. Job queues with a higher priority (or a higher integer
/// value for the <code>priority</code> parameter) are evaluated first when associated
/// with the same compute environment. Priority is determined in descending order. For
/// example, a job queue with a priority value of <code>10</code> is given scheduling
/// preference over a job queue with a priority value of <code>1</code>. All of the compute
/// environments must be either EC2 (<code>EC2</code> or <code>SPOT</code>) or Fargate
/// (<code>FARGATE</code> or <code>FARGATE_SPOT</code>); EC2 and Fargate compute environments
/// can't be mixed.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public int Priority
{
get { return this._priority.GetValueOrDefault(); }
set { this._priority = value; }
}
// Check to see if Priority property is set
internal bool IsSetPriority()
{
return this._priority.HasValue;
}
/// <summary>
/// Gets and sets the property SchedulingPolicyArn.
/// <para>
/// The Amazon Resource Name (ARN) of the fair share scheduling policy. If this parameter
/// is specified, the job queue uses a fair share scheduling policy. If this parameter
/// isn't specified, the job queue uses a first in, first out (FIFO) scheduling policy.
/// After a job queue is created, you can replace but can't remove the fair share scheduling
/// policy. The format is <code>aws:<i>Partition</i>:batch:<i>Region</i>:<i>Account</i>:scheduling-policy/<i>Name</i>
/// </code>. An example is <code>aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy</code>.
/// </para>
/// </summary>
public string SchedulingPolicyArn
{
get { return this._schedulingPolicyArn; }
set { this._schedulingPolicyArn = value; }
}
// Check to see if SchedulingPolicyArn property is set
internal bool IsSetSchedulingPolicyArn()
{
return this._schedulingPolicyArn != null;
}
/// <summary>
/// Gets and sets the property State.
/// <para>
/// The state of the job queue. If the job queue state is <code>ENABLED</code>, it is
/// able to accept jobs. If the job queue state is <code>DISABLED</code>, new jobs can't
/// be added to the queue, but jobs already in the queue can finish.
/// </para>
/// </summary>
public JQState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The tags that you apply to the job queue to help you categorize and organize your
/// resources. Each tag consists of a key and an optional value. For more information,
/// see <a href="https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html">Tagging
/// your Batch resources</a> in <i>Batch User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}
| 198 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// This is the response object from the CreateJobQueue operation.
/// </summary>
public partial class CreateJobQueueResponse : AmazonWebServiceResponse
{
private string _jobQueueArn;
private string _jobQueueName;
/// <summary>
/// Gets and sets the property JobQueueArn.
/// <para>
/// The Amazon Resource Name (ARN) of the job queue.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string JobQueueArn
{
get { return this._jobQueueArn; }
set { this._jobQueueArn = value; }
}
// Check to see if JobQueueArn property is set
internal bool IsSetJobQueueArn()
{
return this._jobQueueArn != null;
}
/// <summary>
/// Gets and sets the property JobQueueName.
/// <para>
/// The name of the job queue.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string JobQueueName
{
get { return this._jobQueueName; }
set { this._jobQueueName = value; }
}
// Check to see if JobQueueName property is set
internal bool IsSetJobQueueName()
{
return this._jobQueueName != 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// Container for the parameters to the CreateSchedulingPolicy operation.
/// Creates an Batch scheduling policy.
/// </summary>
public partial class CreateSchedulingPolicyRequest : AmazonBatchRequest
{
private FairsharePolicy _fairsharePolicy;
private string _name;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property FairsharePolicy.
/// <para>
/// The fair share policy of the scheduling policy.
/// </para>
/// </summary>
public FairsharePolicy FairsharePolicy
{
get { return this._fairsharePolicy; }
set { this._fairsharePolicy = value; }
}
// Check to see if FairsharePolicy property is set
internal bool IsSetFairsharePolicy()
{
return this._fairsharePolicy != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the scheduling policy. It can be up to 128 letters long. It can contain
/// uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The tags that you apply to the scheduling policy to help you categorize and organize
/// your resources. Each tag consists of a key and an optional value. For more information,
/// see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging
/// Amazon Web Services Resources</a> in <i>Amazon Web Services General Reference</i>.
/// </para>
///
/// <para>
/// These tags can be updated or removed using the <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_TagResource.html">TagResource</a>
/// and <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_UntagResource.html">UntagResource</a>
/// API operations.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}
| 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// This is the response object from the CreateSchedulingPolicy operation.
/// </summary>
public partial class CreateSchedulingPolicyResponse : AmazonWebServiceResponse
{
private string _arn;
private string _name;
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The Amazon Resource Name (ARN) of the scheduling policy. The format is <code>aws:<i>Partition</i>:batch:<i>Region</i>:<i>Account</i>:scheduling-policy/<i>Name</i>
/// </code>. For example, <code>aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the scheduling policy.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
}
}
| 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// Container for the parameters to the DeleteComputeEnvironment operation.
/// Deletes an Batch compute environment.
///
///
/// <para>
/// Before you can delete a compute environment, you must set its state to <code>DISABLED</code>
/// with the <a>UpdateComputeEnvironment</a> API operation and disassociate it from any
/// job queues with the <a>UpdateJobQueue</a> API operation. Compute environments that
/// use Fargate resources must terminate all active jobs on that compute environment before
/// deleting the compute environment. If this isn't done, the compute environment enters
/// an invalid state.
/// </para>
/// </summary>
public partial class DeleteComputeEnvironmentRequest : AmazonBatchRequest
{
private string _computeEnvironment;
/// <summary>
/// Gets and sets the property ComputeEnvironment.
/// <para>
/// The name or Amazon Resource Name (ARN) of the compute environment to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ComputeEnvironment
{
get { return this._computeEnvironment; }
set { this._computeEnvironment = value; }
}
// Check to see if ComputeEnvironment property is set
internal bool IsSetComputeEnvironment()
{
return this._computeEnvironment != null;
}
}
}
| 69 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// This is the response object from the DeleteComputeEnvironment operation.
/// </summary>
public partial class DeleteComputeEnvironmentResponse : 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// Container for the parameters to the DeleteJobQueue operation.
/// Deletes the specified job queue. You must first disable submissions for a queue with
/// the <a>UpdateJobQueue</a> operation. All jobs in the queue are eventually terminated
/// when you delete a job queue. The jobs are terminated at a rate of about 16 jobs each
/// second.
///
///
/// <para>
/// It's not necessary to disassociate compute environments from a queue before submitting
/// a <code>DeleteJobQueue</code> request.
/// </para>
/// </summary>
public partial class DeleteJobQueueRequest : AmazonBatchRequest
{
private string _jobQueue;
/// <summary>
/// Gets and sets the property JobQueue.
/// <para>
/// The short name or full Amazon Resource Name (ARN) of the queue to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string JobQueue
{
get { return this._jobQueue; }
set { this._jobQueue = value; }
}
// Check to see if JobQueue property is set
internal bool IsSetJobQueue()
{
return this._jobQueue != null;
}
}
}
| 68 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// This is the response object from the DeleteJobQueue operation.
/// </summary>
public partial class DeleteJobQueueResponse : 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// Container for the parameters to the DeleteSchedulingPolicy operation.
/// Deletes the specified scheduling policy.
///
///
/// <para>
/// You can't delete a scheduling policy that's used in any job queues.
/// </para>
/// </summary>
public partial class DeleteSchedulingPolicyRequest : AmazonBatchRequest
{
private string _arn;
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The Amazon Resource Name (ARN) of the scheduling policy to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
}
}
| 64 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// This is the response object from the DeleteSchedulingPolicy operation.
/// </summary>
public partial class DeleteSchedulingPolicyResponse : 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// Container for the parameters to the DeregisterJobDefinition operation.
/// Deregisters an Batch job definition. Job definitions are permanently deleted after
/// 180 days.
/// </summary>
public partial class DeregisterJobDefinitionRequest : AmazonBatchRequest
{
private string _jobDefinition;
/// <summary>
/// Gets and sets the property JobDefinition.
/// <para>
/// The name and revision (<code>name:revision</code>) or full Amazon Resource Name (ARN)
/// of the job definition to deregister.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string JobDefinition
{
get { return this._jobDefinition; }
set { this._jobDefinition = value; }
}
// Check to see if JobDefinition property is set
internal bool IsSetJobDefinition()
{
return this._jobDefinition != null;
}
}
}
| 61 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// This is the response object from the DeregisterJobDefinition operation.
/// </summary>
public partial class DeregisterJobDefinitionResponse : 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// Container for the parameters to the DescribeComputeEnvironments operation.
/// Describes one or more of your compute environments.
///
///
/// <para>
/// If you're using an unmanaged compute environment, you can use the <code>DescribeComputeEnvironment</code>
/// operation to determine the <code>ecsClusterArn</code> that you launch your Amazon
/// ECS container instances into.
/// </para>
/// </summary>
public partial class DescribeComputeEnvironmentsRequest : AmazonBatchRequest
{
private List<string> _computeEnvironments = new List<string>();
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property ComputeEnvironments.
/// <para>
/// A list of up to 100 compute environment names or full Amazon Resource Name (ARN) entries.
/// </para>
/// </summary>
public List<string> ComputeEnvironments
{
get { return this._computeEnvironments; }
set { this._computeEnvironments = value; }
}
// Check to see if ComputeEnvironments property is set
internal bool IsSetComputeEnvironments()
{
return this._computeEnvironments != null && this._computeEnvironments.Count > 0;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of cluster results returned by <code>DescribeComputeEnvironments</code>
/// in paginated output. When this parameter is used, <code>DescribeComputeEnvironments</code>
/// only returns <code>maxResults</code> results in a single page along with a <code>nextToken</code>
/// response element. The remaining results of the initial request can be seen by sending
/// another <code>DescribeComputeEnvironments</code> request with the returned <code>nextToken</code>
/// value. This value can be between 1 and 100. If this parameter isn't used, then <code>DescribeComputeEnvironments</code>
/// returns up to 100 results and a <code>nextToken</code> value if applicable.
/// </para>
/// </summary>
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>
/// The <code>nextToken</code> value returned from a previous paginated <code>DescribeComputeEnvironments</code>
/// request where <code>maxResults</code> was used and the results exceeded the value
/// of that parameter. Pagination continues from the end of the previous results that
/// returned the <code>nextToken</code> value. This value is <code>null</code> when there
/// are no more results to return.
/// </para>
/// <note>
/// <para>
/// Treat this token as an opaque identifier that's only used to retrieve the next items
/// in a list and not for other programmatic purposes.
/// </para>
/// </note>
/// </summary>
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;
}
}
}
| 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// This is the response object from the DescribeComputeEnvironments operation.
/// </summary>
public partial class DescribeComputeEnvironmentsResponse : AmazonWebServiceResponse
{
private List<ComputeEnvironmentDetail> _computeEnvironments = new List<ComputeEnvironmentDetail>();
private string _nextToken;
/// <summary>
/// Gets and sets the property ComputeEnvironments.
/// <para>
/// The list of compute environments.
/// </para>
/// </summary>
public List<ComputeEnvironmentDetail> ComputeEnvironments
{
get { return this._computeEnvironments; }
set { this._computeEnvironments = value; }
}
// Check to see if ComputeEnvironments property is set
internal bool IsSetComputeEnvironments()
{
return this._computeEnvironments != null && this._computeEnvironments.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The <code>nextToken</code> value to include in a future <code>DescribeComputeEnvironments</code>
/// request. When the results of a <code>DescribeComputeEnvironments</code> request exceed
/// <code>maxResults</code>, this value can be used to retrieve the next page of results.
/// This value is <code>null</code> when there are no more results to return.
/// </para>
/// </summary>
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;
}
}
}
| 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// Container for the parameters to the DescribeJobDefinitions operation.
/// Describes a list of job definitions. You can specify a <code>status</code> (such as
/// <code>ACTIVE</code>) to only return job definitions that match that status.
/// </summary>
public partial class DescribeJobDefinitionsRequest : AmazonBatchRequest
{
private string _jobDefinitionName;
private List<string> _jobDefinitions = new List<string>();
private int? _maxResults;
private string _nextToken;
private string _status;
/// <summary>
/// Gets and sets the property JobDefinitionName.
/// <para>
/// The name of the job definition to describe.
/// </para>
/// </summary>
public string JobDefinitionName
{
get { return this._jobDefinitionName; }
set { this._jobDefinitionName = value; }
}
// Check to see if JobDefinitionName property is set
internal bool IsSetJobDefinitionName()
{
return this._jobDefinitionName != null;
}
/// <summary>
/// Gets and sets the property JobDefinitions.
/// <para>
/// A list of up to 100 job definitions. Each entry in the list can either be an ARN in
/// the format <code>arn:aws:batch:${Region}:${Account}:job-definition/${JobDefinitionName}:${Revision}</code>
/// or a short version using the form <code>${JobDefinitionName}:${Revision}</code>.
/// </para>
/// </summary>
public List<string> JobDefinitions
{
get { return this._jobDefinitions; }
set { this._jobDefinitions = value; }
}
// Check to see if JobDefinitions property is set
internal bool IsSetJobDefinitions()
{
return this._jobDefinitions != null && this._jobDefinitions.Count > 0;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results returned by <code>DescribeJobDefinitions</code> in paginated
/// output. When this parameter is used, <code>DescribeJobDefinitions</code> only returns
/// <code>maxResults</code> results in a single page and a <code>nextToken</code> response
/// element. The remaining results of the initial request can be seen by sending another
/// <code>DescribeJobDefinitions</code> request with the returned <code>nextToken</code>
/// value. This value can be between 1 and 100. If this parameter isn't used, then <code>DescribeJobDefinitions</code>
/// returns up to 100 results and a <code>nextToken</code> value if applicable.
/// </para>
/// </summary>
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>
/// The <code>nextToken</code> value returned from a previous paginated <code>DescribeJobDefinitions</code>
/// request where <code>maxResults</code> was used and the results exceeded the value
/// of that parameter. Pagination continues from the end of the previous results that
/// returned the <code>nextToken</code> value. This value is <code>null</code> when there
/// are no more results to return.
/// </para>
/// <note>
/// <para>
/// Treat this token as an opaque identifier that's only used to retrieve the next items
/// in a list and not for other programmatic purposes.
/// </para>
/// </note>
/// </summary>
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 Status.
/// <para>
/// The status used to filter job definitions.
/// </para>
/// </summary>
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;
}
}
}
| 153 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// This is the response object from the DescribeJobDefinitions operation.
/// </summary>
public partial class DescribeJobDefinitionsResponse : AmazonWebServiceResponse
{
private List<JobDefinition> _jobDefinitions = new List<JobDefinition>();
private string _nextToken;
/// <summary>
/// Gets and sets the property JobDefinitions.
/// <para>
/// The list of job definitions.
/// </para>
/// </summary>
public List<JobDefinition> JobDefinitions
{
get { return this._jobDefinitions; }
set { this._jobDefinitions = value; }
}
// Check to see if JobDefinitions property is set
internal bool IsSetJobDefinitions()
{
return this._jobDefinitions != null && this._jobDefinitions.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The <code>nextToken</code> value to include in a future <code>DescribeJobDefinitions</code>
/// request. When the results of a <code>DescribeJobDefinitions</code> request exceed
/// <code>maxResults</code>, this value can be used to retrieve the next page of results.
/// This value is <code>null</code> when there are no more results to return.
/// </para>
/// </summary>
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;
}
}
}
| 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// Container for the parameters to the DescribeJobQueues operation.
/// Describes one or more of your job queues.
/// </summary>
public partial class DescribeJobQueuesRequest : AmazonBatchRequest
{
private List<string> _jobQueues = new List<string>();
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property JobQueues.
/// <para>
/// A list of up to 100 queue names or full queue Amazon Resource Name (ARN) entries.
/// </para>
/// </summary>
public List<string> JobQueues
{
get { return this._jobQueues; }
set { this._jobQueues = value; }
}
// Check to see if JobQueues property is set
internal bool IsSetJobQueues()
{
return this._jobQueues != null && this._jobQueues.Count > 0;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results returned by <code>DescribeJobQueues</code> in paginated
/// output. When this parameter is used, <code>DescribeJobQueues</code> only returns <code>maxResults</code>
/// results in a single page and a <code>nextToken</code> response element. The remaining
/// results of the initial request can be seen by sending another <code>DescribeJobQueues</code>
/// request with the returned <code>nextToken</code> value. This value can be between
/// 1 and 100. If this parameter isn't used, then <code>DescribeJobQueues</code> returns
/// up to 100 results and a <code>nextToken</code> value if applicable.
/// </para>
/// </summary>
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>
/// The <code>nextToken</code> value returned from a previous paginated <code>DescribeJobQueues</code>
/// request where <code>maxResults</code> was used and the results exceeded the value
/// of that parameter. Pagination continues from the end of the previous results that
/// returned the <code>nextToken</code> value. This value is <code>null</code> when there
/// are no more results to return.
/// </para>
/// <note>
/// <para>
/// Treat this token as an opaque identifier that's only used to retrieve the next items
/// in a list and not for other programmatic purposes.
/// </para>
/// </note>
/// </summary>
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;
}
}
}
| 112 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// This is the response object from the DescribeJobQueues operation.
/// </summary>
public partial class DescribeJobQueuesResponse : AmazonWebServiceResponse
{
private List<JobQueueDetail> _jobQueues = new List<JobQueueDetail>();
private string _nextToken;
/// <summary>
/// Gets and sets the property JobQueues.
/// <para>
/// The list of job queues.
/// </para>
/// </summary>
public List<JobQueueDetail> JobQueues
{
get { return this._jobQueues; }
set { this._jobQueues = value; }
}
// Check to see if JobQueues property is set
internal bool IsSetJobQueues()
{
return this._jobQueues != null && this._jobQueues.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The <code>nextToken</code> value to include in a future <code>DescribeJobQueues</code>
/// request. When the results of a <code>DescribeJobQueues</code> request exceed <code>maxResults</code>,
/// this value can be used to retrieve the next page of results. This value is <code>null</code>
/// when there are no more results to return.
/// </para>
/// </summary>
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;
}
}
}
| 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// Container for the parameters to the DescribeJobs operation.
/// Describes a list of Batch jobs.
/// </summary>
public partial class DescribeJobsRequest : AmazonBatchRequest
{
private List<string> _jobs = new List<string>();
/// <summary>
/// Gets and sets the property Jobs.
/// <para>
/// A list of up to 100 job IDs.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> Jobs
{
get { return this._jobs; }
set { this._jobs = value; }
}
// Check to see if Jobs property is set
internal bool IsSetJobs()
{
return this._jobs != null && this._jobs.Count > 0;
}
}
}
| 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// This is the response object from the DescribeJobs operation.
/// </summary>
public partial class DescribeJobsResponse : AmazonWebServiceResponse
{
private List<JobDetail> _jobs = new List<JobDetail>();
/// <summary>
/// Gets and sets the property Jobs.
/// <para>
/// The list of jobs.
/// </para>
/// </summary>
public List<JobDetail> Jobs
{
get { return this._jobs; }
set { this._jobs = value; }
}
// Check to see if Jobs property is set
internal bool IsSetJobs()
{
return this._jobs != null && this._jobs.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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// Container for the parameters to the DescribeSchedulingPolicies operation.
/// Describes one or more of your scheduling policies.
/// </summary>
public partial class DescribeSchedulingPoliciesRequest : AmazonBatchRequest
{
private List<string> _arns = new List<string>();
/// <summary>
/// Gets and sets the property Arns.
/// <para>
/// A list of up to 100 scheduling policy Amazon Resource Name (ARN) entries.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> Arns
{
get { return this._arns; }
set { this._arns = value; }
}
// Check to see if Arns property is set
internal bool IsSetArns()
{
return this._arns != null && this._arns.Count > 0;
}
}
}
| 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// This is the response object from the DescribeSchedulingPolicies operation.
/// </summary>
public partial class DescribeSchedulingPoliciesResponse : AmazonWebServiceResponse
{
private List<SchedulingPolicyDetail> _schedulingPolicies = new List<SchedulingPolicyDetail>();
/// <summary>
/// Gets and sets the property SchedulingPolicies.
/// <para>
/// The list of scheduling policies.
/// </para>
/// </summary>
public List<SchedulingPolicyDetail> SchedulingPolicies
{
get { return this._schedulingPolicies; }
set { this._schedulingPolicies = value; }
}
// Check to see if SchedulingPolicies property is set
internal bool IsSetSchedulingPolicies()
{
return this._schedulingPolicies != null && this._schedulingPolicies.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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// An object that represents a container instance host device.
///
/// <note>
/// <para>
/// This object isn't applicable to jobs that are running on Fargate resources and shouldn't
/// be provided.
/// </para>
/// </note>
/// </summary>
public partial class Device
{
private string _containerPath;
private string _hostPath;
private List<string> _permissions = new List<string>();
/// <summary>
/// Gets and sets the property ContainerPath.
/// <para>
/// The path inside the container that's used to expose the host device. By default, the
/// <code>hostPath</code> value is used.
/// </para>
/// </summary>
public string ContainerPath
{
get { return this._containerPath; }
set { this._containerPath = value; }
}
// Check to see if ContainerPath property is set
internal bool IsSetContainerPath()
{
return this._containerPath != null;
}
/// <summary>
/// Gets and sets the property HostPath.
/// <para>
/// The path for the device on the host container instance.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string HostPath
{
get { return this._hostPath; }
set { this._hostPath = value; }
}
// Check to see if HostPath property is set
internal bool IsSetHostPath()
{
return this._hostPath != null;
}
/// <summary>
/// Gets and sets the property Permissions.
/// <para>
/// The explicit permissions to provide to the container for the device. By default, the
/// container has permissions for <code>read</code>, <code>write</code>, and <code>mknod</code>
/// for the device.
/// </para>
/// </summary>
public List<string> Permissions
{
get { return this._permissions; }
set { this._permissions = value; }
}
// Check to see if Permissions property is set
internal bool IsSetPermissions()
{
return this._permissions != null && this._permissions.Count > 0;
}
}
}
| 106 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// Provides information used to select Amazon Machine Images (AMIs) for instances in
/// the compute environment. If <code>Ec2Configuration</code> isn't specified, the default
/// is <code>ECS_AL2</code> (<a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami">Amazon
/// Linux 2</a>).
///
/// <note>
/// <para>
/// This object isn't applicable to jobs that are running on Fargate resources.
/// </para>
/// </note>
/// </summary>
public partial class Ec2Configuration
{
private string _imageIdOverride;
private string _imageKubernetesVersion;
private string _imageType;
/// <summary>
/// Gets and sets the property ImageIdOverride.
/// <para>
/// The AMI ID used for instances launched in the compute environment that match the image
/// type. This setting overrides the <code>imageId</code> set in the <code>computeResource</code>
/// object.
/// </para>
/// <note>
/// <para>
/// The AMI that you choose for a compute environment must match the architecture of the
/// instance types that you intend to use for that compute environment. For example, if
/// your compute environment uses A1 instance types, the compute resource AMI that you
/// choose must support ARM instances. Amazon ECS vends both x86 and ARM versions of the
/// Amazon ECS-optimized Amazon Linux 2 AMI. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#ecs-optimized-ami-linux-variants.html">Amazon
/// ECS-optimized Amazon Linux 2 AMI</a> in the <i>Amazon Elastic Container Service Developer
/// Guide</i>.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string ImageIdOverride
{
get { return this._imageIdOverride; }
set { this._imageIdOverride = value; }
}
// Check to see if ImageIdOverride property is set
internal bool IsSetImageIdOverride()
{
return this._imageIdOverride != null;
}
/// <summary>
/// Gets and sets the property ImageKubernetesVersion.
/// <para>
/// The Kubernetes version for the compute environment. If you don't specify a value,
/// the latest version that Batch supports is used.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string ImageKubernetesVersion
{
get { return this._imageKubernetesVersion; }
set { this._imageKubernetesVersion = value; }
}
// Check to see if ImageKubernetesVersion property is set
internal bool IsSetImageKubernetesVersion()
{
return this._imageKubernetesVersion != null;
}
/// <summary>
/// Gets and sets the property ImageType.
/// <para>
/// The image type to match with the instance type to select an AMI. The supported values
/// are different for <code>ECS</code> and <code>EKS</code> resources.
/// </para>
/// <dl> <dt>ECS</dt> <dd>
/// <para>
/// If the <code>imageIdOverride</code> parameter isn't specified, then a recent <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami">Amazon
/// ECS-optimized Amazon Linux 2 AMI</a> (<code>ECS_AL2</code>) is used. If a new image
/// type is specified in an update, but neither an <code>imageId</code> nor a <code>imageIdOverride</code>
/// parameter is specified, then the latest Amazon ECS optimized AMI for that image type
/// that's supported by Batch is used.
/// </para>
/// <dl> <dt>ECS_AL2</dt> <dd>
/// <para>
/// <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami">Amazon
/// Linux 2</a>: Default for all non-GPU instance families.
/// </para>
/// </dd> <dt>ECS_AL2_NVIDIA</dt> <dd>
/// <para>
/// <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#gpuami">Amazon
/// Linux 2 (GPU)</a>: Default for all GPU instance families (for example <code>P4</code>
/// and <code>G4</code>) and can be used for all non Amazon Web Services Graviton-based
/// instance types.
/// </para>
/// </dd> <dt>ECS_AL1</dt> <dd>
/// <para>
/// <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#alami">Amazon
/// Linux</a>. Amazon Linux has reached the end-of-life of standard support. For more
/// information, see <a href="http://aws.amazon.com/amazon-linux-ami/">Amazon Linux AMI</a>.
/// </para>
/// </dd> </dl> </dd> <dt>EKS</dt> <dd>
/// <para>
/// If the <code>imageIdOverride</code> parameter isn't specified, then a recent <a href="https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html">Amazon
/// EKS-optimized Amazon Linux AMI</a> (<code>EKS_AL2</code>) is used. If a new image
/// type is specified in an update, but neither an <code>imageId</code> nor a <code>imageIdOverride</code>
/// parameter is specified, then the latest Amazon EKS optimized AMI for that image type
/// that Batch supports is used.
/// </para>
/// <dl> <dt>EKS_AL2</dt> <dd>
/// <para>
/// <a href="https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html">Amazon
/// Linux 2</a>: Default for all non-GPU instance families.
/// </para>
/// </dd> <dt>EKS_AL2_NVIDIA</dt> <dd>
/// <para>
/// <a href="https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html">Amazon
/// Linux 2 (accelerated)</a>: Default for all GPU instance families (for example, <code>P4</code>
/// and <code>G4</code>) and can be used for all non Amazon Web Services Graviton-based
/// instance types.
/// </para>
/// </dd> </dl> </dd> </dl>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string ImageType
{
get { return this._imageType; }
set { this._imageType = value; }
}
// Check to see if ImageType property is set
internal bool IsSetImageType()
{
return this._imageType != null;
}
}
}
| 169 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// The authorization configuration details for the Amazon EFS file system.
/// </summary>
public partial class EFSAuthorizationConfig
{
private string _accessPointId;
private EFSAuthorizationConfigIAM _iam;
/// <summary>
/// Gets and sets the property AccessPointId.
/// <para>
/// The Amazon EFS access point ID to use. If an access point is specified, the root directory
/// value specified in the <code>EFSVolumeConfiguration</code> must either be omitted
/// or set to <code>/</code> which enforces the path set on the EFS access point. If an
/// access point is used, transit encryption must be enabled in the <code>EFSVolumeConfiguration</code>.
/// For more information, see <a href="https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html">Working
/// with Amazon EFS access points</a> in the <i>Amazon Elastic File System User Guide</i>.
/// </para>
/// </summary>
public string AccessPointId
{
get { return this._accessPointId; }
set { this._accessPointId = value; }
}
// Check to see if AccessPointId property is set
internal bool IsSetAccessPointId()
{
return this._accessPointId != null;
}
/// <summary>
/// Gets and sets the property Iam.
/// <para>
/// Whether or not to use the Batch job IAM role defined in a job definition when mounting
/// the Amazon EFS file system. If enabled, transit encryption must be enabled in the
/// <code>EFSVolumeConfiguration</code>. If this parameter is omitted, the default value
/// of <code>DISABLED</code> is used. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/efs-volumes.html#efs-volume-accesspoints">Using
/// Amazon EFS access points</a> in the <i>Batch User Guide</i>. EFS IAM authorization
/// requires that <code>TransitEncryption</code> be <code>ENABLED</code> and that a <code>JobRoleArn</code>
/// is specified.
/// </para>
/// </summary>
public EFSAuthorizationConfigIAM Iam
{
get { return this._iam; }
set { this._iam = value; }
}
// Check to see if Iam property is set
internal bool IsSetIam()
{
return this._iam != null;
}
}
}
| 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// This is used when you're using an Amazon Elastic File System file system for job storage.
/// For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/efs-volumes.html">Amazon
/// EFS Volumes</a> in the <i>Batch User Guide</i>.
/// </summary>
public partial class EFSVolumeConfiguration
{
private EFSAuthorizationConfig _authorizationConfig;
private string _fileSystemId;
private string _rootDirectory;
private EFSTransitEncryption _transitEncryption;
private int? _transitEncryptionPort;
/// <summary>
/// Gets and sets the property AuthorizationConfig.
/// <para>
/// The authorization configuration details for the Amazon EFS file system.
/// </para>
/// </summary>
public EFSAuthorizationConfig AuthorizationConfig
{
get { return this._authorizationConfig; }
set { this._authorizationConfig = value; }
}
// Check to see if AuthorizationConfig property is set
internal bool IsSetAuthorizationConfig()
{
return this._authorizationConfig != null;
}
/// <summary>
/// Gets and sets the property FileSystemId.
/// <para>
/// The Amazon EFS file system ID to use.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string FileSystemId
{
get { return this._fileSystemId; }
set { this._fileSystemId = value; }
}
// Check to see if FileSystemId property is set
internal bool IsSetFileSystemId()
{
return this._fileSystemId != null;
}
/// <summary>
/// Gets and sets the property RootDirectory.
/// <para>
/// The directory within the Amazon EFS file system to mount as the root directory inside
/// the host. If this parameter is omitted, the root of the Amazon EFS volume is used
/// instead. Specifying <code>/</code> has the same effect as omitting this parameter.
/// The maximum length is 4,096 characters.
/// </para>
/// <important>
/// <para>
/// If an EFS access point is specified in the <code>authorizationConfig</code>, the root
/// directory parameter must either be omitted or set to <code>/</code>, which enforces
/// the path set on the Amazon EFS access point.
/// </para>
/// </important>
/// </summary>
public string RootDirectory
{
get { return this._rootDirectory; }
set { this._rootDirectory = value; }
}
// Check to see if RootDirectory property is set
internal bool IsSetRootDirectory()
{
return this._rootDirectory != null;
}
/// <summary>
/// Gets and sets the property TransitEncryption.
/// <para>
/// Determines whether to enable encryption for Amazon EFS data in transit between the
/// Amazon ECS host and the Amazon EFS server. Transit encryption must be enabled if Amazon
/// EFS IAM authorization is used. If this parameter is omitted, the default value of
/// <code>DISABLED</code> is used. For more information, see <a href="https://docs.aws.amazon.com/efs/latest/ug/encryption-in-transit.html">Encrypting
/// data in transit</a> in the <i>Amazon Elastic File System User Guide</i>.
/// </para>
/// </summary>
public EFSTransitEncryption TransitEncryption
{
get { return this._transitEncryption; }
set { this._transitEncryption = value; }
}
// Check to see if TransitEncryption property is set
internal bool IsSetTransitEncryption()
{
return this._transitEncryption != null;
}
/// <summary>
/// Gets and sets the property TransitEncryptionPort.
/// <para>
/// The port to use when sending encrypted data between the Amazon ECS host and the Amazon
/// EFS server. If you don't specify a transit encryption port, it uses the port selection
/// strategy that the Amazon EFS mount helper uses. The value must be between 0 and 65,535.
/// For more information, see <a href="https://docs.aws.amazon.com/efs/latest/ug/efs-mount-helper.html">EFS
/// mount helper</a> in the <i>Amazon Elastic File System User Guide</i>.
/// </para>
/// </summary>
public int TransitEncryptionPort
{
get { return this._transitEncryptionPort.GetValueOrDefault(); }
set { this._transitEncryptionPort = value; }
}
// Check to see if TransitEncryptionPort property is set
internal bool IsSetTransitEncryptionPort()
{
return this._transitEncryptionPort.HasValue;
}
}
}
| 154 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// An object that represents the details for an attempt for a job attempt that an Amazon
/// EKS container runs.
/// </summary>
public partial class EksAttemptContainerDetail
{
private int? _exitCode;
private string _reason;
/// <summary>
/// Gets and sets the property ExitCode.
/// <para>
/// The exit code for the job attempt. A non-zero exit code is considered failed.
/// </para>
/// </summary>
public int ExitCode
{
get { return this._exitCode.GetValueOrDefault(); }
set { this._exitCode = value; }
}
// Check to see if ExitCode property is set
internal bool IsSetExitCode()
{
return this._exitCode.HasValue;
}
/// <summary>
/// Gets and sets the property Reason.
/// <para>
/// A short (255 max characters) human-readable string to provide additional details for
/// a running or stopped container.
/// </para>
/// </summary>
public string Reason
{
get { return this._reason; }
set { this._reason = value; }
}
// Check to see if Reason property is set
internal bool IsSetReason()
{
return this._reason != 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// An object that represents the details of a job attempt for a job attempt by an Amazon
/// EKS container.
/// </summary>
public partial class EksAttemptDetail
{
private List<EksAttemptContainerDetail> _containers = new List<EksAttemptContainerDetail>();
private string _nodeName;
private string _podName;
private long? _startedAt;
private string _statusReason;
private long? _stoppedAt;
/// <summary>
/// Gets and sets the property Containers.
/// <para>
/// The details for the final status of the containers for this job attempt.
/// </para>
/// </summary>
public List<EksAttemptContainerDetail> Containers
{
get { return this._containers; }
set { this._containers = value; }
}
// Check to see if Containers property is set
internal bool IsSetContainers()
{
return this._containers != null && this._containers.Count > 0;
}
/// <summary>
/// Gets and sets the property NodeName.
/// <para>
/// The name of the node for this job attempt.
/// </para>
/// </summary>
public string NodeName
{
get { return this._nodeName; }
set { this._nodeName = value; }
}
// Check to see if NodeName property is set
internal bool IsSetNodeName()
{
return this._nodeName != null;
}
/// <summary>
/// Gets and sets the property PodName.
/// <para>
/// The name of the pod for this job attempt.
/// </para>
/// </summary>
public string PodName
{
get { return this._podName; }
set { this._podName = value; }
}
// Check to see if PodName property is set
internal bool IsSetPodName()
{
return this._podName != null;
}
/// <summary>
/// Gets and sets the property StartedAt.
/// <para>
/// The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt
/// transitioned from the <code>STARTING</code> state to the <code>RUNNING</code> state).
/// </para>
/// </summary>
public long StartedAt
{
get { return this._startedAt.GetValueOrDefault(); }
set { this._startedAt = value; }
}
// Check to see if StartedAt property is set
internal bool IsSetStartedAt()
{
return this._startedAt.HasValue;
}
/// <summary>
/// Gets and sets the property StatusReason.
/// <para>
/// A short, human-readable string to provide additional details for the current status
/// of the job attempt.
/// </para>
/// </summary>
public string StatusReason
{
get { return this._statusReason; }
set { this._statusReason = value; }
}
// Check to see if StatusReason property is set
internal bool IsSetStatusReason()
{
return this._statusReason != null;
}
/// <summary>
/// Gets and sets the property StoppedAt.
/// <para>
/// The Unix timestamp (in milliseconds) for when the attempt was stopped. This happens
/// when the attempt transitioned from the <code>RUNNING</code> state to a terminal state,
/// such as <code>SUCCEEDED</code> or <code>FAILED</code>.
/// </para>
/// </summary>
public long StoppedAt
{
get { return this._stoppedAt.GetValueOrDefault(); }
set { this._stoppedAt = value; }
}
// Check to see if StoppedAt property is set
internal bool IsSetStoppedAt()
{
return this._stoppedAt.HasValue;
}
}
}
| 157 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// Configuration for the Amazon EKS cluster that supports the Batch compute environment.
/// The cluster must exist before the compute environment can be created.
/// </summary>
public partial class EksConfiguration
{
private string _eksClusterArn;
private string _kubernetesNamespace;
/// <summary>
/// Gets and sets the property EksClusterArn.
/// <para>
/// The Amazon Resource Name (ARN) of the Amazon EKS cluster. An example is <code>arn:<i>aws</i>:eks:<i>us-east-1</i>:<i>123456789012</i>:cluster/<i>ClusterForBatch</i>
/// </code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string EksClusterArn
{
get { return this._eksClusterArn; }
set { this._eksClusterArn = value; }
}
// Check to see if EksClusterArn property is set
internal bool IsSetEksClusterArn()
{
return this._eksClusterArn != null;
}
/// <summary>
/// Gets and sets the property KubernetesNamespace.
/// <para>
/// The namespace of the Amazon EKS cluster. Batch manages pods in this namespace. The
/// value can't left empty or null. It must be fewer than 64 characters long, can't be
/// set to <code>default</code>, can't start with "<code>kube-</code>," and must match
/// this regular expression: <code>^[a-z0-9]([-a-z0-9]*[a-z0-9])?$</code>. For more information,
/// see <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/">Namespaces</a>
/// in the Kubernetes documentation.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string KubernetesNamespace
{
get { return this._kubernetesNamespace; }
set { this._kubernetesNamespace = value; }
}
// Check to see if KubernetesNamespace property is set
internal bool IsSetKubernetesNamespace()
{
return this._kubernetesNamespace != 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// EKS container properties are used in job definitions for Amazon EKS based job definitions
/// to describe the properties for a container node in the pod that's launched as part
/// of a job. This can't be specified for Amazon ECS based job definitions.
/// </summary>
public partial class EksContainer
{
private List<string> _args = new List<string>();
private List<string> _command = new List<string>();
private List<EksContainerEnvironmentVariable> _env = new List<EksContainerEnvironmentVariable>();
private string _image;
private string _imagePullPolicy;
private string _name;
private EksContainerResourceRequirements _resources;
private EksContainerSecurityContext _securityContext;
private List<EksContainerVolumeMount> _volumeMounts = new List<EksContainerVolumeMount>();
/// <summary>
/// Gets and sets the property Args.
/// <para>
/// An array of arguments to the entrypoint. If this isn't specified, the <code>CMD</code>
/// of the container image is used. This corresponds to the <code>args</code> member in
/// the <a href="https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#entrypoint">Entrypoint</a>
/// portion of the <a href="https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/">Pod</a>
/// in Kubernetes. Environment variable references are expanded using the container's
/// environment.
/// </para>
///
/// <para>
/// If the referenced environment variable doesn't exist, the reference in the command
/// isn't changed. For example, if the reference is to "<code>$(NAME1)</code>" and the
/// <code>NAME1</code> environment variable doesn't exist, the command string will remain
/// "<code>$(NAME1)</code>." <code>$$</code> is replaced with <code>$</code>, and the
/// resulting string isn't expanded. For example, <code>$$(VAR_NAME)</code> is passed
/// as <code>$(VAR_NAME)</code> whether or not the <code>VAR_NAME</code> environment variable
/// exists. For more information, see <a href="https://docs.docker.com/engine/reference/builder/#cmd">CMD</a>
/// in the <i>Dockerfile reference</i> and <a href="https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/">Define
/// a command and arguments for a pod</a> in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public List<string> Args
{
get { return this._args; }
set { this._args = value; }
}
// Check to see if Args property is set
internal bool IsSetArgs()
{
return this._args != null && this._args.Count > 0;
}
/// <summary>
/// Gets and sets the property Command.
/// <para>
/// The entrypoint for the container. This isn't run within a shell. If this isn't specified,
/// the <code>ENTRYPOINT</code> of the container image is used. Environment variable references
/// are expanded using the container's environment.
/// </para>
///
/// <para>
/// If the referenced environment variable doesn't exist, the reference in the command
/// isn't changed. For example, if the reference is to "<code>$(NAME1)</code>" and the
/// <code>NAME1</code> environment variable doesn't exist, the command string will remain
/// "<code>$(NAME1)</code>." <code>$$</code> is replaced with <code>$</code> and the resulting
/// string isn't expanded. For example, <code>$$(VAR_NAME)</code> will be passed as <code>$(VAR_NAME)</code>
/// whether or not the <code>VAR_NAME</code> environment variable exists. The entrypoint
/// can't be updated. For more information, see <a href="https://docs.docker.com/engine/reference/builder/#entrypoint">ENTRYPOINT</a>
/// in the <i>Dockerfile reference</i> and <a href="https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/">Define
/// a command and arguments for a container</a> and <a href="https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#entrypoint">Entrypoint</a>
/// in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public List<string> Command
{
get { return this._command; }
set { this._command = value; }
}
// Check to see if Command property is set
internal bool IsSetCommand()
{
return this._command != null && this._command.Count > 0;
}
/// <summary>
/// Gets and sets the property Env.
/// <para>
/// The environment variables to pass to a container.
/// </para>
/// <note>
/// <para>
/// Environment variables cannot start with "<code>AWS_BATCH</code>". This naming convention
/// is reserved for variables that Batch sets.
/// </para>
/// </note>
/// </summary>
public List<EksContainerEnvironmentVariable> Env
{
get { return this._env; }
set { this._env = value; }
}
// Check to see if Env property is set
internal bool IsSetEnv()
{
return this._env != null && this._env.Count > 0;
}
/// <summary>
/// Gets and sets the property Image.
/// <para>
/// The Docker image used to start the container.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Image
{
get { return this._image; }
set { this._image = value; }
}
// Check to see if Image property is set
internal bool IsSetImage()
{
return this._image != null;
}
/// <summary>
/// Gets and sets the property ImagePullPolicy.
/// <para>
/// The image pull policy for the container. Supported values are <code>Always</code>,
/// <code>IfNotPresent</code>, and <code>Never</code>. This parameter defaults to <code>IfNotPresent</code>.
/// However, if the <code>:latest</code> tag is specified, it defaults to <code>Always</code>.
/// For more information, see <a href="https://kubernetes.io/docs/concepts/containers/images/#updating-images">Updating
/// images</a> in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public string ImagePullPolicy
{
get { return this._imagePullPolicy; }
set { this._imagePullPolicy = value; }
}
// Check to see if ImagePullPolicy property is set
internal bool IsSetImagePullPolicy()
{
return this._imagePullPolicy != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the container. If the name isn't specified, the default name "<code>Default</code>"
/// is used. Each container in a pod must have a unique name.
/// </para>
/// </summary>
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Resources.
/// <para>
/// The type and amount of resources to assign to a container. The supported resources
/// include <code>memory</code>, <code>cpu</code>, and <code>nvidia.com/gpu</code>. For
/// more information, see <a href="https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/">Resource
/// management for pods and containers</a> in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public EksContainerResourceRequirements Resources
{
get { return this._resources; }
set { this._resources = value; }
}
// Check to see if Resources property is set
internal bool IsSetResources()
{
return this._resources != null;
}
/// <summary>
/// Gets and sets the property SecurityContext.
/// <para>
/// The security context for a job. For more information, see <a href="https://kubernetes.io/docs/tasks/configure-pod-container/security-context/">Configure
/// a security context for a pod or container</a> in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public EksContainerSecurityContext SecurityContext
{
get { return this._securityContext; }
set { this._securityContext = value; }
}
// Check to see if SecurityContext property is set
internal bool IsSetSecurityContext()
{
return this._securityContext != null;
}
/// <summary>
/// Gets and sets the property VolumeMounts.
/// <para>
/// The volume mounts for the container. Batch supports <code>emptyDir</code>, <code>hostPath</code>,
/// and <code>secret</code> volume types. For more information about volumes and volume
/// mounts in Kubernetes, see <a href="https://kubernetes.io/docs/concepts/storage/volumes/">Volumes</a>
/// in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public List<EksContainerVolumeMount> VolumeMounts
{
get { return this._volumeMounts; }
set { this._volumeMounts = value; }
}
// Check to see if VolumeMounts property is set
internal bool IsSetVolumeMounts()
{
return this._volumeMounts != null && this._volumeMounts.Count > 0;
}
}
}
| 262 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// The details for container properties that are returned by <code>DescribeJobs</code>
/// for jobs that use Amazon EKS.
/// </summary>
public partial class EksContainerDetail
{
private List<string> _args = new List<string>();
private List<string> _command = new List<string>();
private List<EksContainerEnvironmentVariable> _env = new List<EksContainerEnvironmentVariable>();
private int? _exitCode;
private string _image;
private string _imagePullPolicy;
private string _name;
private string _reason;
private EksContainerResourceRequirements _resources;
private EksContainerSecurityContext _securityContext;
private List<EksContainerVolumeMount> _volumeMounts = new List<EksContainerVolumeMount>();
/// <summary>
/// Gets and sets the property Args.
/// <para>
/// An array of arguments to the entrypoint. If this isn't specified, the <code>CMD</code>
/// of the container image is used. This corresponds to the <code>args</code> member in
/// the <a href="https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#entrypoint">Entrypoint</a>
/// portion of the <a href="https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/">Pod</a>
/// in Kubernetes. Environment variable references are expanded using the container's
/// environment.
/// </para>
///
/// <para>
/// If the referenced environment variable doesn't exist, the reference in the command
/// isn't changed. For example, if the reference is to "<code>$(NAME1)</code>" and the
/// <code>NAME1</code> environment variable doesn't exist, the command string will remain
/// "<code>$(NAME1)</code>". <code>$$</code> is replaced with <code>$</code> and the resulting
/// string isn't expanded. For example, <code>$$(VAR_NAME)</code> is passed as <code>$(VAR_NAME)</code>
/// whether or not the <code>VAR_NAME</code> environment variable exists. For more information,
/// see <a href="https://docs.docker.com/engine/reference/builder/#cmd">CMD</a> in the
/// <i>Dockerfile reference</i> and <a href="https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/">Define
/// a command and arguments for a pod</a> in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public List<string> Args
{
get { return this._args; }
set { this._args = value; }
}
// Check to see if Args property is set
internal bool IsSetArgs()
{
return this._args != null && this._args.Count > 0;
}
/// <summary>
/// Gets and sets the property Command.
/// <para>
/// The entrypoint for the container. For more information, see <a href="https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#entrypoint">Entrypoint</a>
/// in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public List<string> Command
{
get { return this._command; }
set { this._command = value; }
}
// Check to see if Command property is set
internal bool IsSetCommand()
{
return this._command != null && this._command.Count > 0;
}
/// <summary>
/// Gets and sets the property Env.
/// <para>
/// The environment variables to pass to a container.
/// </para>
/// <note>
/// <para>
/// Environment variables cannot start with "<code>AWS_BATCH</code>". This naming convention
/// is reserved for variables that Batch sets.
/// </para>
/// </note>
/// </summary>
public List<EksContainerEnvironmentVariable> Env
{
get { return this._env; }
set { this._env = value; }
}
// Check to see if Env property is set
internal bool IsSetEnv()
{
return this._env != null && this._env.Count > 0;
}
/// <summary>
/// Gets and sets the property ExitCode.
/// <para>
/// The exit code for the job attempt. A non-zero exit code is considered failed.
/// </para>
/// </summary>
public int ExitCode
{
get { return this._exitCode.GetValueOrDefault(); }
set { this._exitCode = value; }
}
// Check to see if ExitCode property is set
internal bool IsSetExitCode()
{
return this._exitCode.HasValue;
}
/// <summary>
/// Gets and sets the property Image.
/// <para>
/// The Docker image used to start the container.
/// </para>
/// </summary>
public string Image
{
get { return this._image; }
set { this._image = value; }
}
// Check to see if Image property is set
internal bool IsSetImage()
{
return this._image != null;
}
/// <summary>
/// Gets and sets the property ImagePullPolicy.
/// <para>
/// The image pull policy for the container. Supported values are <code>Always</code>,
/// <code>IfNotPresent</code>, and <code>Never</code>. This parameter defaults to <code>Always</code>
/// if the <code>:latest</code> tag is specified, <code>IfNotPresent</code> otherwise.
/// For more information, see <a href="https://kubernetes.io/docs/concepts/containers/images/#updating-images">Updating
/// images</a> in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public string ImagePullPolicy
{
get { return this._imagePullPolicy; }
set { this._imagePullPolicy = value; }
}
// Check to see if ImagePullPolicy property is set
internal bool IsSetImagePullPolicy()
{
return this._imagePullPolicy != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the container. If the name isn't specified, the default name "<code>Default</code>"
/// is used. Each container in a pod must have a unique name.
/// </para>
/// </summary>
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Reason.
/// <para>
/// A short human-readable string to provide additional details for a running or stopped
/// container. It can be up to 255 characters long.
/// </para>
/// </summary>
public string Reason
{
get { return this._reason; }
set { this._reason = value; }
}
// Check to see if Reason property is set
internal bool IsSetReason()
{
return this._reason != null;
}
/// <summary>
/// Gets and sets the property Resources.
/// <para>
/// The type and amount of resources to assign to a container. The supported resources
/// include <code>memory</code>, <code>cpu</code>, and <code>nvidia.com/gpu</code>. For
/// more information, see <a href="https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/">Resource
/// management for pods and containers</a> in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public EksContainerResourceRequirements Resources
{
get { return this._resources; }
set { this._resources = value; }
}
// Check to see if Resources property is set
internal bool IsSetResources()
{
return this._resources != null;
}
/// <summary>
/// Gets and sets the property SecurityContext.
/// <para>
/// The security context for a job. For more information, see <a href="https://kubernetes.io/docs/tasks/configure-pod-container/security-context/">Configure
/// a security context for a pod or container</a> in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public EksContainerSecurityContext SecurityContext
{
get { return this._securityContext; }
set { this._securityContext = value; }
}
// Check to see if SecurityContext property is set
internal bool IsSetSecurityContext()
{
return this._securityContext != null;
}
/// <summary>
/// Gets and sets the property VolumeMounts.
/// <para>
/// The volume mounts for the container. Batch supports <code>emptyDir</code>, <code>hostPath</code>,
/// and <code>secret</code> volume types. For more information about volumes and volume
/// mounts in Kubernetes, see <a href="https://kubernetes.io/docs/concepts/storage/volumes/">Volumes</a>
/// in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public List<EksContainerVolumeMount> VolumeMounts
{
get { return this._volumeMounts; }
set { this._volumeMounts = value; }
}
// Check to see if VolumeMounts property is set
internal bool IsSetVolumeMounts()
{
return this._volumeMounts != null && this._volumeMounts.Count > 0;
}
}
}
| 285 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// An environment variable.
/// </summary>
public partial class EksContainerEnvironmentVariable
{
private string _name;
private string _value;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the environment variable.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// The value of the environment variable.
/// </para>
/// </summary>
public string Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
}
}
| 77 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// Object representing any Kubernetes overrides to a job definition that's used in a
/// <a>SubmitJob</a> API operation.
/// </summary>
public partial class EksContainerOverride
{
private List<string> _args = new List<string>();
private List<string> _command = new List<string>();
private List<EksContainerEnvironmentVariable> _env = new List<EksContainerEnvironmentVariable>();
private string _image;
private EksContainerResourceRequirements _resources;
/// <summary>
/// Gets and sets the property Args.
/// <para>
/// The arguments to the entrypoint to send to the container that overrides the default
/// arguments from the Docker image or the job definition. For more information, see <a
/// href="https://docs.docker.com/engine/reference/builder/#cmd">CMD</a> in the <i>Dockerfile
/// reference</i> and <a href="https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/">Define
/// a command an arguments for a pod</a> in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public List<string> Args
{
get { return this._args; }
set { this._args = value; }
}
// Check to see if Args property is set
internal bool IsSetArgs()
{
return this._args != null && this._args.Count > 0;
}
/// <summary>
/// Gets and sets the property Command.
/// <para>
/// The command to send to the container that overrides the default command from the Docker
/// image or the job definition.
/// </para>
/// </summary>
public List<string> Command
{
get { return this._command; }
set { this._command = value; }
}
// Check to see if Command property is set
internal bool IsSetCommand()
{
return this._command != null && this._command.Count > 0;
}
/// <summary>
/// Gets and sets the property Env.
/// <para>
/// The environment variables to send to the container. You can add new environment variables,
/// which are added to the container at launch. Or, you can override the existing environment
/// variables from the Docker image or the job definition.
/// </para>
/// <note>
/// <para>
/// Environment variables cannot start with "<code>AWS_BATCH</code>". This naming convention
/// is reserved for variables that Batch sets.
/// </para>
/// </note>
/// </summary>
public List<EksContainerEnvironmentVariable> Env
{
get { return this._env; }
set { this._env = value; }
}
// Check to see if Env property is set
internal bool IsSetEnv()
{
return this._env != null && this._env.Count > 0;
}
/// <summary>
/// Gets and sets the property Image.
/// <para>
/// The override of the Docker image that's used to start the container.
/// </para>
/// </summary>
public string Image
{
get { return this._image; }
set { this._image = value; }
}
// Check to see if Image property is set
internal bool IsSetImage()
{
return this._image != null;
}
/// <summary>
/// Gets and sets the property Resources.
/// <para>
/// The type and amount of resources to assign to a container. These override the settings
/// in the job definition. The supported resources include <code>memory</code>, <code>cpu</code>,
/// and <code>nvidia.com/gpu</code>. For more information, see <a href="https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/">Resource
/// management for pods and containers</a> in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public EksContainerResourceRequirements Resources
{
get { return this._resources; }
set { this._resources = value; }
}
// Check to see if Resources property is set
internal bool IsSetResources()
{
return this._resources != null;
}
}
}
| 150 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// The type and amount of resources to assign to a container. The supported resources
/// include <code>memory</code>, <code>cpu</code>, and <code>nvidia.com/gpu</code>. For
/// more information, see <a href="https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/">Resource
/// management for pods and containers</a> in the <i>Kubernetes documentation</i>.
/// </summary>
public partial class EksContainerResourceRequirements
{
private Dictionary<string, string> _limits = new Dictionary<string, string>();
private Dictionary<string, string> _requests = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property Limits.
/// <para>
/// The type and quantity of the resources to reserve for the container. The values vary
/// based on the <code>name</code> that's specified. Resources can be requested using
/// either the <code>limits</code> or the <code>requests</code> objects.
/// </para>
/// <dl> <dt>memory</dt> <dd>
/// <para>
/// The memory hard limit (in MiB) for the container, using whole integers, with a "Mi"
/// suffix. If your container attempts to exceed the memory specified, the container is
/// terminated. You must specify at least 4 MiB of memory for a job. <code>memory</code>
/// can be specified in <code>limits</code>, <code>requests</code>, or both. If <code>memory</code>
/// is specified in both places, then the value that's specified in <code>limits</code>
/// must be equal to the value that's specified in <code>requests</code>.
/// </para>
/// <note>
/// <para>
/// To maximize your resource utilization, provide your jobs with as much memory as possible
/// for the specific instance type that you are using. To learn how, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/memory-management.html">Memory
/// management</a> in the <i>Batch User Guide</i>.
/// </para>
/// </note> </dd> <dt>cpu</dt> <dd>
/// <para>
/// The number of CPUs that's reserved for the container. Values must be an even multiple
/// of <code>0.25</code>. <code>cpu</code> can be specified in <code>limits</code>, <code>requests</code>,
/// or both. If <code>cpu</code> is specified in both places, then the value that's specified
/// in <code>limits</code> must be at least as large as the value that's specified in
/// <code>requests</code>.
/// </para>
/// </dd> <dt>nvidia.com/gpu</dt> <dd>
/// <para>
/// The number of GPUs that's reserved for the container. Values must be a whole integer.
/// <code>memory</code> can be specified in <code>limits</code>, <code>requests</code>,
/// or both. If <code>memory</code> is specified in both places, then the value that's
/// specified in <code>limits</code> must be equal to the value that's specified in <code>requests</code>.
/// </para>
/// </dd> </dl>
/// </summary>
public Dictionary<string, string> Limits
{
get { return this._limits; }
set { this._limits = value; }
}
// Check to see if Limits property is set
internal bool IsSetLimits()
{
return this._limits != null && this._limits.Count > 0;
}
/// <summary>
/// Gets and sets the property Requests.
/// <para>
/// The type and quantity of the resources to request for the container. The values vary
/// based on the <code>name</code> that's specified. Resources can be requested by using
/// either the <code>limits</code> or the <code>requests</code> objects.
/// </para>
/// <dl> <dt>memory</dt> <dd>
/// <para>
/// The memory hard limit (in MiB) for the container, using whole integers, with a "Mi"
/// suffix. If your container attempts to exceed the memory specified, the container is
/// terminated. You must specify at least 4 MiB of memory for a job. <code>memory</code>
/// can be specified in <code>limits</code>, <code>requests</code>, or both. If <code>memory</code>
/// is specified in both, then the value that's specified in <code>limits</code> must
/// be equal to the value that's specified in <code>requests</code>.
/// </para>
/// <note>
/// <para>
/// If you're trying to maximize your resource utilization by providing your jobs as much
/// memory as possible for a particular instance type, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/memory-management.html">Memory
/// management</a> in the <i>Batch User Guide</i>.
/// </para>
/// </note> </dd> <dt>cpu</dt> <dd>
/// <para>
/// The number of CPUs that are reserved for the container. Values must be an even multiple
/// of <code>0.25</code>. <code>cpu</code> can be specified in <code>limits</code>, <code>requests</code>,
/// or both. If <code>cpu</code> is specified in both, then the value that's specified
/// in <code>limits</code> must be at least as large as the value that's specified in
/// <code>requests</code>.
/// </para>
/// </dd> <dt>nvidia.com/gpu</dt> <dd>
/// <para>
/// The number of GPUs that are reserved for the container. Values must be a whole integer.
/// <code>nvidia.com/gpu</code> can be specified in <code>limits</code>, <code>requests</code>,
/// or both. If <code>nvidia.com/gpu</code> is specified in both, then the value that's
/// specified in <code>limits</code> must be equal to the value that's specified in <code>requests</code>.
/// </para>
/// </dd> </dl>
/// </summary>
public Dictionary<string, string> Requests
{
get { return this._requests; }
set { this._requests = value; }
}
// Check to see if Requests property is set
internal bool IsSetRequests()
{
return this._requests != null && this._requests.Count > 0;
}
}
}
| 145 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// The security context for a job. For more information, see <a href="https://kubernetes.io/docs/tasks/configure-pod-container/security-context/">Configure
/// a security context for a pod or container</a> in the <i>Kubernetes documentation</i>.
/// </summary>
public partial class EksContainerSecurityContext
{
private bool? _privileged;
private bool? _readOnlyRootFilesystem;
private long? _runAsGroup;
private bool? _runAsNonRoot;
private long? _runAsUser;
/// <summary>
/// Gets and sets the property Privileged.
/// <para>
/// When this parameter is <code>true</code>, the container is given elevated permissions
/// on the host container instance. The level of permissions are similar to the <code>root</code>
/// user permissions. The default value is <code>false</code>. This parameter maps to
/// <code>privileged</code> policy in the <a href="https://kubernetes.io/docs/concepts/security/pod-security-policy/#privileged">Privileged
/// pod security policies</a> in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public bool Privileged
{
get { return this._privileged.GetValueOrDefault(); }
set { this._privileged = value; }
}
// Check to see if Privileged property is set
internal bool IsSetPrivileged()
{
return this._privileged.HasValue;
}
/// <summary>
/// Gets and sets the property ReadOnlyRootFilesystem.
/// <para>
/// When this parameter is <code>true</code>, the container is given read-only access
/// to its root file system. The default value is <code>false</code>. This parameter maps
/// to <code>ReadOnlyRootFilesystem</code> policy in the <a href="https://kubernetes.io/docs/concepts/security/pod-security-policy/#volumes-and-file-systems">Volumes
/// and file systems pod security policies</a> in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public bool ReadOnlyRootFilesystem
{
get { return this._readOnlyRootFilesystem.GetValueOrDefault(); }
set { this._readOnlyRootFilesystem = value; }
}
// Check to see if ReadOnlyRootFilesystem property is set
internal bool IsSetReadOnlyRootFilesystem()
{
return this._readOnlyRootFilesystem.HasValue;
}
/// <summary>
/// Gets and sets the property RunAsGroup.
/// <para>
/// When this parameter is specified, the container is run as the specified group ID (<code>gid</code>).
/// If this parameter isn't specified, the default is the group that's specified in the
/// image metadata. This parameter maps to <code>RunAsGroup</code> and <code>MustRunAs</code>
/// policy in the <a href="https://kubernetes.io/docs/concepts/security/pod-security-policy/#users-and-groups">Users
/// and groups pod security policies</a> in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public long RunAsGroup
{
get { return this._runAsGroup.GetValueOrDefault(); }
set { this._runAsGroup = value; }
}
// Check to see if RunAsGroup property is set
internal bool IsSetRunAsGroup()
{
return this._runAsGroup.HasValue;
}
/// <summary>
/// Gets and sets the property RunAsNonRoot.
/// <para>
/// When this parameter is specified, the container is run as a user with a <code>uid</code>
/// other than 0. If this parameter isn't specified, so such rule is enforced. This parameter
/// maps to <code>RunAsUser</code> and <code>MustRunAsNonRoot</code> policy in the <a
/// href="https://kubernetes.io/docs/concepts/security/pod-security-policy/#users-and-groups">Users
/// and groups pod security policies</a> in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public bool RunAsNonRoot
{
get { return this._runAsNonRoot.GetValueOrDefault(); }
set { this._runAsNonRoot = value; }
}
// Check to see if RunAsNonRoot property is set
internal bool IsSetRunAsNonRoot()
{
return this._runAsNonRoot.HasValue;
}
/// <summary>
/// Gets and sets the property RunAsUser.
/// <para>
/// When this parameter is specified, the container is run as the specified user ID (<code>uid</code>).
/// If this parameter isn't specified, the default is the user that's specified in the
/// image metadata. This parameter maps to <code>RunAsUser</code> and <code>MustRanAs</code>
/// policy in the <a href="https://kubernetes.io/docs/concepts/security/pod-security-policy/#users-and-groups">Users
/// and groups pod security policies</a> in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public long RunAsUser
{
get { return this._runAsUser.GetValueOrDefault(); }
set { this._runAsUser = value; }
}
// Check to see if RunAsUser property is set
internal bool IsSetRunAsUser()
{
return this._runAsUser.HasValue;
}
}
}
| 153 |
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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// The volume mounts for a container for an Amazon EKS job. For more information about
/// volumes and volume mounts in Kubernetes, see <a href="https://kubernetes.io/docs/concepts/storage/volumes/">Volumes</a>
/// in the <i>Kubernetes documentation</i>.
/// </summary>
public partial class EksContainerVolumeMount
{
private string _mountPath;
private string _name;
private bool? _readOnly;
/// <summary>
/// Gets and sets the property MountPath.
/// <para>
/// The path on the container where the volume is mounted.
/// </para>
/// </summary>
public string MountPath
{
get { return this._mountPath; }
set { this._mountPath = value; }
}
// Check to see if MountPath property is set
internal bool IsSetMountPath()
{
return this._mountPath != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name the volume mount. This must match the name of one of the volumes in the pod.
/// </para>
/// </summary>
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property ReadOnly.
/// <para>
/// If this value is <code>true</code>, the container has read-only access to the volume.
/// Otherwise, the container can write to the volume. The default value is <code>false</code>.
/// </para>
/// </summary>
public bool ReadOnly
{
get { return this._readOnly.GetValueOrDefault(); }
set { this._readOnly = value; }
}
// Check to see if ReadOnly property is set
internal bool IsSetReadOnly()
{
return this._readOnly.HasValue;
}
}
}
| 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// Specifies the configuration of a Kubernetes <code>emptyDir</code> volume. An <code>emptyDir</code>
/// volume is first created when a pod is assigned to a node. It exists as long as that
/// pod is running on that node. The <code>emptyDir</code> volume is initially empty.
/// All containers in the pod can read and write the files in the <code>emptyDir</code>
/// volume. However, the <code>emptyDir</code> volume can be mounted at the same or different
/// paths in each container. When a pod is removed from a node for any reason, the data
/// in the <code>emptyDir</code> is deleted permanently. For more information, see <a
/// href="https://kubernetes.io/docs/concepts/storage/volumes/#emptydir">emptyDir</a>
/// in the <i>Kubernetes documentation</i>.
/// </summary>
public partial class EksEmptyDir
{
private string _medium;
private string _sizeLimit;
/// <summary>
/// Gets and sets the property Medium.
/// <para>
/// The medium to store the volume. The default value is an empty string, which uses the
/// storage of the node.
/// </para>
/// <dl> <dt>""</dt> <dd>
/// <para>
/// <b>(Default)</b> Use the disk storage of the node.
/// </para>
/// </dd> <dt>"Memory"</dt> <dd>
/// <para>
/// Use the <code>tmpfs</code> volume that's backed by the RAM of the node. Contents of
/// the volume are lost when the node reboots, and any storage on the volume counts against
/// the container's memory limit.
/// </para>
/// </dd> </dl>
/// </summary>
public string Medium
{
get { return this._medium; }
set { this._medium = value; }
}
// Check to see if Medium property is set
internal bool IsSetMedium()
{
return this._medium != null;
}
/// <summary>
/// Gets and sets the property SizeLimit.
/// <para>
/// The maximum size of the volume. By default, there's no maximum size defined.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string SizeLimit
{
get { return this._sizeLimit; }
set { this._sizeLimit = value; }
}
// Check to see if SizeLimit property is set
internal bool IsSetSizeLimit()
{
return this._sizeLimit != null;
}
}
}
| 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 batch-2016-08-10.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.Batch.Model
{
/// <summary>
/// Specifies the configuration of a Kubernetes <code>hostPath</code> volume. A <code>hostPath</code>
/// volume mounts an existing file or directory from the host node's filesystem into your
/// pod. For more information, see <a href="https://kubernetes.io/docs/concepts/storage/volumes/#hostpath">hostPath</a>
/// in the <i>Kubernetes documentation</i>.
/// </summary>
public partial class EksHostPath
{
private string _path;
/// <summary>
/// Gets and sets the property Path.
/// <para>
/// The path of the file or directory on the host to mount into containers on the pod.
/// </para>
/// </summary>
public string Path
{
get { return this._path; }
set { this._path = value; }
}
// Check to see if Path property is set
internal bool IsSetPath()
{
return this._path != null;
}
}
}
| 60 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.