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 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>
/// Describes and uniquely identifies Kubernetes resources. For example, the compute environment
/// that a pod runs in or the <code>jobID</code> for a job running in the pod. For more
/// information, see <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/">Understanding
/// Kubernetes Objects</a> in the <i>Kubernetes documentation</i>.
/// </summary>
public partial class EksMetadata
{
private Dictionary<string, string> _labels = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property Labels.
/// <para>
/// Key-value pairs used to identify, sort, and organize cube resources. Can contain up
/// to 63 uppercase letters, lowercase letters, numbers, hyphens (-), and underscores
/// (_). Labels can be added or modified at any time. Each resource can have multiple
/// labels, but each key must be unique for a given object.
/// </para>
/// </summary>
public Dictionary<string, string> Labels
{
get { return this._labels; }
set { this._labels = value; }
}
// Check to see if Labels property is set
internal bool IsSetLabels()
{
return this._labels != null && this._labels.Count > 0;
}
}
} | 63 |
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 properties for the pod.
/// </summary>
public partial class EksPodProperties
{
private List<EksContainer> _containers = new List<EksContainer>();
private string _dnsPolicy;
private bool? _hostNetwork;
private EksMetadata _metadata;
private string _serviceAccountName;
private List<EksVolume> _volumes = new List<EksVolume>();
/// <summary>
/// Gets and sets the property Containers.
/// <para>
/// The properties of the container that's used on the Amazon EKS pod.
/// </para>
/// </summary>
public List<EksContainer> 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 DnsPolicy.
/// <para>
/// The DNS policy for the pod. The default value is <code>ClusterFirst</code>. If the
/// <code>hostNetwork</code> parameter is not specified, the default is <code>ClusterFirstWithHostNet</code>.
/// <code>ClusterFirst</code> indicates that any DNS query that does not match the configured
/// cluster domain suffix is forwarded to the upstream nameserver inherited from the node.
/// For more information, see <a href="https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy">Pod's
/// DNS policy</a> in the <i>Kubernetes documentation</i>.
/// </para>
///
/// <para>
/// Valid values: <code>Default</code> | <code>ClusterFirst</code> | <code>ClusterFirstWithHostNet</code>
///
/// </para>
/// </summary>
public string DnsPolicy
{
get { return this._dnsPolicy; }
set { this._dnsPolicy = value; }
}
// Check to see if DnsPolicy property is set
internal bool IsSetDnsPolicy()
{
return this._dnsPolicy != null;
}
/// <summary>
/// Gets and sets the property HostNetwork.
/// <para>
/// Indicates if the pod uses the hosts' network IP address. The default value is <code>true</code>.
/// Setting this to <code>false</code> enables the Kubernetes pod networking model. Most
/// Batch workloads are egress-only and don't require the overhead of IP allocation for
/// each pod for incoming connections. For more information, see <a href="https://kubernetes.io/docs/concepts/security/pod-security-policy/#host-namespaces">Host
/// namespaces</a> and <a href="https://kubernetes.io/docs/concepts/workloads/pods/#pod-networking">Pod
/// networking</a> in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public bool HostNetwork
{
get { return this._hostNetwork.GetValueOrDefault(); }
set { this._hostNetwork = value; }
}
// Check to see if HostNetwork property is set
internal bool IsSetHostNetwork()
{
return this._hostNetwork.HasValue;
}
/// <summary>
/// Gets and sets the property Metadata.
/// <para>
/// Metadata about the Kubernetes pod. For more information, see <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/">Understanding
/// Kubernetes Objects</a> in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public EksMetadata Metadata
{
get { return this._metadata; }
set { this._metadata = value; }
}
// Check to see if Metadata property is set
internal bool IsSetMetadata()
{
return this._metadata != null;
}
/// <summary>
/// Gets and sets the property ServiceAccountName.
/// <para>
/// The name of the service account that's used to run the pod. For more information,
/// see <a href="https://docs.aws.amazon.com/eks/latest/userguide/service-accounts.html">Kubernetes
/// service accounts</a> and <a href="https://docs.aws.amazon.com/eks/latest/userguide/associate-service-account-role.html">Configure
/// a Kubernetes service account to assume an IAM role</a> in the <i>Amazon EKS User Guide</i>
/// and <a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/">Configure
/// service accounts for pods</a> in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public string ServiceAccountName
{
get { return this._serviceAccountName; }
set { this._serviceAccountName = value; }
}
// Check to see if ServiceAccountName property is set
internal bool IsSetServiceAccountName()
{
return this._serviceAccountName != null;
}
/// <summary>
/// Gets and sets the property Volumes.
/// <para>
/// Specifies the volumes for a job definition that uses Amazon EKS resources.
/// </para>
/// </summary>
public List<EksVolume> 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;
}
}
} | 173 |
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 the pod.
/// </summary>
public partial class EksPodPropertiesDetail
{
private List<EksContainerDetail> _containers = new List<EksContainerDetail>();
private string _dnsPolicy;
private bool? _hostNetwork;
private EksMetadata _metadata;
private string _nodeName;
private string _podName;
private string _serviceAccountName;
private List<EksVolume> _volumes = new List<EksVolume>();
/// <summary>
/// Gets and sets the property Containers.
/// <para>
/// The properties of the container that's used on the Amazon EKS pod.
/// </para>
/// </summary>
public List<EksContainerDetail> 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 DnsPolicy.
/// <para>
/// The DNS policy for the pod. The default value is <code>ClusterFirst</code>. If the
/// <code>hostNetwork</code> parameter is not specified, the default is <code>ClusterFirstWithHostNet</code>.
/// <code>ClusterFirst</code> indicates that any DNS query that does not match the configured
/// cluster domain suffix is forwarded to the upstream nameserver inherited from the node.
/// If no value was specified for <code>dnsPolicy</code> in the <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_RegisterJobDefinition.html">RegisterJobDefinition</a>
/// API operation, then no value will be returned for <code>dnsPolicy</code> by either
/// of <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_DescribeJobDefinitions.html">DescribeJobDefinitions</a>
/// or <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_DescribeJobs.html">DescribeJobs</a>
/// API operations. The pod spec setting will contain either <code>ClusterFirst</code>
/// or <code>ClusterFirstWithHostNet</code>, depending on the value of the <code>hostNetwork</code>
/// parameter. For more information, see <a href="https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy">Pod's
/// DNS policy</a> in the <i>Kubernetes documentation</i>.
/// </para>
///
/// <para>
/// Valid values: <code>Default</code> | <code>ClusterFirst</code> | <code>ClusterFirstWithHostNet</code>
///
/// </para>
/// </summary>
public string DnsPolicy
{
get { return this._dnsPolicy; }
set { this._dnsPolicy = value; }
}
// Check to see if DnsPolicy property is set
internal bool IsSetDnsPolicy()
{
return this._dnsPolicy != null;
}
/// <summary>
/// Gets and sets the property HostNetwork.
/// <para>
/// Indicates if the pod uses the hosts' network IP address. The default value is <code>true</code>.
/// Setting this to <code>false</code> enables the Kubernetes pod networking model. Most
/// Batch workloads are egress-only and don't require the overhead of IP allocation for
/// each pod for incoming connections. For more information, see <a href="https://kubernetes.io/docs/concepts/security/pod-security-policy/#host-namespaces">Host
/// namespaces</a> and <a href="https://kubernetes.io/docs/concepts/workloads/pods/#pod-networking">Pod
/// networking</a> in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public bool HostNetwork
{
get { return this._hostNetwork.GetValueOrDefault(); }
set { this._hostNetwork = value; }
}
// Check to see if HostNetwork property is set
internal bool IsSetHostNetwork()
{
return this._hostNetwork.HasValue;
}
/// <summary>
/// Gets and sets the property Metadata.
/// </summary>
public EksMetadata Metadata
{
get { return this._metadata; }
set { this._metadata = value; }
}
// Check to see if Metadata property is set
internal bool IsSetMetadata()
{
return this._metadata != null;
}
/// <summary>
/// Gets and sets the property NodeName.
/// <para>
/// The name of the node for this job.
/// </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.
/// </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 ServiceAccountName.
/// <para>
/// The name of the service account that's used to run the pod. For more information,
/// see <a href="https://docs.aws.amazon.com/eks/latest/userguide/service-accounts.html">Kubernetes
/// service accounts</a> and <a href="https://docs.aws.amazon.com/eks/latest/userguide/associate-service-account-role.html">Configure
/// a Kubernetes service account to assume an IAM role</a> in the <i>Amazon EKS User Guide</i>
/// and <a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/">Configure
/// service accounts for pods</a> in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public string ServiceAccountName
{
get { return this._serviceAccountName; }
set { this._serviceAccountName = value; }
}
// Check to see if ServiceAccountName property is set
internal bool IsSetServiceAccountName()
{
return this._serviceAccountName != null;
}
/// <summary>
/// Gets and sets the property Volumes.
/// <para>
/// Specifies the volumes for a job definition using Amazon EKS resources.
/// </para>
/// </summary>
public List<EksVolume> 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;
}
}
} | 213 |
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 contains overrides for the Kubernetes pod properties of a job.
/// </summary>
public partial class EksPodPropertiesOverride
{
private List<EksContainerOverride> _containers = new List<EksContainerOverride>();
private EksMetadata _metadata;
/// <summary>
/// Gets and sets the property Containers.
/// <para>
/// The overrides for the container that's used on the Amazon EKS pod.
/// </para>
/// </summary>
public List<EksContainerOverride> 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 Metadata.
/// <para>
/// Metadata about the overrides for the container that's used on the Amazon EKS pod.
/// </para>
/// </summary>
public EksMetadata Metadata
{
get { return this._metadata; }
set { this._metadata = value; }
}
// Check to see if Metadata property is set
internal bool IsSetMetadata()
{
return this._metadata != null;
}
}
} | 76 |
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 contains the properties for the Kubernetes resources of a job.
/// </summary>
public partial class EksProperties
{
private EksPodProperties _podProperties;
/// <summary>
/// Gets and sets the property PodProperties.
/// <para>
/// The properties for the Kubernetes pod resources of a job.
/// </para>
/// </summary>
public EksPodProperties PodProperties
{
get { return this._podProperties; }
set { this._podProperties = value; }
}
// Check to see if PodProperties property is set
internal bool IsSetPodProperties()
{
return this._podProperties != null;
}
}
} | 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 contains the details for the Kubernetes resources of a job.
/// </summary>
public partial class EksPropertiesDetail
{
private EksPodPropertiesDetail _podProperties;
/// <summary>
/// Gets and sets the property PodProperties.
/// <para>
/// The properties for the Kubernetes pod resources of a job.
/// </para>
/// </summary>
public EksPodPropertiesDetail PodProperties
{
get { return this._podProperties; }
set { this._podProperties = value; }
}
// Check to see if PodProperties property is set
internal bool IsSetPodProperties()
{
return this._podProperties != null;
}
}
} | 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 contains overrides for the Kubernetes resources of a job.
/// </summary>
public partial class EksPropertiesOverride
{
private EksPodPropertiesOverride _podProperties;
/// <summary>
/// Gets and sets the property PodProperties.
/// <para>
/// The overrides for the Kubernetes pod resources of a job.
/// </para>
/// </summary>
public EksPodPropertiesOverride PodProperties
{
get { return this._podProperties; }
set { this._podProperties = value; }
}
// Check to see if PodProperties property is set
internal bool IsSetPodProperties()
{
return this._podProperties != null;
}
}
} | 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>
/// Specifies the configuration of a Kubernetes <code>secret</code> volume. For more information,
/// see <a href="https://kubernetes.io/docs/concepts/storage/volumes/#secret">secret</a>
/// in the <i>Kubernetes documentation</i>.
/// </summary>
public partial class EksSecret
{
private bool? _optional;
private string _secretName;
/// <summary>
/// Gets and sets the property Optional.
/// <para>
/// Specifies whether the secret or the secret's keys must be defined.
/// </para>
/// </summary>
public bool Optional
{
get { return this._optional.GetValueOrDefault(); }
set { this._optional = value; }
}
// Check to see if Optional property is set
internal bool IsSetOptional()
{
return this._optional.HasValue;
}
/// <summary>
/// Gets and sets the property SecretName.
/// <para>
/// The name of the secret. The name must be allowed as a DNS subdomain name. For more
/// information, see <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-subdomain-names">DNS
/// subdomain names</a> in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string SecretName
{
get { return this._secretName; }
set { this._secretName = value; }
}
// Check to see if SecretName property is set
internal bool IsSetSecretName()
{
return this._secretName != null;
}
}
} | 81 |
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 an Amazon EKS volume for a job definition.
/// </summary>
public partial class EksVolume
{
private EksEmptyDir _emptyDir;
private EksHostPath _hostPath;
private string _name;
private EksSecret _secret;
/// <summary>
/// Gets and sets the property EmptyDir.
/// <para>
/// Specifies the configuration of a Kubernetes <code>emptyDir</code> volume. For more
/// information, see <a href="https://kubernetes.io/docs/concepts/storage/volumes/#emptydir">emptyDir</a>
/// in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public EksEmptyDir EmptyDir
{
get { return this._emptyDir; }
set { this._emptyDir = value; }
}
// Check to see if EmptyDir property is set
internal bool IsSetEmptyDir()
{
return this._emptyDir != null;
}
/// <summary>
/// Gets and sets the property HostPath.
/// <para>
/// Specifies the configuration of a Kubernetes <code>hostPath</code> volume. For more
/// information, see <a href="https://kubernetes.io/docs/concepts/storage/volumes/#hostpath">hostPath</a>
/// in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public EksHostPath 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 Name.
/// <para>
/// The name of the volume. The name must be allowed as a DNS subdomain name. For more
/// information, see <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-subdomain-names">DNS
/// subdomain names</a> in the <i>Kubernetes documentation</i>.
/// </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 Secret.
/// <para>
/// Specifies the configuration of a Kubernetes <code>secret</code> volume. For more information,
/// see <a href="https://kubernetes.io/docs/concepts/storage/volumes/#secret">secret</a>
/// in the <i>Kubernetes documentation</i>.
/// </para>
/// </summary>
public EksSecret Secret
{
get { return this._secret; }
set { this._secret = value; }
}
// Check to see if Secret property is set
internal bool IsSetSecret()
{
return this._secret != null;
}
}
} | 123 |
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 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.
/// </summary>
public partial class EphemeralStorage
{
private int? _sizeInGiB;
/// <summary>
/// Gets and sets the property SizeInGiB.
/// <para>
/// The total amount, in GiB, of ephemeral storage to set for the task. The minimum supported
/// value is <code>21</code> GiB and the maximum supported value is <code>200</code> GiB.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public int SizeInGiB
{
get { return this._sizeInGiB.GetValueOrDefault(); }
set { this._sizeInGiB = value; }
}
// Check to see if SizeInGiB property is set
internal bool IsSetSizeInGiB()
{
return this._sizeInGiB.HasValue;
}
}
} | 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>
/// Specifies an array of up to 5 conditions to be met, and an action to take (<code>RETRY</code>
/// or <code>EXIT</code>) if all conditions are met. If none of the <code>EvaluateOnExit</code>
/// conditions in a <code>RetryStrategy</code> match, then the job is retried.
/// </summary>
public partial class EvaluateOnExit
{
private RetryAction _action;
private string _onExitCode;
private string _onReason;
private string _onStatusReason;
/// <summary>
/// Gets and sets the property Action.
/// <para>
/// Specifies the action to take if all of the specified conditions (<code>onStatusReason</code>,
/// <code>onReason</code>, and <code>onExitCode</code>) are met. The values aren't case
/// sensitive.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public RetryAction Action
{
get { return this._action; }
set { this._action = value; }
}
// Check to see if Action property is set
internal bool IsSetAction()
{
return this._action != null;
}
/// <summary>
/// Gets and sets the property OnExitCode.
/// <para>
/// Contains a glob pattern to match against the decimal representation of the <code>ExitCode</code>
/// returned for a job. The pattern can be up to 512 characters long. It can contain only
/// numbers, and can end with an asterisk (*) so that only the start of the string needs
/// to be an exact match.
/// </para>
///
/// <para>
/// The string can contain up to 512 characters.
/// </para>
/// </summary>
public string OnExitCode
{
get { return this._onExitCode; }
set { this._onExitCode = value; }
}
// Check to see if OnExitCode property is set
internal bool IsSetOnExitCode()
{
return this._onExitCode != null;
}
/// <summary>
/// Gets and sets the property OnReason.
/// <para>
/// Contains a glob pattern to match against the <code>Reason</code> returned for a job.
/// The pattern can contain up to 512 characters. It can contain letters, numbers, periods
/// (.), colons (:), and white space (including spaces and tabs). It can optionally end
/// with an asterisk (*) so that only the start of the string needs to be an exact match.
/// </para>
/// </summary>
public string OnReason
{
get { return this._onReason; }
set { this._onReason = value; }
}
// Check to see if OnReason property is set
internal bool IsSetOnReason()
{
return this._onReason != null;
}
/// <summary>
/// Gets and sets the property OnStatusReason.
/// <para>
/// Contains a glob pattern to match against the <code>StatusReason</code> returned for
/// a job. The pattern can contain up to 512 characters. It can contain letters, numbers,
/// periods (.), colons (:), and white spaces (including spaces or tabs). It can optionally
/// end with an asterisk (*) so that only the start of the string needs to be an exact
/// match.
/// </para>
/// </summary>
public string OnStatusReason
{
get { return this._onStatusReason; }
set { this._onStatusReason = value; }
}
// Check to see if OnStatusReason property is set
internal bool IsSetOnStatusReason()
{
return this._onStatusReason != null;
}
}
} | 133 |
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 fair share policy for a scheduling policy.
/// </summary>
public partial class FairsharePolicy
{
private int? _computeReservation;
private int? _shareDecaySeconds;
private List<ShareAttributes> _shareDistribution = new List<ShareAttributes>();
/// <summary>
/// Gets and sets the property ComputeReservation.
/// <para>
/// A value used to reserve some of the available maximum vCPU for fair share identifiers
/// that aren't already used.
/// </para>
///
/// <para>
/// The reserved ratio is <code>(<i>computeReservation</i>/100)^<i>ActiveFairShares</i>
/// </code> where <code> <i>ActiveFairShares</i> </code> is the number of active fair
/// share identifiers.
/// </para>
///
/// <para>
/// For example, a <code>computeReservation</code> value of 50 indicates that Batchreserves
/// 50% of the maximum available vCPU if there's only one fair share identifier. It reserves
/// 25% if there are two fair share identifiers. It reserves 12.5% if there are three
/// fair share identifiers. A <code>computeReservation</code> value of 25 indicates that
/// Batch should reserve 25% of the maximum available vCPU if there's only one fair share
/// identifier, 6.25% if there are two fair share identifiers, and 1.56% if there are
/// three fair share identifiers.
/// </para>
///
/// <para>
/// The minimum value is 0 and the maximum value is 99.
/// </para>
/// </summary>
public int ComputeReservation
{
get { return this._computeReservation.GetValueOrDefault(); }
set { this._computeReservation = value; }
}
// Check to see if ComputeReservation property is set
internal bool IsSetComputeReservation()
{
return this._computeReservation.HasValue;
}
/// <summary>
/// Gets and sets the property ShareDecaySeconds.
/// <para>
/// The amount of time (in seconds) to use to calculate a fair share percentage for each
/// fair share identifier in use. A value of zero (0) indicates that only current usage
/// is measured. The decay allows for more recently run jobs to have more weight than
/// jobs that ran earlier. The maximum supported value is 604800 (1 week).
/// </para>
/// </summary>
public int ShareDecaySeconds
{
get { return this._shareDecaySeconds.GetValueOrDefault(); }
set { this._shareDecaySeconds = value; }
}
// Check to see if ShareDecaySeconds property is set
internal bool IsSetShareDecaySeconds()
{
return this._shareDecaySeconds.HasValue;
}
/// <summary>
/// Gets and sets the property ShareDistribution.
/// <para>
/// An array of <code>SharedIdentifier</code> objects that contain the weights for the
/// fair share identifiers for the fair share policy. Fair share identifiers that aren't
/// included have a default weight of <code>1.0</code>.
/// </para>
/// </summary>
public List<ShareAttributes> ShareDistribution
{
get { return this._shareDistribution; }
set { this._shareDistribution = value; }
}
// Check to see if ShareDistribution property is set
internal bool IsSetShareDistribution()
{
return this._shareDistribution != null && this._shareDistribution.Count > 0;
}
}
} | 121 |
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 platform configuration for jobs that are running on Fargate resources. Jobs that
/// run on EC2 resources must not specify this parameter.
/// </summary>
public partial class FargatePlatformConfiguration
{
private string _platformVersion;
/// <summary>
/// Gets and sets the property PlatformVersion.
/// <para>
/// The Fargate platform version where the jobs are running. A platform version is specified
/// only for jobs that are running on Fargate resources. If one isn't specified, the <code>LATEST</code>
/// platform version is used by default. This uses a recent, approved version of the Fargate
/// platform for compute resources. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html">Fargate
/// platform versions</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
/// </para>
/// </summary>
public string PlatformVersion
{
get { return this._platformVersion; }
set { this._platformVersion = value; }
}
// Check to see if PlatformVersion property is set
internal bool IsSetPlatformVersion()
{
return this._platformVersion != null;
}
}
} | 62 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// Determine whether your data volume persists on the host container instance and where
/// it's stored. If this parameter is empty, then the Docker daemon assigns a host path
/// for your data volume. However, the data isn't guaranteed to persist after the containers
/// that are associated with it stop running.
/// </summary>
public partial class Host
{
private string _sourcePath;
/// <summary>
/// Gets and sets the property SourcePath.
/// <para>
/// The path on the host container instance that's presented to the container. If this
/// parameter is empty, then the Docker daemon has assigned a host path for you. If this
/// parameter contains a file location, then the data volume persists at the specified
/// location on the host container instance until you delete it manually. If the source
/// path location doesn't exist on the host container instance, the Docker daemon creates
/// it. If the location does exist, the contents of the source path folder are exported.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that run on Fargate resources. Don't provide
/// this for these jobs.
/// </para>
/// </note>
/// </summary>
public string SourcePath
{
get { return this._sourcePath; }
set { this._sourcePath = value; }
}
// Check to see if SourcePath property is set
internal bool IsSetSourcePath()
{
return this._sourcePath != null;
}
}
} | 71 |
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 job definition.
/// </summary>
public partial class JobDefinition
{
private OrchestrationType _containerOrchestrationType;
private ContainerProperties _containerProperties;
private EksProperties _eksProperties;
private string _jobDefinitionArn;
private string _jobDefinitionName;
private NodeProperties _nodeProperties;
private Dictionary<string, string> _parameters = new Dictionary<string, string>();
private List<string> _platformCapabilities = new List<string>();
private bool? _propagateTags;
private RetryStrategy _retryStrategy;
private int? _revision;
private int? _schedulingPriority;
private string _status;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
private JobTimeout _timeout;
private string _type;
/// <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 ContainerProperties.
/// <para>
/// An object with various properties specific to Amazon ECS based jobs. Valid values
/// are <code>containerProperties</code>, <code>eksProperties</code>, and <code>nodeProperties</code>.
/// Only one can be specified.
/// </para>
/// </summary>
public ContainerProperties ContainerProperties
{
get { return this._containerProperties; }
set { this._containerProperties = value; }
}
// Check to see if ContainerProperties property is set
internal bool IsSetContainerProperties()
{
return this._containerProperties != null;
}
/// <summary>
/// Gets and sets the property EksProperties.
/// <para>
/// An object with various properties that are specific to Amazon EKS based jobs. Valid
/// values are <code>containerProperties</code>, <code>eksProperties</code>, and <code>nodeProperties</code>.
/// Only one can be specified.
/// </para>
/// </summary>
public EksProperties EksProperties
{
get { return this._eksProperties; }
set { this._eksProperties = value; }
}
// Check to see if EksProperties property is set
internal bool IsSetEksProperties()
{
return this._eksProperties != null;
}
/// <summary>
/// Gets and sets the property JobDefinitionArn.
/// <para>
/// The Amazon Resource Name (ARN) for the job definition.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string JobDefinitionArn
{
get { return this._jobDefinitionArn; }
set { this._jobDefinitionArn = value; }
}
// Check to see if JobDefinitionArn property is set
internal bool IsSetJobDefinitionArn()
{
return this._jobDefinitionArn != null;
}
/// <summary>
/// Gets and sets the property JobDefinitionName.
/// <para>
/// The name of the job definition.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
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 NodeProperties.
/// <para>
/// An object with various properties that are specific to multi-node parallel jobs. Valid
/// values are <code>containerProperties</code>, <code>eksProperties</code>, and <code>nodeProperties</code>.
/// Only one can be specified.
/// </para>
/// <note>
/// <para>
/// If the job runs on Fargate resources, don't specify <code>nodeProperties</code>. Use
/// <code>containerProperties</code> instead.
/// </para>
/// </note>
/// </summary>
public NodeProperties NodeProperties
{
get { return this._nodeProperties; }
set { this._nodeProperties = value; }
}
// Check to see if NodeProperties property is set
internal bool IsSetNodeProperties()
{
return this._nodeProperties != null;
}
/// <summary>
/// Gets and sets the property Parameters.
/// <para>
/// Default parameters or parameter substitution placeholders that are set in the job
/// definition. Parameters are specified as a key-value pair mapping. Parameters in a
/// <code>SubmitJob</code> request override any corresponding parameter defaults from
/// the job definition. For more information about specifying parameters, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/job_definition_parameters.html">Job
/// definition parameters</a> in the <i>Batch User Guide</i>.
/// </para>
/// </summary>
public Dictionary<string, string> Parameters
{
get { return this._parameters; }
set { this._parameters = value; }
}
// Check to see if Parameters property is set
internal bool IsSetParameters()
{
return this._parameters != null && this._parameters.Count > 0;
}
/// <summary>
/// Gets and sets the property PlatformCapabilities.
/// <para>
/// The platform capabilities required by the job definition. If no value is specified,
/// it defaults to <code>EC2</code>. Jobs run on Fargate resources specify <code>FARGATE</code>.
/// </para>
/// </summary>
public List<string> PlatformCapabilities
{
get { return this._platformCapabilities; }
set { this._platformCapabilities = value; }
}
// Check to see if PlatformCapabilities property is set
internal bool IsSetPlatformCapabilities()
{
return this._platformCapabilities != null && this._platformCapabilities.Count > 0;
}
/// <summary>
/// Gets and sets the property PropagateTags.
/// <para>
/// Specifies whether to propagate the tags from the job or job definition to the corresponding
/// Amazon ECS task. If no value is specified, the tags aren't propagated. Tags can only
/// be propagated to the tasks when the tasks are created. For tags with the same name,
/// job tags are given priority over job definitions tags. If the total number of combined
/// tags from the job and job definition is over 50, the job is moved to the <code>FAILED</code>
/// state.
/// </para>
/// </summary>
public bool PropagateTags
{
get { return this._propagateTags.GetValueOrDefault(); }
set { this._propagateTags = value; }
}
// Check to see if PropagateTags property is set
internal bool IsSetPropagateTags()
{
return this._propagateTags.HasValue;
}
/// <summary>
/// Gets and sets the property RetryStrategy.
/// <para>
/// The retry strategy to use for failed jobs that are submitted with this job definition.
/// </para>
/// </summary>
public RetryStrategy RetryStrategy
{
get { return this._retryStrategy; }
set { this._retryStrategy = value; }
}
// Check to see if RetryStrategy property is set
internal bool IsSetRetryStrategy()
{
return this._retryStrategy != null;
}
/// <summary>
/// Gets and sets the property Revision.
/// <para>
/// The revision of the job definition.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public int Revision
{
get { return this._revision.GetValueOrDefault(); }
set { this._revision = value; }
}
// Check to see if Revision property is set
internal bool IsSetRevision()
{
return this._revision.HasValue;
}
/// <summary>
/// Gets and sets the property SchedulingPriority.
/// <para>
/// The scheduling priority of the job definition. This only affects jobs in job queues
/// with a fair share policy. Jobs with a higher scheduling priority are scheduled before
/// jobs with a lower scheduling priority.
/// </para>
/// </summary>
public int SchedulingPriority
{
get { return this._schedulingPriority.GetValueOrDefault(); }
set { this._schedulingPriority = value; }
}
// Check to see if SchedulingPriority property is set
internal bool IsSetSchedulingPriority()
{
return this._schedulingPriority.HasValue;
}
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// The status of the job definition.
/// </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;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The tags that are applied to the job definition.
/// </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 Timeout.
/// <para>
/// The timeout time for jobs that are submitted with this job definition. After the amount
/// of time you specify passes, Batch terminates your jobs if they aren't finished.
/// </para>
/// </summary>
public JobTimeout Timeout
{
get { return this._timeout; }
set { this._timeout = value; }
}
// Check to see if Timeout property is set
internal bool IsSetTimeout()
{
return this._timeout != null;
}
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// The type of job definition. It's either <code>container</code> or <code>multinode</code>.
/// If the job is run on Fargate resources, then <code>multinode</code> isn't supported.
/// For more information about multi-node parallel jobs, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/multi-node-job-def.html">Creating
/// a multi-node parallel job definition</a> in the <i>Batch User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
} | 376 |
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 job dependency.
/// </summary>
public partial class JobDependency
{
private string _jobId;
private ArrayJobDependency _type;
/// <summary>
/// Gets and sets the property JobId.
/// <para>
/// The job ID of the Batch job that's associated with this dependency.
/// </para>
/// </summary>
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 Type.
/// <para>
/// The type of the job dependency.
/// </para>
/// </summary>
public ArrayJobDependency Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
} | 76 |
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 job.
/// </summary>
public partial class JobDetail
{
private ArrayPropertiesDetail _arrayProperties;
private List<AttemptDetail> _attempts = new List<AttemptDetail>();
private ContainerDetail _container;
private long? _createdAt;
private List<JobDependency> _dependsOn = new List<JobDependency>();
private List<EksAttemptDetail> _eksAttempts = new List<EksAttemptDetail>();
private EksPropertiesDetail _eksProperties;
private bool? _isCancelled;
private bool? _isTerminated;
private string _jobArn;
private string _jobDefinition;
private string _jobId;
private string _jobName;
private string _jobQueue;
private NodeDetails _nodeDetails;
private NodeProperties _nodeProperties;
private Dictionary<string, string> _parameters = new Dictionary<string, string>();
private List<string> _platformCapabilities = new List<string>();
private bool? _propagateTags;
private RetryStrategy _retryStrategy;
private int? _schedulingPriority;
private string _shareIdentifier;
private long? _startedAt;
private JobStatus _status;
private string _statusReason;
private long? _stoppedAt;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
private JobTimeout _timeout;
/// <summary>
/// Gets and sets the property ArrayProperties.
/// <para>
/// The array properties of the job, if it's an array job.
/// </para>
/// </summary>
public ArrayPropertiesDetail ArrayProperties
{
get { return this._arrayProperties; }
set { this._arrayProperties = value; }
}
// Check to see if ArrayProperties property is set
internal bool IsSetArrayProperties()
{
return this._arrayProperties != null;
}
/// <summary>
/// Gets and sets the property Attempts.
/// <para>
/// A list of job attempts that are associated with this job.
/// </para>
/// </summary>
public List<AttemptDetail> Attempts
{
get { return this._attempts; }
set { this._attempts = value; }
}
// Check to see if Attempts property is set
internal bool IsSetAttempts()
{
return this._attempts != null && this._attempts.Count > 0;
}
/// <summary>
/// Gets and sets the property Container.
/// <para>
/// An object that represents the details for the container that's associated with the
/// job.
/// </para>
/// </summary>
public ContainerDetail 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 CreatedAt.
/// <para>
/// The Unix timestamp (in milliseconds) for when the job was created. For non-array jobs
/// and parent array jobs, this is when the job entered the <code>SUBMITTED</code> state.
/// This is specifically at the time <a>SubmitJob</a> was called. For array child jobs,
/// this is when the child job was spawned by its parent and entered the <code>PENDING</code>
/// state.
/// </para>
/// </summary>
public long CreatedAt
{
get { return this._createdAt.GetValueOrDefault(); }
set { this._createdAt = value; }
}
// Check to see if CreatedAt property is set
internal bool IsSetCreatedAt()
{
return this._createdAt.HasValue;
}
/// <summary>
/// Gets and sets the property DependsOn.
/// <para>
/// A list of job IDs that this job depends on.
/// </para>
/// </summary>
public List<JobDependency> DependsOn
{
get { return this._dependsOn; }
set { this._dependsOn = value; }
}
// Check to see if DependsOn property is set
internal bool IsSetDependsOn()
{
return this._dependsOn != null && this._dependsOn.Count > 0;
}
/// <summary>
/// Gets and sets the property EksAttempts.
/// <para>
/// A list of job attempts that are associated with this job.
/// </para>
/// </summary>
public List<EksAttemptDetail> EksAttempts
{
get { return this._eksAttempts; }
set { this._eksAttempts = value; }
}
// Check to see if EksAttempts property is set
internal bool IsSetEksAttempts()
{
return this._eksAttempts != null && this._eksAttempts.Count > 0;
}
/// <summary>
/// Gets and sets the property EksProperties.
/// <para>
/// An object with various properties that are specific to Amazon EKS based jobs. Only
/// one of <code>container</code>, <code>eksProperties</code>, or <code>nodeDetails</code>
/// is specified.
/// </para>
/// </summary>
public EksPropertiesDetail EksProperties
{
get { return this._eksProperties; }
set { this._eksProperties = value; }
}
// Check to see if EksProperties property is set
internal bool IsSetEksProperties()
{
return this._eksProperties != null;
}
/// <summary>
/// Gets and sets the property IsCancelled.
/// <para>
/// Indicates whether the job is canceled.
/// </para>
/// </summary>
public bool IsCancelled
{
get { return this._isCancelled.GetValueOrDefault(); }
set { this._isCancelled = value; }
}
// Check to see if IsCancelled property is set
internal bool IsSetIsCancelled()
{
return this._isCancelled.HasValue;
}
/// <summary>
/// Gets and sets the property IsTerminated.
/// <para>
/// Indicates whether the job is terminated.
/// </para>
/// </summary>
public bool IsTerminated
{
get { return this._isTerminated.GetValueOrDefault(); }
set { this._isTerminated = value; }
}
// Check to see if IsTerminated property is set
internal bool IsSetIsTerminated()
{
return this._isTerminated.HasValue;
}
/// <summary>
/// Gets and sets the property JobArn.
/// <para>
/// The Amazon Resource Name (ARN) of the job.
/// </para>
/// </summary>
public string JobArn
{
get { return this._jobArn; }
set { this._jobArn = value; }
}
// Check to see if JobArn property is set
internal bool IsSetJobArn()
{
return this._jobArn != null;
}
/// <summary>
/// Gets and sets the property JobDefinition.
/// <para>
/// The Amazon Resource Name (ARN) of the job definition that this job uses.
/// </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;
}
/// <summary>
/// Gets and sets the property JobId.
/// <para>
/// The job ID.
/// </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 JobName.
/// <para>
/// The job name.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string JobName
{
get { return this._jobName; }
set { this._jobName = value; }
}
// Check to see if JobName property is set
internal bool IsSetJobName()
{
return this._jobName != null;
}
/// <summary>
/// Gets and sets the property JobQueue.
/// <para>
/// The Amazon Resource Name (ARN) of the job queue that the job is associated with.
/// </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;
}
/// <summary>
/// Gets and sets the property NodeDetails.
/// <para>
/// An object that represents the details of a node that's associated with a multi-node
/// parallel job.
/// </para>
/// </summary>
public NodeDetails NodeDetails
{
get { return this._nodeDetails; }
set { this._nodeDetails = value; }
}
// Check to see if NodeDetails property is set
internal bool IsSetNodeDetails()
{
return this._nodeDetails != null;
}
/// <summary>
/// Gets and sets the property NodeProperties.
/// <para>
/// An object that represents the node properties of a multi-node parallel job.
/// </para>
/// <note>
/// <para>
/// This isn't applicable to jobs that are running on Fargate resources.
/// </para>
/// </note>
/// </summary>
public NodeProperties NodeProperties
{
get { return this._nodeProperties; }
set { this._nodeProperties = value; }
}
// Check to see if NodeProperties property is set
internal bool IsSetNodeProperties()
{
return this._nodeProperties != null;
}
/// <summary>
/// Gets and sets the property Parameters.
/// <para>
/// Additional parameters that are passed to the job that replace parameter substitution
/// placeholders or override any corresponding parameter defaults from the job definition.
/// </para>
/// </summary>
public Dictionary<string, string> Parameters
{
get { return this._parameters; }
set { this._parameters = value; }
}
// Check to see if Parameters property is set
internal bool IsSetParameters()
{
return this._parameters != null && this._parameters.Count > 0;
}
/// <summary>
/// Gets and sets the property PlatformCapabilities.
/// <para>
/// The platform capabilities required by the job definition. If no value is specified,
/// it defaults to <code>EC2</code>. Jobs run on Fargate resources specify <code>FARGATE</code>.
/// </para>
/// </summary>
public List<string> PlatformCapabilities
{
get { return this._platformCapabilities; }
set { this._platformCapabilities = value; }
}
// Check to see if PlatformCapabilities property is set
internal bool IsSetPlatformCapabilities()
{
return this._platformCapabilities != null && this._platformCapabilities.Count > 0;
}
/// <summary>
/// Gets and sets the property PropagateTags.
/// <para>
/// Specifies whether to propagate the tags from the job or job definition to the corresponding
/// Amazon ECS task. If no value is specified, the tags aren't propagated. Tags can only
/// be propagated to the tasks when the tasks are created. For tags with the same name,
/// job tags are given priority over job definitions tags. If the total number of combined
/// tags from the job and job definition is over 50, the job is moved to the <code>FAILED</code>
/// state.
/// </para>
/// </summary>
public bool PropagateTags
{
get { return this._propagateTags.GetValueOrDefault(); }
set { this._propagateTags = value; }
}
// Check to see if PropagateTags property is set
internal bool IsSetPropagateTags()
{
return this._propagateTags.HasValue;
}
/// <summary>
/// Gets and sets the property RetryStrategy.
/// <para>
/// The retry strategy to use for this job if an attempt fails.
/// </para>
/// </summary>
public RetryStrategy RetryStrategy
{
get { return this._retryStrategy; }
set { this._retryStrategy = value; }
}
// Check to see if RetryStrategy property is set
internal bool IsSetRetryStrategy()
{
return this._retryStrategy != null;
}
/// <summary>
/// Gets and sets the property SchedulingPriority.
/// <para>
/// The scheduling policy of the job definition. This only affects jobs in job queues
/// with a fair share policy. Jobs with a higher scheduling priority are scheduled before
/// jobs with a lower scheduling priority.
/// </para>
/// </summary>
public int SchedulingPriority
{
get { return this._schedulingPriority.GetValueOrDefault(); }
set { this._schedulingPriority = value; }
}
// Check to see if SchedulingPriority property is set
internal bool IsSetSchedulingPriority()
{
return this._schedulingPriority.HasValue;
}
/// <summary>
/// Gets and sets the property ShareIdentifier.
/// <para>
/// The share identifier for the job.
/// </para>
/// </summary>
public string ShareIdentifier
{
get { return this._shareIdentifier; }
set { this._shareIdentifier = value; }
}
// Check to see if ShareIdentifier property is set
internal bool IsSetShareIdentifier()
{
return this._shareIdentifier != null;
}
/// <summary>
/// Gets and sets the property StartedAt.
/// <para>
/// The Unix timestamp (in milliseconds) for when the job was started. More specifically,
/// it's when the job transitioned from the <code>STARTING</code> state to the <code>RUNNING</code>
/// state. This parameter isn't provided for child jobs of array jobs or multi-node parallel
/// jobs.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
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 Status.
/// <para>
/// The current status for the job.
/// </para>
/// <note>
/// <para>
/// If your jobs don't progress to <code>STARTING</code>, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#job_stuck_in_runnable">Jobs
/// stuck in RUNNABLE status</a> in the troubleshooting section of the <i>Batch User Guide</i>.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Required=true)]
public JobStatus 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 more details for the current status of the
/// job.
/// </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 job was stopped. More specifically,
/// it's when the job 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;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The tags that are applied to the job.
/// </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 Timeout.
/// <para>
/// The timeout configuration for the job.
/// </para>
/// </summary>
public JobTimeout Timeout
{
get { return this._timeout; }
set { this._timeout = value; }
}
// Check to see if Timeout property is set
internal bool IsSetTimeout()
{
return this._timeout != null;
}
}
} | 611 |
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 Batch job queue.
/// </summary>
public partial class JobQueueDetail
{
private List<ComputeEnvironmentOrder> _computeEnvironmentOrder = new List<ComputeEnvironmentOrder>();
private string _jobQueueArn;
private string _jobQueueName;
private int? _priority;
private string _schedulingPolicyArn;
private JQState _state;
private JQStatus _status;
private string _statusReason;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property ComputeEnvironmentOrder.
/// <para>
/// The compute environments that are attached to the job queue and the order that job
/// placement is preferred. Compute environments are selected for job placement in ascending
/// order.
/// </para>
/// </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 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 job queue name.
/// </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 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>
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>
/// Describes the ability of the queue to accept new jobs. If the job queue state is <code>ENABLED</code>,
/// it can 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>
[AWSProperty(Required=true)]
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 Status.
/// <para>
/// The status of the job queue (for example, <code>CREATING</code> or <code>VALID</code>).
/// </para>
/// </summary>
public JQStatus 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 job queue.
/// </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 that are applied to the job queue. 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;
}
}
} | 229 |
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 job.
/// </summary>
public partial class JobSummary
{
private ArrayPropertiesSummary _arrayProperties;
private ContainerSummary _container;
private long? _createdAt;
private string _jobArn;
private string _jobDefinition;
private string _jobId;
private string _jobName;
private NodePropertiesSummary _nodeProperties;
private long? _startedAt;
private JobStatus _status;
private string _statusReason;
private long? _stoppedAt;
/// <summary>
/// Gets and sets the property ArrayProperties.
/// <para>
/// The array properties of the job, if it's an array job.
/// </para>
/// </summary>
public ArrayPropertiesSummary ArrayProperties
{
get { return this._arrayProperties; }
set { this._arrayProperties = value; }
}
// Check to see if ArrayProperties property is set
internal bool IsSetArrayProperties()
{
return this._arrayProperties != null;
}
/// <summary>
/// Gets and sets the property Container.
/// <para>
/// An object that represents the details of the container that's associated with the
/// job.
/// </para>
/// </summary>
public ContainerSummary 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 CreatedAt.
/// <para>
/// The Unix timestamp (in milliseconds) for when the job was created. For non-array jobs
/// and parent array jobs, this is when the job entered the <code>SUBMITTED</code> state
/// (at the time <a>SubmitJob</a> was called). For array child jobs, this is when the
/// child job was spawned by its parent and entered the <code>PENDING</code> state.
/// </para>
/// </summary>
public long CreatedAt
{
get { return this._createdAt.GetValueOrDefault(); }
set { this._createdAt = value; }
}
// Check to see if CreatedAt property is set
internal bool IsSetCreatedAt()
{
return this._createdAt.HasValue;
}
/// <summary>
/// Gets and sets the property JobArn.
/// <para>
/// The Amazon Resource Name (ARN) of the job.
/// </para>
/// </summary>
public string JobArn
{
get { return this._jobArn; }
set { this._jobArn = value; }
}
// Check to see if JobArn property is set
internal bool IsSetJobArn()
{
return this._jobArn != null;
}
/// <summary>
/// Gets and sets the property JobDefinition.
/// <para>
/// The Amazon Resource Name (ARN) of the job definition.
/// </para>
/// </summary>
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;
}
/// <summary>
/// Gets and sets the property JobId.
/// <para>
/// The job ID.
/// </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 JobName.
/// <para>
/// The job name.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string JobName
{
get { return this._jobName; }
set { this._jobName = value; }
}
// Check to see if JobName property is set
internal bool IsSetJobName()
{
return this._jobName != null;
}
/// <summary>
/// Gets and sets the property NodeProperties.
/// <para>
/// The node properties for a single node in a job summary list.
/// </para>
/// <note>
/// <para>
/// This isn't applicable to jobs that are running on Fargate resources.
/// </para>
/// </note>
/// </summary>
public NodePropertiesSummary NodeProperties
{
get { return this._nodeProperties; }
set { this._nodeProperties = value; }
}
// Check to see if NodeProperties property is set
internal bool IsSetNodeProperties()
{
return this._nodeProperties != null;
}
/// <summary>
/// Gets and sets the property StartedAt.
/// <para>
/// The Unix timestamp for when the job was started. More specifically, it's when the
/// job 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 Status.
/// <para>
/// The current status for the job.
/// </para>
/// </summary>
public JobStatus 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 more details for the current status of the
/// job.
/// </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 for when the job was stopped. More specifically, it's when the
/// job 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;
}
}
} | 282 |
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 timeout configuration.
/// </summary>
public partial class JobTimeout
{
private int? _attemptDurationSeconds;
/// <summary>
/// Gets and sets the property AttemptDurationSeconds.
/// <para>
/// The job timeout time (in seconds) that's measured from the job attempt's <code>startedAt</code>
/// timestamp. After this time passes, Batch terminates your jobs if they aren't finished.
/// The minimum value for the timeout is 60 seconds.
/// </para>
///
/// <para>
/// For array jobs, the timeout applies to the child jobs, not to the parent array job.
/// </para>
///
/// <para>
/// For multi-node parallel (MNP) jobs, the timeout applies to the whole job, not to the
/// individual nodes.
/// </para>
/// </summary>
public int AttemptDurationSeconds
{
get { return this._attemptDurationSeconds.GetValueOrDefault(); }
set { this._attemptDurationSeconds = value; }
}
// Check to see if AttemptDurationSeconds property is set
internal bool IsSetAttemptDurationSeconds()
{
return this._attemptDurationSeconds.HasValue;
}
}
} | 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>
/// A key-value pair object.
/// </summary>
public partial class KeyValuePair
{
private string _name;
private string _value;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the key-value pair. For environment variables, this is the name of the
/// environment variable.
/// </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 Value.
/// <para>
/// The value of the key-value pair. For environment variables, this is 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;
}
}
} | 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>
/// A filter name and value pair that's used to return a more specific list of results
/// from a <code>ListJobs</code> API operation.
/// </summary>
public partial class KeyValuesPair
{
private string _name;
private List<string> _values = new List<string>();
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the filter. Filter names are case sensitive.
/// </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 Values.
/// <para>
/// The filter values.
/// </para>
/// </summary>
public List<string> Values
{
get { return this._values; }
set { this._values = value; }
}
// Check to see if Values property is set
internal bool IsSetValues()
{
return this._values != null && this._values.Count > 0;
}
}
} | 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 a launch template that's associated with a compute resource.
/// You must specify either the launch template ID or launch template name in the request,
/// but not both.
///
///
/// <para>
/// If security groups are specified using both the <code>securityGroupIds</code> parameter
/// of <code>CreateComputeEnvironment</code> and the launch template, the values in the
/// <code>securityGroupIds</code> parameter of <code>CreateComputeEnvironment</code> will
/// be used.
/// </para>
/// <note>
/// <para>
/// This object isn't applicable to jobs that are running on Fargate resources.
/// </para>
/// </note>
/// </summary>
public partial class LaunchTemplateSpecification
{
private string _launchTemplateId;
private string _launchTemplateName;
private string _version;
/// <summary>
/// Gets and sets the property LaunchTemplateId.
/// <para>
/// The ID of the launch template.
/// </para>
/// </summary>
public string LaunchTemplateId
{
get { return this._launchTemplateId; }
set { this._launchTemplateId = value; }
}
// Check to see if LaunchTemplateId property is set
internal bool IsSetLaunchTemplateId()
{
return this._launchTemplateId != null;
}
/// <summary>
/// Gets and sets the property LaunchTemplateName.
/// <para>
/// The name of the launch template.
/// </para>
/// </summary>
public string LaunchTemplateName
{
get { return this._launchTemplateName; }
set { this._launchTemplateName = value; }
}
// Check to see if LaunchTemplateName property is set
internal bool IsSetLaunchTemplateName()
{
return this._launchTemplateName != null;
}
/// <summary>
/// Gets and sets the property Version.
/// <para>
/// The version number of the launch template, <code>$Latest</code>, or <code>$Default</code>.
/// </para>
///
/// <para>
/// If the value is <code>$Latest</code>, the latest version of the launch template is
/// used. If the value is <code>$Default</code>, the default version of the launch template
/// is used.
/// </para>
/// <important>
/// <para>
/// If the AMI ID that's used in a compute environment is from the launch template, the
/// AMI isn't changed when the compute environment is updated. It's only changed if the
/// <code>updateToLatestImageVersion</code> parameter for the compute environment is set
/// to <code>true</code>. During an infrastructure update, if either <code>$Latest</code>
/// or <code>$Default</code> is specified, Batch re-evaluates the launch template version,
/// and it might use a different version of the launch template. This is the case even
/// if the launch template isn't specified in the update. 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>
/// </important>
/// <para>
/// Default: <code>$Default</code>.
/// </para>
/// </summary>
public string Version
{
get { return this._version; }
set { this._version = value; }
}
// Check to see if Version property is set
internal bool IsSetVersion()
{
return this._version != null;
}
}
} | 133 |
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>
/// Linux-specific modifications that are applied to the container, such as details for
/// device mappings.
/// </summary>
public partial class LinuxParameters
{
private List<Device> _devices = new List<Device>();
private bool? _initProcessEnabled;
private int? _maxSwap;
private int? _sharedMemorySize;
private int? _swappiness;
private List<Tmpfs> _tmpfs = new List<Tmpfs>();
/// <summary>
/// Gets and sets the property Devices.
/// <para>
/// Any of the host devices to expose to the container. This parameter maps to <code>Devices</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>--device</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. Don't
/// provide it for these jobs.
/// </para>
/// </note>
/// </summary>
public List<Device> Devices
{
get { return this._devices; }
set { this._devices = value; }
}
// Check to see if Devices property is set
internal bool IsSetDevices()
{
return this._devices != null && this._devices.Count > 0;
}
/// <summary>
/// Gets and sets the property InitProcessEnabled.
/// <para>
/// If true, run an <code>init</code> process inside the container that forwards signals
/// and reaps processes. This parameter maps to the <code>--init</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker
/// run</a>. This parameter requires version 1.25 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>
/// </summary>
public bool InitProcessEnabled
{
get { return this._initProcessEnabled.GetValueOrDefault(); }
set { this._initProcessEnabled = value; }
}
// Check to see if InitProcessEnabled property is set
internal bool IsSetInitProcessEnabled()
{
return this._initProcessEnabled.HasValue;
}
/// <summary>
/// Gets and sets the property MaxSwap.
/// <para>
/// The total amount of swap memory (in MiB) a container can use. This parameter is translated
/// to the <code>--memory-swap</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker
/// run</a> where the value is the sum of the container memory plus the <code>maxSwap</code>
/// value. For more information, see <a href="https://docs.docker.com/config/containers/resource_constraints/#--memory-swap-details">
/// <code>--memory-swap</code> details</a> in the Docker documentation.
/// </para>
///
/// <para>
/// If a <code>maxSwap</code> value of <code>0</code> is specified, the container doesn't
/// use swap. Accepted values are <code>0</code> or any positive integer. If the <code>maxSwap</code>
/// parameter is omitted, the container doesn't use the swap configuration for the container
/// instance that it's running on. A <code>maxSwap</code> value must be set for the <code>swappiness</code>
/// parameter to be used.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// provide it for these jobs.
/// </para>
/// </note>
/// </summary>
public int MaxSwap
{
get { return this._maxSwap.GetValueOrDefault(); }
set { this._maxSwap = value; }
}
// Check to see if MaxSwap property is set
internal bool IsSetMaxSwap()
{
return this._maxSwap.HasValue;
}
/// <summary>
/// Gets and sets the property SharedMemorySize.
/// <para>
/// The value for the size (in MiB) of the <code>/dev/shm</code> volume. This parameter
/// maps to the <code>--shm-size</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. Don't
/// provide it for these jobs.
/// </para>
/// </note>
/// </summary>
public int SharedMemorySize
{
get { return this._sharedMemorySize.GetValueOrDefault(); }
set { this._sharedMemorySize = value; }
}
// Check to see if SharedMemorySize property is set
internal bool IsSetSharedMemorySize()
{
return this._sharedMemorySize.HasValue;
}
/// <summary>
/// Gets and sets the property Swappiness.
/// <para>
/// You can use this parameter to tune a container's memory swappiness behavior. A <code>swappiness</code>
/// value of <code>0</code> causes swapping to not occur unless absolutely necessary.
/// A <code>swappiness</code> value of <code>100</code> causes pages to be swapped aggressively.
/// Valid values are whole numbers between <code>0</code> and <code>100</code>. If the
/// <code>swappiness</code> parameter isn't specified, a default value of <code>60</code>
/// is used. If a value isn't specified for <code>maxSwap</code>, then this parameter
/// is ignored. If <code>maxSwap</code> is set to 0, the container doesn't use swap. This
/// parameter maps to the <code>--memory-swappiness</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker
/// run</a>.
/// </para>
///
/// <para>
/// Consider the following when you use a per-container swap configuration.
/// </para>
/// <ul> <li>
/// <para>
/// Swap space must be enabled and allocated on the container instance for the containers
/// to use.
/// </para>
/// <note>
/// <para>
/// By default, the Amazon ECS optimized AMIs don't have swap enabled. You must enable
/// swap on the instance to use this feature. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-store-swap-volumes.html">Instance
/// store swap volumes</a> in the <i>Amazon EC2 User Guide for Linux Instances</i> or
/// <a href="http://aws.amazon.com/premiumsupport/knowledge-center/ec2-memory-swap-file/">How
/// do I allocate memory to work as swap space in an Amazon EC2 instance by using a swap
/// file?</a>
/// </para>
/// </note> </li> <li>
/// <para>
/// The swap space parameters are only supported for job definitions using EC2 resources.
/// </para>
/// </li> <li>
/// <para>
/// If the <code>maxSwap</code> and <code>swappiness</code> parameters are omitted from
/// a job definition, each container has a default <code>swappiness</code> value of 60.
/// Moreover, the total swap usage is limited to two times the memory reservation of the
/// container.
/// </para>
/// </li> </ul> <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// provide it for these jobs.
/// </para>
/// </note>
/// </summary>
public int Swappiness
{
get { return this._swappiness.GetValueOrDefault(); }
set { this._swappiness = value; }
}
// Check to see if Swappiness property is set
internal bool IsSetSwappiness()
{
return this._swappiness.HasValue;
}
/// <summary>
/// Gets and sets the property Tmpfs.
/// <para>
/// The container path, mount options, and size (in MiB) of the <code>tmpfs</code> mount.
/// This parameter maps to the <code>--tmpfs</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. Don't
/// provide this parameter for this resource type.
/// </para>
/// </note>
/// </summary>
public List<Tmpfs> Tmpfs
{
get { return this._tmpfs; }
set { this._tmpfs = value; }
}
// Check to see if Tmpfs property is set
internal bool IsSetTmpfs()
{
return this._tmpfs != null && this._tmpfs.Count > 0;
}
}
} | 245 |
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 ListJobs operation.
/// Returns a list of Batch jobs.
///
///
/// <para>
/// You must specify only one of the following items:
/// </para>
/// <ul> <li>
/// <para>
/// A job queue ID to return a list of jobs in that job queue
/// </para>
/// </li> <li>
/// <para>
/// A multi-node parallel job ID to return a list of nodes for that job
/// </para>
/// </li> <li>
/// <para>
/// An array job ID to return a list of the children for that job
/// </para>
/// </li> </ul>
/// <para>
/// You can filter the results by job status with the <code>jobStatus</code> parameter.
/// If you don't specify a status, only <code>RUNNING</code> jobs are returned.
/// </para>
/// </summary>
public partial class ListJobsRequest : AmazonBatchRequest
{
private string _arrayJobId;
private List<KeyValuesPair> _filters = new List<KeyValuesPair>();
private string _jobQueue;
private JobStatus _jobStatus;
private int? _maxResults;
private string _multiNodeJobId;
private string _nextToken;
/// <summary>
/// Gets and sets the property ArrayJobId.
/// <para>
/// The job ID for an array job. Specifying an array job ID with this parameter lists
/// all child jobs from within the specified array.
/// </para>
/// </summary>
public string ArrayJobId
{
get { return this._arrayJobId; }
set { this._arrayJobId = value; }
}
// Check to see if ArrayJobId property is set
internal bool IsSetArrayJobId()
{
return this._arrayJobId != null;
}
/// <summary>
/// Gets and sets the property Filters.
/// <para>
/// The filter to apply to the query. Only one filter can be used at a time. When the
/// filter is used, <code>jobStatus</code> is ignored. The filter doesn't apply to child
/// jobs in an array or multi-node parallel (MNP) jobs. The results are sorted by the
/// <code>createdAt</code> field, with the most recent jobs being first.
/// </para>
/// <dl> <dt>JOB_NAME</dt> <dd>
/// <para>
/// The value of the filter is a case-insensitive match for the job name. If the value
/// ends with an asterisk (*), the filter matches any job name that begins with the string
/// before the '*'. This corresponds to the <code>jobName</code> value. For example, <code>test1</code>
/// matches both <code>Test1</code> and <code>test1</code>, and <code>test1*</code> matches
/// both <code>test1</code> and <code>Test10</code>. When the <code>JOB_NAME</code> filter
/// is used, the results are grouped by the job name and version.
/// </para>
/// </dd> <dt>JOB_DEFINITION</dt> <dd>
/// <para>
/// The value for the filter is the name or Amazon Resource Name (ARN) of the job definition.
/// This corresponds to the <code>jobDefinition</code> value. The value is case sensitive.
/// When the value for the filter is the job definition name, the results include all
/// the jobs that used any revision of that job definition name. If the value ends with
/// an asterisk (*), the filter matches any job definition name that begins with the string
/// before the '*'. For example, <code>jd1</code> matches only <code>jd1</code>, and <code>jd1*</code>
/// matches both <code>jd1</code> and <code>jd1A</code>. The version of the job definition
/// that's used doesn't affect the sort order. When the <code>JOB_DEFINITION</code> filter
/// is used and the ARN is used (which is in the form <code>arn:${Partition}:batch:${Region}:${Account}:job-definition/${JobDefinitionName}:${Revision}</code>),
/// the results include jobs that used the specified revision of the job definition. Asterisk
/// (*) isn't supported when the ARN is used.
/// </para>
/// </dd> <dt>BEFORE_CREATED_AT</dt> <dd>
/// <para>
/// The value for the filter is the time that's before the job was created. This corresponds
/// to the <code>createdAt</code> value. The value is a string representation of the number
/// of milliseconds since 00:00:00 UTC (midnight) on January 1, 1970.
/// </para>
/// </dd> <dt>AFTER_CREATED_AT</dt> <dd>
/// <para>
/// The value for the filter is the time that's after the job was created. This corresponds
/// to the <code>createdAt</code> value. The value is a string representation of the number
/// of milliseconds since 00:00:00 UTC (midnight) on January 1, 1970.
/// </para>
/// </dd> </dl>
/// </summary>
public List<KeyValuesPair> Filters
{
get { return this._filters; }
set { this._filters = value; }
}
// Check to see if Filters property is set
internal bool IsSetFilters()
{
return this._filters != null && this._filters.Count > 0;
}
/// <summary>
/// Gets and sets the property JobQueue.
/// <para>
/// The name or full Amazon Resource Name (ARN) of the job queue used to list jobs.
/// </para>
/// </summary>
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;
}
/// <summary>
/// Gets and sets the property JobStatus.
/// <para>
/// The job status used to filter jobs in the specified queue. If the <code>filters</code>
/// parameter is specified, the <code>jobStatus</code> parameter is ignored and jobs with
/// any status are returned. If you don't specify a status, only <code>RUNNING</code>
/// jobs are returned.
/// </para>
/// </summary>
public JobStatus JobStatus
{
get { return this._jobStatus; }
set { this._jobStatus = value; }
}
// Check to see if JobStatus property is set
internal bool IsSetJobStatus()
{
return this._jobStatus != null;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results returned by <code>ListJobs</code> in paginated output.
/// When this parameter is used, <code>ListJobs</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>ListJobs</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>ListJobs</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 MultiNodeJobId.
/// <para>
/// The job ID for a multi-node parallel job. Specifying a multi-node parallel job ID
/// with this parameter lists all nodes that are associated with the specified job.
/// </para>
/// </summary>
public string MultiNodeJobId
{
get { return this._multiNodeJobId; }
set { this._multiNodeJobId = value; }
}
// Check to see if MultiNodeJobId property is set
internal bool IsSetMultiNodeJobId()
{
return this._multiNodeJobId != null;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The <code>nextToken</code> value returned from a previous paginated <code>ListJobs</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;
}
}
} | 254 |
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 ListJobs operation.
/// </summary>
public partial class ListJobsResponse : AmazonWebServiceResponse
{
private List<JobSummary> _jobSummaryList = new List<JobSummary>();
private string _nextToken;
/// <summary>
/// Gets and sets the property JobSummaryList.
/// <para>
/// A list of job summaries that match the request.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<JobSummary> JobSummaryList
{
get { return this._jobSummaryList; }
set { this._jobSummaryList = value; }
}
// Check to see if JobSummaryList property is set
internal bool IsSetJobSummaryList()
{
return this._jobSummaryList != null && this._jobSummaryList.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The <code>nextToken</code> value to include in a future <code>ListJobs</code> request.
/// When the results of a <code>ListJobs</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;
}
}
} | 80 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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 ListSchedulingPolicies operation.
/// Returns a list of Batch scheduling policies.
/// </summary>
public partial class ListSchedulingPoliciesRequest : AmazonBatchRequest
{
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results that's returned by <code>ListSchedulingPolicies</code>
/// in paginated output. When this parameter is used, <code>ListSchedulingPolicies</code>
/// only returns <code>maxResults</code> results in a single page and a <code>nextToken</code>
/// response element. You can see the remaining results of the initial request by sending
/// another <code>ListSchedulingPolicies</code> request with the returned <code>nextToken</code>
/// value. This value can be between 1 and 100. If this parameter isn't used, <code>ListSchedulingPolicies</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 that's returned from a previous paginated <code>ListSchedulingPolicies</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;
}
}
} | 93 |
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 ListSchedulingPolicies operation.
/// </summary>
public partial class ListSchedulingPoliciesResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<SchedulingPolicyListingDetail> _schedulingPolicies = new List<SchedulingPolicyListingDetail>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The <code>nextToken</code> value to include in a future <code>ListSchedulingPolicies</code>
/// request. When the results of a <code>ListSchedulingPolicies</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;
}
/// <summary>
/// Gets and sets the property SchedulingPolicies.
/// <para>
/// A list of scheduling policies that match the request.
/// </para>
/// </summary>
public List<SchedulingPolicyListingDetail> 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;
}
}
} | 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 ListTagsForResource operation.
/// Lists the tags for an Batch resource. Batch resources that support tags are compute
/// environments, jobs, job definitions, job queues, and scheduling policies. ARNs for
/// child jobs of array and multi-node parallel (MNP) jobs aren't supported.
/// </summary>
public partial class ListTagsForResourceRequest : AmazonBatchRequest
{
private string _resourceArn;
/// <summary>
/// Gets and sets the property ResourceArn.
/// <para>
/// The Amazon Resource Name (ARN) that identifies the resource that tags are listed for.
/// Batch resources that support tags are compute environments, jobs, job definitions,
/// job queues, and scheduling policies. ARNs for child jobs of array and multi-node parallel
/// (MNP) jobs aren't supported.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ResourceArn
{
get { return this._resourceArn; }
set { this._resourceArn = value; }
}
// Check to see if ResourceArn property is set
internal bool IsSetResourceArn()
{
return this._resourceArn != 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 ListTagsForResource operation.
/// </summary>
public partial class ListTagsForResourceResponse : AmazonWebServiceResponse
{
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The tags for the resource.
/// </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;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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>
/// Log configuration options to send to a custom log driver for the container.
/// </summary>
public partial class LogConfiguration
{
private LogDriver _logDriver;
private Dictionary<string, string> _options = new Dictionary<string, string>();
private List<Secret> _secretOptions = new List<Secret>();
/// <summary>
/// Gets and sets the property LogDriver.
/// <para>
/// The log driver to use for the container. The valid values that are listed for this
/// parameter are log drivers that the Amazon ECS container agent can communicate with
/// by default.
/// </para>
///
/// <para>
/// The supported log drivers are <code>awslogs</code>, <code>fluentd</code>, <code>gelf</code>,
/// <code>json-file</code>, <code>journald</code>, <code>logentries</code>, <code>syslog</code>,
/// and <code>splunk</code>.
/// </para>
/// <note>
/// <para>
/// Jobs that are running on Fargate resources are restricted to the <code>awslogs</code>
/// and <code>splunk</code> log drivers.
/// </para>
/// </note> <dl> <dt>awslogs</dt> <dd>
/// <para>
/// Specifies the Amazon CloudWatch Logs logging driver. For more information, see <a
/// href="https://docs.aws.amazon.com/batch/latest/userguide/using_awslogs.html">Using
/// the awslogs log driver</a> in the <i>Batch User Guide</i> and <a href="https://docs.docker.com/config/containers/logging/awslogs/">Amazon
/// CloudWatch Logs logging driver</a> in the Docker documentation.
/// </para>
/// </dd> <dt>fluentd</dt> <dd>
/// <para>
/// Specifies the Fluentd logging driver. For more information including usage and options,
/// see <a href="https://docs.docker.com/config/containers/logging/fluentd/">Fluentd logging
/// driver</a> in the <i>Docker documentation</i>.
/// </para>
/// </dd> <dt>gelf</dt> <dd>
/// <para>
/// Specifies the Graylog Extended Format (GELF) logging driver. For more information
/// including usage and options, see <a href="https://docs.docker.com/config/containers/logging/gelf/">Graylog
/// Extended Format logging driver</a> in the <i>Docker documentation</i>.
/// </para>
/// </dd> <dt>journald</dt> <dd>
/// <para>
/// Specifies the journald logging driver. For more information including usage and options,
/// see <a href="https://docs.docker.com/config/containers/logging/journald/">Journald
/// logging driver</a> in the <i>Docker documentation</i>.
/// </para>
/// </dd> <dt>json-file</dt> <dd>
/// <para>
/// Specifies the JSON file logging driver. For more information including usage and options,
/// see <a href="https://docs.docker.com/config/containers/logging/json-file/">JSON File
/// logging driver</a> in the <i>Docker documentation</i>.
/// </para>
/// </dd> <dt>splunk</dt> <dd>
/// <para>
/// Specifies the Splunk logging driver. For more information including usage and options,
/// see <a href="https://docs.docker.com/config/containers/logging/splunk/">Splunk logging
/// driver</a> in the <i>Docker documentation</i>.
/// </para>
/// </dd> <dt>syslog</dt> <dd>
/// <para>
/// Specifies the syslog logging driver. For more information including usage and options,
/// see <a href="https://docs.docker.com/config/containers/logging/syslog/">Syslog logging
/// driver</a> in the <i>Docker documentation</i>.
/// </para>
/// </dd> </dl> <note>
/// <para>
/// If you have a custom driver that's not listed earlier that you want to work with the
/// Amazon ECS container agent, you can fork the Amazon ECS container agent project that's
/// <a href="https://github.com/aws/amazon-ecs-agent">available on GitHub</a> and customize
/// it to work with that driver. We encourage you to submit pull requests for changes
/// that you want to have included. However, Amazon Web Services doesn't currently support
/// running modified copies of this software.
/// </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>
/// </summary>
[AWSProperty(Required=true)]
public LogDriver LogDriver
{
get { return this._logDriver; }
set { this._logDriver = value; }
}
// Check to see if LogDriver property is set
internal bool IsSetLogDriver()
{
return this._logDriver != null;
}
/// <summary>
/// Gets and sets the property Options.
/// <para>
/// The configuration options to send to the log driver. This parameter requires version
/// 1.19 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>
/// </summary>
public Dictionary<string, string> Options
{
get { return this._options; }
set { this._options = value; }
}
// Check to see if Options property is set
internal bool IsSetOptions()
{
return this._options != null && this._options.Count > 0;
}
/// <summary>
/// Gets and sets the property SecretOptions.
/// <para>
/// The secrets to pass to the log configuration. 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> SecretOptions
{
get { return this._secretOptions; }
set { this._secretOptions = value; }
}
// Check to see if SecretOptions property is set
internal bool IsSetSecretOptions()
{
return this._secretOptions != null && this._secretOptions.Count > 0;
}
}
} | 173 |
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>
/// Details for a Docker volume mount point that's used in a job's container properties.
/// This parameter maps to <code>Volumes</code> in the <a href="https://docs.docker.com/engine/reference/api/docker_remote_api_v1.19/#create-a-container">Create
/// a container</a> section of the <i>Docker Remote API</i> and the <code>--volume</code>
/// option to docker run.
/// </summary>
public partial class MountPoint
{
private string _containerPath;
private bool? _readOnly;
private string _sourceVolume;
/// <summary>
/// Gets and sets the property ContainerPath.
/// <para>
/// The path on the container where the host volume is mounted.
/// </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 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;
}
/// <summary>
/// Gets and sets the property SourceVolume.
/// <para>
/// The name of the volume to mount.
/// </para>
/// </summary>
public string SourceVolume
{
get { return this._sourceVolume; }
set { this._sourceVolume = value; }
}
// Check to see if SourceVolume property is set
internal bool IsSetSourceVolume()
{
return this._sourceVolume != null;
}
}
} | 99 |
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 network configuration for jobs that are running on Fargate resources. Jobs that
/// are running on EC2 resources must not specify this parameter.
/// </summary>
public partial class NetworkConfiguration
{
private AssignPublicIp _assignPublicIp;
/// <summary>
/// Gets and sets the property AssignPublicIp.
/// <para>
/// Indicates whether the job has a public IP address. For a job that's running on Fargate
/// resources in a private subnet to send outbound traffic to the internet (for example,
/// to pull container images), the private subnet requires a NAT gateway be attached to
/// route requests to the internet. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html">Amazon
/// ECS task networking</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
/// The default value is "<code>DISABLED</code>".
/// </para>
/// </summary>
public AssignPublicIp AssignPublicIp
{
get { return this._assignPublicIp; }
set { this._assignPublicIp = value; }
}
// Check to see if AssignPublicIp property is set
internal bool IsSetAssignPublicIp()
{
return this._assignPublicIp != null;
}
}
} | 63 |
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 elastic network interface for a multi-node parallel
/// job node.
/// </summary>
public partial class NetworkInterface
{
private string _attachmentId;
private string _ipv6Address;
private string _privateIpv4Address;
/// <summary>
/// Gets and sets the property AttachmentId.
/// <para>
/// The attachment ID for the network interface.
/// </para>
/// </summary>
public string AttachmentId
{
get { return this._attachmentId; }
set { this._attachmentId = value; }
}
// Check to see if AttachmentId property is set
internal bool IsSetAttachmentId()
{
return this._attachmentId != null;
}
/// <summary>
/// Gets and sets the property Ipv6Address.
/// <para>
/// The private IPv6 address for the network interface.
/// </para>
/// </summary>
public string Ipv6Address
{
get { return this._ipv6Address; }
set { this._ipv6Address = value; }
}
// Check to see if Ipv6Address property is set
internal bool IsSetIpv6Address()
{
return this._ipv6Address != null;
}
/// <summary>
/// Gets and sets the property PrivateIpv4Address.
/// <para>
/// The private IPv4 address for the network interface.
/// </para>
/// </summary>
public string PrivateIpv4Address
{
get { return this._privateIpv4Address; }
set { this._privateIpv4Address = value; }
}
// Check to see if PrivateIpv4Address property is set
internal bool IsSetPrivateIpv4Address()
{
return this._privateIpv4Address != null;
}
}
} | 96 |
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 multi-node parallel job node.
/// </summary>
public partial class NodeDetails
{
private bool? _isMainNode;
private int? _nodeIndex;
/// <summary>
/// Gets and sets the property IsMainNode.
/// <para>
/// Specifies whether the current node is the main node for a multi-node parallel job.
/// </para>
/// </summary>
public bool IsMainNode
{
get { return this._isMainNode.GetValueOrDefault(); }
set { this._isMainNode = value; }
}
// Check to see if IsMainNode property is set
internal bool IsSetIsMainNode()
{
return this._isMainNode.HasValue;
}
/// <summary>
/// Gets and sets the property NodeIndex.
/// <para>
/// The node index for the node. Node index numbering starts at zero. This index is also
/// available on the node with the <code>AWS_BATCH_JOB_NODE_INDEX</code> environment variable.
/// </para>
/// </summary>
public int NodeIndex
{
get { return this._nodeIndex.GetValueOrDefault(); }
set { this._nodeIndex = value; }
}
// Check to see if NodeIndex property is set
internal bool IsSetNodeIndex()
{
return this._nodeIndex.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 any node overrides to a job definition that's used in a
/// <a>SubmitJob</a> API operation.
///
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources. Don't
/// provide it for these jobs. Rather, use <code>containerOverrides</code> instead.
/// </para>
/// </note>
/// </summary>
public partial class NodeOverrides
{
private List<NodePropertyOverride> _nodePropertyOverrides = new List<NodePropertyOverride>();
private int? _numNodes;
/// <summary>
/// Gets and sets the property NodePropertyOverrides.
/// <para>
/// The node property overrides for the job.
/// </para>
/// </summary>
public List<NodePropertyOverride> NodePropertyOverrides
{
get { return this._nodePropertyOverrides; }
set { this._nodePropertyOverrides = value; }
}
// Check to see if NodePropertyOverrides property is set
internal bool IsSetNodePropertyOverrides()
{
return this._nodePropertyOverrides != null && this._nodePropertyOverrides.Count > 0;
}
/// <summary>
/// Gets and sets the property NumNodes.
/// <para>
/// The number of nodes to use with a multi-node parallel job. This value overrides the
/// number of nodes that are specified in the job definition. To use this override, you
/// must meet the following conditions:
/// </para>
/// <ul> <li>
/// <para>
/// There must be at least one node range in your job definition that has an open upper
/// boundary, such as <code>:</code> or <code>n:</code>.
/// </para>
/// </li> <li>
/// <para>
/// The lower boundary of the node range that's specified in the job definition must be
/// fewer than the number of nodes specified in the override.
/// </para>
/// </li> <li>
/// <para>
/// The main node index that's specified in the job definition must be fewer than the
/// number of nodes specified in the override.
/// </para>
/// </li> </ul>
/// </summary>
public int NumNodes
{
get { return this._numNodes.GetValueOrDefault(); }
set { this._numNodes = value; }
}
// Check to see if NumNodes property is set
internal bool IsSetNumNodes()
{
return this._numNodes.HasValue;
}
}
} | 102 |
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 node properties of a multi-node parallel job.
///
/// <note>
/// <para>
/// Node properties can't be specified for Amazon EKS based job definitions.
/// </para>
/// </note>
/// </summary>
public partial class NodeProperties
{
private int? _mainNode;
private List<NodeRangeProperty> _nodeRangeProperties = new List<NodeRangeProperty>();
private int? _numNodes;
/// <summary>
/// Gets and sets the property MainNode.
/// <para>
/// Specifies the node index for the main node of a multi-node parallel job. This node
/// index value must be fewer than the number of nodes.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public int MainNode
{
get { return this._mainNode.GetValueOrDefault(); }
set { this._mainNode = value; }
}
// Check to see if MainNode property is set
internal bool IsSetMainNode()
{
return this._mainNode.HasValue;
}
/// <summary>
/// Gets and sets the property NodeRangeProperties.
/// <para>
/// A list of node ranges and their properties that are associated with a multi-node parallel
/// job.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<NodeRangeProperty> NodeRangeProperties
{
get { return this._nodeRangeProperties; }
set { this._nodeRangeProperties = value; }
}
// Check to see if NodeRangeProperties property is set
internal bool IsSetNodeRangeProperties()
{
return this._nodeRangeProperties != null && this._nodeRangeProperties.Count > 0;
}
/// <summary>
/// Gets and sets the property NumNodes.
/// <para>
/// The number of nodes that are associated with a multi-node parallel job.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public int NumNodes
{
get { return this._numNodes.GetValueOrDefault(); }
set { this._numNodes = value; }
}
// Check to see if NumNodes property is set
internal bool IsSetNumNodes()
{
return this._numNodes.HasValue;
}
}
} | 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>
/// An object that represents the properties of a node that's associated with a multi-node
/// parallel job.
/// </summary>
public partial class NodePropertiesSummary
{
private bool? _isMainNode;
private int? _nodeIndex;
private int? _numNodes;
/// <summary>
/// Gets and sets the property IsMainNode.
/// <para>
/// Specifies whether the current node is the main node for a multi-node parallel job.
/// </para>
/// </summary>
public bool IsMainNode
{
get { return this._isMainNode.GetValueOrDefault(); }
set { this._isMainNode = value; }
}
// Check to see if IsMainNode property is set
internal bool IsSetIsMainNode()
{
return this._isMainNode.HasValue;
}
/// <summary>
/// Gets and sets the property NodeIndex.
/// <para>
/// The node index for the node. Node index numbering begins at zero. This index is also
/// available on the node with the <code>AWS_BATCH_JOB_NODE_INDEX</code> environment variable.
/// </para>
/// </summary>
public int NodeIndex
{
get { return this._nodeIndex.GetValueOrDefault(); }
set { this._nodeIndex = value; }
}
// Check to see if NodeIndex property is set
internal bool IsSetNodeIndex()
{
return this._nodeIndex.HasValue;
}
/// <summary>
/// Gets and sets the property NumNodes.
/// <para>
/// The number of nodes that are associated with a multi-node parallel job.
/// </para>
/// </summary>
public int NumNodes
{
get { return this._numNodes.GetValueOrDefault(); }
set { this._numNodes = value; }
}
// Check to see if NumNodes property is set
internal bool IsSetNumNodes()
{
return this._numNodes.HasValue;
}
}
} | 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>
/// The object that represents any node overrides to a job definition that's used in a
/// <a>SubmitJob</a> API operation.
/// </summary>
public partial class NodePropertyOverride
{
private ContainerOverrides _containerOverrides;
private string _targetNodes;
/// <summary>
/// Gets and sets the property ContainerOverrides.
/// <para>
/// The overrides that are sent to a node range.
/// </para>
/// </summary>
public ContainerOverrides ContainerOverrides
{
get { return this._containerOverrides; }
set { this._containerOverrides = value; }
}
// Check to see if ContainerOverrides property is set
internal bool IsSetContainerOverrides()
{
return this._containerOverrides != null;
}
/// <summary>
/// Gets and sets the property TargetNodes.
/// <para>
/// The range of nodes, using node index values, that's used to override. A range of <code>0:3</code>
/// indicates nodes with index values of <code>0</code> through <code>3</code>. If the
/// starting range value is omitted (<code>:n</code>), then <code>0</code> is used to
/// start the range. If the ending range value is omitted (<code>n:</code>), then the
/// highest possible node index is used to end the range.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string TargetNodes
{
get { return this._targetNodes; }
set { this._targetNodes = value; }
}
// Check to see if TargetNodes property is set
internal bool IsSetTargetNodes()
{
return this._targetNodes != null;
}
}
} | 82 |
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 properties of the node range for a multi-node parallel
/// job.
/// </summary>
public partial class NodeRangeProperty
{
private ContainerProperties _container;
private string _targetNodes;
/// <summary>
/// Gets and sets the property Container.
/// <para>
/// The container details for the node range.
/// </para>
/// </summary>
public ContainerProperties 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 TargetNodes.
/// <para>
/// The range of nodes, using node index values. A range of <code>0:3</code> indicates
/// nodes with index values of <code>0</code> through <code>3</code>. If the starting
/// range value is omitted (<code>:n</code>), then <code>0</code> is used to start the
/// range. If the ending range value is omitted (<code>n:</code>), then the highest possible
/// node index is used to end the range. Your accumulative node ranges must account for
/// all nodes (<code>0:n</code>). You can nest node ranges (for example, <code>0:10</code>
/// and <code>4:5</code>). In this case, the <code>4:5</code> range properties override
/// the <code>0:10</code> properties.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string TargetNodes
{
get { return this._targetNodes; }
set { this._targetNodes = value; }
}
// Check to see if TargetNodes property is set
internal bool IsSetTargetNodes()
{
return this._targetNodes != 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>
/// Container for the parameters to the RegisterJobDefinition operation.
/// Registers an Batch job definition.
/// </summary>
public partial class RegisterJobDefinitionRequest : AmazonBatchRequest
{
private ContainerProperties _containerProperties;
private EksProperties _eksProperties;
private string _jobDefinitionName;
private NodeProperties _nodeProperties;
private Dictionary<string, string> _parameters = new Dictionary<string, string>();
private List<string> _platformCapabilities = new List<string>();
private bool? _propagateTags;
private RetryStrategy _retryStrategy;
private int? _schedulingPriority;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
private JobTimeout _timeout;
private JobDefinitionType _type;
/// <summary>
/// Gets and sets the property ContainerProperties.
/// <para>
/// An object with various properties specific to Amazon ECS based single-node container-based
/// jobs. If the job definition's <code>type</code> parameter is <code>container</code>,
/// then you must specify either <code>containerProperties</code> or <code>nodeProperties</code>.
/// This must not be specified for Amazon EKS based job definitions.
/// </para>
/// <note>
/// <para>
/// If the job runs on Fargate resources, then you must not specify <code>nodeProperties</code>;
/// use only <code>containerProperties</code>.
/// </para>
/// </note>
/// </summary>
public ContainerProperties ContainerProperties
{
get { return this._containerProperties; }
set { this._containerProperties = value; }
}
// Check to see if ContainerProperties property is set
internal bool IsSetContainerProperties()
{
return this._containerProperties != null;
}
/// <summary>
/// Gets and sets the property EksProperties.
/// <para>
/// An object with various properties that are specific to Amazon EKS based jobs. This
/// must not be specified for Amazon ECS based job definitions.
/// </para>
/// </summary>
public EksProperties EksProperties
{
get { return this._eksProperties; }
set { this._eksProperties = value; }
}
// Check to see if EksProperties property is set
internal bool IsSetEksProperties()
{
return this._eksProperties != null;
}
/// <summary>
/// Gets and sets the property JobDefinitionName.
/// <para>
/// The name of the job definition to register. 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 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 NodeProperties.
/// <para>
/// An object with various properties specific to multi-node parallel jobs. If you specify
/// node properties for a job, it becomes a multi-node parallel job. For more information,
/// see <a href="https://docs.aws.amazon.com/batch/latest/userguide/multi-node-parallel-jobs.html">Multi-node
/// Parallel Jobs</a> in the <i>Batch User Guide</i>. If the job definition's <code>type</code>
/// parameter is <code>container</code>, then you must specify either <code>containerProperties</code>
/// or <code>nodeProperties</code>.
/// </para>
/// <note>
/// <para>
/// If the job runs on Fargate resources, then you must not specify <code>nodeProperties</code>;
/// use <code>containerProperties</code> instead.
/// </para>
/// </note> <note>
/// <para>
/// If the job runs on Amazon EKS resources, then you must not specify <code>nodeProperties</code>.
/// </para>
/// </note>
/// </summary>
public NodeProperties NodeProperties
{
get { return this._nodeProperties; }
set { this._nodeProperties = value; }
}
// Check to see if NodeProperties property is set
internal bool IsSetNodeProperties()
{
return this._nodeProperties != null;
}
/// <summary>
/// Gets and sets the property Parameters.
/// <para>
/// Default parameter substitution placeholders to set in the job definition. Parameters
/// are specified as a key-value pair mapping. Parameters in a <code>SubmitJob</code>
/// request override any corresponding parameter defaults from the job definition.
/// </para>
/// </summary>
public Dictionary<string, string> Parameters
{
get { return this._parameters; }
set { this._parameters = value; }
}
// Check to see if Parameters property is set
internal bool IsSetParameters()
{
return this._parameters != null && this._parameters.Count > 0;
}
/// <summary>
/// Gets and sets the property PlatformCapabilities.
/// <para>
/// The platform capabilities required by the job definition. If no value is specified,
/// it defaults to <code>EC2</code>. To run the job on Fargate resources, specify <code>FARGATE</code>.
/// </para>
/// <note>
/// <para>
/// If the job runs on Amazon EKS resources, then you must not specify <code>platformCapabilities</code>.
/// </para>
/// </note>
/// </summary>
public List<string> PlatformCapabilities
{
get { return this._platformCapabilities; }
set { this._platformCapabilities = value; }
}
// Check to see if PlatformCapabilities property is set
internal bool IsSetPlatformCapabilities()
{
return this._platformCapabilities != null && this._platformCapabilities.Count > 0;
}
/// <summary>
/// Gets and sets the property PropagateTags.
/// <para>
/// Specifies whether to propagate the tags from the job or job definition to the corresponding
/// Amazon ECS task. If no value is specified, the tags are not propagated. Tags can only
/// be propagated to the tasks during task creation. For tags with the same name, job
/// tags are given priority over job definitions tags. If the total number of combined
/// tags from the job and job definition is over 50, the job is moved to the <code>FAILED</code>
/// state.
/// </para>
/// <note>
/// <para>
/// If the job runs on Amazon EKS resources, then you must not specify <code>propagateTags</code>.
/// </para>
/// </note>
/// </summary>
public bool PropagateTags
{
get { return this._propagateTags.GetValueOrDefault(); }
set { this._propagateTags = value; }
}
// Check to see if PropagateTags property is set
internal bool IsSetPropagateTags()
{
return this._propagateTags.HasValue;
}
/// <summary>
/// Gets and sets the property RetryStrategy.
/// <para>
/// The retry strategy to use for failed jobs that are submitted with this job definition.
/// Any retry strategy that's specified during a <a>SubmitJob</a> operation overrides
/// the retry strategy defined here. If a job is terminated due to a timeout, it isn't
/// retried.
/// </para>
/// </summary>
public RetryStrategy RetryStrategy
{
get { return this._retryStrategy; }
set { this._retryStrategy = value; }
}
// Check to see if RetryStrategy property is set
internal bool IsSetRetryStrategy()
{
return this._retryStrategy != null;
}
/// <summary>
/// Gets and sets the property SchedulingPriority.
/// <para>
/// The scheduling priority for jobs that are submitted with this job definition. This
/// only affects jobs in job queues with a fair share policy. Jobs with a higher scheduling
/// priority are scheduled before jobs with a lower scheduling priority.
/// </para>
///
/// <para>
/// The minimum supported value is 0 and the maximum supported value is 9999.
/// </para>
/// </summary>
public int SchedulingPriority
{
get { return this._schedulingPriority.GetValueOrDefault(); }
set { this._schedulingPriority = value; }
}
// Check to see if SchedulingPriority property is set
internal bool IsSetSchedulingPriority()
{
return this._schedulingPriority.HasValue;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The tags that you apply to the job definition 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
/// Amazon Web Services 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;
}
/// <summary>
/// Gets and sets the property Timeout.
/// <para>
/// The timeout configuration for jobs that are submitted with this job definition, after
/// which Batch terminates your jobs if they have not finished. If a job is terminated
/// due to a timeout, it isn't retried. The minimum value for the timeout is 60 seconds.
/// Any timeout configuration that's specified during a <a>SubmitJob</a> operation overrides
/// the timeout configuration defined here. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/job_timeouts.html">Job
/// Timeouts</a> in the <i>Batch User Guide</i>.
/// </para>
/// </summary>
public JobTimeout Timeout
{
get { return this._timeout; }
set { this._timeout = value; }
}
// Check to see if Timeout property is set
internal bool IsSetTimeout()
{
return this._timeout != null;
}
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// The type of job definition. For more information about multi-node parallel jobs, see
/// <a href="https://docs.aws.amazon.com/batch/latest/userguide/multi-node-job-def.html">Creating
/// a multi-node parallel job definition</a> in the <i>Batch User Guide</i>.
/// </para>
/// <note>
/// <para>
/// If the job is run on Fargate resources, then <code>multinode</code> isn't supported.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Required=true)]
public JobDefinitionType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
} | 338 |
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 RegisterJobDefinition operation.
/// </summary>
public partial class RegisterJobDefinitionResponse : AmazonWebServiceResponse
{
private string _jobDefinitionArn;
private string _jobDefinitionName;
private int? _revision;
/// <summary>
/// Gets and sets the property JobDefinitionArn.
/// <para>
/// The Amazon Resource Name (ARN) of the job definition.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string JobDefinitionArn
{
get { return this._jobDefinitionArn; }
set { this._jobDefinitionArn = value; }
}
// Check to see if JobDefinitionArn property is set
internal bool IsSetJobDefinitionArn()
{
return this._jobDefinitionArn != null;
}
/// <summary>
/// Gets and sets the property JobDefinitionName.
/// <para>
/// The name of the job definition.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
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 Revision.
/// <para>
/// The revision of the job definition.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public int Revision
{
get { return this._revision.GetValueOrDefault(); }
set { this._revision = value; }
}
// Check to see if Revision property is set
internal bool IsSetRevision()
{
return this._revision.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>
/// The type and amount of a resource to assign to a container. The supported resources
/// include <code>GPU</code>, <code>MEMORY</code>, and <code>VCPU</code>.
/// </summary>
public partial class ResourceRequirement
{
private ResourceType _type;
private string _value;
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// The type of resource to assign to a container. The supported resources include <code>GPU</code>,
/// <code>MEMORY</code>, and <code>VCPU</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ResourceType 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 Value.
/// <para>
/// The quantity of the specified resource to reserve for the container. The values vary
/// based on the <code>type</code> specified.
/// </para>
/// <dl> <dt>type="GPU"</dt> <dd>
/// <para>
/// The number of physical GPUs to reserve for the container. Make sure that the number
/// of GPUs reserved for all containers in a job doesn't exceed the number of available
/// GPUs on the compute resource that the job is launched on.
/// </para>
/// <note>
/// <para>
/// GPUs aren't available for jobs that are running on Fargate resources.
/// </para>
/// </note> </dd> <dt>type="MEMORY"</dt> <dd>
/// <para>
/// The memory hard limit (in MiB) present to the container. This parameter is supported
/// for jobs that are running on EC2 resources. If your container attempts to exceed the
/// memory specified, the container is terminated. This parameter maps to <code>Memory</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>--memory</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker
/// run</a>. You must specify at least 4 MiB of memory for a job. This is required but
/// can be specified in several places for multi-node parallel (MNP) jobs. It must be
/// specified for each node at least once. This parameter maps to <code>Memory</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>--memory</code> option to <a href="https://docs.docker.com/engine/reference/run/">docker
/// run</a>.
/// </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>
/// <para>
/// For jobs that are running on Fargate resources, then <code>value</code> is the hard
/// limit (in MiB), and must match one of the supported values and the <code>VCPU</code>
/// values must be one of the values supported for that memory value.
/// </para>
/// <dl> <dt>value = 512</dt> <dd>
/// <para>
/// <code>VCPU</code> = 0.25
/// </para>
/// </dd> <dt>value = 1024</dt> <dd>
/// <para>
/// <code>VCPU</code> = 0.25 or 0.5
/// </para>
/// </dd> <dt>value = 2048</dt> <dd>
/// <para>
/// <code>VCPU</code> = 0.25, 0.5, or 1
/// </para>
/// </dd> <dt>value = 3072</dt> <dd>
/// <para>
/// <code>VCPU</code> = 0.5, or 1
/// </para>
/// </dd> <dt>value = 4096</dt> <dd>
/// <para>
/// <code>VCPU</code> = 0.5, 1, or 2
/// </para>
/// </dd> <dt>value = 5120, 6144, or 7168</dt> <dd>
/// <para>
/// <code>VCPU</code> = 1 or 2
/// </para>
/// </dd> <dt>value = 8192</dt> <dd>
/// <para>
/// <code>VCPU</code> = 1, 2, or 4
/// </para>
/// </dd> <dt>value = 9216, 10240, 11264, 12288, 13312, 14336, or 15360</dt> <dd>
/// <para>
/// <code>VCPU</code> = 2 or 4
/// </para>
/// </dd> <dt>value = 16384</dt> <dd>
/// <para>
/// <code>VCPU</code> = 2, 4, or 8
/// </para>
/// </dd> <dt>value = 17408, 18432, 19456, 21504, 22528, 23552, 25600, 26624, 27648,
/// 29696, or 30720</dt> <dd>
/// <para>
/// <code>VCPU</code> = 4
/// </para>
/// </dd> <dt>value = 20480, 24576, or 28672</dt> <dd>
/// <para>
/// <code>VCPU</code> = 4 or 8
/// </para>
/// </dd> <dt>value = 36864, 45056, 53248, or 61440</dt> <dd>
/// <para>
/// <code>VCPU</code> = 8
/// </para>
/// </dd> <dt>value = 32768, 40960, 49152, or 57344</dt> <dd>
/// <para>
/// <code>VCPU</code> = 8 or 16
/// </para>
/// </dd> <dt>value = 65536, 73728, 81920, 90112, 98304, 106496, 114688, or 122880</dt>
/// <dd>
/// <para>
/// <code>VCPU</code> = 16
/// </para>
/// </dd> </dl> </dd> <dt>type="VCPU"</dt> <dd>
/// <para>
/// The number of vCPUs reserved for the container. 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. For EC2 resources, 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>
///
/// <para>
/// The default for the Fargate On-Demand vCPU resource count quota is 6 vCPUs. For more
/// information about Fargate quotas, see <a href="https://docs.aws.amazon.com/general/latest/gr/ecs-service.html#service-quotas-fargate">Fargate
/// quotas</a> in the <i>Amazon Web Services General Reference</i>.
/// </para>
///
/// <para>
/// For jobs that are running on Fargate resources, then <code>value</code> must match
/// one of the supported values and the <code>MEMORY</code> values must be one of the
/// values supported for that <code>VCPU</code> value. The supported values are 0.25,
/// 0.5, 1, 2, 4, 8, and 16
/// </para>
/// <dl> <dt>value = 0.25</dt> <dd>
/// <para>
/// <code>MEMORY</code> = 512, 1024, or 2048
/// </para>
/// </dd> <dt>value = 0.5</dt> <dd>
/// <para>
/// <code>MEMORY</code> = 1024, 2048, 3072, or 4096
/// </para>
/// </dd> <dt>value = 1</dt> <dd>
/// <para>
/// <code>MEMORY</code> = 2048, 3072, 4096, 5120, 6144, 7168, or 8192
/// </para>
/// </dd> <dt>value = 2</dt> <dd>
/// <para>
/// <code>MEMORY</code> = 4096, 5120, 6144, 7168, 8192, 9216, 10240, 11264, 12288, 13312,
/// 14336, 15360, or 16384
/// </para>
/// </dd> <dt>value = 4</dt> <dd>
/// <para>
/// <code>MEMORY</code> = 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, 16384,
/// 17408, 18432, 19456, 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672,
/// 29696, or 30720
/// </para>
/// </dd> <dt>value = 8</dt> <dd>
/// <para>
/// <code>MEMORY</code> = 16384, 20480, 24576, 28672, 32768, 36864, 40960, 45056, 49152,
/// 53248, 57344, or 61440
/// </para>
/// </dd> <dt>value = 16</dt> <dd>
/// <para>
/// <code>MEMORY</code> = 32768, 40960, 49152, 57344, 65536, 73728, 81920, 90112, 98304,
/// 106496, 114688, or 122880
/// </para>
/// </dd> </dl> </dd> </dl>
/// </summary>
[AWSProperty(Required=true)]
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;
}
}
} | 234 |
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 retry strategy that's associated with a job. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/job_retries.html">Automated
/// job retries</a> in the <i>Batch User Guide</i>.
/// </summary>
public partial class RetryStrategy
{
private int? _attempts;
private List<EvaluateOnExit> _evaluateOnExit = new List<EvaluateOnExit>();
/// <summary>
/// Gets and sets the property Attempts.
/// <para>
/// The number of times to move a job to the <code>RUNNABLE</code> status. You can specify
/// between 1 and 10 attempts. If the value of <code>attempts</code> is greater than one,
/// the job is retried on failure the same number of attempts as the value.
/// </para>
/// </summary>
public int Attempts
{
get { return this._attempts.GetValueOrDefault(); }
set { this._attempts = value; }
}
// Check to see if Attempts property is set
internal bool IsSetAttempts()
{
return this._attempts.HasValue;
}
/// <summary>
/// Gets and sets the property EvaluateOnExit.
/// <para>
/// Array of up to 5 objects that specify the conditions where jobs are retried or failed.
/// If this parameter is specified, then the <code>attempts</code> parameter must also
/// be specified. If none of the listed conditions match, then the job is retried.
/// </para>
/// </summary>
public List<EvaluateOnExit> EvaluateOnExit
{
get { return this._evaluateOnExit; }
set { this._evaluateOnExit = value; }
}
// Check to see if EvaluateOnExit property is set
internal bool IsSetEvaluateOnExit()
{
return this._evaluateOnExit != null && this._evaluateOnExit.Count > 0;
}
}
} | 81 |
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 scheduling policy.
/// </summary>
public partial class SchedulingPolicyDetail
{
private string _arn;
private FairsharePolicy _fairsharePolicy;
private string _name;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The Amazon Resource Name (ARN) of the scheduling policy. An example is <code>arn:<i>aws</i>:batch:<i>us-east-1</i>:<i>123456789012</i>:scheduling-policy/<i>HighPriority</i>
/// </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 FairsharePolicy.
/// <para>
/// The fair share policy for 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.
/// </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 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>
/// </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;
}
}
} | 120 |
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 contains the details of a scheduling policy that's returned in a <code>ListSchedulingPolicy</code>
/// action.
/// </summary>
public partial class SchedulingPolicyListingDetail
{
private string _arn;
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// Amazon Resource Name (ARN) of the scheduling policy.
/// </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;
}
}
} | 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>
/// An object that represents the secret to expose to your container. Secrets can be exposed
/// to a container in the following ways:
///
/// <ul> <li>
/// <para>
/// To inject sensitive data into your containers as environment variables, use the <code>secrets</code>
/// container definition parameter.
/// </para>
/// </li> <li>
/// <para>
/// To reference sensitive information in the log configuration of a container, use the
/// <code>secretOptions</code> container definition parameter.
/// </para>
/// </li> </ul>
/// <para>
/// 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 partial class Secret
{
private string _name;
private string _valueFrom;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the secret.
/// </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 ValueFrom.
/// <para>
/// The secret to expose to the container. The supported values are either the full Amazon
/// Resource Name (ARN) of the Secrets Manager secret or the full ARN of the parameter
/// in the Amazon Web Services Systems Manager Parameter Store.
/// </para>
/// <note>
/// <para>
/// If the Amazon Web Services Systems Manager Parameter Store parameter exists in the
/// same Region as the job you're launching, then you can use either the full Amazon Resource
/// Name (ARN) or name of the parameter. If the parameter exists in a different Region,
/// then the full ARN must be specified.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Required=true)]
public string ValueFrom
{
get { return this._valueFrom; }
set { this._valueFrom = value; }
}
// Check to see if ValueFrom property is set
internal bool IsSetValueFrom()
{
return this._valueFrom != null;
}
}
} | 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 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 server issue.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ServerException : AmazonBatchException
{
/// <summary>
/// Constructs a new ServerException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ServerException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ServerException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ServerException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ServerException
/// </summary>
/// <param name="innerException"></param>
public ServerException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ServerException
/// </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 ServerException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ServerException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ServerException(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 ServerException 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 ServerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 124 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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 weights for the fair share identifiers for the fair share policy. Fair
/// share identifiers that aren't included have a default weight of <code>1.0</code>.
/// </summary>
public partial class ShareAttributes
{
private string _shareIdentifier;
private float? _weightFactor;
/// <summary>
/// Gets and sets the property ShareIdentifier.
/// <para>
/// A fair share identifier or fair share identifier prefix. If the string ends with an
/// asterisk (*), this entry specifies the weight factor to use for fair share identifiers
/// that start with that prefix. The list of fair share identifiers in a fair share policy
/// can't overlap. For example, you can't have one that specifies a <code>shareIdentifier</code>
/// of <code>UserA*</code> and another that specifies a <code>shareIdentifier</code> of
/// <code>UserA-1</code>.
/// </para>
///
/// <para>
/// There can be no more than 500 fair share identifiers active in a job queue.
/// </para>
///
/// <para>
/// The string is limited to 255 alphanumeric characters, and can be followed by an asterisk
/// (*).
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ShareIdentifier
{
get { return this._shareIdentifier; }
set { this._shareIdentifier = value; }
}
// Check to see if ShareIdentifier property is set
internal bool IsSetShareIdentifier()
{
return this._shareIdentifier != null;
}
/// <summary>
/// Gets and sets the property WeightFactor.
/// <para>
/// The weight factor for the fair share identifier. The default value is 1.0. A lower
/// value has a higher priority for compute resources. For example, jobs that use a share
/// identifier with a weight factor of 0.125 (1/8) get 8 times the compute resources of
/// jobs that use a share identifier with a weight factor of 1.
/// </para>
///
/// <para>
/// The smallest supported value is 0.0001, and the largest supported value is 999.9999.
/// </para>
/// </summary>
public float WeightFactor
{
get { return this._weightFactor.GetValueOrDefault(); }
set { this._weightFactor = value; }
}
// Check to see if WeightFactor property is set
internal bool IsSetWeightFactor()
{
return this._weightFactor.HasValue;
}
}
} | 99 |
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 SubmitJob operation.
/// Submits an Batch job from a job definition. Parameters that are specified during <a>SubmitJob</a>
/// override parameters defined in the job definition. vCPU and memory requirements that
/// are specified in the <code>resourceRequirements</code> objects in the job definition
/// are the exception. They can't be overridden this way using the <code>memory</code>
/// and <code>vcpus</code> parameters. Rather, you must specify updates to job definition
/// parameters in a <code>resourceRequirements</code> object that's included in the <code>containerOverrides</code>
/// parameter.
///
/// <note>
/// <para>
/// Job queues with a scheduling policy are limited to 500 active fair share identifiers
/// at a time.
/// </para>
/// </note> <important>
/// <para>
/// Jobs that run on Fargate resources can't be guaranteed to run for more than 14 days.
/// This is because, after 14 days, Fargate resources might become unavailable and job
/// might be terminated.
/// </para>
/// </important>
/// </summary>
public partial class SubmitJobRequest : AmazonBatchRequest
{
private ArrayProperties _arrayProperties;
private ContainerOverrides _containerOverrides;
private List<JobDependency> _dependsOn = new List<JobDependency>();
private EksPropertiesOverride _eksPropertiesOverride;
private string _jobDefinition;
private string _jobName;
private string _jobQueue;
private NodeOverrides _nodeOverrides;
private Dictionary<string, string> _parameters = new Dictionary<string, string>();
private bool? _propagateTags;
private RetryStrategy _retryStrategy;
private int? _schedulingPriorityOverride;
private string _shareIdentifier;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
private JobTimeout _timeout;
/// <summary>
/// Gets and sets the property ArrayProperties.
/// <para>
/// The array properties for the submitted job, such as the size of the array. The array
/// size can be between 2 and 10,000. If you specify array properties for a job, it becomes
/// an array job. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/array_jobs.html">Array
/// Jobs</a> in the <i>Batch User Guide</i>.
/// </para>
/// </summary>
public ArrayProperties ArrayProperties
{
get { return this._arrayProperties; }
set { this._arrayProperties = value; }
}
// Check to see if ArrayProperties property is set
internal bool IsSetArrayProperties()
{
return this._arrayProperties != null;
}
/// <summary>
/// Gets and sets the property ContainerOverrides.
/// <para>
/// An object with various properties that override the defaults for the job definition
/// that specify the name of a container in the specified job definition and the overrides
/// it should receive. You can override the default command for a container, which is
/// specified in the job definition or the Docker image, with a <code>command</code> override.
/// You can also override existing environment variables on a container or add new environment
/// variables to it with an <code>environment</code> override.
/// </para>
/// </summary>
public ContainerOverrides ContainerOverrides
{
get { return this._containerOverrides; }
set { this._containerOverrides = value; }
}
// Check to see if ContainerOverrides property is set
internal bool IsSetContainerOverrides()
{
return this._containerOverrides != null;
}
/// <summary>
/// Gets and sets the property DependsOn.
/// <para>
/// A list of dependencies for the job. A job can depend upon a maximum of 20 jobs. You
/// can specify a <code>SEQUENTIAL</code> type dependency without specifying a job ID
/// for array jobs so that each child array job completes sequentially, starting at index
/// 0. You can also specify an <code>N_TO_N</code> type dependency with a job ID for array
/// jobs. In that case, each index child of this job must wait for the corresponding index
/// child of each dependency to complete before it can begin.
/// </para>
/// </summary>
public List<JobDependency> DependsOn
{
get { return this._dependsOn; }
set { this._dependsOn = value; }
}
// Check to see if DependsOn property is set
internal bool IsSetDependsOn()
{
return this._dependsOn != null && this._dependsOn.Count > 0;
}
/// <summary>
/// Gets and sets the property EksPropertiesOverride.
/// <para>
/// An object that can only be specified for jobs that are run on Amazon EKS resources
/// with various properties that override defaults for the job definition.
/// </para>
/// </summary>
public EksPropertiesOverride EksPropertiesOverride
{
get { return this._eksPropertiesOverride; }
set { this._eksPropertiesOverride = value; }
}
// Check to see if EksPropertiesOverride property is set
internal bool IsSetEksPropertiesOverride()
{
return this._eksPropertiesOverride != null;
}
/// <summary>
/// Gets and sets the property JobDefinition.
/// <para>
/// The job definition used by this job. This value can be one of <code>definition-name</code>,
/// <code>definition-name:revision</code>, or the Amazon Resource Name (ARN) for the job
/// definition, with or without the revision (<code>arn:aws:batch:<i>region</i>:<i>account</i>:job-definition/<i>definition-name</i>:<i>revision</i>
/// </code>, or <code>arn:aws:batch:<i>region</i>:<i>account</i>:job-definition/<i>definition-name</i>
/// </code>).
/// </para>
///
/// <para>
/// If the revision is not specified, then the latest active revision is used.
/// </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;
}
/// <summary>
/// Gets and sets the property JobName.
/// <para>
/// The name of the job. It can be up to 128 letters long. The first character must be
/// alphanumeric, can contain uppercase and lowercase letters, numbers, hyphens (-), and
/// underscores (_).
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string JobName
{
get { return this._jobName; }
set { this._jobName = value; }
}
// Check to see if JobName property is set
internal bool IsSetJobName()
{
return this._jobName != null;
}
/// <summary>
/// Gets and sets the property JobQueue.
/// <para>
/// The job queue where the job is submitted. You can specify either the name or the Amazon
/// Resource Name (ARN) of the queue.
/// </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;
}
/// <summary>
/// Gets and sets the property NodeOverrides.
/// <para>
/// A list of node overrides in JSON format that specify the node range to target and
/// the container overrides for that node range.
/// </para>
/// <note>
/// <para>
/// This parameter isn't applicable to jobs that are running on Fargate resources; use
/// <code>containerOverrides</code> instead.
/// </para>
/// </note>
/// </summary>
public NodeOverrides NodeOverrides
{
get { return this._nodeOverrides; }
set { this._nodeOverrides = value; }
}
// Check to see if NodeOverrides property is set
internal bool IsSetNodeOverrides()
{
return this._nodeOverrides != null;
}
/// <summary>
/// Gets and sets the property Parameters.
/// <para>
/// Additional parameters passed to the job that replace parameter substitution placeholders
/// that are set in the job definition. Parameters are specified as a key and value pair
/// mapping. Parameters in a <code>SubmitJob</code> request override any corresponding
/// parameter defaults from the job definition.
/// </para>
/// </summary>
public Dictionary<string, string> Parameters
{
get { return this._parameters; }
set { this._parameters = value; }
}
// Check to see if Parameters property is set
internal bool IsSetParameters()
{
return this._parameters != null && this._parameters.Count > 0;
}
/// <summary>
/// Gets and sets the property PropagateTags.
/// <para>
/// Specifies whether to propagate the tags from the job or job definition to the corresponding
/// Amazon ECS task. If no value is specified, the tags aren't propagated. Tags can only
/// be propagated to the tasks during task creation. For tags with the same name, job
/// tags are given priority over job definitions tags. If the total number of combined
/// tags from the job and job definition is over 50, the job is moved to the <code>FAILED</code>
/// state. When specified, this overrides the tag propagation setting in the job definition.
/// </para>
/// </summary>
public bool PropagateTags
{
get { return this._propagateTags.GetValueOrDefault(); }
set { this._propagateTags = value; }
}
// Check to see if PropagateTags property is set
internal bool IsSetPropagateTags()
{
return this._propagateTags.HasValue;
}
/// <summary>
/// Gets and sets the property RetryStrategy.
/// <para>
/// The retry strategy to use for failed jobs from this <a>SubmitJob</a> operation. When
/// a retry strategy is specified here, it overrides the retry strategy defined in the
/// job definition.
/// </para>
/// </summary>
public RetryStrategy RetryStrategy
{
get { return this._retryStrategy; }
set { this._retryStrategy = value; }
}
// Check to see if RetryStrategy property is set
internal bool IsSetRetryStrategy()
{
return this._retryStrategy != null;
}
/// <summary>
/// Gets and sets the property SchedulingPriorityOverride.
/// <para>
/// The scheduling priority for the job. This only affects jobs in job queues with a fair
/// share policy. Jobs with a higher scheduling priority are scheduled before jobs with
/// a lower scheduling priority. This overrides any scheduling priority in the job definition.
/// </para>
///
/// <para>
/// The minimum supported value is 0 and the maximum supported value is 9999.
/// </para>
/// </summary>
public int SchedulingPriorityOverride
{
get { return this._schedulingPriorityOverride.GetValueOrDefault(); }
set { this._schedulingPriorityOverride = value; }
}
// Check to see if SchedulingPriorityOverride property is set
internal bool IsSetSchedulingPriorityOverride()
{
return this._schedulingPriorityOverride.HasValue;
}
/// <summary>
/// Gets and sets the property ShareIdentifier.
/// <para>
/// The share identifier for the job. If the job queue doesn't have a scheduling policy,
/// then this parameter must not be specified. If the job queue has a scheduling policy,
/// then this parameter must be specified.
/// </para>
/// </summary>
public string ShareIdentifier
{
get { return this._shareIdentifier; }
set { this._shareIdentifier = value; }
}
// Check to see if ShareIdentifier property is set
internal bool IsSetShareIdentifier()
{
return this._shareIdentifier != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The tags that you apply to the job request 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>
/// </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 Timeout.
/// <para>
/// The timeout configuration for this <a>SubmitJob</a> operation. You can specify a timeout
/// duration after which Batch terminates your jobs if they haven't finished. If a job
/// is terminated due to a timeout, it isn't retried. The minimum value for the timeout
/// is 60 seconds. This configuration overrides any timeout configuration specified in
/// the job definition. For array jobs, child jobs have the same timeout configuration
/// as the parent job. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/job_timeouts.html">Job
/// Timeouts</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
/// </para>
/// </summary>
public JobTimeout Timeout
{
get { return this._timeout; }
set { this._timeout = value; }
}
// Check to see if Timeout property is set
internal bool IsSetTimeout()
{
return this._timeout != null;
}
}
} | 406 |
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 SubmitJob operation.
/// </summary>
public partial class SubmitJobResponse : AmazonWebServiceResponse
{
private string _jobArn;
private string _jobId;
private string _jobName;
/// <summary>
/// Gets and sets the property JobArn.
/// <para>
/// The Amazon Resource Name (ARN) for the job.
/// </para>
/// </summary>
public string JobArn
{
get { return this._jobArn; }
set { this._jobArn = value; }
}
// Check to see if JobArn property is set
internal bool IsSetJobArn()
{
return this._jobArn != null;
}
/// <summary>
/// Gets and sets the property JobId.
/// <para>
/// The unique identifier for the job.
/// </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 JobName.
/// <para>
/// The name of the job.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string JobName
{
get { return this._jobName; }
set { this._jobName = value; }
}
// Check to see if JobName property is set
internal bool IsSetJobName()
{
return this._jobName != 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>
/// Container for the parameters to the TagResource operation.
/// Associates the specified tags to a resource with the specified <code>resourceArn</code>.
/// If existing tags on a resource aren't specified in the request parameters, they aren't
/// changed. When a resource is deleted, the tags that are associated with that resource
/// are deleted as well. Batch resources that support tags are compute environments, jobs,
/// job definitions, job queues, and scheduling policies. ARNs for child jobs of array
/// and multi-node parallel (MNP) jobs aren't supported.
/// </summary>
public partial class TagResourceRequest : AmazonBatchRequest
{
private string _resourceArn;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property ResourceArn.
/// <para>
/// The Amazon Resource Name (ARN) of the resource that tags are added to. Batch resources
/// that support tags are compute environments, jobs, job definitions, job queues, and
/// scheduling policies. ARNs for child jobs of array and multi-node parallel (MNP) jobs
/// aren't supported.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ResourceArn
{
get { return this._resourceArn; }
set { this._resourceArn = value; }
}
// Check to see if ResourceArn property is set
internal bool IsSetResourceArn()
{
return this._resourceArn != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The tags that you apply to the resource 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>
/// </summary>
[AWSProperty(Required=true, 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;
}
}
} | 89 |
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 TagResource operation.
/// </summary>
public partial class TagResourceResponse : 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 TerminateJob operation.
/// Terminates a job in a job queue. Jobs that are in the <code>STARTING</code> or <code>RUNNING</code>
/// state are terminated, which causes them to transition to <code>FAILED</code>. Jobs
/// that have not progressed to the <code>STARTING</code> state are cancelled.
/// </summary>
public partial class TerminateJobRequest : AmazonBatchRequest
{
private string _jobId;
private string _reason;
/// <summary>
/// Gets and sets the property JobId.
/// <para>
/// The Batch job ID of the job to terminate.
/// </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;
}
}
} | 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.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 TerminateJob operation.
/// </summary>
public partial class TerminateJobResponse : 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>
/// The container path, mount options, and size of the <code>tmpfs</code> mount.
///
/// <note>
/// <para>
/// This object isn't applicable to jobs that are running on Fargate resources.
/// </para>
/// </note>
/// </summary>
public partial class Tmpfs
{
private string _containerPath;
private List<string> _mountOptions = new List<string>();
private int? _size;
/// <summary>
/// Gets and sets the property ContainerPath.
/// <para>
/// The absolute file path in the container where the <code>tmpfs</code> volume is mounted.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
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 MountOptions.
/// <para>
/// The list of <code>tmpfs</code> volume mount options.
/// </para>
///
/// <para>
/// Valid values: "<code>defaults</code>" | "<code>ro</code>" | "<code>rw</code>" | "<code>suid</code>"
/// | "<code>nosuid</code>" | "<code>dev</code>" | "<code>nodev</code>" | "<code>exec</code>"
/// | "<code>noexec</code>" | "<code>sync</code>" | "<code>async</code>" | "<code>dirsync</code>"
/// | "<code>remount</code>" | "<code>mand</code>" | "<code>nomand</code>" | "<code>atime</code>"
/// | "<code>noatime</code>" | "<code>diratime</code>" | "<code>nodiratime</code>" | "<code>bind</code>"
/// | "<code>rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared"
/// | "rshared" | "slave" | "rslave" | "relatime</code>" | "<code>norelatime</code>" |
/// "<code>strictatime</code>" | "<code>nostrictatime</code>" | "<code>mode</code>" |
/// "<code>uid</code>" | "<code>gid</code>" | "<code>nr_inodes</code>" | "<code>nr_blocks</code>"
/// | "<code>mpol</code>"
/// </para>
/// </summary>
public List<string> MountOptions
{
get { return this._mountOptions; }
set { this._mountOptions = value; }
}
// Check to see if MountOptions property is set
internal bool IsSetMountOptions()
{
return this._mountOptions != null && this._mountOptions.Count > 0;
}
/// <summary>
/// Gets and sets the property Size.
/// <para>
/// The size (in MiB) of the <code>tmpfs</code> volume.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
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;
}
}
} | 116 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the 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 <code>ulimit</code> settings to pass to the container.
///
/// <note>
/// <para>
/// This object isn't applicable to jobs that are running on Fargate resources.
/// </para>
/// </note>
/// </summary>
public partial class Ulimit
{
private int? _hardLimit;
private string _name;
private int? _softLimit;
/// <summary>
/// Gets and sets the property HardLimit.
/// <para>
/// The hard limit for the <code>ulimit</code> type.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public int HardLimit
{
get { return this._hardLimit.GetValueOrDefault(); }
set { this._hardLimit = value; }
}
// Check to see if HardLimit property is set
internal bool IsSetHardLimit()
{
return this._hardLimit.HasValue;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The <code>type</code> of the <code>ulimit</code>.
/// </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 SoftLimit.
/// <para>
/// The soft limit for the <code>ulimit</code> type.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public int SoftLimit
{
get { return this._softLimit.GetValueOrDefault(); }
set { this._softLimit = value; }
}
// Check to see if SoftLimit property is set
internal bool IsSetSoftLimit()
{
return this._softLimit.HasValue;
}
}
} | 104 |
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 UntagResource operation.
/// Deletes specified tags from an Batch resource.
/// </summary>
public partial class UntagResourceRequest : AmazonBatchRequest
{
private string _resourceArn;
private List<string> _tagKeys = new List<string>();
/// <summary>
/// Gets and sets the property ResourceArn.
/// <para>
/// The Amazon Resource Name (ARN) of the resource from which to delete tags. Batch resources
/// that support tags are compute environments, jobs, job definitions, job queues, and
/// scheduling policies. ARNs for child jobs of array and multi-node parallel (MNP) jobs
/// aren't supported.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ResourceArn
{
get { return this._resourceArn; }
set { this._resourceArn = value; }
}
// Check to see if ResourceArn property is set
internal bool IsSetResourceArn()
{
return this._resourceArn != null;
}
/// <summary>
/// Gets and sets the property TagKeys.
/// <para>
/// The keys of the tags to be removed.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=50)]
public List<string> TagKeys
{
get { return this._tagKeys; }
set { this._tagKeys = value; }
}
// Check to see if TagKeys property is set
internal bool IsSetTagKeys()
{
return this._tagKeys != null && this._tagKeys.Count > 0;
}
}
} | 82 |
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 UntagResource operation.
/// </summary>
public partial class UntagResourceResponse : 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 UpdateComputeEnvironment operation.
/// Updates an Batch compute environment.
/// </summary>
public partial class UpdateComputeEnvironmentRequest : AmazonBatchRequest
{
private string _computeEnvironment;
private ComputeResourceUpdate _computeResources;
private string _serviceRole;
private CEState _state;
private int? _unmanagedvCpus;
private UpdatePolicy _updatePolicy;
/// <summary>
/// Gets and sets the property ComputeEnvironment.
/// <para>
/// The name or full Amazon Resource Name (ARN) of the compute environment to update.
/// </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 ComputeResources.
/// <para>
/// Details of the compute resources managed by the compute environment. Required for
/// a managed 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 ComputeResourceUpdate 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 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 the compute environment has a service-linked role, it can't be changed to use a
/// regular IAM role. Likewise, if the compute environment has a regular IAM role, it
/// can't be changed to use a service-linked role. To update the parameters for the compute
/// environment that require an infrastructure update to change, the <b>AWSServiceRoleForBatch</b>
/// service-linked role must be used. 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>
/// </important>
/// <para>
/// If your specified role has a path other than <code>/</code>, then you must either
/// specify the full role ARN (recommended) or prefix the role name with the path.
/// </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. Compute environments in the <code>ENABLED</code>
/// state can accept jobs from a queue and scale in or out automatically based on the
/// workload demand of its associated 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 UnmanagedvCpus.
/// <para>
/// The maximum number of vCPUs expected to be used for an unmanaged compute environment.
/// Don't specify this parameter for a managed 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>
/// </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 updated 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;
}
}
} | 218 |
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 UpdateComputeEnvironment operation.
/// </summary>
public partial class UpdateComputeEnvironmentResponse : 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 UpdateJobQueue operation.
/// Updates a job queue.
/// </summary>
public partial class UpdateJobQueueRequest : AmazonBatchRequest
{
private List<ComputeEnvironmentOrder> _computeEnvironmentOrder = new List<ComputeEnvironmentOrder>();
private string _jobQueue;
private int? _priority;
private string _schedulingPolicyArn;
private JQState _state;
/// <summary>
/// Gets and sets the property ComputeEnvironmentOrder.
/// <para>
/// Details the set of compute environments mapped to a job queue and their order relative
/// to each other. This is one of the parameters used by the job scheduler to determine
/// which compute environment runs a given job. 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.
/// </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>
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 JobQueue.
/// <para>
/// The name or the Amazon Resource Name (ARN) of the job queue.
/// </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;
}
/// <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>
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>
/// Amazon Resource Name (ARN) of the fair share scheduling policy. Once a job queue is
/// created, the fair share scheduling policy can be replaced but not removed. 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>
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>
/// Describes the queue's ability to accept new jobs. If the job queue state is <code>ENABLED</code>,
/// it can 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;
}
}
} | 159 |
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 UpdateJobQueue operation.
/// </summary>
public partial class UpdateJobQueueResponse : 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>
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>
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;
}
}
} | 76 |
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 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>.
/// </summary>
public partial class UpdatePolicy
{
private long? _jobExecutionTimeoutMinutes;
private bool? _terminateJobsOnUpdate;
/// <summary>
/// Gets and sets the property JobExecutionTimeoutMinutes.
/// <para>
/// Specifies the job timeout (in minutes) when the compute environment infrastructure
/// is updated. The default value is 30.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=360)]
public long JobExecutionTimeoutMinutes
{
get { return this._jobExecutionTimeoutMinutes.GetValueOrDefault(); }
set { this._jobExecutionTimeoutMinutes = value; }
}
// Check to see if JobExecutionTimeoutMinutes property is set
internal bool IsSetJobExecutionTimeoutMinutes()
{
return this._jobExecutionTimeoutMinutes.HasValue;
}
/// <summary>
/// Gets and sets the property TerminateJobsOnUpdate.
/// <para>
/// Specifies whether jobs are automatically terminated when the computer environment
/// infrastructure is updated. The default value is <code>false</code>.
/// </para>
/// </summary>
public bool TerminateJobsOnUpdate
{
get { return this._terminateJobsOnUpdate.GetValueOrDefault(); }
set { this._terminateJobsOnUpdate = value; }
}
// Check to see if TerminateJobsOnUpdate property is set
internal bool IsSetTerminateJobsOnUpdate()
{
return this._terminateJobsOnUpdate.HasValue;
}
}
} | 81 |
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 UpdateSchedulingPolicy operation.
/// Updates a scheduling policy.
/// </summary>
public partial class UpdateSchedulingPolicyRequest : AmazonBatchRequest
{
private string _arn;
private FairsharePolicy _fairsharePolicy;
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The Amazon Resource Name (ARN) of the scheduling policy to update.
/// </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 FairsharePolicy.
/// <para>
/// The fair share 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;
}
}
} | 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>
/// This is the response object from the UpdateSchedulingPolicy operation.
/// </summary>
public partial class UpdateSchedulingPolicyResponse : 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>
/// A data volume that's used in a job's container properties.
/// </summary>
public partial class Volume
{
private EFSVolumeConfiguration _efsVolumeConfiguration;
private Host _host;
private string _name;
/// <summary>
/// Gets and sets the property EfsVolumeConfiguration.
/// <para>
/// This parameter is specified when you're using an Amazon Elastic File System file system
/// for job storage. Jobs that are running on Fargate resources must specify a <code>platformVersion</code>
/// of at least <code>1.4.0</code>.
/// </para>
/// </summary>
public EFSVolumeConfiguration EfsVolumeConfiguration
{
get { return this._efsVolumeConfiguration; }
set { this._efsVolumeConfiguration = value; }
}
// Check to see if EfsVolumeConfiguration property is set
internal bool IsSetEfsVolumeConfiguration()
{
return this._efsVolumeConfiguration != null;
}
/// <summary>
/// Gets and sets the property Host.
/// <para>
/// The contents of the <code>host</code> parameter determine whether your data volume
/// persists on the host container instance and where it's stored. If the host parameter
/// is empty, then the Docker daemon assigns a host path for your data volume. However,
/// the data isn't guaranteed to persist after the containers that are associated with
/// it stop running.
/// </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 Host Host
{
get { return this._host; }
set { this._host = value; }
}
// Check to see if Host property is set
internal bool IsSetHost()
{
return this._host != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the volume. It can be up to 255 characters long. It can contain uppercase
/// and lowercase letters, numbers, hyphens (-), and underscores (_). This name is referenced
/// in the <code>sourceVolume</code> parameter of container definition <code>mountPoints</code>.
/// </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;
}
}
} | 109 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the batch-2016-08-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.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ArrayPropertiesDetail Object
/// </summary>
public class ArrayPropertiesDetailUnmarshaller : IUnmarshaller<ArrayPropertiesDetail, XmlUnmarshallerContext>, IUnmarshaller<ArrayPropertiesDetail, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ArrayPropertiesDetail IUnmarshaller<ArrayPropertiesDetail, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ArrayPropertiesDetail Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ArrayPropertiesDetail unmarshalledObject = new ArrayPropertiesDetail();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("index", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.Index = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("size", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.Size = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("statusSummary", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, int, StringUnmarshaller, IntUnmarshaller>(StringUnmarshaller.Instance, IntUnmarshaller.Instance);
unmarshalledObject.StatusSummary = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ArrayPropertiesDetailUnmarshaller _instance = new ArrayPropertiesDetailUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ArrayPropertiesDetailUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 104 |
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.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// ArrayProperties Marshaller
/// </summary>
public class ArrayPropertiesMarshaller : IRequestMarshaller<ArrayProperties, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(ArrayProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetSize())
{
context.Writer.WritePropertyName("size");
context.Writer.Write(requestObject.Size);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ArrayPropertiesMarshaller Instance = new ArrayPropertiesMarshaller();
}
} | 62 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the batch-2016-08-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.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ArrayPropertiesSummary Object
/// </summary>
public class ArrayPropertiesSummaryUnmarshaller : IUnmarshaller<ArrayPropertiesSummary, XmlUnmarshallerContext>, IUnmarshaller<ArrayPropertiesSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ArrayPropertiesSummary IUnmarshaller<ArrayPropertiesSummary, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ArrayPropertiesSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ArrayPropertiesSummary unmarshalledObject = new ArrayPropertiesSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("index", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.Index = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("size", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.Size = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ArrayPropertiesSummaryUnmarshaller _instance = new ArrayPropertiesSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ArrayPropertiesSummaryUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AttemptContainerDetail Object
/// </summary>
public class AttemptContainerDetailUnmarshaller : IUnmarshaller<AttemptContainerDetail, XmlUnmarshallerContext>, IUnmarshaller<AttemptContainerDetail, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
AttemptContainerDetail IUnmarshaller<AttemptContainerDetail, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AttemptContainerDetail Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
AttemptContainerDetail unmarshalledObject = new AttemptContainerDetail();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("containerInstanceArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ContainerInstanceArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("exitCode", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.ExitCode = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("logStreamName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.LogStreamName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("networkInterfaces", targetDepth))
{
var unmarshaller = new ListUnmarshaller<NetworkInterface, NetworkInterfaceUnmarshaller>(NetworkInterfaceUnmarshaller.Instance);
unmarshalledObject.NetworkInterfaces = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("reason", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Reason = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("taskArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.TaskArn = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static AttemptContainerDetailUnmarshaller _instance = new AttemptContainerDetailUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AttemptContainerDetailUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 122 |
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.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AttemptDetail Object
/// </summary>
public class AttemptDetailUnmarshaller : IUnmarshaller<AttemptDetail, XmlUnmarshallerContext>, IUnmarshaller<AttemptDetail, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
AttemptDetail IUnmarshaller<AttemptDetail, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AttemptDetail Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
AttemptDetail unmarshalledObject = new AttemptDetail();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("container", targetDepth))
{
var unmarshaller = AttemptContainerDetailUnmarshaller.Instance;
unmarshalledObject.Container = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("startedAt", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
unmarshalledObject.StartedAt = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("statusReason", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.StatusReason = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("stoppedAt", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
unmarshalledObject.StoppedAt = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static AttemptDetailUnmarshaller _instance = new AttemptDetailUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AttemptDetailUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 110 |
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.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// CancelJob Request Marshaller
/// </summary>
public class CancelJobRequestMarshaller : IMarshaller<IRequest, CancelJobRequest> , 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((CancelJobRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CancelJobRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10";
request.HttpMethod = "POST";
request.ResourcePath = "/v1/canceljob";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetJobId())
{
context.Writer.WritePropertyName("jobId");
context.Writer.Write(publicRequest.JobId);
}
if(publicRequest.IsSetReason())
{
context.Writer.WritePropertyName("reason");
context.Writer.Write(publicRequest.Reason);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CancelJobRequestMarshaller _instance = new CancelJobRequestMarshaller();
internal static CancelJobRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CancelJobRequestMarshaller 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 batch-2016-08-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.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CancelJob operation
/// </summary>
public class CancelJobResponseUnmarshaller : 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)
{
CancelJobResponse response = new CancelJobResponse();
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("ClientException"))
{
return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException"))
{
return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CancelJobResponseUnmarshaller _instance = new CancelJobResponseUnmarshaller();
internal static CancelJobResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CancelJobResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 103 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the batch-2016-08-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.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ClientException Object
/// </summary>
public class ClientExceptionUnmarshaller : IErrorResponseUnmarshaller<ClientException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ClientException 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 ClientException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ClientException unmarshalledObject = new ClientException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ClientExceptionUnmarshaller _instance = new ClientExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ClientExceptionUnmarshaller 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 batch-2016-08-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.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ComputeEnvironmentDetail Object
/// </summary>
public class ComputeEnvironmentDetailUnmarshaller : IUnmarshaller<ComputeEnvironmentDetail, XmlUnmarshallerContext>, IUnmarshaller<ComputeEnvironmentDetail, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ComputeEnvironmentDetail IUnmarshaller<ComputeEnvironmentDetail, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ComputeEnvironmentDetail Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ComputeEnvironmentDetail unmarshalledObject = new ComputeEnvironmentDetail();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("computeEnvironmentArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ComputeEnvironmentArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("computeEnvironmentName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ComputeEnvironmentName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("computeResources", targetDepth))
{
var unmarshaller = ComputeResourceUnmarshaller.Instance;
unmarshalledObject.ComputeResources = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("containerOrchestrationType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ContainerOrchestrationType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ecsClusterArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EcsClusterArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("eksConfiguration", targetDepth))
{
var unmarshaller = EksConfigurationUnmarshaller.Instance;
unmarshalledObject.EksConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("serviceRole", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ServiceRole = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("state", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.State = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Status = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("statusReason", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.StatusReason = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("tags", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
unmarshalledObject.Tags = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("type", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Type = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("unmanagedvCpus", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.UnmanagedvCpus = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("updatePolicy", targetDepth))
{
var unmarshaller = UpdatePolicyUnmarshaller.Instance;
unmarshalledObject.UpdatePolicy = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("uuid", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Uuid = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ComputeEnvironmentDetailUnmarshaller _instance = new ComputeEnvironmentDetailUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ComputeEnvironmentDetailUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 176 |
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.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// ComputeEnvironmentOrder Marshaller
/// </summary>
public class ComputeEnvironmentOrderMarshaller : IRequestMarshaller<ComputeEnvironmentOrder, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(ComputeEnvironmentOrder requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetComputeEnvironment())
{
context.Writer.WritePropertyName("computeEnvironment");
context.Writer.Write(requestObject.ComputeEnvironment);
}
if(requestObject.IsSetOrder())
{
context.Writer.WritePropertyName("order");
context.Writer.Write(requestObject.Order);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ComputeEnvironmentOrderMarshaller Instance = new ComputeEnvironmentOrderMarshaller();
}
} | 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.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ComputeEnvironmentOrder Object
/// </summary>
public class ComputeEnvironmentOrderUnmarshaller : IUnmarshaller<ComputeEnvironmentOrder, XmlUnmarshallerContext>, IUnmarshaller<ComputeEnvironmentOrder, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ComputeEnvironmentOrder IUnmarshaller<ComputeEnvironmentOrder, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ComputeEnvironmentOrder Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ComputeEnvironmentOrder unmarshalledObject = new ComputeEnvironmentOrder();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("computeEnvironment", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ComputeEnvironment = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("order", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.Order = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ComputeEnvironmentOrderUnmarshaller _instance = new ComputeEnvironmentOrderUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ComputeEnvironmentOrderUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// ComputeResource Marshaller
/// </summary>
public class ComputeResourceMarshaller : IRequestMarshaller<ComputeResource, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(ComputeResource requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetAllocationStrategy())
{
context.Writer.WritePropertyName("allocationStrategy");
context.Writer.Write(requestObject.AllocationStrategy);
}
if(requestObject.IsSetBidPercentage())
{
context.Writer.WritePropertyName("bidPercentage");
context.Writer.Write(requestObject.BidPercentage);
}
if(requestObject.IsSetDesiredvCpus())
{
context.Writer.WritePropertyName("desiredvCpus");
context.Writer.Write(requestObject.DesiredvCpus);
}
if(requestObject.IsSetEc2Configuration())
{
context.Writer.WritePropertyName("ec2Configuration");
context.Writer.WriteArrayStart();
foreach(var requestObjectEc2ConfigurationListValue in requestObject.Ec2Configuration)
{
context.Writer.WriteObjectStart();
var marshaller = Ec2ConfigurationMarshaller.Instance;
marshaller.Marshall(requestObjectEc2ConfigurationListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetEc2KeyPair())
{
context.Writer.WritePropertyName("ec2KeyPair");
context.Writer.Write(requestObject.Ec2KeyPair);
}
if(requestObject.IsSetImageId())
{
context.Writer.WritePropertyName("imageId");
context.Writer.Write(requestObject.ImageId);
}
if(requestObject.IsSetInstanceRole())
{
context.Writer.WritePropertyName("instanceRole");
context.Writer.Write(requestObject.InstanceRole);
}
if(requestObject.IsSetInstanceTypes())
{
context.Writer.WritePropertyName("instanceTypes");
context.Writer.WriteArrayStart();
foreach(var requestObjectInstanceTypesListValue in requestObject.InstanceTypes)
{
context.Writer.Write(requestObjectInstanceTypesListValue);
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetLaunchTemplate())
{
context.Writer.WritePropertyName("launchTemplate");
context.Writer.WriteObjectStart();
var marshaller = LaunchTemplateSpecificationMarshaller.Instance;
marshaller.Marshall(requestObject.LaunchTemplate, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetMaxvCpus())
{
context.Writer.WritePropertyName("maxvCpus");
context.Writer.Write(requestObject.MaxvCpus);
}
if(requestObject.IsSetMinvCpus())
{
context.Writer.WritePropertyName("minvCpus");
context.Writer.Write(requestObject.MinvCpus);
}
if(requestObject.IsSetPlacementGroup())
{
context.Writer.WritePropertyName("placementGroup");
context.Writer.Write(requestObject.PlacementGroup);
}
if(requestObject.IsSetSecurityGroupIds())
{
context.Writer.WritePropertyName("securityGroupIds");
context.Writer.WriteArrayStart();
foreach(var requestObjectSecurityGroupIdsListValue in requestObject.SecurityGroupIds)
{
context.Writer.Write(requestObjectSecurityGroupIdsListValue);
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetSpotIamFleetRole())
{
context.Writer.WritePropertyName("spotIamFleetRole");
context.Writer.Write(requestObject.SpotIamFleetRole);
}
if(requestObject.IsSetSubnets())
{
context.Writer.WritePropertyName("subnets");
context.Writer.WriteArrayStart();
foreach(var requestObjectSubnetsListValue in requestObject.Subnets)
{
context.Writer.Write(requestObjectSubnetsListValue);
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetTags())
{
context.Writer.WritePropertyName("tags");
context.Writer.WriteObjectStart();
foreach (var requestObjectTagsKvp in requestObject.Tags)
{
context.Writer.WritePropertyName(requestObjectTagsKvp.Key);
var requestObjectTagsValue = requestObjectTagsKvp.Value;
context.Writer.Write(requestObjectTagsValue);
}
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetType())
{
context.Writer.WritePropertyName("type");
context.Writer.Write(requestObject.Type);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ComputeResourceMarshaller Instance = new ComputeResourceMarshaller();
}
} | 196 |
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.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ComputeResource Object
/// </summary>
public class ComputeResourceUnmarshaller : IUnmarshaller<ComputeResource, XmlUnmarshallerContext>, IUnmarshaller<ComputeResource, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ComputeResource IUnmarshaller<ComputeResource, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ComputeResource Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ComputeResource unmarshalledObject = new ComputeResource();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("allocationStrategy", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AllocationStrategy = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("bidPercentage", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.BidPercentage = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("desiredvCpus", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.DesiredvCpus = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ec2Configuration", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Ec2Configuration, Ec2ConfigurationUnmarshaller>(Ec2ConfigurationUnmarshaller.Instance);
unmarshalledObject.Ec2Configuration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ec2KeyPair", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Ec2KeyPair = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("imageId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ImageId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("instanceRole", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.InstanceRole = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("instanceTypes", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.InstanceTypes = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("launchTemplate", targetDepth))
{
var unmarshaller = LaunchTemplateSpecificationUnmarshaller.Instance;
unmarshalledObject.LaunchTemplate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("maxvCpus", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.MaxvCpus = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("minvCpus", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.MinvCpus = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("placementGroup", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.PlacementGroup = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("securityGroupIds", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.SecurityGroupIds = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("spotIamFleetRole", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.SpotIamFleetRole = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("subnets", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.Subnets = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("tags", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
unmarshalledObject.Tags = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("type", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Type = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ComputeResourceUnmarshaller _instance = new ComputeResourceUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ComputeResourceUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 188 |
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.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// ComputeResourceUpdate Marshaller
/// </summary>
public class ComputeResourceUpdateMarshaller : IRequestMarshaller<ComputeResourceUpdate, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(ComputeResourceUpdate requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetAllocationStrategy())
{
context.Writer.WritePropertyName("allocationStrategy");
context.Writer.Write(requestObject.AllocationStrategy);
}
if(requestObject.IsSetBidPercentage())
{
context.Writer.WritePropertyName("bidPercentage");
context.Writer.Write(requestObject.BidPercentage);
}
if(requestObject.IsSetDesiredvCpus())
{
context.Writer.WritePropertyName("desiredvCpus");
context.Writer.Write(requestObject.DesiredvCpus);
}
if(requestObject.IsSetEc2Configuration())
{
context.Writer.WritePropertyName("ec2Configuration");
context.Writer.WriteArrayStart();
foreach(var requestObjectEc2ConfigurationListValue in requestObject.Ec2Configuration)
{
context.Writer.WriteObjectStart();
var marshaller = Ec2ConfigurationMarshaller.Instance;
marshaller.Marshall(requestObjectEc2ConfigurationListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetEc2KeyPair())
{
context.Writer.WritePropertyName("ec2KeyPair");
context.Writer.Write(requestObject.Ec2KeyPair);
}
if(requestObject.IsSetImageId())
{
context.Writer.WritePropertyName("imageId");
context.Writer.Write(requestObject.ImageId);
}
if(requestObject.IsSetInstanceRole())
{
context.Writer.WritePropertyName("instanceRole");
context.Writer.Write(requestObject.InstanceRole);
}
if(requestObject.IsSetInstanceTypes())
{
context.Writer.WritePropertyName("instanceTypes");
context.Writer.WriteArrayStart();
foreach(var requestObjectInstanceTypesListValue in requestObject.InstanceTypes)
{
context.Writer.Write(requestObjectInstanceTypesListValue);
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetLaunchTemplate())
{
context.Writer.WritePropertyName("launchTemplate");
context.Writer.WriteObjectStart();
var marshaller = LaunchTemplateSpecificationMarshaller.Instance;
marshaller.Marshall(requestObject.LaunchTemplate, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetMaxvCpus())
{
context.Writer.WritePropertyName("maxvCpus");
context.Writer.Write(requestObject.MaxvCpus);
}
if(requestObject.IsSetMinvCpus())
{
context.Writer.WritePropertyName("minvCpus");
context.Writer.Write(requestObject.MinvCpus);
}
if(requestObject.IsSetPlacementGroup())
{
context.Writer.WritePropertyName("placementGroup");
context.Writer.Write(requestObject.PlacementGroup);
}
if(requestObject.IsSetSecurityGroupIds())
{
context.Writer.WritePropertyName("securityGroupIds");
context.Writer.WriteArrayStart();
foreach(var requestObjectSecurityGroupIdsListValue in requestObject.SecurityGroupIds)
{
context.Writer.Write(requestObjectSecurityGroupIdsListValue);
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetSubnets())
{
context.Writer.WritePropertyName("subnets");
context.Writer.WriteArrayStart();
foreach(var requestObjectSubnetsListValue in requestObject.Subnets)
{
context.Writer.Write(requestObjectSubnetsListValue);
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetTags())
{
context.Writer.WritePropertyName("tags");
context.Writer.WriteObjectStart();
foreach (var requestObjectTagsKvp in requestObject.Tags)
{
context.Writer.WritePropertyName(requestObjectTagsKvp.Key);
var requestObjectTagsValue = requestObjectTagsKvp.Value;
context.Writer.Write(requestObjectTagsValue);
}
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetType())
{
context.Writer.WritePropertyName("type");
context.Writer.Write(requestObject.Type);
}
if(requestObject.IsSetUpdateToLatestImageVersion())
{
context.Writer.WritePropertyName("updateToLatestImageVersion");
context.Writer.Write(requestObject.UpdateToLatestImageVersion);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ComputeResourceUpdateMarshaller Instance = new ComputeResourceUpdateMarshaller();
}
} | 196 |
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.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ContainerDetail Object
/// </summary>
public class ContainerDetailUnmarshaller : IUnmarshaller<ContainerDetail, XmlUnmarshallerContext>, IUnmarshaller<ContainerDetail, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ContainerDetail IUnmarshaller<ContainerDetail, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ContainerDetail Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ContainerDetail unmarshalledObject = new ContainerDetail();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("command", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.Command = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("containerInstanceArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ContainerInstanceArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("environment", targetDepth))
{
var unmarshaller = new ListUnmarshaller<KeyValuePair, KeyValuePairUnmarshaller>(KeyValuePairUnmarshaller.Instance);
unmarshalledObject.Environment = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ephemeralStorage", targetDepth))
{
var unmarshaller = EphemeralStorageUnmarshaller.Instance;
unmarshalledObject.EphemeralStorage = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("executionRoleArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ExecutionRoleArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("exitCode", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.ExitCode = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("fargatePlatformConfiguration", targetDepth))
{
var unmarshaller = FargatePlatformConfigurationUnmarshaller.Instance;
unmarshalledObject.FargatePlatformConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("image", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Image = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("instanceType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.InstanceType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("jobRoleArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.JobRoleArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("linuxParameters", targetDepth))
{
var unmarshaller = LinuxParametersUnmarshaller.Instance;
unmarshalledObject.LinuxParameters = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("logConfiguration", targetDepth))
{
var unmarshaller = LogConfigurationUnmarshaller.Instance;
unmarshalledObject.LogConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("logStreamName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.LogStreamName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("memory", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.Memory = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("mountPoints", targetDepth))
{
var unmarshaller = new ListUnmarshaller<MountPoint, MountPointUnmarshaller>(MountPointUnmarshaller.Instance);
unmarshalledObject.MountPoints = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("networkConfiguration", targetDepth))
{
var unmarshaller = NetworkConfigurationUnmarshaller.Instance;
unmarshalledObject.NetworkConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("networkInterfaces", targetDepth))
{
var unmarshaller = new ListUnmarshaller<NetworkInterface, NetworkInterfaceUnmarshaller>(NetworkInterfaceUnmarshaller.Instance);
unmarshalledObject.NetworkInterfaces = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("privileged", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.Privileged = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("readonlyRootFilesystem", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.ReadonlyRootFilesystem = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("reason", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Reason = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("resourceRequirements", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ResourceRequirement, ResourceRequirementUnmarshaller>(ResourceRequirementUnmarshaller.Instance);
unmarshalledObject.ResourceRequirements = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("secrets", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Secret, SecretUnmarshaller>(SecretUnmarshaller.Instance);
unmarshalledObject.Secrets = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("taskArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.TaskArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ulimits", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Ulimit, UlimitUnmarshaller>(UlimitUnmarshaller.Instance);
unmarshalledObject.Ulimits = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("user", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.User = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("vcpus", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.Vcpus = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("volumes", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Volume, VolumeUnmarshaller>(VolumeUnmarshaller.Instance);
unmarshalledObject.Volumes = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ContainerDetailUnmarshaller _instance = new ContainerDetailUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ContainerDetailUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 248 |
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.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// ContainerOverrides Marshaller
/// </summary>
public class ContainerOverridesMarshaller : IRequestMarshaller<ContainerOverrides, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(ContainerOverrides requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetCommand())
{
context.Writer.WritePropertyName("command");
context.Writer.WriteArrayStart();
foreach(var requestObjectCommandListValue in requestObject.Command)
{
context.Writer.Write(requestObjectCommandListValue);
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetEnvironment())
{
context.Writer.WritePropertyName("environment");
context.Writer.WriteArrayStart();
foreach(var requestObjectEnvironmentListValue in requestObject.Environment)
{
context.Writer.WriteObjectStart();
var marshaller = KeyValuePairMarshaller.Instance;
marshaller.Marshall(requestObjectEnvironmentListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetInstanceType())
{
context.Writer.WritePropertyName("instanceType");
context.Writer.Write(requestObject.InstanceType);
}
if(requestObject.IsSetMemory())
{
context.Writer.WritePropertyName("memory");
context.Writer.Write(requestObject.Memory);
}
if(requestObject.IsSetResourceRequirements())
{
context.Writer.WritePropertyName("resourceRequirements");
context.Writer.WriteArrayStart();
foreach(var requestObjectResourceRequirementsListValue in requestObject.ResourceRequirements)
{
context.Writer.WriteObjectStart();
var marshaller = ResourceRequirementMarshaller.Instance;
marshaller.Marshall(requestObjectResourceRequirementsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetVcpus())
{
context.Writer.WritePropertyName("vcpus");
context.Writer.Write(requestObject.Vcpus);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ContainerOverridesMarshaller Instance = new ContainerOverridesMarshaller();
}
} | 117 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the batch-2016-08-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.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// ContainerProperties Marshaller
/// </summary>
public class ContainerPropertiesMarshaller : IRequestMarshaller<ContainerProperties, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(ContainerProperties requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetCommand())
{
context.Writer.WritePropertyName("command");
context.Writer.WriteArrayStart();
foreach(var requestObjectCommandListValue in requestObject.Command)
{
context.Writer.Write(requestObjectCommandListValue);
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetEnvironment())
{
context.Writer.WritePropertyName("environment");
context.Writer.WriteArrayStart();
foreach(var requestObjectEnvironmentListValue in requestObject.Environment)
{
context.Writer.WriteObjectStart();
var marshaller = KeyValuePairMarshaller.Instance;
marshaller.Marshall(requestObjectEnvironmentListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetEphemeralStorage())
{
context.Writer.WritePropertyName("ephemeralStorage");
context.Writer.WriteObjectStart();
var marshaller = EphemeralStorageMarshaller.Instance;
marshaller.Marshall(requestObject.EphemeralStorage, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetExecutionRoleArn())
{
context.Writer.WritePropertyName("executionRoleArn");
context.Writer.Write(requestObject.ExecutionRoleArn);
}
if(requestObject.IsSetFargatePlatformConfiguration())
{
context.Writer.WritePropertyName("fargatePlatformConfiguration");
context.Writer.WriteObjectStart();
var marshaller = FargatePlatformConfigurationMarshaller.Instance;
marshaller.Marshall(requestObject.FargatePlatformConfiguration, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetImage())
{
context.Writer.WritePropertyName("image");
context.Writer.Write(requestObject.Image);
}
if(requestObject.IsSetInstanceType())
{
context.Writer.WritePropertyName("instanceType");
context.Writer.Write(requestObject.InstanceType);
}
if(requestObject.IsSetJobRoleArn())
{
context.Writer.WritePropertyName("jobRoleArn");
context.Writer.Write(requestObject.JobRoleArn);
}
if(requestObject.IsSetLinuxParameters())
{
context.Writer.WritePropertyName("linuxParameters");
context.Writer.WriteObjectStart();
var marshaller = LinuxParametersMarshaller.Instance;
marshaller.Marshall(requestObject.LinuxParameters, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetLogConfiguration())
{
context.Writer.WritePropertyName("logConfiguration");
context.Writer.WriteObjectStart();
var marshaller = LogConfigurationMarshaller.Instance;
marshaller.Marshall(requestObject.LogConfiguration, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetMemory())
{
context.Writer.WritePropertyName("memory");
context.Writer.Write(requestObject.Memory);
}
if(requestObject.IsSetMountPoints())
{
context.Writer.WritePropertyName("mountPoints");
context.Writer.WriteArrayStart();
foreach(var requestObjectMountPointsListValue in requestObject.MountPoints)
{
context.Writer.WriteObjectStart();
var marshaller = MountPointMarshaller.Instance;
marshaller.Marshall(requestObjectMountPointsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetNetworkConfiguration())
{
context.Writer.WritePropertyName("networkConfiguration");
context.Writer.WriteObjectStart();
var marshaller = NetworkConfigurationMarshaller.Instance;
marshaller.Marshall(requestObject.NetworkConfiguration, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetPrivileged())
{
context.Writer.WritePropertyName("privileged");
context.Writer.Write(requestObject.Privileged);
}
if(requestObject.IsSetReadonlyRootFilesystem())
{
context.Writer.WritePropertyName("readonlyRootFilesystem");
context.Writer.Write(requestObject.ReadonlyRootFilesystem);
}
if(requestObject.IsSetResourceRequirements())
{
context.Writer.WritePropertyName("resourceRequirements");
context.Writer.WriteArrayStart();
foreach(var requestObjectResourceRequirementsListValue in requestObject.ResourceRequirements)
{
context.Writer.WriteObjectStart();
var marshaller = ResourceRequirementMarshaller.Instance;
marshaller.Marshall(requestObjectResourceRequirementsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetSecrets())
{
context.Writer.WritePropertyName("secrets");
context.Writer.WriteArrayStart();
foreach(var requestObjectSecretsListValue in requestObject.Secrets)
{
context.Writer.WriteObjectStart();
var marshaller = SecretMarshaller.Instance;
marshaller.Marshall(requestObjectSecretsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetUlimits())
{
context.Writer.WritePropertyName("ulimits");
context.Writer.WriteArrayStart();
foreach(var requestObjectUlimitsListValue in requestObject.Ulimits)
{
context.Writer.WriteObjectStart();
var marshaller = UlimitMarshaller.Instance;
marshaller.Marshall(requestObjectUlimitsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetUser())
{
context.Writer.WritePropertyName("user");
context.Writer.Write(requestObject.User);
}
if(requestObject.IsSetVcpus())
{
context.Writer.WritePropertyName("vcpus");
context.Writer.Write(requestObject.Vcpus);
}
if(requestObject.IsSetVolumes())
{
context.Writer.WritePropertyName("volumes");
context.Writer.WriteArrayStart();
foreach(var requestObjectVolumesListValue in requestObject.Volumes)
{
context.Writer.WriteObjectStart();
var marshaller = VolumeMarshaller.Instance;
marshaller.Marshall(requestObjectVolumesListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ContainerPropertiesMarshaller Instance = new ContainerPropertiesMarshaller();
}
} | 272 |
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.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ContainerProperties Object
/// </summary>
public class ContainerPropertiesUnmarshaller : IUnmarshaller<ContainerProperties, XmlUnmarshallerContext>, IUnmarshaller<ContainerProperties, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ContainerProperties IUnmarshaller<ContainerProperties, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ContainerProperties Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ContainerProperties unmarshalledObject = new ContainerProperties();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("command", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.Command = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("environment", targetDepth))
{
var unmarshaller = new ListUnmarshaller<KeyValuePair, KeyValuePairUnmarshaller>(KeyValuePairUnmarshaller.Instance);
unmarshalledObject.Environment = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ephemeralStorage", targetDepth))
{
var unmarshaller = EphemeralStorageUnmarshaller.Instance;
unmarshalledObject.EphemeralStorage = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("executionRoleArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ExecutionRoleArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("fargatePlatformConfiguration", targetDepth))
{
var unmarshaller = FargatePlatformConfigurationUnmarshaller.Instance;
unmarshalledObject.FargatePlatformConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("image", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Image = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("instanceType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.InstanceType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("jobRoleArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.JobRoleArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("linuxParameters", targetDepth))
{
var unmarshaller = LinuxParametersUnmarshaller.Instance;
unmarshalledObject.LinuxParameters = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("logConfiguration", targetDepth))
{
var unmarshaller = LogConfigurationUnmarshaller.Instance;
unmarshalledObject.LogConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("memory", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.Memory = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("mountPoints", targetDepth))
{
var unmarshaller = new ListUnmarshaller<MountPoint, MountPointUnmarshaller>(MountPointUnmarshaller.Instance);
unmarshalledObject.MountPoints = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("networkConfiguration", targetDepth))
{
var unmarshaller = NetworkConfigurationUnmarshaller.Instance;
unmarshalledObject.NetworkConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("privileged", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.Privileged = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("readonlyRootFilesystem", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.ReadonlyRootFilesystem = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("resourceRequirements", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ResourceRequirement, ResourceRequirementUnmarshaller>(ResourceRequirementUnmarshaller.Instance);
unmarshalledObject.ResourceRequirements = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("secrets", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Secret, SecretUnmarshaller>(SecretUnmarshaller.Instance);
unmarshalledObject.Secrets = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ulimits", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Ulimit, UlimitUnmarshaller>(UlimitUnmarshaller.Instance);
unmarshalledObject.Ulimits = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("user", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.User = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("vcpus", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.Vcpus = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("volumes", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Volume, VolumeUnmarshaller>(VolumeUnmarshaller.Instance);
unmarshalledObject.Volumes = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ContainerPropertiesUnmarshaller _instance = new ContainerPropertiesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ContainerPropertiesUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 212 |
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.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ContainerSummary Object
/// </summary>
public class ContainerSummaryUnmarshaller : IUnmarshaller<ContainerSummary, XmlUnmarshallerContext>, IUnmarshaller<ContainerSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ContainerSummary IUnmarshaller<ContainerSummary, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ContainerSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ContainerSummary unmarshalledObject = new ContainerSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("exitCode", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.ExitCode = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("reason", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Reason = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ContainerSummaryUnmarshaller _instance = new ContainerSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ContainerSummaryUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateComputeEnvironment Request Marshaller
/// </summary>
public class CreateComputeEnvironmentRequestMarshaller : IMarshaller<IRequest, CreateComputeEnvironmentRequest> , 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((CreateComputeEnvironmentRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateComputeEnvironmentRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10";
request.HttpMethod = "POST";
request.ResourcePath = "/v1/createcomputeenvironment";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetComputeEnvironmentName())
{
context.Writer.WritePropertyName("computeEnvironmentName");
context.Writer.Write(publicRequest.ComputeEnvironmentName);
}
if(publicRequest.IsSetComputeResources())
{
context.Writer.WritePropertyName("computeResources");
context.Writer.WriteObjectStart();
var marshaller = ComputeResourceMarshaller.Instance;
marshaller.Marshall(publicRequest.ComputeResources, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetEksConfiguration())
{
context.Writer.WritePropertyName("eksConfiguration");
context.Writer.WriteObjectStart();
var marshaller = EksConfigurationMarshaller.Instance;
marshaller.Marshall(publicRequest.EksConfiguration, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetServiceRole())
{
context.Writer.WritePropertyName("serviceRole");
context.Writer.Write(publicRequest.ServiceRole);
}
if(publicRequest.IsSetState())
{
context.Writer.WritePropertyName("state");
context.Writer.Write(publicRequest.State);
}
if(publicRequest.IsSetTags())
{
context.Writer.WritePropertyName("tags");
context.Writer.WriteObjectStart();
foreach (var publicRequestTagsKvp in publicRequest.Tags)
{
context.Writer.WritePropertyName(publicRequestTagsKvp.Key);
var publicRequestTagsValue = publicRequestTagsKvp.Value;
context.Writer.Write(publicRequestTagsValue);
}
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetType())
{
context.Writer.WritePropertyName("type");
context.Writer.Write(publicRequest.Type);
}
if(publicRequest.IsSetUnmanagedvCpus())
{
context.Writer.WritePropertyName("unmanagedvCpus");
context.Writer.Write(publicRequest.UnmanagedvCpus);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateComputeEnvironmentRequestMarshaller _instance = new CreateComputeEnvironmentRequestMarshaller();
internal static CreateComputeEnvironmentRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateComputeEnvironmentRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 161 |
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.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateComputeEnvironment operation
/// </summary>
public class CreateComputeEnvironmentResponseUnmarshaller : 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)
{
CreateComputeEnvironmentResponse response = new CreateComputeEnvironmentResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("computeEnvironmentArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ComputeEnvironmentArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("computeEnvironmentName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ComputeEnvironmentName = 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("ClientException"))
{
return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException"))
{
return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateComputeEnvironmentResponseUnmarshaller _instance = new CreateComputeEnvironmentResponseUnmarshaller();
internal static CreateComputeEnvironmentResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateComputeEnvironmentResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 120 |
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.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateJobQueue Request Marshaller
/// </summary>
public class CreateJobQueueRequestMarshaller : IMarshaller<IRequest, CreateJobQueueRequest> , 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((CreateJobQueueRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateJobQueueRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10";
request.HttpMethod = "POST";
request.ResourcePath = "/v1/createjobqueue";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetComputeEnvironmentOrder())
{
context.Writer.WritePropertyName("computeEnvironmentOrder");
context.Writer.WriteArrayStart();
foreach(var publicRequestComputeEnvironmentOrderListValue in publicRequest.ComputeEnvironmentOrder)
{
context.Writer.WriteObjectStart();
var marshaller = ComputeEnvironmentOrderMarshaller.Instance;
marshaller.Marshall(publicRequestComputeEnvironmentOrderListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetJobQueueName())
{
context.Writer.WritePropertyName("jobQueueName");
context.Writer.Write(publicRequest.JobQueueName);
}
if(publicRequest.IsSetPriority())
{
context.Writer.WritePropertyName("priority");
context.Writer.Write(publicRequest.Priority);
}
if(publicRequest.IsSetSchedulingPolicyArn())
{
context.Writer.WritePropertyName("schedulingPolicyArn");
context.Writer.Write(publicRequest.SchedulingPolicyArn);
}
if(publicRequest.IsSetState())
{
context.Writer.WritePropertyName("state");
context.Writer.Write(publicRequest.State);
}
if(publicRequest.IsSetTags())
{
context.Writer.WritePropertyName("tags");
context.Writer.WriteObjectStart();
foreach (var publicRequestTagsKvp in publicRequest.Tags)
{
context.Writer.WritePropertyName(publicRequestTagsKvp.Key);
var publicRequestTagsValue = publicRequestTagsKvp.Value;
context.Writer.Write(publicRequestTagsValue);
}
context.Writer.WriteObjectEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateJobQueueRequestMarshaller _instance = new CreateJobQueueRequestMarshaller();
internal static CreateJobQueueRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateJobQueueRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 149 |
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.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateJobQueue operation
/// </summary>
public class CreateJobQueueResponseUnmarshaller : 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)
{
CreateJobQueueResponse response = new CreateJobQueueResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("jobQueueArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.JobQueueArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("jobQueueName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.JobQueueName = 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("ClientException"))
{
return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException"))
{
return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateJobQueueResponseUnmarshaller _instance = new CreateJobQueueResponseUnmarshaller();
internal static CreateJobQueueResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateJobQueueResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 120 |
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.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateSchedulingPolicy Request Marshaller
/// </summary>
public class CreateSchedulingPolicyRequestMarshaller : IMarshaller<IRequest, CreateSchedulingPolicyRequest> , 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((CreateSchedulingPolicyRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateSchedulingPolicyRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10";
request.HttpMethod = "POST";
request.ResourcePath = "/v1/createschedulingpolicy";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetFairsharePolicy())
{
context.Writer.WritePropertyName("fairsharePolicy");
context.Writer.WriteObjectStart();
var marshaller = FairsharePolicyMarshaller.Instance;
marshaller.Marshall(publicRequest.FairsharePolicy, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetName())
{
context.Writer.WritePropertyName("name");
context.Writer.Write(publicRequest.Name);
}
if(publicRequest.IsSetTags())
{
context.Writer.WritePropertyName("tags");
context.Writer.WriteObjectStart();
foreach (var publicRequestTagsKvp in publicRequest.Tags)
{
context.Writer.WritePropertyName(publicRequestTagsKvp.Key);
var publicRequestTagsValue = publicRequestTagsKvp.Value;
context.Writer.Write(publicRequestTagsValue);
}
context.Writer.WriteObjectEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateSchedulingPolicyRequestMarshaller _instance = new CreateSchedulingPolicyRequestMarshaller();
internal static CreateSchedulingPolicyRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateSchedulingPolicyRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 126 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the batch-2016-08-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.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateSchedulingPolicy operation
/// </summary>
public class CreateSchedulingPolicyResponseUnmarshaller : 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)
{
CreateSchedulingPolicyResponse response = new CreateSchedulingPolicyResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("arn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Arn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Name = 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("ClientException"))
{
return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException"))
{
return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateSchedulingPolicyResponseUnmarshaller _instance = new CreateSchedulingPolicyResponseUnmarshaller();
internal static CreateSchedulingPolicyResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateSchedulingPolicyResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 120 |
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.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteComputeEnvironment Request Marshaller
/// </summary>
public class DeleteComputeEnvironmentRequestMarshaller : IMarshaller<IRequest, DeleteComputeEnvironmentRequest> , 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((DeleteComputeEnvironmentRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteComputeEnvironmentRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10";
request.HttpMethod = "POST";
request.ResourcePath = "/v1/deletecomputeenvironment";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetComputeEnvironment())
{
context.Writer.WritePropertyName("computeEnvironment");
context.Writer.Write(publicRequest.ComputeEnvironment);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DeleteComputeEnvironmentRequestMarshaller _instance = new DeleteComputeEnvironmentRequestMarshaller();
internal static DeleteComputeEnvironmentRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteComputeEnvironmentRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 101 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the batch-2016-08-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.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteComputeEnvironment operation
/// </summary>
public class DeleteComputeEnvironmentResponseUnmarshaller : 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)
{
DeleteComputeEnvironmentResponse response = new DeleteComputeEnvironmentResponse();
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("ClientException"))
{
return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException"))
{
return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteComputeEnvironmentResponseUnmarshaller _instance = new DeleteComputeEnvironmentResponseUnmarshaller();
internal static DeleteComputeEnvironmentResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteComputeEnvironmentResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 103 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the batch-2016-08-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.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteJobQueue Request Marshaller
/// </summary>
public class DeleteJobQueueRequestMarshaller : IMarshaller<IRequest, DeleteJobQueueRequest> , 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((DeleteJobQueueRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteJobQueueRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10";
request.HttpMethod = "POST";
request.ResourcePath = "/v1/deletejobqueue";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetJobQueue())
{
context.Writer.WritePropertyName("jobQueue");
context.Writer.Write(publicRequest.JobQueue);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DeleteJobQueueRequestMarshaller _instance = new DeleteJobQueueRequestMarshaller();
internal static DeleteJobQueueRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteJobQueueRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 101 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the batch-2016-08-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.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteJobQueue operation
/// </summary>
public class DeleteJobQueueResponseUnmarshaller : 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)
{
DeleteJobQueueResponse response = new DeleteJobQueueResponse();
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("ClientException"))
{
return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException"))
{
return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteJobQueueResponseUnmarshaller _instance = new DeleteJobQueueResponseUnmarshaller();
internal static DeleteJobQueueResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteJobQueueResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 103 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the batch-2016-08-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.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteSchedulingPolicy Request Marshaller
/// </summary>
public class DeleteSchedulingPolicyRequestMarshaller : IMarshaller<IRequest, DeleteSchedulingPolicyRequest> , 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((DeleteSchedulingPolicyRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteSchedulingPolicyRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10";
request.HttpMethod = "POST";
request.ResourcePath = "/v1/deleteschedulingpolicy";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetArn())
{
context.Writer.WritePropertyName("arn");
context.Writer.Write(publicRequest.Arn);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DeleteSchedulingPolicyRequestMarshaller _instance = new DeleteSchedulingPolicyRequestMarshaller();
internal static DeleteSchedulingPolicyRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteSchedulingPolicyRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 101 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the batch-2016-08-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.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteSchedulingPolicy operation
/// </summary>
public class DeleteSchedulingPolicyResponseUnmarshaller : 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)
{
DeleteSchedulingPolicyResponse response = new DeleteSchedulingPolicyResponse();
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("ClientException"))
{
return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException"))
{
return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteSchedulingPolicyResponseUnmarshaller _instance = new DeleteSchedulingPolicyResponseUnmarshaller();
internal static DeleteSchedulingPolicyResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteSchedulingPolicyResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 103 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the batch-2016-08-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.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeregisterJobDefinition Request Marshaller
/// </summary>
public class DeregisterJobDefinitionRequestMarshaller : IMarshaller<IRequest, DeregisterJobDefinitionRequest> , 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((DeregisterJobDefinitionRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeregisterJobDefinitionRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Batch");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-10";
request.HttpMethod = "POST";
request.ResourcePath = "/v1/deregisterjobdefinition";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetJobDefinition())
{
context.Writer.WritePropertyName("jobDefinition");
context.Writer.Write(publicRequest.JobDefinition);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DeregisterJobDefinitionRequestMarshaller _instance = new DeregisterJobDefinitionRequestMarshaller();
internal static DeregisterJobDefinitionRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeregisterJobDefinitionRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 101 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the batch-2016-08-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.Batch.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Batch.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeregisterJobDefinition operation
/// </summary>
public class DeregisterJobDefinitionResponseUnmarshaller : 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)
{
DeregisterJobDefinitionResponse response = new DeregisterJobDefinitionResponse();
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("ClientException"))
{
return ClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerException"))
{
return ServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBatchException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeregisterJobDefinitionResponseUnmarshaller _instance = new DeregisterJobDefinitionResponseUnmarshaller();
internal static DeregisterJobDefinitionResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeregisterJobDefinitionResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 103 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.